Updates the tax-related attributes of the line item based on the specified tax rate, a tax basis determined by the system and the “Tax Rounding Mode” order preference.
Updates the tax-related attributes of the line item based on the specified tax rate, the passed tax basis and the “Tax Rounding Mode” order preference.
Returns the base price for the line item, which is the price of the unit before applying adjustments, in the
purchase currency. The base price may be net or gross of tax depending on the configured taxation policy.
Get the price of the line item. If the line item is based on net pricing then the net price is returned. If the
line item is based on gross pricing then the gross price is returned.
Returns the tax class ID for the line item or null if no tax class ID is associated with the line item. In the
case where the tax class ID is null, you should use the default tax class ID.
Returns the tax rate, which is the decimal tax rate to be applied to the product represented by this line item. A
value of 0.175 represents a percentage of 17.5%.
Returns the base price for the line item, which is the price of the unit before applying adjustments, in the
purchase currency. The base price may be net or gross of tax depending on the configured taxation policy.
Get the price of the line item. If the line item is based on net pricing then the net price is returned. If the
line item is based on gross pricing then the gross price is returned.
Returns the tax class ID for the line item or null if no tax class ID is associated with the line item. In the
case where the tax class ID is null, you should use the default tax class ID.
Returns:
the tax class ID for the line item or null if no tax class ID is associated with the line item.
Returns the tax rate, which is the decimal tax rate to be applied to the product represented by this line item. A
value of 0.175 represents a percentage of 17.5%.
Sets the base price for the line item, which is the price of the unit before applying adjustments, in the
purchase currency. The base price may be net or gross of tax depending on the configured taxation policy.
Sets price attributes of the line item based on the current purchase currency and taxation policy.
The methods sets the 'basePrice' attribute of the line item. Additionally, it sets the 'netPrice' attribute of
the line item if the current taxation policy is 'net', and the 'grossPrice' attribute, if the current taxation
policy is 'gross'.
If null is specified as value, the price attributes are reset to Money.NOT_AVAILABLE.
Sets the tax rate, which is the decimal tax rate to be applied to the product represented by this line item. A
value of 0.175 represents a percentage of 17.5%.
Updates the price attributes of the line item based on the specified price. The base price is set to the
specified value. If the line item is based on net pricing then the net price attribute is set. If the line item
is based on gross pricing then the gross price attribute is set. Whether or not a line item is based on net or
gross pricing is a site-wide configuration parameter.
Parameters:
price - The price to use when performing the update. This price must not be null and must either be equal to NOT_AVAIALBLE or must have a currency code equal to that of the parent container.
Updates the tax-related attributes of the line item based on the specified tax rate, a tax basis determined by
the system and the "Tax Rounding Mode" order preference. This method sets the tax basis as an attribute, and is
not affected by the previous value of this attribute.
The value used as a basis depends on the type of line item this is and on the promotion preferences for the
current site. If you tax products, shipping, and discounts based on price (default), then the tax basis will
simply be equal to getPrice(). If you tax products and shipping only based on adjusted price, then the
tax basis depends upon line item type as follows:
Updates the tax-related attributes of the line item based on the specified tax rate, the passed tax basis and the
"Tax Rounding Mode" order preference. If null is passed as tax rate or tax basis, tax-related attribute fields
are set to N/A.
Updates tax amount of the line item setting the provided value. Depending on the way how the tax is calculated
(based on net or gross price), the corresponding gross or net price is updated accordingly. For tax calculation
based on net price, the gross price is calculated by adding the tax to the net price. For tax calculation based
on gross price, the net price is calculated by subtracting the tax from the gross price.
If null is passed as tax amount, the item tax and resulting net or gross price are set to N/A.
Note that tax rate is not calculated and it is not updated.