@managespace/sdk 0.1.188-melissa.dev → 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 +21 -0
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/generated/apis/default-api.d.ts +13 -13
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +38 -36
- 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-subscription-charge.d.ts +0 -6
- package/dist/generated/models/create-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/create-subscription-charge.js +0 -2
- 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/subscription-charge.d.ts +0 -12
- package/dist/generated/models/subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/subscription-charge.js +0 -6
- 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 +0 -6
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/update-subscription-charge.js +0 -2
- package/package.deploy.json +8 -4
- package/package.json +8 -4
- package/src/extensibility/functions/project/billing.ts +24 -0
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/default-api.ts +53 -48
- package/src/generated/models/create-credit.ts +17 -0
- package/src/generated/models/create-product-custom.ts +8 -0
- package/src/generated/models/create-subscription-charge.ts +0 -8
- 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/subscription-charge.ts +0 -17
- package/src/generated/models/update-product.ts +8 -0
- package/src/generated/models/update-subscription-charge.ts +0 -8
|
@@ -14,12 +14,25 @@
|
|
|
14
14
|
* Do not edit the class manually.
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.JournalEntrySourceType = void 0;
|
|
17
18
|
exports.instanceOfJournalEntry = instanceOfJournalEntry;
|
|
18
19
|
exports.JournalEntryFromJSON = JournalEntryFromJSON;
|
|
19
20
|
exports.JournalEntryFromJSONTyped = JournalEntryFromJSONTyped;
|
|
20
21
|
exports.JournalEntryToJSON = JournalEntryToJSON;
|
|
21
22
|
exports.JournalEntryToJSONTyped = JournalEntryToJSONTyped;
|
|
22
23
|
const journal_entry_entries_1 = require("./journal-entry-entries");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.JournalEntrySourceType = {
|
|
28
|
+
Subscription: 'Subscription',
|
|
29
|
+
Order: 'Order',
|
|
30
|
+
Invoice: 'Invoice',
|
|
31
|
+
Payment: 'Payment',
|
|
32
|
+
Credit: 'Credit',
|
|
33
|
+
RevenueSchedule: 'RevenueSchedule',
|
|
34
|
+
Refund: 'Refund'
|
|
35
|
+
};
|
|
23
36
|
/**
|
|
24
37
|
* Check if a given object implements the JournalEntry interface.
|
|
25
38
|
*/
|
|
@@ -34,6 +47,12 @@ function instanceOfJournalEntry(value) {
|
|
|
34
47
|
return false;
|
|
35
48
|
if (!('description' in value) || value['description'] === undefined)
|
|
36
49
|
return false;
|
|
50
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('sourceId' in value) || value['sourceId'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('transactionAmount' in value) || value['transactionAmount'] === undefined)
|
|
55
|
+
return false;
|
|
37
56
|
if (!('entries' in value) || value['entries'] === undefined)
|
|
38
57
|
return false;
|
|
39
58
|
if (!('customFields' in value) || value['customFields'] === undefined)
|
|
@@ -65,6 +84,9 @@ function JournalEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
84
|
'customerId': json['customerId'],
|
|
66
85
|
'customerName': json['customerName'],
|
|
67
86
|
'description': json['description'],
|
|
87
|
+
'sourceType': json['sourceType'],
|
|
88
|
+
'sourceId': json['sourceId'],
|
|
89
|
+
'transactionAmount': json['transactionAmount'],
|
|
68
90
|
'entries': (json['entries'].map(journal_entry_entries_1.JournalEntryEntriesFromJSON)),
|
|
69
91
|
'customFields': json['customFields'],
|
|
70
92
|
'createdAt': json['createdAt'],
|
|
@@ -88,6 +110,9 @@ function JournalEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
110
|
'customerId': value['customerId'],
|
|
89
111
|
'customerName': value['customerName'],
|
|
90
112
|
'description': value['description'],
|
|
113
|
+
'sourceType': value['sourceType'],
|
|
114
|
+
'sourceId': value['sourceId'],
|
|
115
|
+
'transactionAmount': value['transactionAmount'],
|
|
91
116
|
'entries': (value['entries'].map(journal_entry_entries_1.JournalEntryEntriesToJSON)),
|
|
92
117
|
'customFields': value['customFields'],
|
|
93
118
|
'createdAt': value['createdAt'],
|
|
@@ -101,6 +101,12 @@ export interface ProductCustom {
|
|
|
101
101
|
* @memberof ProductCustom
|
|
102
102
|
*/
|
|
103
103
|
oneTimeCharge: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Product ID to use when writing off this product's charge
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof ProductCustom
|
|
108
|
+
*/
|
|
109
|
+
writeOffProductId?: string;
|
|
104
110
|
/**
|
|
105
111
|
* Product ID
|
|
106
112
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-custom.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;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,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAW7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"product-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-custom.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;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,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAW7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAwBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAyBhH"}
|
|
@@ -67,6 +67,7 @@ function ProductCustomFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
68
68
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
69
69
|
'oneTimeCharge': json['oneTimeCharge'],
|
|
70
|
+
'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
|
|
70
71
|
'id': json['id'],
|
|
71
72
|
'msExternalId': json['msExternalId'],
|
|
72
73
|
};
|
|
@@ -93,6 +94,7 @@ function ProductCustomToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
94
|
'incomeAccount': value['incomeAccount'],
|
|
94
95
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
95
96
|
'oneTimeCharge': value['oneTimeCharge'],
|
|
97
|
+
'writeOffProductId': value['writeOffProductId'],
|
|
96
98
|
'id': value['id'],
|
|
97
99
|
'msExternalId': value['msExternalId'],
|
|
98
100
|
};
|
|
@@ -20,6 +20,9 @@ export declare const ProductType: {
|
|
|
20
20
|
readonly INSURANCE: "INSURANCE";
|
|
21
21
|
readonly FEE: "FEE";
|
|
22
22
|
readonly MERCHANDISE: "MERCHANDISE";
|
|
23
|
+
readonly WRITE_OFF: "WRITE_OFF";
|
|
24
|
+
readonly CREDIT: "CREDIT";
|
|
25
|
+
readonly DISCOUNT: "DISCOUNT";
|
|
23
26
|
};
|
|
24
27
|
export type ProductType = typeof ProductType[keyof typeof ProductType];
|
|
25
28
|
export declare function instanceOfProductType(value: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-type.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-type.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"product-type.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-type.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;CAUd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAGvE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASzD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAE7F;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,GAAG,CAEjE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAE5F"}
|
|
@@ -30,7 +30,10 @@ exports.ProductType = {
|
|
|
30
30
|
RENT_TREATMENT: 'RENT_TREATMENT',
|
|
31
31
|
INSURANCE: 'INSURANCE',
|
|
32
32
|
FEE: 'FEE',
|
|
33
|
-
MERCHANDISE: 'MERCHANDISE'
|
|
33
|
+
MERCHANDISE: 'MERCHANDISE',
|
|
34
|
+
WRITE_OFF: 'WRITE_OFF',
|
|
35
|
+
CREDIT: 'CREDIT',
|
|
36
|
+
DISCOUNT: 'DISCOUNT'
|
|
34
37
|
};
|
|
35
38
|
function instanceOfProductType(value) {
|
|
36
39
|
for (const key in exports.ProductType) {
|
|
@@ -83,12 +83,6 @@ export interface SubscriptionCharge {
|
|
|
83
83
|
* @memberof SubscriptionCharge
|
|
84
84
|
*/
|
|
85
85
|
includedUnits?: number;
|
|
86
|
-
/**
|
|
87
|
-
* Discount applied to product
|
|
88
|
-
* @type {number}
|
|
89
|
-
* @memberof SubscriptionCharge
|
|
90
|
-
*/
|
|
91
|
-
discount?: number;
|
|
92
86
|
/**
|
|
93
87
|
* Effective price of product
|
|
94
88
|
* @type {string}
|
|
@@ -287,12 +281,6 @@ export interface SubscriptionCharge {
|
|
|
287
281
|
* @memberof SubscriptionCharge
|
|
288
282
|
*/
|
|
289
283
|
assetId: string;
|
|
290
|
-
/**
|
|
291
|
-
* MRR calculated based on % discount
|
|
292
|
-
* @type {string}
|
|
293
|
-
* @memberof SubscriptionCharge
|
|
294
|
-
*/
|
|
295
|
-
discountedCmrr: string;
|
|
296
284
|
}
|
|
297
285
|
/**
|
|
298
286
|
* Check if a given object implements the SubscriptionCharge interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-charge.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;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,kBAAkB;IAC/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"subscription-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-charge.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;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,kBAAkB;IAC/B;;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AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAmD3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoD1H"}
|
|
@@ -29,8 +29,6 @@ function instanceOfSubscriptionCharge(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined)
|
|
33
|
-
return false;
|
|
34
32
|
return true;
|
|
35
33
|
}
|
|
36
34
|
function SubscriptionChargeFromJSON(json) {
|
|
@@ -52,7 +50,6 @@ function SubscriptionChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
53
51
|
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
54
52
|
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
55
|
-
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
56
53
|
'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
|
|
57
54
|
'chargeType': json['chargeType'] == null ? undefined : json['chargeType'],
|
|
58
55
|
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
@@ -86,7 +83,6 @@ function SubscriptionChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
83
|
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
87
84
|
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
88
85
|
'assetId': json['assetId'],
|
|
89
|
-
'discountedCmrr': json['discountedCmrr'],
|
|
90
86
|
};
|
|
91
87
|
}
|
|
92
88
|
function SubscriptionChargeToJSON(json) {
|
|
@@ -108,7 +104,6 @@ function SubscriptionChargeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
108
104
|
'priceBase': value['priceBase'],
|
|
109
105
|
'quantity': value['quantity'],
|
|
110
106
|
'includedUnits': value['includedUnits'],
|
|
111
|
-
'discount': value['discount'],
|
|
112
107
|
'effectivePrice': value['effectivePrice'],
|
|
113
108
|
'chargeType': value['chargeType'],
|
|
114
109
|
'billingPeriod': value['billingPeriod'],
|
|
@@ -142,6 +137,5 @@ function SubscriptionChargeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
142
137
|
'customRecognitionEndDate': value['customRecognitionEndDate'],
|
|
143
138
|
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
144
139
|
'assetId': value['assetId'],
|
|
145
|
-
'discountedCmrr': value['discountedCmrr'],
|
|
146
140
|
};
|
|
147
141
|
}
|
|
@@ -101,6 +101,12 @@ export interface UpdateProduct {
|
|
|
101
101
|
* @memberof UpdateProduct
|
|
102
102
|
*/
|
|
103
103
|
oneTimeCharge: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Product ID to use when writing off this product's charge
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof UpdateProduct
|
|
108
|
+
*/
|
|
109
|
+
writeOffProductId?: string;
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
112
|
* Check if a given object implements the UpdateProduct interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-product.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;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,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-product.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;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,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAS7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAsBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAuBhH"}
|
|
@@ -63,6 +63,7 @@ function UpdateProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
64
64
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
65
65
|
'oneTimeCharge': json['oneTimeCharge'],
|
|
66
|
+
'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
function UpdateProductToJSON(json) {
|
|
@@ -87,5 +88,6 @@ function UpdateProductToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
88
|
'incomeAccount': value['incomeAccount'],
|
|
88
89
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
89
90
|
'oneTimeCharge': value['oneTimeCharge'],
|
|
91
|
+
'writeOffProductId': value['writeOffProductId'],
|
|
90
92
|
};
|
|
91
93
|
}
|
|
@@ -83,12 +83,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
83
83
|
* @memberof UpdateSubscriptionCharge
|
|
84
84
|
*/
|
|
85
85
|
includedUnits?: number;
|
|
86
|
-
/**
|
|
87
|
-
* Discount applied to product
|
|
88
|
-
* @type {number}
|
|
89
|
-
* @memberof UpdateSubscriptionCharge
|
|
90
|
-
*/
|
|
91
|
-
discount?: number;
|
|
92
86
|
/**
|
|
93
87
|
* Effective price of product
|
|
94
88
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-subscription-charge.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;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,wBAAwB;IACrC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"update-subscription-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-subscription-charge.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;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,wBAAwB;IACrC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OA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AAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAGnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAmDvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoDtI"}
|
|
@@ -48,7 +48,6 @@ function UpdateSubscriptionChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
49
49
|
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
50
50
|
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
51
|
-
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
52
51
|
'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
|
|
53
52
|
'chargeType': json['chargeType'] == null ? undefined : json['chargeType'],
|
|
54
53
|
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
@@ -103,7 +102,6 @@ function UpdateSubscriptionChargeToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
103
102
|
'priceBase': value['priceBase'],
|
|
104
103
|
'quantity': value['quantity'],
|
|
105
104
|
'includedUnits': value['includedUnits'],
|
|
106
|
-
'discount': value['discount'],
|
|
107
105
|
'effectivePrice': value['effectivePrice'],
|
|
108
106
|
'chargeType': value['chargeType'],
|
|
109
107
|
'billingPeriod': value['billingPeriod'],
|
package/package.deploy.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.175-documents",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc -w --preserveWatchOutput",
|
|
6
6
|
"build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
9
|
"lint:fix:cache": "eslint --fix .",
|
|
10
|
-
"upload": "tsc && npm publish
|
|
10
|
+
"upload": "tsc && npm publish",
|
|
11
|
+
"upload:beta": "tsc && npm publish --tag documents"
|
|
11
12
|
},
|
|
12
13
|
"main": "./dist/index.js",
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
@@ -29,5 +30,8 @@
|
|
|
29
30
|
"typescript": "~5.4.2",
|
|
30
31
|
"@repo/eslint-config": "*",
|
|
31
32
|
"@repo/typescript-config": "*"
|
|
32
|
-
}
|
|
33
|
-
|
|
33
|
+
},
|
|
34
|
+
"tags": [
|
|
35
|
+
"beta"
|
|
36
|
+
]
|
|
37
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.189-disbursements",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc -w --preserveWatchOutput",
|
|
6
6
|
"build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
9
|
"lint:fix:cache": "eslint --fix .",
|
|
10
|
-
"upload": "tsc && npm publish
|
|
10
|
+
"upload": "tsc && npm publish",
|
|
11
|
+
"upload:beta": "tsc && npm publish --tag documents"
|
|
11
12
|
},
|
|
12
13
|
"main": "./dist/index.js",
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
@@ -29,5 +30,8 @@
|
|
|
29
30
|
"typescript": "~5.4.2",
|
|
30
31
|
"@repo/eslint-config": "*",
|
|
31
32
|
"@repo/typescript-config": "*"
|
|
32
|
-
}
|
|
33
|
-
|
|
33
|
+
},
|
|
34
|
+
"tags": [
|
|
35
|
+
"beta"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -222,6 +222,7 @@ export namespace Billing {
|
|
|
222
222
|
payload!: {
|
|
223
223
|
invoiceId: string;
|
|
224
224
|
sendEmail?: boolean;
|
|
225
|
+
reversalDate?: string;
|
|
225
226
|
};
|
|
226
227
|
}
|
|
227
228
|
|
|
@@ -587,4 +588,27 @@ export namespace Billing {
|
|
|
587
588
|
|
|
588
589
|
payload!: Record<string, never>;
|
|
589
590
|
}
|
|
591
|
+
|
|
592
|
+
export type GatewayTransaction = {
|
|
593
|
+
gatewayTransactionId: string;
|
|
594
|
+
paymentId: string | null;
|
|
595
|
+
orderId: string;
|
|
596
|
+
merchantAccountId: string;
|
|
597
|
+
createdAt: string;
|
|
598
|
+
status: string;
|
|
599
|
+
amount: string;
|
|
600
|
+
disbursementDate: string | null;
|
|
601
|
+
disbursementId: string | null;
|
|
602
|
+
settledAmount: string | null;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
export class GetGatewayTransactions implements ExtPlugin {
|
|
606
|
+
responseType!: GatewayTransaction[];
|
|
607
|
+
|
|
608
|
+
payload!: {
|
|
609
|
+
startDate: string;
|
|
610
|
+
endDate: string;
|
|
611
|
+
merchantAccountIds: string[];
|
|
612
|
+
};
|
|
613
|
+
}
|
|
590
614
|
}
|
|
@@ -923,7 +923,7 @@ export interface GenerateAccountsReceivableReportRequest {
|
|
|
923
923
|
accountsReceivableReportFilters: AccountsReceivableReportFilters;
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
export interface
|
|
926
|
+
export interface GenerateAccrualExcelRequest {
|
|
927
927
|
accrualReportFilters: AccrualReportFilters;
|
|
928
928
|
}
|
|
929
929
|
|
|
@@ -1577,11 +1577,6 @@ export interface RefreshPaidThroughDateRequest {
|
|
|
1577
1577
|
subscriptionId: string;
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
|
-
export interface ReverseInvoiceRequest {
|
|
1581
|
-
invoiceId: string;
|
|
1582
|
-
sendEmail?: boolean;
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
1580
|
export interface RefundInvoiceRequest {
|
|
1586
1581
|
invoiceId: string;
|
|
1587
1582
|
refundInvoice: RefundInvoice;
|
|
@@ -1592,6 +1587,11 @@ export interface RefundPaymentRequest {
|
|
|
1592
1587
|
refundPayment: RefundPayment;
|
|
1593
1588
|
}
|
|
1594
1589
|
|
|
1590
|
+
export interface ReverseInvoiceRequest {
|
|
1591
|
+
invoiceId: string;
|
|
1592
|
+
sendEmail: boolean;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
1595
|
export interface SendEmailRequest {
|
|
1596
1596
|
sendEmail: SendEmail;
|
|
1597
1597
|
siteId?: string;
|
|
@@ -4370,11 +4370,11 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4370
4370
|
|
|
4371
4371
|
/**
|
|
4372
4372
|
*/
|
|
4373
|
-
async
|
|
4373
|
+
async generateAccrualExcelRaw(requestParameters: GenerateAccrualExcelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
4374
4374
|
if (requestParameters['accrualReportFilters'] == null) {
|
|
4375
4375
|
throw new runtime.RequiredError(
|
|
4376
4376
|
'accrualReportFilters',
|
|
4377
|
-
'Required parameter "accrualReportFilters" was null or undefined when calling
|
|
4377
|
+
'Required parameter "accrualReportFilters" was null or undefined when calling generateAccrualExcel().'
|
|
4378
4378
|
);
|
|
4379
4379
|
}
|
|
4380
4380
|
|
|
@@ -4393,7 +4393,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4393
4393
|
}
|
|
4394
4394
|
}
|
|
4395
4395
|
const response = await this.request({
|
|
4396
|
-
path: `/api/org/reports/accrual/
|
|
4396
|
+
path: `/api/org/reports/accrual/excel`,
|
|
4397
4397
|
method: 'POST',
|
|
4398
4398
|
headers: headerParameters,
|
|
4399
4399
|
query: queryParameters,
|
|
@@ -4405,8 +4405,8 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4405
4405
|
|
|
4406
4406
|
/**
|
|
4407
4407
|
*/
|
|
4408
|
-
async
|
|
4409
|
-
await this.
|
|
4408
|
+
async generateAccrualExcel(requestParameters: GenerateAccrualExcelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
4409
|
+
await this.generateAccrualExcelRaw(requestParameters, initOverrides);
|
|
4410
4410
|
}
|
|
4411
4411
|
|
|
4412
4412
|
/**
|
|
@@ -10517,20 +10517,23 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10517
10517
|
|
|
10518
10518
|
/**
|
|
10519
10519
|
*/
|
|
10520
|
-
async
|
|
10520
|
+
async refundInvoiceRaw(requestParameters: RefundInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Refund>> {
|
|
10521
10521
|
if (requestParameters['invoiceId'] == null) {
|
|
10522
10522
|
throw new runtime.RequiredError(
|
|
10523
10523
|
'invoiceId',
|
|
10524
|
-
'Required parameter "invoiceId" was null or undefined when calling
|
|
10524
|
+
'Required parameter "invoiceId" was null or undefined when calling refundInvoice().'
|
|
10525
10525
|
);
|
|
10526
10526
|
}
|
|
10527
10527
|
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10528
|
+
if (requestParameters['refundInvoice'] == null) {
|
|
10529
|
+
throw new runtime.RequiredError(
|
|
10530
|
+
'refundInvoice',
|
|
10531
|
+
'Required parameter "refundInvoice" was null or undefined when calling refundInvoice().'
|
|
10532
|
+
);
|
|
10532
10533
|
}
|
|
10533
10534
|
|
|
10535
|
+
const queryParameters: any = {};
|
|
10536
|
+
|
|
10534
10537
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
10535
10538
|
|
|
10536
10539
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -10544,36 +10547,37 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10544
10547
|
}
|
|
10545
10548
|
}
|
|
10546
10549
|
const response = await this.request({
|
|
10547
|
-
path: `/api/billing/invoices/{invoiceId}/
|
|
10548
|
-
method: '
|
|
10550
|
+
path: `/api/billing/invoices/{invoiceId}/refunds`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
10551
|
+
method: 'POST',
|
|
10549
10552
|
headers: headerParameters,
|
|
10550
10553
|
query: queryParameters,
|
|
10554
|
+
body: RefundInvoiceToJSON(requestParameters['refundInvoice']),
|
|
10551
10555
|
}, initOverrides);
|
|
10552
10556
|
|
|
10553
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
10557
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RefundFromJSON(jsonValue));
|
|
10554
10558
|
}
|
|
10555
10559
|
|
|
10556
10560
|
/**
|
|
10557
10561
|
*/
|
|
10558
|
-
async
|
|
10559
|
-
const response = await this.
|
|
10562
|
+
async refundInvoice(requestParameters: RefundInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Refund> {
|
|
10563
|
+
const response = await this.refundInvoiceRaw(requestParameters, initOverrides);
|
|
10560
10564
|
return await response.value();
|
|
10561
10565
|
}
|
|
10562
10566
|
|
|
10563
10567
|
/**
|
|
10564
10568
|
*/
|
|
10565
|
-
async
|
|
10566
|
-
if (requestParameters['
|
|
10569
|
+
async refundPaymentRaw(requestParameters: RefundPaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Refund>> {
|
|
10570
|
+
if (requestParameters['paymentId'] == null) {
|
|
10567
10571
|
throw new runtime.RequiredError(
|
|
10568
|
-
'
|
|
10569
|
-
'Required parameter "
|
|
10572
|
+
'paymentId',
|
|
10573
|
+
'Required parameter "paymentId" was null or undefined when calling refundPayment().'
|
|
10570
10574
|
);
|
|
10571
10575
|
}
|
|
10572
10576
|
|
|
10573
|
-
if (requestParameters['
|
|
10577
|
+
if (requestParameters['refundPayment'] == null) {
|
|
10574
10578
|
throw new runtime.RequiredError(
|
|
10575
|
-
'
|
|
10576
|
-
'Required parameter "
|
|
10579
|
+
'refundPayment',
|
|
10580
|
+
'Required parameter "refundPayment" was null or undefined when calling refundPayment().'
|
|
10577
10581
|
);
|
|
10578
10582
|
}
|
|
10579
10583
|
|
|
@@ -10592,11 +10596,11 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10592
10596
|
}
|
|
10593
10597
|
}
|
|
10594
10598
|
const response = await this.request({
|
|
10595
|
-
path: `/api/billing/
|
|
10596
|
-
method: '
|
|
10599
|
+
path: `/api/billing/payments/{paymentId}/refunds`.replace(`{${"paymentId"}}`, encodeURIComponent(String(requestParameters['paymentId']))),
|
|
10600
|
+
method: 'PUT',
|
|
10597
10601
|
headers: headerParameters,
|
|
10598
10602
|
query: queryParameters,
|
|
10599
|
-
body:
|
|
10603
|
+
body: RefundPaymentToJSON(requestParameters['refundPayment']),
|
|
10600
10604
|
}, initOverrides);
|
|
10601
10605
|
|
|
10602
10606
|
return new runtime.JSONApiResponse(response, (jsonValue) => RefundFromJSON(jsonValue));
|
|
@@ -10604,33 +10608,35 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10604
10608
|
|
|
10605
10609
|
/**
|
|
10606
10610
|
*/
|
|
10607
|
-
async
|
|
10608
|
-
const response = await this.
|
|
10611
|
+
async refundPayment(requestParameters: RefundPaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Refund> {
|
|
10612
|
+
const response = await this.refundPaymentRaw(requestParameters, initOverrides);
|
|
10609
10613
|
return await response.value();
|
|
10610
10614
|
}
|
|
10611
10615
|
|
|
10612
10616
|
/**
|
|
10613
10617
|
*/
|
|
10614
|
-
async
|
|
10615
|
-
if (requestParameters['
|
|
10618
|
+
async reverseInvoiceRaw(requestParameters: ReverseInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Invoice>> {
|
|
10619
|
+
if (requestParameters['invoiceId'] == null) {
|
|
10616
10620
|
throw new runtime.RequiredError(
|
|
10617
|
-
'
|
|
10618
|
-
'Required parameter "
|
|
10621
|
+
'invoiceId',
|
|
10622
|
+
'Required parameter "invoiceId" was null or undefined when calling reverseInvoice().'
|
|
10619
10623
|
);
|
|
10620
10624
|
}
|
|
10621
10625
|
|
|
10622
|
-
if (requestParameters['
|
|
10626
|
+
if (requestParameters['sendEmail'] == null) {
|
|
10623
10627
|
throw new runtime.RequiredError(
|
|
10624
|
-
'
|
|
10625
|
-
'Required parameter "
|
|
10628
|
+
'sendEmail',
|
|
10629
|
+
'Required parameter "sendEmail" was null or undefined when calling reverseInvoice().'
|
|
10626
10630
|
);
|
|
10627
10631
|
}
|
|
10628
10632
|
|
|
10629
10633
|
const queryParameters: any = {};
|
|
10630
10634
|
|
|
10631
|
-
|
|
10635
|
+
if (requestParameters['sendEmail'] != null) {
|
|
10636
|
+
queryParameters['sendEmail'] = requestParameters['sendEmail'];
|
|
10637
|
+
}
|
|
10632
10638
|
|
|
10633
|
-
headerParameters
|
|
10639
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
10634
10640
|
|
|
10635
10641
|
if (this.configuration && this.configuration.accessToken) {
|
|
10636
10642
|
const token = this.configuration.accessToken;
|
|
@@ -10641,20 +10647,19 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10641
10647
|
}
|
|
10642
10648
|
}
|
|
10643
10649
|
const response = await this.request({
|
|
10644
|
-
path: `/api/billing/
|
|
10650
|
+
path: `/api/billing/invoices/{invoiceId}/reverse`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
10645
10651
|
method: 'PUT',
|
|
10646
10652
|
headers: headerParameters,
|
|
10647
10653
|
query: queryParameters,
|
|
10648
|
-
body: RefundPaymentToJSON(requestParameters['refundPayment']),
|
|
10649
10654
|
}, initOverrides);
|
|
10650
10655
|
|
|
10651
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
10656
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvoiceFromJSON(jsonValue));
|
|
10652
10657
|
}
|
|
10653
10658
|
|
|
10654
10659
|
/**
|
|
10655
10660
|
*/
|
|
10656
|
-
async
|
|
10657
|
-
const response = await this.
|
|
10661
|
+
async reverseInvoice(requestParameters: ReverseInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Invoice> {
|
|
10662
|
+
const response = await this.reverseInvoiceRaw(requestParameters, initOverrides);
|
|
10658
10663
|
return await response.value();
|
|
10659
10664
|
}
|
|
10660
10665
|
|