onshape-clients
Version:
The meta package for creating the various Onshape clients
122 lines (115 loc) • 2.97 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 { BTUserSummaryInfo } from './bTUserSummaryInfo';
export class BTDiscountInfo {
'ownerId'?: string;
'createdAt'?: Date;
'planId'?: string;
'createdBy'?: BTUserSummaryInfo;
'percentOff'?: number;
'amountOff'?: number;
'couponType'?: number;
'couponValidMonths'?: number;
'expiresAt'?: Date;
'usedAt'?: Date;
'trialEndDate'?: string;
'accountBalance'?: number;
'name'?: string;
'id'?: string;
'href'?: string;
'viewRef'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "ownerId",
"baseName": "ownerId",
"type": "string"
},
{
"name": "createdAt",
"baseName": "createdAt",
"type": "Date"
},
{
"name": "planId",
"baseName": "planId",
"type": "string"
},
{
"name": "createdBy",
"baseName": "createdBy",
"type": "BTUserSummaryInfo"
},
{
"name": "percentOff",
"baseName": "percentOff",
"type": "number"
},
{
"name": "amountOff",
"baseName": "amountOff",
"type": "number"
},
{
"name": "couponType",
"baseName": "couponType",
"type": "number"
},
{
"name": "couponValidMonths",
"baseName": "couponValidMonths",
"type": "number"
},
{
"name": "expiresAt",
"baseName": "expiresAt",
"type": "Date"
},
{
"name": "usedAt",
"baseName": "usedAt",
"type": "Date"
},
{
"name": "trialEndDate",
"baseName": "trialEndDate",
"type": "string"
},
{
"name": "accountBalance",
"baseName": "accountBalance",
"type": "number"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "href",
"baseName": "href",
"type": "string"
},
{
"name": "viewRef",
"baseName": "viewRef",
"type": "string"
} ];
static getAttributeTypeMap() {
return BTDiscountInfo.attributeTypeMap;
}
}