@digital8/lighting-illusions-ts-sdk 0.0.1776 → 0.0.1777

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 (46) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +11 -2
  3. package/dist/apis/CartsApi.d.ts +97 -1
  4. package/dist/apis/CartsApi.js +372 -0
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AttachCouponCartRequest.d.ts +32 -0
  8. package/dist/models/AttachCouponCartRequest.js +51 -0
  9. package/dist/models/AttachItemCartRequest.d.ts +44 -0
  10. package/dist/models/AttachItemCartRequest.js +57 -0
  11. package/dist/models/CartResource.d.ts +2 -2
  12. package/dist/models/CartResource.js +3 -1
  13. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  14. package/dist/models/ExternalApiLogResource.js +3 -1
  15. package/dist/models/IndexCartRequest.d.ts +6 -6
  16. package/dist/models/IndexCartRequest.js +2 -2
  17. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
  18. package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
  19. package/dist/models/StoreListResource.d.ts +1 -1
  20. package/dist/models/StoreListResource.js +3 -1
  21. package/dist/models/StoreResource.d.ts +1 -1
  22. package/dist/models/StoreResource.js +1 -3
  23. package/dist/models/UpdateItemCartRequest.d.ts +38 -0
  24. package/dist/models/UpdateItemCartRequest.js +53 -0
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/docs/AttachCouponCartRequest.md +34 -0
  28. package/docs/AttachItemCartRequest.md +38 -0
  29. package/docs/CartResource.md +1 -1
  30. package/docs/CartsApi.md +414 -0
  31. package/docs/IndexCartRequest.md +2 -2
  32. package/docs/ProductChildSiteDetailLiteResource.md +2 -0
  33. package/docs/UpdateItemCartRequest.md +36 -0
  34. package/package.json +1 -1
  35. package/src/apis/CartsApi.ts +342 -0
  36. package/src/models/AddressFrontendResource.ts +3 -2
  37. package/src/models/AttachCouponCartRequest.ts +66 -0
  38. package/src/models/AttachItemCartRequest.ts +83 -0
  39. package/src/models/CartResource.ts +4 -3
  40. package/src/models/ExternalApiLogResource.ts +3 -2
  41. package/src/models/IndexCartRequest.ts +8 -8
  42. package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
  43. package/src/models/StoreListResource.ts +3 -2
  44. package/src/models/StoreResource.ts +2 -3
  45. package/src/models/UpdateItemCartRequest.ts +74 -0
  46. package/src/models/index.ts +3 -0
@@ -0,0 +1,32 @@
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 AttachCouponCartRequest
16
+ */
17
+ export interface AttachCouponCartRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AttachCouponCartRequest
22
+ */
23
+ couponId: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AttachCouponCartRequest interface.
27
+ */
28
+ export declare function instanceOfAttachCouponCartRequest(value: object): value is AttachCouponCartRequest;
29
+ export declare function AttachCouponCartRequestFromJSON(json: any): AttachCouponCartRequest;
30
+ export declare function AttachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponCartRequest;
31
+ export declare function AttachCouponCartRequestToJSON(json: any): AttachCouponCartRequest;
32
+ export declare function AttachCouponCartRequestToJSONTyped(value?: AttachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfAttachCouponCartRequest = instanceOfAttachCouponCartRequest;
17
+ exports.AttachCouponCartRequestFromJSON = AttachCouponCartRequestFromJSON;
18
+ exports.AttachCouponCartRequestFromJSONTyped = AttachCouponCartRequestFromJSONTyped;
19
+ exports.AttachCouponCartRequestToJSON = AttachCouponCartRequestToJSON;
20
+ exports.AttachCouponCartRequestToJSONTyped = AttachCouponCartRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AttachCouponCartRequest interface.
23
+ */
24
+ function instanceOfAttachCouponCartRequest(value) {
25
+ if (!('couponId' in value) || value['couponId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AttachCouponCartRequestFromJSON(json) {
30
+ return AttachCouponCartRequestFromJSONTyped(json, false);
31
+ }
32
+ function AttachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'couponId': json['coupon_id'],
38
+ };
39
+ }
40
+ function AttachCouponCartRequestToJSON(json) {
41
+ return AttachCouponCartRequestToJSONTyped(json, false);
42
+ }
43
+ function AttachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'coupon_id': value['couponId'],
50
+ };
51
+ }
@@ -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 AttachItemCartRequest
16
+ */
17
+ export interface AttachItemCartRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AttachItemCartRequest
22
+ */
23
+ productChildId: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AttachItemCartRequest
28
+ */
29
+ quantity: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AttachItemCartRequest
34
+ */
35
+ productPrice?: number | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AttachItemCartRequest interface.
39
+ */
40
+ export declare function instanceOfAttachItemCartRequest(value: object): value is AttachItemCartRequest;
41
+ export declare function AttachItemCartRequestFromJSON(json: any): AttachItemCartRequest;
42
+ export declare function AttachItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachItemCartRequest;
43
+ export declare function AttachItemCartRequestToJSON(json: any): AttachItemCartRequest;
44
+ export declare function AttachItemCartRequestToJSONTyped(value?: AttachItemCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfAttachItemCartRequest = instanceOfAttachItemCartRequest;
17
+ exports.AttachItemCartRequestFromJSON = AttachItemCartRequestFromJSON;
18
+ exports.AttachItemCartRequestFromJSONTyped = AttachItemCartRequestFromJSONTyped;
19
+ exports.AttachItemCartRequestToJSON = AttachItemCartRequestToJSON;
20
+ exports.AttachItemCartRequestToJSONTyped = AttachItemCartRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AttachItemCartRequest interface.
23
+ */
24
+ function instanceOfAttachItemCartRequest(value) {
25
+ if (!('productChildId' in value) || value['productChildId'] === undefined)
26
+ return false;
27
+ if (!('quantity' in value) || value['quantity'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AttachItemCartRequestFromJSON(json) {
32
+ return AttachItemCartRequestFromJSONTyped(json, false);
33
+ }
34
+ function AttachItemCartRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'productChildId': json['product_child_id'],
40
+ 'quantity': json['quantity'],
41
+ 'productPrice': json['product_price'] == null ? undefined : json['product_price'],
42
+ };
43
+ }
44
+ function AttachItemCartRequestToJSON(json) {
45
+ return AttachItemCartRequestToJSONTyped(json, false);
46
+ }
47
+ function AttachItemCartRequestToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'product_child_id': value['productChildId'],
54
+ 'quantity': value['quantity'],
55
+ 'product_price': value['productPrice'],
56
+ };
57
+ }
@@ -122,10 +122,10 @@ export interface CartResource {
122
122
  subtotal: number;
123
123
  /**
124
124
  *
125
- * @type {string}
125
+ * @type {number}
126
126
  * @memberof CartResource
127
127
  */
128
- discountPreview?: string | null;
128
+ discountPreview: number;
129
129
  /**
130
130
  *
131
131
  * @type {number}
@@ -43,6 +43,8 @@ function instanceOfCartResource(value) {
43
43
  return false;
44
44
  if (!('subtotal' in value) || value['subtotal'] === undefined)
45
45
  return false;
46
+ if (!('discountPreview' in value) || value['discountPreview'] === undefined)
47
+ return false;
46
48
  if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined)
47
49
  return false;
48
50
  if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined)
@@ -76,7 +78,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
76
78
  'shippingAddress': json['shipping_address'],
77
79
  'billingAddress': json['billing_address'] == null ? undefined : json['billing_address'],
78
80
  'subtotal': json['subtotal'],
79
- 'discountPreview': json['discount_preview'] == null ? undefined : json['discount_preview'],
81
+ 'discountPreview': json['discount_preview'],
80
82
  'shippingEstimate': json['shipping_estimate'],
81
83
  'insuranceEstimate': json['insurance_estimate'],
82
84
  'status': json['status'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ 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;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -57,12 +57,6 @@ export interface IndexCartRequest {
57
57
  * @memberof IndexCartRequest
58
58
  */
59
59
  source?: Array<string>;
60
- /**
61
- *
62
- * @type {Array<IndexCartRequestStatusEnum>}
63
- * @memberof IndexCartRequest
64
- */
65
- status?: Array<IndexCartRequestStatusEnum>;
66
60
  /**
67
61
  *
68
62
  * @type {Date}
@@ -117,6 +111,12 @@ export interface IndexCartRequest {
117
111
  * @memberof IndexCartRequest
118
112
  */
119
113
  includesRelations?: boolean;
114
+ /**
115
+ *
116
+ * @type {Array<IndexCartRequestStatusEnum>}
117
+ * @memberof IndexCartRequest
118
+ */
119
+ status?: Array<IndexCartRequestStatusEnum>;
120
120
  }
121
121
  /**
122
122
  * @export
@@ -63,7 +63,6 @@ function IndexCartRequestFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'page': json['page'] == null ? undefined : json['page'],
64
64
  'siteId': json['site_id'] == null ? undefined : json['site_id'],
65
65
  'source': json['source'] == null ? undefined : json['source'],
66
- 'status': json['status'] == null ? undefined : json['status'],
67
66
  'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
68
67
  'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
69
68
  'beforeExpiryDate': json['before_expiry_date'] == null ? undefined : (new Date(json['before_expiry_date'])),
@@ -73,6 +72,7 @@ function IndexCartRequestFromJSONTyped(json, ignoreDiscriminator) {
73
72
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
74
73
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
75
74
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
75
+ 'status': json['status'] == null ? undefined : json['status'],
76
76
  };
77
77
  }
78
78
  function IndexCartRequestToJSON(json) {
@@ -91,7 +91,6 @@ function IndexCartRequestToJSONTyped(value, ignoreDiscriminator) {
91
91
  'page': value['page'],
92
92
  'site_id': value['siteId'],
93
93
  'source': value['source'],
94
- 'status': value['status'],
95
94
  'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
96
95
  'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
97
96
  'before_expiry_date': value['beforeExpiryDate'] == null ? value['beforeExpiryDate'] : value['beforeExpiryDate'].toISOString(),
@@ -101,5 +100,6 @@ function IndexCartRequestToJSONTyped(value, ignoreDiscriminator) {
101
100
  'related_id': value['relatedId'],
102
101
  'related_type': value['relatedType'],
103
102
  'includes_relations': value['includesRelations'],
103
+ 'status': value['status'],
104
104
  };
105
105
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { SiteLiteResource } from './SiteLiteResource';
13
+ import type { LabelResource } from './LabelResource';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -58,6 +59,12 @@ export interface ProductChildSiteDetailLiteResource {
58
59
  * @memberof ProductChildSiteDetailLiteResource
59
60
  */
60
61
  isDisabled: boolean;
62
+ /**
63
+ *
64
+ * @type {LabelResource}
65
+ * @memberof ProductChildSiteDetailLiteResource
66
+ */
67
+ label: LabelResource | null;
61
68
  }
62
69
  /**
63
70
  * Check if a given object implements the ProductChildSiteDetailLiteResource interface.
@@ -19,6 +19,7 @@ exports.ProductChildSiteDetailLiteResourceFromJSONTyped = ProductChildSiteDetail
19
19
  exports.ProductChildSiteDetailLiteResourceToJSON = ProductChildSiteDetailLiteResourceToJSON;
20
20
  exports.ProductChildSiteDetailLiteResourceToJSONTyped = ProductChildSiteDetailLiteResourceToJSONTyped;
21
21
  var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ var LabelResource_1 = require("./LabelResource");
22
23
  /**
23
24
  * Check if a given object implements the ProductChildSiteDetailLiteResource interface.
24
25
  */
@@ -37,6 +38,8 @@ function instanceOfProductChildSiteDetailLiteResource(value) {
37
38
  return false;
38
39
  if (!('isDisabled' in value) || value['isDisabled'] === undefined)
39
40
  return false;
41
+ if (!('label' in value) || value['label'] === undefined)
42
+ return false;
40
43
  return true;
41
44
  }
42
45
  function ProductChildSiteDetailLiteResourceFromJSON(json) {
@@ -54,6 +57,7 @@ function ProductChildSiteDetailLiteResourceFromJSONTyped(json, ignoreDiscriminat
54
57
  'rrpPrice': json['rrpPrice'],
55
58
  'salePrice': json['salePrice'],
56
59
  'isDisabled': json['isDisabled'],
60
+ 'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
57
61
  };
58
62
  }
59
63
  function ProductChildSiteDetailLiteResourceToJSON(json) {
@@ -72,5 +76,6 @@ function ProductChildSiteDetailLiteResourceToJSONTyped(value, ignoreDiscriminato
72
76
  'rrpPrice': value['rrpPrice'],
73
77
  'salePrice': value['salePrice'],
74
78
  'isDisabled': value['isDisabled'],
79
+ 'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
75
80
  };
76
81
  }
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine?: string | null;
60
+ tagLine: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
+ return false;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
38
40
  return true;
@@ -51,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
51
53
  'phone': json['phone'],
52
54
  'longitude': json['longitude'],
53
55
  'latitude': json['latitude'],
54
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
56
+ 'tagLine': json['tag_line'],
55
57
  'email': json['email'],
56
58
  'website': json['website'] == null ? undefined : json['website'],
57
59
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website: string;
75
+ website?: string | null;
76
76
  /**
77
77
  *
78
78
  * @type {string}
@@ -40,8 +40,6 @@ function instanceOfStoreResource(value) {
40
40
  return false;
41
41
  if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
- if (!('website' in value) || value['website'] === undefined)
44
- return false;
45
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
46
44
  return false;
47
45
  if (!('address' in value) || value['address'] === undefined)
@@ -66,7 +64,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
64
  'latitude': json['latitude'],
67
65
  'tagLine': json['tag_line'],
68
66
  'email': json['email'],
69
- 'website': json['website'],
67
+ 'website': json['website'] == null ? undefined : json['website'],
70
68
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
71
69
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
72
70
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -0,0 +1,38 @@
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 UpdateItemCartRequest
16
+ */
17
+ export interface UpdateItemCartRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UpdateItemCartRequest
22
+ */
23
+ quantity: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UpdateItemCartRequest
28
+ */
29
+ productPrice?: number | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateItemCartRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateItemCartRequest(value: object): value is UpdateItemCartRequest;
35
+ export declare function UpdateItemCartRequestFromJSON(json: any): UpdateItemCartRequest;
36
+ export declare function UpdateItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateItemCartRequest;
37
+ export declare function UpdateItemCartRequestToJSON(json: any): UpdateItemCartRequest;
38
+ export declare function UpdateItemCartRequestToJSONTyped(value?: UpdateItemCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfUpdateItemCartRequest = instanceOfUpdateItemCartRequest;
17
+ exports.UpdateItemCartRequestFromJSON = UpdateItemCartRequestFromJSON;
18
+ exports.UpdateItemCartRequestFromJSONTyped = UpdateItemCartRequestFromJSONTyped;
19
+ exports.UpdateItemCartRequestToJSON = UpdateItemCartRequestToJSON;
20
+ exports.UpdateItemCartRequestToJSONTyped = UpdateItemCartRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateItemCartRequest interface.
23
+ */
24
+ function instanceOfUpdateItemCartRequest(value) {
25
+ if (!('quantity' in value) || value['quantity'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateItemCartRequestFromJSON(json) {
30
+ return UpdateItemCartRequestFromJSONTyped(json, false);
31
+ }
32
+ function UpdateItemCartRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'quantity': json['quantity'],
38
+ 'productPrice': json['product_price'] == null ? undefined : json['product_price'],
39
+ };
40
+ }
41
+ function UpdateItemCartRequestToJSON(json) {
42
+ return UpdateItemCartRequestToJSONTyped(json, false);
43
+ }
44
+ function UpdateItemCartRequestToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'quantity': value['quantity'],
51
+ 'product_price': value['productPrice'],
52
+ };
53
+ }
@@ -18,11 +18,13 @@ export * from './AttachAssetsOverlayTemplateRequest';
18
18
  export * from './AttachAttributeProductTypeRequest';
19
19
  export * from './AttachAttributesProductRangeRequest';
20
20
  export * from './AttachAttributesProductRangeRequestAttributesInner';
21
+ export * from './AttachCouponCartRequest';
21
22
  export * from './AttachDocumentablesDocumentRequest';
22
23
  export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
23
24
  export * from './AttachDocumentsProductChildRequest';
24
25
  export * from './AttachDocumentsProductChildRequestDocumentsInner';
25
26
  export * from './AttachDocumentsProductRangeRequest';
27
+ export * from './AttachItemCartRequest';
26
28
  export * from './AttachProductTypeAttributeRequest';
27
29
  export * from './AttachProductsProductCategoryRequest';
28
30
  export * from './AttachStoresSupplierRequest';
@@ -432,6 +434,7 @@ export * from './UpdateDefinitionRequest';
432
434
  export * from './UpdateDocumentRequest';
433
435
  export * from './UpdateFilterOrderAttributeRequest';
434
436
  export * from './UpdateFilterOrderAttributeRequestValuesInner';
437
+ export * from './UpdateItemCartRequest';
435
438
  export * from './UpdateLabelRequest';
436
439
  export * from './UpdateMenuItemRequest';
437
440
  export * from './UpdateMenuRequest';
@@ -36,11 +36,13 @@ __exportStar(require("./AttachAssetsOverlayTemplateRequest"), exports);
36
36
  __exportStar(require("./AttachAttributeProductTypeRequest"), exports);
37
37
  __exportStar(require("./AttachAttributesProductRangeRequest"), exports);
38
38
  __exportStar(require("./AttachAttributesProductRangeRequestAttributesInner"), exports);
39
+ __exportStar(require("./AttachCouponCartRequest"), exports);
39
40
  __exportStar(require("./AttachDocumentablesDocumentRequest"), exports);
40
41
  __exportStar(require("./AttachDocumentablesDocumentRequestDocumentablesInner"), exports);
41
42
  __exportStar(require("./AttachDocumentsProductChildRequest"), exports);
42
43
  __exportStar(require("./AttachDocumentsProductChildRequestDocumentsInner"), exports);
43
44
  __exportStar(require("./AttachDocumentsProductRangeRequest"), exports);
45
+ __exportStar(require("./AttachItemCartRequest"), exports);
44
46
  __exportStar(require("./AttachProductTypeAttributeRequest"), exports);
45
47
  __exportStar(require("./AttachProductsProductCategoryRequest"), exports);
46
48
  __exportStar(require("./AttachStoresSupplierRequest"), exports);
@@ -450,6 +452,7 @@ __exportStar(require("./UpdateDefinitionRequest"), exports);
450
452
  __exportStar(require("./UpdateDocumentRequest"), exports);
451
453
  __exportStar(require("./UpdateFilterOrderAttributeRequest"), exports);
452
454
  __exportStar(require("./UpdateFilterOrderAttributeRequestValuesInner"), exports);
455
+ __exportStar(require("./UpdateItemCartRequest"), exports);
453
456
  __exportStar(require("./UpdateLabelRequest"), exports);
454
457
  __exportStar(require("./UpdateMenuItemRequest"), exports);
455
458
  __exportStar(require("./UpdateMenuRequest"), exports);
@@ -0,0 +1,34 @@
1
+
2
+ # AttachCouponCartRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `couponId` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { AttachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "couponId": null,
19
+ } satisfies AttachCouponCartRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as AttachCouponCartRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,38 @@
1
+
2
+ # AttachItemCartRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `productChildId` | number
10
+ `quantity` | number
11
+ `productPrice` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { AttachItemCartRequest } from '@digital8/lighting-illusions-ts-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "productChildId": null,
21
+ "quantity": null,
22
+ "productPrice": null,
23
+ } satisfies AttachItemCartRequest
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as AttachItemCartRequest
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -23,7 +23,7 @@ Name | Type
23
23
  `shippingAddress` | Array&lt;string | null&gt;
24
24
  `billingAddress` | string
25
25
  `subtotal` | number
26
- `discountPreview` | string
26
+ `discountPreview` | number
27
27
  `shippingEstimate` | number
28
28
  `insuranceEstimate` | number
29
29
  `status` | string