Class CustomerToken

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

public class CustomerToken extends Object
Models a customer token.
  • Constructor Details

    • CustomerToken

      public CustomerToken()
  • Method Details

    • setToken

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

      public String getToken()
      Gets BlockChyp assigned customer id.
      Returns:
      BlockChyp assigned customer id.
    • setMaskedPan

      public void setMaskedPan(String value)
      Sets masked primary account number.
      Parameters:
      value - masked primary account number.
    • getMaskedPan

      public String getMaskedPan()
      Gets masked primary account number.
      Returns:
      masked primary account number.
    • setExpiryMonth

      public void setExpiryMonth(String value)
      Sets expiration month.
      Parameters:
      value - expiration month.
    • getExpiryMonth

      public String getExpiryMonth()
      Gets expiration month.
      Returns:
      expiration month.
    • setExpiryYear

      public void setExpiryYear(String value)
      Sets expiration month.
      Parameters:
      value - expiration month.
    • getExpiryYear

      public String getExpiryYear()
      Gets expiration month.
      Returns:
      expiration month.
    • setPaymentType

      public void setPaymentType(String value)
      Sets payment type.
      Parameters:
      value - payment type.
    • getPaymentType

      public String getPaymentType()
      Gets payment type.
      Returns:
      payment type.
    • setAccountType

      public void setAccountType(String value)
      Sets bank account type (checking, saving).
      Parameters:
      value - bank account type (checking, saving).
    • getAccountType

      public String getAccountType()
      Gets bank account type (checking, saving).
      Returns:
      bank account type (checking, saving).
    • setAccountHolderType

      public void setAccountHolderType(String value)
      Sets bank account holder type (personal, business).
      Parameters:
      value - bank account holder type (personal, business).
    • getAccountHolderType

      public String getAccountHolderType()
      Gets bank account holder type (personal, business).
      Returns:
      bank account holder type (personal, business).
    • setBankName

      public void setBankName(String value)
      Sets bank name.
      Parameters:
      value - bank name.
    • getBankName

      public String getBankName()
      Gets bank name.
      Returns:
      bank name.
    • setRoutingNumber

      public void setRoutingNumber(String value)
      Sets routing number.
      Parameters:
      value - routing number.
    • getRoutingNumber

      public String getRoutingNumber()
      Gets routing number.
      Returns:
      routing number.
    • setTokenHash

      public void setTokenHash(String value)
      Sets token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
      Parameters:
      value - token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
    • getTokenHash

      public String getTokenHash()
      Gets token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
      Returns:
      token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
    • setBin

      public void setBin(String value)
      Sets card bin.
      Parameters:
      value - card bin.
    • getBin

      public String getBin()
      Gets card bin.
      Returns:
      card bin.
    • setPostalCode

      public void setPostalCode(String value)
      Sets the card postal code.
      Parameters:
      value - the card postal code.
    • getPostalCode

      public String getPostalCode()
      Gets the card postal code.
      Returns:
      the card postal code.
    • setAddress

      public void setAddress(String value)
      Sets the card address.
      Parameters:
      value - the card address.
    • getAddress

      public String getAddress()
      Gets the card address.
      Returns:
      the card address.
    • setCountry

      public void setCountry(String value)
      Sets the card country.
      Parameters:
      value - the card country.
    • getCountry

      public String getCountry()
      Gets the card country.
      Returns:
      the card country.
    • setCardHolderName

      public void setCardHolderName(String value)
      Sets the card holder name.
      Parameters:
      value - the card holder name.
    • getCardHolderName

      public String getCardHolderName()
      Gets the card holder name.
      Returns:
      the card holder name.
    • setCustomers

      public void setCustomers(Collection<Customer> value)
      Sets models customer records associated with a payment token.
      Parameters:
      value - models customer records associated with a payment token.
    • getCustomers

      public Collection<Customer> getCustomers()
      Gets models customer records associated with a payment token.
      Returns:
      models customer records associated with a payment token.
    • addCustomer

      public void addCustomer(Customer value)
      Adds a models customer records associated with a payment token.
      Parameters:
      value - models customer records associated with a payment token.