commercestoretax.TaxService

Apex class for Tax Service.

Methods 

global virtual GetStoreTaxesInfoResponse processGetStoreTaxesInfo(GetStoreTaxesInfoRequest request) 

Given a commercestoretax.GetStoreTaxesInfoRequest, return the commercestoretax.GetStoreTaxesInfoResponse that fetches the taxation information in the context of web store and ship-to-address.

Parameters 

ParamDescription
requestThe input request contains Product Ids, Ship-to-Address and other information.

Returns 

TypeDescription
GetStoreTaxesInfoResponseTaxation information configured for this web store.

Example 

TaxService.processGetStoreTaxesInfo(getStoreTaxesInfoRequest);

global virtual CalculateTaxesResponse processCalculateTaxes(CalculateTaxesRequest request) 

Given a commercestoretax.CalculateTaxesRequest, return the commercestoretax.CalculateTaxesResponse that represents the calculated tax values for the given products.

Parameters 

ParamDescription
requestThe input request contains CalculateTaxesRequestItemGroup and other information.

Returns 

TypeDescription
CalculateTaxesResponseCalculate taxes response

Example 

TaxService.processCalculateTaxes(calculateTaxesRequest);

Newer Version Available

This content describes an older version of this product. View Latest