wallee
Version:
TypeScript/JavaScript client for wallee
67 lines (66 loc) • 2.08 kB
TypeScript
import type { Customer } from './Customer';
import type { CustomerAddressType } from './CustomerAddressType';
import type { CustomerPostalAddress } from './CustomerPostalAddress';
/**
*
* @export
* @interface CustomerAddress
*/
export interface CustomerAddress {
/**
* The ID of the space this object belongs to.
* @type {number}
* @memberof CustomerAddress
*/
readonly linkedSpaceId?: number;
/**
*
* @type {CustomerPostalAddress}
* @memberof CustomerAddress
*/
address?: CustomerPostalAddress;
/**
*
* @type {CustomerAddressType}
* @memberof CustomerAddress
*/
addressType?: CustomerAddressType;
/**
* A unique identifier for the object.
* @type {number}
* @memberof CustomerAddress
*/
readonly id?: number;
/**
* The date and time when the object was created.
* @type {Date}
* @memberof CustomerAddress
*/
readonly createdOn?: Date;
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
* @type {number}
* @memberof CustomerAddress
*/
readonly version?: number;
/**
*
* @type {Customer}
* @memberof CustomerAddress
*/
customer?: Customer;
/**
* Whether this is the customer's default address.
* @type {boolean}
* @memberof CustomerAddress
*/
readonly defaultAddress?: boolean;
}
/**
* Check if a given object implements the CustomerAddress interface.
*/
export declare function instanceOfCustomerAddress(value: object): value is CustomerAddress;
export declare function CustomerAddressFromJSON(json: any): CustomerAddress;
export declare function CustomerAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerAddress;
export declare function CustomerAddressToJSON(json: any): CustomerAddress;
export declare function CustomerAddressToJSONTyped(value?: Omit<CustomerAddress, 'linkedSpaceId' | 'id' | 'createdOn' | 'version' | 'defaultAddress'> | null, ignoreDiscriminator?: boolean): any;