@managespace/sdk 0.1.189-melissa.dev → 0.1.190-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 +5 -0
- package/dist/generated/apis/default-api.d.ts +13 -14
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +38 -37
- 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 +7 -3
- package/src/extensibility/functions/project/billing.ts +32 -0
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/default-api.ts +53 -50
- 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
- package/package.workspace.json +0 -23
|
@@ -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,WAA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AAG,kBAAkB,CAExE;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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xB;;;;OAIG;IACH,eAAe,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.190-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
|
+
},
|
|
34
|
+
"tags": [
|
|
35
|
+
"beta"
|
|
36
|
+
]
|
|
33
37
|
}
|
|
@@ -588,4 +588,36 @@ export namespace Billing {
|
|
|
588
588
|
|
|
589
589
|
payload!: Record<string, never>;
|
|
590
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 type GatewayTransactionPage = {
|
|
606
|
+
items: GatewayTransaction[];
|
|
607
|
+
nextCursor: string | null;
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
export class GetGatewayTransactions implements ExtPlugin {
|
|
611
|
+
responseType!: GatewayTransactionPage;
|
|
612
|
+
|
|
613
|
+
payload!: {
|
|
614
|
+
startDate: string;
|
|
615
|
+
endDate: string;
|
|
616
|
+
merchantAccountIds: string[];
|
|
617
|
+
pageOptions: {
|
|
618
|
+
cursor?: string;
|
|
619
|
+
limit: number;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
}
|
|
591
623
|
}
|
|
@@ -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,12 +1577,6 @@ export interface RefreshPaidThroughDateRequest {
|
|
|
1577
1577
|
subscriptionId: string;
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
|
-
export interface ReverseInvoiceRequest {
|
|
1581
|
-
invoiceId: string;
|
|
1582
|
-
sendEmail?: boolean;
|
|
1583
|
-
reversalDate?: string;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
1580
|
export interface RefundInvoiceRequest {
|
|
1587
1581
|
invoiceId: string;
|
|
1588
1582
|
refundInvoice: RefundInvoice;
|
|
@@ -1593,6 +1587,11 @@ export interface RefundPaymentRequest {
|
|
|
1593
1587
|
refundPayment: RefundPayment;
|
|
1594
1588
|
}
|
|
1595
1589
|
|
|
1590
|
+
export interface ReverseInvoiceRequest {
|
|
1591
|
+
invoiceId: string;
|
|
1592
|
+
sendEmail: boolean;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1596
1595
|
export interface SendEmailRequest {
|
|
1597
1596
|
sendEmail: SendEmail;
|
|
1598
1597
|
siteId?: string;
|
|
@@ -4371,11 +4370,11 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4371
4370
|
|
|
4372
4371
|
/**
|
|
4373
4372
|
*/
|
|
4374
|
-
async
|
|
4373
|
+
async generateAccrualExcelRaw(requestParameters: GenerateAccrualExcelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
4375
4374
|
if (requestParameters['accrualReportFilters'] == null) {
|
|
4376
4375
|
throw new runtime.RequiredError(
|
|
4377
4376
|
'accrualReportFilters',
|
|
4378
|
-
'Required parameter "accrualReportFilters" was null or undefined when calling
|
|
4377
|
+
'Required parameter "accrualReportFilters" was null or undefined when calling generateAccrualExcel().'
|
|
4379
4378
|
);
|
|
4380
4379
|
}
|
|
4381
4380
|
|
|
@@ -4394,7 +4393,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4394
4393
|
}
|
|
4395
4394
|
}
|
|
4396
4395
|
const response = await this.request({
|
|
4397
|
-
path: `/api/org/reports/accrual/
|
|
4396
|
+
path: `/api/org/reports/accrual/excel`,
|
|
4398
4397
|
method: 'POST',
|
|
4399
4398
|
headers: headerParameters,
|
|
4400
4399
|
query: queryParameters,
|
|
@@ -4406,8 +4405,8 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4406
4405
|
|
|
4407
4406
|
/**
|
|
4408
4407
|
*/
|
|
4409
|
-
async
|
|
4410
|
-
await this.
|
|
4408
|
+
async generateAccrualExcel(requestParameters: GenerateAccrualExcelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
4409
|
+
await this.generateAccrualExcelRaw(requestParameters, initOverrides);
|
|
4411
4410
|
}
|
|
4412
4411
|
|
|
4413
4412
|
/**
|
|
@@ -10518,20 +10517,23 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10518
10517
|
|
|
10519
10518
|
/**
|
|
10520
10519
|
*/
|
|
10521
|
-
async
|
|
10520
|
+
async refundInvoiceRaw(requestParameters: RefundInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Refund>> {
|
|
10522
10521
|
if (requestParameters['invoiceId'] == null) {
|
|
10523
10522
|
throw new runtime.RequiredError(
|
|
10524
10523
|
'invoiceId',
|
|
10525
|
-
'Required parameter "invoiceId" was null or undefined when calling
|
|
10524
|
+
'Required parameter "invoiceId" was null or undefined when calling refundInvoice().'
|
|
10526
10525
|
);
|
|
10527
10526
|
}
|
|
10528
10527
|
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10528
|
+
if (requestParameters['refundInvoice'] == null) {
|
|
10529
|
+
throw new runtime.RequiredError(
|
|
10530
|
+
'refundInvoice',
|
|
10531
|
+
'Required parameter "refundInvoice" was null or undefined when calling refundInvoice().'
|
|
10532
|
+
);
|
|
10533
10533
|
}
|
|
10534
10534
|
|
|
10535
|
+
const queryParameters: any = {};
|
|
10536
|
+
|
|
10535
10537
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
10536
10538
|
|
|
10537
10539
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -10545,37 +10547,37 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10545
10547
|
}
|
|
10546
10548
|
}
|
|
10547
10549
|
const response = await this.request({
|
|
10548
|
-
path: `/api/billing/invoices/{invoiceId}/
|
|
10549
|
-
method: '
|
|
10550
|
+
path: `/api/billing/invoices/{invoiceId}/refunds`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
10551
|
+
method: 'POST',
|
|
10550
10552
|
headers: headerParameters,
|
|
10551
10553
|
query: queryParameters,
|
|
10552
|
-
body: requestParameters['
|
|
10554
|
+
body: RefundInvoiceToJSON(requestParameters['refundInvoice']),
|
|
10553
10555
|
}, initOverrides);
|
|
10554
10556
|
|
|
10555
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
10557
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RefundFromJSON(jsonValue));
|
|
10556
10558
|
}
|
|
10557
10559
|
|
|
10558
10560
|
/**
|
|
10559
10561
|
*/
|
|
10560
|
-
async
|
|
10561
|
-
const response = await this.
|
|
10562
|
+
async refundInvoice(requestParameters: RefundInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Refund> {
|
|
10563
|
+
const response = await this.refundInvoiceRaw(requestParameters, initOverrides);
|
|
10562
10564
|
return await response.value();
|
|
10563
10565
|
}
|
|
10564
10566
|
|
|
10565
10567
|
/**
|
|
10566
10568
|
*/
|
|
10567
|
-
async
|
|
10568
|
-
if (requestParameters['
|
|
10569
|
+
async refundPaymentRaw(requestParameters: RefundPaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Refund>> {
|
|
10570
|
+
if (requestParameters['paymentId'] == null) {
|
|
10569
10571
|
throw new runtime.RequiredError(
|
|
10570
|
-
'
|
|
10571
|
-
'Required parameter "
|
|
10572
|
+
'paymentId',
|
|
10573
|
+
'Required parameter "paymentId" was null or undefined when calling refundPayment().'
|
|
10572
10574
|
);
|
|
10573
10575
|
}
|
|
10574
10576
|
|
|
10575
|
-
if (requestParameters['
|
|
10577
|
+
if (requestParameters['refundPayment'] == null) {
|
|
10576
10578
|
throw new runtime.RequiredError(
|
|
10577
|
-
'
|
|
10578
|
-
'Required parameter "
|
|
10579
|
+
'refundPayment',
|
|
10580
|
+
'Required parameter "refundPayment" was null or undefined when calling refundPayment().'
|
|
10579
10581
|
);
|
|
10580
10582
|
}
|
|
10581
10583
|
|
|
@@ -10594,11 +10596,11 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10594
10596
|
}
|
|
10595
10597
|
}
|
|
10596
10598
|
const response = await this.request({
|
|
10597
|
-
path: `/api/billing/
|
|
10598
|
-
method: '
|
|
10599
|
+
path: `/api/billing/payments/{paymentId}/refunds`.replace(`{${"paymentId"}}`, encodeURIComponent(String(requestParameters['paymentId']))),
|
|
10600
|
+
method: 'PUT',
|
|
10599
10601
|
headers: headerParameters,
|
|
10600
10602
|
query: queryParameters,
|
|
10601
|
-
body:
|
|
10603
|
+
body: RefundPaymentToJSON(requestParameters['refundPayment']),
|
|
10602
10604
|
}, initOverrides);
|
|
10603
10605
|
|
|
10604
10606
|
return new runtime.JSONApiResponse(response, (jsonValue) => RefundFromJSON(jsonValue));
|
|
@@ -10606,33 +10608,35 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10606
10608
|
|
|
10607
10609
|
/**
|
|
10608
10610
|
*/
|
|
10609
|
-
async
|
|
10610
|
-
const response = await this.
|
|
10611
|
+
async refundPayment(requestParameters: RefundPaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Refund> {
|
|
10612
|
+
const response = await this.refundPaymentRaw(requestParameters, initOverrides);
|
|
10611
10613
|
return await response.value();
|
|
10612
10614
|
}
|
|
10613
10615
|
|
|
10614
10616
|
/**
|
|
10615
10617
|
*/
|
|
10616
|
-
async
|
|
10617
|
-
if (requestParameters['
|
|
10618
|
+
async reverseInvoiceRaw(requestParameters: ReverseInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Invoice>> {
|
|
10619
|
+
if (requestParameters['invoiceId'] == null) {
|
|
10618
10620
|
throw new runtime.RequiredError(
|
|
10619
|
-
'
|
|
10620
|
-
'Required parameter "
|
|
10621
|
+
'invoiceId',
|
|
10622
|
+
'Required parameter "invoiceId" was null or undefined when calling reverseInvoice().'
|
|
10621
10623
|
);
|
|
10622
10624
|
}
|
|
10623
10625
|
|
|
10624
|
-
if (requestParameters['
|
|
10626
|
+
if (requestParameters['sendEmail'] == null) {
|
|
10625
10627
|
throw new runtime.RequiredError(
|
|
10626
|
-
'
|
|
10627
|
-
'Required parameter "
|
|
10628
|
+
'sendEmail',
|
|
10629
|
+
'Required parameter "sendEmail" was null or undefined when calling reverseInvoice().'
|
|
10628
10630
|
);
|
|
10629
10631
|
}
|
|
10630
10632
|
|
|
10631
10633
|
const queryParameters: any = {};
|
|
10632
10634
|
|
|
10633
|
-
|
|
10635
|
+
if (requestParameters['sendEmail'] != null) {
|
|
10636
|
+
queryParameters['sendEmail'] = requestParameters['sendEmail'];
|
|
10637
|
+
}
|
|
10634
10638
|
|
|
10635
|
-
headerParameters
|
|
10639
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
10636
10640
|
|
|
10637
10641
|
if (this.configuration && this.configuration.accessToken) {
|
|
10638
10642
|
const token = this.configuration.accessToken;
|
|
@@ -10643,20 +10647,19 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10643
10647
|
}
|
|
10644
10648
|
}
|
|
10645
10649
|
const response = await this.request({
|
|
10646
|
-
path: `/api/billing/
|
|
10650
|
+
path: `/api/billing/invoices/{invoiceId}/reverse`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
10647
10651
|
method: 'PUT',
|
|
10648
10652
|
headers: headerParameters,
|
|
10649
10653
|
query: queryParameters,
|
|
10650
|
-
body: RefundPaymentToJSON(requestParameters['refundPayment']),
|
|
10651
10654
|
}, initOverrides);
|
|
10652
10655
|
|
|
10653
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
10656
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvoiceFromJSON(jsonValue));
|
|
10654
10657
|
}
|
|
10655
10658
|
|
|
10656
10659
|
/**
|
|
10657
10660
|
*/
|
|
10658
|
-
async
|
|
10659
|
-
const response = await this.
|
|
10661
|
+
async reverseInvoice(requestParameters: ReverseInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Invoice> {
|
|
10662
|
+
const response = await this.reverseInvoiceRaw(requestParameters, initOverrides);
|
|
10660
10663
|
return await response.value();
|
|
10661
10664
|
}
|
|
10662
10665
|
|