Class: Discount

inventory.Discount()

new Discount()

Source:

Methods

(static) Discount#getAmount() → {Null|Number}

Get the field value Discount amount in fraction of currency unit (e.g. cents) based on currency fraction digits supported
Source:
Returns:
must be a long integer
Type
Null | Number

(static) Discount#getId() → {String}

Get the field value Unique identifier
Source:
Returns:
Type
String

(static) Discount#getMerchantRef() → {base.Reference}

Get the field value
Source:
Returns:
Type
base.Reference

(static) Discount#getName() → {String}

Get the field value Name of the discount
Source:
Returns:
Type
String

(static) Discount#getPercentage() → {Null|Number}

Get the field value Discount amount in percent
Source:
Returns:
must be a long integer
Type
Null | Number

(static) Discount#setAmount(amount)

Set the field value Discount amount in fraction of currency unit (e.g. cents) based on currency fraction digits supported
Parameters:
Name Type Description
amount Null | Number must be a long integer
Source:

(static) Discount#setId(id)

Set the field value Unique identifier
Parameters:
Name Type Description
id String
Source:

(static) Discount#setMerchantRef(merchantRef)

Set the field value
Parameters:
Name Type Description
merchantRef base.Reference
Source:

(static) Discount#setName(name)

Set the field value Name of the discount
Parameters:
Name Type Description
name String
Source:

(static) Discount#setPercentage(percentage)

Set the field value Discount amount in percent
Parameters:
Name Type Description
percentage Null | Number must be a long integer
Source: