@managespace/sdk 0.0.65 → 0.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensibility/functions/project/billing.d.ts +1 -24
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +0 -20
- package/dist/extensibility/functions/project/index.d.ts +1 -1
- package/dist/extensibility/functions/project/index.js +1 -1
- package/dist/extensibility/functions/project/topics.enum.d.ts +15 -0
- package/dist/extensibility/functions/project/topics.enum.d.ts.map +1 -0
- package/dist/extensibility/functions/project/topics.enum.js +18 -0
- package/dist/generated/apis/default-api.d.ts +1 -44
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +0 -141
- package/dist/generated/models/cancel-subscription.d.ts +2 -2
- package/dist/generated/models/cancel-subscription.js +2 -2
- package/dist/generated/models/index.d.ts +0 -6
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -6
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +0 -30
- package/src/extensibility/functions/project/index.ts +1 -1
- package/src/extensibility/functions/project/topics.enum.ts +14 -0
- package/src/generated/.openapi-generator/FILES +0 -6
- package/src/generated/apis/default-api.ts +0 -237
- package/src/generated/models/cancel-subscription.ts +2 -2
- package/src/generated/models/index.ts +0 -6
- package/.turbo/turbo-build.log +0 -2
- package/dist/extensibility/functions/project/topics.type.d.ts +0 -2
- package/dist/extensibility/functions/project/topics.type.d.ts.map +0 -1
- package/dist/extensibility/functions/project/topics.type.js +0 -2
- package/dist/generated/models/charge-tier.d.ts +0 -57
- package/dist/generated/models/charge-tier.d.ts.map +0 -1
- package/dist/generated/models/charge-tier.js +0 -67
- package/dist/generated/models/create-charge.d.ts +0 -227
- package/dist/generated/models/create-charge.d.ts.map +0 -1
- package/dist/generated/models/create-charge.js +0 -181
- package/dist/generated/models/create-lease-status.d.ts +0 -46
- package/dist/generated/models/create-lease-status.d.ts.map +0 -1
- package/dist/generated/models/create-lease-status.js +0 -60
- package/dist/generated/models/create-order.d.ts +0 -142
- package/dist/generated/models/create-order.d.ts.map +0 -1
- package/dist/generated/models/create-order.js +0 -124
- package/dist/generated/models/get-orders200-response.d.ts +0 -41
- package/dist/generated/models/get-orders200-response.d.ts.map +0 -1
- package/dist/generated/models/get-orders200-response.js +0 -55
- package/dist/generated/models/lease-status-response.d.ts +0 -66
- package/dist/generated/models/lease-status-response.d.ts.map +0 -1
- package/dist/generated/models/lease-status-response.js +0 -70
- package/dist/generated/models/order-line-item.d.ts +0 -75
- package/dist/generated/models/order-line-item.d.ts.map +0 -1
- package/dist/generated/models/order-line-item.js +0 -79
- package/dist/generated/models/order-response.d.ts +0 -142
- package/dist/generated/models/order-response.d.ts.map +0 -1
- package/dist/generated/models/order-response.js +0 -124
- package/dist/generated/models/product-status.d.ts +0 -33
- package/dist/generated/models/product-status.d.ts.map +0 -1
- package/dist/generated/models/product-status.js +0 -58
- package/src/extensibility/functions/project/topics.type.ts +0 -16
- package/src/generated/models/charge-tier.ts +0 -102
- package/src/generated/models/create-charge.ts +0 -369
- package/src/generated/models/create-order.ts +0 -236
- package/src/generated/models/get-orders200-response.ts +0 -89
- package/src/generated/models/order-line-item.ts +0 -129
- package/src/generated/models/order-response.ts +0 -236
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace API
|
|
3
|
-
* ManageSpace API Documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
13
|
-
import type { ChargeTier } from './charge-tier';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface CreateCharge
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateCharge {
|
|
20
|
-
/**
|
|
21
|
-
* Charge ID
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof CreateCharge
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Product ID
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof CreateCharge
|
|
30
|
-
*/
|
|
31
|
-
productId: string;
|
|
32
|
-
/**
|
|
33
|
-
* Name of charge
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof CreateCharge
|
|
36
|
-
*/
|
|
37
|
-
name: string;
|
|
38
|
-
/**
|
|
39
|
-
* Description of charge
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof CreateCharge
|
|
42
|
-
*/
|
|
43
|
-
description: string;
|
|
44
|
-
/**
|
|
45
|
-
* Type of charge
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof CreateCharge
|
|
48
|
-
*/
|
|
49
|
-
type: string;
|
|
50
|
-
/**
|
|
51
|
-
* Time of charges
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof CreateCharge
|
|
54
|
-
*/
|
|
55
|
-
chargeTiming: string;
|
|
56
|
-
/**
|
|
57
|
-
* How charge is priced
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof CreateCharge
|
|
60
|
-
*/
|
|
61
|
-
pricingModel: string;
|
|
62
|
-
/**
|
|
63
|
-
* Original unit price of charge
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof CreateCharge
|
|
66
|
-
*/
|
|
67
|
-
listPrice: string;
|
|
68
|
-
/**
|
|
69
|
-
* List price base of charge
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof CreateCharge
|
|
72
|
-
*/
|
|
73
|
-
listPriceBase: string;
|
|
74
|
-
/**
|
|
75
|
-
* Billing period
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof CreateCharge
|
|
78
|
-
*/
|
|
79
|
-
billingPeriod: string;
|
|
80
|
-
/**
|
|
81
|
-
* Determine boundary of Charge period
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof CreateCharge
|
|
84
|
-
*/
|
|
85
|
-
billingPeriodStartAlignment: string;
|
|
86
|
-
/**
|
|
87
|
-
* Which day of the month or week Charge is invoiced
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof CreateCharge
|
|
90
|
-
*/
|
|
91
|
-
billingDay: string;
|
|
92
|
-
/**
|
|
93
|
-
* Charge for partial periods
|
|
94
|
-
* @type {boolean}
|
|
95
|
-
* @memberof CreateCharge
|
|
96
|
-
*/
|
|
97
|
-
proratePartialPeriods: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Determines proration logic
|
|
100
|
-
* @type {boolean}
|
|
101
|
-
* @memberof CreateCharge
|
|
102
|
-
*/
|
|
103
|
-
backchargeCurrentPeriod: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Number of periods/units to charge
|
|
106
|
-
* @type {number}
|
|
107
|
-
* @memberof CreateCharge
|
|
108
|
-
*/
|
|
109
|
-
prepaymentPeriods: number;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @type {boolean}
|
|
113
|
-
* @memberof CreateCharge
|
|
114
|
-
*/
|
|
115
|
-
defaultFromProduct: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Revenue Rule ID
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof CreateCharge
|
|
120
|
-
*/
|
|
121
|
-
revenueRuleId: string;
|
|
122
|
-
/**
|
|
123
|
-
* Date when revenue recognition will begin
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof CreateCharge
|
|
126
|
-
*/
|
|
127
|
-
recognitionStartDate: string;
|
|
128
|
-
/**
|
|
129
|
-
* Transaction type
|
|
130
|
-
* @type {Array<TransactionPostingEntries>}
|
|
131
|
-
* @memberof CreateCharge
|
|
132
|
-
*/
|
|
133
|
-
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
134
|
-
/**
|
|
135
|
-
* Custom fields on the invoice
|
|
136
|
-
* @type {object}
|
|
137
|
-
* @memberof CreateCharge
|
|
138
|
-
*/
|
|
139
|
-
customFields: object;
|
|
140
|
-
/**
|
|
141
|
-
* timing of one-time charge, to process at start of contract or termination
|
|
142
|
-
* @type {string}
|
|
143
|
-
* @memberof CreateCharge
|
|
144
|
-
*/
|
|
145
|
-
timing: string;
|
|
146
|
-
/**
|
|
147
|
-
* For one-time charges, date charge goes into effect; for custom billing period, provide Billing Period Name
|
|
148
|
-
* @type {string}
|
|
149
|
-
* @memberof CreateCharge
|
|
150
|
-
*/
|
|
151
|
-
effectiveDate: string;
|
|
152
|
-
/**
|
|
153
|
-
* Defines trigger date after which the one-time charges should be processed
|
|
154
|
-
* @type {string}
|
|
155
|
-
* @memberof CreateCharge
|
|
156
|
-
*/
|
|
157
|
-
bililngDate: string;
|
|
158
|
-
/**
|
|
159
|
-
* Date can drive bililng and/or revenue recognition upon completion of task
|
|
160
|
-
* @type {string}
|
|
161
|
-
* @memberof CreateCharge
|
|
162
|
-
*/
|
|
163
|
-
completionDate: string;
|
|
164
|
-
/**
|
|
165
|
-
* If there is a number of prepayment units you request
|
|
166
|
-
* @type {number}
|
|
167
|
-
* @memberof CreateCharge
|
|
168
|
-
*/
|
|
169
|
-
prepaymentAmount: number;
|
|
170
|
-
/**
|
|
171
|
-
* For usage charges, unit of measure for charge
|
|
172
|
-
* @type {string}
|
|
173
|
-
* @memberof CreateCharge
|
|
174
|
-
*/
|
|
175
|
-
unitOfMeasure: string;
|
|
176
|
-
/**
|
|
177
|
-
* Number of units included in plan for usage based charges (can be float)
|
|
178
|
-
* @type {number}
|
|
179
|
-
* @memberof CreateCharge
|
|
180
|
-
*/
|
|
181
|
-
includedUnits: number;
|
|
182
|
-
/**
|
|
183
|
-
* Unused prepayment units remaining for charge
|
|
184
|
-
* @type {number}
|
|
185
|
-
* @memberof CreateCharge
|
|
186
|
-
*/
|
|
187
|
-
unusedPrepaymentUnits: number;
|
|
188
|
-
/**
|
|
189
|
-
* For tiered/volume pricing, each tier will represent price of specific units in given range
|
|
190
|
-
* @type {Array<ChargeTier>}
|
|
191
|
-
* @memberof CreateCharge
|
|
192
|
-
*/
|
|
193
|
-
tiers: Array<ChargeTier>;
|
|
194
|
-
/**
|
|
195
|
-
* Ability to bill your customers for a present number of units
|
|
196
|
-
* @type {boolean}
|
|
197
|
-
* @memberof CreateCharge
|
|
198
|
-
*/
|
|
199
|
-
prepaidUnitsEnable: boolean;
|
|
200
|
-
/**
|
|
201
|
-
* Ability to automatically refill number of prepaid units
|
|
202
|
-
* @type {boolean}
|
|
203
|
-
* @memberof CreateCharge
|
|
204
|
-
*/
|
|
205
|
-
autoRefillPrepaymentUnits: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Refill quantity
|
|
208
|
-
* @type {number}
|
|
209
|
-
* @memberof CreateCharge
|
|
210
|
-
*/
|
|
211
|
-
refillQty: number;
|
|
212
|
-
/**
|
|
213
|
-
* Remaining balance of prepaid units to be refunded
|
|
214
|
-
* @type {boolean}
|
|
215
|
-
* @memberof CreateCharge
|
|
216
|
-
*/
|
|
217
|
-
refundUnitsOnCancel: boolean;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Check if a given object implements the CreateCharge interface.
|
|
221
|
-
*/
|
|
222
|
-
export declare function instanceOfCreateCharge(value: object): value is CreateCharge;
|
|
223
|
-
export declare function CreateChargeFromJSON(json: any): CreateCharge;
|
|
224
|
-
export declare function CreateChargeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCharge;
|
|
225
|
-
export declare function CreateChargeToJSON(json: any): CreateCharge;
|
|
226
|
-
export declare function CreateChargeToJSONTyped(value?: CreateCharge | null, ignoreDiscriminator?: boolean): any;
|
|
227
|
-
//# sourceMappingURL=create-charge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACzB;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,yBAAyB,EAAE,OAAO,CAAC;IACnC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAmC3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAwC/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAyC9G"}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ManageSpace API
|
|
6
|
-
* ManageSpace API Documentation
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateChargeToJSONTyped = exports.CreateChargeToJSON = exports.CreateChargeFromJSONTyped = exports.CreateChargeFromJSON = exports.instanceOfCreateCharge = void 0;
|
|
17
|
-
const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
18
|
-
const charge_tier_1 = require("./charge-tier");
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the CreateCharge interface.
|
|
21
|
-
*/
|
|
22
|
-
function instanceOfCreateCharge(value) {
|
|
23
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('productId' in value) || value['productId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('pricingModel' in value) || value['pricingModel'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('listPrice' in value) || value['listPrice'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('billingDay' in value) || value['billingDay'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('proratePartialPeriods' in value) || value['proratePartialPeriods'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('backchargeCurrentPeriod' in value) || value['backchargeCurrentPeriod'] === undefined)
|
|
50
|
-
return false;
|
|
51
|
-
if (!('prepaymentPeriods' in value) || value['prepaymentPeriods'] === undefined)
|
|
52
|
-
return false;
|
|
53
|
-
if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined)
|
|
54
|
-
return false;
|
|
55
|
-
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined)
|
|
56
|
-
return false;
|
|
57
|
-
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined)
|
|
58
|
-
return false;
|
|
59
|
-
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
|
|
60
|
-
return false;
|
|
61
|
-
if (!('customFields' in value) || value['customFields'] === undefined)
|
|
62
|
-
return false;
|
|
63
|
-
if (!('timing' in value) || value['timing'] === undefined)
|
|
64
|
-
return false;
|
|
65
|
-
if (!('effectiveDate' in value) || value['effectiveDate'] === undefined)
|
|
66
|
-
return false;
|
|
67
|
-
if (!('bililngDate' in value) || value['bililngDate'] === undefined)
|
|
68
|
-
return false;
|
|
69
|
-
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
70
|
-
return false;
|
|
71
|
-
if (!('prepaymentAmount' in value) || value['prepaymentAmount'] === undefined)
|
|
72
|
-
return false;
|
|
73
|
-
if (!('unitOfMeasure' in value) || value['unitOfMeasure'] === undefined)
|
|
74
|
-
return false;
|
|
75
|
-
if (!('includedUnits' in value) || value['includedUnits'] === undefined)
|
|
76
|
-
return false;
|
|
77
|
-
if (!('unusedPrepaymentUnits' in value) || value['unusedPrepaymentUnits'] === undefined)
|
|
78
|
-
return false;
|
|
79
|
-
if (!('tiers' in value) || value['tiers'] === undefined)
|
|
80
|
-
return false;
|
|
81
|
-
if (!('prepaidUnitsEnable' in value) || value['prepaidUnitsEnable'] === undefined)
|
|
82
|
-
return false;
|
|
83
|
-
if (!('autoRefillPrepaymentUnits' in value) || value['autoRefillPrepaymentUnits'] === undefined)
|
|
84
|
-
return false;
|
|
85
|
-
if (!('refillQty' in value) || value['refillQty'] === undefined)
|
|
86
|
-
return false;
|
|
87
|
-
if (!('refundUnitsOnCancel' in value) || value['refundUnitsOnCancel'] === undefined)
|
|
88
|
-
return false;
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
exports.instanceOfCreateCharge = instanceOfCreateCharge;
|
|
92
|
-
function CreateChargeFromJSON(json) {
|
|
93
|
-
return CreateChargeFromJSONTyped(json, false);
|
|
94
|
-
}
|
|
95
|
-
exports.CreateChargeFromJSON = CreateChargeFromJSON;
|
|
96
|
-
function CreateChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
97
|
-
if (json == null) {
|
|
98
|
-
return json;
|
|
99
|
-
}
|
|
100
|
-
return {
|
|
101
|
-
'id': json['id'],
|
|
102
|
-
'productId': json['productId'],
|
|
103
|
-
'name': json['name'],
|
|
104
|
-
'description': json['description'],
|
|
105
|
-
'type': json['type'],
|
|
106
|
-
'chargeTiming': json['chargeTiming'],
|
|
107
|
-
'pricingModel': json['pricingModel'],
|
|
108
|
-
'listPrice': json['listPrice'],
|
|
109
|
-
'listPriceBase': json['listPriceBase'],
|
|
110
|
-
'billingPeriod': json['billingPeriod'],
|
|
111
|
-
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
|
|
112
|
-
'billingDay': json['billingDay'],
|
|
113
|
-
'proratePartialPeriods': json['proratePartialPeriods'],
|
|
114
|
-
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'],
|
|
115
|
-
'prepaymentPeriods': json['prepaymentPeriods'],
|
|
116
|
-
'defaultFromProduct': json['defaultFromProduct'],
|
|
117
|
-
'revenueRuleId': json['revenueRuleId'],
|
|
118
|
-
'recognitionStartDate': json['recognitionStartDate'],
|
|
119
|
-
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
120
|
-
'customFields': json['customFields'],
|
|
121
|
-
'timing': json['timing'],
|
|
122
|
-
'effectiveDate': json['effectiveDate'],
|
|
123
|
-
'bililngDate': json['bililngDate'],
|
|
124
|
-
'completionDate': json['completionDate'],
|
|
125
|
-
'prepaymentAmount': json['prepaymentAmount'],
|
|
126
|
-
'unitOfMeasure': json['unitOfMeasure'],
|
|
127
|
-
'includedUnits': json['includedUnits'],
|
|
128
|
-
'unusedPrepaymentUnits': json['unusedPrepaymentUnits'],
|
|
129
|
-
'tiers': (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
|
|
130
|
-
'prepaidUnitsEnable': json['prepaidUnitsEnable'],
|
|
131
|
-
'autoRefillPrepaymentUnits': json['autoRefillPrepaymentUnits'],
|
|
132
|
-
'refillQty': json['refillQty'],
|
|
133
|
-
'refundUnitsOnCancel': json['refundUnitsOnCancel'],
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
exports.CreateChargeFromJSONTyped = CreateChargeFromJSONTyped;
|
|
137
|
-
function CreateChargeToJSON(json) {
|
|
138
|
-
return CreateChargeToJSONTyped(json, false);
|
|
139
|
-
}
|
|
140
|
-
exports.CreateChargeToJSON = CreateChargeToJSON;
|
|
141
|
-
function CreateChargeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
142
|
-
if (value == null) {
|
|
143
|
-
return value;
|
|
144
|
-
}
|
|
145
|
-
return {
|
|
146
|
-
'id': value['id'],
|
|
147
|
-
'productId': value['productId'],
|
|
148
|
-
'name': value['name'],
|
|
149
|
-
'description': value['description'],
|
|
150
|
-
'type': value['type'],
|
|
151
|
-
'chargeTiming': value['chargeTiming'],
|
|
152
|
-
'pricingModel': value['pricingModel'],
|
|
153
|
-
'listPrice': value['listPrice'],
|
|
154
|
-
'listPriceBase': value['listPriceBase'],
|
|
155
|
-
'billingPeriod': value['billingPeriod'],
|
|
156
|
-
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
157
|
-
'billingDay': value['billingDay'],
|
|
158
|
-
'proratePartialPeriods': value['proratePartialPeriods'],
|
|
159
|
-
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
160
|
-
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
161
|
-
'defaultFromProduct': value['defaultFromProduct'],
|
|
162
|
-
'revenueRuleId': value['revenueRuleId'],
|
|
163
|
-
'recognitionStartDate': value['recognitionStartDate'],
|
|
164
|
-
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
165
|
-
'customFields': value['customFields'],
|
|
166
|
-
'timing': value['timing'],
|
|
167
|
-
'effectiveDate': value['effectiveDate'],
|
|
168
|
-
'bililngDate': value['bililngDate'],
|
|
169
|
-
'completionDate': value['completionDate'],
|
|
170
|
-
'prepaymentAmount': value['prepaymentAmount'],
|
|
171
|
-
'unitOfMeasure': value['unitOfMeasure'],
|
|
172
|
-
'includedUnits': value['includedUnits'],
|
|
173
|
-
'unusedPrepaymentUnits': value['unusedPrepaymentUnits'],
|
|
174
|
-
'tiers': (value['tiers'].map(charge_tier_1.ChargeTierToJSON)),
|
|
175
|
-
'prepaidUnitsEnable': value['prepaidUnitsEnable'],
|
|
176
|
-
'autoRefillPrepaymentUnits': value['autoRefillPrepaymentUnits'],
|
|
177
|
-
'refillQty': value['refillQty'],
|
|
178
|
-
'refundUnitsOnCancel': value['refundUnitsOnCancel'],
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
exports.CreateChargeToJSONTyped = CreateChargeToJSONTyped;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace V2 Auth API
|
|
3
|
-
* ManageSpace Auth API Documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ProductStatus } from './product-status';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateLeaseStatus
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateLeaseStatus {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {ProductStatus}
|
|
22
|
-
* @memberof CreateLeaseStatus
|
|
23
|
-
*/
|
|
24
|
-
status: ProductStatus;
|
|
25
|
-
/**
|
|
26
|
-
* The price of the asset in the lowest denomination of the currency
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof CreateLeaseStatus
|
|
29
|
-
*/
|
|
30
|
-
price: number;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CreateLeaseStatus
|
|
35
|
-
*/
|
|
36
|
-
productId: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the CreateLeaseStatus interface.
|
|
40
|
-
*/
|
|
41
|
-
export declare function instanceOfCreateLeaseStatus(value: object): value is CreateLeaseStatus;
|
|
42
|
-
export declare function CreateLeaseStatusFromJSON(json: any): CreateLeaseStatus;
|
|
43
|
-
export declare function CreateLeaseStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeaseStatus;
|
|
44
|
-
export declare function CreateLeaseStatusToJSON(json: any): CreateLeaseStatus;
|
|
45
|
-
export declare function CreateLeaseStatusToJSONTyped(value?: CreateLeaseStatus | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
-
//# sourceMappingURL=create-lease-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-lease-status.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-lease-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,aAAa,CAAC;IACtB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAID;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ManageSpace V2 Auth API
|
|
6
|
-
* ManageSpace Auth API Documentation
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateLeaseStatusToJSONTyped = exports.CreateLeaseStatusToJSON = exports.CreateLeaseStatusFromJSONTyped = exports.CreateLeaseStatusFromJSON = exports.instanceOfCreateLeaseStatus = void 0;
|
|
17
|
-
const product_status_1 = require("./product-status");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the CreateLeaseStatus interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfCreateLeaseStatus(value) {
|
|
22
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
if (!('price' in value) || value['price'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('productId' in value) || value['productId'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
exports.instanceOfCreateLeaseStatus = instanceOfCreateLeaseStatus;
|
|
31
|
-
function CreateLeaseStatusFromJSON(json) {
|
|
32
|
-
return CreateLeaseStatusFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
exports.CreateLeaseStatusFromJSON = CreateLeaseStatusFromJSON;
|
|
35
|
-
function CreateLeaseStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'status': (0, product_status_1.ProductStatusFromJSON)(json['status']),
|
|
41
|
-
'price': json['price'],
|
|
42
|
-
'productId': json['productId'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.CreateLeaseStatusFromJSONTyped = CreateLeaseStatusFromJSONTyped;
|
|
46
|
-
function CreateLeaseStatusToJSON(json) {
|
|
47
|
-
return CreateLeaseStatusToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
exports.CreateLeaseStatusToJSON = CreateLeaseStatusToJSON;
|
|
50
|
-
function CreateLeaseStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'status': (0, product_status_1.ProductStatusToJSON)(value['status']),
|
|
56
|
-
'price': value['price'],
|
|
57
|
-
'productId': value['productId'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
exports.CreateLeaseStatusToJSONTyped = CreateLeaseStatusToJSONTyped;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace API
|
|
3
|
-
* ManageSpace API Documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { OrderLineItem } from './order-line-item';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateOrder
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateOrder {
|
|
19
|
-
/**
|
|
20
|
-
* Order ID
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateOrder
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
* If order status is invoiced, associated invoice id
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateOrder
|
|
29
|
-
*/
|
|
30
|
-
invoiceId: string;
|
|
31
|
-
/**
|
|
32
|
-
* Date order was placed
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CreateOrder
|
|
35
|
-
*/
|
|
36
|
-
orderDate: string;
|
|
37
|
-
/**
|
|
38
|
-
* Customer ID associated with order
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreateOrder
|
|
41
|
-
*/
|
|
42
|
-
customerId: string;
|
|
43
|
-
/**
|
|
44
|
-
* Order status
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateOrder
|
|
47
|
-
*/
|
|
48
|
-
status: string;
|
|
49
|
-
/**
|
|
50
|
-
* Total amount of order
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof CreateOrder
|
|
53
|
-
*/
|
|
54
|
-
orderAmount: string;
|
|
55
|
-
/**
|
|
56
|
-
* Enable to create separate invoice for this order
|
|
57
|
-
* @type {boolean}
|
|
58
|
-
* @memberof CreateOrder
|
|
59
|
-
*/
|
|
60
|
-
separateInvoice: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Currency of the order
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof CreateOrder
|
|
65
|
-
*/
|
|
66
|
-
currency: string;
|
|
67
|
-
/**
|
|
68
|
-
* Billing contact ID
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof CreateOrder
|
|
71
|
-
*/
|
|
72
|
-
billContactId: string;
|
|
73
|
-
/**
|
|
74
|
-
* Shipping contact ID
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof CreateOrder
|
|
77
|
-
*/
|
|
78
|
-
shippingContactId: string;
|
|
79
|
-
/**
|
|
80
|
-
* Payment terms to calculate due date of invoice
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof CreateOrder
|
|
83
|
-
*/
|
|
84
|
-
paymentTerms: string;
|
|
85
|
-
/**
|
|
86
|
-
* Misceallaneous notes on order
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof CreateOrder
|
|
89
|
-
*/
|
|
90
|
-
notes: string;
|
|
91
|
-
/**
|
|
92
|
-
* Coupon code applied to order
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof CreateOrder
|
|
95
|
-
*/
|
|
96
|
-
couponCode: string;
|
|
97
|
-
/**
|
|
98
|
-
* Invoice line items
|
|
99
|
-
* @type {Array<OrderLineItem>}
|
|
100
|
-
* @memberof CreateOrder
|
|
101
|
-
*/
|
|
102
|
-
lineItems: Array<OrderLineItem>;
|
|
103
|
-
/**
|
|
104
|
-
* The date the order was created
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof CreateOrder
|
|
107
|
-
*/
|
|
108
|
-
createdAt: string;
|
|
109
|
-
/**
|
|
110
|
-
* The date the order was updated
|
|
111
|
-
* @type {string}
|
|
112
|
-
* @memberof CreateOrder
|
|
113
|
-
*/
|
|
114
|
-
updatedAt: string;
|
|
115
|
-
/**
|
|
116
|
-
* Who created the order
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof CreateOrder
|
|
119
|
-
*/
|
|
120
|
-
createdBy: string;
|
|
121
|
-
/**
|
|
122
|
-
* Who updated the order
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof CreateOrder
|
|
125
|
-
*/
|
|
126
|
-
updatedBy: string;
|
|
127
|
-
/**
|
|
128
|
-
* Custom fields on the invoice
|
|
129
|
-
* @type {object}
|
|
130
|
-
* @memberof CreateOrder
|
|
131
|
-
*/
|
|
132
|
-
customFields: object;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Check if a given object implements the CreateOrder interface.
|
|
136
|
-
*/
|
|
137
|
-
export declare function instanceOfCreateOrder(value: object): value is CreateOrder;
|
|
138
|
-
export declare function CreateOrderFromJSON(json: any): CreateOrder;
|
|
139
|
-
export declare function CreateOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrder;
|
|
140
|
-
export declare function CreateOrderToJSON(json: any): CreateOrder;
|
|
141
|
-
export declare function CreateOrderToJSONTyped(value?: CreateOrder | null, ignoreDiscriminator?: boolean): any;
|
|
142
|
-
//# sourceMappingURL=create-order.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-order.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAqBzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CA0B7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA2B5G"}
|