@managespace/sdk 0.1.189-melissa.dev → 0.1.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/apis/default-api.d.ts +10 -11
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +33 -32
- 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 +2 -2
- package/package.json +3 -3
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/default-api.ts +47 -44
- 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
|
@@ -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":"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"}
|
|
@@ -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,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.189",
|
|
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
11
|
},
|
|
12
12
|
"main": "./dist/index.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.189
|
|
3
|
+
"version": "0.1.189",
|
|
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
11
|
},
|
|
12
12
|
"main": "./dist/index.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
"@repo/eslint-config": "*",
|
|
31
31
|
"@repo/typescript-config": "*"
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
}
|
|
@@ -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;
|
|
@@ -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
|
|
|
@@ -28,6 +28,13 @@ import {
|
|
|
28
28
|
CreateCreditInvoiceToJSON,
|
|
29
29
|
CreateCreditInvoiceToJSONTyped,
|
|
30
30
|
} from './create-credit-invoice';
|
|
31
|
+
import type { CreditAppliesToProductType } from './credit-applies-to-product-type';
|
|
32
|
+
import {
|
|
33
|
+
CreditAppliesToProductTypeFromJSON,
|
|
34
|
+
CreditAppliesToProductTypeFromJSONTyped,
|
|
35
|
+
CreditAppliesToProductTypeToJSON,
|
|
36
|
+
CreditAppliesToProductTypeToJSONTyped,
|
|
37
|
+
} from './credit-applies-to-product-type';
|
|
31
38
|
|
|
32
39
|
/**
|
|
33
40
|
*
|
|
@@ -77,6 +84,12 @@ export interface CreateCredit {
|
|
|
77
84
|
* @memberof CreateCredit
|
|
78
85
|
*/
|
|
79
86
|
currency?: string;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {CreditAppliesToProductType}
|
|
90
|
+
* @memberof CreateCredit
|
|
91
|
+
*/
|
|
92
|
+
appliesToProductType?: CreditAppliesToProductType;
|
|
80
93
|
/**
|
|
81
94
|
* Automatically apply credit to most recent invoice
|
|
82
95
|
* @type {boolean}
|
|
@@ -109,6 +122,8 @@ export interface CreateCredit {
|
|
|
109
122
|
creditLineItems: Array<CreateCreditLineItems>;
|
|
110
123
|
}
|
|
111
124
|
|
|
125
|
+
|
|
126
|
+
|
|
112
127
|
/**
|
|
113
128
|
* Check if a given object implements the CreateCredit interface.
|
|
114
129
|
*/
|
|
@@ -137,6 +152,7 @@ export function CreateCreditFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
137
152
|
'appliedAmount': json['appliedAmount'] == null ? undefined : json['appliedAmount'],
|
|
138
153
|
'unappliedAmount': json['unappliedAmount'] == null ? undefined : json['unappliedAmount'],
|
|
139
154
|
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
155
|
+
'appliesToProductType': json['appliesToProductType'] == null ? undefined : CreditAppliesToProductTypeFromJSON(json['appliesToProductType']),
|
|
140
156
|
'autoApply': json['autoApply'] == null ? undefined : json['autoApply'],
|
|
141
157
|
'isPrepayment': json['isPrepayment'] == null ? undefined : json['isPrepayment'],
|
|
142
158
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
@@ -163,6 +179,7 @@ export function CreateCreditToJSONTyped(value?: CreateCredit | null, ignoreDiscr
|
|
|
163
179
|
'appliedAmount': value['appliedAmount'],
|
|
164
180
|
'unappliedAmount': value['unappliedAmount'],
|
|
165
181
|
'currency': value['currency'],
|
|
182
|
+
'appliesToProductType': CreditAppliesToProductTypeToJSON(value['appliesToProductType']),
|
|
166
183
|
'autoApply': value['autoApply'],
|
|
167
184
|
'isPrepayment': value['isPrepayment'],
|
|
168
185
|
'subscriptionId': value['subscriptionId'],
|
|
@@ -119,6 +119,12 @@ export interface CreateProductCustom {
|
|
|
119
119
|
* @memberof CreateProductCustom
|
|
120
120
|
*/
|
|
121
121
|
oneTimeCharge: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Product ID to use when writing off this product's charge
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof CreateProductCustom
|
|
126
|
+
*/
|
|
127
|
+
writeOffProductId?: string;
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
|
|
@@ -161,6 +167,7 @@ export function CreateProductCustomFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
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 CreateProductCustomToJSONTyped(value?: CreateProductCustom | nul
|
|
|
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
|
|
|
@@ -101,12 +101,6 @@ export interface CreateSubscriptionCharge {
|
|
|
101
101
|
* @memberof CreateSubscriptionCharge
|
|
102
102
|
*/
|
|
103
103
|
includedUnits?: number;
|
|
104
|
-
/**
|
|
105
|
-
* Discount applied to product
|
|
106
|
-
* @type {number}
|
|
107
|
-
* @memberof CreateSubscriptionCharge
|
|
108
|
-
*/
|
|
109
|
-
discount?: number;
|
|
110
104
|
/**
|
|
111
105
|
* Effective price of product
|
|
112
106
|
* @type {string}
|
|
@@ -337,7 +331,6 @@ export function CreateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
337
331
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
338
332
|
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
339
333
|
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
340
|
-
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
341
334
|
'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
|
|
342
335
|
'chargeType': json['chargeType'] == null ? undefined : json['chargeType'],
|
|
343
336
|
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
@@ -396,7 +389,6 @@ export function CreateSubscriptionChargeToJSONTyped(value?: CreateSubscriptionCh
|
|
|
396
389
|
'priceBase': value['priceBase'],
|
|
397
390
|
'quantity': value['quantity'],
|
|
398
391
|
'includedUnits': value['includedUnits'],
|
|
399
|
-
'discount': value['discount'],
|
|
400
392
|
'effectivePrice': value['effectivePrice'],
|
|
401
393
|
'chargeType': value['chargeType'],
|
|
402
394
|
'billingPeriod': value['billingPeriod'],
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The product type this credit is intended to apply against
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const CreditAppliesToProductType = {
|
|
22
|
+
RENT: 'RENT',
|
|
23
|
+
RENT_TREATMENT: 'RENT_TREATMENT',
|
|
24
|
+
INSURANCE: 'INSURANCE',
|
|
25
|
+
FEE: 'FEE',
|
|
26
|
+
MERCHANDISE: 'MERCHANDISE'
|
|
27
|
+
} as const;
|
|
28
|
+
export type CreditAppliesToProductType = typeof CreditAppliesToProductType[keyof typeof CreditAppliesToProductType];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export function instanceOfCreditAppliesToProductType(value: any): boolean {
|
|
32
|
+
for (const key in CreditAppliesToProductType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(CreditAppliesToProductType, key)) {
|
|
34
|
+
if (CreditAppliesToProductType[key as keyof typeof CreditAppliesToProductType] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CreditAppliesToProductTypeFromJSON(json: any): CreditAppliesToProductType {
|
|
43
|
+
return CreditAppliesToProductTypeFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CreditAppliesToProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreditAppliesToProductType {
|
|
47
|
+
return json as CreditAppliesToProductType;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CreditAppliesToProductTypeToJSON(value?: CreditAppliesToProductType | null): any {
|
|
51
|
+
return value as any;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function CreditAppliesToProductTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CreditAppliesToProductType {
|
|
55
|
+
return value as CreditAppliesToProductType;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -28,6 +28,13 @@ import {
|
|
|
28
28
|
CreditLineItemsToJSON,
|
|
29
29
|
CreditLineItemsToJSONTyped,
|
|
30
30
|
} from './credit-line-items';
|
|
31
|
+
import type { CreditAppliesToProductType } from './credit-applies-to-product-type';
|
|
32
|
+
import {
|
|
33
|
+
CreditAppliesToProductTypeFromJSON,
|
|
34
|
+
CreditAppliesToProductTypeFromJSONTyped,
|
|
35
|
+
CreditAppliesToProductTypeToJSON,
|
|
36
|
+
CreditAppliesToProductTypeToJSONTyped,
|
|
37
|
+
} from './credit-applies-to-product-type';
|
|
31
38
|
|
|
32
39
|
/**
|
|
33
40
|
*
|
|
@@ -65,6 +72,12 @@ export interface Credit {
|
|
|
65
72
|
* @memberof Credit
|
|
66
73
|
*/
|
|
67
74
|
currency: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {CreditAppliesToProductType}
|
|
78
|
+
* @memberof Credit
|
|
79
|
+
*/
|
|
80
|
+
appliesToProductType?: CreditAppliesToProductType;
|
|
68
81
|
/**
|
|
69
82
|
* Notes about the credit
|
|
70
83
|
* @type {string}
|
|
@@ -151,6 +164,8 @@ export interface Credit {
|
|
|
151
164
|
updatedDate?: string;
|
|
152
165
|
}
|
|
153
166
|
|
|
167
|
+
|
|
168
|
+
|
|
154
169
|
/**
|
|
155
170
|
* Check if a given object implements the Credit interface.
|
|
156
171
|
*/
|
|
@@ -178,6 +193,7 @@ export function CreditFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cr
|
|
|
178
193
|
'creditDate': json['creditDate'],
|
|
179
194
|
'creditAmount': json['creditAmount'],
|
|
180
195
|
'currency': json['currency'],
|
|
196
|
+
'appliesToProductType': json['appliesToProductType'] == null ? undefined : CreditAppliesToProductTypeFromJSON(json['appliesToProductType']),
|
|
181
197
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
182
198
|
'appliedAmount': json['appliedAmount'] == null ? undefined : json['appliedAmount'],
|
|
183
199
|
'unappliedAmount': json['unappliedAmount'] == null ? undefined : json['unappliedAmount'],
|
|
@@ -211,6 +227,7 @@ export function CreditToJSONTyped(value?: Credit | null, ignoreDiscriminator: bo
|
|
|
211
227
|
'creditDate': value['creditDate'],
|
|
212
228
|
'creditAmount': value['creditAmount'],
|
|
213
229
|
'currency': value['currency'],
|
|
230
|
+
'appliesToProductType': CreditAppliesToProductTypeToJSON(value['appliesToProductType']),
|
|
214
231
|
'notes': value['notes'],
|
|
215
232
|
'appliedAmount': value['appliedAmount'],
|
|
216
233
|
'unappliedAmount': value['unappliedAmount'],
|
|
@@ -81,6 +81,7 @@ export * from './create-task-definition';
|
|
|
81
81
|
export * from './create-task-instance';
|
|
82
82
|
export * from './create-template';
|
|
83
83
|
export * from './credit';
|
|
84
|
+
export * from './credit-applies-to-product-type';
|
|
84
85
|
export * from './credit-line-items';
|
|
85
86
|
export * from './custom-create-checklist';
|
|
86
87
|
export * from './custom-create-contact';
|
|
@@ -56,6 +56,18 @@ export interface JournalEntryEntries {
|
|
|
56
56
|
* @memberof JournalEntryEntries
|
|
57
57
|
*/
|
|
58
58
|
customerId: string;
|
|
59
|
+
/**
|
|
60
|
+
* Customer name associated with journal entry line
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof JournalEntryEntries
|
|
63
|
+
*/
|
|
64
|
+
customerName: string;
|
|
65
|
+
/**
|
|
66
|
+
* Custom fields on the journal entry line
|
|
67
|
+
* @type {object}
|
|
68
|
+
* @memberof JournalEntryEntries
|
|
69
|
+
*/
|
|
70
|
+
customFields: object;
|
|
59
71
|
}
|
|
60
72
|
|
|
61
73
|
/**
|
|
@@ -68,6 +80,8 @@ export function instanceOfJournalEntryEntries(value: object): value is JournalEn
|
|
|
68
80
|
if (!('credit' in value) || value['credit'] === undefined) return false;
|
|
69
81
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
70
82
|
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
83
|
+
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
84
|
+
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
71
85
|
return true;
|
|
72
86
|
}
|
|
73
87
|
|
|
@@ -87,6 +101,8 @@ export function JournalEntryEntriesFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
87
101
|
'credit': json['credit'],
|
|
88
102
|
'description': json['description'],
|
|
89
103
|
'customerId': json['customerId'],
|
|
104
|
+
'customerName': json['customerName'],
|
|
105
|
+
'customFields': json['customFields'],
|
|
90
106
|
};
|
|
91
107
|
}
|
|
92
108
|
|
|
@@ -107,6 +123,8 @@ export function JournalEntryEntriesToJSONTyped(value?: JournalEntryEntries | nul
|
|
|
107
123
|
'credit': value['credit'],
|
|
108
124
|
'description': value['description'],
|
|
109
125
|
'customerId': value['customerId'],
|
|
126
|
+
'customerName': value['customerName'],
|
|
127
|
+
'customFields': value['customFields'],
|
|
110
128
|
};
|
|
111
129
|
}
|
|
112
130
|
|