Class BillingEntity


  • public class BillingEntity
    extends Object
    BillingEntity
    • Constructor Detail

      • BillingEntity

        public BillingEntity()
    • Method Detail

      • address

        public BillingEntity address​(Address address)
        address
        Parameters:
        address -
        Returns:
        the current BillingEntity instance, allowing for method chaining
      • getAddress

        public Address getAddress()
        address
        Returns:
        address
      • setAddress

        public void setAddress​(Address address)
        address
        Parameters:
        address -
      • email

        public BillingEntity email​(String email)
        The email address of the billing entity.
        Parameters:
        email -
        Returns:
        the current BillingEntity instance, allowing for method chaining
      • getEmail

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

        public void setEmail​(String email)
        The email address of the billing entity.
        Parameters:
        email -
      • id

        public BillingEntity id​(String id)
        The unique identifier of the billing entity, for use as `billingEntityId` when creating an order.
        Parameters:
        id -
        Returns:
        the current BillingEntity instance, allowing for method chaining
      • 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)
        The unique identifier of the billing entity, for use as `billingEntityId` when creating an order.
        Parameters:
        id -
      • name

        public BillingEntity name​(String name)
        The unique name of the billing entity.
        Parameters:
        name -
        Returns:
        the current BillingEntity instance, allowing for method chaining
      • getName

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

        public void setName​(String name)
        The unique name of the billing entity.
        Parameters:
        name -
      • taxId

        public BillingEntity taxId​(String taxId)
        The tax number of the billing entity.
        Parameters:
        taxId -
        Returns:
        the current BillingEntity instance, allowing for method chaining
      • getTaxId

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

        public void setTaxId​(String taxId)
        The tax number of the billing entity.
        Parameters:
        taxId -
      • equals

        public boolean equals​(Object o)
        Return true if this BillingEntity object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of BillingEntity to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException