Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
AbstractTransactionResponse Class
Namespace
AbstractTransactionResponse Methods
The AbstractTransactionResponse class includes these methods.
setAddresses(addresses)
Signature
global void setAddresses(commercetax.AddressesResponse addresses)
Parameters
-
addresses:
Type: AddressesResponse
Class that contains methods to set the Ship To, Ship From, and Sold To address information.
Return Value
Type: void
setAmountDetails(amountDetails)
Signature
global void setAmountDetails(commercetax.AmountDetailsResponse amountDetails)
Parameters
-
amountDetails:
Type: AmountDetailsResponse
Class that contains methods to set the tax exemption amount, tax amount, total amount, and total amount with tax.
Return Value
Type: void
setCurrencyIsoCode(currencyIsoCode)
Signature
global void setCurrencyIsoCode(String currencyIsoCode)
Parameters
-
currencyIsoCode:
Type: String
Three-letter ISO 4217 currency code associated with a tax object.
Return Value
Type: void
setCustomTaxAttributes(customTaxAttributes)
Signature
global void setCustomTaxAttributes(commercetax.CustomTaxAttributesResponse customTaxAttributes)
Parameters
-
customTaxAttributes:
Type: CustomTaxAttributesResponse
Additional
data or custom attributes to include in the tax response.
Return Value
Type: void
setDescription(dscptn)
Signature
global void setDescription(String dscptn)
Parameters
-
dscptn:
Type: String
Optional field for providing additional information about a record.
Return Value
Type: void
setDocumentCode(documentCode)
Signature
global void setDocumentCode(String documentCode)
Parameters
-
documentCode:
Type: String
Code
for a tax document used in the tax calculation process.
Return Value
Type: void
setEffectiveDate(effectiveDate)
Signature
global void setEffectiveDate(Datetime effectiveDate)
Parameters
-
effectiveDate:
Type: Datetime
Optional field that stores the date that a transaction takes effect.
Return Value
Type: void
setLineItems(lineItems)
Signature
global void setLineItems(List<commercetax.LineItemResponse> lineItems)
Parameters
-
lineItems:
Type: List<LineItemResponse>
A list of line items sent to an external tax engine for tax calculation.
Return Value
Type: void
setReferenceDocumentCode(referenceDocumentCode)
Signature
global void setReferenceDocumentCode(String referenceDocumentCode)
Parameters
-
referenceDocumentCode:
Type: String
The code for a document used in the tax calculation process.
Return Value
Type: void
setReferenceEntityId(referenceEntityId)
Signature
global void setReferenceEntityId(String referenceEntityId)
Parameters
-
referenceEntityId:
Type: String
ID of a record related to the items sent for tax calculation.
Return Value
Type: void
setTaxTransactionId(taxTrxnId)
Signature
global void setTaxTransactionId(String taxTrxnId)
Parameters
-
taxTrxnId:
Type: String
The ID of a tax transaction record in Commerce Tax.
Return Value
Type: void
setTransactionDate(transactionDate)
Signature
global void setTransactionDate(Datetime transactionDate)
Parameters
-
transactionDate:
Type: Datetime
Date that a tax transaction occurred.
Return Value
Type: void