wallee
Version:
TypeScript/JavaScript client for wallee
84 lines (83 loc) • 2.41 kB
TypeScript
/**
*
* @export
* @interface Customer
*/
export interface Customer {
/**
* The ID of the space this object belongs to.
* @type {number}
* @memberof Customer
*/
readonly linkedSpaceId?: number;
/**
* Allow to store additional information about the object.
* @type {{ [key: string]: string; }}
* @memberof Customer
*/
readonly metaData?: {
[key: string]: string;
};
/**
* The customer's email address.
* @type {string}
* @memberof Customer
*/
readonly emailAddress?: string;
/**
* The customer's family or last name.
* @type {string}
* @memberof Customer
*/
readonly familyName?: string;
/**
* The customer's given or first name.
* @type {string}
* @memberof Customer
*/
readonly givenName?: string;
/**
* The customer's preferred currency.
* @type {string}
* @memberof Customer
*/
readonly preferredCurrency?: string;
/**
* The customer's ID in the merchant's system.
* @type {string}
* @memberof Customer
*/
readonly customerId?: string;
/**
* The language that is linked to the object.
* @type {string}
* @memberof Customer
*/
readonly language?: string;
/**
* A unique identifier for the object.
* @type {number}
* @memberof Customer
*/
readonly id?: number;
/**
* The date and time when the object was created.
* @type {Date}
* @memberof Customer
*/
readonly createdOn?: Date;
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
* @type {number}
* @memberof Customer
*/
readonly version?: number;
}
/**
* Check if a given object implements the Customer interface.
*/
export declare function instanceOfCustomer(value: object): value is Customer;
export declare function CustomerFromJSON(json: any): Customer;
export declare function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Customer;
export declare function CustomerToJSON(json: any): Customer;
export declare function CustomerToJSONTyped(value?: Omit<Customer, 'linkedSpaceId' | 'metaData' | 'emailAddress' | 'familyName' | 'givenName' | 'preferredCurrency' | 'customerId' | 'language' | 'id' | 'createdOn' | 'version'> | null, ignoreDiscriminator?: boolean): any;