Class AddressesModel
java.lang.Object
net.avalara.avatax.rest.client.models.AddressesModel
public class AddressesModel
extends java.lang.Object
Information about all the addresses involved in this transaction.
For a physical in-person transaction at a retail point-of-sale location, please specify only one address using
the `singleLocation` field.
For a transaction that was shipped, delivered, or provided from an origin location such as a warehouse to
a destination location such as a customer, please specify the `shipFrom` and `shipTo` addresses.
In the United States, some jurisdictions recognize the address types `pointOfOrderOrigin` and `pointOfOrderAcceptance`.
These address types affect the sourcing models of some transactions.
If latitude and longitude information is provided for any of these addresses along with line, city, region, country and postal code information,
we will be using only latitude and longitude and will discard line, city, region, country and postal code information for the transaction.
Please ensure that you have the correct latitude/longitude information for the addresses prior to using the API.
If you provide either latitude or longitude information but not both, we will be using the line, city, region, country and postal code information for the addresses.
-
Constructor Summary
Constructors Constructor Description AddressesModel() -
Method Summary
Modifier and Type Method Description AddressLocationInfogetBillTo()Getter for billToAddressLocationInfogetGoodsPlaceOrServiceRendered()Getter for goodsPlaceOrServiceRenderedAddressLocationInfogetImport()Getter for importAddressLocationInfogetPointOfOrderAcceptance()Getter for pointOfOrderAcceptanceAddressLocationInfogetPointOfOrderOrigin()Getter for pointOfOrderOriginAddressLocationInfogetShipFrom()Getter for shipFromAddressLocationInfogetShipTo()Getter for shipToAddressLocationInfogetSingleLocation()Getter for singleLocationvoidsetBillTo(AddressLocationInfo value)Setter for billTovoidsetGoodsPlaceOrServiceRendered(AddressLocationInfo value)Setter for goodsPlaceOrServiceRenderedvoidsetImport(AddressLocationInfo value)Setter for importvoidsetPointOfOrderAcceptance(AddressLocationInfo value)Setter for pointOfOrderAcceptancevoidsetPointOfOrderOrigin(AddressLocationInfo value)Setter for pointOfOrderOriginvoidsetShipFrom(AddressLocationInfo value)Setter for shipFromvoidsetShipTo(AddressLocationInfo value)Setter for shipTovoidsetSingleLocation(AddressLocationInfo value)Setter for singleLocationjava.lang.StringtoString()Returns a JSON string representation of AddressesModel
-
Constructor Details
-
AddressesModel
public AddressesModel()
-
-
Method Details
-
getSingleLocation
Getter for singleLocation -
setSingleLocation
Setter for singleLocation -
getShipFrom
Getter for shipFrom -
setShipFrom
Setter for shipFrom -
getShipTo
Getter for shipTo -
setShipTo
Setter for shipTo -
getPointOfOrderOrigin
Getter for pointOfOrderOrigin -
setPointOfOrderOrigin
Setter for pointOfOrderOrigin -
getPointOfOrderAcceptance
Getter for pointOfOrderAcceptance -
setPointOfOrderAcceptance
Setter for pointOfOrderAcceptance -
getGoodsPlaceOrServiceRendered
Getter for goodsPlaceOrServiceRendered -
setGoodsPlaceOrServiceRendered
Setter for goodsPlaceOrServiceRendered -
getImport
Getter for import -
setImport
Setter for import -
getBillTo
Getter for billTo -
setBillTo
Setter for billTo -
toString
public java.lang.String toString()Returns a JSON string representation of AddressesModel- Overrides:
toStringin classjava.lang.Object
-