@managespace/sdk 0.1.131 → 0.1.132
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/models/asset-details.d.ts +6 -0
- package/dist/generated/models/asset-details.d.ts.map +1 -1
- package/dist/generated/models/asset-details.js +2 -0
- package/dist/generated/models/create-credit.d.ts +0 -7
- package/dist/generated/models/create-credit.d.ts.map +1 -1
- package/dist/generated/models/create-credit.js +0 -3
- package/dist/generated/models/create-payment.d.ts +14 -8
- package/dist/generated/models/create-payment.d.ts.map +1 -1
- package/dist/generated/models/create-payment.js +11 -7
- package/dist/generated/models/credit.d.ts +0 -7
- package/dist/generated/models/credit.d.ts.map +1 -1
- package/dist/generated/models/credit.js +0 -3
- package/dist/generated/models/get-payments-query.d.ts +12 -0
- package/dist/generated/models/get-payments-query.d.ts.map +1 -1
- package/dist/generated/models/get-payments-query.js +4 -0
- package/dist/generated/models/index.d.ts +0 -1
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -1
- package/dist/generated/models/payment.d.ts +20 -8
- package/dist/generated/models/payment.d.ts.map +1 -1
- package/dist/generated/models/payment.js +15 -7
- package/dist/generated/models/update-payment.d.ts +14 -8
- package/dist/generated/models/update-payment.d.ts.map +1 -1
- package/dist/generated/models/update-payment.js +11 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/realtime/index.d.ts +2 -0
- package/dist/realtime/index.d.ts.map +1 -0
- package/dist/realtime/index.js +17 -0
- package/dist/realtime/types/index.d.ts +4 -0
- package/dist/realtime/types/index.d.ts.map +1 -0
- package/dist/realtime/types/index.js +19 -0
- package/dist/realtime/types/push-channels.enum.d.ts +4 -0
- package/dist/realtime/types/push-channels.enum.d.ts.map +1 -0
- package/dist/realtime/types/push-channels.enum.js +7 -0
- package/dist/realtime/types/push-notification.dto.d.ts +14 -0
- package/dist/realtime/types/push-notification.dto.d.ts.map +1 -0
- package/dist/realtime/types/push-notification.dto.js +15 -0
- package/dist/realtime/types/push-topics.enum.d.ts +7 -0
- package/dist/realtime/types/push-topics.enum.d.ts.map +1 -0
- package/dist/realtime/types/push-topics.enum.js +9 -0
- package/package.deploy.json +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +0 -1
- package/src/generated/models/asset-details.ts +8 -0
- package/src/generated/models/create-credit.ts +0 -15
- package/src/generated/models/create-payment.ts +24 -15
- package/src/generated/models/credit.ts +0 -15
- package/src/generated/models/get-payments-query.ts +16 -0
- package/src/generated/models/index.ts +0 -1
- package/src/generated/models/payment.ts +33 -15
- package/src/generated/models/update-payment.ts +24 -15
- package/src/index.ts +1 -0
- package/src/realtime/index.ts +1 -0
- package/src/realtime/types/index.ts +3 -0
- package/src/realtime/types/push-channels.enum.ts +3 -0
- package/src/realtime/types/push-notification.dto.ts +16 -0
- package/src/realtime/types/push-topics.enum.ts +11 -0
- package/dist/generated/models/create-credit-line-items.d.ts +0 -51
- package/dist/generated/models/create-credit-line-items.d.ts.map +0 -1
- package/dist/generated/models/create-credit-line-items.js +0 -63
- package/src/generated/models/create-credit-line-items.ts +0 -93
|
@@ -30,7 +30,9 @@ function instanceOfUpdatePayment(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('currency' in value) || value['currency'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('
|
|
33
|
+
if (!('invoices' in value) || value['invoices'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('refunds' in value) || value['refunds'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
return true;
|
|
36
38
|
}
|
|
@@ -58,19 +60,20 @@ function UpdatePaymentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'saveForLater': json['saveForLater'] == null ? undefined : json['saveForLater'],
|
|
59
61
|
'currency': json['currency'],
|
|
60
62
|
'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
|
|
61
|
-
'autoApply': json['autoApply'],
|
|
62
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
63
64
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
64
65
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
65
66
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
66
|
-
'invoices':
|
|
67
|
-
'refunds':
|
|
67
|
+
'invoices': (json['invoices'].map(create_payment_invoice_1.CreatePaymentInvoiceFromJSON)),
|
|
68
|
+
'refunds': (json['refunds'].map(create_payment_refund_1.CreatePaymentRefundFromJSON)),
|
|
68
69
|
'glAccount': json['glAccount'] == null ? undefined : json['glAccount'],
|
|
69
70
|
'retriedAttempts': json['retriedAttempts'] == null ? undefined : json['retriedAttempts'],
|
|
70
71
|
'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
|
|
71
72
|
'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
|
|
72
73
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
73
74
|
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
75
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
76
|
+
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
74
77
|
};
|
|
75
78
|
}
|
|
76
79
|
exports.UpdatePaymentFromJSONTyped = UpdatePaymentFromJSONTyped;
|
|
@@ -97,19 +100,20 @@ function UpdatePaymentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
97
100
|
'saveForLater': value['saveForLater'],
|
|
98
101
|
'currency': value['currency'],
|
|
99
102
|
'referenceNumber': value['referenceNumber'],
|
|
100
|
-
'autoApply': value['autoApply'],
|
|
101
103
|
'createdAt': value['createdAt'],
|
|
102
104
|
'updatedAt': value['updatedAt'],
|
|
103
105
|
'createdBy': value['createdBy'],
|
|
104
106
|
'updatedBy': value['updatedBy'],
|
|
105
|
-
'invoices':
|
|
106
|
-
'refunds':
|
|
107
|
+
'invoices': (value['invoices'].map(create_payment_invoice_1.CreatePaymentInvoiceToJSON)),
|
|
108
|
+
'refunds': (value['refunds'].map(create_payment_refund_1.CreatePaymentRefundToJSON)),
|
|
107
109
|
'glAccount': value['glAccount'],
|
|
108
110
|
'retriedAttempts': value['retriedAttempts'],
|
|
109
111
|
'gatewayName': value['gatewayName'],
|
|
110
112
|
'emailStatus': value['emailStatus'],
|
|
111
113
|
'assetId': value['assetId'],
|
|
112
114
|
'orderId': value['orderId'],
|
|
115
|
+
'subscriptionId': value['subscriptionId'],
|
|
116
|
+
'productId': value['productId'],
|
|
113
117
|
};
|
|
114
118
|
}
|
|
115
119
|
exports.UpdatePaymentToJSONTyped = UpdatePaymentToJSONTyped;
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./extensibility"), exports);
|
|
18
18
|
__exportStar(require("./generated"), exports);
|
|
19
|
+
__exportStar(require("./realtime"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/realtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/realtime/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./push-notification.dto"), exports);
|
|
18
|
+
__exportStar(require("./push-channels.enum"), exports);
|
|
19
|
+
__exportStar(require("./push-topics.enum"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-channels.enum.d.ts","sourceRoot":"","sources":["../../../src/realtime/types/push-channels.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACpB,KAAK,QAAQ;CAChB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum PushNotificationTypes {
|
|
2
|
+
'SUCCESS' = "success",
|
|
3
|
+
'ERROR' = "error",
|
|
4
|
+
'WARNING' = "warning"
|
|
5
|
+
}
|
|
6
|
+
export declare class PushNotification {
|
|
7
|
+
readonly type: PushNotificationTypes;
|
|
8
|
+
readonly message: string;
|
|
9
|
+
readonly action?: {
|
|
10
|
+
label: string;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=push-notification.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-notification.dto.d.ts","sourceRoot":"","sources":["../../../src/realtime/types/push-notification.dto.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC7B,SAAS,YAAY;IACrB,OAAO,UAAU;IACjB,SAAS,YAAY;CACxB;AAED,qBAAa,gBAAgB;IACzB,QAAQ,CAAC,IAAI,EAAG,qBAAqB,CAAC;IAEtC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAC;IAE1B,QAAQ,CAAC,MAAM,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PushNotification = exports.PushNotificationTypes = void 0;
|
|
4
|
+
var PushNotificationTypes;
|
|
5
|
+
(function (PushNotificationTypes) {
|
|
6
|
+
PushNotificationTypes["SUCCESS"] = "success";
|
|
7
|
+
PushNotificationTypes["ERROR"] = "error";
|
|
8
|
+
PushNotificationTypes["WARNING"] = "warning";
|
|
9
|
+
})(PushNotificationTypes || (exports.PushNotificationTypes = PushNotificationTypes = {}));
|
|
10
|
+
class PushNotification {
|
|
11
|
+
type;
|
|
12
|
+
message;
|
|
13
|
+
action;
|
|
14
|
+
}
|
|
15
|
+
exports.PushNotification = PushNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-topics.enum.d.ts","sourceRoot":"","sources":["../../../src/realtime/types/push-topics.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAElB,eAAe,kBAAkB;CAEpC;AAED,MAAM,WAAW,gBAAgB;IAE7B,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;CAEvC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PushTopics = void 0;
|
|
4
|
+
var PushTopics;
|
|
5
|
+
(function (PushTopics) {
|
|
6
|
+
// 'NOTIFICATION' = 'NOTIFICATION',
|
|
7
|
+
PushTopics["ASSET_UPDATED"] = "asset-updated";
|
|
8
|
+
// 'WORKFLOW_INSTANCES_CREATED' = 'workflow-instances-created',
|
|
9
|
+
})(PushTopics || (exports.PushTopics = PushTopics = {}));
|
package/package.deploy.json
CHANGED
package/package.json
CHANGED
|
@@ -45,7 +45,6 @@ models/create-chart-of-accounts.ts
|
|
|
45
45
|
models/create-communication.ts
|
|
46
46
|
models/create-configuration-setting.ts
|
|
47
47
|
models/create-credit-invoice.ts
|
|
48
|
-
models/create-credit-line-items.ts
|
|
49
48
|
models/create-credit.ts
|
|
50
49
|
models/create-customer-status.ts
|
|
51
50
|
models/create-document.ts
|
|
@@ -99,6 +99,12 @@ export interface AssetDetails {
|
|
|
99
99
|
* @memberof AssetDetails
|
|
100
100
|
*/
|
|
101
101
|
daysLeased?: number;
|
|
102
|
+
/**
|
|
103
|
+
* The subscription ID
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof AssetDetails
|
|
106
|
+
*/
|
|
107
|
+
subscriptionId?: string;
|
|
102
108
|
}
|
|
103
109
|
|
|
104
110
|
/**
|
|
@@ -131,6 +137,7 @@ export function AssetDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
131
137
|
'streetRate': json['streetRate'],
|
|
132
138
|
'paidThroughDate': json['paidThroughDate'] == null ? undefined : (new Date(json['paidThroughDate'])),
|
|
133
139
|
'daysLeased': json['daysLeased'] == null ? undefined : json['daysLeased'],
|
|
140
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
134
141
|
};
|
|
135
142
|
}
|
|
136
143
|
|
|
@@ -157,6 +164,7 @@ export function AssetDetailsToJSONTyped(value?: AssetDetails | null, ignoreDiscr
|
|
|
157
164
|
'streetRate': value['streetRate'],
|
|
158
165
|
'paidThroughDate': value['paidThroughDate'] == null ? undefined : ((value['paidThroughDate']).toISOString()),
|
|
159
166
|
'daysLeased': value['daysLeased'],
|
|
167
|
+
'subscriptionId': value['subscriptionId'],
|
|
160
168
|
};
|
|
161
169
|
}
|
|
162
170
|
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { CreateCreditLineItems } from './create-credit-line-items';
|
|
17
|
-
import {
|
|
18
|
-
CreateCreditLineItemsFromJSON,
|
|
19
|
-
CreateCreditLineItemsFromJSONTyped,
|
|
20
|
-
CreateCreditLineItemsToJSON,
|
|
21
|
-
CreateCreditLineItemsToJSONTyped,
|
|
22
|
-
} from './create-credit-line-items';
|
|
23
16
|
import type { CreateCreditInvoice } from './create-credit-invoice';
|
|
24
17
|
import {
|
|
25
18
|
CreateCreditInvoiceFromJSON,
|
|
@@ -94,12 +87,6 @@ export interface CreateCredit {
|
|
|
94
87
|
* @memberof CreateCredit
|
|
95
88
|
*/
|
|
96
89
|
invoices?: Array<CreateCreditInvoice>;
|
|
97
|
-
/**
|
|
98
|
-
* List of invoices to apply credit to
|
|
99
|
-
* @type {Array<CreateCreditLineItems>}
|
|
100
|
-
* @memberof CreateCredit
|
|
101
|
-
*/
|
|
102
|
-
creditLineItems?: Array<CreateCreditLineItems>;
|
|
103
90
|
}
|
|
104
91
|
|
|
105
92
|
/**
|
|
@@ -132,7 +119,6 @@ export function CreateCreditFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
132
119
|
'autoApply': json['autoApply'] == null ? undefined : json['autoApply'],
|
|
133
120
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
134
121
|
'invoices': json['invoices'] == null ? undefined : ((json['invoices'] as Array<any>).map(CreateCreditInvoiceFromJSON)),
|
|
135
|
-
'creditLineItems': json['creditLineItems'] == null ? undefined : ((json['creditLineItems'] as Array<any>).map(CreateCreditLineItemsFromJSON)),
|
|
136
122
|
};
|
|
137
123
|
}
|
|
138
124
|
|
|
@@ -157,7 +143,6 @@ export function CreateCreditToJSONTyped(value?: CreateCredit | null, ignoreDiscr
|
|
|
157
143
|
'autoApply': value['autoApply'],
|
|
158
144
|
'subscriptionId': value['subscriptionId'],
|
|
159
145
|
'invoices': value['invoices'] == null ? undefined : ((value['invoices'] as Array<any>).map(CreateCreditInvoiceToJSON)),
|
|
160
|
-
'creditLineItems': value['creditLineItems'] == null ? undefined : ((value['creditLineItems'] as Array<any>).map(CreateCreditLineItemsToJSON)),
|
|
161
146
|
};
|
|
162
147
|
}
|
|
163
148
|
|
|
@@ -118,12 +118,6 @@ export interface CreatePayment {
|
|
|
118
118
|
* @memberof CreatePayment
|
|
119
119
|
*/
|
|
120
120
|
referenceNumber?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Automatically apply unapplied amount to next invoice
|
|
123
|
-
* @type {boolean}
|
|
124
|
-
* @memberof CreatePayment
|
|
125
|
-
*/
|
|
126
|
-
autoApply: boolean;
|
|
127
121
|
/**
|
|
128
122
|
* Date of record created
|
|
129
123
|
* @type {string}
|
|
@@ -153,13 +147,13 @@ export interface CreatePayment {
|
|
|
153
147
|
* @type {Array<CreatePaymentInvoice>}
|
|
154
148
|
* @memberof CreatePayment
|
|
155
149
|
*/
|
|
156
|
-
invoices
|
|
150
|
+
invoices: Array<CreatePaymentInvoice>;
|
|
157
151
|
/**
|
|
158
152
|
* List of refunds associated with payment
|
|
159
153
|
* @type {Array<CreatePaymentRefund>}
|
|
160
154
|
* @memberof CreatePayment
|
|
161
155
|
*/
|
|
162
|
-
refunds
|
|
156
|
+
refunds: Array<CreatePaymentRefund>;
|
|
163
157
|
/**
|
|
164
158
|
* General Ledger account
|
|
165
159
|
* @type {string}
|
|
@@ -196,6 +190,18 @@ export interface CreatePayment {
|
|
|
196
190
|
* @memberof CreatePayment
|
|
197
191
|
*/
|
|
198
192
|
orderId?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Subscription Id to apply payment to
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof CreatePayment
|
|
197
|
+
*/
|
|
198
|
+
subscriptionId?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Product Id to apply payment to
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof CreatePayment
|
|
203
|
+
*/
|
|
204
|
+
productId?: string;
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
/**
|
|
@@ -207,7 +213,8 @@ export function instanceOfCreatePayment(value: object): value is CreatePayment {
|
|
|
207
213
|
if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
|
|
208
214
|
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
209
215
|
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
210
|
-
if (!('
|
|
216
|
+
if (!('invoices' in value) || value['invoices'] === undefined) return false;
|
|
217
|
+
if (!('refunds' in value) || value['refunds'] === undefined) return false;
|
|
211
218
|
return true;
|
|
212
219
|
}
|
|
213
220
|
|
|
@@ -235,19 +242,20 @@ export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
235
242
|
'saveForLater': json['saveForLater'] == null ? undefined : json['saveForLater'],
|
|
236
243
|
'currency': json['currency'],
|
|
237
244
|
'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
|
|
238
|
-
'autoApply': json['autoApply'],
|
|
239
245
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
240
246
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
241
247
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
242
248
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
243
|
-
'invoices':
|
|
244
|
-
'refunds':
|
|
249
|
+
'invoices': ((json['invoices'] as Array<any>).map(CreatePaymentInvoiceFromJSON)),
|
|
250
|
+
'refunds': ((json['refunds'] as Array<any>).map(CreatePaymentRefundFromJSON)),
|
|
245
251
|
'glAccount': json['glAccount'] == null ? undefined : json['glAccount'],
|
|
246
252
|
'retriedAttempts': json['retriedAttempts'] == null ? undefined : json['retriedAttempts'],
|
|
247
253
|
'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
|
|
248
254
|
'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
|
|
249
255
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
250
256
|
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
257
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
258
|
+
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
251
259
|
};
|
|
252
260
|
}
|
|
253
261
|
|
|
@@ -276,19 +284,20 @@ export function CreatePaymentToJSONTyped(value?: CreatePayment | null, ignoreDis
|
|
|
276
284
|
'saveForLater': value['saveForLater'],
|
|
277
285
|
'currency': value['currency'],
|
|
278
286
|
'referenceNumber': value['referenceNumber'],
|
|
279
|
-
'autoApply': value['autoApply'],
|
|
280
287
|
'createdAt': value['createdAt'],
|
|
281
288
|
'updatedAt': value['updatedAt'],
|
|
282
289
|
'createdBy': value['createdBy'],
|
|
283
290
|
'updatedBy': value['updatedBy'],
|
|
284
|
-
'invoices':
|
|
285
|
-
'refunds':
|
|
291
|
+
'invoices': ((value['invoices'] as Array<any>).map(CreatePaymentInvoiceToJSON)),
|
|
292
|
+
'refunds': ((value['refunds'] as Array<any>).map(CreatePaymentRefundToJSON)),
|
|
286
293
|
'glAccount': value['glAccount'],
|
|
287
294
|
'retriedAttempts': value['retriedAttempts'],
|
|
288
295
|
'gatewayName': value['gatewayName'],
|
|
289
296
|
'emailStatus': value['emailStatus'],
|
|
290
297
|
'assetId': value['assetId'],
|
|
291
298
|
'orderId': value['orderId'],
|
|
299
|
+
'subscriptionId': value['subscriptionId'],
|
|
300
|
+
'productId': value['productId'],
|
|
292
301
|
};
|
|
293
302
|
}
|
|
294
303
|
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { CreateCreditLineItems } from './create-credit-line-items';
|
|
17
|
-
import {
|
|
18
|
-
CreateCreditLineItemsFromJSON,
|
|
19
|
-
CreateCreditLineItemsFromJSONTyped,
|
|
20
|
-
CreateCreditLineItemsToJSON,
|
|
21
|
-
CreateCreditLineItemsToJSONTyped,
|
|
22
|
-
} from './create-credit-line-items';
|
|
23
16
|
import type { CreateCreditInvoice } from './create-credit-invoice';
|
|
24
17
|
import {
|
|
25
18
|
CreateCreditInvoiceFromJSON,
|
|
@@ -94,12 +87,6 @@ export interface Credit {
|
|
|
94
87
|
* @memberof Credit
|
|
95
88
|
*/
|
|
96
89
|
invoices?: Array<CreateCreditInvoice>;
|
|
97
|
-
/**
|
|
98
|
-
* List of invoices to apply credit to
|
|
99
|
-
* @type {Array<CreateCreditLineItems>}
|
|
100
|
-
* @memberof Credit
|
|
101
|
-
*/
|
|
102
|
-
creditLineItems?: Array<CreateCreditLineItems>;
|
|
103
90
|
/**
|
|
104
91
|
* Credit ID
|
|
105
92
|
* @type {string}
|
|
@@ -175,7 +162,6 @@ export function CreditFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cr
|
|
|
175
162
|
'autoApply': json['autoApply'] == null ? undefined : json['autoApply'],
|
|
176
163
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
177
164
|
'invoices': json['invoices'] == null ? undefined : ((json['invoices'] as Array<any>).map(CreateCreditInvoiceFromJSON)),
|
|
178
|
-
'creditLineItems': json['creditLineItems'] == null ? undefined : ((json['creditLineItems'] as Array<any>).map(CreateCreditLineItemsFromJSON)),
|
|
179
165
|
'id': json['id'],
|
|
180
166
|
'status': json['status'] == null ? undefined : json['status'],
|
|
181
167
|
'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
|
|
@@ -207,7 +193,6 @@ export function CreditToJSONTyped(value?: Credit | null, ignoreDiscriminator: bo
|
|
|
207
193
|
'autoApply': value['autoApply'],
|
|
208
194
|
'subscriptionId': value['subscriptionId'],
|
|
209
195
|
'invoices': value['invoices'] == null ? undefined : ((value['invoices'] as Array<any>).map(CreateCreditInvoiceToJSON)),
|
|
210
|
-
'creditLineItems': value['creditLineItems'] == null ? undefined : ((value['creditLineItems'] as Array<any>).map(CreateCreditLineItemsToJSON)),
|
|
211
196
|
'id': value['id'],
|
|
212
197
|
'status': value['status'],
|
|
213
198
|
'referenceNumber': value['referenceNumber'],
|
|
@@ -71,6 +71,18 @@ export interface GetPaymentsQuery {
|
|
|
71
71
|
* @memberof GetPaymentsQuery
|
|
72
72
|
*/
|
|
73
73
|
paymentRunId?: PluginFilterItem;
|
|
74
|
+
/**
|
|
75
|
+
* Subscription ID value and operator to filter by
|
|
76
|
+
* @type {PluginFilterItem}
|
|
77
|
+
* @memberof GetPaymentsQuery
|
|
78
|
+
*/
|
|
79
|
+
subscriptionId?: PluginFilterItem;
|
|
80
|
+
/**
|
|
81
|
+
* Product ID value and operator to filter by
|
|
82
|
+
* @type {PluginFilterItem}
|
|
83
|
+
* @memberof GetPaymentsQuery
|
|
84
|
+
*/
|
|
85
|
+
productId?: PluginFilterItem;
|
|
74
86
|
/**
|
|
75
87
|
* Payment method value and operator to filter by
|
|
76
88
|
* @type {PluginFilterItem}
|
|
@@ -101,6 +113,8 @@ export function GetPaymentsQueryFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
101
113
|
'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
|
|
102
114
|
'customerId': json['customerId'] == null ? undefined : PluginFilterItemFromJSON(json['customerId']),
|
|
103
115
|
'paymentRunId': json['paymentRunId'] == null ? undefined : PluginFilterItemFromJSON(json['paymentRunId']),
|
|
116
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : PluginFilterItemFromJSON(json['subscriptionId']),
|
|
117
|
+
'productId': json['productId'] == null ? undefined : PluginFilterItemFromJSON(json['productId']),
|
|
104
118
|
'paymentMethod': json['paymentMethod'] == null ? undefined : PluginFilterItemFromJSON(json['paymentMethod']),
|
|
105
119
|
};
|
|
106
120
|
}
|
|
@@ -121,6 +135,8 @@ export function GetPaymentsQueryToJSONTyped(value?: GetPaymentsQuery | null, ign
|
|
|
121
135
|
'status': PluginFilterItemToJSON(value['status']),
|
|
122
136
|
'customerId': PluginFilterItemToJSON(value['customerId']),
|
|
123
137
|
'paymentRunId': PluginFilterItemToJSON(value['paymentRunId']),
|
|
138
|
+
'subscriptionId': PluginFilterItemToJSON(value['subscriptionId']),
|
|
139
|
+
'productId': PluginFilterItemToJSON(value['productId']),
|
|
124
140
|
'paymentMethod': PluginFilterItemToJSON(value['paymentMethod']),
|
|
125
141
|
};
|
|
126
142
|
}
|
|
@@ -45,7 +45,6 @@ export * from './create-communication';
|
|
|
45
45
|
export * from './create-configuration-setting';
|
|
46
46
|
export * from './create-credit';
|
|
47
47
|
export * from './create-credit-invoice';
|
|
48
|
-
export * from './create-credit-line-items';
|
|
49
48
|
export * from './create-customer-status';
|
|
50
49
|
export * from './create-document';
|
|
51
50
|
export * from './create-instances';
|