/** * NOTE: This file is auto generated by Xendit. * Do not edit the class manually. * Improvements? Share your ideas at https://github.com/xendit/xendit-node */ import type { Address } from './Address'; import type { BusinessDetail } from './BusinessDetail'; import type { EndCustomerStatus } from './EndCustomerStatus'; import type { IdentityAccountResponse } from './IdentityAccountResponse'; import type { IndividualDetail } from './IndividualDetail'; import type { KYCDocumentResponse } from './KYCDocumentResponse'; /** * * @export * @interface Customer */ export interface Customer { /** * * @type {string} * @memberof Customer */ type: CustomerTypeEnum; /** * Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. * @type {string} * @memberof Customer */ referenceId: string; /** * * @type {IndividualDetail} * @memberof Customer */ individualDetail: IndividualDetail | null; /** * * @type {BusinessDetail} * @memberof Customer */ businessDetail: BusinessDetail | null; /** * * @type {string} * @memberof Customer */ description: string | null; /** * * @type {string} * @memberof Customer */ email: string | null; /** * * @type {string} * @memberof Customer */ mobileNumber: string | null; /** * * @type {string} * @memberof Customer */ phoneNumber: string | null; /** * * @type {Array
} * @memberof Customer */ addresses: Array
| null; /** * * @type {Array} * @memberof Customer */ identityAccounts: Array | null; /** * * @type {Array} * @memberof Customer */ kycDocuments: Array | null; /** * * @type {object} * @memberof Customer */ metadata: object | null; /** * * @type {EndCustomerStatus} * @memberof Customer */ status?: EndCustomerStatus | null; /** * * @type {string} * @memberof Customer */ id: string; /** * * @type {Date} * @memberof Customer */ created: Date; /** * * @type {Date} * @memberof Customer */ updated: Date; } /** * @export */ export declare const CustomerTypeEnum: { readonly Individual: "INDIVIDUAL"; readonly Business: "BUSINESS"; }; export type CustomerTypeEnum = typeof CustomerTypeEnum[keyof typeof CustomerTypeEnum]; /** * Check if a given object implements the Customer interface. */ export declare function instanceOfCustomer(value: object): boolean; export declare function CustomerFromJSON(json: any): Customer; export declare function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Customer; export declare function CustomerToJSON(value?: Customer | null): any;