Class BillingEntity


  • public class BillingEntity
    extends Object
    BillingEntity
    • Constructor Detail

      • BillingEntity

        public BillingEntity()
    • Method Detail

      • getAddress

        public Address getAddress()
        Get address
        Returns:
        address
      • setAddress

        public void setAddress​(Address address)
      • getEmail

        public String getEmail()
        The email address of the billing entity.
        Returns:
        email
      • setEmail

        public void setEmail​(String email)
      • getId

        public String getId()
        The unique identifier of the billing entity, for use as `billingEntityId` when creating an order.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getName

        public String getName()
        The unique name of the billing entity.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getTaxId

        public String getTaxId()
        The tax number of the billing entity.
        Returns:
        taxId
      • setTaxId

        public void setTaxId​(String taxId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to BillingEntity
      • fromJson

        public static BillingEntity fromJson​(String jsonString)
                                      throws IOException
        Create an instance of BillingEntity given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of BillingEntity
        Throws:
        IOException - if the JSON string is invalid with respect to BillingEntity
      • toJson

        public String toJson()
        Convert an instance of BillingEntity to an JSON string
        Returns:
        JSON string