@managespace/sdk 0.0.129 → 0.0.131

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.
Files changed (48) hide show
  1. package/.turbo/turbo-build.log +2 -0
  2. package/dist/extensibility/functions/project/billing.d.ts +6 -0
  3. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  4. package/dist/extensibility/functions/project/billing.js +5 -0
  5. package/dist/extensibility/functions/project/document.d.ts +0 -13
  6. package/dist/extensibility/functions/project/document.d.ts.map +1 -1
  7. package/dist/extensibility/functions/project/document.js +0 -10
  8. package/dist/generated/apis/default-api.d.ts +22 -0
  9. package/dist/generated/apis/default-api.d.ts.map +1 -1
  10. package/dist/generated/apis/default-api.js +70 -0
  11. package/dist/generated/models/create-note.d.ts +6 -0
  12. package/dist/generated/models/create-note.d.ts.map +1 -1
  13. package/dist/generated/models/create-note.js +2 -0
  14. package/dist/generated/models/create-subscription-plan.d.ts +69 -0
  15. package/dist/generated/models/create-subscription-plan.d.ts.map +1 -0
  16. package/dist/generated/models/create-subscription-plan.js +71 -0
  17. package/dist/generated/models/note.d.ts +6 -0
  18. package/dist/generated/models/note.d.ts.map +1 -1
  19. package/dist/generated/models/note.js +4 -0
  20. package/dist/generated/models/subscription-invoice-line.d.ts +117 -0
  21. package/dist/generated/models/subscription-invoice-line.d.ts.map +1 -0
  22. package/dist/generated/models/subscription-invoice-line.js +107 -0
  23. package/dist/generated/models/subscription-invoice.d.ts +58 -0
  24. package/dist/generated/models/subscription-invoice.d.ts.map +1 -0
  25. package/dist/generated/models/subscription-invoice.js +68 -0
  26. package/dist/generated/models/subscription-plan.d.ts +268 -0
  27. package/dist/generated/models/subscription-plan.d.ts.map +1 -0
  28. package/dist/generated/models/subscription-plan.js +208 -0
  29. package/dist/generated/models/subscription-preview.d.ts +275 -0
  30. package/dist/generated/models/subscription-preview.d.ts.map +1 -0
  31. package/dist/generated/models/subscription-preview.js +211 -0
  32. package/dist/generated/models/update-note.d.ts +1 -19
  33. package/dist/generated/models/update-note.d.ts.map +1 -1
  34. package/dist/generated/models/update-note.js +3 -7
  35. package/dist/generated/models/update-subscription-charge.d.ts +293 -0
  36. package/dist/generated/models/update-subscription-charge.d.ts.map +1 -0
  37. package/dist/generated/models/update-subscription-charge.js +149 -0
  38. package/dist/generated/models/update-subscription.d.ts +226 -0
  39. package/dist/generated/models/update-subscription.d.ts.map +1 -0
  40. package/dist/generated/models/update-subscription.js +118 -0
  41. package/package.json +2 -2
  42. package/src/extensibility/functions/project/billing.ts +6 -0
  43. package/src/extensibility/functions/project/document.ts +0 -8
  44. package/src/generated/apis/default-api.ts +112 -0
  45. package/src/generated/models/create-note.ts +8 -0
  46. package/src/generated/models/note.ts +9 -0
  47. package/src/generated/models/update-note.ts +3 -26
  48. package/package.deploy.json +0 -33
@@ -0,0 +1,71 @@
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.CreateSubscriptionPlanToJSONTyped = exports.CreateSubscriptionPlanToJSON = exports.CreateSubscriptionPlanFromJSONTyped = exports.CreateSubscriptionPlanFromJSON = exports.instanceOfCreateSubscriptionPlan = void 0;
17
+ /**
18
+ * Check if a given object implements the CreateSubscriptionPlan interface.
19
+ */
20
+ function instanceOfCreateSubscriptionPlan(value) {
21
+ if (!('productId' in value) || value['productId'] === undefined)
22
+ return false;
23
+ if (!('planId' in value) || value['planId'] === undefined)
24
+ return false;
25
+ if (!('chargeId' in value) || value['chargeId'] === undefined)
26
+ return false;
27
+ if (!('assetId' in value) || value['assetId'] === undefined)
28
+ return false;
29
+ if (!('chargeName' in value) || value['chargeName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ exports.instanceOfCreateSubscriptionPlan = instanceOfCreateSubscriptionPlan;
34
+ function CreateSubscriptionPlanFromJSON(json) {
35
+ return CreateSubscriptionPlanFromJSONTyped(json, false);
36
+ }
37
+ exports.CreateSubscriptionPlanFromJSON = CreateSubscriptionPlanFromJSON;
38
+ function CreateSubscriptionPlanFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'productId': json['productId'],
44
+ 'planId': json['planId'],
45
+ 'chargeId': json['chargeId'],
46
+ 'assetId': json['assetId'],
47
+ 'chargeName': json['chargeName'],
48
+ 'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
49
+ 'effectivePrice': json['effectivePrice'] == null ? undefined : json['effectivePrice'],
50
+ };
51
+ }
52
+ exports.CreateSubscriptionPlanFromJSONTyped = CreateSubscriptionPlanFromJSONTyped;
53
+ function CreateSubscriptionPlanToJSON(json) {
54
+ return CreateSubscriptionPlanToJSONTyped(json, false);
55
+ }
56
+ exports.CreateSubscriptionPlanToJSON = CreateSubscriptionPlanToJSON;
57
+ function CreateSubscriptionPlanToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'productId': value['productId'],
63
+ 'planId': value['planId'],
64
+ 'chargeId': value['chargeId'],
65
+ 'assetId': value['assetId'],
66
+ 'chargeName': value['chargeName'],
67
+ 'listPrice': value['listPrice'],
68
+ 'effectivePrice': value['effectivePrice'],
69
+ };
70
+ }
71
+ exports.CreateSubscriptionPlanToJSONTyped = CreateSubscriptionPlanToJSONTyped;
@@ -128,6 +128,12 @@ export interface Note {
128
128
  * @memberof Note
129
129
  */
130
130
  userId: string | null;
131
+ /**
132
+ * Metadata for the note
133
+ * @type {object}
134
+ * @memberof Note
135
+ */
136
+ metadata: object | null;
131
137
  }
132
138
  /**
133
139
  * Check if a given object implements the Note interface.
@@ -1 +1 @@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45
  return false;
46
46
  if (!('userId' in value) || value['userId'] === undefined)
47
47
  return false;
48
+ if (!('metadata' in value) || value['metadata'] === undefined)
49
+ return false;
48
50
  return true;
49
51
  }
50
52
  exports.instanceOfNote = instanceOfNote;
@@ -75,6 +77,7 @@ function NoteFromJSONTyped(json, ignoreDiscriminator) {
75
77
  'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
76
78
  'user': json['user'] == null ? undefined : (0, user_1.UserFromJSON)(json['user']),
77
79
  'userId': json['userId'],
80
+ 'metadata': json['metadata'],
78
81
  };
79
82
  }
80
83
  exports.NoteFromJSONTyped = NoteFromJSONTyped;
@@ -105,6 +108,7 @@ function NoteToJSONTyped(value, ignoreDiscriminator = false) {
105
108
  'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
106
109
  'user': (0, user_1.UserToJSON)(value['user']),
107
110
  'userId': value['userId'],
111
+ 'metadata': value['metadata'],
108
112
  };
109
113
  }
110
114
  exports.NoteToJSONTyped = NoteToJSONTyped;
@@ -0,0 +1,117 @@
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 SubscriptionInvoiceLine
16
+ */
17
+ export interface SubscriptionInvoiceLine {
18
+ /**
19
+ * Product ID
20
+ * @type {string}
21
+ * @memberof SubscriptionInvoiceLine
22
+ */
23
+ productId: string;
24
+ /**
25
+ * Product name
26
+ * @type {string}
27
+ * @memberof SubscriptionInvoiceLine
28
+ */
29
+ productName: string;
30
+ /**
31
+ * Charge ID
32
+ * @type {string}
33
+ * @memberof SubscriptionInvoiceLine
34
+ */
35
+ chargeId: string;
36
+ /**
37
+ * Charge name
38
+ * @type {string}
39
+ * @memberof SubscriptionInvoiceLine
40
+ */
41
+ chargeName: string;
42
+ /**
43
+ * Charge type
44
+ * @type {string}
45
+ * @memberof SubscriptionInvoiceLine
46
+ */
47
+ chargeType: string;
48
+ /**
49
+ * Description of the line item
50
+ * @type {string}
51
+ * @memberof SubscriptionInvoiceLine
52
+ */
53
+ description: string;
54
+ /**
55
+ * Line item start date
56
+ * @type {string}
57
+ * @memberof SubscriptionInvoiceLine
58
+ */
59
+ startDate: string;
60
+ /**
61
+ * Line item start date
62
+ * @type {string}
63
+ * @memberof SubscriptionInvoiceLine
64
+ */
65
+ endDate: string;
66
+ /**
67
+ * Unit price of the line item
68
+ * @type {string}
69
+ * @memberof SubscriptionInvoiceLine
70
+ */
71
+ unitPrice: string;
72
+ /**
73
+ * The number of the items
74
+ * @type {number}
75
+ * @memberof SubscriptionInvoiceLine
76
+ */
77
+ quantity: number;
78
+ /**
79
+ * Charge ready date
80
+ * @type {string}
81
+ * @memberof SubscriptionInvoiceLine
82
+ */
83
+ chargeReadyDate: string;
84
+ /**
85
+ * The discount applied to product
86
+ * @type {number}
87
+ * @memberof SubscriptionInvoiceLine
88
+ */
89
+ discount: number;
90
+ /**
91
+ * If line item is invoiced
92
+ * @type {boolean}
93
+ * @memberof SubscriptionInvoiceLine
94
+ */
95
+ invoiced: boolean;
96
+ /**
97
+ * Charge effective price
98
+ * @type {string}
99
+ * @memberof SubscriptionInvoiceLine
100
+ */
101
+ chgEffectivePrice: string;
102
+ /**
103
+ * MRR
104
+ * @type {string}
105
+ * @memberof SubscriptionInvoiceLine
106
+ */
107
+ mrr: string;
108
+ }
109
+ /**
110
+ * Check if a given object implements the SubscriptionInvoiceLine interface.
111
+ */
112
+ export declare function instanceOfSubscriptionInvoiceLine(value: object): value is SubscriptionInvoiceLine;
113
+ export declare function SubscriptionInvoiceLineFromJSON(json: any): SubscriptionInvoiceLine;
114
+ export declare function SubscriptionInvoiceLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionInvoiceLine;
115
+ export declare function SubscriptionInvoiceLineToJSON(json: any): SubscriptionInvoiceLine;
116
+ export declare function SubscriptionInvoiceLineToJSONTyped(value?: SubscriptionInvoiceLine | null, ignoreDiscriminator?: boolean): any;
117
+ //# sourceMappingURL=subscription-invoice-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-invoice-line.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-invoice-line.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAiBjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAsBrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAuBpI"}
@@ -0,0 +1,107 @@
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.SubscriptionInvoiceLineToJSONTyped = exports.SubscriptionInvoiceLineToJSON = exports.SubscriptionInvoiceLineFromJSONTyped = exports.SubscriptionInvoiceLineFromJSON = exports.instanceOfSubscriptionInvoiceLine = void 0;
17
+ /**
18
+ * Check if a given object implements the SubscriptionInvoiceLine interface.
19
+ */
20
+ function instanceOfSubscriptionInvoiceLine(value) {
21
+ if (!('productId' in value) || value['productId'] === undefined)
22
+ return false;
23
+ if (!('productName' in value) || value['productName'] === undefined)
24
+ return false;
25
+ if (!('chargeId' in value) || value['chargeId'] === undefined)
26
+ return false;
27
+ if (!('chargeName' in value) || value['chargeName'] === undefined)
28
+ return false;
29
+ if (!('chargeType' in value) || value['chargeType'] === undefined)
30
+ return false;
31
+ if (!('description' in value) || value['description'] === undefined)
32
+ return false;
33
+ if (!('startDate' in value) || value['startDate'] === undefined)
34
+ return false;
35
+ if (!('endDate' in value) || value['endDate'] === undefined)
36
+ return false;
37
+ if (!('unitPrice' in value) || value['unitPrice'] === undefined)
38
+ return false;
39
+ if (!('quantity' in value) || value['quantity'] === undefined)
40
+ return false;
41
+ if (!('chargeReadyDate' in value) || value['chargeReadyDate'] === undefined)
42
+ return false;
43
+ if (!('discount' in value) || value['discount'] === undefined)
44
+ return false;
45
+ if (!('invoiced' in value) || value['invoiced'] === undefined)
46
+ return false;
47
+ if (!('chgEffectivePrice' in value) || value['chgEffectivePrice'] === undefined)
48
+ return false;
49
+ if (!('mrr' in value) || value['mrr'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ exports.instanceOfSubscriptionInvoiceLine = instanceOfSubscriptionInvoiceLine;
54
+ function SubscriptionInvoiceLineFromJSON(json) {
55
+ return SubscriptionInvoiceLineFromJSONTyped(json, false);
56
+ }
57
+ exports.SubscriptionInvoiceLineFromJSON = SubscriptionInvoiceLineFromJSON;
58
+ function SubscriptionInvoiceLineFromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'productId': json['productId'],
64
+ 'productName': json['productName'],
65
+ 'chargeId': json['chargeId'],
66
+ 'chargeName': json['chargeName'],
67
+ 'chargeType': json['chargeType'],
68
+ 'description': json['description'],
69
+ 'startDate': json['startDate'],
70
+ 'endDate': json['endDate'],
71
+ 'unitPrice': json['unitPrice'],
72
+ 'quantity': json['quantity'],
73
+ 'chargeReadyDate': json['chargeReadyDate'],
74
+ 'discount': json['discount'],
75
+ 'invoiced': json['invoiced'],
76
+ 'chgEffectivePrice': json['chgEffectivePrice'],
77
+ 'mrr': json['mrr'],
78
+ };
79
+ }
80
+ exports.SubscriptionInvoiceLineFromJSONTyped = SubscriptionInvoiceLineFromJSONTyped;
81
+ function SubscriptionInvoiceLineToJSON(json) {
82
+ return SubscriptionInvoiceLineToJSONTyped(json, false);
83
+ }
84
+ exports.SubscriptionInvoiceLineToJSON = SubscriptionInvoiceLineToJSON;
85
+ function SubscriptionInvoiceLineToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'productId': value['productId'],
91
+ 'productName': value['productName'],
92
+ 'chargeId': value['chargeId'],
93
+ 'chargeName': value['chargeName'],
94
+ 'chargeType': value['chargeType'],
95
+ 'description': value['description'],
96
+ 'startDate': value['startDate'],
97
+ 'endDate': value['endDate'],
98
+ 'unitPrice': value['unitPrice'],
99
+ 'quantity': value['quantity'],
100
+ 'chargeReadyDate': value['chargeReadyDate'],
101
+ 'discount': value['discount'],
102
+ 'invoiced': value['invoiced'],
103
+ 'chgEffectivePrice': value['chgEffectivePrice'],
104
+ 'mrr': value['mrr'],
105
+ };
106
+ }
107
+ exports.SubscriptionInvoiceLineToJSONTyped = SubscriptionInvoiceLineToJSONTyped;
@@ -0,0 +1,58 @@
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 { SubscriptionInvoiceLine } from './subscription-invoice-line';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SubscriptionInvoice
17
+ */
18
+ export interface SubscriptionInvoice {
19
+ /**
20
+ * Subtotal of invoice
21
+ * @type {number}
22
+ * @memberof SubscriptionInvoice
23
+ */
24
+ substoal: number;
25
+ /**
26
+ * Invoice amount
27
+ * @type {number}
28
+ * @memberof SubscriptionInvoice
29
+ */
30
+ invoiceAmount: number;
31
+ /**
32
+ * Invioice date
33
+ * @type {string}
34
+ * @memberof SubscriptionInvoice
35
+ */
36
+ period: string;
37
+ /**
38
+ * Invoice line items
39
+ * @type {Array<SubscriptionInvoiceLine>}
40
+ * @memberof SubscriptionInvoice
41
+ */
42
+ invoiceLines: Array<SubscriptionInvoiceLine>;
43
+ /**
44
+ * Ready date of invoice
45
+ * @type {string}
46
+ * @memberof SubscriptionInvoice
47
+ */
48
+ readyDate: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the SubscriptionInvoice interface.
52
+ */
53
+ export declare function instanceOfSubscriptionInvoice(value: object): value is SubscriptionInvoice;
54
+ export declare function SubscriptionInvoiceFromJSON(json: any): SubscriptionInvoice;
55
+ export declare function SubscriptionInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionInvoice;
56
+ export declare function SubscriptionInvoiceToJSON(json: any): SubscriptionInvoice;
57
+ export declare function SubscriptionInvoiceToJSONTyped(value?: SubscriptionInvoice | null, ignoreDiscriminator?: boolean): any;
58
+ //# sourceMappingURL=subscription-invoice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-invoice.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-invoice.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC7C;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAOzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAY7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa5H"}
@@ -0,0 +1,68 @@
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.SubscriptionInvoiceToJSONTyped = exports.SubscriptionInvoiceToJSON = exports.SubscriptionInvoiceFromJSONTyped = exports.SubscriptionInvoiceFromJSON = exports.instanceOfSubscriptionInvoice = void 0;
17
+ const subscription_invoice_line_1 = require("./subscription-invoice-line");
18
+ /**
19
+ * Check if a given object implements the SubscriptionInvoice interface.
20
+ */
21
+ function instanceOfSubscriptionInvoice(value) {
22
+ if (!('substoal' in value) || value['substoal'] === undefined)
23
+ return false;
24
+ if (!('invoiceAmount' in value) || value['invoiceAmount'] === undefined)
25
+ return false;
26
+ if (!('period' in value) || value['period'] === undefined)
27
+ return false;
28
+ if (!('invoiceLines' in value) || value['invoiceLines'] === undefined)
29
+ return false;
30
+ if (!('readyDate' in value) || value['readyDate'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ exports.instanceOfSubscriptionInvoice = instanceOfSubscriptionInvoice;
35
+ function SubscriptionInvoiceFromJSON(json) {
36
+ return SubscriptionInvoiceFromJSONTyped(json, false);
37
+ }
38
+ exports.SubscriptionInvoiceFromJSON = SubscriptionInvoiceFromJSON;
39
+ function SubscriptionInvoiceFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'substoal': json['substoal'],
45
+ 'invoiceAmount': json['invoiceAmount'],
46
+ 'period': json['period'],
47
+ 'invoiceLines': (json['invoiceLines'].map(subscription_invoice_line_1.SubscriptionInvoiceLineFromJSON)),
48
+ 'readyDate': json['readyDate'],
49
+ };
50
+ }
51
+ exports.SubscriptionInvoiceFromJSONTyped = SubscriptionInvoiceFromJSONTyped;
52
+ function SubscriptionInvoiceToJSON(json) {
53
+ return SubscriptionInvoiceToJSONTyped(json, false);
54
+ }
55
+ exports.SubscriptionInvoiceToJSON = SubscriptionInvoiceToJSON;
56
+ function SubscriptionInvoiceToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'substoal': value['substoal'],
62
+ 'invoiceAmount': value['invoiceAmount'],
63
+ 'period': value['period'],
64
+ 'invoiceLines': (value['invoiceLines'].map(subscription_invoice_line_1.SubscriptionInvoiceLineToJSON)),
65
+ 'readyDate': value['readyDate'],
66
+ };
67
+ }
68
+ exports.SubscriptionInvoiceToJSONTyped = SubscriptionInvoiceToJSONTyped;