LoyaltyResources Class
A class that executes a loyalty action and returns a result. Takes the input classes as input and returns the objects of output classes.
The following are methods for LoyaltyResources.
Methods in the LoyaltyResources class support processing up to 200 records per invocation. This class predates the Invocable.Action Apex wrapper, which supports up to 2000 records per invocation and is the recommended approach for invoking loyalty actions.
-
Use this method to change the tier for a loyalty program member.
-
creditPoints(creditPointsList)
Use this method to credit loyalty points to a loyalty program member’s balance.
-
Use this method to debit loyalty points from a loyalty program member’s balance.
-
getLoyaltyPromotionBasedOnSalesforceCDP(loyaltyPromotionInputList)
Use this method to retrieve promotions that are eligible for a member based on the member’s market segment.
-
getLoyaltyPromotions(loyaltyPromotionInputList)
Use this method to retrieve active promotions that are eligible for a transaction journal. The action can process accrual or redemption transactions.
-
getPointsBalance(memberPointBalanceList)
Use this method to retrieve the loyalty points balance for a loyalty program member.
-
Use this method to retrieve the current tier for a loyalty program member.
-
issueVoucher(issueVoucherList)
Use this method to issue a voucher for a loyalty program member.
-
transferMemberPointsToGroups(transferMemberPointsToGroupsList)
Use this method to transfer points from an individual member or a corporate member to the member’s associated group.
-
updateProgressForCumulativePromotionUsage(updateCumulativeUsageCompletedInputList)
Use this method to update the progress made by a loyalty program member towards attaining a Cumulative type promotion.
Use this method to change the tier for a loyalty program member.
public static List<LoyaltyManagement.ChangeTierOutput> changeTier(List<LoyaltyManagement.ChangeTierInput> changeTierList)
changeTierList
Type: List<LoyaltyManagement.ChangeTierInput>
Set of inputs to change the tier for a loyalty program member.
Type: List<LoyaltyManagement.ChangeTierOutput>
Use this method to credit loyalty points to a loyalty program member’s balance.
public static List<LoyaltyManagement.CreditPointsOutput> creditPoints(List<LoyaltyManagement.PointsInput> creditPointsList)
creditPointsList
Type: List<LoyaltyManagement.PointsInput>
Set of inputs to credit points to a loyalty program member’s balance.
Type: List<LoyaltyManagement.CreditPointsOutput>
Use this method to debit loyalty points from a loyalty program member’s balance.
public static List<LoyaltyManagement.DebitPointsOutput> debitPoints(List<LoyaltyManagement.PointsInput> debitPointsList)
debitPointsList
Type: List<LoyaltyManagement.PointsInputt>
Set of inputs to debit points from a loyalty program member’s balance.
Type: List<LoyaltyManagement.DebitPointsOutput>
Use this method to retrieve promotions that are eligible for a member based on the member’s market segment.
public static List<LoyaltyManagement.CdpBasedLoyaltyPromotionOutput> getLoyaltyPromotionBasedOnSalesforceCDP(List<LoyaltyManagement.CdpBasedLoyaltyPromotionInput> loyaltyPromotionInputList)
loyaltyPromotionInputList
Type: List<LoyaltyManagement.CdpBasedLoyaltyPromotionInput>
Set of inputs to retrieve promotions for a member based on the member’s market segment.
Type: List<LoyaltyManagement.CdpBasedLoyaltyPromotionOutput>
Use this method to retrieve active promotions that are eligible for a transaction journal. The action can process accrual or redemption transactions.
public static List<LoyaltyManagement.LoyaltyPromotionOutput> getLoyaltyPromotions(List<LoyaltyManagement.LoyaltyPromotionInput> loyaltyPromotionInputList)
loyaltyPromotionInputList
Type: List<LoyaltyManagement.LoyaltyPromotionInput>
Set of inputs to retrieve active promotions for a transaction journal.
Type: List<LoyaltyManagement.LoyaltyPromotionOutput>
Use this method to retrieve the loyalty points balance for a loyalty program member.
public static List<LoyaltyManagement.MemberPointBalanceOutput> getPointsBalance(List<LoyaltyManagement.MemberPointBalanceInput> memberPointBalanceList)
memberPointBalanceList
Type: List<LoyaltyManagement.MemberPointBalanceInput>
Set of inputs to get the loyalty points balance for a loyalty program member’s balance.
Type: List<LoyaltyManagement.MemberPointBalanceOutput>
Use this method to retrieve the current tier for a loyalty program member.
public static List<LoyaltyManagement.MemberTierOutput> getTier(List<LoyaltyManagement.MemberTierInput> memberTierList)
memberTierList
Type: List<loyalty_management.MemberTierInput>
Set of inputs to retrieve the current tier for a given loyalty program member.
Type: List<loyalty_management.MemberTierOutput>
Use this method to issue a voucher for a loyalty program member.
public static List<LoyaltyManagement.IssueVoucherOutput> issueVoucher(List<LoyaltyManagement.IssueVoucherInput> issueVoucherList)
issueVoucherList
Type: List<loyalty_management.IssueVoucherInput>
Set of inputs to issue a voucher.
Type: List<loyalty_management.IssueVoucherOutput>
Use this method to transfer points from an individual member or a corporate member to the member’s associated group.
public static List<LoyaltyManagement.LoyaltyActionResult> transferMemberPointsToGroups(List<LoyaltyManagement.TransferMemberPointsToGroupsInput> transferMemberPointsToGroupsList)
transferMemberPointsToGroupsList
Type: List<loyalty_management.TransferMemberPointsToGroupsInput>
Set of inputs to transfer points from an individual member or a corporate member.
Type: List<loyalty_management.LoyaltyActionResult>
Use this method to update the progress made by a loyalty program member towards attaining a Cumulative type promotion.
public static List<LoyaltyManagement.UpdateCumulativeUsageCompletedOutput> updateProgressForCumulativePromotionUsage(List<LoyaltyManagement.UpdateCumulativeUsageCompletedInput> updateCumulativeUsageCompletedInputList)
updateCumulativeUsageCompletedInputList
Type: List<LoyaltyManagement.UpdateCumulativeUsageCompletedInput>
Set of inputs to update the progress for a Cumulative type promotion.
Type: List<LoyaltyManagement.UpdateCumulativeUsageCompletedOutput>