Namespace
Usage
Use the AddressResponse class to set unique values for each address.
commercetax.AddressesResponse addressesRes = new commercetax.AddressesResponse(); //AddressResponse containing ShipTo information commercetax.AddressResponse shipToAddress = new commercetax.AddressResponse(); shipToAddress.setLocationCode('1234567'); //AddressResponse containing ShipFrom information commercetax.AddressResponse shipFromAddress = new commercetax.AddressResponse(); shipFromAddress.setLocationCode('84720385'); //AddressResponse containing Sold To information commercetax.AddressResponse soldToAddress = new commercetax.AddressResponse(); soldToAddress.setLocationCode('92381749'); //set values of addressesRes addressesRes.setShipFrom(shipFromAddress); addressesRes.setShipTo(shipToAddress); addressesRes.setSoldTo(soldToAddress);
AddressResponse Methods
Learn more about the available methods with the AddressResponse class.
The AddressResponse class includes these methods.
setLocationCode(locationCode)
Sets the value of a LocationCode field.
Signature
global void setLocationCode(String locationCode)
Parameters
-
locationCode:
Type: String
A code that contains address information. This value can be passed to a method that sets the value of an address field.
Return Value
Type: void