Newer Version Available

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

PointsInputBuilder Class

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

Namespace

LoyaltyManagement

PointsInputBuilder Methods

The following are methods for PointsInputBuilder.

build()

Returns an instance of the LoyaltyManagement.PointsInput object.

Signature

public LoyaltyManagement.PointsInput build()

Return Value

Type: LoyaltyManagement.PointsInput

setAdditionalNotes(additionalNotes)

Represents extra information about the transactions performed by the loyalty program member.

Signature

public LoyaltyManagement.PointsInputBuilder setAdditionalNotes(String additionalNotes)

Parameters

additionalNotes
Type: String

setCorrelationId(correlationId)

Represents the ID of any Salesforce entity.

Signature

public LoyaltyManagement.PointsInputBuilder setCorrelationId(String correlationId)

Parameters

correlationId
Type: String

setFlowId(flowId)

Represents the ID of the flow associated with the credit or debit points action.

Signature

public LoyaltyManagement.PointsInputBuilder setFlowId(String flowId)

Parameters

flowId
Type: String

setJournalId(journalId)

Represents the ID of the transaction journal. This is a required field.

Signature

public LoyaltyManagement.PointsInputBuilder setJournalId(String journalId)

Parameters

journalId
Type: String

setLoyaltyProgramMemberId(loyaltyProgramMemberId)

Represents the ID of the loyalty program member to whom the points must be credited or debited. This is a required field.

Signature

public LoyaltyManagement.PointsInputBuilder setLoyaltyProgramMemberId(String loyaltyProgramMemberId)

Parameters

loyaltyProgramMemberId
Type: String

setPoints(points)

Represents the points available with the loyalty program member. This is a required field.

Signature

public LoyaltyManagement.PointsInputBuilder setPoints(Double points)

Parameters

points
Type: Double

setProgramCurrencyName(programCurrencyName)

Represents the name of the loyalty program currency.

Signature

public LoyaltyManagement.PointsInputBuilder setProgramCurrencyName(String programCurrencyName)

Parameters

programCurrencyName
Type: String

setProgramName(programName)

Represents the name of the loyalty program.

Signature

public LoyaltyManagement.PointsInputBuilder setProgramName(String programName)

Parameters

programName
Type: String