onshape-clients
Version:
The meta package for creating the various Onshape clients
171 lines (164 loc) • 4.71 kB
text/typescript
/**
* Onshape REST API
* The Onshape REST API consumed by all clients.
*
* OpenAPI spec version: 1.93
* Contact: api-support@onshape.zendesk.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CustomerCardCollection } from './customerCardCollection';
import { CustomerSubscriptionCollection } from './customerSubscriptionCollection';
import { Discount } from './discount';
import { ExternalAccount } from './externalAccount';
import { ExternalAccountCollection } from './externalAccountCollection';
import { NextRecurringCharge } from './nextRecurringCharge';
import { ShippingDetails } from './shippingDetails';
import { Subscription } from './subscription';
export class Customer {
'id'?: string;
'object'?: string;
'accountBalance'?: number;
'businessVatId'?: string;
'created'?: number;
'currency'?: string;
'defaultSource'?: string;
'deleted'?: boolean;
'delinquent'?: boolean;
'description'?: string;
'discount'?: Discount;
'email'?: string;
'livemode'?: boolean;
'metadata'?: { [key: string]: string; };
'shipping'?: ShippingDetails;
'sources'?: ExternalAccountCollection;
'subscriptions'?: CustomerSubscriptionCollection;
'cards'?: CustomerCardCollection;
'defaultCard'?: string;
'nextRecurringCharge'?: NextRecurringCharge;
'subscription'?: Subscription;
'trialEnd'?: number;
'defaultSourceObject'?: ExternalAccount;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "object",
"baseName": "object",
"type": "string"
},
{
"name": "accountBalance",
"baseName": "accountBalance",
"type": "number"
},
{
"name": "businessVatId",
"baseName": "businessVatId",
"type": "string"
},
{
"name": "created",
"baseName": "created",
"type": "number"
},
{
"name": "currency",
"baseName": "currency",
"type": "string"
},
{
"name": "defaultSource",
"baseName": "defaultSource",
"type": "string"
},
{
"name": "deleted",
"baseName": "deleted",
"type": "boolean"
},
{
"name": "delinquent",
"baseName": "delinquent",
"type": "boolean"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "discount",
"baseName": "discount",
"type": "Discount"
},
{
"name": "email",
"baseName": "email",
"type": "string"
},
{
"name": "livemode",
"baseName": "livemode",
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }"
},
{
"name": "shipping",
"baseName": "shipping",
"type": "ShippingDetails"
},
{
"name": "sources",
"baseName": "sources",
"type": "ExternalAccountCollection"
},
{
"name": "subscriptions",
"baseName": "subscriptions",
"type": "CustomerSubscriptionCollection"
},
{
"name": "cards",
"baseName": "cards",
"type": "CustomerCardCollection"
},
{
"name": "defaultCard",
"baseName": "defaultCard",
"type": "string"
},
{
"name": "nextRecurringCharge",
"baseName": "nextRecurringCharge",
"type": "NextRecurringCharge"
},
{
"name": "subscription",
"baseName": "subscription",
"type": "Subscription"
},
{
"name": "trialEnd",
"baseName": "trialEnd",
"type": "number"
},
{
"name": "defaultSourceObject",
"baseName": "defaultSourceObject",
"type": "ExternalAccount"
} ];
static getAttributeTypeMap() {
return Customer.attributeTypeMap;
}
}