Class 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AddressLocationInfo getGoodsPlaceOrServiceRendered()
      Getter for goodsPlaceOrServiceRendered The address where the goods are located or where services are rendered.This address type is valid only for VAT transactions.
      AddressLocationInfo getImport()
      Getter for import The address of the buyer importing a good from another country.This address type is valid only for VAT transactions.
      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 setGoodsPlaceOrServiceRendered​(AddressLocationInfo value)
      Setter for goodsPlaceOrServiceRendered The address where the goods are located or where services are rendered.This address type is valid only for VAT transactions.
      void setImport​(AddressLocationInfo value)
      Setter for import The address of the buyer importing a good from another country.This address type is valid only for VAT transactions.
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AddressesModel

        public AddressesModel()
    • Method Detail

      • getSingleLocation

        public 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.
      • setSingleLocation

        public 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.
      • getShipFrom

        public AddressLocationInfo getShipFrom()
        Getter for shipFrom The origination address where the products were shipped from, or from where the services originated.
      • setShipFrom

        public void setShipFrom​(AddressLocationInfo value)
        Setter for shipFrom The origination address where the products were shipped from, or from where the services originated.
      • getShipTo

        public AddressLocationInfo getShipTo()
        Getter for shipTo The destination address where the products were shipped to, or where the services were delivered.
      • setShipTo

        public void setShipTo​(AddressLocationInfo value)
        Setter for shipTo The destination address where the products were shipped to, or where the services were delivered.
      • getPointOfOrderOrigin

        public AddressLocationInfo 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

        public void setPointOfOrderOrigin​(AddressLocationInfo value)
        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

        public 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. This address type is valid in the United States only and only applies to tangible personal property.
      • setPointOfOrderAcceptance

        public 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. This address type is valid in the United States only and only applies to tangible personal property.
      • getGoodsPlaceOrServiceRendered

        public AddressLocationInfo getGoodsPlaceOrServiceRendered()
        Getter for goodsPlaceOrServiceRendered The address where the goods are located or where services are rendered.This address type is valid only for VAT transactions.
      • setGoodsPlaceOrServiceRendered

        public void setGoodsPlaceOrServiceRendered​(AddressLocationInfo value)
        Setter for goodsPlaceOrServiceRendered The address where the goods are located or where services are rendered.This address type is valid only for VAT transactions.
      • getImport

        public AddressLocationInfo getImport()
        Getter for import The address of the buyer importing a good from another country.This address type is valid only for VAT transactions.
      • setImport

        public void setImport​(AddressLocationInfo value)
        Setter for import The address of the buyer importing a good from another country.This address type is valid only for VAT transactions.
      • toString

        public java.lang.String toString()
        Returns a JSON string representation of AddressesModel
        Overrides:
        toString in class java.lang.Object