@managespace/sdk 0.0.136 → 0.0.138
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 +4 -4
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +2 -2
- package/dist/extensibility/functions/project/document.d.ts +14 -1
- package/dist/extensibility/functions/project/document.d.ts.map +1 -1
- package/dist/extensibility/functions/project/document.js +10 -0
- package/dist/generated/apis/default-api.d.ts +61 -11
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +195 -33
- package/dist/generated/models/document-signed.d.ts +6 -0
- package/dist/generated/models/document-signed.d.ts.map +1 -1
- package/dist/generated/models/document-signed.js +4 -0
- package/dist/generated/models/document-url.d.ts +39 -0
- package/dist/generated/models/document-url.d.ts.map +1 -0
- package/dist/generated/models/document-url.js +55 -0
- package/dist/generated/models/document.d.ts +39 -0
- package/dist/generated/models/document.d.ts.map +1 -0
- package/dist/generated/models/document.js +55 -0
- package/dist/generated/models/get-documents200-response.d.ts +41 -0
- package/dist/generated/models/get-documents200-response.d.ts.map +1 -0
- package/dist/generated/models/get-documents200-response.js +55 -0
- package/dist/generated/models/index.d.ts +8 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +8 -0
- package/dist/generated/models/upload-document.d.ts +45 -0
- package/dist/generated/models/upload-document.d.ts.map +1 -0
- package/dist/generated/models/upload-document.js +55 -0
- package/dist/generated/models/uploaded-document.d.ts +33 -0
- package/dist/generated/models/uploaded-document.d.ts.map +1 -0
- package/dist/generated/models/uploaded-document.js +51 -0
- package/dist/generated/models/uploaded-documents.d.ts +45 -0
- package/dist/generated/models/uploaded-documents.d.ts.map +1 -0
- package/dist/generated/models/uploaded-documents.js +59 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +14 -6
- package/src/generated/.openapi-generator/FILES +2 -3
- package/src/generated/apis/default-api.ts +117 -55
- package/src/generated/models/create-subscription.ts +224 -12
- package/src/generated/models/index.ts +2 -3
- package/src/generated/models/subscription.ts +175 -143
- package/src/generated/models/update-subscription-charge.ts +430 -0
- package/src/generated/models/update-subscription.ts +331 -0
- package/src/generated/models/subscription-invoice-line.ts +0 -192
- package/src/generated/models/subscription-invoice.ts +0 -110
- package/src/generated/models/subscription-preview.ts +0 -440
|
@@ -28,221 +28,257 @@ import {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface Subscription {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Status of subscription contract
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Subscription
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
status?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Billing start date for subscription contract
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof Subscription
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
billingStartDate?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Service start date for subscription contract
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Subscription
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
serviceStartDate?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Date order was placed
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Subscription
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
orderPlacedAt?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Date subscription contract was signed and activated
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof Subscription
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
contractEffectiveDate?: string;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Date subscription contract was terminated
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Subscription
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
cancellationDate?: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Cancel as of option
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Subscription
|
|
70
|
+
*/
|
|
71
|
+
cancellationType?: string;
|
|
72
|
+
/**
|
|
73
|
+
* auto-renew subscription contract
|
|
68
74
|
* @type {boolean}
|
|
69
75
|
* @memberof Subscription
|
|
70
76
|
*/
|
|
71
|
-
|
|
77
|
+
autoRenew?: boolean;
|
|
72
78
|
/**
|
|
73
|
-
*
|
|
79
|
+
* currency
|
|
74
80
|
* @type {string}
|
|
75
81
|
* @memberof Subscription
|
|
76
82
|
*/
|
|
77
|
-
|
|
83
|
+
currency?: string;
|
|
78
84
|
/**
|
|
79
|
-
*
|
|
85
|
+
* Calculate due date of invoice
|
|
80
86
|
* @type {string}
|
|
81
87
|
* @memberof Subscription
|
|
82
88
|
*/
|
|
83
|
-
|
|
89
|
+
paymentTerms?: string;
|
|
84
90
|
/**
|
|
85
|
-
*
|
|
91
|
+
* Contracted MRR per charge
|
|
86
92
|
* @type {string}
|
|
87
93
|
* @memberof Subscription
|
|
88
94
|
*/
|
|
89
|
-
|
|
95
|
+
cmrr?: string;
|
|
90
96
|
/**
|
|
91
|
-
*
|
|
97
|
+
* MRR calculated based on % discount
|
|
92
98
|
* @type {string}
|
|
93
99
|
* @memberof Subscription
|
|
94
100
|
*/
|
|
95
|
-
|
|
101
|
+
discountedCmrr?: string;
|
|
96
102
|
/**
|
|
97
|
-
*
|
|
103
|
+
* separate invoice generated
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof Subscription
|
|
106
|
+
*/
|
|
107
|
+
separateInvoice?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Miscellaneous notes
|
|
98
110
|
* @type {string}
|
|
99
111
|
* @memberof Subscription
|
|
100
112
|
*/
|
|
101
|
-
|
|
113
|
+
notes?: string;
|
|
102
114
|
/**
|
|
103
|
-
*
|
|
115
|
+
* Coupon Code
|
|
104
116
|
* @type {string}
|
|
105
117
|
* @memberof Subscription
|
|
106
118
|
*/
|
|
107
|
-
|
|
119
|
+
couponCode?: string;
|
|
108
120
|
/**
|
|
109
|
-
*
|
|
121
|
+
* Version of subscription contract
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof Subscription
|
|
124
|
+
*/
|
|
125
|
+
version?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Subscription contract version type
|
|
110
128
|
* @type {string}
|
|
111
129
|
* @memberof Subscription
|
|
112
130
|
*/
|
|
113
|
-
|
|
131
|
+
versionType?: string;
|
|
114
132
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {
|
|
133
|
+
* Term of contract in months
|
|
134
|
+
* @type {string}
|
|
117
135
|
* @memberof Subscription
|
|
118
136
|
*/
|
|
119
|
-
|
|
137
|
+
contractTerm?: string;
|
|
120
138
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {
|
|
139
|
+
* Length of time Subscription Contract will be renewed for
|
|
140
|
+
* @type {string}
|
|
123
141
|
* @memberof Subscription
|
|
124
142
|
*/
|
|
125
|
-
|
|
143
|
+
renewalTerm?: string;
|
|
126
144
|
/**
|
|
127
|
-
*
|
|
145
|
+
* Date Subscription Contract will start
|
|
128
146
|
* @type {string}
|
|
129
147
|
* @memberof Subscription
|
|
130
148
|
*/
|
|
131
|
-
|
|
149
|
+
currentTermStartDate?: string;
|
|
132
150
|
/**
|
|
133
|
-
*
|
|
151
|
+
* Date subscription contract will end
|
|
134
152
|
* @type {string}
|
|
135
153
|
* @memberof Subscription
|
|
136
154
|
*/
|
|
137
|
-
|
|
155
|
+
currentTermEndDate?: string;
|
|
138
156
|
/**
|
|
139
|
-
*
|
|
157
|
+
* Date subscription contract was terminated
|
|
158
|
+
* @type {number}
|
|
159
|
+
* @memberof Subscription
|
|
160
|
+
*/
|
|
161
|
+
renewalIncrementPercent?: number;
|
|
162
|
+
/**
|
|
163
|
+
* Asset ID
|
|
140
164
|
* @type {string}
|
|
141
165
|
* @memberof Subscription
|
|
142
166
|
*/
|
|
143
|
-
|
|
167
|
+
assetId?: string;
|
|
144
168
|
/**
|
|
145
|
-
*
|
|
169
|
+
* Id of billing contact
|
|
146
170
|
* @type {string}
|
|
147
171
|
* @memberof Subscription
|
|
148
172
|
*/
|
|
149
|
-
|
|
173
|
+
billContactId?: string;
|
|
150
174
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {
|
|
175
|
+
* Id of shipping contact
|
|
176
|
+
* @type {string}
|
|
153
177
|
* @memberof Subscription
|
|
154
178
|
*/
|
|
155
|
-
|
|
179
|
+
shippingContactId?: string;
|
|
156
180
|
/**
|
|
157
|
-
*
|
|
181
|
+
* Date record was created
|
|
158
182
|
* @type {string}
|
|
159
183
|
* @memberof Subscription
|
|
160
184
|
*/
|
|
161
|
-
|
|
185
|
+
updatedAt?: string;
|
|
162
186
|
/**
|
|
163
|
-
*
|
|
164
|
-
* @type {
|
|
187
|
+
* Date record was created
|
|
188
|
+
* @type {string}
|
|
165
189
|
* @memberof Subscription
|
|
166
190
|
*/
|
|
167
|
-
|
|
191
|
+
createdAt?: string;
|
|
168
192
|
/**
|
|
169
|
-
*
|
|
193
|
+
* Email of user who created record
|
|
170
194
|
* @type {string}
|
|
171
195
|
* @memberof Subscription
|
|
172
196
|
*/
|
|
173
|
-
|
|
197
|
+
createdBy?: string;
|
|
174
198
|
/**
|
|
175
|
-
*
|
|
199
|
+
* Email of user who last modifed record
|
|
176
200
|
* @type {string}
|
|
177
201
|
* @memberof Subscription
|
|
178
202
|
*/
|
|
179
|
-
|
|
203
|
+
updatedBy?: string;
|
|
180
204
|
/**
|
|
181
|
-
*
|
|
182
|
-
* @type {
|
|
205
|
+
* Custom fields on the invoice
|
|
206
|
+
* @type {object}
|
|
183
207
|
* @memberof Subscription
|
|
184
208
|
*/
|
|
185
|
-
|
|
209
|
+
customFields?: object;
|
|
186
210
|
/**
|
|
187
211
|
* Total contract value of the subsctiption contract
|
|
188
212
|
* @type {number}
|
|
189
213
|
* @memberof Subscription
|
|
190
214
|
*/
|
|
191
|
-
tcv
|
|
215
|
+
tcv?: number;
|
|
192
216
|
/**
|
|
193
|
-
*
|
|
194
|
-
* @type {
|
|
217
|
+
* Set to defer start date
|
|
218
|
+
* @type {boolean}
|
|
195
219
|
* @memberof Subscription
|
|
196
220
|
*/
|
|
197
|
-
|
|
221
|
+
deferStartDate?: boolean;
|
|
198
222
|
/**
|
|
199
|
-
*
|
|
223
|
+
* Subscription ID
|
|
200
224
|
* @type {string}
|
|
201
225
|
* @memberof Subscription
|
|
202
226
|
*/
|
|
203
|
-
|
|
227
|
+
id: string;
|
|
204
228
|
/**
|
|
205
|
-
*
|
|
229
|
+
* Customer ID
|
|
206
230
|
* @type {string}
|
|
207
231
|
* @memberof Subscription
|
|
208
232
|
*/
|
|
209
|
-
|
|
233
|
+
externalCustomerId: string;
|
|
210
234
|
/**
|
|
211
|
-
*
|
|
235
|
+
* Customer name
|
|
212
236
|
* @type {string}
|
|
213
237
|
* @memberof Subscription
|
|
214
238
|
*/
|
|
215
|
-
|
|
239
|
+
customerName: string;
|
|
216
240
|
/**
|
|
217
|
-
*
|
|
241
|
+
* Id of billing contact
|
|
218
242
|
* @type {string}
|
|
219
243
|
* @memberof Subscription
|
|
220
244
|
*/
|
|
221
|
-
|
|
245
|
+
externalBillContactId: string;
|
|
222
246
|
/**
|
|
223
|
-
* Id of
|
|
247
|
+
* Id of shipping contact
|
|
224
248
|
* @type {string}
|
|
225
249
|
* @memberof Subscription
|
|
226
250
|
*/
|
|
227
|
-
|
|
251
|
+
externalShippingContactId: string;
|
|
228
252
|
/**
|
|
229
|
-
*
|
|
253
|
+
* Date subscription contract to pause
|
|
230
254
|
* @type {string}
|
|
231
255
|
* @memberof Subscription
|
|
232
256
|
*/
|
|
233
|
-
|
|
257
|
+
pauseEffectiveDate: string;
|
|
234
258
|
/**
|
|
235
|
-
*
|
|
236
|
-
* @type {
|
|
259
|
+
* Date subscription contract to resume
|
|
260
|
+
* @type {string}
|
|
237
261
|
* @memberof Subscription
|
|
238
262
|
*/
|
|
239
|
-
|
|
263
|
+
resumeEffectiveDate: string;
|
|
240
264
|
/**
|
|
241
|
-
*
|
|
265
|
+
* Set to extend contract on resume
|
|
266
|
+
* @type {boolean}
|
|
267
|
+
* @memberof Subscription
|
|
268
|
+
*/
|
|
269
|
+
extendOnResume: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Id of billing contact sf
|
|
242
272
|
* @type {string}
|
|
243
273
|
* @memberof Subscription
|
|
244
274
|
*/
|
|
245
|
-
|
|
275
|
+
billContactSfId: string;
|
|
276
|
+
/**
|
|
277
|
+
* Id of shipping contact sf
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof Subscription
|
|
280
|
+
*/
|
|
281
|
+
shippingContactSfId: string;
|
|
246
282
|
/**
|
|
247
283
|
* Site ID
|
|
248
284
|
* @type {string}
|
|
@@ -255,6 +291,12 @@ export interface Subscription {
|
|
|
255
291
|
* @memberof Subscription
|
|
256
292
|
*/
|
|
257
293
|
externalId: string;
|
|
294
|
+
/**
|
|
295
|
+
* Charges associated the subscription
|
|
296
|
+
* @type {Array<SubscriptionCharge>}
|
|
297
|
+
* @memberof Subscription
|
|
298
|
+
*/
|
|
299
|
+
charges: Array<SubscriptionCharge>;
|
|
258
300
|
}
|
|
259
301
|
|
|
260
302
|
/**
|
|
@@ -266,38 +308,14 @@ export function instanceOfSubscription(value: object): value is Subscription {
|
|
|
266
308
|
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
267
309
|
if (!('externalBillContactId' in value) || value['externalBillContactId'] === undefined) return false;
|
|
268
310
|
if (!('externalShippingContactId' in value) || value['externalShippingContactId'] === undefined) return false;
|
|
269
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
270
|
-
if (!('deferStartDate' in value) || value['deferStartDate'] === undefined) return false;
|
|
271
|
-
if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
|
|
272
|
-
if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined) return false;
|
|
273
|
-
if (!('orderPlacedAt' in value) || value['orderPlacedAt'] === undefined) return false;
|
|
274
|
-
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
|
|
275
|
-
if (!('cancellationDate' in value) || value['cancellationDate'] === undefined) return false;
|
|
276
311
|
if (!('pauseEffectiveDate' in value) || value['pauseEffectiveDate'] === undefined) return false;
|
|
277
312
|
if (!('resumeEffectiveDate' in value) || value['resumeEffectiveDate'] === undefined) return false;
|
|
278
313
|
if (!('extendOnResume' in value) || value['extendOnResume'] === undefined) return false;
|
|
279
|
-
if (!('autoRenew' in value) || value['autoRenew'] === undefined) return false;
|
|
280
|
-
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
281
|
-
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
282
|
-
if (!('cmrr' in value) || value['cmrr'] === undefined) return false;
|
|
283
|
-
if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined) return false;
|
|
284
|
-
if (!('separateInvoice' in value) || value['separateInvoice'] === undefined) return false;
|
|
285
|
-
if (!('notes' in value) || value['notes'] === undefined) return false;
|
|
286
|
-
if (!('version' in value) || value['version'] === undefined) return false;
|
|
287
|
-
if (!('versionType' in value) || value['versionType'] === undefined) return false;
|
|
288
|
-
if (!('contractTerm' in value) || value['contractTerm'] === undefined) return false;
|
|
289
|
-
if (!('renewalIncrementPercent' in value) || value['renewalIncrementPercent'] === undefined) return false;
|
|
290
|
-
if (!('tcv' in value) || value['tcv'] === undefined) return false;
|
|
291
|
-
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
292
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
293
|
-
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
294
|
-
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
295
|
-
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
296
314
|
if (!('billContactSfId' in value) || value['billContactSfId'] === undefined) return false;
|
|
297
315
|
if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined) return false;
|
|
298
|
-
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
299
316
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
300
317
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
318
|
+
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
301
319
|
return true;
|
|
302
320
|
}
|
|
303
321
|
|
|
@@ -311,44 +329,51 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
311
329
|
}
|
|
312
330
|
return {
|
|
313
331
|
|
|
332
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
333
|
+
'billingStartDate': json['billingStartDate'] == null ? undefined : json['billingStartDate'],
|
|
334
|
+
'serviceStartDate': json['serviceStartDate'] == null ? undefined : json['serviceStartDate'],
|
|
335
|
+
'orderPlacedAt': json['orderPlacedAt'] == null ? undefined : json['orderPlacedAt'],
|
|
336
|
+
'contractEffectiveDate': json['contractEffectiveDate'] == null ? undefined : json['contractEffectiveDate'],
|
|
337
|
+
'cancellationDate': json['cancellationDate'] == null ? undefined : json['cancellationDate'],
|
|
338
|
+
'cancellationType': json['cancellationType'] == null ? undefined : json['cancellationType'],
|
|
339
|
+
'autoRenew': json['autoRenew'] == null ? undefined : json['autoRenew'],
|
|
340
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
341
|
+
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
342
|
+
'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
|
|
343
|
+
'discountedCmrr': json['discountedCmrr'] == null ? undefined : json['discountedCmrr'],
|
|
344
|
+
'separateInvoice': json['separateInvoice'] == null ? undefined : json['separateInvoice'],
|
|
345
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
346
|
+
'couponCode': json['couponCode'] == null ? undefined : json['couponCode'],
|
|
347
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
348
|
+
'versionType': json['versionType'] == null ? undefined : json['versionType'],
|
|
349
|
+
'contractTerm': json['contractTerm'] == null ? undefined : json['contractTerm'],
|
|
350
|
+
'renewalTerm': json['renewalTerm'] == null ? undefined : json['renewalTerm'],
|
|
351
|
+
'currentTermStartDate': json['currentTermStartDate'] == null ? undefined : json['currentTermStartDate'],
|
|
352
|
+
'currentTermEndDate': json['currentTermEndDate'] == null ? undefined : json['currentTermEndDate'],
|
|
353
|
+
'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
|
|
354
|
+
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
355
|
+
'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
|
|
356
|
+
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
357
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
358
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
359
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
360
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
361
|
+
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
362
|
+
'tcv': json['tcv'] == null ? undefined : json['tcv'],
|
|
363
|
+
'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
|
|
314
364
|
'id': json['id'],
|
|
315
365
|
'externalCustomerId': json['externalCustomerId'],
|
|
316
366
|
'customerName': json['customerName'],
|
|
317
367
|
'externalBillContactId': json['externalBillContactId'],
|
|
318
368
|
'externalShippingContactId': json['externalShippingContactId'],
|
|
319
|
-
'status': json['status'],
|
|
320
|
-
'deferStartDate': json['deferStartDate'],
|
|
321
|
-
'billingStartDate': json['billingStartDate'],
|
|
322
|
-
'serviceStartDate': json['serviceStartDate'],
|
|
323
|
-
'orderPlacedAt': json['orderPlacedAt'],
|
|
324
|
-
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
325
|
-
'cancellationDate': json['cancellationDate'],
|
|
326
369
|
'pauseEffectiveDate': json['pauseEffectiveDate'],
|
|
327
370
|
'resumeEffectiveDate': json['resumeEffectiveDate'],
|
|
328
371
|
'extendOnResume': json['extendOnResume'],
|
|
329
|
-
'autoRenew': json['autoRenew'],
|
|
330
|
-
'currency': json['currency'],
|
|
331
|
-
'paymentTerms': json['paymentTerms'],
|
|
332
|
-
'cmrr': json['cmrr'],
|
|
333
|
-
'discountedCmrr': json['discountedCmrr'],
|
|
334
|
-
'separateInvoice': json['separateInvoice'],
|
|
335
|
-
'notes': json['notes'],
|
|
336
|
-
'version': json['version'],
|
|
337
|
-
'versionType': json['versionType'],
|
|
338
|
-
'contractTerm': json['contractTerm'],
|
|
339
|
-
'renewalIncrementPercent': json['renewalIncrementPercent'],
|
|
340
|
-
'tcv': json['tcv'],
|
|
341
|
-
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
342
|
-
'createdAt': json['createdAt'],
|
|
343
|
-
'updatedAt': json['updatedAt'],
|
|
344
|
-
'createdBy': json['createdBy'],
|
|
345
|
-
'updatedBy': json['updatedBy'],
|
|
346
372
|
'billContactSfId': json['billContactSfId'],
|
|
347
373
|
'shippingContactSfId': json['shippingContactSfId'],
|
|
348
|
-
'customFields': json['customFields'],
|
|
349
|
-
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
350
374
|
'siteId': json['siteId'],
|
|
351
375
|
'externalId': json['externalId'],
|
|
376
|
+
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
352
377
|
};
|
|
353
378
|
}
|
|
354
379
|
|
|
@@ -363,21 +388,13 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
|
|
|
363
388
|
|
|
364
389
|
return {
|
|
365
390
|
|
|
366
|
-
'id': value['id'],
|
|
367
|
-
'externalCustomerId': value['externalCustomerId'],
|
|
368
|
-
'customerName': value['customerName'],
|
|
369
|
-
'externalBillContactId': value['externalBillContactId'],
|
|
370
|
-
'externalShippingContactId': value['externalShippingContactId'],
|
|
371
391
|
'status': value['status'],
|
|
372
|
-
'deferStartDate': value['deferStartDate'],
|
|
373
392
|
'billingStartDate': value['billingStartDate'],
|
|
374
393
|
'serviceStartDate': value['serviceStartDate'],
|
|
375
394
|
'orderPlacedAt': value['orderPlacedAt'],
|
|
376
395
|
'contractEffectiveDate': value['contractEffectiveDate'],
|
|
377
396
|
'cancellationDate': value['cancellationDate'],
|
|
378
|
-
'
|
|
379
|
-
'resumeEffectiveDate': value['resumeEffectiveDate'],
|
|
380
|
-
'extendOnResume': value['extendOnResume'],
|
|
397
|
+
'cancellationType': value['cancellationType'],
|
|
381
398
|
'autoRenew': value['autoRenew'],
|
|
382
399
|
'currency': value['currency'],
|
|
383
400
|
'paymentTerms': value['paymentTerms'],
|
|
@@ -385,22 +402,37 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
|
|
|
385
402
|
'discountedCmrr': value['discountedCmrr'],
|
|
386
403
|
'separateInvoice': value['separateInvoice'],
|
|
387
404
|
'notes': value['notes'],
|
|
405
|
+
'couponCode': value['couponCode'],
|
|
388
406
|
'version': value['version'],
|
|
389
407
|
'versionType': value['versionType'],
|
|
390
408
|
'contractTerm': value['contractTerm'],
|
|
409
|
+
'renewalTerm': value['renewalTerm'],
|
|
410
|
+
'currentTermStartDate': value['currentTermStartDate'],
|
|
411
|
+
'currentTermEndDate': value['currentTermEndDate'],
|
|
391
412
|
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
413
|
+
'assetId': value['assetId'],
|
|
414
|
+
'billContactId': value['billContactId'],
|
|
415
|
+
'shippingContactId': value['shippingContactId'],
|
|
395
416
|
'updatedAt': value['updatedAt'],
|
|
417
|
+
'createdAt': value['createdAt'],
|
|
396
418
|
'createdBy': value['createdBy'],
|
|
397
419
|
'updatedBy': value['updatedBy'],
|
|
420
|
+
'customFields': value['customFields'],
|
|
421
|
+
'tcv': value['tcv'],
|
|
422
|
+
'deferStartDate': value['deferStartDate'],
|
|
423
|
+
'id': value['id'],
|
|
424
|
+
'externalCustomerId': value['externalCustomerId'],
|
|
425
|
+
'customerName': value['customerName'],
|
|
426
|
+
'externalBillContactId': value['externalBillContactId'],
|
|
427
|
+
'externalShippingContactId': value['externalShippingContactId'],
|
|
428
|
+
'pauseEffectiveDate': value['pauseEffectiveDate'],
|
|
429
|
+
'resumeEffectiveDate': value['resumeEffectiveDate'],
|
|
430
|
+
'extendOnResume': value['extendOnResume'],
|
|
398
431
|
'billContactSfId': value['billContactSfId'],
|
|
399
432
|
'shippingContactSfId': value['shippingContactSfId'],
|
|
400
|
-
'customFields': value['customFields'],
|
|
401
|
-
'assetId': value['assetId'],
|
|
402
433
|
'siteId': value['siteId'],
|
|
403
434
|
'externalId': value['externalId'],
|
|
435
|
+
'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
|
|
404
436
|
};
|
|
405
437
|
}
|
|
406
438
|
|