@managespace/sdk 0.0.66 → 0.0.68

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 (71) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +10 -12
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/topics.type.d.ts +2 -0
  4. package/dist/extensibility/functions/project/topics.type.d.ts.map +1 -0
  5. package/dist/extensibility/functions/project/topics.type.js +2 -0
  6. package/dist/generated/apis/default-api.d.ts +5 -5
  7. package/dist/generated/apis/default-api.d.ts.map +1 -1
  8. package/dist/generated/apis/default-api.js +2 -2
  9. package/dist/generated/models/asset-response.d.ts +2 -16
  10. package/dist/generated/models/asset-response.d.ts.map +1 -1
  11. package/dist/generated/models/asset-response.js +3 -9
  12. package/dist/generated/models/cancel-subscription.d.ts +2 -2
  13. package/dist/generated/models/cancel-subscription.js +2 -2
  14. package/dist/generated/models/create-asset-custom.d.ts +2 -2
  15. package/dist/generated/models/create-asset-custom.d.ts.map +1 -1
  16. package/dist/generated/models/create-asset-custom.js +2 -2
  17. package/dist/generated/models/create-product-custom.d.ts +19 -37
  18. package/dist/generated/models/create-product-custom.d.ts.map +1 -1
  19. package/dist/generated/models/create-product-custom.js +11 -19
  20. package/dist/generated/models/create-subscription-plan.d.ts +6 -24
  21. package/dist/generated/models/create-subscription-plan.d.ts.map +1 -1
  22. package/dist/generated/models/create-subscription-plan.js +6 -18
  23. package/dist/generated/models/create-subscription.d.ts +10 -9
  24. package/dist/generated/models/create-subscription.d.ts.map +1 -1
  25. package/dist/generated/models/create-subscription.js +8 -7
  26. package/dist/generated/models/custom-create-plan.d.ts +9 -33
  27. package/dist/generated/models/custom-create-plan.d.ts.map +1 -1
  28. package/dist/generated/models/custom-create-plan.js +6 -16
  29. package/dist/generated/models/customer-response.d.ts +0 -7
  30. package/dist/generated/models/customer-response.d.ts.map +1 -1
  31. package/dist/generated/models/customer-response.js +0 -3
  32. package/dist/generated/models/get-plans200-response.d.ts +3 -3
  33. package/dist/generated/models/get-plans200-response.d.ts.map +1 -1
  34. package/dist/generated/models/get-plans200-response.js +3 -3
  35. package/dist/generated/models/index.d.ts +2 -3
  36. package/dist/generated/models/index.d.ts.map +1 -1
  37. package/dist/generated/models/index.js +2 -3
  38. package/dist/generated/models/org-response.d.ts +0 -14
  39. package/dist/generated/models/org-response.d.ts.map +1 -1
  40. package/dist/generated/models/org-response.js +0 -6
  41. package/dist/generated/models/plan-custom-response.d.ts +58 -0
  42. package/dist/generated/models/plan-custom-response.d.ts.map +1 -0
  43. package/dist/generated/models/plan-custom-response.js +64 -0
  44. package/dist/generated/models/product-custom-response.d.ts +19 -69
  45. package/dist/generated/models/product-custom-response.d.ts.map +1 -1
  46. package/dist/generated/models/product-custom-response.js +11 -37
  47. package/dist/generated/models/site-response.d.ts +0 -14
  48. package/dist/generated/models/site-response.d.ts.map +1 -1
  49. package/dist/generated/models/site-response.js +0 -6
  50. package/dist/generated/models/update-asset.d.ts +2 -2
  51. package/dist/generated/models/update-asset.d.ts.map +1 -1
  52. package/dist/generated/models/update-asset.js +2 -2
  53. package/package.json +1 -1
  54. package/src/extensibility/functions/project/billing.ts +8 -11
  55. package/src/generated/.openapi-generator/FILES +2 -3
  56. package/src/generated/apis/default-api.ts +9 -9
  57. package/src/generated/models/asset-response.ts +5 -35
  58. package/src/generated/models/cancel-subscription.ts +2 -2
  59. package/src/generated/models/create-asset-custom.ts +4 -4
  60. package/src/generated/models/create-product-custom.ts +30 -55
  61. package/src/generated/models/create-subscription-plan.ts +9 -36
  62. package/src/generated/models/create-subscription.ts +23 -15
  63. package/src/generated/models/custom-create-plan.ts +15 -48
  64. package/src/generated/models/customer-response.ts +0 -15
  65. package/src/generated/models/get-plans200-response.ts +10 -10
  66. package/src/generated/models/index.ts +2 -3
  67. package/src/generated/models/org-response.ts +0 -30
  68. package/src/generated/models/plan-custom-response.ts +108 -0
  69. package/src/generated/models/product-custom-response.ts +30 -112
  70. package/src/generated/models/site-response.ts +0 -30
  71. package/src/generated/models/update-asset.ts +4 -4
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { CreateSubscriptionPlan } from './create-subscription-plan';
17
+ import {
18
+ CreateSubscriptionPlanFromJSON,
19
+ CreateSubscriptionPlanFromJSONTyped,
20
+ CreateSubscriptionPlanToJSON,
21
+ CreateSubscriptionPlanToJSONTyped,
22
+ } from './create-subscription-plan';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -26,29 +34,29 @@ export interface CreateSubscription {
26
34
  */
27
35
  status: string;
28
36
  /**
29
- * Service start date for subscription contract
37
+ * Billing start date for subscription contract
30
38
  * @type {string}
31
39
  * @memberof CreateSubscription
32
40
  */
33
- serviceStartDate: string;
41
+ billingStartDate: string;
34
42
  /**
35
- * Date subscription contract was signed and activated
43
+ * Service start date for subscription contract
36
44
  * @type {string}
37
45
  * @memberof CreateSubscription
38
46
  */
39
- contractEffectiveDate: string;
47
+ serviceStartDate: string;
40
48
  /**
41
- * Billing start date for subscription contract
49
+ * Date subscription contract was signed and activated
42
50
  * @type {string}
43
51
  * @memberof CreateSubscription
44
52
  */
45
- billingStartDate: string;
53
+ contractEffectiveDate: string;
46
54
  /**
47
- * Subscription plan details
48
- * @type {Array<string>}
55
+ * Charges associated the subscription
56
+ * @type {Array<CreateSubscriptionPlan>}
49
57
  * @memberof CreateSubscription
50
58
  */
51
- planIds: Array<string>;
59
+ plans: Array<CreateSubscriptionPlan>;
52
60
  }
53
61
 
54
62
  /**
@@ -56,10 +64,10 @@ export interface CreateSubscription {
56
64
  */
57
65
  export function instanceOfCreateSubscription(value: object): value is CreateSubscription {
58
66
  if (!('status' in value) || value['status'] === undefined) return false;
67
+ if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
59
68
  if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined) return false;
60
69
  if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
61
- if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
62
- if (!('planIds' in value) || value['planIds'] === undefined) return false;
70
+ if (!('plans' in value) || value['plans'] === undefined) return false;
63
71
  return true;
64
72
  }
65
73
 
@@ -74,10 +82,10 @@ export function CreateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator:
74
82
  return {
75
83
 
76
84
  'status': json['status'],
85
+ 'billingStartDate': json['billingStartDate'],
77
86
  'serviceStartDate': json['serviceStartDate'],
78
87
  'contractEffectiveDate': json['contractEffectiveDate'],
79
- 'billingStartDate': json['billingStartDate'],
80
- 'planIds': json['planIds'],
88
+ 'plans': ((json['plans'] as Array<any>).map(CreateSubscriptionPlanFromJSON)),
81
89
  };
82
90
  }
83
91
 
@@ -93,10 +101,10 @@ export function CreateSubscriptionToJSONTyped(value?: CreateSubscription | null,
93
101
  return {
94
102
 
95
103
  'status': value['status'],
104
+ 'billingStartDate': value['billingStartDate'],
96
105
  'serviceStartDate': value['serviceStartDate'],
97
106
  'contractEffectiveDate': value['contractEffectiveDate'],
98
- 'billingStartDate': value['billingStartDate'],
99
- 'planIds': value['planIds'],
107
+ 'plans': ((value['plans'] as Array<any>).map(CreateSubscriptionPlanToJSON)),
100
108
  };
101
109
  }
102
110
 
@@ -28,61 +28,36 @@ import {
28
28
  */
29
29
  export interface CustomCreatePlan {
30
30
  /**
31
- * The product name
31
+ * The plan name
32
32
  * @type {string}
33
33
  * @memberof CustomCreatePlan
34
34
  */
35
- name?: string;
35
+ name: string;
36
36
  /**
37
- * The price of the product in the lowest denomination of the currency
38
- * @type {number}
39
- * @memberof CustomCreatePlan
40
- */
41
- price?: number;
42
- /**
43
- * Tax exempt
44
- * @type {boolean}
45
- * @memberof CustomCreatePlan
46
- */
47
- taxable?: boolean;
48
- /**
49
- * Tax exempt
50
- * @type {boolean}
51
- * @memberof CustomCreatePlan
52
- */
53
- active?: boolean;
54
- /**
55
- *
37
+ * Description of the plan
56
38
  * @type {string}
57
39
  * @memberof CustomCreatePlan
58
40
  */
59
- productId: string;
41
+ description?: string;
60
42
  /**
61
- *
62
- * @type {string}
43
+ * Charges associated with plan
44
+ * @type {Array<CreatePlanCharge>}
63
45
  * @memberof CustomCreatePlan
64
46
  */
65
- assetId?: string | null;
47
+ charges: Array<CreatePlanCharge>;
66
48
  /**
67
- *
49
+ * Plan status
68
50
  * @type {string}
69
51
  * @memberof CustomCreatePlan
70
52
  */
71
- customerId: string;
72
- /**
73
- * Charges associated with plan
74
- * @type {Array<CreatePlanCharge>}
75
- * @memberof CustomCreatePlan
76
- */
77
- charges: Array<CreatePlanCharge>;
53
+ status?: string;
78
54
  }
79
55
 
80
56
  /**
81
57
  * Check if a given object implements the CustomCreatePlan interface.
82
58
  */
83
59
  export function instanceOfCustomCreatePlan(value: object): value is CustomCreatePlan {
84
- if (!('productId' in value) || value['productId'] === undefined) return false;
85
- if (!('customerId' in value) || value['customerId'] === undefined) return false;
60
+ if (!('name' in value) || value['name'] === undefined) return false;
86
61
  if (!('charges' in value) || value['charges'] === undefined) return false;
87
62
  return true;
88
63
  }
@@ -97,14 +72,10 @@ export function CustomCreatePlanFromJSONTyped(json: any, ignoreDiscriminator: bo
97
72
  }
98
73
  return {
99
74
 
100
- 'name': json['name'] == null ? undefined : json['name'],
101
- 'price': json['price'] == null ? undefined : json['price'],
102
- 'taxable': json['taxable'] == null ? undefined : json['taxable'],
103
- 'active': json['active'] == null ? undefined : json['active'],
104
- 'productId': json['productId'],
105
- 'assetId': json['assetId'] == null ? undefined : json['assetId'],
106
- 'customerId': json['customerId'],
75
+ 'name': json['name'],
76
+ 'description': json['description'] == null ? undefined : json['description'],
107
77
  'charges': ((json['charges'] as Array<any>).map(CreatePlanChargeFromJSON)),
78
+ 'status': json['status'] == null ? undefined : json['status'],
108
79
  };
109
80
  }
110
81
 
@@ -120,13 +91,9 @@ export function CustomCreatePlanToJSONTyped(value?: CustomCreatePlan | null, ign
120
91
  return {
121
92
 
122
93
  'name': value['name'],
123
- 'price': value['price'],
124
- 'taxable': value['taxable'],
125
- 'active': value['active'],
126
- 'productId': value['productId'],
127
- 'assetId': value['assetId'],
128
- 'customerId': value['customerId'],
94
+ 'description': value['description'],
129
95
  'charges': ((value['charges'] as Array<any>).map(CreatePlanChargeToJSON)),
96
+ 'status': value['status'],
130
97
  };
131
98
  }
132
99
 
@@ -41,13 +41,6 @@ import {
41
41
  OrgResponseToJSON,
42
42
  OrgResponseToJSONTyped,
43
43
  } from './org-response';
44
- import type { PlanResponse } from './plan-response';
45
- import {
46
- PlanResponseFromJSON,
47
- PlanResponseFromJSONTyped,
48
- PlanResponseToJSON,
49
- PlanResponseToJSONTyped,
50
- } from './plan-response';
51
44
 
52
45
  /**
53
46
  *
@@ -127,12 +120,6 @@ export interface CustomerResponse {
127
120
  * @memberof CustomerResponse
128
121
  */
129
122
  communications?: Array<CommunicationResponse>;
130
- /**
131
- *
132
- * @type {Array<PlanResponse>}
133
- * @memberof CustomerResponse
134
- */
135
- plans?: Array<PlanResponse>;
136
123
  }
137
124
 
138
125
  /**
@@ -172,7 +159,6 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
172
159
  'externalId': json['externalId'],
173
160
  'balance': json['balance'],
174
161
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
175
- 'plans': json['plans'] == null ? undefined : ((json['plans'] as Array<any>).map(PlanResponseFromJSON)),
176
162
  };
177
163
  }
178
164
 
@@ -199,7 +185,6 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
199
185
  'externalId': value['externalId'],
200
186
  'balance': value['balance'],
201
187
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
202
- 'plans': value['plans'] == null ? undefined : ((value['plans'] as Array<any>).map(PlanResponseToJSON)),
203
188
  };
204
189
  }
205
190
 
@@ -20,13 +20,13 @@ import {
20
20
  PageMetaToJSON,
21
21
  PageMetaToJSONTyped,
22
22
  } from './page-meta';
23
- import type { PlanResponse } from './plan-response';
23
+ import type { PlanCustomResponse } from './plan-custom-response';
24
24
  import {
25
- PlanResponseFromJSON,
26
- PlanResponseFromJSONTyped,
27
- PlanResponseToJSON,
28
- PlanResponseToJSONTyped,
29
- } from './plan-response';
25
+ PlanCustomResponseFromJSON,
26
+ PlanCustomResponseFromJSONTyped,
27
+ PlanCustomResponseToJSON,
28
+ PlanCustomResponseToJSONTyped,
29
+ } from './plan-custom-response';
30
30
 
31
31
  /**
32
32
  *
@@ -42,10 +42,10 @@ export interface GetPlans200Response {
42
42
  pageMeta: PageMeta;
43
43
  /**
44
44
  *
45
- * @type {Array<PlanResponse>}
45
+ * @type {Array<PlanCustomResponse>}
46
46
  * @memberof GetPlans200Response
47
47
  */
48
- results?: Array<PlanResponse>;
48
+ results?: Array<PlanCustomResponse>;
49
49
  }
50
50
 
51
51
  /**
@@ -67,7 +67,7 @@ export function GetPlans200ResponseFromJSONTyped(json: any, ignoreDiscriminator:
67
67
  return {
68
68
 
69
69
  'pageMeta': PageMetaFromJSON(json['pageMeta']),
70
- 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(PlanResponseFromJSON)),
70
+ 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(PlanCustomResponseFromJSON)),
71
71
  };
72
72
  }
73
73
 
@@ -83,7 +83,7 @@ export function GetPlans200ResponseToJSONTyped(value?: GetPlans200Response | nul
83
83
  return {
84
84
 
85
85
  'pageMeta': PageMetaToJSON(value['pageMeta']),
86
- 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PlanResponseToJSON)),
86
+ 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PlanCustomResponseToJSON)),
87
87
  };
88
88
  }
89
89
 
@@ -43,12 +43,12 @@ export * from './create-payment-invoice';
43
43
  export * from './create-payment-refund';
44
44
  export * from './create-payment-run';
45
45
  export * from './create-plan-charge';
46
- export * from './create-product';
47
46
  export * from './create-product-custom';
48
47
  export * from './create-revenue-rule';
49
48
  export * from './create-site-custom';
50
49
  export * from './create-smart-bar-prompt';
51
50
  export * from './create-subscription';
51
+ export * from './create-subscription-plan';
52
52
  export * from './create-task';
53
53
  export * from './create-task-template';
54
54
  export * from './create-template';
@@ -121,7 +121,7 @@ export * from './payment-response';
121
121
  export * from './payment-run-customer-response';
122
122
  export * from './payment-run-filter-option-response';
123
123
  export * from './payment-run-response';
124
- export * from './plan-response';
124
+ export * from './plan-custom-response';
125
125
  export * from './plugin-extensibility-function-definition-response';
126
126
  export * from './plugin-extensibility-function-instance-response';
127
127
  export * from './plugin-extensibility-function-metadata-response';
@@ -129,7 +129,6 @@ export * from './plugin-extensibility-status';
129
129
  export * from './plugin-response';
130
130
  export * from './plugin-version-response';
131
131
  export * from './product-custom-response';
132
- export * from './product-response';
133
132
  export * from './project-response';
134
133
  export * from './project-response1';
135
134
  export * from './project-version-response';
@@ -55,13 +55,6 @@ import {
55
55
  ChecklistResponseToJSON,
56
56
  ChecklistResponseToJSONTyped,
57
57
  } from './checklist-response';
58
- import type { PlanResponse } from './plan-response';
59
- import {
60
- PlanResponseFromJSON,
61
- PlanResponseFromJSONTyped,
62
- PlanResponseToJSON,
63
- PlanResponseToJSONTyped,
64
- } from './plan-response';
65
58
  import type { WorkflowStepMetadataResponse } from './workflow-step-metadata-response';
66
59
  import {
67
60
  WorkflowStepMetadataResponseFromJSON,
@@ -146,13 +139,6 @@ import {
146
139
  NotificationResponseToJSON,
147
140
  NotificationResponseToJSONTyped,
148
141
  } from './notification-response';
149
- import type { ProductResponse } from './product-response';
150
- import {
151
- ProductResponseFromJSON,
152
- ProductResponseFromJSONTyped,
153
- ProductResponseToJSON,
154
- ProductResponseToJSONTyped,
155
- } from './product-response';
156
142
  import type { ExtensibilityFunctionDefinitionResponse } from './extensibility-function-definition-response';
157
143
  import {
158
144
  ExtensibilityFunctionDefinitionResponseFromJSON,
@@ -356,18 +342,6 @@ export interface OrgResponse {
356
342
  * @memberof OrgResponse
357
343
  */
358
344
  communications?: Array<CommunicationResponse>;
359
- /**
360
- *
361
- * @type {Array<ProductResponse>}
362
- * @memberof OrgResponse
363
- */
364
- products?: Array<ProductResponse>;
365
- /**
366
- *
367
- * @type {Array<PlanResponse>}
368
- * @memberof OrgResponse
369
- */
370
- plans?: Array<PlanResponse>;
371
345
  }
372
346
 
373
347
  /**
@@ -421,8 +395,6 @@ export function OrgResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean
421
395
  'contacts': json['contacts'] == null ? undefined : ((json['contacts'] as Array<any>).map(ContactResponseFromJSON)),
422
396
  'projectVersions': json['projectVersions'] == null ? undefined : ((json['projectVersions'] as Array<any>).map(ProjectVersionResponseFromJSON)),
423
397
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
424
- 'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductResponseFromJSON)),
425
- 'plans': json['plans'] == null ? undefined : ((json['plans'] as Array<any>).map(PlanResponseFromJSON)),
426
398
  };
427
399
  }
428
400
 
@@ -465,8 +437,6 @@ export function OrgResponseToJSONTyped(value?: OrgResponse | null, ignoreDiscrim
465
437
  'contacts': value['contacts'] == null ? undefined : ((value['contacts'] as Array<any>).map(ContactResponseToJSON)),
466
438
  'projectVersions': value['projectVersions'] == null ? undefined : ((value['projectVersions'] as Array<any>).map(ProjectVersionResponseToJSON)),
467
439
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
468
- 'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductResponseToJSON)),
469
- 'plans': value['plans'] == null ? undefined : ((value['plans'] as Array<any>).map(PlanResponseToJSON)),
470
440
  };
471
441
  }
472
442
 
@@ -0,0 +1,108 @@
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 { ChargeResponse } from './charge-response';
17
+ import {
18
+ ChargeResponseFromJSON,
19
+ ChargeResponseFromJSONTyped,
20
+ ChargeResponseToJSON,
21
+ ChargeResponseToJSONTyped,
22
+ } from './charge-response';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PlanCustomResponse
28
+ */
29
+ export interface PlanCustomResponse {
30
+ /**
31
+ * The plan name
32
+ * @type {string}
33
+ * @memberof PlanCustomResponse
34
+ */
35
+ name: string;
36
+ /**
37
+ * Description of the plan
38
+ * @type {string}
39
+ * @memberof PlanCustomResponse
40
+ */
41
+ description?: string;
42
+ /**
43
+ * Plan status
44
+ * @type {string}
45
+ * @memberof PlanCustomResponse
46
+ */
47
+ status?: string;
48
+ /**
49
+ * Plan ID
50
+ * @type {string}
51
+ * @memberof PlanCustomResponse
52
+ */
53
+ id: string;
54
+ /**
55
+ * Charges associated with plan
56
+ * @type {Array<ChargeResponse>}
57
+ * @memberof PlanCustomResponse
58
+ */
59
+ charges: Array<ChargeResponse>;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the PlanCustomResponse interface.
64
+ */
65
+ export function instanceOfPlanCustomResponse(value: object): value is PlanCustomResponse {
66
+ if (!('name' in value) || value['name'] === undefined) return false;
67
+ if (!('id' in value) || value['id'] === undefined) return false;
68
+ if (!('charges' in value) || value['charges'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function PlanCustomResponseFromJSON(json: any): PlanCustomResponse {
73
+ return PlanCustomResponseFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function PlanCustomResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanCustomResponse {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'name': json['name'],
83
+ 'description': json['description'] == null ? undefined : json['description'],
84
+ 'status': json['status'] == null ? undefined : json['status'],
85
+ 'id': json['id'],
86
+ 'charges': ((json['charges'] as Array<any>).map(ChargeResponseFromJSON)),
87
+ };
88
+ }
89
+
90
+ export function PlanCustomResponseToJSON(json: any): PlanCustomResponse {
91
+ return PlanCustomResponseToJSONTyped(json, false);
92
+ }
93
+
94
+ export function PlanCustomResponseToJSONTyped(value?: PlanCustomResponse | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'name': value['name'],
102
+ 'description': value['description'],
103
+ 'status': value['status'],
104
+ 'id': value['id'],
105
+ 'charges': ((value['charges'] as Array<any>).map(ChargeResponseToJSON)),
106
+ };
107
+ }
108
+