Package com.onlinepayments.domain
Class Customer
java.lang.Object
com.onlinepayments.domain.Customer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject containing data related to the account the customer has with youType of the customer account that is used to place this order.Object containing billing address details.Object containing company informationObject containing contact details like email address and phone numberObject containing information on the device and browser of the customerFiscal registration number of the customer or the tax registration number of the company for a business customer.The locale that the customer should be addressed in (for 3rd parties).Your identifier for the customer.Object containing personal information like name, date of birth and gender.voidsetAccount(CustomerAccount value) Object containing data related to the account the customer has with youvoidsetAccountType(String value) Type of the customer account that is used to place this order.voidsetBillingAddress(Address value) Object containing billing address details.voidObject containing company informationvoidsetContactDetails(ContactDetails value) Object containing contact details like email address and phone numbervoidsetDevice(CustomerDevice value) Object containing information on the device and browser of the customervoidsetFiscalNumber(String value) Fiscal registration number of the customer or the tax registration number of the company for a business customer.voidThe locale that the customer should be addressed in (for 3rd parties).voidsetMerchantCustomerId(String value) Your identifier for the customer.voidObject containing personal information like name, date of birth and gender.withAccount(CustomerAccount value) Object containing data related to the account the customer has with youwithAccountType(String value) Type of the customer account that is used to place this order.withBillingAddress(Address value) Object containing billing address details.Object containing company informationwithContactDetails(ContactDetails value) Object containing contact details like email address and phone numberwithDevice(CustomerDevice value) Object containing information on the device and browser of the customerwithFiscalNumber(String value) Fiscal registration number of the customer or the tax registration number of the company for a business customer.withLocale(String value) The locale that the customer should be addressed in (for 3rd parties).withMerchantCustomerId(String value) Your identifier for the customer.Object containing personal information like name, date of birth and gender.
-
Constructor Details
-
Customer
public Customer()
-
-
Method Details
-
getAccount
Object containing data related to the account the customer has with you -
setAccount
Object containing data related to the account the customer has with you -
withAccount
Object containing data related to the account the customer has with you -
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
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
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
Object containing billing address details. -
setBillingAddress
Object containing billing address details. -
withBillingAddress
Object containing billing address details. -
getCompanyInformation
Object containing company information -
setCompanyInformation
Object containing company information -
withCompanyInformation
Object containing company information -
getContactDetails
Object containing contact details like email address and phone number -
setContactDetails
Object containing contact details like email address and phone number -
withContactDetails
Object containing contact details like email address and phone number -
getDevice
Object containing information on the device and browser of the customer -
setDevice
Object containing information on the device and browser of the customer -
withDevice
Object containing information on the device and browser of the customer -
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
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
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
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
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
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
Your identifier for the customer. It is used in the fraud-screening process for payments on the payment platform. -
setMerchantCustomerId
Your identifier for the customer. It is used in the fraud-screening process for payments on the payment platform. -
withMerchantCustomerId
Your identifier for the customer. It is used in the fraud-screening process for payments on the payment platform. -
getPersonalInformation
Object containing personal information like name, date of birth and gender. -
setPersonalInformation
Object containing personal information like name, date of birth and gender. -
withPersonalInformation
Object containing personal information like name, date of birth and gender.
-