new DisplayDiscount()
- Source:
Methods
(static) DisplayDiscount#getAmount() → {String}
Get the field value
Formatted discount amount
- Source:
Returns:
- Type
- String
(static) DisplayDiscount#getId() → {String}
Get the field value
Unique identifier
- Source:
Returns:
- Type
- String
(static) DisplayDiscount#getLineItemId() → {String}
Get the field value
The lineItem with which the discount is associated
- Source:
Returns:
- Type
- String
(static) DisplayDiscount#getName() → {String}
Get the field value
Name of the discount
- Source:
Returns:
- Type
- String
(static) DisplayDiscount#getPercentage() → {String}
Get the field value
Discount amount in percent
- Source:
Returns:
- Type
- String
(static) DisplayDiscount#setAmount(amount)
Set the field value
Formatted discount amount
Parameters:
Name | Type | Description |
---|---|---|
amount |
String |
- Source:
(static) DisplayDiscount#setId(id)
Set the field value
Unique identifier
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
- Source:
(static) DisplayDiscount#setLineItemId(lineItemId)
Set the field value
The lineItem with which the discount is associated
Parameters:
Name | Type | Description |
---|---|---|
lineItemId |
String |
- Source:
(static) DisplayDiscount#setName(name)
Set the field value
Name of the discount
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
- Source:
(static) DisplayDiscount#setPercentage(percentage)
Set the field value
Discount amount in percent
Parameters:
Name | Type | Description |
---|---|---|
percentage |
String |
- Source: