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 AddressLocationInfo
getPointOfOrderAcceptance()
Getter for pointOfOrderAcceptance The place of business where you accept/approve the customer’s order, thereby becoming contractually obligated to make the sale.AddressLocationInfo
getPointOfOrderOrigin()
Getter for pointOfOrderOrigin The place of business where you receive the customer's order.AddressLocationInfo
getShipFrom()
Getter for shipFrom The origination address where the products were shipped from, or from where the services originated.AddressLocationInfo
getShipTo()
Getter for shipTo The destination address where the products were shipped to, or where the services were delivered.AddressLocationInfo
getSingleLocation()
Getter for singleLocation If this transaction occurred at a retail point-of-sale location, provide that single address here and leave all other address types null.void
setPointOfOrderAcceptance(AddressLocationInfo value)
Setter for pointOfOrderAcceptance The place of business where you accept/approve the customer’s order, thereby becoming contractually obligated to make the sale.void
setPointOfOrderOrigin(AddressLocationInfo value)
Setter for pointOfOrderOrigin The place of business where you receive the customer's order.void
setShipFrom(AddressLocationInfo value)
Setter for shipFrom The origination address where the products were shipped from, or from where the services originated.void
setShipTo(AddressLocationInfo value)
Setter for shipTo The destination address where the products were shipped to, or where the services were delivered.void
setSingleLocation(AddressLocationInfo value)
Setter for singleLocation If this transaction occurred at a retail point-of-sale location, provide that single address here and leave all other address types null.java.lang.String
toString()
Returns a JSON string representation of AddressesModel
-
Constructor Details
-
AddressesModel
public AddressesModel()
-
-
Method Details
-
getSingleLocation
Getter for singleLocation If this transaction occurred at a retail point-of-sale location, provide that single address here and leave all other address types null. -
setSingleLocation
Setter for singleLocation If this transaction occurred at a retail point-of-sale location, provide that single address here and leave all other address types null. -
getShipFrom
Getter for shipFrom The origination address where the products were shipped from, or from where the services originated. -
setShipFrom
Setter for shipFrom The origination address where the products were shipped from, or from where the services originated. -
getShipTo
Getter for shipTo The destination address where the products were shipped to, or where the services were delivered. -
setShipTo
Setter for shipTo The destination address where the products were shipped to, or where the services were delivered. -
getPointOfOrderOrigin
Getter for pointOfOrderOrigin The place of business where you receive the customer's order. This address type is valid in the United States only and only applies to tangible personal property. -
setPointOfOrderOrigin
Setter for pointOfOrderOrigin The place of business where you receive the customer's order. This address type is valid in the United States only and only applies to tangible personal property. -
getPointOfOrderAcceptance
Getter for pointOfOrderAcceptance The place of business where you accept/approve the customer’s order, thereby becoming contractually obligated to make the sale. This address type is valid in the United States only and only applies to tangible personal property. -
setPointOfOrderAcceptance
Setter for pointOfOrderAcceptance The place of business where you accept/approve the customer’s order, thereby becoming contractually obligated to make the sale. This address type is valid in the United States only and only applies to tangible personal property. -
toString
public java.lang.String toString()Returns a JSON string representation of AddressesModel- Overrides:
toString
in classjava.lang.Object
-