RetailTransactionService::issueGiftCard Method [AX 2012]
This issues a gift card that is not reserved to a terminal / store. This is used for supporting POS 5/61/62 To issue a reserved gift card use the method issueReservedGiftCard
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 issueGiftCard(
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 issueGiftCard(
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
- _cardNumber
Type: RetailGiftCardId Extended Data Type
ID of the RetailGiftCardTable.entryId field.
- _storeId
Type: RetailStoreId Extended Data Type
ID of the RetailGiftCardTransactions.storeId field.
- _terminalId
Type: RetailTerminalId Extended Data Type
ID of the RetailGiftCardTransactions.terminalId field.
- _staffId
Type: RetailStaffId Extended Data Type
ID of the RetailGiftCardTransactions.staffId field.
- _transactionId
Type: RetailTransactionId Extended Data Type
ID of the RetailGiftCardTransactions.transactionId field.
- _receiptId
Type: RetailReceiptId Extended Data Type
ID of the RetailGiftCardTransactions.receiptId field.
- _currencyCode
Type: CurrencyCode Extended Data Type
CurrencyCode
- _amountMST
Type: AmountMST Extended Data Type
Value of the RetailGiftCardTransactions.amount field.
- _transDate
Type: str
Value of the RetailGiftCardTransactions.transDate field.
- _transTime
Type: str
Value of the RetailGiftCardTransactions.transTime field.
- _dateSequence
Type: int
Format of the date.
- _channelId
Type: RetailChannelRecId Extended Data Type
ID of the RetailGiftCardTransactions.channel field.
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. |