@digital8/lighting-illusions-ts-sdk 0.0.1897 → 0.0.1898

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 (70) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +12 -3
  3. package/dist/apis/CartsApi.d.ts +6 -6
  4. package/dist/apis/CartsApi.js +3 -5
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +1 -3
  9. package/dist/models/CartCouponResource.d.ts +50 -0
  10. package/dist/models/CartCouponResource.js +63 -0
  11. package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/CartCouponResourceArrayResponse.js +50 -0
  13. package/dist/models/CartResource.d.ts +37 -6
  14. package/dist/models/CartResource.js +35 -12
  15. package/dist/models/DetachCouponCartRequest.d.ts +32 -0
  16. package/dist/models/DetachCouponCartRequest.js +51 -0
  17. package/dist/models/DiscountType.d.ts +26 -0
  18. package/dist/models/DiscountType.js +52 -0
  19. package/dist/models/DiscountValueType.d.ts +25 -0
  20. package/dist/models/DiscountValueType.js +51 -0
  21. package/dist/models/LineItemDiscountResource.d.ts +50 -0
  22. package/dist/models/LineItemDiscountResource.js +63 -0
  23. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +33 -0
  24. package/dist/models/LineItemDiscountResourceArrayResponse.js +50 -0
  25. package/dist/models/LineItemListResource.d.ts +29 -4
  26. package/dist/models/LineItemListResource.js +23 -4
  27. package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
  28. package/dist/models/ProductChildCartLiteResource.js +77 -0
  29. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
  31. package/dist/models/StoreListResource.d.ts +1 -1
  32. package/dist/models/StoreListResource.js +3 -1
  33. package/dist/models/StoreResource.d.ts +1 -1
  34. package/dist/models/StoreResource.js +3 -1
  35. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  36. package/dist/models/StoreSpecialDateResource.js +1 -3
  37. package/dist/models/index.d.ts +9 -0
  38. package/dist/models/index.js +9 -0
  39. package/docs/CartCouponResource.md +40 -0
  40. package/docs/CartCouponResourceArrayResponse.md +34 -0
  41. package/docs/CartResource.md +17 -7
  42. package/docs/CartsApi.md +8 -8
  43. package/docs/DetachCouponCartRequest.md +34 -0
  44. package/docs/DiscountType.md +32 -0
  45. package/docs/DiscountValueType.md +32 -0
  46. package/docs/LineItemDiscountResource.md +40 -0
  47. package/docs/LineItemDiscountResourceArrayResponse.md +34 -0
  48. package/docs/LineItemListResource.md +9 -1
  49. package/docs/ProductChildCartLiteResource.md +46 -0
  50. package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
  51. package/docs/StoreSpecialDateResource.md +1 -1
  52. package/package.json +1 -1
  53. package/src/apis/CartsApi.ts +12 -14
  54. package/src/models/AddressFrontendResource.ts +3 -2
  55. package/src/models/AddressResource.ts +2 -3
  56. package/src/models/CartCouponResource.ts +93 -0
  57. package/src/models/CartCouponResourceArrayResponse.ts +73 -0
  58. package/src/models/CartResource.ts +71 -18
  59. package/src/models/DetachCouponCartRequest.ts +66 -0
  60. package/src/models/DiscountType.ts +54 -0
  61. package/src/models/DiscountValueType.ts +53 -0
  62. package/src/models/LineItemDiscountResource.ts +93 -0
  63. package/src/models/LineItemDiscountResourceArrayResponse.ts +73 -0
  64. package/src/models/LineItemListResource.ts +56 -12
  65. package/src/models/ProductChildCartLiteResource.ts +135 -0
  66. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
  67. package/src/models/StoreListResource.ts +3 -2
  68. package/src/models/StoreResource.ts +3 -2
  69. package/src/models/StoreSpecialDateResource.ts +3 -4
  70. package/src/models/index.ts +9 -0
@@ -0,0 +1,66 @@
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 DetachCouponCartRequest
20
+ */
21
+ export interface DetachCouponCartRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof DetachCouponCartRequest
26
+ */
27
+ couponIds: Array<number>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the DetachCouponCartRequest interface.
32
+ */
33
+ export function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest {
34
+ if (!('couponIds' in value) || value['couponIds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest {
39
+ return DetachCouponCartRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'couponIds': json['coupon_ids'],
49
+ };
50
+ }
51
+
52
+ export function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest {
53
+ return DetachCouponCartRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'coupon_ids': value['couponIds'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,54 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const DiscountType = {
21
+ Shipping: 'shipping',
22
+ Subtotal: 'subtotal',
23
+ Product: 'product'
24
+ } as const;
25
+ export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
26
+
27
+
28
+ export function instanceOfDiscountType(value: any): boolean {
29
+ for (const key in DiscountType) {
30
+ if (Object.prototype.hasOwnProperty.call(DiscountType, key)) {
31
+ if (DiscountType[key as keyof typeof DiscountType] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function DiscountTypeFromJSON(json: any): DiscountType {
40
+ return DiscountTypeFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType {
44
+ return json as DiscountType;
45
+ }
46
+
47
+ export function DiscountTypeToJSON(value?: DiscountType | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType {
52
+ return value as DiscountType;
53
+ }
54
+
@@ -0,0 +1,53 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const DiscountValueType = {
21
+ FixedValue: 'fixed_value',
22
+ Percentage: 'percentage'
23
+ } as const;
24
+ export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
25
+
26
+
27
+ export function instanceOfDiscountValueType(value: any): boolean {
28
+ for (const key in DiscountValueType) {
29
+ if (Object.prototype.hasOwnProperty.call(DiscountValueType, key)) {
30
+ if (DiscountValueType[key as keyof typeof DiscountValueType] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function DiscountValueTypeFromJSON(json: any): DiscountValueType {
39
+ return DiscountValueTypeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType {
43
+ return json as DiscountValueType;
44
+ }
45
+
46
+ export function DiscountValueTypeToJSON(value?: DiscountValueType | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType {
51
+ return value as DiscountValueType;
52
+ }
53
+
@@ -0,0 +1,93 @@
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 LineItemDiscountResource
20
+ */
21
+ export interface LineItemDiscountResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof LineItemDiscountResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof LineItemDiscountResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof LineItemDiscountResource
38
+ */
39
+ discountTotal: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof LineItemDiscountResource
44
+ */
45
+ couponCode: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the LineItemDiscountResource interface.
50
+ */
51
+ export function instanceOfLineItemDiscountResource(value: object): value is LineItemDiscountResource {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
53
+ if (!('name' in value) || value['name'] === undefined) return false;
54
+ if (!('discountTotal' in value) || value['discountTotal'] === undefined) return false;
55
+ if (!('couponCode' in value) || value['couponCode'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function LineItemDiscountResourceFromJSON(json: any): LineItemDiscountResource {
60
+ return LineItemDiscountResourceFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function LineItemDiscountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResource {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'name': json['name'],
71
+ 'discountTotal': json['discount_total'],
72
+ 'couponCode': json['coupon_code'],
73
+ };
74
+ }
75
+
76
+ export function LineItemDiscountResourceToJSON(json: any): LineItemDiscountResource {
77
+ return LineItemDiscountResourceToJSONTyped(json, false);
78
+ }
79
+
80
+ export function LineItemDiscountResourceToJSONTyped(value?: LineItemDiscountResource | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'name': value['name'],
89
+ 'discount_total': value['discountTotal'],
90
+ 'coupon_code': value['couponCode'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,73 @@
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 { LineItemDiscountResource } from './LineItemDiscountResource';
17
+ import {
18
+ LineItemDiscountResourceFromJSON,
19
+ LineItemDiscountResourceFromJSONTyped,
20
+ LineItemDiscountResourceToJSON,
21
+ LineItemDiscountResourceToJSONTyped,
22
+ } from './LineItemDiscountResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface LineItemDiscountResourceArrayResponse
28
+ */
29
+ export interface LineItemDiscountResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<LineItemDiscountResource>}
33
+ * @memberof LineItemDiscountResourceArrayResponse
34
+ */
35
+ data?: Array<LineItemDiscountResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the LineItemDiscountResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfLineItemDiscountResourceArrayResponse(value: object): value is LineItemDiscountResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function LineItemDiscountResourceArrayResponseFromJSON(json: any): LineItemDiscountResourceArrayResponse {
46
+ return LineItemDiscountResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function LineItemDiscountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LineItemDiscountResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function LineItemDiscountResourceArrayResponseToJSON(json: any): LineItemDiscountResourceArrayResponse {
60
+ return LineItemDiscountResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function LineItemDiscountResourceArrayResponseToJSONTyped(value?: LineItemDiscountResourceArrayResponse | 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(LineItemDiscountResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -13,13 +13,20 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductChildListResource } from './ProductChildListResource';
16
+ import type { LineItemDiscountResource } from './LineItemDiscountResource';
17
17
  import {
18
- ProductChildListResourceFromJSON,
19
- ProductChildListResourceFromJSONTyped,
20
- ProductChildListResourceToJSON,
21
- ProductChildListResourceToJSONTyped,
22
- } from './ProductChildListResource';
18
+ LineItemDiscountResourceFromJSON,
19
+ LineItemDiscountResourceFromJSONTyped,
20
+ LineItemDiscountResourceToJSON,
21
+ LineItemDiscountResourceToJSONTyped,
22
+ } from './LineItemDiscountResource';
23
+ import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
24
+ import {
25
+ ProductChildCartLiteResourceFromJSON,
26
+ ProductChildCartLiteResourceFromJSONTyped,
27
+ ProductChildCartLiteResourceToJSON,
28
+ ProductChildCartLiteResourceToJSONTyped,
29
+ } from './ProductChildCartLiteResource';
23
30
 
24
31
  /**
25
32
  *
@@ -32,7 +39,7 @@ export interface LineItemListResource {
32
39
  * @type {number}
33
40
  * @memberof LineItemListResource
34
41
  */
35
- id?: number | null;
42
+ id: number;
36
43
  /**
37
44
  *
38
45
  * @type {number}
@@ -47,18 +54,47 @@ export interface LineItemListResource {
47
54
  productPrice: number;
48
55
  /**
49
56
  *
50
- * @type {ProductChildListResource}
57
+ * @type {number}
58
+ * @memberof LineItemListResource
59
+ */
60
+ productDiscount: number;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof LineItemListResource
65
+ */
66
+ totalDiscount: number;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof LineItemListResource
71
+ */
72
+ lineSubtotal: number;
73
+ /**
74
+ *
75
+ * @type {Array<LineItemDiscountResource>}
76
+ * @memberof LineItemListResource
77
+ */
78
+ discounts: Array<LineItemDiscountResource> | null;
79
+ /**
80
+ *
81
+ * @type {ProductChildCartLiteResource}
51
82
  * @memberof LineItemListResource
52
83
  */
53
- productChild: ProductChildListResource | null;
84
+ productChild: ProductChildCartLiteResource | null;
54
85
  }
55
86
 
56
87
  /**
57
88
  * Check if a given object implements the LineItemListResource interface.
58
89
  */
59
90
  export function instanceOfLineItemListResource(value: object): value is LineItemListResource {
91
+ if (!('id' in value) || value['id'] === undefined) return false;
60
92
  if (!('quantity' in value) || value['quantity'] === undefined) return false;
61
93
  if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
94
+ if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
95
+ if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
96
+ if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
97
+ if (!('discounts' in value) || value['discounts'] === undefined) return false;
62
98
  if (!('productChild' in value) || value['productChild'] === undefined) return false;
63
99
  return true;
64
100
  }
@@ -73,10 +109,14 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
73
109
  }
74
110
  return {
75
111
 
76
- 'id': json['id'] == null ? undefined : json['id'],
112
+ 'id': json['id'],
77
113
  'quantity': json['quantity'],
78
114
  'productPrice': json['product_price'],
79
- 'productChild': ProductChildListResourceFromJSON(json['product_child']),
115
+ 'productDiscount': json['product_discount'],
116
+ 'totalDiscount': json['total_discount'],
117
+ 'lineSubtotal': json['line_subtotal'],
118
+ 'discounts': (json['discounts'] == null ? null : (json['discounts'] as Array<any>).map(LineItemDiscountResourceFromJSON)),
119
+ 'productChild': ProductChildCartLiteResourceFromJSON(json['product_child']),
80
120
  };
81
121
  }
82
122
 
@@ -94,7 +134,11 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
94
134
  'id': value['id'],
95
135
  'quantity': value['quantity'],
96
136
  'product_price': value['productPrice'],
97
- 'product_child': ProductChildListResourceToJSON(value['productChild']),
137
+ 'product_discount': value['productDiscount'],
138
+ 'total_discount': value['totalDiscount'],
139
+ 'line_subtotal': value['lineSubtotal'],
140
+ 'discounts': (value['discounts'] == null ? null : (value['discounts'] as Array<any>).map(LineItemDiscountResourceToJSON)),
141
+ 'product_child': ProductChildCartLiteResourceToJSON(value['productChild']),
98
142
  };
99
143
  }
100
144
 
@@ -0,0 +1,135 @@
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 { LabelResource } from './LabelResource';
17
+ import {
18
+ LabelResourceFromJSON,
19
+ LabelResourceFromJSONTyped,
20
+ LabelResourceToJSON,
21
+ LabelResourceToJSONTyped,
22
+ } from './LabelResource';
23
+ import type { AssetLiteResource } from './AssetLiteResource';
24
+ import {
25
+ AssetLiteResourceFromJSON,
26
+ AssetLiteResourceFromJSONTyped,
27
+ AssetLiteResourceToJSON,
28
+ AssetLiteResourceToJSONTyped,
29
+ } from './AssetLiteResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ProductChildCartLiteResource
35
+ */
36
+ export interface ProductChildCartLiteResource {
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ProductChildCartLiteResource
41
+ */
42
+ id: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof ProductChildCartLiteResource
47
+ */
48
+ parentId: number;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ProductChildCartLiteResource
53
+ */
54
+ sku: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ProductChildCartLiteResource
59
+ */
60
+ model: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ProductChildCartLiteResource
65
+ */
66
+ name: string;
67
+ /**
68
+ *
69
+ * @type {AssetLiteResource}
70
+ * @memberof ProductChildCartLiteResource
71
+ */
72
+ thumbnail: AssetLiteResource | null;
73
+ /**
74
+ *
75
+ * @type {LabelResource}
76
+ * @memberof ProductChildCartLiteResource
77
+ */
78
+ label: LabelResource | null;
79
+ }
80
+
81
+ /**
82
+ * Check if a given object implements the ProductChildCartLiteResource interface.
83
+ */
84
+ export function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource {
85
+ if (!('id' in value) || value['id'] === undefined) return false;
86
+ if (!('parentId' in value) || value['parentId'] === undefined) return false;
87
+ if (!('sku' in value) || value['sku'] === undefined) return false;
88
+ if (!('model' in value) || value['model'] === undefined) return false;
89
+ if (!('name' in value) || value['name'] === undefined) return false;
90
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
91
+ if (!('label' in value) || value['label'] === undefined) return false;
92
+ return true;
93
+ }
94
+
95
+ export function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource {
96
+ return ProductChildCartLiteResourceFromJSONTyped(json, false);
97
+ }
98
+
99
+ export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource {
100
+ if (json == null) {
101
+ return json;
102
+ }
103
+ return {
104
+
105
+ 'id': json['id'],
106
+ 'parentId': json['parent_id'],
107
+ 'sku': json['sku'],
108
+ 'model': json['model'],
109
+ 'name': json['name'],
110
+ 'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
111
+ 'label': LabelResourceFromJSON(json['label']),
112
+ };
113
+ }
114
+
115
+ export function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource {
116
+ return ProductChildCartLiteResourceToJSONTyped(json, false);
117
+ }
118
+
119
+ export function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'id': value['id'],
127
+ 'parent_id': value['parentId'],
128
+ 'sku': value['sku'],
129
+ 'model': value['model'],
130
+ 'name': value['name'],
131
+ 'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
132
+ 'label': LabelResourceToJSON(value['label']),
133
+ };
134
+ }
135
+
@@ -0,0 +1,73 @@
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
+
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website?: string | null;
83
+ website: string;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -100,6 +100,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
100
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
101
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
102
102
  if (!('email' in value) || value['email'] === undefined) return false;
103
+ if (!('website' in value) || value['website'] === undefined) return false;
103
104
  return true;
104
105
  }
105
106
 
@@ -121,7 +122,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
121
122
  'latitude': json['latitude'],
122
123
  'tagLine': json['tag_line'],
123
124
  'email': json['email'],
124
- 'website': json['website'] == null ? undefined : json['website'],
125
+ 'website': json['website'],
125
126
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
126
127
  };
127
128
  }