@managespace/sdk 0.0.96 → 0.0.97

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 (78) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +10 -5
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/generated/apis/default-api.d.ts +0 -2
  4. package/dist/generated/apis/default-api.d.ts.map +1 -1
  5. package/dist/generated/apis/default-api.js +1 -7
  6. package/dist/generated/models/create-order.d.ts +6 -6
  7. package/dist/generated/models/create-order.d.ts.map +1 -1
  8. package/dist/generated/models/create-order.js +4 -2
  9. package/dist/generated/models/order-response.d.ts +6 -12
  10. package/dist/generated/models/order-response.d.ts.map +1 -1
  11. package/dist/generated/models/order-response.js +4 -6
  12. package/dist/generated/models/subscription-response.d.ts +6 -0
  13. package/dist/generated/models/subscription-response.d.ts.map +1 -1
  14. package/dist/generated/models/subscription-response.js +4 -0
  15. package/package.json +2 -2
  16. package/src/extensibility/functions/project/billing.ts +8 -7
  17. package/src/generated/apis/default-api.ts +1 -14
  18. package/src/generated/models/create-order.ts +9 -8
  19. package/src/generated/models/order-response.ts +9 -17
  20. package/src/generated/models/subscription-response.ts +9 -0
  21. package/.turbo/turbo-build.log +0 -2
  22. package/dist/generated/models/cancel-subscription-billing.d.ts +0 -39
  23. package/dist/generated/models/cancel-subscription-billing.d.ts.map +0 -1
  24. package/dist/generated/models/cancel-subscription-billing.js +0 -55
  25. package/dist/generated/models/chart-of-account-response.d.ts +0 -99
  26. package/dist/generated/models/chart-of-account-response.d.ts.map +0 -1
  27. package/dist/generated/models/chart-of-account-response.js +0 -95
  28. package/dist/generated/models/configuration-response.d.ts +0 -77
  29. package/dist/generated/models/configuration-response.d.ts.map +0 -1
  30. package/dist/generated/models/configuration-response.js +0 -77
  31. package/dist/generated/models/contact-id.d.ts +0 -33
  32. package/dist/generated/models/contact-id.d.ts.map +0 -1
  33. package/dist/generated/models/contact-id.js +0 -51
  34. package/dist/generated/models/create-payment-billing.d.ts +0 -155
  35. package/dist/generated/models/create-payment-billing.d.ts.map +0 -1
  36. package/dist/generated/models/create-payment-billing.js +0 -133
  37. package/dist/generated/models/create-plan.d.ts +0 -52
  38. package/dist/generated/models/create-plan.d.ts.map +0 -1
  39. package/dist/generated/models/create-plan.js +0 -64
  40. package/dist/generated/models/create-product.d.ts +0 -45
  41. package/dist/generated/models/create-product.d.ts.map +0 -1
  42. package/dist/generated/models/create-product.js +0 -57
  43. package/dist/generated/models/create-stock-status.d.ts +0 -39
  44. package/dist/generated/models/create-stock-status.d.ts.map +0 -1
  45. package/dist/generated/models/create-stock-status.js +0 -55
  46. package/dist/generated/models/create-subscription-billing.d.ts +0 -166
  47. package/dist/generated/models/create-subscription-billing.d.ts.map +0 -1
  48. package/dist/generated/models/create-subscription-billing.js +0 -140
  49. package/dist/generated/models/custom-chart-of-account.d.ts +0 -57
  50. package/dist/generated/models/custom-chart-of-account.d.ts.map +0 -1
  51. package/dist/generated/models/custom-chart-of-account.js +0 -67
  52. package/dist/generated/models/custom-chart-of-accounts.d.ts +0 -34
  53. package/dist/generated/models/custom-chart-of-accounts.d.ts.map +0 -1
  54. package/dist/generated/models/custom-chart-of-accounts.js +0 -52
  55. package/dist/generated/models/document-urls-response.d.ts +0 -33
  56. package/dist/generated/models/document-urls-response.d.ts.map +0 -1
  57. package/dist/generated/models/document-urls-response.js +0 -51
  58. package/dist/generated/models/get-contact-response.d.ts +0 -159
  59. package/dist/generated/models/get-contact-response.d.ts.map +0 -1
  60. package/dist/generated/models/get-contact-response.js +0 -135
  61. package/dist/generated/models/get-invoice-billing200-response.d.ts +0 -41
  62. package/dist/generated/models/get-invoice-billing200-response.d.ts.map +0 -1
  63. package/dist/generated/models/get-invoice-billing200-response.js +0 -55
  64. package/dist/generated/models/plan-charge-response.d.ts +0 -166
  65. package/dist/generated/models/plan-charge-response.d.ts.map +0 -1
  66. package/dist/generated/models/plan-charge-response.js +0 -140
  67. package/dist/generated/models/plan-response.d.ts +0 -128
  68. package/dist/generated/models/plan-response.d.ts.map +0 -1
  69. package/dist/generated/models/plan-response.js +0 -106
  70. package/dist/generated/models/product-response.d.ts +0 -97
  71. package/dist/generated/models/product-response.d.ts.map +0 -1
  72. package/dist/generated/models/product-response.js +0 -87
  73. package/dist/generated/models/stock-status-response.d.ts +0 -59
  74. package/dist/generated/models/stock-status-response.d.ts.map +0 -1
  75. package/dist/generated/models/stock-status-response.js +0 -65
  76. package/dist/generated/models/update-extensibility-repo.d.ts +0 -57
  77. package/dist/generated/models/update-extensibility-repo.d.ts.map +0 -1
  78. package/dist/generated/models/update-extensibility-repo.js +0 -67
@@ -1,57 +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.CreateProductToJSONTyped = exports.CreateProductToJSON = exports.CreateProductFromJSONTyped = exports.CreateProductFromJSON = exports.instanceOfCreateProduct = void 0;
17
- /**
18
- * Check if a given object implements the CreateProduct interface.
19
- */
20
- function instanceOfCreateProduct(value) {
21
- if (!('name' in value) || value['name'] === undefined)
22
- return false;
23
- if (!('price' in value) || value['price'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfCreateProduct = instanceOfCreateProduct;
28
- function CreateProductFromJSON(json) {
29
- return CreateProductFromJSONTyped(json, false);
30
- }
31
- exports.CreateProductFromJSON = CreateProductFromJSON;
32
- function CreateProductFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'name': json['name'],
38
- 'price': json['price'],
39
- 'taxable': json['taxable'] == null ? undefined : json['taxable'],
40
- };
41
- }
42
- exports.CreateProductFromJSONTyped = CreateProductFromJSONTyped;
43
- function CreateProductToJSON(json) {
44
- return CreateProductToJSONTyped(json, false);
45
- }
46
- exports.CreateProductToJSON = CreateProductToJSON;
47
- function CreateProductToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'name': value['name'],
53
- 'price': value['price'],
54
- 'taxable': value['taxable'],
55
- };
56
- }
57
- exports.CreateProductToJSONTyped = CreateProductToJSONTyped;
@@ -1,39 +0,0 @@
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
- /**
13
- *
14
- * @export
15
- * @interface CreateStockStatus
16
- */
17
- export interface CreateStockStatus {
18
- /**
19
- * The stock count of the asset
20
- * @type {number}
21
- * @memberof CreateStockStatus
22
- */
23
- count: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateStockStatus
28
- */
29
- productId: string;
30
- }
31
- /**
32
- * Check if a given object implements the CreateStockStatus interface.
33
- */
34
- export declare function instanceOfCreateStockStatus(value: object): value is CreateStockStatus;
35
- export declare function CreateStockStatusFromJSON(json: any): CreateStockStatus;
36
- export declare function CreateStockStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStockStatus;
37
- export declare function CreateStockStatusToJSON(json: any): CreateStockStatus;
38
- export declare function CreateStockStatusToJSONTyped(value?: CreateStockStatus | null, ignoreDiscriminator?: boolean): any;
39
- //# sourceMappingURL=create-stock-status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-stock-status.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-stock-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CASzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxH"}
@@ -1,55 +0,0 @@
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.CreateStockStatusToJSONTyped = exports.CreateStockStatusToJSON = exports.CreateStockStatusFromJSONTyped = exports.CreateStockStatusFromJSON = exports.instanceOfCreateStockStatus = void 0;
17
- /**
18
- * Check if a given object implements the CreateStockStatus interface.
19
- */
20
- function instanceOfCreateStockStatus(value) {
21
- if (!('count' in value) || value['count'] === undefined)
22
- return false;
23
- if (!('productId' in value) || value['productId'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfCreateStockStatus = instanceOfCreateStockStatus;
28
- function CreateStockStatusFromJSON(json) {
29
- return CreateStockStatusFromJSONTyped(json, false);
30
- }
31
- exports.CreateStockStatusFromJSON = CreateStockStatusFromJSON;
32
- function CreateStockStatusFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'count': json['count'],
38
- 'productId': json['productId'],
39
- };
40
- }
41
- exports.CreateStockStatusFromJSONTyped = CreateStockStatusFromJSONTyped;
42
- function CreateStockStatusToJSON(json) {
43
- return CreateStockStatusToJSONTyped(json, false);
44
- }
45
- exports.CreateStockStatusToJSON = CreateStockStatusToJSON;
46
- function CreateStockStatusToJSONTyped(value, ignoreDiscriminator = false) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- 'count': value['count'],
52
- 'productId': value['productId'],
53
- };
54
- }
55
- exports.CreateStockStatusToJSONTyped = CreateStockStatusToJSONTyped;
@@ -1,166 +0,0 @@
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 { CreateSubscriptionPlan } from './create-subscription-plan';
13
- /**
14
- *
15
- * @export
16
- * @interface CreateSubscriptionBilling
17
- */
18
- export interface CreateSubscriptionBilling {
19
- /**
20
- * Customer ID
21
- * @type {string}
22
- * @memberof CreateSubscriptionBilling
23
- */
24
- customerId: string;
25
- /**
26
- * Status of subscription contract
27
- * @type {string}
28
- * @memberof CreateSubscriptionBilling
29
- */
30
- status: string;
31
- /**
32
- * Set to defer start date
33
- * @type {boolean}
34
- * @memberof CreateSubscriptionBilling
35
- */
36
- deferStartDate: boolean;
37
- /**
38
- * Billing start date for subscription contract
39
- * @type {string}
40
- * @memberof CreateSubscriptionBilling
41
- */
42
- billingStartDate: string;
43
- /**
44
- * Service start date for subscription contract
45
- * @type {string}
46
- * @memberof CreateSubscriptionBilling
47
- */
48
- serviceStartDate: string;
49
- /**
50
- * Date order was placed
51
- * @type {string}
52
- * @memberof CreateSubscriptionBilling
53
- */
54
- orderPlacedAt: string;
55
- /**
56
- * Date subscription contract was signed and activated
57
- * @type {string}
58
- * @memberof CreateSubscriptionBilling
59
- */
60
- contractEffectiveDate: string;
61
- /**
62
- * Date subscription contract was terminated
63
- * @type {string}
64
- * @memberof CreateSubscriptionBilling
65
- */
66
- cancellationDate: string;
67
- /**
68
- * auto-renew subscription contract
69
- * @type {boolean}
70
- * @memberof CreateSubscriptionBilling
71
- */
72
- autoRenew: boolean;
73
- /**
74
- * currency
75
- * @type {string}
76
- * @memberof CreateSubscriptionBilling
77
- */
78
- currency: string;
79
- /**
80
- * separate invoice generated
81
- * @type {boolean}
82
- * @memberof CreateSubscriptionBilling
83
- */
84
- separateInvoice: boolean;
85
- /**
86
- * Miscellaneous notes
87
- * @type {string}
88
- * @memberof CreateSubscriptionBilling
89
- */
90
- notes: string;
91
- /**
92
- * Version of subscription contract
93
- * @type {number}
94
- * @memberof CreateSubscriptionBilling
95
- */
96
- version: number;
97
- /**
98
- * Term of contract in months
99
- * @type {string}
100
- * @memberof CreateSubscriptionBilling
101
- */
102
- contractTerm: string;
103
- /**
104
- * Date subscription contract will start
105
- * @type {number}
106
- * @memberof CreateSubscriptionBilling
107
- */
108
- renewalIncrementPercent: number;
109
- /**
110
- * Unit id associated with subscription
111
- * @type {string}
112
- * @memberof CreateSubscriptionBilling
113
- */
114
- unitId: string;
115
- /**
116
- * External id associated with subscription
117
- * @type {string}
118
- * @memberof CreateSubscriptionBilling
119
- */
120
- externalId: string;
121
- /**
122
- * option for cancellation
123
- * @type {string}
124
- * @memberof CreateSubscriptionBilling
125
- */
126
- cancellationType: string;
127
- /**
128
- * Coupon code for subscription contract
129
- * @type {string}
130
- * @memberof CreateSubscriptionBilling
131
- */
132
- couponCode: string;
133
- /**
134
- * length of subscroption contract to be renewed for
135
- * @type {string}
136
- * @memberof CreateSubscriptionBilling
137
- */
138
- renewalTerm: string;
139
- /**
140
- * Date subscription contract will start if contractTerm is custom
141
- * @type {string}
142
- * @memberof CreateSubscriptionBilling
143
- */
144
- currentTermStartDate: string;
145
- /**
146
- * Date subscription contract will end if contractTerm is custom
147
- * @type {string}
148
- * @memberof CreateSubscriptionBilling
149
- */
150
- currentTermEndDate: string;
151
- /**
152
- * Subscription plan details
153
- * @type {Array<CreateSubscriptionPlan>}
154
- * @memberof CreateSubscriptionBilling
155
- */
156
- plans: Array<CreateSubscriptionPlan>;
157
- }
158
- /**
159
- * Check if a given object implements the CreateSubscriptionBilling interface.
160
- */
161
- export declare function instanceOfCreateSubscriptionBilling(value: object): value is CreateSubscriptionBilling;
162
- export declare function CreateSubscriptionBillingFromJSON(json: any): CreateSubscriptionBilling;
163
- export declare function CreateSubscriptionBillingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionBilling;
164
- export declare function CreateSubscriptionBillingToJSON(json: any): CreateSubscriptionBilling;
165
- export declare function CreateSubscriptionBillingToJSONTyped(value?: CreateSubscriptionBilling | null, ignoreDiscriminator?: boolean): any;
166
- //# sourceMappingURL=create-subscription-billing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-subscription-billing.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-subscription-billing.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAQzE;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAyBrG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CA8BzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA+BxI"}
@@ -1,140 +0,0 @@
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.CreateSubscriptionBillingToJSONTyped = exports.CreateSubscriptionBillingToJSON = exports.CreateSubscriptionBillingFromJSONTyped = exports.CreateSubscriptionBillingFromJSON = exports.instanceOfCreateSubscriptionBilling = void 0;
17
- const create_subscription_plan_1 = require("./create-subscription-plan");
18
- /**
19
- * Check if a given object implements the CreateSubscriptionBilling interface.
20
- */
21
- function instanceOfCreateSubscriptionBilling(value) {
22
- if (!('customerId' in value) || value['customerId'] === undefined)
23
- return false;
24
- if (!('status' in value) || value['status'] === undefined)
25
- return false;
26
- if (!('deferStartDate' in value) || value['deferStartDate'] === undefined)
27
- return false;
28
- if (!('billingStartDate' in value) || value['billingStartDate'] === undefined)
29
- return false;
30
- if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined)
31
- return false;
32
- if (!('orderPlacedAt' in value) || value['orderPlacedAt'] === undefined)
33
- return false;
34
- if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined)
35
- return false;
36
- if (!('cancellationDate' in value) || value['cancellationDate'] === undefined)
37
- return false;
38
- if (!('autoRenew' in value) || value['autoRenew'] === undefined)
39
- return false;
40
- if (!('currency' in value) || value['currency'] === undefined)
41
- return false;
42
- if (!('separateInvoice' in value) || value['separateInvoice'] === undefined)
43
- return false;
44
- if (!('notes' in value) || value['notes'] === undefined)
45
- return false;
46
- if (!('version' in value) || value['version'] === undefined)
47
- return false;
48
- if (!('contractTerm' in value) || value['contractTerm'] === undefined)
49
- return false;
50
- if (!('renewalIncrementPercent' in value) || value['renewalIncrementPercent'] === undefined)
51
- return false;
52
- if (!('unitId' in value) || value['unitId'] === undefined)
53
- return false;
54
- if (!('externalId' in value) || value['externalId'] === undefined)
55
- return false;
56
- if (!('cancellationType' in value) || value['cancellationType'] === undefined)
57
- return false;
58
- if (!('couponCode' in value) || value['couponCode'] === undefined)
59
- return false;
60
- if (!('renewalTerm' in value) || value['renewalTerm'] === undefined)
61
- return false;
62
- if (!('currentTermStartDate' in value) || value['currentTermStartDate'] === undefined)
63
- return false;
64
- if (!('currentTermEndDate' in value) || value['currentTermEndDate'] === undefined)
65
- return false;
66
- if (!('plans' in value) || value['plans'] === undefined)
67
- return false;
68
- return true;
69
- }
70
- exports.instanceOfCreateSubscriptionBilling = instanceOfCreateSubscriptionBilling;
71
- function CreateSubscriptionBillingFromJSON(json) {
72
- return CreateSubscriptionBillingFromJSONTyped(json, false);
73
- }
74
- exports.CreateSubscriptionBillingFromJSON = CreateSubscriptionBillingFromJSON;
75
- function CreateSubscriptionBillingFromJSONTyped(json, ignoreDiscriminator) {
76
- if (json == null) {
77
- return json;
78
- }
79
- return {
80
- 'customerId': json['customerId'],
81
- 'status': json['status'],
82
- 'deferStartDate': json['deferStartDate'],
83
- 'billingStartDate': json['billingStartDate'],
84
- 'serviceStartDate': json['serviceStartDate'],
85
- 'orderPlacedAt': json['orderPlacedAt'],
86
- 'contractEffectiveDate': json['contractEffectiveDate'],
87
- 'cancellationDate': json['cancellationDate'],
88
- 'autoRenew': json['autoRenew'],
89
- 'currency': json['currency'],
90
- 'separateInvoice': json['separateInvoice'],
91
- 'notes': json['notes'],
92
- 'version': json['version'],
93
- 'contractTerm': json['contractTerm'],
94
- 'renewalIncrementPercent': json['renewalIncrementPercent'],
95
- 'unitId': json['unitId'],
96
- 'externalId': json['externalId'],
97
- 'cancellationType': json['cancellationType'],
98
- 'couponCode': json['couponCode'],
99
- 'renewalTerm': json['renewalTerm'],
100
- 'currentTermStartDate': json['currentTermStartDate'],
101
- 'currentTermEndDate': json['currentTermEndDate'],
102
- 'plans': (json['plans'].map(create_subscription_plan_1.CreateSubscriptionPlanFromJSON)),
103
- };
104
- }
105
- exports.CreateSubscriptionBillingFromJSONTyped = CreateSubscriptionBillingFromJSONTyped;
106
- function CreateSubscriptionBillingToJSON(json) {
107
- return CreateSubscriptionBillingToJSONTyped(json, false);
108
- }
109
- exports.CreateSubscriptionBillingToJSON = CreateSubscriptionBillingToJSON;
110
- function CreateSubscriptionBillingToJSONTyped(value, ignoreDiscriminator = false) {
111
- if (value == null) {
112
- return value;
113
- }
114
- return {
115
- 'customerId': value['customerId'],
116
- 'status': value['status'],
117
- 'deferStartDate': value['deferStartDate'],
118
- 'billingStartDate': value['billingStartDate'],
119
- 'serviceStartDate': value['serviceStartDate'],
120
- 'orderPlacedAt': value['orderPlacedAt'],
121
- 'contractEffectiveDate': value['contractEffectiveDate'],
122
- 'cancellationDate': value['cancellationDate'],
123
- 'autoRenew': value['autoRenew'],
124
- 'currency': value['currency'],
125
- 'separateInvoice': value['separateInvoice'],
126
- 'notes': value['notes'],
127
- 'version': value['version'],
128
- 'contractTerm': value['contractTerm'],
129
- 'renewalIncrementPercent': value['renewalIncrementPercent'],
130
- 'unitId': value['unitId'],
131
- 'externalId': value['externalId'],
132
- 'cancellationType': value['cancellationType'],
133
- 'couponCode': value['couponCode'],
134
- 'renewalTerm': value['renewalTerm'],
135
- 'currentTermStartDate': value['currentTermStartDate'],
136
- 'currentTermEndDate': value['currentTermEndDate'],
137
- 'plans': (value['plans'].map(create_subscription_plan_1.CreateSubscriptionPlanToJSON)),
138
- };
139
- }
140
- exports.CreateSubscriptionBillingToJSONTyped = CreateSubscriptionBillingToJSONTyped;
@@ -1,57 +0,0 @@
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
- /**
13
- *
14
- * @export
15
- * @interface CustomChartOfAccount
16
- */
17
- export interface CustomChartOfAccount {
18
- /**
19
- * Default value
20
- * @type {string}
21
- * @memberof CustomChartOfAccount
22
- */
23
- defaultValue: string;
24
- /**
25
- * Main Account type
26
- * @type {string}
27
- * @memberof CustomChartOfAccount
28
- */
29
- category: string;
30
- /**
31
- * Name of Account
32
- * @type {string}
33
- * @memberof CustomChartOfAccount
34
- */
35
- accountName: string;
36
- /**
37
- * Code identifying the Account
38
- * @type {string}
39
- * @memberof CustomChartOfAccount
40
- */
41
- accountNumber: string;
42
- /**
43
- * Sub-Account type
44
- * @type {string}
45
- * @memberof CustomChartOfAccount
46
- */
47
- subAccount: string;
48
- }
49
- /**
50
- * Check if a given object implements the CustomChartOfAccount interface.
51
- */
52
- export declare function instanceOfCustomChartOfAccount(value: object): value is CustomChartOfAccount;
53
- export declare function CustomChartOfAccountFromJSON(json: any): CustomChartOfAccount;
54
- export declare function CustomChartOfAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomChartOfAccount;
55
- export declare function CustomChartOfAccountToJSON(json: any): CustomChartOfAccount;
56
- export declare function CustomChartOfAccountToJSONTyped(value?: CustomChartOfAccount | null, ignoreDiscriminator?: boolean): any;
57
- //# sourceMappingURL=custom-chart-of-account.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-chart-of-account.d.ts","sourceRoot":"","sources":["../../../src/generated/models/custom-chart-of-account.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;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"}
@@ -1,67 +0,0 @@
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.CustomChartOfAccountToJSONTyped = exports.CustomChartOfAccountToJSON = exports.CustomChartOfAccountFromJSONTyped = exports.CustomChartOfAccountFromJSON = exports.instanceOfCustomChartOfAccount = void 0;
17
- /**
18
- * Check if a given object implements the CustomChartOfAccount interface.
19
- */
20
- function instanceOfCustomChartOfAccount(value) {
21
- if (!('defaultValue' in value) || value['defaultValue'] === undefined)
22
- return false;
23
- if (!('category' in value) || value['category'] === undefined)
24
- return false;
25
- if (!('accountName' in value) || value['accountName'] === undefined)
26
- return false;
27
- if (!('accountNumber' in value) || value['accountNumber'] === undefined)
28
- return false;
29
- if (!('subAccount' in value) || value['subAccount'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- exports.instanceOfCustomChartOfAccount = instanceOfCustomChartOfAccount;
34
- function CustomChartOfAccountFromJSON(json) {
35
- return CustomChartOfAccountFromJSONTyped(json, false);
36
- }
37
- exports.CustomChartOfAccountFromJSON = CustomChartOfAccountFromJSON;
38
- function CustomChartOfAccountFromJSONTyped(json, ignoreDiscriminator) {
39
- if (json == null) {
40
- return json;
41
- }
42
- return {
43
- 'defaultValue': json['defaultValue'],
44
- 'category': json['category'],
45
- 'accountName': json['accountName'],
46
- 'accountNumber': json['accountNumber'],
47
- 'subAccount': json['subAccount'],
48
- };
49
- }
50
- exports.CustomChartOfAccountFromJSONTyped = CustomChartOfAccountFromJSONTyped;
51
- function CustomChartOfAccountToJSON(json) {
52
- return CustomChartOfAccountToJSONTyped(json, false);
53
- }
54
- exports.CustomChartOfAccountToJSON = CustomChartOfAccountToJSON;
55
- function CustomChartOfAccountToJSONTyped(value, ignoreDiscriminator = false) {
56
- if (value == null) {
57
- return value;
58
- }
59
- return {
60
- 'defaultValue': value['defaultValue'],
61
- 'category': value['category'],
62
- 'accountName': value['accountName'],
63
- 'accountNumber': value['accountNumber'],
64
- 'subAccount': value['subAccount'],
65
- };
66
- }
67
- exports.CustomChartOfAccountToJSONTyped = CustomChartOfAccountToJSONTyped;
@@ -1,34 +0,0 @@
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 { CustomChartOfAccount } from './custom-chart-of-account';
13
- /**
14
- *
15
- * @export
16
- * @interface CustomChartOfAccounts
17
- */
18
- export interface CustomChartOfAccounts {
19
- /**
20
- * Accounts to be inputted to chart of accounts.
21
- * @type {Array<CustomChartOfAccount>}
22
- * @memberof CustomChartOfAccounts
23
- */
24
- chartOfAccounts: Array<CustomChartOfAccount>;
25
- }
26
- /**
27
- * Check if a given object implements the CustomChartOfAccounts interface.
28
- */
29
- export declare function instanceOfCustomChartOfAccounts(value: object): value is CustomChartOfAccounts;
30
- export declare function CustomChartOfAccountsFromJSON(json: any): CustomChartOfAccounts;
31
- export declare function CustomChartOfAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomChartOfAccounts;
32
- export declare function CustomChartOfAccountsToJSON(json: any): CustomChartOfAccounts;
33
- export declare function CustomChartOfAccountsToJSONTyped(value?: CustomChartOfAccounts | null, ignoreDiscriminator?: boolean): any;
34
- //# sourceMappingURL=custom-chart-of-accounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-chart-of-accounts.d.ts","sourceRoot":"","sources":["../../../src/generated/models/custom-chart-of-accounts.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAQtE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"}