new ServiceCharge()
- Source:
Methods
(static) ServiceCharge#getEnabled() → {Boolean}
Get the field value
If this service charge is enabled
- Source:
Returns:
- Type
- Boolean
(static) ServiceCharge#getId() → {String}
Get the field value
Unique identifier
- Source:
Returns:
- Type
- String
(static) ServiceCharge#getName() → {String}
Get the field value
Service charge name
- Source:
Returns:
- Type
- String
(static) ServiceCharge#getPercentage() → {Number}
Get the field value
Deprecated use percentageDecimal instead
- Source:
Returns:
must be a long integer
- Type
- Number
(static) ServiceCharge#getPercentageDecimal() → {Number}
Get the field value
Percent to charge times 10000, e.g. 12.5% will be 125000
- Source:
Returns:
must be a long integer
- Type
- Number
(static) ServiceCharge#setEnabled(enabled)
Set the field value
If this service charge is enabled
Parameters:
Name | Type | Description |
---|---|---|
enabled |
Boolean |
- Source:
(static) ServiceCharge#setId(id)
Set the field value
Unique identifier
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
- Source:
(static) ServiceCharge#setName(name)
Set the field value
Service charge name
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
- Source:
(static) ServiceCharge#setPercentage(percentage)
Set the field value
Deprecated use percentageDecimal instead
Parameters:
Name | Type | Description |
---|---|---|
percentage |
Number | must be a long integer |
- Source:
(static) ServiceCharge#setPercentageDecimal(percentageDecimal)
Set the field value
Percent to charge times 10000, e.g. 12.5% will be 125000
Parameters:
Name | Type | Description |
---|---|---|
percentageDecimal |
Number | must be a long integer |
- Source: