@managespace/sdk 0.0.126 → 0.0.128
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 +1 -9
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +0 -5
- package/dist/extensibility/functions/project/document.d.ts +12 -0
- package/dist/extensibility/functions/project/document.d.ts.map +1 -1
- package/dist/extensibility/functions/project/document.js +10 -0
- package/dist/generated/apis/default-api.d.ts +1 -24
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +1 -76
- package/dist/generated/models/create-note.d.ts +0 -6
- package/dist/generated/models/create-note.d.ts.map +1 -1
- package/dist/generated/models/create-note.js +0 -2
- package/dist/generated/models/create-subscription.d.ts +4 -166
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +12 -58
- package/dist/generated/models/index.d.ts +0 -2
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -2
- package/dist/generated/models/note.d.ts +0 -6
- package/dist/generated/models/note.d.ts.map +1 -1
- package/dist/generated/models/note.js +0 -4
- package/dist/generated/models/subscription.d.ts +78 -120
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +90 -56
- package/dist/generated/models/update-note.d.ts +19 -1
- package/dist/generated/models/update-note.d.ts.map +1 -1
- package/dist/generated/models/update-note.js +7 -3
- package/package.deploy.json +33 -0
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +0 -8
- package/src/extensibility/functions/project/document.ts +8 -0
- package/src/generated/.openapi-generator/FILES +0 -3
- package/src/generated/apis/default-api.ts +0 -115
- package/src/generated/models/create-note.ts +0 -8
- package/src/generated/models/create-product-custom.ts +8 -0
- package/src/generated/models/index.ts +0 -3
- package/src/generated/models/note.ts +0 -9
- package/src/generated/models/product-custom.ts +8 -0
- package/src/generated/models/update-note.ts +26 -3
- package/.turbo/turbo-build.log +0 -2
- package/dist/generated/models/create-subscription-plan.d.ts +0 -69
- package/dist/generated/models/create-subscription-plan.d.ts.map +0 -1
- package/dist/generated/models/create-subscription-plan.js +0 -71
- package/dist/generated/models/subscription-plan.d.ts +0 -268
- package/dist/generated/models/subscription-plan.d.ts.map +0 -1
- package/dist/generated/models/subscription-plan.js +0 -208
- package/dist/generated/models/update-subscription-charge.d.ts +0 -293
- package/dist/generated/models/update-subscription-charge.d.ts.map +0 -1
- package/dist/generated/models/update-subscription-charge.js +0 -149
- package/dist/generated/models/update-subscription.d.ts +0 -226
- package/dist/generated/models/update-subscription.d.ts.map +0 -1
- package/dist/generated/models/update-subscription.js +0 -118
- package/src/generated/models/subscription-invoice-line.ts +0 -192
- package/src/generated/models/subscription-invoice.ts +0 -110
- package/src/generated/models/subscription-preview.ts +0 -440
|
@@ -1,118 +0,0 @@
|
|
|
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.UpdateSubscriptionToJSONTyped = exports.UpdateSubscriptionToJSON = exports.UpdateSubscriptionFromJSONTyped = exports.UpdateSubscriptionFromJSON = exports.instanceOfUpdateSubscription = void 0;
|
|
17
|
-
const update_subscription_charge_1 = require("./update-subscription-charge");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the UpdateSubscription interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfUpdateSubscription(value) {
|
|
22
|
-
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
if (!('charges' in value) || value['charges'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
exports.instanceOfUpdateSubscription = instanceOfUpdateSubscription;
|
|
29
|
-
function UpdateSubscriptionFromJSON(json) {
|
|
30
|
-
return UpdateSubscriptionFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
exports.UpdateSubscriptionFromJSON = UpdateSubscriptionFromJSON;
|
|
33
|
-
function UpdateSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
39
|
-
'billingStartDate': json['billingStartDate'] == null ? undefined : json['billingStartDate'],
|
|
40
|
-
'serviceStartDate': json['serviceStartDate'] == null ? undefined : json['serviceStartDate'],
|
|
41
|
-
'orderPlacedAt': json['orderPlacedAt'] == null ? undefined : json['orderPlacedAt'],
|
|
42
|
-
'cancellationDate': json['cancellationDate'] == null ? undefined : json['cancellationDate'],
|
|
43
|
-
'cancellationType': json['cancellationType'] == null ? undefined : json['cancellationType'],
|
|
44
|
-
'autoRenew': json['autoRenew'] == null ? undefined : json['autoRenew'],
|
|
45
|
-
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
46
|
-
'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
|
|
47
|
-
'cmrr': json['cmrr'] == null ? undefined : json['cmrr'],
|
|
48
|
-
'discountedCmrr': json['discountedCmrr'] == null ? undefined : json['discountedCmrr'],
|
|
49
|
-
'separateInvoice': json['separateInvoice'] == null ? undefined : json['separateInvoice'],
|
|
50
|
-
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
51
|
-
'couponCode': json['couponCode'] == null ? undefined : json['couponCode'],
|
|
52
|
-
'version': json['version'] == null ? undefined : json['version'],
|
|
53
|
-
'versionType': json['versionType'] == null ? undefined : json['versionType'],
|
|
54
|
-
'contractTerm': json['contractTerm'] == null ? undefined : json['contractTerm'],
|
|
55
|
-
'renewalTerm': json['renewalTerm'] == null ? undefined : json['renewalTerm'],
|
|
56
|
-
'currentTermStartDate': json['currentTermStartDate'] == null ? undefined : json['currentTermStartDate'],
|
|
57
|
-
'currentTermEndDate': json['currentTermEndDate'] == null ? undefined : json['currentTermEndDate'],
|
|
58
|
-
'renewalIncrementPercent': json['renewalIncrementPercent'] == null ? undefined : json['renewalIncrementPercent'],
|
|
59
|
-
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
60
|
-
'billContactId': json['billContactId'] == null ? undefined : json['billContactId'],
|
|
61
|
-
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
62
|
-
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
63
|
-
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
|
-
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
65
|
-
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
66
|
-
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
67
|
-
'tcv': json['tcv'] == null ? undefined : json['tcv'],
|
|
68
|
-
'deferStartDate': json['deferStartDate'] == null ? undefined : json['deferStartDate'],
|
|
69
|
-
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
70
|
-
'charges': (json['charges'].map(update_subscription_charge_1.UpdateSubscriptionChargeFromJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
exports.UpdateSubscriptionFromJSONTyped = UpdateSubscriptionFromJSONTyped;
|
|
74
|
-
function UpdateSubscriptionToJSON(json) {
|
|
75
|
-
return UpdateSubscriptionToJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
exports.UpdateSubscriptionToJSON = UpdateSubscriptionToJSON;
|
|
78
|
-
function UpdateSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
-
if (value == null) {
|
|
80
|
-
return value;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
'status': value['status'],
|
|
84
|
-
'billingStartDate': value['billingStartDate'],
|
|
85
|
-
'serviceStartDate': value['serviceStartDate'],
|
|
86
|
-
'orderPlacedAt': value['orderPlacedAt'],
|
|
87
|
-
'cancellationDate': value['cancellationDate'],
|
|
88
|
-
'cancellationType': value['cancellationType'],
|
|
89
|
-
'autoRenew': value['autoRenew'],
|
|
90
|
-
'currency': value['currency'],
|
|
91
|
-
'paymentTerms': value['paymentTerms'],
|
|
92
|
-
'cmrr': value['cmrr'],
|
|
93
|
-
'discountedCmrr': value['discountedCmrr'],
|
|
94
|
-
'separateInvoice': value['separateInvoice'],
|
|
95
|
-
'notes': value['notes'],
|
|
96
|
-
'couponCode': value['couponCode'],
|
|
97
|
-
'version': value['version'],
|
|
98
|
-
'versionType': value['versionType'],
|
|
99
|
-
'contractTerm': value['contractTerm'],
|
|
100
|
-
'renewalTerm': value['renewalTerm'],
|
|
101
|
-
'currentTermStartDate': value['currentTermStartDate'],
|
|
102
|
-
'currentTermEndDate': value['currentTermEndDate'],
|
|
103
|
-
'renewalIncrementPercent': value['renewalIncrementPercent'],
|
|
104
|
-
'assetId': value['assetId'],
|
|
105
|
-
'billContactId': value['billContactId'],
|
|
106
|
-
'shippingContactId': value['shippingContactId'],
|
|
107
|
-
'updatedAt': value['updatedAt'],
|
|
108
|
-
'createdAt': value['createdAt'],
|
|
109
|
-
'createdBy': value['createdBy'],
|
|
110
|
-
'updatedBy': value['updatedBy'],
|
|
111
|
-
'customFields': value['customFields'],
|
|
112
|
-
'tcv': value['tcv'],
|
|
113
|
-
'deferStartDate': value['deferStartDate'],
|
|
114
|
-
'contractEffectiveDate': value['contractEffectiveDate'],
|
|
115
|
-
'charges': (value['charges'].map(update_subscription_charge_1.UpdateSubscriptionChargeToJSON)),
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
exports.UpdateSubscriptionToJSONTyped = UpdateSubscriptionToJSONTyped;
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* ManageSpace API
|
|
5
|
-
* ManageSpace API Documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface SubscriptionInvoiceLine
|
|
20
|
-
*/
|
|
21
|
-
export interface SubscriptionInvoiceLine {
|
|
22
|
-
/**
|
|
23
|
-
* Product ID
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SubscriptionInvoiceLine
|
|
26
|
-
*/
|
|
27
|
-
productId: string;
|
|
28
|
-
/**
|
|
29
|
-
* Product name
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof SubscriptionInvoiceLine
|
|
32
|
-
*/
|
|
33
|
-
productName: string;
|
|
34
|
-
/**
|
|
35
|
-
* Charge ID
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof SubscriptionInvoiceLine
|
|
38
|
-
*/
|
|
39
|
-
chargeId: string;
|
|
40
|
-
/**
|
|
41
|
-
* Charge name
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SubscriptionInvoiceLine
|
|
44
|
-
*/
|
|
45
|
-
chargeName: string;
|
|
46
|
-
/**
|
|
47
|
-
* Charge type
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof SubscriptionInvoiceLine
|
|
50
|
-
*/
|
|
51
|
-
chargeType: string;
|
|
52
|
-
/**
|
|
53
|
-
* Description of the line item
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof SubscriptionInvoiceLine
|
|
56
|
-
*/
|
|
57
|
-
description: string;
|
|
58
|
-
/**
|
|
59
|
-
* Line item start date
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof SubscriptionInvoiceLine
|
|
62
|
-
*/
|
|
63
|
-
startDate: string;
|
|
64
|
-
/**
|
|
65
|
-
* Line item start date
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof SubscriptionInvoiceLine
|
|
68
|
-
*/
|
|
69
|
-
endDate: string;
|
|
70
|
-
/**
|
|
71
|
-
* Unit price of the line item
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof SubscriptionInvoiceLine
|
|
74
|
-
*/
|
|
75
|
-
unitPrice: string;
|
|
76
|
-
/**
|
|
77
|
-
* The number of the items
|
|
78
|
-
* @type {number}
|
|
79
|
-
* @memberof SubscriptionInvoiceLine
|
|
80
|
-
*/
|
|
81
|
-
quantity: number;
|
|
82
|
-
/**
|
|
83
|
-
* Charge ready date
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof SubscriptionInvoiceLine
|
|
86
|
-
*/
|
|
87
|
-
chargeReadyDate: string;
|
|
88
|
-
/**
|
|
89
|
-
* The discount applied to product
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof SubscriptionInvoiceLine
|
|
92
|
-
*/
|
|
93
|
-
discount: number;
|
|
94
|
-
/**
|
|
95
|
-
* If line item is invoiced
|
|
96
|
-
* @type {boolean}
|
|
97
|
-
* @memberof SubscriptionInvoiceLine
|
|
98
|
-
*/
|
|
99
|
-
invoiced: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Charge effective price
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof SubscriptionInvoiceLine
|
|
104
|
-
*/
|
|
105
|
-
chgEffectivePrice: string;
|
|
106
|
-
/**
|
|
107
|
-
* MRR
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof SubscriptionInvoiceLine
|
|
110
|
-
*/
|
|
111
|
-
mrr: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Check if a given object implements the SubscriptionInvoiceLine interface.
|
|
116
|
-
*/
|
|
117
|
-
export function instanceOfSubscriptionInvoiceLine(value: object): value is SubscriptionInvoiceLine {
|
|
118
|
-
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
119
|
-
if (!('productName' in value) || value['productName'] === undefined) return false;
|
|
120
|
-
if (!('chargeId' in value) || value['chargeId'] === undefined) return false;
|
|
121
|
-
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
122
|
-
if (!('chargeType' in value) || value['chargeType'] === undefined) return false;
|
|
123
|
-
if (!('description' in value) || value['description'] === undefined) return false;
|
|
124
|
-
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
125
|
-
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
126
|
-
if (!('unitPrice' in value) || value['unitPrice'] === undefined) return false;
|
|
127
|
-
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
128
|
-
if (!('chargeReadyDate' in value) || value['chargeReadyDate'] === undefined) return false;
|
|
129
|
-
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
130
|
-
if (!('invoiced' in value) || value['invoiced'] === undefined) return false;
|
|
131
|
-
if (!('chgEffectivePrice' in value) || value['chgEffectivePrice'] === undefined) return false;
|
|
132
|
-
if (!('mrr' in value) || value['mrr'] === undefined) return false;
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function SubscriptionInvoiceLineFromJSON(json: any): SubscriptionInvoiceLine {
|
|
137
|
-
return SubscriptionInvoiceLineFromJSONTyped(json, false);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export function SubscriptionInvoiceLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionInvoiceLine {
|
|
141
|
-
if (json == null) {
|
|
142
|
-
return json;
|
|
143
|
-
}
|
|
144
|
-
return {
|
|
145
|
-
|
|
146
|
-
'productId': json['productId'],
|
|
147
|
-
'productName': json['productName'],
|
|
148
|
-
'chargeId': json['chargeId'],
|
|
149
|
-
'chargeName': json['chargeName'],
|
|
150
|
-
'chargeType': json['chargeType'],
|
|
151
|
-
'description': json['description'],
|
|
152
|
-
'startDate': json['startDate'],
|
|
153
|
-
'endDate': json['endDate'],
|
|
154
|
-
'unitPrice': json['unitPrice'],
|
|
155
|
-
'quantity': json['quantity'],
|
|
156
|
-
'chargeReadyDate': json['chargeReadyDate'],
|
|
157
|
-
'discount': json['discount'],
|
|
158
|
-
'invoiced': json['invoiced'],
|
|
159
|
-
'chgEffectivePrice': json['chgEffectivePrice'],
|
|
160
|
-
'mrr': json['mrr'],
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export function SubscriptionInvoiceLineToJSON(json: any): SubscriptionInvoiceLine {
|
|
165
|
-
return SubscriptionInvoiceLineToJSONTyped(json, false);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export function SubscriptionInvoiceLineToJSONTyped(value?: SubscriptionInvoiceLine | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
-
if (value == null) {
|
|
170
|
-
return value;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return {
|
|
174
|
-
|
|
175
|
-
'productId': value['productId'],
|
|
176
|
-
'productName': value['productName'],
|
|
177
|
-
'chargeId': value['chargeId'],
|
|
178
|
-
'chargeName': value['chargeName'],
|
|
179
|
-
'chargeType': value['chargeType'],
|
|
180
|
-
'description': value['description'],
|
|
181
|
-
'startDate': value['startDate'],
|
|
182
|
-
'endDate': value['endDate'],
|
|
183
|
-
'unitPrice': value['unitPrice'],
|
|
184
|
-
'quantity': value['quantity'],
|
|
185
|
-
'chargeReadyDate': value['chargeReadyDate'],
|
|
186
|
-
'discount': value['discount'],
|
|
187
|
-
'invoiced': value['invoiced'],
|
|
188
|
-
'chgEffectivePrice': value['chgEffectivePrice'],
|
|
189
|
-
'mrr': value['mrr'],
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* ManageSpace API
|
|
5
|
-
* ManageSpace API Documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { SubscriptionInvoiceLine } from './subscription-invoice-line';
|
|
17
|
-
import {
|
|
18
|
-
SubscriptionInvoiceLineFromJSON,
|
|
19
|
-
SubscriptionInvoiceLineFromJSONTyped,
|
|
20
|
-
SubscriptionInvoiceLineToJSON,
|
|
21
|
-
SubscriptionInvoiceLineToJSONTyped,
|
|
22
|
-
} from './subscription-invoice-line';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface SubscriptionInvoice
|
|
28
|
-
*/
|
|
29
|
-
export interface SubscriptionInvoice {
|
|
30
|
-
/**
|
|
31
|
-
* Subtotal of invoice
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof SubscriptionInvoice
|
|
34
|
-
*/
|
|
35
|
-
substoal: number;
|
|
36
|
-
/**
|
|
37
|
-
* Invoice amount
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof SubscriptionInvoice
|
|
40
|
-
*/
|
|
41
|
-
invoiceAmount: number;
|
|
42
|
-
/**
|
|
43
|
-
* Invioice date
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof SubscriptionInvoice
|
|
46
|
-
*/
|
|
47
|
-
period: string;
|
|
48
|
-
/**
|
|
49
|
-
* Invoice line items
|
|
50
|
-
* @type {Array<SubscriptionInvoiceLine>}
|
|
51
|
-
* @memberof SubscriptionInvoice
|
|
52
|
-
*/
|
|
53
|
-
invoiceLines: Array<SubscriptionInvoiceLine>;
|
|
54
|
-
/**
|
|
55
|
-
* Ready date of invoice
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SubscriptionInvoice
|
|
58
|
-
*/
|
|
59
|
-
readyDate: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Check if a given object implements the SubscriptionInvoice interface.
|
|
64
|
-
*/
|
|
65
|
-
export function instanceOfSubscriptionInvoice(value: object): value is SubscriptionInvoice {
|
|
66
|
-
if (!('substoal' in value) || value['substoal'] === undefined) return false;
|
|
67
|
-
if (!('invoiceAmount' in value) || value['invoiceAmount'] === undefined) return false;
|
|
68
|
-
if (!('period' in value) || value['period'] === undefined) return false;
|
|
69
|
-
if (!('invoiceLines' in value) || value['invoiceLines'] === undefined) return false;
|
|
70
|
-
if (!('readyDate' in value) || value['readyDate'] === undefined) return false;
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function SubscriptionInvoiceFromJSON(json: any): SubscriptionInvoice {
|
|
75
|
-
return SubscriptionInvoiceFromJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function SubscriptionInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionInvoice {
|
|
79
|
-
if (json == null) {
|
|
80
|
-
return json;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
'substoal': json['substoal'],
|
|
85
|
-
'invoiceAmount': json['invoiceAmount'],
|
|
86
|
-
'period': json['period'],
|
|
87
|
-
'invoiceLines': ((json['invoiceLines'] as Array<any>).map(SubscriptionInvoiceLineFromJSON)),
|
|
88
|
-
'readyDate': json['readyDate'],
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function SubscriptionInvoiceToJSON(json: any): SubscriptionInvoice {
|
|
93
|
-
return SubscriptionInvoiceToJSONTyped(json, false);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function SubscriptionInvoiceToJSONTyped(value?: SubscriptionInvoice | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
-
if (value == null) {
|
|
98
|
-
return value;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return {
|
|
102
|
-
|
|
103
|
-
'substoal': value['substoal'],
|
|
104
|
-
'invoiceAmount': value['invoiceAmount'],
|
|
105
|
-
'period': value['period'],
|
|
106
|
-
'invoiceLines': ((value['invoiceLines'] as Array<any>).map(SubscriptionInvoiceLineToJSON)),
|
|
107
|
-
'readyDate': value['readyDate'],
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
|