@managespace/sdk 0.1.188 → 0.1.189-disbursements
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 +28 -0
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +10 -0
- package/dist/generated/apis/default-api.d.ts +13 -3
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +40 -5
- package/dist/generated/models/create-credit.d.ts +7 -0
- package/dist/generated/models/create-credit.d.ts.map +1 -1
- package/dist/generated/models/create-credit.js +3 -0
- package/dist/generated/models/create-product-custom.d.ts +6 -0
- package/dist/generated/models/create-product-custom.d.ts.map +1 -1
- package/dist/generated/models/create-product-custom.js +2 -0
- package/dist/generated/models/create-site-custom.d.ts +12 -0
- package/dist/generated/models/create-site-custom.d.ts.map +1 -1
- package/dist/generated/models/create-site-custom.js +4 -0
- package/dist/generated/models/create-subscription-charge.d.ts +3 -9
- package/dist/generated/models/create-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/create-subscription-charge.js +3 -11
- package/dist/generated/models/credit-applies-to-product-type.d.ts +29 -0
- package/dist/generated/models/credit-applies-to-product-type.d.ts.map +1 -0
- package/dist/generated/models/credit-applies-to-product-type.js +55 -0
- package/dist/generated/models/credit.d.ts +7 -0
- package/dist/generated/models/credit.d.ts.map +1 -1
- package/dist/generated/models/credit.js +3 -0
- package/dist/generated/models/index.d.ts +1 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -0
- package/dist/generated/models/journal-entry-entries.d.ts +12 -0
- package/dist/generated/models/journal-entry-entries.d.ts.map +1 -1
- package/dist/generated/models/journal-entry-entries.js +8 -0
- package/dist/generated/models/journal-entry.d.ts +31 -0
- package/dist/generated/models/journal-entry.d.ts.map +1 -1
- package/dist/generated/models/journal-entry.js +25 -0
- package/dist/generated/models/product-custom.d.ts +6 -0
- package/dist/generated/models/product-custom.d.ts.map +1 -1
- package/dist/generated/models/product-custom.js +2 -0
- package/dist/generated/models/product-type.d.ts +3 -0
- package/dist/generated/models/product-type.d.ts.map +1 -1
- package/dist/generated/models/product-type.js +4 -1
- package/dist/generated/models/refund-invoice.d.ts +6 -0
- package/dist/generated/models/refund-invoice.d.ts.map +1 -1
- package/dist/generated/models/refund-invoice.js +2 -0
- package/dist/generated/models/site.d.ts +12 -0
- package/dist/generated/models/site.d.ts.map +1 -1
- package/dist/generated/models/site.js +8 -0
- package/dist/generated/models/subscription-charge.d.ts +3 -15
- package/dist/generated/models/subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/subscription-charge.js +3 -15
- package/dist/generated/models/update-product.d.ts +6 -0
- package/dist/generated/models/update-product.d.ts.map +1 -1
- package/dist/generated/models/update-product.js +2 -0
- package/dist/generated/models/update-subscription-charge.d.ts +8 -14
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/update-subscription-charge.js +4 -10
- package/package.deploy.json +8 -4
- package/package.json +8 -4
- package/src/extensibility/functions/project/billing.ts +33 -0
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/default-api.ts +61 -6
- package/src/generated/models/create-credit.ts +17 -0
- package/src/generated/models/create-product-custom.ts +8 -0
- package/src/generated/models/create-site-custom.ts +16 -0
- package/src/generated/models/create-subscription-charge.ts +6 -17
- package/src/generated/models/credit-applies-to-product-type.ts +57 -0
- package/src/generated/models/credit.ts +17 -0
- package/src/generated/models/index.ts +1 -0
- package/src/generated/models/journal-entry-entries.ts +18 -0
- package/src/generated/models/journal-entry.ts +43 -0
- package/src/generated/models/product-custom.ts +8 -0
- package/src/generated/models/product-type.ts +4 -1
- package/src/generated/models/refund-invoice.ts +8 -0
- package/src/generated/models/site.ts +18 -0
- package/src/generated/models/subscription-charge.ts +6 -26
- package/src/generated/models/update-product.ts +8 -0
- package/src/generated/models/update-subscription-charge.ts +12 -22
|
@@ -52,7 +52,7 @@ export interface SubscriptionCharge {
|
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof SubscriptionCharge
|
|
54
54
|
*/
|
|
55
|
-
planId
|
|
55
|
+
planId?: string;
|
|
56
56
|
/**
|
|
57
57
|
* Name of plan
|
|
58
58
|
* @type {string}
|
|
@@ -64,13 +64,13 @@ export interface SubscriptionCharge {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof SubscriptionCharge
|
|
66
66
|
*/
|
|
67
|
-
chargeId
|
|
67
|
+
chargeId?: string;
|
|
68
68
|
/**
|
|
69
69
|
* Name of charge
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof SubscriptionCharge
|
|
72
72
|
*/
|
|
73
|
-
chargeName
|
|
73
|
+
chargeName?: string;
|
|
74
74
|
/**
|
|
75
75
|
* How charge will be priced
|
|
76
76
|
* @type {string}
|
|
@@ -101,12 +101,6 @@ export interface SubscriptionCharge {
|
|
|
101
101
|
* @memberof SubscriptionCharge
|
|
102
102
|
*/
|
|
103
103
|
includedUnits?: number;
|
|
104
|
-
/**
|
|
105
|
-
* Discount applied to product
|
|
106
|
-
* @type {number}
|
|
107
|
-
* @memberof SubscriptionCharge
|
|
108
|
-
*/
|
|
109
|
-
discount?: number;
|
|
110
104
|
/**
|
|
111
105
|
* Effective price of product
|
|
112
106
|
* @type {string}
|
|
@@ -305,12 +299,6 @@ export interface SubscriptionCharge {
|
|
|
305
299
|
* @memberof SubscriptionCharge
|
|
306
300
|
*/
|
|
307
301
|
assetId: string;
|
|
308
|
-
/**
|
|
309
|
-
* MRR calculated based on % discount
|
|
310
|
-
* @type {string}
|
|
311
|
-
* @memberof SubscriptionCharge
|
|
312
|
-
*/
|
|
313
|
-
discountedCmrr: string;
|
|
314
302
|
}
|
|
315
303
|
|
|
316
304
|
/**
|
|
@@ -318,11 +306,7 @@ export interface SubscriptionCharge {
|
|
|
318
306
|
*/
|
|
319
307
|
export function instanceOfSubscriptionCharge(value: object): value is SubscriptionCharge {
|
|
320
308
|
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
321
|
-
if (!('planId' in value) || value['planId'] === undefined) return false;
|
|
322
|
-
if (!('chargeId' in value) || value['chargeId'] === undefined) return false;
|
|
323
|
-
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
324
309
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
325
|
-
if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined) return false;
|
|
326
310
|
return true;
|
|
327
311
|
}
|
|
328
312
|
|
|
@@ -338,16 +322,15 @@ export function SubscriptionChargeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
338
322
|
|
|
339
323
|
'productId': json['productId'],
|
|
340
324
|
'productName': json['productName'] == null ? undefined : json['productName'],
|
|
341
|
-
'planId': json['planId'],
|
|
325
|
+
'planId': json['planId'] == null ? undefined : json['planId'],
|
|
342
326
|
'planName': json['planName'] == null ? undefined : json['planName'],
|
|
343
|
-
'chargeId': json['chargeId'],
|
|
344
|
-
'chargeName': json['chargeName'],
|
|
327
|
+
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
328
|
+
'chargeName': json['chargeName'] == null ? undefined : json['chargeName'],
|
|
345
329
|
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
346
330
|
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
347
331
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
348
332
|
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
349
333
|
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
350
|
-
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
351
334
|
'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
|
|
352
335
|
'chargeType': json['chargeType'] == null ? undefined : json['chargeType'],
|
|
353
336
|
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
@@ -381,7 +364,6 @@ export function SubscriptionChargeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
381
364
|
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
382
365
|
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
383
366
|
'assetId': json['assetId'],
|
|
384
|
-
'discountedCmrr': json['discountedCmrr'],
|
|
385
367
|
};
|
|
386
368
|
}
|
|
387
369
|
|
|
@@ -407,7 +389,6 @@ export function SubscriptionChargeToJSONTyped(value?: SubscriptionCharge | null,
|
|
|
407
389
|
'priceBase': value['priceBase'],
|
|
408
390
|
'quantity': value['quantity'],
|
|
409
391
|
'includedUnits': value['includedUnits'],
|
|
410
|
-
'discount': value['discount'],
|
|
411
392
|
'effectivePrice': value['effectivePrice'],
|
|
412
393
|
'chargeType': value['chargeType'],
|
|
413
394
|
'billingPeriod': value['billingPeriod'],
|
|
@@ -441,7 +422,6 @@ export function SubscriptionChargeToJSONTyped(value?: SubscriptionCharge | null,
|
|
|
441
422
|
'customRecognitionEndDate': value['customRecognitionEndDate'],
|
|
442
423
|
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
443
424
|
'assetId': value['assetId'],
|
|
444
|
-
'discountedCmrr': value['discountedCmrr'],
|
|
445
425
|
};
|
|
446
426
|
}
|
|
447
427
|
|
|
@@ -119,6 +119,12 @@ export interface UpdateProduct {
|
|
|
119
119
|
* @memberof UpdateProduct
|
|
120
120
|
*/
|
|
121
121
|
oneTimeCharge: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Product ID to use when writing off this product's charge
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof UpdateProduct
|
|
126
|
+
*/
|
|
127
|
+
writeOffProductId?: string;
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
|
|
@@ -161,6 +167,7 @@ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
161
167
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
162
168
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
163
169
|
'oneTimeCharge': json['oneTimeCharge'],
|
|
170
|
+
'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
|
|
164
171
|
};
|
|
165
172
|
}
|
|
166
173
|
|
|
@@ -189,6 +196,7 @@ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDis
|
|
|
189
196
|
'incomeAccount': value['incomeAccount'],
|
|
190
197
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
191
198
|
'oneTimeCharge': value['oneTimeCharge'],
|
|
199
|
+
'writeOffProductId': value['writeOffProductId'],
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
202
|
|
|
@@ -52,19 +52,25 @@ export interface UpdateSubscriptionCharge {
|
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof UpdateSubscriptionCharge
|
|
54
54
|
*/
|
|
55
|
-
planId
|
|
55
|
+
planId?: string;
|
|
56
56
|
/**
|
|
57
57
|
* Name of plan
|
|
58
58
|
* @type {string}
|
|
59
59
|
* @memberof UpdateSubscriptionCharge
|
|
60
60
|
*/
|
|
61
61
|
planName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Charge ID
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof UpdateSubscriptionCharge
|
|
66
|
+
*/
|
|
67
|
+
chargeId?: string;
|
|
62
68
|
/**
|
|
63
69
|
* Name of charge
|
|
64
70
|
* @type {string}
|
|
65
71
|
* @memberof UpdateSubscriptionCharge
|
|
66
72
|
*/
|
|
67
|
-
chargeName
|
|
73
|
+
chargeName?: string;
|
|
68
74
|
/**
|
|
69
75
|
* How charge will be priced
|
|
70
76
|
* @type {string}
|
|
@@ -95,12 +101,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
95
101
|
* @memberof UpdateSubscriptionCharge
|
|
96
102
|
*/
|
|
97
103
|
includedUnits?: number;
|
|
98
|
-
/**
|
|
99
|
-
* Discount applied to product
|
|
100
|
-
* @type {number}
|
|
101
|
-
* @memberof UpdateSubscriptionCharge
|
|
102
|
-
*/
|
|
103
|
-
discount?: number;
|
|
104
104
|
/**
|
|
105
105
|
* Effective price of product
|
|
106
106
|
* @type {string}
|
|
@@ -287,12 +287,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
287
287
|
* @memberof UpdateSubscriptionCharge
|
|
288
288
|
*/
|
|
289
289
|
customRecognitionEndDate?: string;
|
|
290
|
-
/**
|
|
291
|
-
* Charge ID
|
|
292
|
-
* @type {string}
|
|
293
|
-
* @memberof UpdateSubscriptionCharge
|
|
294
|
-
*/
|
|
295
|
-
chargeId?: string;
|
|
296
290
|
/**
|
|
297
291
|
* Asset ID
|
|
298
292
|
* @type {string}
|
|
@@ -312,8 +306,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
312
306
|
*/
|
|
313
307
|
export function instanceOfUpdateSubscriptionCharge(value: object): value is UpdateSubscriptionCharge {
|
|
314
308
|
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
315
|
-
if (!('planId' in value) || value['planId'] === undefined) return false;
|
|
316
|
-
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
317
309
|
return true;
|
|
318
310
|
}
|
|
319
311
|
|
|
@@ -329,15 +321,15 @@ export function UpdateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
329
321
|
|
|
330
322
|
'productId': json['productId'],
|
|
331
323
|
'productName': json['productName'] == null ? undefined : json['productName'],
|
|
332
|
-
'planId': json['planId'],
|
|
324
|
+
'planId': json['planId'] == null ? undefined : json['planId'],
|
|
333
325
|
'planName': json['planName'] == null ? undefined : json['planName'],
|
|
334
|
-
'
|
|
326
|
+
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
327
|
+
'chargeName': json['chargeName'] == null ? undefined : json['chargeName'],
|
|
335
328
|
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
336
329
|
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
337
330
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
338
331
|
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
339
332
|
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
340
|
-
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
341
333
|
'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
|
|
342
334
|
'chargeType': json['chargeType'] == null ? undefined : json['chargeType'],
|
|
343
335
|
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
@@ -369,7 +361,6 @@ export function UpdateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
369
361
|
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
370
362
|
'customRecognitionStartDate': json['customRecognitionStartDate'] == null ? undefined : json['customRecognitionStartDate'],
|
|
371
363
|
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
372
|
-
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
373
364
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
374
365
|
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
375
366
|
};
|
|
@@ -390,13 +381,13 @@ export function UpdateSubscriptionChargeToJSONTyped(value?: UpdateSubscriptionCh
|
|
|
390
381
|
'productName': value['productName'],
|
|
391
382
|
'planId': value['planId'],
|
|
392
383
|
'planName': value['planName'],
|
|
384
|
+
'chargeId': value['chargeId'],
|
|
393
385
|
'chargeName': value['chargeName'],
|
|
394
386
|
'pricingModel': value['pricingModel'],
|
|
395
387
|
'listPrice': value['listPrice'],
|
|
396
388
|
'priceBase': value['priceBase'],
|
|
397
389
|
'quantity': value['quantity'],
|
|
398
390
|
'includedUnits': value['includedUnits'],
|
|
399
|
-
'discount': value['discount'],
|
|
400
391
|
'effectivePrice': value['effectivePrice'],
|
|
401
392
|
'chargeType': value['chargeType'],
|
|
402
393
|
'billingPeriod': value['billingPeriod'],
|
|
@@ -428,7 +419,6 @@ export function UpdateSubscriptionChargeToJSONTyped(value?: UpdateSubscriptionCh
|
|
|
428
419
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
429
420
|
'customRecognitionStartDate': value['customRecognitionStartDate'],
|
|
430
421
|
'customRecognitionEndDate': value['customRecognitionEndDate'],
|
|
431
|
-
'chargeId': value['chargeId'],
|
|
432
422
|
'assetId': value['assetId'],
|
|
433
423
|
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
434
424
|
};
|