Class Customer

java.lang.Object
com.blockchyp.client.dto.Customer

public class Customer extends Object
Models a customer record.
  • Constructor Details

    • Customer

      public Customer()
  • Method Details

    • setId

      public void setId(String value)
      Sets BlockChyp assigned customer id.
      Parameters:
      value - BlockChyp assigned customer id.
    • getId

      public String getId()
      Gets BlockChyp assigned customer id.
      Returns:
      BlockChyp assigned customer id.
    • setCustomerRef

      public void setCustomerRef(String value)
      Sets optional customer ref that can be used for the client's system's customer id.
      Parameters:
      value - optional customer ref that can be used for the client's system's customer id.
    • getCustomerRef

      public String getCustomerRef()
      Gets optional customer ref that can be used for the client's system's customer id.
      Returns:
      optional customer ref that can be used for the client's system's customer id.
    • setFirstName

      public void setFirstName(String value)
      Sets customer's first name.
      Parameters:
      value - customer's first name.
    • getFirstName

      public String getFirstName()
      Gets customer's first name.
      Returns:
      customer's first name.
    • setLastName

      public void setLastName(String value)
      Sets customer's last name.
      Parameters:
      value - customer's last name.
    • getLastName

      public String getLastName()
      Gets customer's last name.
      Returns:
      customer's last name.
    • setCompanyName

      public void setCompanyName(String value)
      Sets customer's company name.
      Parameters:
      value - customer's company name.
    • getCompanyName

      public String getCompanyName()
      Gets customer's company name.
      Returns:
      customer's company name.
    • setEmailAddress

      public void setEmailAddress(String value)
      Sets customer's email address.
      Parameters:
      value - customer's email address.
    • getEmailAddress

      public String getEmailAddress()
      Gets customer's email address.
      Returns:
      customer's email address.
    • setSmsNumber

      public void setSmsNumber(String value)
      Sets customer's SMS or mobile number.
      Parameters:
      value - customer's SMS or mobile number.
    • getSmsNumber

      public String getSmsNumber()
      Gets customer's SMS or mobile number.
      Returns:
      customer's SMS or mobile number.
    • setPaymentMethods

      public void setPaymentMethods(Collection<CustomerToken> value)
      Sets model saved payment methods associated with a customer.
      Parameters:
      value - model saved payment methods associated with a customer.
    • getPaymentMethods

      public Collection<CustomerToken> getPaymentMethods()
      Gets model saved payment methods associated with a customer.
      Returns:
      model saved payment methods associated with a customer.
    • addPaymentMethod

      public void addPaymentMethod(CustomerToken value)
      Adds a model saved payment methods associated with a customer.
      Parameters:
      value - model saved payment methods associated with a customer.