@digital8/lighting-illusions-ts-sdk 0.0.2048 → 0.0.2050

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 (90) hide show
  1. package/.openapi-generator/FILES +8 -18
  2. package/README.md +8 -14
  3. package/dist/apis/CartsApi.d.ts +8 -8
  4. package/dist/apis/CartsApi.js +8 -8
  5. package/dist/apis/CustomersApi.d.ts +0 -17
  6. package/dist/apis/CustomersApi.js +0 -62
  7. package/dist/apis/OrdersApi.d.ts +8 -8
  8. package/dist/apis/OrdersApi.js +10 -10
  9. package/dist/models/AddressFrontendResource.d.ts +1 -1
  10. package/dist/models/AddressFrontendResource.js +3 -1
  11. package/dist/models/AddressResource.d.ts +1 -1
  12. package/dist/models/AddressResource.js +1 -3
  13. package/dist/models/AdminOrderResource.d.ts +1 -13
  14. package/dist/models/AdminOrderResource.js +3 -11
  15. package/dist/models/AttachCouponRequest.d.ts +32 -0
  16. package/dist/models/AttachCouponRequest.js +51 -0
  17. package/dist/models/AttachLineItemRequest.d.ts +44 -0
  18. package/dist/models/{AttachCartItemRequest.js → AttachLineItemRequest.js} +13 -13
  19. package/dist/models/CartListResource.d.ts +0 -48
  20. package/dist/models/CartListResource.js +0 -26
  21. package/dist/models/CartResource.d.ts +2 -2
  22. package/dist/models/CartResource.js +2 -2
  23. package/dist/models/DetachCouponRequest.d.ts +32 -0
  24. package/dist/models/DetachCouponRequest.js +51 -0
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +3 -1
  27. package/dist/models/StoreResource.d.ts +1 -1
  28. package/dist/models/StoreResource.js +1 -3
  29. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  30. package/dist/models/StoreSpecialDateResource.js +3 -1
  31. package/dist/models/UpdateLineItemRequest.d.ts +38 -0
  32. package/dist/models/{UpdateCartItemRequest.js → UpdateLineItemRequest.js} +13 -13
  33. package/dist/models/index.d.ts +4 -9
  34. package/dist/models/index.js +4 -9
  35. package/docs/AdminOrderResource.md +2 -6
  36. package/docs/{AttachCartCouponRequest.md → AttachCouponRequest.md} +4 -4
  37. package/docs/{AttachCartItemRequest.md → AttachLineItemRequest.md} +4 -4
  38. package/docs/CartListResource.md +0 -16
  39. package/docs/CartResource.md +2 -2
  40. package/docs/CartsApi.md +16 -16
  41. package/docs/CustomersApi.md +0 -69
  42. package/docs/{DetachCartCouponRequest.md → DetachCouponRequest.md} +4 -4
  43. package/docs/OrdersApi.md +18 -18
  44. package/docs/StoreSpecialDateResource.md +1 -1
  45. package/docs/{UpdateCartItemRequest.md → UpdateLineItemRequest.md} +4 -4
  46. package/package.json +1 -1
  47. package/src/apis/CartsApi.ts +25 -25
  48. package/src/apis/CustomersApi.ts +0 -58
  49. package/src/apis/OrdersApi.ts +26 -26
  50. package/src/models/AddressFrontendResource.ts +3 -2
  51. package/src/models/AddressResource.ts +2 -3
  52. package/src/models/AdminOrderResource.ts +4 -22
  53. package/src/models/AttachCouponRequest.ts +66 -0
  54. package/src/models/{AttachCartItemRequest.ts → AttachLineItemRequest.ts} +13 -13
  55. package/src/models/CartListResource.ts +0 -69
  56. package/src/models/CartResource.ts +4 -4
  57. package/src/models/DetachCouponRequest.ts +66 -0
  58. package/src/models/StoreListResource.ts +3 -2
  59. package/src/models/StoreResource.ts +2 -3
  60. package/src/models/StoreSpecialDateResource.ts +4 -3
  61. package/src/models/{UpdateCartItemRequest.ts → UpdateLineItemRequest.ts} +12 -12
  62. package/src/models/index.ts +4 -9
  63. package/dist/models/AttachCartCouponRequest.d.ts +0 -32
  64. package/dist/models/AttachCartCouponRequest.js +0 -51
  65. package/dist/models/AttachCartItemRequest.d.ts +0 -44
  66. package/dist/models/AttachOrderCouponRequest.d.ts +0 -32
  67. package/dist/models/AttachOrderCouponRequest.js +0 -51
  68. package/dist/models/AttachOrderLineItemRequest.d.ts +0 -44
  69. package/dist/models/AttachOrderLineItemRequest.js +0 -57
  70. package/dist/models/DetachCartCouponRequest.d.ts +0 -32
  71. package/dist/models/DetachCartCouponRequest.js +0 -51
  72. package/dist/models/DetachOrderCouponRequest.d.ts +0 -32
  73. package/dist/models/DetachOrderCouponRequest.js +0 -51
  74. package/dist/models/UpdateCartItemRequest.d.ts +0 -38
  75. package/dist/models/UpdateCustomerRequest.d.ts +0 -56
  76. package/dist/models/UpdateCustomerRequest.js +0 -63
  77. package/dist/models/UpdateOrderLineItemRequest.d.ts +0 -38
  78. package/dist/models/UpdateOrderLineItemRequest.js +0 -53
  79. package/docs/AttachOrderCouponRequest.md +0 -34
  80. package/docs/AttachOrderLineItemRequest.md +0 -38
  81. package/docs/DetachOrderCouponRequest.md +0 -34
  82. package/docs/UpdateCustomerRequest.md +0 -42
  83. package/docs/UpdateOrderLineItemRequest.md +0 -36
  84. package/src/models/AttachCartCouponRequest.ts +0 -66
  85. package/src/models/AttachOrderCouponRequest.ts +0 -66
  86. package/src/models/AttachOrderLineItemRequest.ts +0 -83
  87. package/src/models/DetachCartCouponRequest.ts +0 -66
  88. package/src/models/DetachOrderCouponRequest.ts +0 -66
  89. package/src/models/UpdateCustomerRequest.ts +0 -100
  90. package/src/models/UpdateOrderLineItemRequest.ts +0 -74
@@ -42,7 +42,7 @@ function instanceOfAdminOrderResource(value) {
42
42
  return false;
43
43
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
44
44
  return false;
45
- if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
45
+ if (!('lockedInsuranceAmount' in value) || value['lockedInsuranceAmount'] === undefined)
46
46
  return false;
47
47
  if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
48
48
  return false;
@@ -82,10 +82,6 @@ function instanceOfAdminOrderResource(value) {
82
82
  return false;
83
83
  if (!('totalOutstanding' in value) || value['totalOutstanding'] === undefined)
84
84
  return false;
85
- if (!('discountPreview' in value) || value['discountPreview'] === undefined)
86
- return false;
87
- if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined)
88
- return false;
89
85
  if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined)
90
86
  return false;
91
87
  if (!('site' in value) || value['site'] === undefined)
@@ -130,7 +126,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
130
126
  'shippingType': json['shippingType'],
131
127
  'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
132
128
  'overrideShipping': json['overrideShipping'],
133
- 'insuranceAmount': json['insuranceAmount'],
129
+ 'lockedInsuranceAmount': json['lockedInsuranceAmount'],
134
130
  'includeInsurance': json['includeInsurance'],
135
131
  'overrideInsurance': json['overrideInsurance'],
136
132
  'useAsBillingAddress': json['useAsBillingAddress'],
@@ -150,8 +146,6 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
150
146
  'grandTotal': json['grandTotal'],
151
147
  'totalPaid': json['totalPaid'],
152
148
  'totalOutstanding': json['totalOutstanding'],
153
- 'discountPreview': json['discountPreview'],
154
- 'shippingEstimate': json['shippingEstimate'],
155
149
  'insuranceEstimate': json['insuranceEstimate'],
156
150
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
157
151
  'customer': (0, CustomerResource_1.CustomerResourceFromJSON)(json['customer']),
@@ -185,7 +179,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
185
179
  'shippingType': value['shippingType'],
186
180
  'shippingSubtotal': value['shippingSubtotal'],
187
181
  'overrideShipping': value['overrideShipping'],
188
- 'insuranceAmount': value['insuranceAmount'],
182
+ 'lockedInsuranceAmount': value['lockedInsuranceAmount'],
189
183
  'includeInsurance': value['includeInsurance'],
190
184
  'overrideInsurance': value['overrideInsurance'],
191
185
  'useAsBillingAddress': value['useAsBillingAddress'],
@@ -205,8 +199,6 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
205
199
  'grandTotal': value['grandTotal'],
206
200
  'totalPaid': value['totalPaid'],
207
201
  'totalOutstanding': value['totalOutstanding'],
208
- 'discountPreview': value['discountPreview'],
209
- 'shippingEstimate': value['shippingEstimate'],
210
202
  'insuranceEstimate': value['insuranceEstimate'],
211
203
  'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
212
204
  'customer': (0, CustomerResource_1.CustomerResourceToJSON)(value['customer']),
@@ -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 AttachCouponRequest
16
+ */
17
+ export interface AttachCouponRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AttachCouponRequest
22
+ */
23
+ couponCode: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AttachCouponRequest interface.
27
+ */
28
+ export declare function instanceOfAttachCouponRequest(value: object): value is AttachCouponRequest;
29
+ export declare function AttachCouponRequestFromJSON(json: any): AttachCouponRequest;
30
+ export declare function AttachCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponRequest;
31
+ export declare function AttachCouponRequestToJSON(json: any): AttachCouponRequest;
32
+ export declare function AttachCouponRequestToJSONTyped(value?: AttachCouponRequest | 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.instanceOfAttachCouponRequest = instanceOfAttachCouponRequest;
17
+ exports.AttachCouponRequestFromJSON = AttachCouponRequestFromJSON;
18
+ exports.AttachCouponRequestFromJSONTyped = AttachCouponRequestFromJSONTyped;
19
+ exports.AttachCouponRequestToJSON = AttachCouponRequestToJSON;
20
+ exports.AttachCouponRequestToJSONTyped = AttachCouponRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AttachCouponRequest interface.
23
+ */
24
+ function instanceOfAttachCouponRequest(value) {
25
+ if (!('couponCode' in value) || value['couponCode'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AttachCouponRequestFromJSON(json) {
30
+ return AttachCouponRequestFromJSONTyped(json, false);
31
+ }
32
+ function AttachCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'couponCode': json['coupon_code'],
38
+ };
39
+ }
40
+ function AttachCouponRequestToJSON(json) {
41
+ return AttachCouponRequestToJSONTyped(json, false);
42
+ }
43
+ function AttachCouponRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'coupon_code': value['couponCode'],
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 AttachLineItemRequest
16
+ */
17
+ export interface AttachLineItemRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AttachLineItemRequest
22
+ */
23
+ productChildId: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AttachLineItemRequest
28
+ */
29
+ quantity: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AttachLineItemRequest
34
+ */
35
+ productPrice?: number | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AttachLineItemRequest interface.
39
+ */
40
+ export declare function instanceOfAttachLineItemRequest(value: object): value is AttachLineItemRequest;
41
+ export declare function AttachLineItemRequestFromJSON(json: any): AttachLineItemRequest;
42
+ export declare function AttachLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachLineItemRequest;
43
+ export declare function AttachLineItemRequestToJSON(json: any): AttachLineItemRequest;
44
+ export declare function AttachLineItemRequestToJSONTyped(value?: AttachLineItemRequest | null, ignoreDiscriminator?: boolean): any;
@@ -13,25 +13,25 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfAttachCartItemRequest = instanceOfAttachCartItemRequest;
17
- exports.AttachCartItemRequestFromJSON = AttachCartItemRequestFromJSON;
18
- exports.AttachCartItemRequestFromJSONTyped = AttachCartItemRequestFromJSONTyped;
19
- exports.AttachCartItemRequestToJSON = AttachCartItemRequestToJSON;
20
- exports.AttachCartItemRequestToJSONTyped = AttachCartItemRequestToJSONTyped;
16
+ exports.instanceOfAttachLineItemRequest = instanceOfAttachLineItemRequest;
17
+ exports.AttachLineItemRequestFromJSON = AttachLineItemRequestFromJSON;
18
+ exports.AttachLineItemRequestFromJSONTyped = AttachLineItemRequestFromJSONTyped;
19
+ exports.AttachLineItemRequestToJSON = AttachLineItemRequestToJSON;
20
+ exports.AttachLineItemRequestToJSONTyped = AttachLineItemRequestToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the AttachCartItemRequest interface.
22
+ * Check if a given object implements the AttachLineItemRequest interface.
23
23
  */
24
- function instanceOfAttachCartItemRequest(value) {
24
+ function instanceOfAttachLineItemRequest(value) {
25
25
  if (!('productChildId' in value) || value['productChildId'] === undefined)
26
26
  return false;
27
27
  if (!('quantity' in value) || value['quantity'] === undefined)
28
28
  return false;
29
29
  return true;
30
30
  }
31
- function AttachCartItemRequestFromJSON(json) {
32
- return AttachCartItemRequestFromJSONTyped(json, false);
31
+ function AttachLineItemRequestFromJSON(json) {
32
+ return AttachLineItemRequestFromJSONTyped(json, false);
33
33
  }
34
- function AttachCartItemRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ function AttachLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  if (json == null) {
36
36
  return json;
37
37
  }
@@ -41,10 +41,10 @@ function AttachCartItemRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'productPrice': json['product_price'] == null ? undefined : json['product_price'],
42
42
  };
43
43
  }
44
- function AttachCartItemRequestToJSON(json) {
45
- return AttachCartItemRequestToJSONTyped(json, false);
44
+ function AttachLineItemRequestToJSON(json) {
45
+ return AttachLineItemRequestToJSONTyped(json, false);
46
46
  }
47
- function AttachCartItemRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ function AttachLineItemRequestToJSONTyped(value, ignoreDiscriminator) {
48
48
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
49
  if (value == null) {
50
50
  return value;
@@ -36,54 +36,6 @@ export interface CartListResource {
36
36
  * @memberof CartListResource
37
37
  */
38
38
  source: string;
39
- /**
40
- *
41
- * @type {string}
42
- * @memberof CartListResource
43
- */
44
- shippingType?: string | null;
45
- /**
46
- *
47
- * @type {number}
48
- * @memberof CartListResource
49
- */
50
- shippingSubtotal?: number | null;
51
- /**
52
- *
53
- * @type {boolean}
54
- * @memberof CartListResource
55
- */
56
- overrideShipping: boolean;
57
- /**
58
- *
59
- * @type {number}
60
- * @memberof CartListResource
61
- */
62
- insuranceAmount?: number | null;
63
- /**
64
- *
65
- * @type {boolean}
66
- * @memberof CartListResource
67
- */
68
- includeInsurance: boolean;
69
- /**
70
- *
71
- * @type {boolean}
72
- * @memberof CartListResource
73
- */
74
- overrideInsurance: boolean;
75
- /**
76
- *
77
- * @type {boolean}
78
- * @memberof CartListResource
79
- */
80
- useAsBillingAddress: boolean;
81
- /**
82
- *
83
- * @type {Date}
84
- * @memberof CartListResource
85
- */
86
- expiryDate: Date;
87
39
  /**
88
40
  *
89
41
  * @type {Date}
@@ -27,16 +27,6 @@ var CustomerListResource_1 = require("./CustomerListResource");
27
27
  function instanceOfCartListResource(value) {
28
28
  if (!('source' in value) || value['source'] === undefined)
29
29
  return false;
30
- if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
31
- return false;
32
- if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
33
- return false;
34
- if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
35
- return false;
36
- if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
37
- return false;
38
- if (!('expiryDate' in value) || value['expiryDate'] === undefined)
39
- return false;
40
30
  if (!('site' in value) || value['site'] === undefined)
41
31
  return false;
42
32
  if (!('customer' in value) || value['customer'] === undefined)
@@ -60,14 +50,6 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
60
50
  'id': json['id'] == null ? undefined : json['id'],
61
51
  'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
62
52
  'source': json['source'],
63
- 'shippingType': json['shippingType'] == null ? undefined : json['shippingType'],
64
- 'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
65
- 'overrideShipping': json['overrideShipping'],
66
- 'insuranceAmount': json['insuranceAmount'] == null ? undefined : json['insuranceAmount'],
67
- 'includeInsurance': json['includeInsurance'],
68
- 'overrideInsurance': json['overrideInsurance'],
69
- 'useAsBillingAddress': json['useAsBillingAddress'],
70
- 'expiryDate': (new Date(json['expiryDate'])),
71
53
  'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
72
54
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
73
55
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -89,14 +71,6 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
89
71
  'id': value['id'],
90
72
  'guestEmail': value['guestEmail'],
91
73
  'source': value['source'],
92
- 'shippingType': value['shippingType'],
93
- 'shippingSubtotal': value['shippingSubtotal'],
94
- 'overrideShipping': value['overrideShipping'],
95
- 'insuranceAmount': value['insuranceAmount'],
96
- 'includeInsurance': value['includeInsurance'],
97
- 'overrideInsurance': value['overrideInsurance'],
98
- 'useAsBillingAddress': value['useAsBillingAddress'],
99
- 'expiryDate': value['expiryDate'].toISOString(),
100
74
  'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
101
75
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
102
76
  'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
@@ -94,10 +94,10 @@ export interface CartResource {
94
94
  overrideShipping: boolean;
95
95
  /**
96
96
  *
97
- * @type {number}
97
+ * @type {string}
98
98
  * @memberof CartResource
99
99
  */
100
- insuranceAmount?: number | null;
100
+ lockedInsuranceAmount?: string | null;
101
101
  /**
102
102
  *
103
103
  * @type {boolean}
@@ -99,7 +99,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
99
99
  'shippingType': json['shippingType'],
100
100
  'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
101
101
  'overrideShipping': json['overrideShipping'],
102
- 'insuranceAmount': json['insuranceAmount'] == null ? undefined : json['insuranceAmount'],
102
+ 'lockedInsuranceAmount': json['lockedInsuranceAmount'] == null ? undefined : json['lockedInsuranceAmount'],
103
103
  'includeInsurance': json['includeInsurance'],
104
104
  'overrideInsurance': json['overrideInsurance'],
105
105
  'useAsBillingAddress': json['useAsBillingAddress'],
@@ -144,7 +144,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
144
144
  'shippingType': value['shippingType'],
145
145
  'shippingSubtotal': value['shippingSubtotal'],
146
146
  'overrideShipping': value['overrideShipping'],
147
- 'insuranceAmount': value['insuranceAmount'],
147
+ 'lockedInsuranceAmount': value['lockedInsuranceAmount'],
148
148
  'includeInsurance': value['includeInsurance'],
149
149
  'overrideInsurance': value['overrideInsurance'],
150
150
  'useAsBillingAddress': value['useAsBillingAddress'],
@@ -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 DetachCouponRequest
16
+ */
17
+ export interface DetachCouponRequest {
18
+ /**
19
+ *
20
+ * @type {Array<number>}
21
+ * @memberof DetachCouponRequest
22
+ */
23
+ couponIds: Array<number>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the DetachCouponRequest interface.
27
+ */
28
+ export declare function instanceOfDetachCouponRequest(value: object): value is DetachCouponRequest;
29
+ export declare function DetachCouponRequestFromJSON(json: any): DetachCouponRequest;
30
+ export declare function DetachCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponRequest;
31
+ export declare function DetachCouponRequestToJSON(json: any): DetachCouponRequest;
32
+ export declare function DetachCouponRequestToJSONTyped(value?: DetachCouponRequest | 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.instanceOfDetachCouponRequest = instanceOfDetachCouponRequest;
17
+ exports.DetachCouponRequestFromJSON = DetachCouponRequestFromJSON;
18
+ exports.DetachCouponRequestFromJSONTyped = DetachCouponRequestFromJSONTyped;
19
+ exports.DetachCouponRequestToJSON = DetachCouponRequestToJSON;
20
+ exports.DetachCouponRequestToJSONTyped = DetachCouponRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DetachCouponRequest interface.
23
+ */
24
+ function instanceOfDetachCouponRequest(value) {
25
+ if (!('couponIds' in value) || value['couponIds'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DetachCouponRequestFromJSON(json) {
30
+ return DetachCouponRequestFromJSONTyped(json, false);
31
+ }
32
+ function DetachCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'couponIds': json['coupon_ids'],
38
+ };
39
+ }
40
+ function DetachCouponRequestToJSON(json) {
41
+ return DetachCouponRequestToJSONTyped(json, false);
42
+ }
43
+ function DetachCouponRequestToJSONTyped(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
+ }
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -37,6 +37,8 @@ function instanceOfStoreListResource(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
+ if (!('website' in value) || value['website'] === undefined)
41
+ return false;
40
42
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
41
43
  return false;
42
44
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -59,7 +61,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
59
61
  'latitude': json['latitude'],
60
62
  'tagLine': json['tagLine'],
61
63
  'email': json['email'],
62
- 'website': json['website'] == null ? undefined : json['website'],
64
+ 'website': json['website'],
63
65
  'netsuiteId': json['netsuiteId'],
64
66
  'displayNetsuiteId': json['displayNetsuiteId'],
65
67
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine: string;
63
+ tagLine?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -36,8 +36,6 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
39
  if (!('email' in value) || value['email'] === undefined)
42
40
  return false;
43
41
  if (!('website' in value) || value['website'] === undefined)
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
68
66
  'phone': json['phone'],
69
67
  'longitude': json['longitude'],
70
68
  'latitude': json['latitude'],
71
- 'tagLine': json['tagLine'],
69
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
72
70
  'email': json['email'],
73
71
  'website': json['website'],
74
72
  'netsuiteId': json['netsuiteId'],
@@ -35,10 +35,10 @@ export interface StoreSpecialDateResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {object}
39
39
  * @memberof StoreSpecialDateResource
40
40
  */
41
- date?: string | null;
41
+ date: object;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
+ if (!('date' in value) || value['date'] === undefined)
30
+ return false;
29
31
  if (!('closed' in value) || value['closed'] === undefined)
30
32
  return false;
31
33
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
45
47
  'id': json['id'] == null ? undefined : json['id'],
46
48
  'name': json['name'],
47
49
  'hours': json['hours'],
48
- 'date': json['date'] == null ? undefined : json['date'],
50
+ 'date': json['date'],
49
51
  'closed': json['closed'],
50
52
  'displayStartDate': json['displayStartDate'],
51
53
  'displayEndDate': json['displayEndDate'],
@@ -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 UpdateLineItemRequest
16
+ */
17
+ export interface UpdateLineItemRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UpdateLineItemRequest
22
+ */
23
+ quantity: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UpdateLineItemRequest
28
+ */
29
+ productPrice?: number | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateLineItemRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateLineItemRequest(value: object): value is UpdateLineItemRequest;
35
+ export declare function UpdateLineItemRequestFromJSON(json: any): UpdateLineItemRequest;
36
+ export declare function UpdateLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLineItemRequest;
37
+ export declare function UpdateLineItemRequestToJSON(json: any): UpdateLineItemRequest;
38
+ export declare function UpdateLineItemRequestToJSONTyped(value?: UpdateLineItemRequest | null, ignoreDiscriminator?: boolean): any;
@@ -13,23 +13,23 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfUpdateCartItemRequest = instanceOfUpdateCartItemRequest;
17
- exports.UpdateCartItemRequestFromJSON = UpdateCartItemRequestFromJSON;
18
- exports.UpdateCartItemRequestFromJSONTyped = UpdateCartItemRequestFromJSONTyped;
19
- exports.UpdateCartItemRequestToJSON = UpdateCartItemRequestToJSON;
20
- exports.UpdateCartItemRequestToJSONTyped = UpdateCartItemRequestToJSONTyped;
16
+ exports.instanceOfUpdateLineItemRequest = instanceOfUpdateLineItemRequest;
17
+ exports.UpdateLineItemRequestFromJSON = UpdateLineItemRequestFromJSON;
18
+ exports.UpdateLineItemRequestFromJSONTyped = UpdateLineItemRequestFromJSONTyped;
19
+ exports.UpdateLineItemRequestToJSON = UpdateLineItemRequestToJSON;
20
+ exports.UpdateLineItemRequestToJSONTyped = UpdateLineItemRequestToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the UpdateCartItemRequest interface.
22
+ * Check if a given object implements the UpdateLineItemRequest interface.
23
23
  */
24
- function instanceOfUpdateCartItemRequest(value) {
24
+ function instanceOfUpdateLineItemRequest(value) {
25
25
  if (!('quantity' in value) || value['quantity'] === undefined)
26
26
  return false;
27
27
  return true;
28
28
  }
29
- function UpdateCartItemRequestFromJSON(json) {
30
- return UpdateCartItemRequestFromJSONTyped(json, false);
29
+ function UpdateLineItemRequestFromJSON(json) {
30
+ return UpdateLineItemRequestFromJSONTyped(json, false);
31
31
  }
32
- function UpdateCartItemRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ function UpdateLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  if (json == null) {
34
34
  return json;
35
35
  }
@@ -38,10 +38,10 @@ function UpdateCartItemRequestFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'productPrice': json['product_price'] == null ? undefined : json['product_price'],
39
39
  };
40
40
  }
41
- function UpdateCartItemRequestToJSON(json) {
42
- return UpdateCartItemRequestToJSONTyped(json, false);
41
+ function UpdateLineItemRequestToJSON(json) {
42
+ return UpdateLineItemRequestToJSONTyped(json, false);
43
43
  }
44
- function UpdateCartItemRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ function UpdateLineItemRequestToJSONTyped(value, ignoreDiscriminator) {
45
45
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
46
  if (value == null) {
47
47
  return value;