Salesforce B2C Commerce 23.6 > B2C Commerce API > B2C Commerce Script > dw.order
dw.order
Class TaxGroup
Object
dw.order.TaxGroup
Contains the formal definition of a tax including a type (it's just the key), a percentage value if provided, a caption and a description.
Properties
caption  :  String  (Read Only)
Gets the caption.
description  :  String  (Read Only)
Gets the description.
rate  :  Number  (Read Only)
Gets the percentage amount of the rate.
taxType  :  String  (Read Only)
Gets the tax type.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static create(taxType : String, caption : String, description : String, taxRate : Decimal) : TaxGroup
Creates a TaxGroup.
getCaption() : String
Gets the caption.
getDescription() : String
Gets the description.
getRate() : Number
Gets the percentage amount of the rate.
getTaxType() : String
Gets the tax type.
Methods inherited from class Object
Method Detail
create
static create(taxType : String, caption : String, description : String, taxRate : Decimal) : TaxGroup
Creates a TaxGroup.
This TaxGroup can be used for example in ReturnItem.addTaxItem(Decimal, TaxGroup).
Parameters:
taxType - the tax type
caption - the caption
description - the description
taxRate - the tax rate as floating point.
1.0 means 100 %.
Returns:
the tax group

getCaption
getCaption() : String
Gets the caption.
Returns:
the caption

getDescription
getDescription() : String
Gets the description.
Returns:
the description

getRate
getRate() : Number
Gets the percentage amount of the rate.
Returns:
the tax rate percentage value

getTaxType
getTaxType() : String
Gets the tax type.
Returns:
the tax type

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.