UNPKG

pcp-server-nodejs-sdk

Version:

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-server-nodeJS-SDK&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [![Coverage](https://sonarcloud.io/api/pr

40 lines (39 loc) 1.78 kB
import type { Address } from './Address.js'; import type { BusinessRelation } from './BusinessRelation.js'; import type { CompanyInformation } from './CompanyInformation.js'; import type { ContactDetails } from './ContactDetails.js'; import type { CustomerAccount } from './CustomerAccount.js'; import type { PersonalInformation } from './PersonalInformation.js'; /** @description Object containing the details of a customer. */ export interface Customer { companyInformation?: CompanyInformation; /** * @description Unique identifier for the customer. * @example 1234 */ merchantCustomerId?: string; billingAddress?: Address; contactDetails?: ContactDetails; /** * @description 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 */ fiscalNumber?: string; businessRelation?: BusinessRelation; /** * @description The locale that the customer should be addressed in (for 3rd parties). * * Note: Only the language code is supported. * @example de */ locale?: string; personalInformation?: PersonalInformation; account?: CustomerAccount; }