new TaxableAmountRate()
- Source:
Methods
(static) TaxableAmountRate#getId() → {String}
Get the field value
Tax rate id.
- Source:
Returns:
- Type
- String
(static) TaxableAmountRate#getIsVat() → {Boolean}
Get the field value
Whether the taxable amount includes tax.
- Source:
Returns:
- Type
- Boolean
(static) TaxableAmountRate#getName() → {String}
Get the field value
Tax rate name. This field is optional.
- Source:
Returns:
- Type
- String
(static) TaxableAmountRate#getRate() → {Number}
Get the field value
The tax rate. 100% = 1e7.
- Source:
Returns:
must be a long integer
- Type
- Number
(static) TaxableAmountRate#getTaxableAmount() → {Number}
Get the field value
The sub-total of line items that the tax was based on. For VAT, this amount includes tax. For all others, this amount does not include tax.
- Source:
Returns:
must be a long integer
- Type
- Number
(static) TaxableAmountRate#getTaxAmount() → {Number}
Get the field value
The amount of tax collected. In cases where there are multiple payments for an order then it may be necessary to add an extra cent of tax to the last payment.
- Source:
Returns:
must be a long integer
- Type
- Number
(static) TaxableAmountRate#getTransactionRef() → {base.Reference}
Get the field value
The refund with which the tax rate is associated
- Source:
Returns:
- Type
- base.Reference
(static) TaxableAmountRate#setId(id)
Set the field value
Tax rate id.
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
- Source:
(static) TaxableAmountRate#setIsVat(isVat)
Set the field value
Whether the taxable amount includes tax.
Parameters:
Name | Type | Description |
---|---|---|
isVat |
Boolean |
- Source:
(static) TaxableAmountRate#setName(name)
Set the field value
Tax rate name. This field is optional.
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
- Source:
(static) TaxableAmountRate#setRate(rate)
Set the field value
The tax rate. 100% = 1e7.
Parameters:
Name | Type | Description |
---|---|---|
rate |
Number | must be a long integer |
- Source:
(static) TaxableAmountRate#setTaxableAmount(taxableAmount)
Set the field value
The sub-total of line items that the tax was based on. For VAT, this amount includes tax. For all others, this amount does not include tax.
Parameters:
Name | Type | Description |
---|---|---|
taxableAmount |
Number | must be a long integer |
- Source:
(static) TaxableAmountRate#setTaxAmount(taxAmount)
Set the field value
The amount of tax collected. In cases where there are multiple payments for an order then it may be necessary to add an extra cent of tax to the last payment.
Parameters:
Name | Type | Description |
---|---|---|
taxAmount |
Number | must be a long integer |
- Source:
(static) TaxableAmountRate#setTransactionRef(transactionRef)
Set the field value
The refund with which the tax rate is associated
Parameters:
Name | Type | Description |
---|---|---|
transactionRef |
base.Reference |
- Source: