Class Customer


  • public class Customer
    extends java.lang.Object
    Customer information for payment setup
    • Constructor Detail

      • Customer

        public Customer()
      • Customer

        public Customer​(CustomerEmail email,
                        java.lang.String name,
                        Phone phone,
                        CustomerDevice device,
                        MerchantAccount merchantAccount)
        Creates a new Customer instance.
        Parameters:
        email - The customer's email information
        name - <= 100 characters The customer's full name
        phone - The customer's phone number
        device - Information about the customer's device
        merchantAccount - Details of the account the customer holds with the merchant
    • Method Detail

      • getEmail

        public CustomerEmail getEmail()
        The customer's email information
      • getName

        public java.lang.String getName()
        <= 100 characters The customer's full name
      • getPhone

        public Phone getPhone()
        The customer's phone number
      • getDevice

        public CustomerDevice getDevice()
        Information about the customer's device
      • getMerchantAccount

        public MerchantAccount getMerchantAccount()
        Details of the account the customer holds with the merchant
      • setEmail

        public void setEmail​(CustomerEmail email)
        The customer's email information
      • setName

        public void setName​(java.lang.String name)
        <= 100 characters The customer's full name
      • setPhone

        public void setPhone​(Phone phone)
        The customer's phone number
      • setDevice

        public void setDevice​(CustomerDevice device)
        Information about the customer's device
      • setMerchantAccount

        public void setMerchantAccount​(MerchantAccount merchantAccount)
        Details of the account the customer holds with the merchant
      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

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