PointsInputBuilder Class
Contains methods to build an instance of the LoyaltyManagement.PointsInput class.
The following are methods for PointsInputBuilder.
-
Returns an instance of the
LoyaltyManagement.PointsInputobject. -
setAdditionalNotes(additionalNotes)
Represents extra information about the transactions performed by the loyalty program member.
-
setCorrelationId(correlationId)
Represents the ID of any Salesforce entity.
-
Represents the ID of the flow associated with the credit or debit points action.
-
Represents the ID of the transaction journal. This is a required field.
-
setLoyaltyProgramMemberId(loyaltyProgramMemberId)
Represents the ID of the loyalty program member to whom the points must be credited or debited. This is a required field.
-
Represents the points available with the loyalty program member. This is a required field.
-
setPointsExpirationDate(pointsExpirationDate)
Represents the date on which fixed-model non-qualifying points credited by the action expire.
-
setProgramCurrencyName(programCurrencyName)
Represents the name of the loyalty program currency.
-
setLoyaltyProgramCurrencySubtypeName(LoyaltyProgramCurrencySubtypeName)
This method sets specific
LoyaltyProgramCurrencySubtypefor theLoyaltyProgramCurrency. -
Represents the name of the loyalty program.
Returns an instance of the LoyaltyManagement.PointsInput object.
public LoyaltyManagement.PointsInput build()
Type: LoyaltyManagement.PointsInput
Represents extra information about the transactions performed by the loyalty program member.
public LoyaltyManagement.PointsInputBuilder setAdditionalNotes(String additionalNotes)
additionalNotes
Type: String
Type: LoyaltyManagement.PointsInputBuilder
Represents the ID of any Salesforce entity.
public LoyaltyManagement.PointsInputBuilder setCorrelationId(String correlationId)
correlationId
Type: String
Type: LoyaltyManagement.PointsInputBuilder
Represents the ID of the flow associated with the credit or debit points action.
public LoyaltyManagement.PointsInputBuilder setFlowId(String flowId)
flowId
Type: String
Type: LoyaltyManagement.PointsInputBuilder
Represents the ID of the transaction journal. This is a required field.
public LoyaltyManagement.PointsInputBuilder setJournalId(String journalId)
journalId
Type: String
Type: LoyaltyManagement.PointsInputBuilder
Represents the ID of the loyalty program member to whom the points must be credited or debited. This is a required field.
public LoyaltyManagement.PointsInputBuilder setLoyaltyProgramMemberId(String loyaltyProgramMemberId)
loyaltyProgramMemberId
Type: String
Type: LoyaltyManagement.PointsInputBuilder
Represents the points available with the loyalty program member. This is a required field.
public LoyaltyManagement.PointsInputBuilder setPoints(Double points)
points
Type: Double
Type: LoyaltyManagement.PointsInputBuilder
Represents the date on which fixed-model non-qualifying points credited by the action expire.
public LoyaltyManagement.PointsInputBuilder setPointsExpirationDate(String pointsExpirationDate)
pointsExpirationDate
Type: String
The supported date format is YYYY-MM-DD. This input is available in API version 55.0 and later.
Type: LoyaltyManagement.PointsInputBuilder
Represents the name of the loyalty program currency.
public LoyaltyManagement.PointsInputBuilder setProgramCurrencyName(String programCurrencyName)
programCurrencyName
Type: String
Type: LoyaltyManagement.PointsInputBuilder
This method sets specific LoyaltyProgramCurrencySubtype for the LoyaltyProgramCurrency.
public LoyaltyManagement.PointsInputBuilder setLoyaltyProgramCurrencySubtypeName(String loyaltyProgramCurrencySubtypeName)
loyaltyProgramCurrencySubtypeName
Type: String
Type: LoyaltyManagement.PointsInputBuilder
Represents the name of the loyalty program.
public LoyaltyManagement.PointsInputBuilder setProgramName(String programName)
programName
Type: String