IssueVoucherInputBuilder Class

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

Namespace

LoyaltyManagement

IssueVoucherInputBuilder Methods

The following are methods for IssueVoucherInputBuilder.

build()

Returns an instance of the LoyaltyManagement.IssueVoucherInput object.

Signature

public LoyaltyManagement.IssueVoucherInput build()

setAdditionalNotes(additionalNotes)

Represents extra information about the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setAdditionalNotes(String additionalNotes)

Parameters

additionalNotes
Type: String

setBenefitId(benefitId)

Represents the benefit associated with the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setBenefitId(String benefitId)

Parameters

benefitId
Type: String

setContactId(contactId)

Represents the contact associated with the loyalty program member.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setContactId(String contactId)

Parameters

contactId
Type: String

setDiscountPercent(discountPercent)

Represents the discount percentage provided by the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setDiscountPercent(Integer discountPercent)

Parameters

discountPercent
Type: Integer
The discount percentage provided by the voucher. Specify a value to override the discount percentage specified in the associated voucher definition. Specify this when the associated voucher definition is of the type Discount Percentage. This field is available in API version 53.0 and later.

setEffectiveDate(effectiveDate)

Represents the start date of the validity of the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setEffectiveDate(String effectiveDate)

Parameters

effectiveDate
Type: String
The supported date format is YYYY-MM-DD.

setExpiryDate(expiryDate)

Represents the expiry date of the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setExpiryDate(String expiryDate)

Parameters

expiryDate
Type: String
The supported date format is YYYY-MM-DD.

setFaceValue(faceValue)

Represents the amount of discount provided by the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setFaceValue(Double faceValue)

Parameters

faceValue
Type: Double
The amount of discount provided by the voucher. Specify a value to override the face value specified in the associated voucher definition. Specify this when the associated voucher definition is of the type Fixed Value. This field is available in API version 53.0 and later.

setJournalId(journalId)

Represents the transaction journal associated with the member voucher when the voucher results from accrual of points.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setJournalId(String journalId)

Parameters

journalId
Type: String

setLoyaltyProgramMemberId(loyaltyProgramMemberId)

Represents the ID of the loyalty program member to issue the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setLoyaltyProgramMemberId(String loyaltyProgramMemberId)

Parameters

loyaltyProgramMemberId
Type: String

setProgramName(programName)

Represents the name of the loyalty program associated with the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setProgramName(String programName)

Parameters

programName
Type: String

setPromotionId(promotionId)

Represents the promotion associated with the voucher.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setPromotionId(String promotionId)

Parameters

promotionId
Type: String

setVoucherCode(voucherCode)

Represents the voucher identifier generated by an external system. This is a required field.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setVoucherCode(String voucherCode)

Parameters

voucherCode
Type: String

setVoucherDefinitionName(voucherDefinitionName)

Represents the name of the voucher definition associated with the voucher code. This is a required field.

Signature

public LoyaltyManagement.IssueVoucherInputBuilder setVoucherDefinitionName(String voucherDefinitionName)

Parameters

voucherDefinitionName
Type: String