Class Customer


  • public final class Customer
    extends java.lang.Object
    customer The customer associated with the payment, if provided in the request
    • Constructor Summary

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

      • Customer

        public Customer()
      • Customer

        public Customer​(java.lang.String id,
                        java.lang.String email,
                        java.lang.String name,
                        Phone phone,
                        Summary summary)
        Creates a new Customer instance.
        Parameters:
        id - The customer's unique identifier. This can be passed as a source when making a payment. [Required] ^(cus)_(\w{26})$
        email - The customer's email address. [Optional]
        name - The customer's name. [Optional]
        phone - The customer's phone number. [Optional]
        summary - Summary of the customer's transaction history. Used for risk assessment when source.type is Tamara [Optional]
    • Method Detail

      • getId

        public java.lang.String getId()
        The customer's unique identifier. This can be passed as a source when making a payment. [Required] ^(cus)_(\w{26})$
      • getEmail

        public java.lang.String getEmail()
        The customer's email address. [Optional]
      • getName

        public java.lang.String getName()
        The customer's name. [Optional]
      • getPhone

        public Phone getPhone()
        The customer's phone number. [Optional]
      • getSummary

        public Summary getSummary()
        Summary of the customer's transaction history. Used for risk assessment when source.type is Tamara [Optional]
      • setId

        public void setId​(java.lang.String id)
        The customer's unique identifier. This can be passed as a source when making a payment. [Required] ^(cus)_(\w{26})$
      • setEmail

        public void setEmail​(java.lang.String email)
        The customer's email address. [Optional]
      • setName

        public void setName​(java.lang.String name)
        The customer's name. [Optional]
      • setPhone

        public void setPhone​(Phone phone)
        The customer's phone number. [Optional]
      • setSummary

        public void setSummary​(Summary summary)
        Summary of the customer's transaction history. Used for risk assessment when source.type is Tamara [Optional]
      • 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