Class Customer


  • public final class Customer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Customer()  
      Customer​(java.lang.String email, java.lang.String name, java.lang.String id, Phone phone, java.lang.String taxNumber)
      Creates a new Customer instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Customer.CustomerBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getEmail()
      The customer's email address.
      java.lang.String getId()
      The unique identifier for an existing customer.
      java.lang.String getName()
      The customer's name.
      Phone getPhone()
      The customer's phone number.
      java.lang.String getTaxNumber()
      The customer’s value-added tax (VAT) registration number.
      int hashCode()  
      void setEmail​(java.lang.String email)
      The customer's email address.
      void setId​(java.lang.String id)
      The unique identifier for an existing customer.
      void setName​(java.lang.String name)
      The customer's name.
      void setPhone​(Phone phone)
      The customer's phone number.
      void setTaxNumber​(java.lang.String taxNumber)
      The customer’s value-added tax (VAT) registration number.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Customer

        public Customer()
      • Customer

        public Customer​(java.lang.String email,
                        java.lang.String name,
                        java.lang.String id,
                        Phone phone,
                        java.lang.String taxNumber)
        Creates a new Customer instance.
        Parameters:
        email - The customer's email address. Required if source.type is tamara.
        name - The customer's name. Required if source.type is tamara.
        id - The unique identifier for an existing customer.
        phone - The customer's phone number. Required if source.type is tamara.
        taxNumber - The customer’s value-added tax (VAT) registration number.
    • Method Detail

      • getEmail

        public java.lang.String getEmail()
        The customer's email address. Required if source.type is tamara.
      • getName

        public java.lang.String getName()
        The customer's name. Required if source.type is tamara.
      • getId

        public java.lang.String getId()
        The unique identifier for an existing customer.
      • getPhone

        public Phone getPhone()
        The customer's phone number. Required if source.type is tamara.
      • getTaxNumber

        public java.lang.String getTaxNumber()
        The customer’s value-added tax (VAT) registration number.
      • setEmail

        public void setEmail​(java.lang.String email)
        The customer's email address. Required if source.type is tamara.
      • setName

        public void setName​(java.lang.String name)
        The customer's name. Required if source.type is tamara.
      • setId

        public void setId​(java.lang.String id)
        The unique identifier for an existing customer.
      • setPhone

        public void setPhone​(Phone phone)
        The customer's phone number. Required if source.type is tamara.
      • setTaxNumber

        public void setTaxNumber​(java.lang.String taxNumber)
        The customer’s value-added tax (VAT) registration number.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object