@digital8/lighting-illusions-ts-sdk 0.0.2021 → 0.0.2023

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 (61) hide show
  1. package/.openapi-generator/FILES +4 -6
  2. package/README.md +4 -5
  3. package/dist/models/CartResource.d.ts +5 -5
  4. package/dist/models/CartResource.js +5 -5
  5. package/dist/models/CreateCartRequest.d.ts +12 -7
  6. package/dist/models/CreateCartRequest.js +7 -4
  7. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  8. package/dist/models/ExternalApiLogResource.js +1 -3
  9. package/dist/models/LineItemListResource.d.ts +3 -3
  10. package/dist/models/LineItemListResource.js +3 -3
  11. package/dist/models/ProductChildLineItemLiteResource.d.ts +88 -0
  12. package/dist/models/{ProductChildCartLiteResource.js → ProductChildLineItemLiteResource.js} +13 -13
  13. package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +50 -0
  15. package/dist/models/SearchCartsRequest.d.ts +6 -15
  16. package/dist/models/SearchCartsRequest.js +3 -11
  17. package/dist/models/StoreFrontendResource.d.ts +1 -1
  18. package/dist/models/StoreFrontendResource.js +3 -1
  19. package/dist/models/StoreListResource.d.ts +1 -1
  20. package/dist/models/StoreListResource.js +1 -3
  21. package/dist/models/StoreResource.d.ts +1 -1
  22. package/dist/models/StoreResource.js +1 -3
  23. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  24. package/dist/models/StoreSpecialDateResource.js +3 -1
  25. package/dist/models/UpdateCartRequest.d.ts +18 -7
  26. package/dist/models/UpdateCartRequest.js +6 -3
  27. package/dist/models/UpdateOrderRequest.d.ts +2 -2
  28. package/dist/models/UpdateOrderRequest.js +6 -2
  29. package/dist/models/index.d.ts +2 -3
  30. package/dist/models/index.js +2 -3
  31. package/docs/CartResource.md +2 -2
  32. package/docs/CreateCartRequest.md +4 -2
  33. package/docs/LineItemListResource.md +1 -1
  34. package/docs/{ProductChildCartLiteResource.md → ProductChildLineItemLiteResource.md} +4 -4
  35. package/docs/{ProductChildCartLiteResourceArrayResponse.md → ProductChildLineItemLiteResourceArrayResponse.md} +5 -5
  36. package/docs/SearchCartsRequest.md +2 -2
  37. package/docs/StoreSpecialDateResource.md +1 -1
  38. package/docs/UpdateCartRequest.md +6 -2
  39. package/package.json +1 -1
  40. package/src/models/CartResource.ts +14 -14
  41. package/src/models/CreateCartRequest.ts +18 -16
  42. package/src/models/ExternalApiLogResource.ts +2 -3
  43. package/src/models/LineItemListResource.ts +10 -10
  44. package/src/models/{ProductChildCartLiteResource.ts → ProductChildLineItemLiteResource.ts} +20 -20
  45. package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +73 -0
  46. package/src/models/SearchCartsRequest.ts +8 -18
  47. package/src/models/StoreFrontendResource.ts +3 -2
  48. package/src/models/StoreListResource.ts +2 -3
  49. package/src/models/StoreResource.ts +2 -3
  50. package/src/models/StoreSpecialDateResource.ts +4 -3
  51. package/src/models/UpdateCartRequest.ts +24 -15
  52. package/src/models/UpdateOrderRequest.ts +6 -4
  53. package/src/models/index.ts +2 -3
  54. package/dist/models/CreateCartRequestCustomer.d.ts +0 -50
  55. package/dist/models/CreateCartRequestCustomer.js +0 -55
  56. package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
  57. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  58. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  59. package/docs/CreateCartRequestCustomer.md +0 -40
  60. package/src/models/CreateCartRequestCustomer.ts +0 -89
  61. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
@@ -56,7 +56,7 @@ export interface UpdateOrderRequest {
56
56
  * @type {number}
57
57
  * @memberof UpdateOrderRequest
58
58
  */
59
- shippingSubtotal?: number | null;
59
+ shippingSubtotal: number;
60
60
  /**
61
61
  *
62
62
  * @type {boolean}
@@ -68,7 +68,7 @@ export interface UpdateOrderRequest {
68
68
  * @type {number}
69
69
  * @memberof UpdateOrderRequest
70
70
  */
71
- insuranceAmount?: number | null;
71
+ insuranceAmount: number;
72
72
  /**
73
73
  *
74
74
  * @type {boolean}
@@ -137,6 +137,8 @@ export function instanceOfUpdateOrderRequest(value: object): value is UpdateOrde
137
137
  if (!('statusId' in value) || value['statusId'] === undefined) return false;
138
138
  if (!('source' in value) || value['source'] === undefined) return false;
139
139
  if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
140
+ if (!('shippingSubtotal' in value) || value['shippingSubtotal'] === undefined) return false;
141
+ if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
140
142
  return true;
141
143
  }
142
144
 
@@ -154,9 +156,9 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
154
156
  'statusId': json['status_id'],
155
157
  'source': json['source'],
156
158
  'shippingType': json['shipping_type'],
157
- 'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
159
+ 'shippingSubtotal': json['shipping_subtotal'],
158
160
  'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
159
- 'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
161
+ 'insuranceAmount': json['insurance_amount'],
160
162
  'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
161
163
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
162
164
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
@@ -87,7 +87,6 @@ export * from './CreateBlogCategoryRequest';
87
87
  export * from './CreateBlogCategoryRequestDescriptionsInner';
88
88
  export * from './CreateBlogCategoryRequestSeoInner';
89
89
  export * from './CreateCartRequest';
90
- export * from './CreateCartRequestCustomer';
91
90
  export * from './CreateCartRequestItemsInner';
92
91
  export * from './CreateCartRequestShippingAddress';
93
92
  export * from './CreateCustomerRequest';
@@ -353,10 +352,10 @@ export * from './ProductChildAttributeGroupedResource';
353
352
  export * from './ProductChildAttributeGroupedResourceArrayResponse';
354
353
  export * from './ProductChildAttributeResource';
355
354
  export * from './ProductChildAttributeResourceArrayResponse';
356
- export * from './ProductChildCartLiteResource';
357
- export * from './ProductChildCartLiteResourceArrayResponse';
358
355
  export * from './ProductChildFrontendResource';
359
356
  export * from './ProductChildFrontendResourceArrayResponse';
357
+ export * from './ProductChildLineItemLiteResource';
358
+ export * from './ProductChildLineItemLiteResourceArrayResponse';
360
359
  export * from './ProductChildListResource';
361
360
  export * from './ProductChildListResourceArrayResponse';
362
361
  export * from './ProductChildLiteResource';
@@ -1,50 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
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 CreateCartRequestCustomer
16
- */
17
- export interface CreateCartRequestCustomer {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof CreateCartRequestCustomer
22
- */
23
- firstName?: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateCartRequestCustomer
28
- */
29
- lastName?: string | null;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof CreateCartRequestCustomer
34
- */
35
- email?: string | null;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof CreateCartRequestCustomer
40
- */
41
- phone?: string | null;
42
- }
43
- /**
44
- * Check if a given object implements the CreateCartRequestCustomer interface.
45
- */
46
- export declare function instanceOfCreateCartRequestCustomer(value: object): value is CreateCartRequestCustomer;
47
- export declare function CreateCartRequestCustomerFromJSON(json: any): CreateCartRequestCustomer;
48
- export declare function CreateCartRequestCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCartRequestCustomer;
49
- export declare function CreateCartRequestCustomerToJSON(json: any): CreateCartRequestCustomer;
50
- export declare function CreateCartRequestCustomerToJSONTyped(value?: CreateCartRequestCustomer | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
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.instanceOfCreateCartRequestCustomer = instanceOfCreateCartRequestCustomer;
17
- exports.CreateCartRequestCustomerFromJSON = CreateCartRequestCustomerFromJSON;
18
- exports.CreateCartRequestCustomerFromJSONTyped = CreateCartRequestCustomerFromJSONTyped;
19
- exports.CreateCartRequestCustomerToJSON = CreateCartRequestCustomerToJSON;
20
- exports.CreateCartRequestCustomerToJSONTyped = CreateCartRequestCustomerToJSONTyped;
21
- /**
22
- * Check if a given object implements the CreateCartRequestCustomer interface.
23
- */
24
- function instanceOfCreateCartRequestCustomer(value) {
25
- return true;
26
- }
27
- function CreateCartRequestCustomerFromJSON(json) {
28
- return CreateCartRequestCustomerFromJSONTyped(json, false);
29
- }
30
- function CreateCartRequestCustomerFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'firstName': json['first_name'] == null ? undefined : json['first_name'],
36
- 'lastName': json['last_name'] == null ? undefined : json['last_name'],
37
- 'email': json['email'] == null ? undefined : json['email'],
38
- 'phone': json['phone'] == null ? undefined : json['phone'],
39
- };
40
- }
41
- function CreateCartRequestCustomerToJSON(json) {
42
- return CreateCartRequestCustomerToJSONTyped(json, false);
43
- }
44
- function CreateCartRequestCustomerToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'first_name': value['firstName'],
51
- 'last_name': value['lastName'],
52
- 'email': value['email'],
53
- 'phone': value['phone'],
54
- };
55
- }
@@ -1,88 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
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 { LabelResource } from './LabelResource';
13
- import type { AssetLiteResource } from './AssetLiteResource';
14
- /**
15
- *
16
- * @export
17
- * @interface ProductChildCartLiteResource
18
- */
19
- export interface ProductChildCartLiteResource {
20
- /**
21
- *
22
- * @type {number}
23
- * @memberof ProductChildCartLiteResource
24
- */
25
- id: number;
26
- /**
27
- *
28
- * @type {number}
29
- * @memberof ProductChildCartLiteResource
30
- */
31
- parentId: number;
32
- /**
33
- *
34
- * @type {string}
35
- * @memberof ProductChildCartLiteResource
36
- */
37
- sku: string;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof ProductChildCartLiteResource
42
- */
43
- model: string;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof ProductChildCartLiteResource
48
- */
49
- modelNumber: string;
50
- /**
51
- *
52
- * @type {string}
53
- * @memberof ProductChildCartLiteResource
54
- */
55
- name: string;
56
- /**
57
- *
58
- * @type {number}
59
- * @memberof ProductChildCartLiteResource
60
- */
61
- stock: number;
62
- /**
63
- *
64
- * @type {number}
65
- * @memberof ProductChildCartLiteResource
66
- */
67
- salePrice: number;
68
- /**
69
- *
70
- * @type {AssetLiteResource}
71
- * @memberof ProductChildCartLiteResource
72
- */
73
- thumbnail: AssetLiteResource | null;
74
- /**
75
- *
76
- * @type {LabelResource}
77
- * @memberof ProductChildCartLiteResource
78
- */
79
- label: LabelResource | null;
80
- }
81
- /**
82
- * Check if a given object implements the ProductChildCartLiteResource interface.
83
- */
84
- export declare function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource;
85
- export declare function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource;
86
- export declare function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource;
87
- export declare function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource;
88
- export declare function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
13
- /**
14
- *
15
- * @export
16
- * @interface ProductChildCartLiteResourceArrayResponse
17
- */
18
- export interface ProductChildCartLiteResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<ProductChildCartLiteResource>}
22
- * @memberof ProductChildCartLiteResourceArrayResponse
23
- */
24
- data?: Array<ProductChildCartLiteResource>;
25
- }
26
- /**
27
- * Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse;
30
- export declare function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse;
31
- export declare function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse;
32
- export declare function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse;
33
- export declare function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
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.instanceOfProductChildCartLiteResourceArrayResponse = instanceOfProductChildCartLiteResourceArrayResponse;
17
- exports.ProductChildCartLiteResourceArrayResponseFromJSON = ProductChildCartLiteResourceArrayResponseFromJSON;
18
- exports.ProductChildCartLiteResourceArrayResponseFromJSONTyped = ProductChildCartLiteResourceArrayResponseFromJSONTyped;
19
- exports.ProductChildCartLiteResourceArrayResponseToJSON = ProductChildCartLiteResourceArrayResponseToJSON;
20
- exports.ProductChildCartLiteResourceArrayResponseToJSONTyped = ProductChildCartLiteResourceArrayResponseToJSONTyped;
21
- var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
22
- /**
23
- * Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
24
- */
25
- function instanceOfProductChildCartLiteResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function ProductChildCartLiteResourceArrayResponseFromJSON(json) {
29
- return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)),
37
- };
38
- }
39
- function ProductChildCartLiteResourceArrayResponseToJSON(json) {
40
- return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function ProductChildCartLiteResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)),
49
- };
50
- }
@@ -1,40 +0,0 @@
1
-
2
- # CreateCartRequestCustomer
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `firstName` | string
10
- `lastName` | string
11
- `email` | string
12
- `phone` | string
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import type { CreateCartRequestCustomer } from '@digital8/lighting-illusions-ts-sdk'
18
-
19
- // TODO: Update the object below with actual values
20
- const example = {
21
- "firstName": null,
22
- "lastName": null,
23
- "email": null,
24
- "phone": null,
25
- } satisfies CreateCartRequestCustomer
26
-
27
- console.log(example)
28
-
29
- // Convert the instance to a JSON string
30
- const exampleJSON: string = JSON.stringify(example)
31
- console.log(exampleJSON)
32
-
33
- // Parse the JSON string back to an object
34
- const exampleParsed = JSON.parse(exampleJSON) as CreateCartRequestCustomer
35
- console.log(exampleParsed)
36
- ```
37
-
38
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
-
40
-
@@ -1,89 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
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 CreateCartRequestCustomer
20
- */
21
- export interface CreateCartRequestCustomer {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateCartRequestCustomer
26
- */
27
- firstName?: string | null;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CreateCartRequestCustomer
32
- */
33
- lastName?: string | null;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof CreateCartRequestCustomer
38
- */
39
- email?: string | null;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof CreateCartRequestCustomer
44
- */
45
- phone?: string | null;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the CreateCartRequestCustomer interface.
50
- */
51
- export function instanceOfCreateCartRequestCustomer(value: object): value is CreateCartRequestCustomer {
52
- return true;
53
- }
54
-
55
- export function CreateCartRequestCustomerFromJSON(json: any): CreateCartRequestCustomer {
56
- return CreateCartRequestCustomerFromJSONTyped(json, false);
57
- }
58
-
59
- export function CreateCartRequestCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCartRequestCustomer {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'firstName': json['first_name'] == null ? undefined : json['first_name'],
66
- 'lastName': json['last_name'] == null ? undefined : json['last_name'],
67
- 'email': json['email'] == null ? undefined : json['email'],
68
- 'phone': json['phone'] == null ? undefined : json['phone'],
69
- };
70
- }
71
-
72
- export function CreateCartRequestCustomerToJSON(json: any): CreateCartRequestCustomer {
73
- return CreateCartRequestCustomerToJSONTyped(json, false);
74
- }
75
-
76
- export function CreateCartRequestCustomerToJSONTyped(value?: CreateCartRequestCustomer | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'first_name': value['firstName'],
84
- 'last_name': value['lastName'],
85
- 'email': value['email'],
86
- 'phone': value['phone'],
87
- };
88
- }
89
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
17
- import {
18
- ProductChildCartLiteResourceFromJSON,
19
- ProductChildCartLiteResourceFromJSONTyped,
20
- ProductChildCartLiteResourceToJSON,
21
- ProductChildCartLiteResourceToJSONTyped,
22
- } from './ProductChildCartLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface ProductChildCartLiteResourceArrayResponse
28
- */
29
- export interface ProductChildCartLiteResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<ProductChildCartLiteResource>}
33
- * @memberof ProductChildCartLiteResourceArrayResponse
34
- */
35
- data?: Array<ProductChildCartLiteResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
40
- */
41
- export function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse {
46
- return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildCartLiteResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse {
60
- return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductChildCartLiteResourceToJSON)),
71
- };
72
- }
73
-