Home > @vsf-enterprise/sap-commerce-webservices-sdk > Voucher
Voucher interface
Representation of a Voucher Voucher
Signature:
export interface Voucher
Properties
Property | Type | Description |
---|---|---|
appliedValue? | Price | (Optional) |
code? | string | (Optional) The identifier of the Voucher. This is the first part of voucher code which holds first 3 letters, like: 123 |
currency? | Currency | (Optional) |
description? | string | (Optional) Description of the voucher |
freeShipping? | boolean | (Optional) Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Defaults to false. |
name? | string | (Optional) Name of the voucher |
value? | number | (Optional) Value of the voucher. Example of such value is: 15.0d |
valueFormatted? | string | (Optional) Formatted value of the voucher |
valueString? | string | (Optional) The value of the voucher to display. Example: 15.0% |
voucherCode? | string | (Optional) Voucher code, is the holder for keeping specific occasional voucher related to business usage. It can be generated and looks like: 123-H8BC-Y3D5-34AL |