@managespace/sdk 0.1.131 → 0.1.133
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 +12 -6
- package/dist/generated/models/create-payment.d.ts.map +1 -1
- package/dist/generated/models/create-payment.js +4 -4
- 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 +18 -6
- package/dist/generated/models/payment.d.ts.map +1 -1
- package/dist/generated/models/payment.js +8 -4
- package/dist/generated/models/update-payment.d.ts +12 -6
- package/dist/generated/models/update-payment.d.ts.map +1 -1
- package/dist/generated/models/update-payment.js +4 -4
- 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 +16 -9
- 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 +25 -9
- package/src/generated/models/update-payment.ts +16 -9
- 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
|
@@ -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}
|
|
@@ -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,6 @@ 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 (!('autoApply' in value) || value['autoApply'] === undefined) return false;
|
|
211
216
|
return true;
|
|
212
217
|
}
|
|
213
218
|
|
|
@@ -235,7 +240,6 @@ export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
235
240
|
'saveForLater': json['saveForLater'] == null ? undefined : json['saveForLater'],
|
|
236
241
|
'currency': json['currency'],
|
|
237
242
|
'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
|
|
238
|
-
'autoApply': json['autoApply'],
|
|
239
243
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
240
244
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
241
245
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
@@ -248,6 +252,8 @@ export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
248
252
|
'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
|
|
249
253
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
250
254
|
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
255
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
256
|
+
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
251
257
|
};
|
|
252
258
|
}
|
|
253
259
|
|
|
@@ -276,7 +282,6 @@ export function CreatePaymentToJSONTyped(value?: CreatePayment | null, ignoreDis
|
|
|
276
282
|
'saveForLater': value['saveForLater'],
|
|
277
283
|
'currency': value['currency'],
|
|
278
284
|
'referenceNumber': value['referenceNumber'],
|
|
279
|
-
'autoApply': value['autoApply'],
|
|
280
285
|
'createdAt': value['createdAt'],
|
|
281
286
|
'updatedAt': value['updatedAt'],
|
|
282
287
|
'createdBy': value['createdBy'],
|
|
@@ -289,6 +294,8 @@ export function CreatePaymentToJSONTyped(value?: CreatePayment | null, ignoreDis
|
|
|
289
294
|
'emailStatus': value['emailStatus'],
|
|
290
295
|
'assetId': value['assetId'],
|
|
291
296
|
'orderId': value['orderId'],
|
|
297
|
+
'subscriptionId': value['subscriptionId'],
|
|
298
|
+
'productId': value['productId'],
|
|
292
299
|
};
|
|
293
300
|
}
|
|
294
301
|
|
|
@@ -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';
|
|
@@ -118,12 +118,6 @@ export interface Payment {
|
|
|
118
118
|
* @memberof Payment
|
|
119
119
|
*/
|
|
120
120
|
referenceNumber?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Automatically apply unapplied amount to next invoice
|
|
123
|
-
* @type {boolean}
|
|
124
|
-
* @memberof Payment
|
|
125
|
-
*/
|
|
126
|
-
autoApply: boolean;
|
|
127
121
|
/**
|
|
128
122
|
* Date of record created
|
|
129
123
|
* @type {string}
|
|
@@ -196,6 +190,18 @@ export interface Payment {
|
|
|
196
190
|
* @memberof Payment
|
|
197
191
|
*/
|
|
198
192
|
orderId?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Subscription Id to apply payment to
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof Payment
|
|
197
|
+
*/
|
|
198
|
+
subscriptionId?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Product Id to apply payment to
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof Payment
|
|
203
|
+
*/
|
|
204
|
+
productId?: string;
|
|
199
205
|
/**
|
|
200
206
|
* Payment ID
|
|
201
207
|
* @type {string}
|
|
@@ -244,6 +250,12 @@ export interface Payment {
|
|
|
244
250
|
* @memberof Payment
|
|
245
251
|
*/
|
|
246
252
|
customFields: object;
|
|
253
|
+
/**
|
|
254
|
+
* Automatically apply unapplied amount to next invoice
|
|
255
|
+
* @type {boolean}
|
|
256
|
+
* @memberof Payment
|
|
257
|
+
*/
|
|
258
|
+
autoApply: boolean;
|
|
247
259
|
}
|
|
248
260
|
|
|
249
261
|
/**
|
|
@@ -255,7 +267,6 @@ export function instanceOfPayment(value: object): value is Payment {
|
|
|
255
267
|
if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
|
|
256
268
|
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
257
269
|
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
258
|
-
if (!('autoApply' in value) || value['autoApply'] === undefined) return false;
|
|
259
270
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
260
271
|
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
261
272
|
if (!('conversionRate' in value) || value['conversionRate'] === undefined) return false;
|
|
@@ -264,6 +275,7 @@ export function instanceOfPayment(value: object): value is Payment {
|
|
|
264
275
|
if (!('paymentRunId' in value) || value['paymentRunId'] === undefined) return false;
|
|
265
276
|
if (!('opt' in value) || value['opt'] === undefined) return false;
|
|
266
277
|
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
278
|
+
if (!('autoApply' in value) || value['autoApply'] === undefined) return false;
|
|
267
279
|
return true;
|
|
268
280
|
}
|
|
269
281
|
|
|
@@ -291,7 +303,6 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
291
303
|
'saveForLater': json['saveForLater'] == null ? undefined : json['saveForLater'],
|
|
292
304
|
'currency': json['currency'],
|
|
293
305
|
'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
|
|
294
|
-
'autoApply': json['autoApply'],
|
|
295
306
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
296
307
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
297
308
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
@@ -304,6 +315,8 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
304
315
|
'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
|
|
305
316
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
306
317
|
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
318
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
319
|
+
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
307
320
|
'id': json['id'],
|
|
308
321
|
'customerName': json['customerName'],
|
|
309
322
|
'conversionRate': json['conversionRate'],
|
|
@@ -312,6 +325,7 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
312
325
|
'paymentRunId': json['paymentRunId'],
|
|
313
326
|
'opt': json['opt'],
|
|
314
327
|
'customFields': json['customFields'],
|
|
328
|
+
'autoApply': json['autoApply'],
|
|
315
329
|
};
|
|
316
330
|
}
|
|
317
331
|
|
|
@@ -340,7 +354,6 @@ export function PaymentToJSONTyped(value?: Payment | null, ignoreDiscriminator:
|
|
|
340
354
|
'saveForLater': value['saveForLater'],
|
|
341
355
|
'currency': value['currency'],
|
|
342
356
|
'referenceNumber': value['referenceNumber'],
|
|
343
|
-
'autoApply': value['autoApply'],
|
|
344
357
|
'createdAt': value['createdAt'],
|
|
345
358
|
'updatedAt': value['updatedAt'],
|
|
346
359
|
'createdBy': value['createdBy'],
|
|
@@ -353,6 +366,8 @@ export function PaymentToJSONTyped(value?: Payment | null, ignoreDiscriminator:
|
|
|
353
366
|
'emailStatus': value['emailStatus'],
|
|
354
367
|
'assetId': value['assetId'],
|
|
355
368
|
'orderId': value['orderId'],
|
|
369
|
+
'subscriptionId': value['subscriptionId'],
|
|
370
|
+
'productId': value['productId'],
|
|
356
371
|
'id': value['id'],
|
|
357
372
|
'customerName': value['customerName'],
|
|
358
373
|
'conversionRate': value['conversionRate'],
|
|
@@ -361,6 +376,7 @@ export function PaymentToJSONTyped(value?: Payment | null, ignoreDiscriminator:
|
|
|
361
376
|
'paymentRunId': value['paymentRunId'],
|
|
362
377
|
'opt': value['opt'],
|
|
363
378
|
'customFields': value['customFields'],
|
|
379
|
+
'autoApply': value['autoApply'],
|
|
364
380
|
};
|
|
365
381
|
}
|
|
366
382
|
|
|
@@ -118,12 +118,6 @@ export interface UpdatePayment {
|
|
|
118
118
|
* @memberof UpdatePayment
|
|
119
119
|
*/
|
|
120
120
|
referenceNumber?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Automatically apply unapplied amount to next invoice
|
|
123
|
-
* @type {boolean}
|
|
124
|
-
* @memberof UpdatePayment
|
|
125
|
-
*/
|
|
126
|
-
autoApply: boolean;
|
|
127
121
|
/**
|
|
128
122
|
* Date of record created
|
|
129
123
|
* @type {string}
|
|
@@ -196,6 +190,18 @@ export interface UpdatePayment {
|
|
|
196
190
|
* @memberof UpdatePayment
|
|
197
191
|
*/
|
|
198
192
|
orderId?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Subscription Id to apply payment to
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof UpdatePayment
|
|
197
|
+
*/
|
|
198
|
+
subscriptionId?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Product Id to apply payment to
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof UpdatePayment
|
|
203
|
+
*/
|
|
204
|
+
productId?: string;
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
/**
|
|
@@ -207,7 +213,6 @@ export function instanceOfUpdatePayment(value: object): value is UpdatePayment {
|
|
|
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 (!('autoApply' in value) || value['autoApply'] === undefined) return false;
|
|
211
216
|
return true;
|
|
212
217
|
}
|
|
213
218
|
|
|
@@ -235,7 +240,6 @@ export function UpdatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
235
240
|
'saveForLater': json['saveForLater'] == null ? undefined : json['saveForLater'],
|
|
236
241
|
'currency': json['currency'],
|
|
237
242
|
'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
|
|
238
|
-
'autoApply': json['autoApply'],
|
|
239
243
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
240
244
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
241
245
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
@@ -248,6 +252,8 @@ export function UpdatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
248
252
|
'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
|
|
249
253
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
250
254
|
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
255
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
256
|
+
'productId': json['productId'] == null ? undefined : json['productId'],
|
|
251
257
|
};
|
|
252
258
|
}
|
|
253
259
|
|
|
@@ -276,7 +282,6 @@ export function UpdatePaymentToJSONTyped(value?: UpdatePayment | null, ignoreDis
|
|
|
276
282
|
'saveForLater': value['saveForLater'],
|
|
277
283
|
'currency': value['currency'],
|
|
278
284
|
'referenceNumber': value['referenceNumber'],
|
|
279
|
-
'autoApply': value['autoApply'],
|
|
280
285
|
'createdAt': value['createdAt'],
|
|
281
286
|
'updatedAt': value['updatedAt'],
|
|
282
287
|
'createdBy': value['createdBy'],
|
|
@@ -289,6 +294,8 @@ export function UpdatePaymentToJSONTyped(value?: UpdatePayment | null, ignoreDis
|
|
|
289
294
|
'emailStatus': value['emailStatus'],
|
|
290
295
|
'assetId': value['assetId'],
|
|
291
296
|
'orderId': value['orderId'],
|
|
297
|
+
'subscriptionId': value['subscriptionId'],
|
|
298
|
+
'productId': value['productId'],
|
|
292
299
|
};
|
|
293
300
|
}
|
|
294
301
|
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export enum PushNotificationTypes {
|
|
2
|
+
'SUCCESS' = 'success',
|
|
3
|
+
'ERROR' = 'error',
|
|
4
|
+
'WARNING' = 'warning',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class PushNotification {
|
|
8
|
+
readonly type!: PushNotificationTypes;
|
|
9
|
+
|
|
10
|
+
readonly message!: string;
|
|
11
|
+
|
|
12
|
+
readonly action?: {
|
|
13
|
+
label: string;
|
|
14
|
+
url: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export enum PushTopics {
|
|
2
|
+
// 'NOTIFICATION' = 'NOTIFICATION',
|
|
3
|
+
'ASSET_UPDATED' = 'asset-updated',
|
|
4
|
+
// 'WORKFLOW_INSTANCES_CREATED' = 'workflow-instances-created',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface PushTopicDataMap {
|
|
8
|
+
// [PushTopics.NOTIFICATION]: PushNotification;
|
|
9
|
+
[PushTopics.ASSET_UPDATED]: unknown;
|
|
10
|
+
// [PushTopics.WORKFLOW_INSTANCES_CREATED]: unknown;
|
|
11
|
+
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace API
|
|
3
|
-
* ManageSpace API Documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateCreditLineItems
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateCreditLineItems {
|
|
18
|
-
/**
|
|
19
|
-
* Line Number to identify the unique line within the Credit.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateCreditLineItems
|
|
22
|
-
*/
|
|
23
|
-
lineNo: string;
|
|
24
|
-
/**
|
|
25
|
-
* Id of the Product for the line.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateCreditLineItems
|
|
28
|
-
*/
|
|
29
|
-
productId: string;
|
|
30
|
-
/**
|
|
31
|
-
* Unit Price of the Product.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreateCreditLineItems
|
|
34
|
-
*/
|
|
35
|
-
unitPrice: string;
|
|
36
|
-
/**
|
|
37
|
-
* Quantity of the Product used.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CreateCreditLineItems
|
|
40
|
-
*/
|
|
41
|
-
quantity: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the CreateCreditLineItems interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfCreateCreditLineItems(value: object): value is CreateCreditLineItems;
|
|
47
|
-
export declare function CreateCreditLineItemsFromJSON(json: any): CreateCreditLineItems;
|
|
48
|
-
export declare function CreateCreditLineItemsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCreditLineItems;
|
|
49
|
-
export declare function CreateCreditLineItemsToJSON(json: any): CreateCreditLineItems;
|
|
50
|
-
export declare function CreateCreditLineItemsToJSONTyped(value?: CreateCreditLineItems | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
-
//# sourceMappingURL=create-credit-line-items.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-credit-line-items.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-credit-line-items.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAM7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAWjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhI"}
|