Share via


RetailTransactionServiceTransactions::issueGiftCard Method [AX 2012]

Method is used for creating the record in RetailGiftCardTransactions table.

Initially the gift card is marked as reserved. Call giftCardRelease to clear the reservation.

Syntax

client server public static container issueGiftCard(
    RetailGiftCardId _cardNumber, 
    RetailChannelRecId _channelId, 
    RetailTerminalId _terminalId, 
    RetailStaffId _staffId, 
    RetailTransactionId _transactionId, 
    RetailReceiptId _receiptId, 
    CurrencyCode _currencyCode, 
    AmountMST _amountMST, 
    str _transDate, 
    str _transTime, 
   [int _dateSequence, 
    boolean _reserved])

Run On

Called

Parameters

  • _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.
  • _reserved
    Type: boolean
    Issues a reserved gift card if set to true.

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

RetailTransactionServiceTransactions Class