Class Customer

java.lang.Object
com.onlinepayments.domain.Customer

public class Customer extends Object
  • Constructor Details

    • Customer

      public Customer()
  • Method Details

    • getAccount

      public CustomerAccount getAccount()
      Object containing data related to the account the customer has with you
    • setAccount

      public void setAccount(CustomerAccount value)
      Object containing data related to the account the customer has with you
    • withAccount

      public Customer withAccount(CustomerAccount value)
      Object containing data related to the account the customer has with you
    • getAccountType

      public String getAccountType()
      Type of the customer account that is used to place this order. Can have one of the following values:
      • none - The account that was used to place the order with is a guest account or no account was used at all
      • created - The customer account was created during this transaction
      • existing - The customer account was an already existing account prior to this transaction
    • setAccountType

      public void setAccountType(String value)
      Type of the customer account that is used to place this order. Can have one of the following values:
      • none - The account that was used to place the order with is a guest account or no account was used at all
      • created - The customer account was created during this transaction
      • existing - The customer account was an already existing account prior to this transaction
    • withAccountType

      public Customer withAccountType(String value)
      Type of the customer account that is used to place this order. Can have one of the following values:
      • none - The account that was used to place the order with is a guest account or no account was used at all
      • created - The customer account was created during this transaction
      • existing - The customer account was an already existing account prior to this transaction
    • getBillingAddress

      public Address getBillingAddress()
      Object containing billing address details.
    • setBillingAddress

      public void setBillingAddress(Address value)
      Object containing billing address details.
    • withBillingAddress

      public Customer withBillingAddress(Address value)
      Object containing billing address details.
    • getCompanyInformation

      public CompanyInformation getCompanyInformation()
      Object containing company information
    • setCompanyInformation

      public void setCompanyInformation(CompanyInformation value)
      Object containing company information
    • withCompanyInformation

      public Customer withCompanyInformation(CompanyInformation value)
      Object containing company information
    • getContactDetails

      public ContactDetails getContactDetails()
      Object containing contact details like email address and phone number
    • setContactDetails

      public void setContactDetails(ContactDetails value)
      Object containing contact details like email address and phone number
    • withContactDetails

      public Customer withContactDetails(ContactDetails value)
      Object containing contact details like email address and phone number
    • getDevice

      public CustomerDevice getDevice()
      Object containing information on the device and browser of the customer
    • setDevice

      public void setDevice(CustomerDevice value)
      Object containing information on the device and browser of the customer
    • withDevice

      public Customer withDevice(CustomerDevice value)
      Object containing information on the device and browser of the customer
    • getFiscalNumber

      public String getFiscalNumber()
      Fiscal registration number of the customer or the tax registration number of the company for a business customer. Please find below specifics per country:
      • Brazil - Consumer (CPF) with a length of 11 digits
      • Brazil - Company (CNPJ) with a length of 14 digits
      • Denmark - Consumer (CPR-nummer or personnummer) with a length of 10 digits
      • Finland - Consumer (Finnish: henkilötunnus (abbreviated as HETU), Swedish: personbeteckning) with a length of 11 characters
      • Norway - Consumer (fødselsnummer) with a length of 11 digits
      • Sweden - Consumer (personnummer) with a length of 10 or 12 digits
    • setFiscalNumber

      public void setFiscalNumber(String value)
      Fiscal registration number of the customer or the tax registration number of the company for a business customer. Please find below specifics per country:
      • Brazil - Consumer (CPF) with a length of 11 digits
      • Brazil - Company (CNPJ) with a length of 14 digits
      • Denmark - Consumer (CPR-nummer or personnummer) with a length of 10 digits
      • Finland - Consumer (Finnish: henkilötunnus (abbreviated as HETU), Swedish: personbeteckning) with a length of 11 characters
      • Norway - Consumer (fødselsnummer) with a length of 11 digits
      • Sweden - Consumer (personnummer) with a length of 10 or 12 digits
    • withFiscalNumber

      public Customer withFiscalNumber(String value)
      Fiscal registration number of the customer or the tax registration number of the company for a business customer. Please find below specifics per country:
      • Brazil - Consumer (CPF) with a length of 11 digits
      • Brazil - Company (CNPJ) with a length of 14 digits
      • Denmark - Consumer (CPR-nummer or personnummer) with a length of 10 digits
      • Finland - Consumer (Finnish: henkilötunnus (abbreviated as HETU), Swedish: personbeteckning) with a length of 11 characters
      • Norway - Consumer (fødselsnummer) with a length of 11 digits
      • Sweden - Consumer (personnummer) with a length of 10 or 12 digits
    • getLocale

      public String getLocale()
      The locale that the customer should be addressed in (for 3rd parties). Note that some 3rd party providers only support the languageCode part of the locale, in those cases we will only use part of the locale provided.
    • setLocale

      public void setLocale(String value)
      The locale that the customer should be addressed in (for 3rd parties). Note that some 3rd party providers only support the languageCode part of the locale, in those cases we will only use part of the locale provided.
    • withLocale

      public Customer withLocale(String value)
      The locale that the customer should be addressed in (for 3rd parties). Note that some 3rd party providers only support the languageCode part of the locale, in those cases we will only use part of the locale provided.
    • getMerchantCustomerId

      public String getMerchantCustomerId()
      Your identifier for the customer. It is used in the fraud-screening process for payments on the payment platform.
    • setMerchantCustomerId

      public void setMerchantCustomerId(String value)
      Your identifier for the customer. It is used in the fraud-screening process for payments on the payment platform.
    • withMerchantCustomerId

      public Customer withMerchantCustomerId(String value)
      Your identifier for the customer. It is used in the fraud-screening process for payments on the payment platform.
    • getPersonalInformation

      public PersonalInformation getPersonalInformation()
      Object containing personal information like name, date of birth and gender.
    • setPersonalInformation

      public void setPersonalInformation(PersonalInformation value)
      Object containing personal information like name, date of birth and gender.
    • withPersonalInformation

      public Customer withPersonalInformation(PersonalInformation value)
      Object containing personal information like name, date of birth and gender.