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. VAT transactions support a `goodsPlaceOrServiceRendered` address, which indicates where goods are located or where services are rendered. VAT transactions also support an `import` address, which specifies the address of the buyer importing a good from another country. India GST transactions support a `billTo` address, which specifies where invoices and other billing-related information are sent to the buyer. 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressLocationInfo
getBillTo()
Getter for billToAddressLocationInfo
getGoodsPlaceOrServiceRendered()
Getter for goodsPlaceOrServiceRenderedAddressLocationInfo
getImport()
Getter for importAddressLocationInfo
getPointOfOrderAcceptance()
Getter for pointOfOrderAcceptanceAddressLocationInfo
getPointOfOrderOrigin()
Getter for pointOfOrderOriginAddressLocationInfo
getShipFrom()
Getter for shipFromAddressLocationInfo
getShipTo()
Getter for shipToAddressLocationInfo
getSingleLocation()
Getter for singleLocationvoid
setBillTo(AddressLocationInfo value)
Setter for billTovoid
setGoodsPlaceOrServiceRendered(AddressLocationInfo value)
Setter for goodsPlaceOrServiceRenderedvoid
setImport(AddressLocationInfo value)
Setter for importvoid
setPointOfOrderAcceptance(AddressLocationInfo value)
Setter for pointOfOrderAcceptancevoid
setPointOfOrderOrigin(AddressLocationInfo value)
Setter for pointOfOrderOriginvoid
setShipFrom(AddressLocationInfo value)
Setter for shipFromvoid
setShipTo(AddressLocationInfo value)
Setter for shipTovoid
setSingleLocation(AddressLocationInfo value)
Setter for singleLocationjava.lang.String
toString()
Returns a JSON string representation of AddressesModel
-
-
-
Method Detail
-
getSingleLocation
public AddressLocationInfo getSingleLocation()
Getter for singleLocation
-
setSingleLocation
public void setSingleLocation(AddressLocationInfo value)
Setter for singleLocation
-
getShipFrom
public AddressLocationInfo getShipFrom()
Getter for shipFrom
-
setShipFrom
public void setShipFrom(AddressLocationInfo value)
Setter for shipFrom
-
getShipTo
public AddressLocationInfo getShipTo()
Getter for shipTo
-
setShipTo
public void setShipTo(AddressLocationInfo value)
Setter for shipTo
-
getPointOfOrderOrigin
public AddressLocationInfo getPointOfOrderOrigin()
Getter for pointOfOrderOrigin
-
setPointOfOrderOrigin
public void setPointOfOrderOrigin(AddressLocationInfo value)
Setter for pointOfOrderOrigin
-
getPointOfOrderAcceptance
public AddressLocationInfo getPointOfOrderAcceptance()
Getter for pointOfOrderAcceptance
-
setPointOfOrderAcceptance
public void setPointOfOrderAcceptance(AddressLocationInfo value)
Setter for pointOfOrderAcceptance
-
getGoodsPlaceOrServiceRendered
public AddressLocationInfo getGoodsPlaceOrServiceRendered()
Getter for goodsPlaceOrServiceRendered
-
setGoodsPlaceOrServiceRendered
public void setGoodsPlaceOrServiceRendered(AddressLocationInfo value)
Setter for goodsPlaceOrServiceRendered
-
getImport
public AddressLocationInfo getImport()
Getter for import
-
setImport
public void setImport(AddressLocationInfo value)
Setter for import
-
getBillTo
public AddressLocationInfo getBillTo()
Getter for billTo
-
setBillTo
public void setBillTo(AddressLocationInfo value)
Setter for billTo
-
toString
public java.lang.String toString()
Returns a JSON string representation of AddressesModel- Overrides:
toString
in classjava.lang.Object
-
-