Share via


RetailTransactionService::giftCardPayment Method [AX 2012]

Creates the record in the RetailGiftCardTransactions table.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          client server public static container giftCardPayment(
            RetailGiftCardId _cardNumber, 
            RetailStoreId _storeId, 
            RetailTerminalId _terminalId, 
            RetailStaffId _staffId, 
            RetailTransactionId _transactionId, 
            RetailReceiptId _receiptId, 
            CurrencyCode _currencyCode, 
            AmountMST _amountMST, 
            str _transDate, 
            str _transTime, 
           [int _dateSequence, 
            RetailChannelRecId _channelId])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static container giftCardPayment(
            RetailGiftCardId _cardNumber, 
            RetailStoreId _storeId, 
            RetailTerminalId _terminalId, 
            RetailStaffId _staffId, 
            RetailTransactionId _transactionId, 
            RetailReceiptId _receiptId, 
            CurrencyCode _currencyCode, 
            AmountMST _amountMST, 
            str _transDate, 
            str _transTime, 
           [int _dateSequence])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static container GiftCardPayment(
            RetailGiftCardId _cardNumber, 
            RetailStoreId _storeId, 
            RetailTerminalId _terminalId, 
            RetailStaffId _staffId, 
            RetailTransactionId _transactionId, 
            RetailReceiptId _receiptId, 
            CurrencyCode _currencyCode, 
            AmountMST _amountMST, 
            str _transDate, 
            str _transTime, 
           [int _dateSequence])

Run On

Called

Parameters

  • _transDate
    Type: str
    The value of the RetailGiftCardTransactions.transDate field.
  • _transTime
    Type: str
    The value of the RetailGiftCardTransactions.transTime field.
  • _dateSequence
    Type: int
    The format of the date.

Return Value

Type: container
The status as a container.

Exceptions

Exception Condition
UpdateConflictNotRecovered

A conflict occurred that could not be recovered from when updating.

UpdateConflict

An update conflict occurred.

See Also

Reference

RetailTransactionService Class