@digital8/lighting-illusions-ts-sdk 0.0.1839 → 0.0.1840

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 (82) hide show
  1. package/.openapi-generator/FILES +10 -10
  2. package/README.md +8 -8
  3. package/dist/apis/CartsApi.d.ts +6 -6
  4. package/dist/apis/CartsApi.js +5 -3
  5. package/dist/apis/CouponsApi.d.ts +33 -0
  6. package/dist/apis/CouponsApi.js +138 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +3 -1
  11. package/dist/models/AdminCartResource.d.ts +4 -34
  12. package/dist/models/AdminCartResource.js +10 -32
  13. package/dist/models/AttachCouponCartRequest.d.ts +2 -2
  14. package/dist/models/AttachCouponCartRequest.js +3 -3
  15. package/dist/models/FrontendCartResource.d.ts +0 -12
  16. package/dist/models/FrontendCartResource.js +0 -8
  17. package/dist/models/LineItemListResource.d.ts +3 -27
  18. package/dist/models/LineItemListResource.js +3 -19
  19. package/dist/models/StoreFrontendResource.d.ts +1 -1
  20. package/dist/models/StoreFrontendResource.js +1 -3
  21. package/dist/models/StoreListResource.d.ts +1 -1
  22. package/dist/models/StoreListResource.js +3 -1
  23. package/dist/models/StoreResource.d.ts +2 -2
  24. package/dist/models/StoreResource.js +2 -6
  25. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  26. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  27. package/dist/models/VerifyCouponRequest.d.ts +63 -0
  28. package/dist/models/VerifyCouponRequest.js +64 -0
  29. package/dist/models/VerifyCouponRequestProductsInner.d.ts +38 -0
  30. package/dist/models/VerifyCouponRequestProductsInner.js +51 -0
  31. package/dist/models/VerifyCouponResource.d.ts +38 -0
  32. package/dist/models/VerifyCouponResource.js +55 -0
  33. package/dist/models/VerifyCouponResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/VerifyCouponResourceArrayResponse.js +50 -0
  35. package/dist/models/index.d.ts +4 -5
  36. package/dist/models/index.js +4 -5
  37. package/docs/AdminCartResource.md +6 -16
  38. package/docs/AttachCouponCartRequest.md +2 -2
  39. package/docs/CartsApi.md +8 -8
  40. package/docs/CouponsApi.md +74 -0
  41. package/docs/FrontendCartResource.md +0 -4
  42. package/docs/LineItemListResource.md +1 -9
  43. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  44. package/docs/VerifyCouponRequest.md +44 -0
  45. package/docs/{DiscountValueType.md → VerifyCouponRequestProductsInner.md} +8 -4
  46. package/docs/{DetachCouponCartRequest.md → VerifyCouponResource.md} +8 -6
  47. package/docs/{DiscountType.md → VerifyCouponResourceArrayResponse.md} +6 -4
  48. package/package.json +1 -1
  49. package/src/apis/CartsApi.ts +14 -12
  50. package/src/apis/CouponsApi.ts +77 -0
  51. package/src/apis/index.ts +1 -0
  52. package/src/models/AddressResource.ts +3 -2
  53. package/src/models/AdminCartResource.ts +14 -60
  54. package/src/models/AttachCouponCartRequest.ts +5 -5
  55. package/src/models/FrontendCartResource.ts +0 -18
  56. package/src/models/LineItemListResource.ts +10 -46
  57. package/src/models/StoreFrontendResource.ts +2 -3
  58. package/src/models/StoreListResource.ts +3 -2
  59. package/src/models/StoreResource.ts +4 -6
  60. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  61. package/src/models/VerifyCouponRequest.ts +115 -0
  62. package/src/models/VerifyCouponRequestProductsInner.ts +73 -0
  63. package/src/models/VerifyCouponResource.ts +75 -0
  64. package/src/models/VerifyCouponResourceArrayResponse.ts +73 -0
  65. package/src/models/index.ts +4 -5
  66. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  67. package/dist/models/DetachCouponCartRequest.js +0 -51
  68. package/dist/models/DiscountType.d.ts +0 -26
  69. package/dist/models/DiscountType.js +0 -52
  70. package/dist/models/DiscountValueType.d.ts +0 -25
  71. package/dist/models/DiscountValueType.js +0 -51
  72. package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
  73. package/dist/models/ProductChildCartLiteResource.js +0 -77
  74. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  75. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  76. package/docs/ProductChildCartLiteResource.md +0 -46
  77. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  78. package/src/models/DetachCouponCartRequest.ts +0 -66
  79. package/src/models/DiscountType.ts +0 -54
  80. package/src/models/DiscountValueType.ts +0 -53
  81. package/src/models/ProductChildCartLiteResource.ts +0 -135
  82. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
@@ -0,0 +1,75 @@
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 VerifyCouponResource
20
+ */
21
+ export interface VerifyCouponResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof VerifyCouponResource
26
+ */
27
+ couponId: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof VerifyCouponResource
32
+ */
33
+ discountAmount: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VerifyCouponResource interface.
38
+ */
39
+ export function instanceOfVerifyCouponResource(value: object): value is VerifyCouponResource {
40
+ if (!('couponId' in value) || value['couponId'] === undefined) return false;
41
+ if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function VerifyCouponResourceFromJSON(json: any): VerifyCouponResource {
46
+ return VerifyCouponResourceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VerifyCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponResource {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'couponId': json['coupon_id'],
56
+ 'discountAmount': json['discount_amount'],
57
+ };
58
+ }
59
+
60
+ export function VerifyCouponResourceToJSON(json: any): VerifyCouponResource {
61
+ return VerifyCouponResourceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function VerifyCouponResourceToJSONTyped(value?: VerifyCouponResource | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'coupon_id': value['couponId'],
72
+ 'discount_amount': value['discountAmount'],
73
+ };
74
+ }
75
+
@@ -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 { VerifyCouponResource } from './VerifyCouponResource';
17
+ import {
18
+ VerifyCouponResourceFromJSON,
19
+ VerifyCouponResourceFromJSONTyped,
20
+ VerifyCouponResourceToJSON,
21
+ VerifyCouponResourceToJSONTyped,
22
+ } from './VerifyCouponResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface VerifyCouponResourceArrayResponse
28
+ */
29
+ export interface VerifyCouponResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<VerifyCouponResource>}
33
+ * @memberof VerifyCouponResourceArrayResponse
34
+ */
35
+ data?: Array<VerifyCouponResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the VerifyCouponResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfVerifyCouponResourceArrayResponse(value: object): value is VerifyCouponResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function VerifyCouponResourceArrayResponseFromJSON(json: any): VerifyCouponResourceArrayResponse {
46
+ return VerifyCouponResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VerifyCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyCouponResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(VerifyCouponResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function VerifyCouponResourceArrayResponseToJSON(json: any): VerifyCouponResourceArrayResponse {
60
+ return VerifyCouponResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function VerifyCouponResourceArrayResponseToJSONTyped(value?: VerifyCouponResourceArrayResponse | 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(VerifyCouponResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -74,7 +74,6 @@ export * from './DestroyAttributeValueRequest';
74
74
  export * from './DetachAccessoriesProductRangeRequest';
75
75
  export * from './DetachAssetableOverlayTemplateRequest';
76
76
  export * from './DetachAttributesProductRangeRequest';
77
- export * from './DetachCouponCartRequest';
78
77
  export * from './DetachDocumentablesDocumentRequest';
79
78
  export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
80
79
  export * from './DetachDocumentsProductChildRequest';
@@ -82,8 +81,6 @@ export * from './DetachDocumentsProductRangeRequest';
82
81
  export * from './DetachProductsProductCategoryRequest';
83
82
  export * from './DetachStoresSupplierRequest';
84
83
  export * from './DetachSuppliersStoreRequest';
85
- export * from './DiscountType';
86
- export * from './DiscountValueType';
87
84
  export * from './DocumentFileForUploadResource';
88
85
  export * from './DocumentFileForUploadResourceArrayResponse';
89
86
  export * from './DocumentFrontendResource';
@@ -270,8 +267,6 @@ export * from './ProductChildAttributeGroupedResource';
270
267
  export * from './ProductChildAttributeGroupedResourceArrayResponse';
271
268
  export * from './ProductChildAttributeResource';
272
269
  export * from './ProductChildAttributeResourceArrayResponse';
273
- export * from './ProductChildCartLiteResource';
274
- export * from './ProductChildCartLiteResourceArrayResponse';
275
270
  export * from './ProductChildListResource';
276
271
  export * from './ProductChildListResourceArrayResponse';
277
272
  export * from './ProductChildLiteResource';
@@ -468,6 +463,10 @@ export * from './UpdateStoreRequest';
468
463
  export * from './UpdateStoreRequestSpecialDatesInner';
469
464
  export * from './UpdateSupplierRequest';
470
465
  export * from './UpdateTagRequest';
466
+ export * from './VerifyCouponRequest';
467
+ export * from './VerifyCouponRequestProductsInner';
468
+ export * from './VerifyCouponResource';
469
+ export * from './VerifyCouponResourceArrayResponse';
471
470
  export * from './WishlistCheckResource';
472
471
  export * from './WishlistCheckResourceArrayResponse';
473
472
  export * from './WishlistToggleResource';
@@ -1,32 +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 DetachCouponCartRequest
16
- */
17
- export interface DetachCouponCartRequest {
18
- /**
19
- *
20
- * @type {Array<number>}
21
- * @memberof DetachCouponCartRequest
22
- */
23
- couponIds: Array<number>;
24
- }
25
- /**
26
- * Check if a given object implements the DetachCouponCartRequest interface.
27
- */
28
- export declare function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest;
29
- export declare function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest;
30
- export declare function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest;
31
- export declare function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest;
32
- export declare function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +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.instanceOfDetachCouponCartRequest = instanceOfDetachCouponCartRequest;
17
- exports.DetachCouponCartRequestFromJSON = DetachCouponCartRequestFromJSON;
18
- exports.DetachCouponCartRequestFromJSONTyped = DetachCouponCartRequestFromJSONTyped;
19
- exports.DetachCouponCartRequestToJSON = DetachCouponCartRequestToJSON;
20
- exports.DetachCouponCartRequestToJSONTyped = DetachCouponCartRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the DetachCouponCartRequest interface.
23
- */
24
- function instanceOfDetachCouponCartRequest(value) {
25
- if (!('couponIds' in value) || value['couponIds'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function DetachCouponCartRequestFromJSON(json) {
30
- return DetachCouponCartRequestFromJSONTyped(json, false);
31
- }
32
- function DetachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponIds': json['coupon_ids'],
38
- };
39
- }
40
- function DetachCouponCartRequestToJSON(json) {
41
- return DetachCouponCartRequestToJSONTyped(json, false);
42
- }
43
- function DetachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_ids': value['couponIds'],
50
- };
51
- }
@@ -1,26 +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
- */
16
- export declare const DiscountType: {
17
- readonly Shipping: "shipping";
18
- readonly Subtotal: "subtotal";
19
- readonly Product: "product";
20
- };
21
- export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
22
- export declare function instanceOfDiscountType(value: any): boolean;
23
- export declare function DiscountTypeFromJSON(json: any): DiscountType;
24
- export declare function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType;
25
- export declare function DiscountTypeToJSON(value?: DiscountType | null): any;
26
- export declare function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType;
@@ -1,52 +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.DiscountType = void 0;
17
- exports.instanceOfDiscountType = instanceOfDiscountType;
18
- exports.DiscountTypeFromJSON = DiscountTypeFromJSON;
19
- exports.DiscountTypeFromJSONTyped = DiscountTypeFromJSONTyped;
20
- exports.DiscountTypeToJSON = DiscountTypeToJSON;
21
- exports.DiscountTypeToJSONTyped = DiscountTypeToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.DiscountType = {
27
- Shipping: 'shipping',
28
- Subtotal: 'subtotal',
29
- Product: 'product'
30
- };
31
- function instanceOfDiscountType(value) {
32
- for (var key in exports.DiscountType) {
33
- if (Object.prototype.hasOwnProperty.call(exports.DiscountType, key)) {
34
- if (exports.DiscountType[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function DiscountTypeFromJSON(json) {
42
- return DiscountTypeFromJSONTyped(json, false);
43
- }
44
- function DiscountTypeFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function DiscountTypeToJSON(value) {
48
- return value;
49
- }
50
- function DiscountTypeToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
@@ -1,25 +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
- */
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;
@@ -1,51 +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.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
- }
@@ -1,70 +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
- 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;
@@ -1,77 +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.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
- }
@@ -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
- }