Newer Version Available

This content describes an older version of this product. View Latest

CdpBasedLoyaltyPromotionInputBuilder Class

Contains methods to build an instance of the LoyaltyManagement.CdpBasedLoyaltyPromotionInput class.

Namespace

LoyaltyManagement

CdpBasedLoyaltyPromotionInputBuilder Methods

The following are methods for CdpBasedLoyaltyPromotionInputBuilder.

build()

Returns an instance of the LoyaltyManagement.CdpBasedLoyaltyPromotionInput object.

Signature

public LoyaltyManagement.CdpBasedLoyaltyPromotionInput build()

setMemberId(memberId)

Represents the ID of a loyalty program member for whom promotions must be filtered. This is a required field. Ensure that the member is part of a Salesforce Customer Data Platform (CDP) market segment.

Signature

public LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder setMemberId(String memberId)

Parameters

memberId
Type: String

setPromotions(promotions)

Represents the promotion records to filter the promotions that are applicable to the member's market segment.

Signature

public LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder setPromotions(List<SObject> promotions)

Parameters

promotions
Type: List<SObject>