@managespace/sdk 0.0.32 → 0.0.34

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 (108) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +31 -29
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +8 -11
  4. package/dist/extensibility/functions/project/communication.d.ts +12 -0
  5. package/dist/extensibility/functions/project/communication.d.ts.map +1 -0
  6. package/dist/extensibility/functions/project/communication.js +18 -0
  7. package/dist/extensibility/functions/project/index.d.ts +2 -1
  8. package/dist/extensibility/functions/project/index.d.ts.map +1 -1
  9. package/dist/extensibility/functions/project/index.js +2 -1
  10. package/dist/extensibility/functions/project/managespace.d.ts +1 -15
  11. package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
  12. package/dist/extensibility/functions/project/managespace.js +0 -15
  13. package/dist/generated/apis/default-api.d.ts +17 -58
  14. package/dist/generated/apis/default-api.d.ts.map +1 -1
  15. package/dist/generated/apis/default-api.js +48 -185
  16. package/dist/generated/models/custom-create-contact.d.ts +0 -12
  17. package/dist/generated/models/custom-create-contact.d.ts.map +1 -1
  18. package/dist/generated/models/custom-create-contact.js +0 -6
  19. package/dist/generated/models/custom-create-customer.d.ts +12 -18
  20. package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
  21. package/dist/generated/models/custom-create-customer.js +5 -7
  22. package/dist/generated/models/custom-update-customer.d.ts +75 -10
  23. package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
  24. package/dist/generated/models/custom-update-customer.js +26 -5
  25. package/dist/generated/models/customer-response.d.ts +0 -84
  26. package/dist/generated/models/customer-response.d.ts.map +1 -1
  27. package/dist/generated/models/customer-response.js +0 -56
  28. package/dist/generated/models/get-invoice-billing200-response.d.ts +41 -0
  29. package/dist/generated/models/get-invoice-billing200-response.d.ts.map +1 -0
  30. package/dist/generated/models/get-invoice-billing200-response.js +55 -0
  31. package/dist/generated/models/index.d.ts +2 -11
  32. package/dist/generated/models/index.d.ts.map +1 -1
  33. package/dist/generated/models/index.js +2 -11
  34. package/dist/generated/models/payment-response.d.ts +2 -2
  35. package/package.json +1 -1
  36. package/src/extensibility/functions/project/billing.ts +34 -35
  37. package/src/extensibility/functions/project/communication.ts +16 -0
  38. package/src/extensibility/functions/project/index.ts +2 -1
  39. package/src/extensibility/functions/project/managespace.ts +0 -16
  40. package/src/generated/.openapi-generator/FILES +2 -11
  41. package/src/generated/apis/default-api.ts +83 -313
  42. package/src/generated/models/custom-create-contact.ts +0 -17
  43. package/src/generated/models/custom-create-customer.ts +21 -29
  44. package/src/generated/models/custom-update-customer.ts +101 -21
  45. package/src/generated/models/customer-response.ts +0 -126
  46. package/src/generated/models/get-invoice-billing200-response.ts +89 -0
  47. package/src/generated/models/index.ts +2 -11
  48. package/src/generated/models/payment-response.ts +2 -2
  49. package/dist/generated/models/create-contact.d.ts +0 -87
  50. package/dist/generated/models/create-contact.d.ts.map +0 -1
  51. package/dist/generated/models/create-contact.js +0 -81
  52. package/dist/generated/models/create-payment.d.ts +0 -155
  53. package/dist/generated/models/create-payment.d.ts.map +0 -1
  54. package/dist/generated/models/create-payment.js +0 -123
  55. package/dist/generated/models/create-plan-billing.d.ts +0 -58
  56. package/dist/generated/models/create-plan-billing.d.ts.map +0 -1
  57. package/dist/generated/models/create-plan-billing.js +0 -68
  58. package/dist/generated/models/create-product-billing.d.ts +0 -82
  59. package/dist/generated/models/create-product-billing.d.ts.map +0 -1
  60. package/dist/generated/models/create-product-billing.js +0 -84
  61. package/dist/generated/models/custom-add-customer-contact.d.ts +0 -34
  62. package/dist/generated/models/custom-add-customer-contact.d.ts.map +0 -1
  63. package/dist/generated/models/custom-add-customer-contact.js +0 -52
  64. package/dist/generated/models/custom-create-contact-with-customer.d.ts +0 -82
  65. package/dist/generated/models/custom-create-contact-with-customer.d.ts.map +0 -1
  66. package/dist/generated/models/custom-create-contact-with-customer.js +0 -78
  67. package/dist/generated/models/customer-delivery-preferences.d.ts +0 -39
  68. package/dist/generated/models/customer-delivery-preferences.d.ts.map +0 -1
  69. package/dist/generated/models/customer-delivery-preferences.js +0 -55
  70. package/dist/generated/models/customer-id.d.ts +0 -33
  71. package/dist/generated/models/customer-id.d.ts.map +0 -1
  72. package/dist/generated/models/customer-id.js +0 -51
  73. package/dist/generated/models/customer-payment-options.d.ts +0 -39
  74. package/dist/generated/models/customer-payment-options.d.ts.map +0 -1
  75. package/dist/generated/models/customer-payment-options.js +0 -55
  76. package/dist/generated/models/get-customer-response.d.ts +0 -276
  77. package/dist/generated/models/get-customer-response.d.ts.map +0 -1
  78. package/dist/generated/models/get-customer-response.js +0 -214
  79. package/dist/generated/models/get-customers-billing200-response.d.ts +0 -41
  80. package/dist/generated/models/get-customers-billing200-response.d.ts.map +0 -1
  81. package/dist/generated/models/get-customers-billing200-response.js +0 -55
  82. package/dist/generated/models/product-billing-response.d.ts +0 -142
  83. package/dist/generated/models/product-billing-response.d.ts.map +0 -1
  84. package/dist/generated/models/product-billing-response.js +0 -124
  85. package/dist/generated/models/product-transaction-posting-entries.d.ts +0 -45
  86. package/dist/generated/models/product-transaction-posting-entries.d.ts.map +0 -1
  87. package/dist/generated/models/product-transaction-posting-entries.js +0 -59
  88. package/dist/generated/models/update-customer.d.ts +0 -57
  89. package/dist/generated/models/update-customer.d.ts.map +0 -1
  90. package/dist/generated/models/update-customer.js +0 -57
  91. package/dist/generated/models/update-product.d.ts +0 -52
  92. package/dist/generated/models/update-product.d.ts.map +0 -1
  93. package/dist/generated/models/update-product.js +0 -60
  94. package/src/generated/models/create-contact.ts +0 -144
  95. package/src/generated/models/create-payment.ts +0 -256
  96. package/src/generated/models/create-plan-billing.ts +0 -110
  97. package/src/generated/models/create-product-billing.ts +0 -146
  98. package/src/generated/models/custom-add-customer-contact.ts +0 -74
  99. package/src/generated/models/custom-create-contact-with-customer.ts +0 -143
  100. package/src/generated/models/customer-delivery-preferences.ts +0 -75
  101. package/src/generated/models/customer-id.ts +0 -66
  102. package/src/generated/models/customer-payment-options.ts +0 -75
  103. package/src/generated/models/get-customer-response.ts +0 -448
  104. package/src/generated/models/get-customers-billing200-response.ts +0 -89
  105. package/src/generated/models/product-billing-response.ts +0 -236
  106. package/src/generated/models/product-transaction-posting-entries.ts +0 -84
  107. package/src/generated/models/update-customer.ts +0 -97
  108. package/src/generated/models/update-product.ts +0 -101
@@ -1,144 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace V2 Auth API
5
- * ManageSpace Auth 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 CreateContact
20
- */
21
- export interface CreateContact {
22
- /**
23
- * External ID
24
- * @type {string}
25
- * @memberof CreateContact
26
- */
27
- externalId?: string | null;
28
- /**
29
- * First name
30
- * @type {string}
31
- * @memberof CreateContact
32
- */
33
- firstName: string;
34
- /**
35
- * Initial of middle name
36
- * @type {string}
37
- * @memberof CreateContact
38
- */
39
- middleInitial?: string | null;
40
- /**
41
- * Last name
42
- * @type {string}
43
- * @memberof CreateContact
44
- */
45
- lastName: string;
46
- /**
47
- * Display name
48
- * @type {string}
49
- * @memberof CreateContact
50
- */
51
- displayName: string;
52
- /**
53
- * Contact email address
54
- * @type {string}
55
- * @memberof CreateContact
56
- */
57
- email: string;
58
- /**
59
- * Phone number
60
- * @type {string}
61
- * @memberof CreateContact
62
- */
63
- phoneNumber?: string | null;
64
- /**
65
- * Contact mobile number
66
- * @type {string}
67
- * @memberof CreateContact
68
- */
69
- mobileNumber: string;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof CreateContact
74
- */
75
- customerId: string;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof CreateContact
80
- */
81
- addressId: string;
82
- }
83
-
84
- /**
85
- * Check if a given object implements the CreateContact interface.
86
- */
87
- export function instanceOfCreateContact(value: object): value is CreateContact {
88
- if (!('firstName' in value) || value['firstName'] === undefined) return false;
89
- if (!('lastName' in value) || value['lastName'] === undefined) return false;
90
- if (!('displayName' in value) || value['displayName'] === undefined) return false;
91
- if (!('email' in value) || value['email'] === undefined) return false;
92
- if (!('mobileNumber' in value) || value['mobileNumber'] === undefined) return false;
93
- if (!('customerId' in value) || value['customerId'] === undefined) return false;
94
- if (!('addressId' in value) || value['addressId'] === undefined) return false;
95
- return true;
96
- }
97
-
98
- export function CreateContactFromJSON(json: any): CreateContact {
99
- return CreateContactFromJSONTyped(json, false);
100
- }
101
-
102
- export function CreateContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateContact {
103
- if (json == null) {
104
- return json;
105
- }
106
- return {
107
-
108
- 'externalId': json['externalId'] == null ? undefined : json['externalId'],
109
- 'firstName': json['firstName'],
110
- 'middleInitial': json['middleInitial'] == null ? undefined : json['middleInitial'],
111
- 'lastName': json['lastName'],
112
- 'displayName': json['displayName'],
113
- 'email': json['email'],
114
- 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
115
- 'mobileNumber': json['mobileNumber'],
116
- 'customerId': json['customerId'],
117
- 'addressId': json['addressId'],
118
- };
119
- }
120
-
121
- export function CreateContactToJSON(json: any): CreateContact {
122
- return CreateContactToJSONTyped(json, false);
123
- }
124
-
125
- export function CreateContactToJSONTyped(value?: CreateContact | null, ignoreDiscriminator: boolean = false): any {
126
- if (value == null) {
127
- return value;
128
- }
129
-
130
- return {
131
-
132
- 'externalId': value['externalId'],
133
- 'firstName': value['firstName'],
134
- 'middleInitial': value['middleInitial'],
135
- 'lastName': value['lastName'],
136
- 'displayName': value['displayName'],
137
- 'email': value['email'],
138
- 'phoneNumber': value['phoneNumber'],
139
- 'mobileNumber': value['mobileNumber'],
140
- 'customerId': value['customerId'],
141
- 'addressId': value['addressId'],
142
- };
143
- }
144
-
@@ -1,256 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace V2 Auth API
5
- * ManageSpace Auth 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 { CreatePaymentInvoice } from './create-payment-invoice';
17
- import {
18
- CreatePaymentInvoiceFromJSON,
19
- CreatePaymentInvoiceFromJSONTyped,
20
- CreatePaymentInvoiceToJSON,
21
- CreatePaymentInvoiceToJSONTyped,
22
- } from './create-payment-invoice';
23
- import type { CreatePaymentRefund } from './create-payment-refund';
24
- import {
25
- CreatePaymentRefundFromJSON,
26
- CreatePaymentRefundFromJSONTyped,
27
- CreatePaymentRefundToJSON,
28
- CreatePaymentRefundToJSONTyped,
29
- } from './create-payment-refund';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface CreatePayment
35
- */
36
- export interface CreatePayment {
37
- /**
38
- * Customer Id
39
- * @type {string}
40
- * @memberof CreatePayment
41
- */
42
- customerId: string;
43
- /**
44
- * Date of payment transaction
45
- * @type {string}
46
- * @memberof CreatePayment
47
- */
48
- paymentDate: string;
49
- /**
50
- * Status of payment
51
- * @type {string}
52
- * @memberof CreatePayment
53
- */
54
- status: string;
55
- /**
56
- * Total amount of payment
57
- * @type {string}
58
- * @memberof CreatePayment
59
- */
60
- paymentAmount: string;
61
- /**
62
- * Transaction Fee
63
- * @type {string}
64
- * @memberof CreatePayment
65
- */
66
- feeAmount: string;
67
- /**
68
- * Amount of payment applied to invoices
69
- * @type {string}
70
- * @memberof CreatePayment
71
- */
72
- appliedAmount: string;
73
- /**
74
- * Amount of payment not yet applied to invoices
75
- * @type {string}
76
- * @memberof CreatePayment
77
- */
78
- unappliedAmount: string;
79
- /**
80
- * External or Electronic payments
81
- * @type {string}
82
- * @memberof CreatePayment
83
- */
84
- paymentType: string;
85
- /**
86
- * Method of payment
87
- * @type {string}
88
- * @memberof CreatePayment
89
- */
90
- paymentMethod: string;
91
- /**
92
- * Payment method saved and used for future billing
93
- * @type {boolean}
94
- * @memberof CreatePayment
95
- */
96
- saveForLater: boolean;
97
- /**
98
- * Currency
99
- * @type {string}
100
- * @memberof CreatePayment
101
- */
102
- currency: string;
103
- /**
104
- * Automatically apply unapplied amount to next invoice
105
- * @type {boolean}
106
- * @memberof CreatePayment
107
- */
108
- autoApply: boolean;
109
- /**
110
- * General Ledger account
111
- * @type {string}
112
- * @memberof CreatePayment
113
- */
114
- glAccount: string;
115
- /**
116
- * Generate email
117
- * @type {boolean}
118
- * @memberof CreatePayment
119
- */
120
- emailStatus: boolean;
121
- /**
122
- * Custom fields on the invoice
123
- * @type {object}
124
- * @memberof CreatePayment
125
- */
126
- customFields: object;
127
- /**
128
- * Miscellaneous notes
129
- * @type {string}
130
- * @memberof CreatePayment
131
- */
132
- notes?: string;
133
- /**
134
- * Payment token
135
- * @type {string}
136
- * @memberof CreatePayment
137
- */
138
- paymentToken?: string;
139
- /**
140
- * Reference number for payment transaction
141
- * @type {string}
142
- * @memberof CreatePayment
143
- */
144
- referenceNumber?: string;
145
- /**
146
- * Gateway Name for electronic payment
147
- * @type {string}
148
- * @memberof CreatePayment
149
- */
150
- gatewayName?: string;
151
- /**
152
- * List of invoices paid by payment
153
- * @type {Array<CreatePaymentInvoice>}
154
- * @memberof CreatePayment
155
- */
156
- invoices: Array<CreatePaymentInvoice>;
157
- /**
158
- * List of refunds associated with payment
159
- * @type {Array<CreatePaymentRefund>}
160
- * @memberof CreatePayment
161
- */
162
- refunds?: Array<CreatePaymentRefund>;
163
- }
164
-
165
- /**
166
- * Check if a given object implements the CreatePayment interface.
167
- */
168
- export function instanceOfCreatePayment(value: object): value is CreatePayment {
169
- if (!('customerId' in value) || value['customerId'] === undefined) return false;
170
- if (!('paymentDate' in value) || value['paymentDate'] === undefined) return false;
171
- if (!('status' in value) || value['status'] === undefined) return false;
172
- if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
173
- if (!('feeAmount' in value) || value['feeAmount'] === undefined) return false;
174
- if (!('appliedAmount' in value) || value['appliedAmount'] === undefined) return false;
175
- if (!('unappliedAmount' in value) || value['unappliedAmount'] === undefined) return false;
176
- if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
177
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
178
- if (!('saveForLater' in value) || value['saveForLater'] === undefined) return false;
179
- if (!('currency' in value) || value['currency'] === undefined) return false;
180
- if (!('autoApply' in value) || value['autoApply'] === undefined) return false;
181
- if (!('glAccount' in value) || value['glAccount'] === undefined) return false;
182
- if (!('emailStatus' in value) || value['emailStatus'] === undefined) return false;
183
- if (!('customFields' in value) || value['customFields'] === undefined) return false;
184
- if (!('invoices' in value) || value['invoices'] === undefined) return false;
185
- return true;
186
- }
187
-
188
- export function CreatePaymentFromJSON(json: any): CreatePayment {
189
- return CreatePaymentFromJSONTyped(json, false);
190
- }
191
-
192
- export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePayment {
193
- if (json == null) {
194
- return json;
195
- }
196
- return {
197
-
198
- 'customerId': json['customerId'],
199
- 'paymentDate': json['paymentDate'],
200
- 'status': json['status'],
201
- 'paymentAmount': json['paymentAmount'],
202
- 'feeAmount': json['feeAmount'],
203
- 'appliedAmount': json['appliedAmount'],
204
- 'unappliedAmount': json['unappliedAmount'],
205
- 'paymentType': json['paymentType'],
206
- 'paymentMethod': json['paymentMethod'],
207
- 'saveForLater': json['saveForLater'],
208
- 'currency': json['currency'],
209
- 'autoApply': json['autoApply'],
210
- 'glAccount': json['glAccount'],
211
- 'emailStatus': json['emailStatus'],
212
- 'customFields': json['customFields'],
213
- 'notes': json['notes'] == null ? undefined : json['notes'],
214
- 'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
215
- 'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
216
- 'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
217
- 'invoices': ((json['invoices'] as Array<any>).map(CreatePaymentInvoiceFromJSON)),
218
- 'refunds': json['refunds'] == null ? undefined : ((json['refunds'] as Array<any>).map(CreatePaymentRefundFromJSON)),
219
- };
220
- }
221
-
222
- export function CreatePaymentToJSON(json: any): CreatePayment {
223
- return CreatePaymentToJSONTyped(json, false);
224
- }
225
-
226
- export function CreatePaymentToJSONTyped(value?: CreatePayment | null, ignoreDiscriminator: boolean = false): any {
227
- if (value == null) {
228
- return value;
229
- }
230
-
231
- return {
232
-
233
- 'customerId': value['customerId'],
234
- 'paymentDate': value['paymentDate'],
235
- 'status': value['status'],
236
- 'paymentAmount': value['paymentAmount'],
237
- 'feeAmount': value['feeAmount'],
238
- 'appliedAmount': value['appliedAmount'],
239
- 'unappliedAmount': value['unappliedAmount'],
240
- 'paymentType': value['paymentType'],
241
- 'paymentMethod': value['paymentMethod'],
242
- 'saveForLater': value['saveForLater'],
243
- 'currency': value['currency'],
244
- 'autoApply': value['autoApply'],
245
- 'glAccount': value['glAccount'],
246
- 'emailStatus': value['emailStatus'],
247
- 'customFields': value['customFields'],
248
- 'notes': value['notes'],
249
- 'paymentToken': value['paymentToken'],
250
- 'referenceNumber': value['referenceNumber'],
251
- 'gatewayName': value['gatewayName'],
252
- 'invoices': ((value['invoices'] as Array<any>).map(CreatePaymentInvoiceToJSON)),
253
- 'refunds': value['refunds'] == null ? undefined : ((value['refunds'] as Array<any>).map(CreatePaymentRefundToJSON)),
254
- };
255
- }
256
-
@@ -1,110 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace V2 Auth API
5
- * ManageSpace Auth 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 { CreatePlanCharge } from './create-plan-charge';
17
- import {
18
- CreatePlanChargeFromJSON,
19
- CreatePlanChargeFromJSONTyped,
20
- CreatePlanChargeToJSON,
21
- CreatePlanChargeToJSONTyped,
22
- } from './create-plan-charge';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CreatePlanBilling
28
- */
29
- export interface CreatePlanBilling {
30
- /**
31
- * Name of plan
32
- * @type {string}
33
- * @memberof CreatePlanBilling
34
- */
35
- name: string;
36
- /**
37
- * Plan status
38
- * @type {string}
39
- * @memberof CreatePlanBilling
40
- */
41
- status: string;
42
- /**
43
- * Description of plan
44
- * @type {string}
45
- * @memberof CreatePlanBilling
46
- */
47
- description: string;
48
- /**
49
- * URL used for self sign up
50
- * @type {string}
51
- * @memberof CreatePlanBilling
52
- */
53
- publicUrl: string;
54
- /**
55
- * Charges associated with plan
56
- * @type {Array<CreatePlanCharge>}
57
- * @memberof CreatePlanBilling
58
- */
59
- charges: Array<CreatePlanCharge>;
60
- }
61
-
62
- /**
63
- * Check if a given object implements the CreatePlanBilling interface.
64
- */
65
- export function instanceOfCreatePlanBilling(value: object): value is CreatePlanBilling {
66
- if (!('name' in value) || value['name'] === undefined) return false;
67
- if (!('status' in value) || value['status'] === undefined) return false;
68
- if (!('description' in value) || value['description'] === undefined) return false;
69
- if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
70
- if (!('charges' in value) || value['charges'] === undefined) return false;
71
- return true;
72
- }
73
-
74
- export function CreatePlanBillingFromJSON(json: any): CreatePlanBilling {
75
- return CreatePlanBillingFromJSONTyped(json, false);
76
- }
77
-
78
- export function CreatePlanBillingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlanBilling {
79
- if (json == null) {
80
- return json;
81
- }
82
- return {
83
-
84
- 'name': json['name'],
85
- 'status': json['status'],
86
- 'description': json['description'],
87
- 'publicUrl': json['publicUrl'],
88
- 'charges': ((json['charges'] as Array<any>).map(CreatePlanChargeFromJSON)),
89
- };
90
- }
91
-
92
- export function CreatePlanBillingToJSON(json: any): CreatePlanBilling {
93
- return CreatePlanBillingToJSONTyped(json, false);
94
- }
95
-
96
- export function CreatePlanBillingToJSONTyped(value?: CreatePlanBilling | null, ignoreDiscriminator: boolean = false): any {
97
- if (value == null) {
98
- return value;
99
- }
100
-
101
- return {
102
-
103
- 'name': value['name'],
104
- 'status': value['status'],
105
- 'description': value['description'],
106
- 'publicUrl': value['publicUrl'],
107
- 'charges': ((value['charges'] as Array<any>).map(CreatePlanChargeToJSON)),
108
- };
109
- }
110
-
@@ -1,146 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace V2 Auth API
5
- * ManageSpace Auth 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 { ProductTransactionPostingEntries } from './product-transaction-posting-entries';
17
- import {
18
- ProductTransactionPostingEntriesFromJSON,
19
- ProductTransactionPostingEntriesFromJSONTyped,
20
- ProductTransactionPostingEntriesToJSON,
21
- ProductTransactionPostingEntriesToJSONTyped,
22
- } from './product-transaction-posting-entries';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CreateProductBilling
28
- */
29
- export interface CreateProductBilling {
30
- /**
31
- * Name of product
32
- * @type {string}
33
- * @memberof CreateProductBilling
34
- */
35
- name: string;
36
- /**
37
- * Stock keeping unit
38
- * @type {string}
39
- * @memberof CreateProductBilling
40
- */
41
- sku: string;
42
- /**
43
- * Product status
44
- * @type {string}
45
- * @memberof CreateProductBilling
46
- */
47
- status: string;
48
- /**
49
- * Describes whether product is taxable or not
50
- * @type {boolean}
51
- * @memberof CreateProductBilling
52
- */
53
- taxable: boolean;
54
- /**
55
- * Description of product
56
- * @type {string}
57
- * @memberof CreateProductBilling
58
- */
59
- description: string;
60
- /**
61
- * Product price
62
- * @type {string}
63
- * @memberof CreateProductBilling
64
- */
65
- price: string;
66
- /**
67
- * ID of revenue
68
- * @type {string}
69
- * @memberof CreateProductBilling
70
- */
71
- revenueRuleId: string;
72
- /**
73
- * Date revenue will begin to be recognized
74
- * @type {string}
75
- * @memberof CreateProductBilling
76
- */
77
- recognitionStartDate: string;
78
- /**
79
- * Product ID
80
- * @type {Array<ProductTransactionPostingEntries>}
81
- * @memberof CreateProductBilling
82
- */
83
- transactionPostingEntries: Array<ProductTransactionPostingEntries>;
84
- }
85
-
86
- /**
87
- * Check if a given object implements the CreateProductBilling interface.
88
- */
89
- export function instanceOfCreateProductBilling(value: object): value is CreateProductBilling {
90
- if (!('name' in value) || value['name'] === undefined) return false;
91
- if (!('sku' in value) || value['sku'] === undefined) return false;
92
- if (!('status' in value) || value['status'] === undefined) return false;
93
- if (!('taxable' in value) || value['taxable'] === undefined) return false;
94
- if (!('description' in value) || value['description'] === undefined) return false;
95
- if (!('price' in value) || value['price'] === undefined) return false;
96
- if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
97
- if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
98
- if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
99
- return true;
100
- }
101
-
102
- export function CreateProductBillingFromJSON(json: any): CreateProductBilling {
103
- return CreateProductBillingFromJSONTyped(json, false);
104
- }
105
-
106
- export function CreateProductBillingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductBilling {
107
- if (json == null) {
108
- return json;
109
- }
110
- return {
111
-
112
- 'name': json['name'],
113
- 'sku': json['sku'],
114
- 'status': json['status'],
115
- 'taxable': json['taxable'],
116
- 'description': json['description'],
117
- 'price': json['price'],
118
- 'revenueRuleId': json['revenueRuleId'],
119
- 'recognitionStartDate': json['recognitionStartDate'],
120
- 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesFromJSON)),
121
- };
122
- }
123
-
124
- export function CreateProductBillingToJSON(json: any): CreateProductBilling {
125
- return CreateProductBillingToJSONTyped(json, false);
126
- }
127
-
128
- export function CreateProductBillingToJSONTyped(value?: CreateProductBilling | null, ignoreDiscriminator: boolean = false): any {
129
- if (value == null) {
130
- return value;
131
- }
132
-
133
- return {
134
-
135
- 'name': value['name'],
136
- 'sku': value['sku'],
137
- 'status': value['status'],
138
- 'taxable': value['taxable'],
139
- 'description': value['description'],
140
- 'price': value['price'],
141
- 'revenueRuleId': value['revenueRuleId'],
142
- 'recognitionStartDate': value['recognitionStartDate'],
143
- 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesToJSON)),
144
- };
145
- }
146
-