new TaxRate()
- Source:
Methods
(static) TaxRate#getDeletedTime() → {Null|Number}
Get the field value
Timestamp when tax rate was last deleted
- Source:
Returns:
must be a long integer
- Type
- Null | Number
(static) TaxRate#getId() → {String}
Get the field value
- Source:
Returns:
- Type
- String
(static) TaxRate#getIsDefault() → {Null|Boolean}
Get the field value
- Source:
Returns:
- Type
- Null | Boolean
(static) TaxRate#getItems() → {Null|Array.<base.Reference>}
Get the field value
Items associated with this tax rate
- Source:
Returns:
An array of
- Type
- Null | Array.<base.Reference>
(static) TaxRate#getModifiedTime() → {Null|Number}
Get the field value
Timestamp when tax rate was last modified
- Source:
Returns:
must be a long integer
- Type
- Null | Number
(static) TaxRate#getName() → {String}
Get the field value
- Source:
Returns:
- Type
- String
(static) TaxRate#getRate() → {Number}
Get the field value
For percentage based discounts like sales tax
- Source:
Returns:
must be a long integer
- Type
- Number
(static) TaxRate#getTaxAmount() → {Null|Number}
Get the field value
For a flat tax like recycling redemption fee, expressed as number of cents
- Source:
Returns:
must be a long integer
- Type
- Null | Number
(static) TaxRate#getTaxType() → {Null|inventory.TaxType}
Get the field value
to support Argentina's tax type
- Source:
Returns:
- Type
- Null | inventory.TaxType
(static) TaxRate#setDeletedTime(deletedTime)
Set the field value
Timestamp when tax rate was last deleted
Parameters:
Name | Type | Description |
---|---|---|
deletedTime |
Null | Number | must be a long integer |
- Source:
(static) TaxRate#setId(id)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
id |
String |
- Source:
(static) TaxRate#setIsDefault(isDefault)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
isDefault |
Null | Boolean |
- Source:
(static) TaxRate#setItems(items)
Set the field value
Items associated with this tax rate
Parameters:
Name | Type | Description |
---|---|---|
items |
Null | Array.<base.Reference> | An array of |
- Source:
(static) TaxRate#setModifiedTime(modifiedTime)
Set the field value
Timestamp when tax rate was last modified
Parameters:
Name | Type | Description |
---|---|---|
modifiedTime |
Null | Number | must be a long integer |
- Source:
(static) TaxRate#setName(name)
Set the field value
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
- Source:
(static) TaxRate#setRate(rate)
Set the field value
For percentage based discounts like sales tax
Parameters:
Name | Type | Description |
---|---|---|
rate |
Number | must be a long integer |
- Source:
(static) TaxRate#setTaxAmount(taxAmount)
Set the field value
For a flat tax like recycling redemption fee, expressed as number of cents
Parameters:
Name | Type | Description |
---|---|---|
taxAmount |
Null | Number | must be a long integer |
- Source:
(static) TaxRate#setTaxType(taxType)
Set the field value
to support Argentina's tax type
Parameters:
Name | Type | Description |
---|---|---|
taxType |
Null | inventory.TaxType |
- Source: