@digital8/lighting-illusions-ts-sdk 0.0.1860 → 0.0.1862

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 (66) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +10 -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 +2 -2
  6. package/dist/models/AddressFrontendResource.js +6 -2
  7. package/dist/models/AddressResource.d.ts +2 -2
  8. package/dist/models/AddressResource.js +3 -5
  9. package/dist/models/AttachCouponCartRequest.d.ts +2 -2
  10. package/dist/models/AttachCouponCartRequest.js +3 -3
  11. package/dist/models/CartResource.d.ts +34 -4
  12. package/dist/models/CartResource.js +32 -10
  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/ExternalApiLogResource.d.ts +1 -1
  20. package/dist/models/ExternalApiLogResource.js +1 -3
  21. package/dist/models/LineItemDiscountResource.d.ts +44 -0
  22. package/dist/models/LineItemDiscountResource.js +59 -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 +27 -3
  26. package/dist/models/LineItemListResource.js +19 -3
  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/StoreFrontendResource.d.ts +1 -1
  32. package/dist/models/StoreFrontendResource.js +3 -1
  33. package/dist/models/StoreResource.d.ts +1 -1
  34. package/dist/models/StoreResource.js +3 -1
  35. package/dist/models/index.d.ts +7 -0
  36. package/dist/models/index.js +7 -0
  37. package/docs/AddressResource.md +2 -2
  38. package/docs/AttachCouponCartRequest.md +2 -2
  39. package/docs/CartResource.md +16 -6
  40. package/docs/CartsApi.md +8 -8
  41. package/docs/DetachCouponCartRequest.md +34 -0
  42. package/docs/DiscountType.md +32 -0
  43. package/docs/DiscountValueType.md +32 -0
  44. package/docs/LineItemDiscountResource.md +38 -0
  45. package/docs/LineItemDiscountResourceArrayResponse.md +34 -0
  46. package/docs/LineItemListResource.md +9 -1
  47. package/docs/ProductChildCartLiteResource.md +46 -0
  48. package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
  49. package/package.json +1 -1
  50. package/src/apis/CartsApi.ts +12 -14
  51. package/src/models/AddressFrontendResource.ts +6 -4
  52. package/src/models/AddressResource.ts +5 -6
  53. package/src/models/AttachCouponCartRequest.ts +5 -5
  54. package/src/models/CartResource.ts +60 -14
  55. package/src/models/DetachCouponCartRequest.ts +66 -0
  56. package/src/models/DiscountType.ts +54 -0
  57. package/src/models/DiscountValueType.ts +53 -0
  58. package/src/models/ExternalApiLogResource.ts +2 -3
  59. package/src/models/LineItemDiscountResource.ts +84 -0
  60. package/src/models/LineItemDiscountResourceArrayResponse.ts +73 -0
  61. package/src/models/LineItemListResource.ts +46 -10
  62. package/src/models/ProductChildCartLiteResource.ts +135 -0
  63. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
  64. package/src/models/StoreFrontendResource.ts +3 -2
  65. package/src/models/StoreResource.ts +3 -2
  66. package/src/models/index.ts +7 -0
@@ -0,0 +1,25 @@
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
+ */
16
+ export declare const DiscountValueType: {
17
+ readonly FixedValue: "fixed_value";
18
+ readonly Percentage: "percentage";
19
+ };
20
+ export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
21
+ export declare function instanceOfDiscountValueType(value: any): boolean;
22
+ export declare function DiscountValueTypeFromJSON(json: any): DiscountValueType;
23
+ export declare function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType;
24
+ export declare function DiscountValueTypeToJSON(value?: DiscountValueType | null): any;
25
+ export declare function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType;
@@ -0,0 +1,51 @@
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.DiscountValueType = void 0;
17
+ exports.instanceOfDiscountValueType = instanceOfDiscountValueType;
18
+ exports.DiscountValueTypeFromJSON = DiscountValueTypeFromJSON;
19
+ exports.DiscountValueTypeFromJSONTyped = DiscountValueTypeFromJSONTyped;
20
+ exports.DiscountValueTypeToJSON = DiscountValueTypeToJSON;
21
+ exports.DiscountValueTypeToJSONTyped = DiscountValueTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.DiscountValueType = {
27
+ FixedValue: 'fixed_value',
28
+ Percentage: 'percentage'
29
+ };
30
+ function instanceOfDiscountValueType(value) {
31
+ for (var key in exports.DiscountValueType) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.DiscountValueType, key)) {
33
+ if (exports.DiscountValueType[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function DiscountValueTypeFromJSON(json) {
41
+ return DiscountValueTypeFromJSONTyped(json, false);
42
+ }
43
+ function DiscountValueTypeFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function DiscountValueTypeToJSON(value) {
47
+ return value;
48
+ }
49
+ function DiscountValueTypeToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -0,0 +1,44 @@
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 LineItemDiscountResource
16
+ */
17
+ export interface LineItemDiscountResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LineItemDiscountResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LineItemDiscountResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof LineItemDiscountResource
34
+ */
35
+ discountTotal: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LineItemDiscountResource interface.
39
+ */
40
+ export declare function instanceOfLineItemDiscountResource(value: object): value is LineItemDiscountResource;
41
+ export declare function LineItemDiscountResourceFromJSON(json: any): LineItemDiscountResource;
42
+ export declare function LineItemDiscountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResource;
43
+ export declare function LineItemDiscountResourceToJSON(json: any): LineItemDiscountResource;
44
+ export declare function LineItemDiscountResourceToJSONTyped(value?: LineItemDiscountResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfLineItemDiscountResource = instanceOfLineItemDiscountResource;
17
+ exports.LineItemDiscountResourceFromJSON = LineItemDiscountResourceFromJSON;
18
+ exports.LineItemDiscountResourceFromJSONTyped = LineItemDiscountResourceFromJSONTyped;
19
+ exports.LineItemDiscountResourceToJSON = LineItemDiscountResourceToJSON;
20
+ exports.LineItemDiscountResourceToJSONTyped = LineItemDiscountResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LineItemDiscountResource interface.
23
+ */
24
+ function instanceOfLineItemDiscountResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('discountTotal' in value) || value['discountTotal'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function LineItemDiscountResourceFromJSON(json) {
34
+ return LineItemDiscountResourceFromJSONTyped(json, false);
35
+ }
36
+ function LineItemDiscountResourceFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'discountTotal': json['discount_total'],
44
+ };
45
+ }
46
+ function LineItemDiscountResourceToJSON(json) {
47
+ return LineItemDiscountResourceToJSONTyped(json, false);
48
+ }
49
+ function LineItemDiscountResourceToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'name': value['name'],
57
+ 'discount_total': value['discountTotal'],
58
+ };
59
+ }
@@ -0,0 +1,33 @@
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 { LineItemDiscountResource } from './LineItemDiscountResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LineItemDiscountResourceArrayResponse
17
+ */
18
+ export interface LineItemDiscountResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<LineItemDiscountResource>}
22
+ * @memberof LineItemDiscountResourceArrayResponse
23
+ */
24
+ data?: Array<LineItemDiscountResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the LineItemDiscountResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfLineItemDiscountResourceArrayResponse(value: object): value is LineItemDiscountResourceArrayResponse;
30
+ export declare function LineItemDiscountResourceArrayResponseFromJSON(json: any): LineItemDiscountResourceArrayResponse;
31
+ export declare function LineItemDiscountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResourceArrayResponse;
32
+ export declare function LineItemDiscountResourceArrayResponseToJSON(json: any): LineItemDiscountResourceArrayResponse;
33
+ export declare function LineItemDiscountResourceArrayResponseToJSONTyped(value?: LineItemDiscountResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfLineItemDiscountResourceArrayResponse = instanceOfLineItemDiscountResourceArrayResponse;
17
+ exports.LineItemDiscountResourceArrayResponseFromJSON = LineItemDiscountResourceArrayResponseFromJSON;
18
+ exports.LineItemDiscountResourceArrayResponseFromJSONTyped = LineItemDiscountResourceArrayResponseFromJSONTyped;
19
+ exports.LineItemDiscountResourceArrayResponseToJSON = LineItemDiscountResourceArrayResponseToJSON;
20
+ exports.LineItemDiscountResourceArrayResponseToJSONTyped = LineItemDiscountResourceArrayResponseToJSONTyped;
21
+ var LineItemDiscountResource_1 = require("./LineItemDiscountResource");
22
+ /**
23
+ * Check if a given object implements the LineItemDiscountResourceArrayResponse interface.
24
+ */
25
+ function instanceOfLineItemDiscountResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function LineItemDiscountResourceArrayResponseFromJSON(json) {
29
+ return LineItemDiscountResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function LineItemDiscountResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(LineItemDiscountResource_1.LineItemDiscountResourceFromJSON)),
37
+ };
38
+ }
39
+ function LineItemDiscountResourceArrayResponseToJSON(json) {
40
+ return LineItemDiscountResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function LineItemDiscountResourceArrayResponseToJSONTyped(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(LineItemDiscountResource_1.LineItemDiscountResourceToJSON)),
49
+ };
50
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ProductChildListResource } from './ProductChildListResource';
12
+ import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -36,10 +36,34 @@ export interface LineItemListResource {
36
36
  productPrice: number;
37
37
  /**
38
38
  *
39
- * @type {ProductChildListResource}
39
+ * @type {number}
40
+ * @memberof LineItemListResource
41
+ */
42
+ productDiscount: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof LineItemListResource
47
+ */
48
+ totalDiscount: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof LineItemListResource
53
+ */
54
+ lineSubtotal: number;
55
+ /**
56
+ *
57
+ * @type {object}
58
+ * @memberof LineItemListResource
59
+ */
60
+ discounts: object;
61
+ /**
62
+ *
63
+ * @type {ProductChildCartLiteResource}
40
64
  * @memberof LineItemListResource
41
65
  */
42
- productChild: ProductChildListResource | null;
66
+ productChild: ProductChildCartLiteResource | null;
43
67
  }
44
68
  /**
45
69
  * Check if a given object implements the LineItemListResource interface.
@@ -18,7 +18,7 @@ exports.LineItemListResourceFromJSON = LineItemListResourceFromJSON;
18
18
  exports.LineItemListResourceFromJSONTyped = LineItemListResourceFromJSONTyped;
19
19
  exports.LineItemListResourceToJSON = LineItemListResourceToJSON;
20
20
  exports.LineItemListResourceToJSONTyped = LineItemListResourceToJSONTyped;
21
- var ProductChildListResource_1 = require("./ProductChildListResource");
21
+ var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
22
22
  /**
23
23
  * Check if a given object implements the LineItemListResource interface.
24
24
  */
@@ -27,6 +27,14 @@ function instanceOfLineItemListResource(value) {
27
27
  return false;
28
28
  if (!('productPrice' in value) || value['productPrice'] === undefined)
29
29
  return false;
30
+ if (!('productDiscount' in value) || value['productDiscount'] === undefined)
31
+ return false;
32
+ if (!('totalDiscount' in value) || value['totalDiscount'] === undefined)
33
+ return false;
34
+ if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined)
35
+ return false;
36
+ if (!('discounts' in value) || value['discounts'] === undefined)
37
+ return false;
30
38
  if (!('productChild' in value) || value['productChild'] === undefined)
31
39
  return false;
32
40
  return true;
@@ -42,7 +50,11 @@ function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
42
50
  'id': json['id'] == null ? undefined : json['id'],
43
51
  'quantity': json['quantity'],
44
52
  'productPrice': json['product_price'],
45
- 'productChild': (0, ProductChildListResource_1.ProductChildListResourceFromJSON)(json['product_child']),
53
+ 'productDiscount': json['product_discount'],
54
+ 'totalDiscount': json['total_discount'],
55
+ 'lineSubtotal': json['line_subtotal'],
56
+ 'discounts': json['discounts'],
57
+ 'productChild': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)(json['product_child']),
46
58
  };
47
59
  }
48
60
  function LineItemListResourceToJSON(json) {
@@ -57,6 +69,10 @@ function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
57
69
  'id': value['id'],
58
70
  'quantity': value['quantity'],
59
71
  'product_price': value['productPrice'],
60
- 'product_child': (0, ProductChildListResource_1.ProductChildListResourceToJSON)(value['productChild']),
72
+ 'product_discount': value['productDiscount'],
73
+ 'total_discount': value['totalDiscount'],
74
+ 'line_subtotal': value['lineSubtotal'],
75
+ 'discounts': value['discounts'],
76
+ 'product_child': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)(value['productChild']),
61
77
  };
62
78
  }
@@ -0,0 +1,70 @@
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
+ name: string;
50
+ /**
51
+ *
52
+ * @type {AssetLiteResource}
53
+ * @memberof ProductChildCartLiteResource
54
+ */
55
+ thumbnail: AssetLiteResource | null;
56
+ /**
57
+ *
58
+ * @type {LabelResource}
59
+ * @memberof ProductChildCartLiteResource
60
+ */
61
+ label: LabelResource | null;
62
+ }
63
+ /**
64
+ * Check if a given object implements the ProductChildCartLiteResource interface.
65
+ */
66
+ export declare function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource;
67
+ export declare function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource;
68
+ export declare function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource;
69
+ export declare function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource;
70
+ export declare function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,77 @@
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.instanceOfProductChildCartLiteResource = instanceOfProductChildCartLiteResource;
17
+ exports.ProductChildCartLiteResourceFromJSON = ProductChildCartLiteResourceFromJSON;
18
+ exports.ProductChildCartLiteResourceFromJSONTyped = ProductChildCartLiteResourceFromJSONTyped;
19
+ exports.ProductChildCartLiteResourceToJSON = ProductChildCartLiteResourceToJSON;
20
+ exports.ProductChildCartLiteResourceToJSONTyped = ProductChildCartLiteResourceToJSONTyped;
21
+ var LabelResource_1 = require("./LabelResource");
22
+ var AssetLiteResource_1 = require("./AssetLiteResource");
23
+ /**
24
+ * Check if a given object implements the ProductChildCartLiteResource interface.
25
+ */
26
+ function instanceOfProductChildCartLiteResource(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('parentId' in value) || value['parentId'] === undefined)
30
+ return false;
31
+ if (!('sku' in value) || value['sku'] === undefined)
32
+ return false;
33
+ if (!('model' in value) || value['model'] === undefined)
34
+ return false;
35
+ if (!('name' in value) || value['name'] === undefined)
36
+ return false;
37
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined)
38
+ return false;
39
+ if (!('label' in value) || value['label'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function ProductChildCartLiteResourceFromJSON(json) {
44
+ return ProductChildCartLiteResourceFromJSONTyped(json, false);
45
+ }
46
+ function ProductChildCartLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'parentId': json['parent_id'],
53
+ 'sku': json['sku'],
54
+ 'model': json['model'],
55
+ 'name': json['name'],
56
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
57
+ 'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
58
+ };
59
+ }
60
+ function ProductChildCartLiteResourceToJSON(json) {
61
+ return ProductChildCartLiteResourceToJSONTyped(json, false);
62
+ }
63
+ function ProductChildCartLiteResourceToJSONTyped(value, ignoreDiscriminator) {
64
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'parent_id': value['parentId'],
71
+ 'sku': value['sku'],
72
+ 'model': value['model'],
73
+ 'name': value['name'],
74
+ 'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
75
+ 'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
76
+ };
77
+ }
@@ -0,0 +1,33 @@
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;
@@ -0,0 +1,50 @@
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
+ }
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website?: string | null;
47
+ website: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
+ if (!('website' in value) || value['website'] === undefined)
32
+ return false;
31
33
  if (!('phone' in value) || value['phone'] === undefined)
32
34
  return false;
33
35
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
54
56
  'siteId': json['siteId'],
55
57
  'name': json['name'],
56
58
  'email': json['email'],
57
- 'website': json['website'] == null ? undefined : json['website'],
59
+ 'website': json['website'],
58
60
  'phone': json['phone'],
59
61
  'address': json['address'] == null ? undefined : json['address'],
60
62
  'latitude': json['latitude'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}