@managespace/sdk 0.0.99 → 0.0.101
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/.turbo/turbo-build.log +2 -0
- package/dist/extensibility/functions/project/billing.d.ts +10 -10
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/types/extensibility.d.ts +0 -2
- package/dist/extensibility/types/extensibility.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +3 -0
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +9 -0
- package/dist/generated/models/cancel-subscription-billing.d.ts +39 -0
- package/dist/generated/models/cancel-subscription-billing.d.ts.map +1 -0
- package/dist/generated/models/cancel-subscription-billing.js +55 -0
- package/dist/generated/models/chart-of-account-response.d.ts +99 -0
- package/dist/generated/models/chart-of-account-response.d.ts.map +1 -0
- package/dist/generated/models/chart-of-account-response.js +95 -0
- package/dist/generated/models/configuration-response.d.ts +77 -0
- package/dist/generated/models/configuration-response.d.ts.map +1 -0
- package/dist/generated/models/configuration-response.js +77 -0
- package/dist/generated/models/contact-id.d.ts +33 -0
- package/dist/generated/models/contact-id.d.ts.map +1 -0
- package/dist/generated/models/contact-id.js +51 -0
- package/dist/generated/models/create-order.d.ts +6 -0
- package/dist/generated/models/create-order.d.ts.map +1 -1
- package/dist/generated/models/create-order.js +2 -0
- package/dist/generated/models/create-payment-billing.d.ts +155 -0
- package/dist/generated/models/create-payment-billing.d.ts.map +1 -0
- package/dist/generated/models/create-payment-billing.js +133 -0
- package/dist/generated/models/create-plan.d.ts +52 -0
- package/dist/generated/models/create-plan.d.ts.map +1 -0
- package/dist/generated/models/create-plan.js +64 -0
- package/dist/generated/models/create-product.d.ts +45 -0
- package/dist/generated/models/create-product.d.ts.map +1 -0
- package/dist/generated/models/create-product.js +57 -0
- package/dist/generated/models/create-stock-status.d.ts +39 -0
- package/dist/generated/models/create-stock-status.d.ts.map +1 -0
- package/dist/generated/models/create-stock-status.js +55 -0
- package/dist/generated/models/create-subscription-billing.d.ts +166 -0
- package/dist/generated/models/create-subscription-billing.d.ts.map +1 -0
- package/dist/generated/models/create-subscription-billing.js +140 -0
- package/dist/generated/models/custom-chart-of-account.d.ts +57 -0
- package/dist/generated/models/custom-chart-of-account.d.ts.map +1 -0
- package/dist/generated/models/custom-chart-of-account.js +67 -0
- package/dist/generated/models/custom-chart-of-accounts.d.ts +34 -0
- package/dist/generated/models/custom-chart-of-accounts.d.ts.map +1 -0
- package/dist/generated/models/custom-chart-of-accounts.js +52 -0
- package/dist/generated/models/document-urls-response.d.ts +33 -0
- package/dist/generated/models/document-urls-response.d.ts.map +1 -0
- package/dist/generated/models/document-urls-response.js +51 -0
- package/dist/generated/models/get-contact-response.d.ts +159 -0
- package/dist/generated/models/get-contact-response.d.ts.map +1 -0
- package/dist/generated/models/get-contact-response.js +135 -0
- package/dist/generated/models/get-invoice-billing200-response.d.ts +41 -0
- package/dist/generated/models/get-invoice-billing200-response.d.ts.map +1 -0
- package/dist/generated/models/get-invoice-billing200-response.js +55 -0
- package/dist/generated/models/order-response.d.ts +6 -0
- package/dist/generated/models/order-response.d.ts.map +1 -1
- package/dist/generated/models/order-response.js +2 -0
- package/dist/generated/models/plan-charge-response.d.ts +166 -0
- package/dist/generated/models/plan-charge-response.d.ts.map +1 -0
- package/dist/generated/models/plan-charge-response.js +140 -0
- package/dist/generated/models/plan-response.d.ts +128 -0
- package/dist/generated/models/plan-response.d.ts.map +1 -0
- package/dist/generated/models/plan-response.js +106 -0
- package/dist/generated/models/product-response.d.ts +97 -0
- package/dist/generated/models/product-response.d.ts.map +1 -0
- package/dist/generated/models/product-response.js +87 -0
- package/dist/generated/models/stock-status-response.d.ts +59 -0
- package/dist/generated/models/stock-status-response.d.ts.map +1 -0
- package/dist/generated/models/stock-status-response.js +65 -0
- package/dist/generated/models/subscription-response.d.ts +0 -6
- package/dist/generated/models/subscription-response.d.ts.map +1 -1
- package/dist/generated/models/subscription-response.js +0 -4
- package/dist/generated/models/update-extensibility-repo.d.ts +57 -0
- package/dist/generated/models/update-extensibility-repo.d.ts.map +1 -0
- package/dist/generated/models/update-extensibility-repo.js +67 -0
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +12 -9
- package/src/extensibility/types/extensibility.ts +2 -4
- package/src/generated/apis/default-api.ts +15 -0
- package/src/generated/models/create-order.ts +8 -0
- package/src/generated/models/order-response.ts +8 -0
- package/src/generated/models/subscription-response.ts +0 -9
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace V2 Auth API
|
|
6
|
+
* ManageSpace Auth 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.GetInvoiceBilling200ResponseToJSONTyped = exports.GetInvoiceBilling200ResponseToJSON = exports.GetInvoiceBilling200ResponseFromJSONTyped = exports.GetInvoiceBilling200ResponseFromJSON = exports.instanceOfGetInvoiceBilling200Response = void 0;
|
|
17
|
+
const invoice_response_1 = require("./invoice-response");
|
|
18
|
+
const page_meta_1 = require("./page-meta");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the GetInvoiceBilling200Response interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfGetInvoiceBilling200Response(value) {
|
|
23
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfGetInvoiceBilling200Response = instanceOfGetInvoiceBilling200Response;
|
|
28
|
+
function GetInvoiceBilling200ResponseFromJSON(json) {
|
|
29
|
+
return GetInvoiceBilling200ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.GetInvoiceBilling200ResponseFromJSON = GetInvoiceBilling200ResponseFromJSON;
|
|
32
|
+
function GetInvoiceBilling200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'pageMeta': (0, page_meta_1.PageMetaFromJSON)(json['pageMeta']),
|
|
38
|
+
'results': json['results'] == null ? undefined : (json['results'].map(invoice_response_1.InvoiceResponseFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.GetInvoiceBilling200ResponseFromJSONTyped = GetInvoiceBilling200ResponseFromJSONTyped;
|
|
42
|
+
function GetInvoiceBilling200ResponseToJSON(json) {
|
|
43
|
+
return GetInvoiceBilling200ResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
exports.GetInvoiceBilling200ResponseToJSON = GetInvoiceBilling200ResponseToJSON;
|
|
46
|
+
function GetInvoiceBilling200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'pageMeta': (0, page_meta_1.PageMetaToJSON)(value['pageMeta']),
|
|
52
|
+
'results': value['results'] == null ? undefined : (value['results'].map(invoice_response_1.InvoiceResponseToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.GetInvoiceBilling200ResponseToJSONTyped = GetInvoiceBilling200ResponseToJSONTyped;
|
|
@@ -118,6 +118,12 @@ export interface OrderResponse {
|
|
|
118
118
|
* @memberof OrderResponse
|
|
119
119
|
*/
|
|
120
120
|
updatedBy?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Asset Id associated with order
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof OrderResponse
|
|
125
|
+
*/
|
|
126
|
+
assetId?: string;
|
|
121
127
|
/**
|
|
122
128
|
* Custom fields on the invoice
|
|
123
129
|
* @type {object}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/order-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;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,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAU7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"order-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/order-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;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,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAU7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CA2BjG;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,CA4BhH"}
|
|
@@ -64,6 +64,7 @@ function OrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
65
65
|
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
66
66
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
67
|
+
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
67
68
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
68
69
|
'id': json['id'],
|
|
69
70
|
};
|
|
@@ -95,6 +96,7 @@ function OrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
96
|
'updatedAt': value['updatedAt'],
|
|
96
97
|
'createdBy': value['createdBy'],
|
|
97
98
|
'updatedBy': value['updatedBy'],
|
|
99
|
+
'assetId': value['assetId'],
|
|
98
100
|
'customFields': value['customFields'],
|
|
99
101
|
'id': value['id'],
|
|
100
102
|
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace V2 Auth API
|
|
3
|
+
* ManageSpace Auth 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 { TransactionPostingEntries } from './transaction-posting-entries';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PlanChargeResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PlanChargeResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Charge ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PlanChargeResponse
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Product ID
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PlanChargeResponse
|
|
29
|
+
*/
|
|
30
|
+
productId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Charge name
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PlanChargeResponse
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Type of charge
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PlanChargeResponse
|
|
41
|
+
*/
|
|
42
|
+
type: string;
|
|
43
|
+
/**
|
|
44
|
+
* Billing period for recurring and usage based Charges
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PlanChargeResponse
|
|
47
|
+
*/
|
|
48
|
+
billingPeriod: string;
|
|
49
|
+
/**
|
|
50
|
+
* Description of charge
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PlanChargeResponse
|
|
53
|
+
*/
|
|
54
|
+
description: string;
|
|
55
|
+
/**
|
|
56
|
+
* Line number
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PlanChargeResponse
|
|
59
|
+
*/
|
|
60
|
+
lineNumber: number;
|
|
61
|
+
/**
|
|
62
|
+
* Timing of charge
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PlanChargeResponse
|
|
65
|
+
*/
|
|
66
|
+
chargeTiming: string;
|
|
67
|
+
/**
|
|
68
|
+
* How Charge will be priced
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PlanChargeResponse
|
|
71
|
+
*/
|
|
72
|
+
pricingModel: string;
|
|
73
|
+
/**
|
|
74
|
+
* Original unit price of Charge
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PlanChargeResponse
|
|
77
|
+
*/
|
|
78
|
+
listPrice: string;
|
|
79
|
+
/**
|
|
80
|
+
* List price of charge
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof PlanChargeResponse
|
|
83
|
+
*/
|
|
84
|
+
listPriceBase: string;
|
|
85
|
+
/**
|
|
86
|
+
* Determine boundary of Charge period
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof PlanChargeResponse
|
|
89
|
+
*/
|
|
90
|
+
billingPeriodStartAlignment: string;
|
|
91
|
+
/**
|
|
92
|
+
* Which day of the month or week Charge is invoiced
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof PlanChargeResponse
|
|
95
|
+
*/
|
|
96
|
+
billingDay: string;
|
|
97
|
+
/**
|
|
98
|
+
* Date after which the One time charges should be processed
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof PlanChargeResponse
|
|
101
|
+
*/
|
|
102
|
+
billingDate: string;
|
|
103
|
+
/**
|
|
104
|
+
* Charge for partial periods
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof PlanChargeResponse
|
|
107
|
+
*/
|
|
108
|
+
proratePartialPeriods: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Determines proration logic
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof PlanChargeResponse
|
|
113
|
+
*/
|
|
114
|
+
backchargeCurrentPeriod: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Number of periods/units to charge
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof PlanChargeResponse
|
|
119
|
+
*/
|
|
120
|
+
prepaymentPeriods: number;
|
|
121
|
+
/**
|
|
122
|
+
* Determines account information for charge
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
* @memberof PlanChargeResponse
|
|
125
|
+
*/
|
|
126
|
+
defaultFromProduct: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Revenue rule ID
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof PlanChargeResponse
|
|
131
|
+
*/
|
|
132
|
+
revenueRuleId: string;
|
|
133
|
+
/**
|
|
134
|
+
* Date when revenue recognition will begin
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof PlanChargeResponse
|
|
137
|
+
*/
|
|
138
|
+
recognitionStartDate: string;
|
|
139
|
+
/**
|
|
140
|
+
* Date when revenue recognition will end
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof PlanChargeResponse
|
|
143
|
+
*/
|
|
144
|
+
recognitionEndDate: string;
|
|
145
|
+
/**
|
|
146
|
+
* Product transaction posting entries
|
|
147
|
+
* @type {Array<TransactionPostingEntries>}
|
|
148
|
+
* @memberof PlanChargeResponse
|
|
149
|
+
*/
|
|
150
|
+
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
151
|
+
/**
|
|
152
|
+
* Custom fields on the invoice
|
|
153
|
+
* @type {object}
|
|
154
|
+
* @memberof PlanChargeResponse
|
|
155
|
+
*/
|
|
156
|
+
customFields: object;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Check if a given object implements the PlanChargeResponse interface.
|
|
160
|
+
*/
|
|
161
|
+
export declare function instanceOfPlanChargeResponse(value: object): value is PlanChargeResponse;
|
|
162
|
+
export declare function PlanChargeResponseFromJSON(json: any): PlanChargeResponse;
|
|
163
|
+
export declare function PlanChargeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanChargeResponse;
|
|
164
|
+
export declare function PlanChargeResponseToJSON(json: any): PlanChargeResponse;
|
|
165
|
+
export declare function PlanChargeResponseToJSONTyped(value?: PlanChargeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
166
|
+
//# sourceMappingURL=plan-charge-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-charge-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plan-charge-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAyBvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CA8B3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA+B1H"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace V2 Auth API
|
|
6
|
+
* ManageSpace Auth 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.PlanChargeResponseToJSONTyped = exports.PlanChargeResponseToJSON = exports.PlanChargeResponseFromJSONTyped = exports.PlanChargeResponseFromJSON = exports.instanceOfPlanChargeResponse = void 0;
|
|
17
|
+
const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PlanChargeResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPlanChargeResponse(value) {
|
|
22
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('productId' in value) || value['productId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('lineNumber' in value) || value['lineNumber'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('pricingModel' in value) || value['pricingModel'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('listPrice' in value) || value['listPrice'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('billingDay' in value) || value['billingDay'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('billingDate' in value) || value['billingDate'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('proratePartialPeriods' in value) || value['proratePartialPeriods'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('backchargeCurrentPeriod' in value) || value['backchargeCurrentPeriod'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('prepaymentPeriods' in value) || value['prepaymentPeriods'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('recognitionEndDate' in value) || value['recognitionEndDate'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('customFields' in value) || value['customFields'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
exports.instanceOfPlanChargeResponse = instanceOfPlanChargeResponse;
|
|
71
|
+
function PlanChargeResponseFromJSON(json) {
|
|
72
|
+
return PlanChargeResponseFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
exports.PlanChargeResponseFromJSON = PlanChargeResponseFromJSON;
|
|
75
|
+
function PlanChargeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'id': json['id'],
|
|
81
|
+
'productId': json['productId'],
|
|
82
|
+
'name': json['name'],
|
|
83
|
+
'type': json['type'],
|
|
84
|
+
'billingPeriod': json['billingPeriod'],
|
|
85
|
+
'description': json['description'],
|
|
86
|
+
'lineNumber': json['lineNumber'],
|
|
87
|
+
'chargeTiming': json['chargeTiming'],
|
|
88
|
+
'pricingModel': json['pricingModel'],
|
|
89
|
+
'listPrice': json['listPrice'],
|
|
90
|
+
'listPriceBase': json['listPriceBase'],
|
|
91
|
+
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
|
|
92
|
+
'billingDay': json['billingDay'],
|
|
93
|
+
'billingDate': json['billingDate'],
|
|
94
|
+
'proratePartialPeriods': json['proratePartialPeriods'],
|
|
95
|
+
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'],
|
|
96
|
+
'prepaymentPeriods': json['prepaymentPeriods'],
|
|
97
|
+
'defaultFromProduct': json['defaultFromProduct'],
|
|
98
|
+
'revenueRuleId': json['revenueRuleId'],
|
|
99
|
+
'recognitionStartDate': json['recognitionStartDate'],
|
|
100
|
+
'recognitionEndDate': json['recognitionEndDate'],
|
|
101
|
+
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
102
|
+
'customFields': json['customFields'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
exports.PlanChargeResponseFromJSONTyped = PlanChargeResponseFromJSONTyped;
|
|
106
|
+
function PlanChargeResponseToJSON(json) {
|
|
107
|
+
return PlanChargeResponseToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
exports.PlanChargeResponseToJSON = PlanChargeResponseToJSON;
|
|
110
|
+
function PlanChargeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
'id': value['id'],
|
|
116
|
+
'productId': value['productId'],
|
|
117
|
+
'name': value['name'],
|
|
118
|
+
'type': value['type'],
|
|
119
|
+
'billingPeriod': value['billingPeriod'],
|
|
120
|
+
'description': value['description'],
|
|
121
|
+
'lineNumber': value['lineNumber'],
|
|
122
|
+
'chargeTiming': value['chargeTiming'],
|
|
123
|
+
'pricingModel': value['pricingModel'],
|
|
124
|
+
'listPrice': value['listPrice'],
|
|
125
|
+
'listPriceBase': value['listPriceBase'],
|
|
126
|
+
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
127
|
+
'billingDay': value['billingDay'],
|
|
128
|
+
'billingDate': value['billingDate'],
|
|
129
|
+
'proratePartialPeriods': value['proratePartialPeriods'],
|
|
130
|
+
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
131
|
+
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
132
|
+
'defaultFromProduct': value['defaultFromProduct'],
|
|
133
|
+
'revenueRuleId': value['revenueRuleId'],
|
|
134
|
+
'recognitionStartDate': value['recognitionStartDate'],
|
|
135
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
136
|
+
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
137
|
+
'customFields': value['customFields'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
exports.PlanChargeResponseToJSONTyped = PlanChargeResponseToJSONTyped;
|
|
@@ -0,0 +1,128 @@
|
|
|
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 { OrgResponse } from './org-response';
|
|
13
|
+
import type { SiteResponse } from './site-response';
|
|
14
|
+
import type { ProductResponse } from './product-response';
|
|
15
|
+
import type { AssetResponse } from './asset-response';
|
|
16
|
+
import type { CustomerResponse } from './customer-response';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PlanResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface PlanResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Product ID
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PlanResponse
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* The product id stored in the external sytem
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PlanResponse
|
|
33
|
+
*/
|
|
34
|
+
externalId: string | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {OrgResponse}
|
|
38
|
+
* @memberof PlanResponse
|
|
39
|
+
*/
|
|
40
|
+
org?: OrgResponse;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PlanResponse
|
|
45
|
+
*/
|
|
46
|
+
orgId: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {SiteResponse}
|
|
50
|
+
* @memberof PlanResponse
|
|
51
|
+
*/
|
|
52
|
+
site?: SiteResponse;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PlanResponse
|
|
57
|
+
*/
|
|
58
|
+
siteId: string;
|
|
59
|
+
/**
|
|
60
|
+
* The product name
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PlanResponse
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* The price of the product in the lowest denomination of the currency
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof PlanResponse
|
|
69
|
+
*/
|
|
70
|
+
price: number;
|
|
71
|
+
/**
|
|
72
|
+
* Tax exempt
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof PlanResponse
|
|
75
|
+
*/
|
|
76
|
+
taxable: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Tax exempt
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof PlanResponse
|
|
81
|
+
*/
|
|
82
|
+
active: boolean;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {ProductResponse}
|
|
86
|
+
* @memberof PlanResponse
|
|
87
|
+
*/
|
|
88
|
+
product?: ProductResponse;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof PlanResponse
|
|
93
|
+
*/
|
|
94
|
+
productId: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {AssetResponse}
|
|
98
|
+
* @memberof PlanResponse
|
|
99
|
+
*/
|
|
100
|
+
asset?: AssetResponse | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof PlanResponse
|
|
105
|
+
*/
|
|
106
|
+
assetId: string | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {CustomerResponse}
|
|
110
|
+
* @memberof PlanResponse
|
|
111
|
+
*/
|
|
112
|
+
customer?: CustomerResponse;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof PlanResponse
|
|
117
|
+
*/
|
|
118
|
+
customerId: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the PlanResponse interface.
|
|
122
|
+
*/
|
|
123
|
+
export declare function instanceOfPlanResponse(value: object): value is PlanResponse;
|
|
124
|
+
export declare function PlanResponseFromJSON(json: any): PlanResponse;
|
|
125
|
+
export declare function PlanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanResponse;
|
|
126
|
+
export declare function PlanResponseToJSON(json: any): PlanResponse;
|
|
127
|
+
export declare function PlanResponseToJSONTyped(value?: PlanResponse | null, ignoreDiscriminator?: boolean): any;
|
|
128
|
+
//# sourceMappingURL=plan-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plan-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAOlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQ5D;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAa3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAuB/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAwB9G"}
|
|
@@ -0,0 +1,106 @@
|
|
|
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.PlanResponseToJSONTyped = exports.PlanResponseToJSON = exports.PlanResponseFromJSONTyped = exports.PlanResponseFromJSON = exports.instanceOfPlanResponse = void 0;
|
|
17
|
+
const org_response_1 = require("./org-response");
|
|
18
|
+
const site_response_1 = require("./site-response");
|
|
19
|
+
const product_response_1 = require("./product-response");
|
|
20
|
+
const asset_response_1 = require("./asset-response");
|
|
21
|
+
const customer_response_1 = require("./customer-response");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PlanResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPlanResponse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('orgId' in value) || value['orgId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('taxable' in value) || value['taxable'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('productId' in value) || value['productId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('customerId' in value) || value['customerId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
exports.instanceOfPlanResponse = instanceOfPlanResponse;
|
|
51
|
+
function PlanResponseFromJSON(json) {
|
|
52
|
+
return PlanResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
exports.PlanResponseFromJSON = PlanResponseFromJSON;
|
|
55
|
+
function PlanResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': json['id'],
|
|
61
|
+
'externalId': json['externalId'],
|
|
62
|
+
'org': json['org'] == null ? undefined : (0, org_response_1.OrgResponseFromJSON)(json['org']),
|
|
63
|
+
'orgId': json['orgId'],
|
|
64
|
+
'site': json['site'] == null ? undefined : (0, site_response_1.SiteResponseFromJSON)(json['site']),
|
|
65
|
+
'siteId': json['siteId'],
|
|
66
|
+
'name': json['name'],
|
|
67
|
+
'price': json['price'],
|
|
68
|
+
'taxable': json['taxable'],
|
|
69
|
+
'active': json['active'],
|
|
70
|
+
'product': json['product'] == null ? undefined : (0, product_response_1.ProductResponseFromJSON)(json['product']),
|
|
71
|
+
'productId': json['productId'],
|
|
72
|
+
'asset': json['asset'] == null ? undefined : (0, asset_response_1.AssetResponseFromJSON)(json['asset']),
|
|
73
|
+
'assetId': json['assetId'],
|
|
74
|
+
'customer': json['customer'] == null ? undefined : (0, customer_response_1.CustomerResponseFromJSON)(json['customer']),
|
|
75
|
+
'customerId': json['customerId'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
exports.PlanResponseFromJSONTyped = PlanResponseFromJSONTyped;
|
|
79
|
+
function PlanResponseToJSON(json) {
|
|
80
|
+
return PlanResponseToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
exports.PlanResponseToJSON = PlanResponseToJSON;
|
|
83
|
+
function PlanResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'id': value['id'],
|
|
89
|
+
'externalId': value['externalId'],
|
|
90
|
+
'org': (0, org_response_1.OrgResponseToJSON)(value['org']),
|
|
91
|
+
'orgId': value['orgId'],
|
|
92
|
+
'site': (0, site_response_1.SiteResponseToJSON)(value['site']),
|
|
93
|
+
'siteId': value['siteId'],
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'price': value['price'],
|
|
96
|
+
'taxable': value['taxable'],
|
|
97
|
+
'active': value['active'],
|
|
98
|
+
'product': (0, product_response_1.ProductResponseToJSON)(value['product']),
|
|
99
|
+
'productId': value['productId'],
|
|
100
|
+
'asset': (0, asset_response_1.AssetResponseToJSON)(value['asset']),
|
|
101
|
+
'assetId': value['assetId'],
|
|
102
|
+
'customer': (0, customer_response_1.CustomerResponseToJSON)(value['customer']),
|
|
103
|
+
'customerId': value['customerId'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
exports.PlanResponseToJSONTyped = PlanResponseToJSONTyped;
|