@digital8/lighting-illusions-ts-sdk 0.0.1841 → 0.0.1843

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 (62) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +8 -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 +1 -3
  7. package/dist/models/AddressResource.d.ts +2 -2
  8. package/dist/models/AddressResource.js +4 -4
  9. package/dist/models/AdminCartResource.d.ts +34 -4
  10. package/dist/models/AdminCartResource.js +32 -10
  11. package/dist/models/AttachCouponCartRequest.d.ts +2 -2
  12. package/dist/models/AttachCouponCartRequest.js +3 -3
  13. package/dist/models/DetachCouponCartRequest.d.ts +32 -0
  14. package/dist/models/DetachCouponCartRequest.js +51 -0
  15. package/dist/models/DiscountType.d.ts +26 -0
  16. package/dist/models/DiscountType.js +52 -0
  17. package/dist/models/DiscountValueType.d.ts +25 -0
  18. package/dist/models/DiscountValueType.js +51 -0
  19. package/dist/models/FrontendCartResource.d.ts +12 -0
  20. package/dist/models/FrontendCartResource.js +8 -0
  21. package/dist/models/LineItemListResource.d.ts +27 -3
  22. package/dist/models/LineItemListResource.js +19 -3
  23. package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
  24. package/dist/models/ProductChildCartLiteResource.js +77 -0
  25. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
  27. package/dist/models/StoreFrontendResource.d.ts +1 -1
  28. package/dist/models/StoreFrontendResource.js +1 -3
  29. package/dist/models/StoreResource.d.ts +1 -1
  30. package/dist/models/StoreResource.js +1 -3
  31. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  32. package/dist/models/StoreSpecialDateResource.js +1 -3
  33. package/dist/models/index.d.ts +5 -0
  34. package/dist/models/index.js +5 -0
  35. package/docs/AdminCartResource.md +16 -6
  36. package/docs/AttachCouponCartRequest.md +2 -2
  37. package/docs/CartsApi.md +8 -8
  38. package/docs/DetachCouponCartRequest.md +34 -0
  39. package/docs/DiscountType.md +32 -0
  40. package/docs/DiscountValueType.md +32 -0
  41. package/docs/FrontendCartResource.md +4 -0
  42. package/docs/LineItemListResource.md +9 -1
  43. package/docs/ProductChildCartLiteResource.md +46 -0
  44. package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
  45. package/docs/StoreSpecialDateResource.md +1 -1
  46. package/package.json +1 -1
  47. package/src/apis/CartsApi.ts +12 -14
  48. package/src/models/AddressFrontendResource.ts +2 -3
  49. package/src/models/AddressResource.ts +5 -5
  50. package/src/models/AdminCartResource.ts +60 -14
  51. package/src/models/AttachCouponCartRequest.ts +5 -5
  52. package/src/models/DetachCouponCartRequest.ts +66 -0
  53. package/src/models/DiscountType.ts +54 -0
  54. package/src/models/DiscountValueType.ts +53 -0
  55. package/src/models/FrontendCartResource.ts +18 -0
  56. package/src/models/LineItemListResource.ts +46 -10
  57. package/src/models/ProductChildCartLiteResource.ts +135 -0
  58. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
  59. package/src/models/StoreFrontendResource.ts +2 -3
  60. package/src/models/StoreResource.ts +2 -3
  61. package/src/models/StoreSpecialDateResource.ts +3 -4
  62. package/src/models/index.ts +5 -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
+
@@ -162,6 +162,18 @@ export interface FrontendCartResource {
162
162
  * @memberof FrontendCartResource
163
163
  */
164
164
  discountPreview: number;
165
+ /**
166
+ *
167
+ * @type {number}
168
+ * @memberof FrontendCartResource
169
+ */
170
+ totalSubtotalDiscount: number;
171
+ /**
172
+ *
173
+ * @type {number}
174
+ * @memberof FrontendCartResource
175
+ */
176
+ totalShippingDiscount: number;
165
177
  /**
166
178
  *
167
179
  * @type {number}
@@ -198,6 +210,8 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
198
210
  if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
199
211
  if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
200
212
  if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
213
+ if (!('totalSubtotalDiscount' in value) || value['totalSubtotalDiscount'] === undefined) return false;
214
+ if (!('totalShippingDiscount' in value) || value['totalShippingDiscount'] === undefined) return false;
201
215
  if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined) return false;
202
216
  if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
203
217
  if (!('status' in value) || value['status'] === undefined) return false;
@@ -233,6 +247,8 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
233
247
  'billingAddress': AddressResourceFromJSON(json['billing_address']),
234
248
  'subtotal': json['subtotal'],
235
249
  'discountPreview': json['discount_preview'],
250
+ 'totalSubtotalDiscount': json['total_subtotal_discount'],
251
+ 'totalShippingDiscount': json['total_shipping_discount'],
236
252
  'shippingEstimate': json['shipping_estimate'],
237
253
  'insuranceEstimate': json['insurance_estimate'],
238
254
  'status': json['status'],
@@ -269,6 +285,8 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
269
285
  'billing_address': AddressResourceToJSON(value['billingAddress']),
270
286
  'subtotal': value['subtotal'],
271
287
  'discount_preview': value['discountPreview'],
288
+ 'total_subtotal_discount': value['totalSubtotalDiscount'],
289
+ 'total_shipping_discount': value['totalShippingDiscount'],
272
290
  'shipping_estimate': value['shippingEstimate'],
273
291
  'insurance_estimate': value['insuranceEstimate'],
274
292
  'status': value['status'],
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ProductChildListResource } from './ProductChildListResource';
16
+ import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
17
17
  import {
18
- ProductChildListResourceFromJSON,
19
- ProductChildListResourceFromJSONTyped,
20
- ProductChildListResourceToJSON,
21
- ProductChildListResourceToJSONTyped,
22
- } from './ProductChildListResource';
18
+ ProductChildCartLiteResourceFromJSON,
19
+ ProductChildCartLiteResourceFromJSONTyped,
20
+ ProductChildCartLiteResourceToJSON,
21
+ ProductChildCartLiteResourceToJSONTyped,
22
+ } from './ProductChildCartLiteResource';
23
23
 
24
24
  /**
25
25
  *
@@ -47,10 +47,34 @@ export interface LineItemListResource {
47
47
  productPrice: number;
48
48
  /**
49
49
  *
50
- * @type {ProductChildListResource}
50
+ * @type {number}
51
+ * @memberof LineItemListResource
52
+ */
53
+ productDiscount: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof LineItemListResource
58
+ */
59
+ totalDiscount: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof LineItemListResource
64
+ */
65
+ lineSubtotal: number;
66
+ /**
67
+ *
68
+ * @type {Array<boolean>}
69
+ * @memberof LineItemListResource
70
+ */
71
+ discounts: Array<boolean>;
72
+ /**
73
+ *
74
+ * @type {ProductChildCartLiteResource}
51
75
  * @memberof LineItemListResource
52
76
  */
53
- productChild: ProductChildListResource | null;
77
+ productChild: ProductChildCartLiteResource | null;
54
78
  }
55
79
 
56
80
  /**
@@ -59,6 +83,10 @@ export interface LineItemListResource {
59
83
  export function instanceOfLineItemListResource(value: object): value is LineItemListResource {
60
84
  if (!('quantity' in value) || value['quantity'] === undefined) return false;
61
85
  if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
86
+ if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
87
+ if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
88
+ if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
89
+ if (!('discounts' in value) || value['discounts'] === undefined) return false;
62
90
  if (!('productChild' in value) || value['productChild'] === undefined) return false;
63
91
  return true;
64
92
  }
@@ -76,7 +104,11 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
76
104
  'id': json['id'] == null ? undefined : json['id'],
77
105
  'quantity': json['quantity'],
78
106
  'productPrice': json['product_price'],
79
- 'productChild': ProductChildListResourceFromJSON(json['product_child']),
107
+ 'productDiscount': json['product_discount'],
108
+ 'totalDiscount': json['total_discount'],
109
+ 'lineSubtotal': json['line_subtotal'],
110
+ 'discounts': json['discounts'],
111
+ 'productChild': ProductChildCartLiteResourceFromJSON(json['product_child']),
80
112
  };
81
113
  }
82
114
 
@@ -94,7 +126,11 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
94
126
  'id': value['id'],
95
127
  'quantity': value['quantity'],
96
128
  'product_price': value['productPrice'],
97
- 'product_child': ProductChildListResourceToJSON(value['productChild']),
129
+ 'product_discount': value['productDiscount'],
130
+ 'total_discount': value['totalDiscount'],
131
+ 'line_subtotal': value['lineSubtotal'],
132
+ 'discounts': value['discounts'],
133
+ 'product_child': ProductChildCartLiteResourceToJSON(value['productChild']),
98
134
  };
99
135
  }
100
136
 
@@ -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
+
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website: string;
51
+ website?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
106
106
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
107
107
  if (!('name' in value) || value['name'] === undefined) return false;
108
108
  if (!('email' in value) || value['email'] === undefined) return false;
109
- if (!('website' in value) || value['website'] === undefined) return false;
110
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
129
  'siteId': json['siteId'],
131
130
  'name': json['name'],
132
131
  'email': json['email'],
133
- 'website': json['website'],
132
+ 'website': json['website'] == null ? undefined : json['website'],
134
133
  'phone': json['phone'],
135
134
  'address': json['address'] == null ? undefined : json['address'],
136
135
  'latitude': json['latitude'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine: string;
92
+ tagLine?: string | null;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -137,7 +137,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
137
137
  if (!('phone' in value) || value['phone'] === undefined) return false;
138
138
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
139
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
141
140
  if (!('email' in value) || value['email'] === undefined) return false;
142
141
  if (!('website' in value) || value['website'] === undefined) return false;
143
142
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -162,7 +161,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
162
161
  'phone': json['phone'],
163
162
  'longitude': json['longitude'],
164
163
  'latitude': json['latitude'],
165
- 'tagLine': json['tag_line'],
164
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
166
165
  'email': json['email'],
167
166
  'website': json['website'],
168
167
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
- if (!('date' in value) || value['date'] === undefined) return false;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['display_start_date'],
95
94
  'displayEndDate': json['display_end_date'],
@@ -74,6 +74,7 @@ export * from './DestroyAttributeValueRequest';
74
74
  export * from './DetachAccessoriesProductRangeRequest';
75
75
  export * from './DetachAssetableOverlayTemplateRequest';
76
76
  export * from './DetachAttributesProductRangeRequest';
77
+ export * from './DetachCouponCartRequest';
77
78
  export * from './DetachDocumentablesDocumentRequest';
78
79
  export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
79
80
  export * from './DetachDocumentsProductChildRequest';
@@ -81,6 +82,8 @@ export * from './DetachDocumentsProductRangeRequest';
81
82
  export * from './DetachProductsProductCategoryRequest';
82
83
  export * from './DetachStoresSupplierRequest';
83
84
  export * from './DetachSuppliersStoreRequest';
85
+ export * from './DiscountType';
86
+ export * from './DiscountValueType';
84
87
  export * from './DocumentFileForUploadResource';
85
88
  export * from './DocumentFileForUploadResourceArrayResponse';
86
89
  export * from './DocumentFrontendResource';
@@ -267,6 +270,8 @@ export * from './ProductChildAttributeGroupedResource';
267
270
  export * from './ProductChildAttributeGroupedResourceArrayResponse';
268
271
  export * from './ProductChildAttributeResource';
269
272
  export * from './ProductChildAttributeResourceArrayResponse';
273
+ export * from './ProductChildCartLiteResource';
274
+ export * from './ProductChildCartLiteResourceArrayResponse';
270
275
  export * from './ProductChildListResource';
271
276
  export * from './ProductChildListResourceArrayResponse';
272
277
  export * from './ProductChildLiteResource';