RetailTransactionService::IssueLoyaltyCard Method [AX 2012]
Issues a loyalty card, and joins the loyalty programs that are associated to the specificed channel.
If channel recId is not provided, joins all available loyalty programs.
Syntax
client server public static container IssueLoyaltyCard(
[RetailLoyaltyCardNumber _cardNumber,
RetailLoyaltyTenderType _cardTenderType,
DirPartyRecId _partyRecId,
RefRecId _channelRecId])
Run On
Called
Parameters
- _cardNumber
Type: RetailLoyaltyCardNumber Extended Data Type
The card number.
- _cardTenderType
Type: RetailLoyaltyTenderType Extended Data Type
The tender type of the loyalty card.
- _partyRecId
Type: DirPartyRecId Extended Data Type
The record identifier of the party of the card owner.
- _channelRecId
Type: RefRecId Extended Data Type
The record identifier of the channel where the loyalty card is issued.
Return Value
Type: container
A container having the result.
Remarks
The result container contains [isSuccess, Message, cardContainer, cardTierListContainer].
The cardContainer contains [retailLoyaltyCard.RecId, retailLoyaltyCard.CardNumber, retailLoyaltyCard.CardTenderType, retailLoyaltyCard.Party].
The cardTierListContainer contains a list of cardTierContainer.
The cardTierContainer contains [cardTier.RecId, cardTier.Affiliation, cardTier.LoyaltyCard, cardTier.LoyaltyTier, cardTier.ValidFrom, cardTier.ValidTo].