@managespace/sdk 0.0.121 → 0.0.123
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/generated/apis/default-api.d.ts +12 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +37 -0
- package/dist/generated/models/create-subscription.d.ts +162 -0
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +54 -0
- package/dist/generated/models/subscription.d.ts +120 -78
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +56 -90
- package/dist/generated/models/update-subscription-charge.d.ts +6 -6
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/update-subscription-charge.js +2 -4
- package/dist/generated/models/update-subscription.d.ts +160 -4
- package/dist/generated/models/update-subscription.d.ts.map +1 -1
- package/dist/generated/models/update-subscription.js +54 -4
- package/package.json +1 -1
- package/src/generated/apis/default-api.ts +65 -0
- package/src/generated/models/create-subscription.ts +216 -0
- package/src/generated/models/subscription.ts +175 -143
- package/src/generated/models/update-subscription-charge.ts +8 -9
- package/src/generated/models/update-subscription.ts +214 -7
|
@@ -45,6 +45,114 @@ export interface UpdateSubscription {
|
|
|
45
45
|
* @memberof UpdateSubscription
|
|
46
46
|
*/
|
|
47
47
|
serviceStartDate?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Date order was placed
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateSubscription
|
|
52
|
+
*/
|
|
53
|
+
orderPlacedAt?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Date subscription contract was terminated
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateSubscription
|
|
58
|
+
*/
|
|
59
|
+
cancellationDate?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Cancel as of option
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateSubscription
|
|
64
|
+
*/
|
|
65
|
+
cancellationType?: string;
|
|
66
|
+
/**
|
|
67
|
+
* auto-renew subscription contract
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof UpdateSubscription
|
|
70
|
+
*/
|
|
71
|
+
autoRenew?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* currency
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof UpdateSubscription
|
|
76
|
+
*/
|
|
77
|
+
currency?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Calculate due date of invoice
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof UpdateSubscription
|
|
82
|
+
*/
|
|
83
|
+
paymentTerms?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Contracted MRR per charge
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof UpdateSubscription
|
|
88
|
+
*/
|
|
89
|
+
cmrr?: string;
|
|
90
|
+
/**
|
|
91
|
+
* MRR calculated based on % discount
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof UpdateSubscription
|
|
94
|
+
*/
|
|
95
|
+
discountedCmrr?: string;
|
|
96
|
+
/**
|
|
97
|
+
* separate invoice generated
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof UpdateSubscription
|
|
100
|
+
*/
|
|
101
|
+
separateInvoice?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Miscellaneous notes
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof UpdateSubscription
|
|
106
|
+
*/
|
|
107
|
+
notes?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Coupon Code
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof UpdateSubscription
|
|
112
|
+
*/
|
|
113
|
+
couponCode?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Version of subscription contract
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof UpdateSubscription
|
|
118
|
+
*/
|
|
119
|
+
version?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Subscription contract version type
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof UpdateSubscription
|
|
124
|
+
*/
|
|
125
|
+
versionType?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Subscription contract term
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof UpdateSubscription
|
|
130
|
+
*/
|
|
131
|
+
contractTerm?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Length of time Subscription Contract will be renewed for
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof UpdateSubscription
|
|
136
|
+
*/
|
|
137
|
+
renewalTerm?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Date Subscription Contract will start
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof UpdateSubscription
|
|
142
|
+
*/
|
|
143
|
+
currentTermStartDate?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Date subscription contract will end
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof UpdateSubscription
|
|
148
|
+
*/
|
|
149
|
+
currentTermEndDate?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Date subscription contract was terminated
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof UpdateSubscription
|
|
154
|
+
*/
|
|
155
|
+
renewalIncrementPercent?: number;
|
|
48
156
|
/**
|
|
49
157
|
* Asset ID
|
|
50
158
|
* @type {string}
|
|
@@ -52,17 +160,65 @@ export interface UpdateSubscription {
|
|
|
52
160
|
*/
|
|
53
161
|
assetId?: string;
|
|
54
162
|
/**
|
|
55
|
-
*
|
|
163
|
+
* Id of billing contact
|
|
56
164
|
* @type {string}
|
|
57
165
|
* @memberof UpdateSubscription
|
|
58
166
|
*/
|
|
59
|
-
|
|
167
|
+
billContactId?: string;
|
|
60
168
|
/**
|
|
61
|
-
*
|
|
169
|
+
* Id of shipping contact
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof UpdateSubscription
|
|
172
|
+
*/
|
|
173
|
+
shippingContactId?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Date record was created
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof UpdateSubscription
|
|
178
|
+
*/
|
|
179
|
+
updatedAt?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Date record was created
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof UpdateSubscription
|
|
184
|
+
*/
|
|
185
|
+
createdAt?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Email of user who created record
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof UpdateSubscription
|
|
190
|
+
*/
|
|
191
|
+
createdBy?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Email of user who last modifed record
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof UpdateSubscription
|
|
196
|
+
*/
|
|
197
|
+
updatedBy?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Custom fields on the invoice
|
|
200
|
+
* @type {object}
|
|
201
|
+
* @memberof UpdateSubscription
|
|
202
|
+
*/
|
|
203
|
+
customFields?: object;
|
|
204
|
+
/**
|
|
205
|
+
* Total contract value of the subsctiption contract
|
|
206
|
+
* @type {number}
|
|
207
|
+
* @memberof UpdateSubscription
|
|
208
|
+
*/
|
|
209
|
+
tcv?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Set to defer start date
|
|
212
|
+
* @type {boolean}
|
|
213
|
+
* @memberof UpdateSubscription
|
|
214
|
+
*/
|
|
215
|
+
deferStartDate?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Date subscription contract was signed and activated
|
|
62
218
|
* @type {string}
|
|
63
219
|
* @memberof UpdateSubscription
|
|
64
220
|
*/
|
|
65
|
-
|
|
221
|
+
contractEffectiveDate: string;
|
|
66
222
|
/**
|
|
67
223
|
* Charges associated the subscription
|
|
68
224
|
* @type {Array<UpdateSubscriptionCharge>}
|
|
@@ -76,7 +232,6 @@ export interface UpdateSubscription {
|
|
|
76
232
|
*/
|
|
77
233
|
export function instanceOfUpdateSubscription(value: object): value is UpdateSubscription {
|
|
78
234
|
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
|
|
79
|
-
if (!('contractTerm' in value) || value['contractTerm'] === undefined) return false;
|
|
80
235
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
81
236
|
return true;
|
|
82
237
|
}
|
|
@@ -94,9 +249,35 @@ export function UpdateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
94
249
|
'status': json['status'] == null ? undefined : json['status'],
|
|
95
250
|
'billingStartDate': json['billingStartDate'] == null ? undefined : json['billingStartDate'],
|
|
96
251
|
'serviceStartDate': json['serviceStartDate'] == null ? undefined : json['serviceStartDate'],
|
|
252
|
+
'orderPlacedAt': json['orderPlacedAt'] == null ? undefined : json['orderPlacedAt'],
|
|
253
|
+
'cancellationDate': json['cancellationDate'] == null ? undefined : json['cancellationDate'],
|
|
254
|
+
'cancellationType': json['cancellationType'] == null ? undefined : json['cancellationType'],
|
|
255
|
+
'autoRenew': json['autoRenew'] == null ? undefined : json['autoRenew'],
|
|
256
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
257
|
+
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
258
|
+
'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
|
|
259
|
+
'discountedCmrr': json['discountedCmrr'] == null ? undefined : json['discountedCmrr'],
|
|
260
|
+
'separateInvoice': json['separateInvoice'] == null ? undefined : json['separateInvoice'],
|
|
261
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
262
|
+
'couponCode': json['couponCode'] == null ? undefined : json['couponCode'],
|
|
263
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
264
|
+
'versionType': json['versionType'] == null ? undefined : json['versionType'],
|
|
265
|
+
'contractTerm': json['contractTerm'] == null ? undefined : json['contractTerm'],
|
|
266
|
+
'renewalTerm': json['renewalTerm'] == null ? undefined : json['renewalTerm'],
|
|
267
|
+
'currentTermStartDate': json['currentTermStartDate'] == null ? undefined : json['currentTermStartDate'],
|
|
268
|
+
'currentTermEndDate': json['currentTermEndDate'] == null ? undefined : json['currentTermEndDate'],
|
|
269
|
+
'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
|
|
97
270
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
271
|
+
'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
|
|
272
|
+
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
273
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
274
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
275
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
276
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
277
|
+
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
278
|
+
'tcv': json['tcv'] == null ? undefined : json['tcv'],
|
|
279
|
+
'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
|
|
98
280
|
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
99
|
-
'contractTerm': json['contractTerm'],
|
|
100
281
|
'charges': ((json['charges'] as Array<any>).map(UpdateSubscriptionChargeFromJSON)),
|
|
101
282
|
};
|
|
102
283
|
}
|
|
@@ -115,9 +296,35 @@ export function UpdateSubscriptionToJSONTyped(value?: UpdateSubscription | null,
|
|
|
115
296
|
'status': value['status'],
|
|
116
297
|
'billingStartDate': value['billingStartDate'],
|
|
117
298
|
'serviceStartDate': value['serviceStartDate'],
|
|
299
|
+
'orderPlacedAt': value['orderPlacedAt'],
|
|
300
|
+
'cancellationDate': value['cancellationDate'],
|
|
301
|
+
'cancellationType': value['cancellationType'],
|
|
302
|
+
'autoRenew': value['autoRenew'],
|
|
303
|
+
'currency': value['currency'],
|
|
304
|
+
'paymentTerms': value['paymentTerms'],
|
|
305
|
+
'cmrr': value['cmrr'],
|
|
306
|
+
'discountedCmrr': value['discountedCmrr'],
|
|
307
|
+
'separateInvoice': value['separateInvoice'],
|
|
308
|
+
'notes': value['notes'],
|
|
309
|
+
'couponCode': value['couponCode'],
|
|
310
|
+
'version': value['version'],
|
|
311
|
+
'versionType': value['versionType'],
|
|
312
|
+
'contractTerm': value['contractTerm'],
|
|
313
|
+
'renewalTerm': value['renewalTerm'],
|
|
314
|
+
'currentTermStartDate': value['currentTermStartDate'],
|
|
315
|
+
'currentTermEndDate': value['currentTermEndDate'],
|
|
316
|
+
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
118
317
|
'assetId': value['assetId'],
|
|
318
|
+
'billContactId': value['billContactId'],
|
|
319
|
+
'shippingContactId': value['shippingContactId'],
|
|
320
|
+
'updatedAt': value['updatedAt'],
|
|
321
|
+
'createdAt': value['createdAt'],
|
|
322
|
+
'createdBy': value['createdBy'],
|
|
323
|
+
'updatedBy': value['updatedBy'],
|
|
324
|
+
'customFields': value['customFields'],
|
|
325
|
+
'tcv': value['tcv'],
|
|
326
|
+
'deferStartDate': value['deferStartDate'],
|
|
119
327
|
'contractEffectiveDate': value['contractEffectiveDate'],
|
|
120
|
-
'contractTerm': value['contractTerm'],
|
|
121
328
|
'charges': ((value['charges'] as Array<any>).map(UpdateSubscriptionChargeToJSON)),
|
|
122
329
|
};
|
|
123
330
|
}
|