Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
LoyaltyResources Class
Namespace
LoyaltyResources Methods
The following are methods for LoyaltyResources.
changeTier(changeTierList)
Signature
public static List<LoyaltyManagement.ChangeTierOutput> changeTier(List<LoyaltyManagement.ChangeTierInput> changeTierList)
Parameters
- changeTierList
- Type: List<LoyaltyManagement.ChangeTierInput>
- Set of inputs to change the tier for a loyalty program member.
Return Value
Type: List<LoyaltyManagement.ChangeTierOutput>
creditPoints(creditPointsList)
Signature
public static List<LoyaltyManagement.CreditPointsOutput> creditPoints(List<LoyaltyManagement.PointsInput> creditPointsList)
Parameters
- creditPointsList
- Type: List<LoyaltyManagement.PointsInput>
- Set of inputs to credit points to a loyalty program member’s balance.
Return Value
Type: List<LoyaltyManagement.CreditPointsOutput>
debitPoints(debitPointsList)
Signature
public static List<LoyaltyManagement.DebitPointsOutput> debitPoints(List<LoyaltyManagement.PointsInput> debitPointsList)
Parameters
- debitPointsList
- Type: List<LoyaltyManagement.PointsInputt>
- Set of inputs to debit points from a loyalty program member’s balance.
Return Value
Type: List<LoyaltyManagement.DebitPointsOutput>
getLoyaltyPromotionBasedOnSalesforceCDP(loyaltyPromotionInputList)
Signature
public static List<LoyaltyManagement.CdpBasedLoyaltyPromotionOutput> getLoyaltyPromotionBasedOnSalesforceCDP(List<LoyaltyManagement.CdpBasedLoyaltyPromotionInput> loyaltyPromotionInputList)
Parameters
- loyaltyPromotionInputList
- Type: List<LoyaltyManagement.CdpBasedLoyaltyPromotionInput>
- Set of inputs to retrieve promotions for a member based on the member's market segment.
Return Value
Type: List<LoyaltyManagement.CdpBasedLoyaltyPromotionOutput>
getLoyaltyPromotions(loyaltyPromotionInputList)
Signature
public static List<LoyaltyManagement.LoyaltyPromotionOutput> getLoyaltyPromotions(List<LoyaltyManagement.LoyaltyPromotionInput> loyaltyPromotionInputList)
Parameters
- loyaltyPromotionInputList
- Type: List<LoyaltyManagement.LoyaltyPromotionInput>
- Set of inputs to retrieve active promotions for a transaction journal.
Return Value
Type: List<LoyaltyManagement.LoyaltyPromotionOutput>
getPointsBalance(memberPointBalanceList)
Signature
public static List<LoyaltyManagement.MemberPointBalanceOutput> getPointsBalance(List<LoyaltyManagement.MemberPointBalanceInput> memberPointBalanceList)
Parameters
- memberPointBalanceList
- Type: List<LoyaltyManagement.MemberPointBalanceInput>
- Set of inputs to get the loyalty points balance for a loyalty program member’s balance.
Return Value
Type: List<LoyaltyManagement.MemberPointBalanceOutput>
getTier(memberTierList)
Signature
public static List<LoyaltyManagement.MemberTierOutput> getTier(List<LoyaltyManagement.MemberTierInput> memberTierList)
Parameters
- memberTierList
- Type: List<loyalty_management.MemberTierInput>
- Set of inputs to retrieve the current tier for a given loyalty program member.
Return Value
Type: List<loyalty_management.MemberTierOutput>
issueVoucher(issueVoucherList)
Signature
public static List<LoyaltyManagement.IssueVoucherOutput> issueVoucher(List<LoyaltyManagement.IssueVoucherInput> issueVoucherList)
Parameters
- issueVoucherList
- Type: List<loyalty_management.IssueVoucherInput>
- Set of inputs to issue a voucher.
Return Value
Type: List<loyalty_management.IssueVoucherOutput>
transferMemberPointsToGroups(transferMemberPointsToGroupsList)
Signature
public static List<LoyaltyManagement.LoyaltyActionResult> transferMemberPointsToGroups(List<LoyaltyManagement.TransferMemberPointsToGroupsInput> transferMemberPointsToGroupsList)
Parameters
- transferMemberPointsToGroupsList
- Type: List<loyalty_management.TransferMemberPointsToGroupsInput>
- Set of inputs to transfer points from an individual member or a corporate member.
Return Value
Type: List<loyalty_management.LoyaltyActionResult>
updateProgressForCumulativePromotionUsage(updateCumulativeUsageCompletedInputList)
Signature
public static List<LoyaltyManagement.UpdateCumulativeUsageCompletedOutput> updateProgressForCumulativePromotionUsage(List<LoyaltyManagement.UpdateCumulativeUsageCompletedInput> updateCumulativeUsageCompletedInputList)
Parameters
- updateCumulativeUsageCompletedInputList
- Type: List<LoyaltyManagement.UpdateCumulativeUsageCompletedInput>
- Set of inputs to update the progress for a Cumulative type promotion.
Return Value
Type: List<LoyaltyManagement.UpdateCumulativeUsageCompletedOutput>