Alokai

Voucher

Representation of a Voucher Voucher

export interface Voucher {
	'appliedValue'?: Price;
	'code'?: string;
	'currency'?: Currency;
	'description'?: string;
	'freeShipping'?: boolean;
	'name'?: string;
	'value'?: number;
	'valueFormatted'?: string;
	'valueString'?: string;
	'voucherCode'?: string;
}

Properties

NameRequiredTypeDescription
appliedValueOptionalPrice{Price} Voucher
codeOptionalstringThe identifier of the Voucher. This is the first part of voucher code which holds first 3 letters, like: 123 {string} Voucher
currencyOptionalCurrency{Currency} Voucher
descriptionOptionalstringDescription of the voucher {string} Voucher
freeShippingOptionalbooleanSpecifies if the order this voucher is applied to is shipped for free (true) or not (false). Defaults to false. {boolean} Voucher
nameOptionalstringName of the voucher {string} Voucher
valueOptionalnumberValue of the voucher. Example of such value is: 15.0d {number} Voucher
valueFormattedOptionalstringFormatted value of the voucher {string} Voucher
valueStringOptionalstringThe value of the voucher to display. Example: 15.0% {string} Voucher
voucherCodeOptionalstringVoucher code, is the holder for keeping specific occasional voucher related to business usage. It can be generated and looks like: 123-H8BC-Y3D5-34AL {string} Voucher

Referenced Types

On this page