@managespace/sdk 0.1.83 → 0.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensibility/functions/project/billing.d.ts +9 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/generated/apis/default-api.d.ts +21 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +64 -0
- package/dist/generated/models/asset.d.ts +0 -6
- package/dist/generated/models/asset.d.ts.map +1 -1
- package/dist/generated/models/asset.js +0 -4
- package/dist/generated/models/create-order.d.ts +13 -0
- package/dist/generated/models/create-order.d.ts.map +1 -1
- package/dist/generated/models/create-order.js +7 -0
- package/dist/generated/models/custom-create-customer.d.ts +0 -6
- package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-customer.js +0 -2
- package/dist/generated/models/custom-update-customer.d.ts +0 -6
- package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-update-customer.js +0 -2
- package/dist/generated/models/customer-balance.d.ts +33 -0
- package/dist/generated/models/customer-balance.d.ts.map +1 -0
- package/dist/generated/models/customer-balance.js +51 -0
- package/dist/generated/models/customer.d.ts +0 -6
- package/dist/generated/models/customer.d.ts.map +1 -1
- package/dist/generated/models/customer.js +0 -4
- package/dist/generated/models/index.d.ts +4 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +4 -0
- package/dist/generated/models/invoice.d.ts +3 -2
- package/dist/generated/models/invoice.d.ts.map +1 -1
- package/dist/generated/models/invoice.js +3 -2
- package/dist/generated/models/lease-status.d.ts +1 -3
- package/dist/generated/models/lease-status.d.ts.map +1 -1
- package/dist/generated/models/lease-status.js +0 -2
- package/dist/generated/models/order-type.d.ts +26 -0
- package/dist/generated/models/order-type.d.ts.map +1 -0
- package/dist/generated/models/order-type.js +53 -0
- package/dist/generated/models/order.d.ts +13 -0
- package/dist/generated/models/order.d.ts.map +1 -1
- package/dist/generated/models/order.js +7 -0
- package/dist/generated/models/subscription-activity-line.d.ts +99 -0
- package/dist/generated/models/subscription-activity-line.d.ts.map +1 -0
- package/dist/generated/models/subscription-activity-line.js +77 -0
- package/dist/generated/models/subscription-activity.d.ts +60 -0
- package/dist/generated/models/subscription-activity.d.ts.map +1 -0
- package/dist/generated/models/subscription-activity.js +70 -0
- package/dist/generated/models/update-asset.d.ts +0 -6
- package/dist/generated/models/update-asset.d.ts.map +1 -1
- package/dist/generated/models/update-asset.js +0 -2
- package/dist/generated/models/update-order.d.ts +13 -0
- package/dist/generated/models/update-order.d.ts.map +1 -1
- package/dist/generated/models/update-order.js +7 -0
- package/package.deploy.json +2 -2
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +9 -0
- package/src/generated/.openapi-generator/FILES +4 -0
- package/src/generated/apis/default-api.ts +105 -0
- package/src/generated/models/asset.ts +0 -9
- package/src/generated/models/create-order.ts +26 -0
- package/src/generated/models/custom-create-customer.ts +0 -8
- package/src/generated/models/custom-update-customer.ts +0 -8
- package/src/generated/models/customer-balance.ts +66 -0
- package/src/generated/models/customer.ts +0 -9
- package/src/generated/models/index.ts +4 -0
- package/src/generated/models/invoice.ts +11 -4
- package/src/generated/models/lease-status.ts +1 -3
- package/src/generated/models/order-type.ts +52 -0
- package/src/generated/models/order.ts +26 -0
- package/src/generated/models/subscription-activity-line.ts +156 -0
- package/src/generated/models/subscription-activity.ts +124 -0
- package/src/generated/models/update-asset.ts +0 -8
- package/src/generated/models/update-order.ts +26 -0
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.OrderToJSONTyped = exports.OrderToJSON = exports.OrderFromJSONTyped = exports.OrderFromJSON = exports.instanceOfOrder = void 0;
|
|
17
|
+
const order_type_1 = require("./order-type");
|
|
17
18
|
const order_line_item_1 = require("./order-line-item");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the Order interface.
|
|
@@ -33,6 +34,8 @@ function instanceOfOrder(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('orderType' in value) || value['orderType'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
if (!('id' in value) || value['id'] === undefined)
|
|
37
40
|
return false;
|
|
38
41
|
return true;
|
|
@@ -66,6 +69,8 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
69
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
67
70
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
68
71
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
72
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
73
|
+
'orderType': (0, order_type_1.OrderTypeFromJSON)(json['orderType']),
|
|
69
74
|
'id': json['id'],
|
|
70
75
|
'estimatedTax': json['estimatedTax'] == null ? undefined : json['estimatedTax'],
|
|
71
76
|
};
|
|
@@ -99,6 +104,8 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
99
104
|
'updatedBy': value['updatedBy'],
|
|
100
105
|
'customFields': value['customFields'],
|
|
101
106
|
'assetId': value['assetId'],
|
|
107
|
+
'subscriptionId': value['subscriptionId'],
|
|
108
|
+
'orderType': (0, order_type_1.OrderTypeToJSON)(value['orderType']),
|
|
102
109
|
'id': value['id'],
|
|
103
110
|
'estimatedTax': value['estimatedTax'],
|
|
104
111
|
};
|
|
@@ -0,0 +1,99 @@
|
|
|
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 SubscriptionActivityLine
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionActivityLine {
|
|
18
|
+
/**
|
|
19
|
+
* Date of the subscription activity
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionActivityLine
|
|
22
|
+
*/
|
|
23
|
+
date: string;
|
|
24
|
+
/**
|
|
25
|
+
* End date of the subscription activity
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionActivityLine
|
|
28
|
+
*/
|
|
29
|
+
endDate?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Description of the subscription activity
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubscriptionActivityLine
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
* The last 4 digits of the card or cheque used for payment
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SubscriptionActivityLine
|
|
40
|
+
*/
|
|
41
|
+
checkOrCardNumber?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The receipt number of the payment
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SubscriptionActivityLine
|
|
46
|
+
*/
|
|
47
|
+
receiptNumber?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The ID of the invoice the activity is associated with
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SubscriptionActivityLine
|
|
52
|
+
*/
|
|
53
|
+
invoiceId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the billing run the activity is associated with
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SubscriptionActivityLine
|
|
58
|
+
*/
|
|
59
|
+
billingRunId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The amount of refund applied to the subscription activity
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SubscriptionActivityLine
|
|
64
|
+
*/
|
|
65
|
+
appliedRefund?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The amount of credit applied to the subscription activity
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SubscriptionActivityLine
|
|
70
|
+
*/
|
|
71
|
+
issuedCredit?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The amount of a payment made towards a subscription
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof SubscriptionActivityLine
|
|
76
|
+
*/
|
|
77
|
+
paymentAmount?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The amount of a payment made towards a subscription
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof SubscriptionActivityLine
|
|
82
|
+
*/
|
|
83
|
+
chargeAmount?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The balance of the subscription
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof SubscriptionActivityLine
|
|
88
|
+
*/
|
|
89
|
+
balance: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the SubscriptionActivityLine interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfSubscriptionActivityLine(value: object): value is SubscriptionActivityLine;
|
|
95
|
+
export declare function SubscriptionActivityLineFromJSON(json: any): SubscriptionActivityLine;
|
|
96
|
+
export declare function SubscriptionActivityLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionActivityLine;
|
|
97
|
+
export declare function SubscriptionActivityLineToJSON(json: any): SubscriptionActivityLine;
|
|
98
|
+
export declare function SubscriptionActivityLineToJSONTyped(value?: SubscriptionActivityLine | null, ignoreDiscriminator?: boolean): any;
|
|
99
|
+
//# sourceMappingURL=subscription-activity-line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-activity-line.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-activity-line.ts"],"names":[],"mappings":"AAEA;;;;;;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ageSpace 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionActivityLineToJSONTyped = exports.SubscriptionActivityLineToJSON = exports.SubscriptionActivityLineFromJSONTyped = exports.SubscriptionActivityLineFromJSON = exports.instanceOfSubscriptionActivityLine = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SubscriptionActivityLine interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSubscriptionActivityLine(value) {
|
|
21
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('balance' in value) || value['balance'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfSubscriptionActivityLine = instanceOfSubscriptionActivityLine;
|
|
30
|
+
function SubscriptionActivityLineFromJSON(json) {
|
|
31
|
+
return SubscriptionActivityLineFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.SubscriptionActivityLineFromJSON = SubscriptionActivityLineFromJSON;
|
|
34
|
+
function SubscriptionActivityLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'date': json['date'],
|
|
40
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
41
|
+
'description': json['description'],
|
|
42
|
+
'checkOrCardNumber': json['checkOrCardNumber'] == null ? undefined : json['checkOrCardNumber'],
|
|
43
|
+
'receiptNumber': json['receiptNumber'] == null ? undefined : json['receiptNumber'],
|
|
44
|
+
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
45
|
+
'billingRunId': json['billingRunId'] == null ? undefined : json['billingRunId'],
|
|
46
|
+
'appliedRefund': json['appliedRefund'] == null ? undefined : json['appliedRefund'],
|
|
47
|
+
'issuedCredit': json['issuedCredit'] == null ? undefined : json['issuedCredit'],
|
|
48
|
+
'paymentAmount': json['paymentAmount'] == null ? undefined : json['paymentAmount'],
|
|
49
|
+
'chargeAmount': json['chargeAmount'] == null ? undefined : json['chargeAmount'],
|
|
50
|
+
'balance': json['balance'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.SubscriptionActivityLineFromJSONTyped = SubscriptionActivityLineFromJSONTyped;
|
|
54
|
+
function SubscriptionActivityLineToJSON(json) {
|
|
55
|
+
return SubscriptionActivityLineToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
exports.SubscriptionActivityLineToJSON = SubscriptionActivityLineToJSON;
|
|
58
|
+
function SubscriptionActivityLineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'date': value['date'],
|
|
64
|
+
'endDate': value['endDate'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
'checkOrCardNumber': value['checkOrCardNumber'],
|
|
67
|
+
'receiptNumber': value['receiptNumber'],
|
|
68
|
+
'invoiceId': value['invoiceId'],
|
|
69
|
+
'billingRunId': value['billingRunId'],
|
|
70
|
+
'appliedRefund': value['appliedRefund'],
|
|
71
|
+
'issuedCredit': value['issuedCredit'],
|
|
72
|
+
'paymentAmount': value['paymentAmount'],
|
|
73
|
+
'chargeAmount': value['chargeAmount'],
|
|
74
|
+
'balance': value['balance'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.SubscriptionActivityLineToJSONTyped = SubscriptionActivityLineToJSONTyped;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import type { Site } from './site';
|
|
13
|
+
import type { Customer } from './customer';
|
|
14
|
+
import type { SubscriptionActivityLine } from './subscription-activity-line';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SubscriptionActivity
|
|
19
|
+
*/
|
|
20
|
+
export interface SubscriptionActivity {
|
|
21
|
+
/**
|
|
22
|
+
* The site that the subscription is associated with
|
|
23
|
+
* @type {Site}
|
|
24
|
+
* @memberof SubscriptionActivity
|
|
25
|
+
*/
|
|
26
|
+
site: Site;
|
|
27
|
+
/**
|
|
28
|
+
* The customer that the subscription is associated with
|
|
29
|
+
* @type {Customer}
|
|
30
|
+
* @memberof SubscriptionActivity
|
|
31
|
+
*/
|
|
32
|
+
customer: Customer;
|
|
33
|
+
/**
|
|
34
|
+
* The asset that the subscription is associated with
|
|
35
|
+
* @type {Customer}
|
|
36
|
+
* @memberof SubscriptionActivity
|
|
37
|
+
*/
|
|
38
|
+
asset: Customer;
|
|
39
|
+
/**
|
|
40
|
+
* The subscription the activity is related to
|
|
41
|
+
* @type {Customer}
|
|
42
|
+
* @memberof SubscriptionActivity
|
|
43
|
+
*/
|
|
44
|
+
subscription: Customer;
|
|
45
|
+
/**
|
|
46
|
+
* Activity associated the subscription
|
|
47
|
+
* @type {Array<SubscriptionActivityLine>}
|
|
48
|
+
* @memberof SubscriptionActivity
|
|
49
|
+
*/
|
|
50
|
+
activity: Array<SubscriptionActivityLine>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the SubscriptionActivity interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfSubscriptionActivity(value: object): value is SubscriptionActivity;
|
|
56
|
+
export declare function SubscriptionActivityFromJSON(json: any): SubscriptionActivity;
|
|
57
|
+
export declare function SubscriptionActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionActivity;
|
|
58
|
+
export declare function SubscriptionActivityToJSON(json: any): SubscriptionActivity;
|
|
59
|
+
export declare function SubscriptionActivityToJSONTyped(value?: SubscriptionActivity | null, ignoreDiscriminator?: boolean): any;
|
|
60
|
+
//# sourceMappingURL=subscription-activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-activity.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-activity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAQ7E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,YAAY,EAAE,QAAQ,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAO3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAY/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa9H"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionActivityToJSONTyped = exports.SubscriptionActivityToJSON = exports.SubscriptionActivityFromJSONTyped = exports.SubscriptionActivityFromJSON = exports.instanceOfSubscriptionActivity = void 0;
|
|
17
|
+
const site_1 = require("./site");
|
|
18
|
+
const customer_1 = require("./customer");
|
|
19
|
+
const subscription_activity_line_1 = require("./subscription-activity-line");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the SubscriptionActivity interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfSubscriptionActivity(value) {
|
|
24
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('asset' in value) || value['asset'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('subscription' in value) || value['subscription'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfSubscriptionActivity = instanceOfSubscriptionActivity;
|
|
37
|
+
function SubscriptionActivityFromJSON(json) {
|
|
38
|
+
return SubscriptionActivityFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.SubscriptionActivityFromJSON = SubscriptionActivityFromJSON;
|
|
41
|
+
function SubscriptionActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'site': (0, site_1.SiteFromJSON)(json['site']),
|
|
47
|
+
'customer': (0, customer_1.CustomerFromJSON)(json['customer']),
|
|
48
|
+
'asset': (0, customer_1.CustomerFromJSON)(json['asset']),
|
|
49
|
+
'subscription': (0, customer_1.CustomerFromJSON)(json['subscription']),
|
|
50
|
+
'activity': (json['activity'].map(subscription_activity_line_1.SubscriptionActivityLineFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.SubscriptionActivityFromJSONTyped = SubscriptionActivityFromJSONTyped;
|
|
54
|
+
function SubscriptionActivityToJSON(json) {
|
|
55
|
+
return SubscriptionActivityToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
exports.SubscriptionActivityToJSON = SubscriptionActivityToJSON;
|
|
58
|
+
function SubscriptionActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'site': (0, site_1.SiteToJSON)(value['site']),
|
|
64
|
+
'customer': (0, customer_1.CustomerToJSON)(value['customer']),
|
|
65
|
+
'asset': (0, customer_1.CustomerToJSON)(value['asset']),
|
|
66
|
+
'subscription': (0, customer_1.CustomerToJSON)(value['subscription']),
|
|
67
|
+
'activity': (value['activity'].map(subscription_activity_line_1.SubscriptionActivityLineToJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
exports.SubscriptionActivityToJSONTyped = SubscriptionActivityToJSONTyped;
|
|
@@ -58,12 +58,6 @@ export interface UpdateAsset {
|
|
|
58
58
|
* @memberof UpdateAsset
|
|
59
59
|
*/
|
|
60
60
|
metadata?: object | null;
|
|
61
|
-
/**
|
|
62
|
-
* Whether the asset has been soft deleted
|
|
63
|
-
* @type {boolean}
|
|
64
|
-
* @memberof UpdateAsset
|
|
65
|
-
*/
|
|
66
|
-
deleted?: boolean;
|
|
67
61
|
/**
|
|
68
62
|
* Array of asset IDs that were merged to create this asset
|
|
69
63
|
* @type {object}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-asset.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-asset.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"update-asset.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-asset.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAe7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB5G"}
|
|
@@ -42,7 +42,6 @@ function UpdateAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'externalProductId': json['externalProductId'] == null ? undefined : json['externalProductId'],
|
|
43
43
|
'assetClassId': json['assetClassId'] == null ? undefined : json['assetClassId'],
|
|
44
44
|
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
45
|
-
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
46
45
|
'mergedAssetIds': json['mergedAssetIds'] == null ? undefined : json['mergedAssetIds'],
|
|
47
46
|
};
|
|
48
47
|
}
|
|
@@ -63,7 +62,6 @@ function UpdateAssetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
62
|
'externalProductId': value['externalProductId'],
|
|
64
63
|
'assetClassId': value['assetClassId'],
|
|
65
64
|
'metadata': value['metadata'],
|
|
66
|
-
'deleted': value['deleted'],
|
|
67
65
|
'mergedAssetIds': value['mergedAssetIds'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OrderType } from './order-type';
|
|
12
13
|
import type { OrderLineItem } from './order-line-item';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -130,6 +131,18 @@ export interface UpdateOrder {
|
|
|
130
131
|
* @memberof UpdateOrder
|
|
131
132
|
*/
|
|
132
133
|
assetId?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Subscription Id associated with order, if it is a fee
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof UpdateOrder
|
|
138
|
+
*/
|
|
139
|
+
subscriptionId?: string;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {OrderType}
|
|
143
|
+
* @memberof UpdateOrder
|
|
144
|
+
*/
|
|
145
|
+
orderType: OrderType;
|
|
133
146
|
}
|
|
134
147
|
/**
|
|
135
148
|
* Check if a given object implements the UpdateOrder interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-order.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"update-order.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAA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WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA6B5G"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdateOrderToJSONTyped = exports.UpdateOrderToJSON = exports.UpdateOrderFromJSONTyped = exports.UpdateOrderFromJSON = exports.instanceOfUpdateOrder = void 0;
|
|
17
|
+
const order_type_1 = require("./order-type");
|
|
17
18
|
const order_line_item_1 = require("./order-line-item");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the UpdateOrder interface.
|
|
@@ -33,6 +34,8 @@ function instanceOfUpdateOrder(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('orderType' in value) || value['orderType'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
exports.instanceOfUpdateOrder = instanceOfUpdateOrder;
|
|
@@ -64,6 +67,8 @@ function UpdateOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
67
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
65
68
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
66
69
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
70
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
71
|
+
'orderType': (0, order_type_1.OrderTypeFromJSON)(json['orderType']),
|
|
67
72
|
};
|
|
68
73
|
}
|
|
69
74
|
exports.UpdateOrderFromJSONTyped = UpdateOrderFromJSONTyped;
|
|
@@ -95,6 +100,8 @@ function UpdateOrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
100
|
'updatedBy': value['updatedBy'],
|
|
96
101
|
'customFields': value['customFields'],
|
|
97
102
|
'assetId': value['assetId'],
|
|
103
|
+
'subscriptionId': value['subscriptionId'],
|
|
104
|
+
'orderType': (0, order_type_1.OrderTypeToJSON)(value['orderType']),
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
107
|
exports.UpdateOrderToJSONTyped = UpdateOrderToJSONTyped;
|
package/package.deploy.json
CHANGED
package/package.json
CHANGED
|
@@ -41,6 +41,8 @@ import {
|
|
|
41
41
|
UpdatePayment as _UpdatePayment,
|
|
42
42
|
UpdateOrder as _UpdateOrder,
|
|
43
43
|
ProductType,
|
|
44
|
+
OrderType,
|
|
45
|
+
CustomerBalance,
|
|
44
46
|
} from '../../../generated';
|
|
45
47
|
import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
|
|
46
48
|
import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
|
|
@@ -147,6 +149,11 @@ export namespace Billing {
|
|
|
147
149
|
payload!: { customerId: string };
|
|
148
150
|
}
|
|
149
151
|
|
|
152
|
+
export class GetCustomerBalance implements ExtPlugin {
|
|
153
|
+
responseType!: CustomerBalance;
|
|
154
|
+
payload!: { customerId: string };
|
|
155
|
+
}
|
|
156
|
+
|
|
150
157
|
export class GetInvoices implements ExtPlugin {
|
|
151
158
|
responseType!: Invoice[];
|
|
152
159
|
payload!: GetInvoicesQuery;
|
|
@@ -324,7 +331,9 @@ export namespace Billing {
|
|
|
324
331
|
payload!: BasePaginationQuery & {
|
|
325
332
|
status?: string;
|
|
326
333
|
customerId?: string;
|
|
334
|
+
subscriptionId?: string;
|
|
327
335
|
invoiceId?: string;
|
|
336
|
+
orderType?: OrderType;
|
|
328
337
|
};
|
|
329
338
|
}
|
|
330
339
|
|
|
@@ -82,6 +82,7 @@ models/custom-create-plan.ts
|
|
|
82
82
|
models/custom-create-user.ts
|
|
83
83
|
models/custom-update-customer.ts
|
|
84
84
|
models/custom-update-extensibility-repo.ts
|
|
85
|
+
models/customer-balance.ts
|
|
85
86
|
models/customer-status.ts
|
|
86
87
|
models/customer.ts
|
|
87
88
|
models/document-complete.ts
|
|
@@ -158,6 +159,7 @@ models/note.ts
|
|
|
158
159
|
models/notification.ts
|
|
159
160
|
models/order-line-item.ts
|
|
160
161
|
models/order-operator.ts
|
|
162
|
+
models/order-type.ts
|
|
161
163
|
models/order.ts
|
|
162
164
|
models/org.ts
|
|
163
165
|
models/page-meta.ts
|
|
@@ -218,6 +220,8 @@ models/sort-order.ts
|
|
|
218
220
|
models/statement.ts
|
|
219
221
|
models/step-data.ts
|
|
220
222
|
models/sub-total.ts
|
|
223
|
+
models/subscription-activity-line.ts
|
|
224
|
+
models/subscription-activity.ts
|
|
221
225
|
models/subscription-charge.ts
|
|
222
226
|
models/subscription-invoice-line.ts
|
|
223
227
|
models/subscription-invoice.ts
|