@digital8/lighting-illusions-ts-sdk 0.0.1933 → 0.0.1934

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 (92) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +8 -2
  3. package/dist/apis/OrdersApi.d.ts +37 -2
  4. package/dist/apis/OrdersApi.js +126 -1
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +1 -3
  7. package/dist/models/AddressResource.d.ts +7 -1
  8. package/dist/models/AddressResource.js +7 -1
  9. package/dist/models/AdminOrderResource.d.ts +16 -4
  10. package/dist/models/AdminOrderResource.js +15 -7
  11. package/dist/models/AttachCouponOrderRequest.d.ts +32 -0
  12. package/dist/models/AttachCouponOrderRequest.js +51 -0
  13. package/dist/models/CartListResource.d.ts +6 -0
  14. package/dist/models/CartListResource.js +4 -0
  15. package/dist/models/CartResource.d.ts +15 -3
  16. package/dist/models/CartResource.js +12 -6
  17. package/dist/models/DetachCouponOrderRequest.d.ts +32 -0
  18. package/dist/models/DetachCouponOrderRequest.js +51 -0
  19. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  20. package/dist/models/ExternalApiLogResource.js +1 -3
  21. package/dist/models/GetAllOrderRequest.d.ts +1 -0
  22. package/dist/models/GetAllOrderRequest.js +2 -1
  23. package/dist/models/IndexOrderRequest.d.ts +1 -0
  24. package/dist/models/IndexOrderRequest.js +2 -1
  25. package/dist/models/OrderListResource.d.ts +18 -0
  26. package/dist/models/OrderListResource.js +10 -0
  27. package/dist/models/OrderStatusWithCountResource.d.ts +50 -0
  28. package/dist/models/OrderStatusWithCountResource.js +63 -0
  29. package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/OrderStatusWithCountResourceArrayResponse.js +50 -0
  31. package/dist/models/StoreCartRequest.d.ts +6 -0
  32. package/dist/models/StoreCartRequest.js +2 -0
  33. package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
  34. package/dist/models/StoreCartRequestShippingAddress.js +2 -0
  35. package/dist/models/StoreFrontendResource.d.ts +2 -2
  36. package/dist/models/StoreFrontendResource.js +6 -2
  37. package/dist/models/StoreResource.d.ts +1 -1
  38. package/dist/models/StoreResource.js +1 -3
  39. package/dist/models/StoreStoreRequestAddress.d.ts +6 -0
  40. package/dist/models/StoreStoreRequestAddress.js +2 -0
  41. package/dist/models/UpdateCartRequest.d.ts +6 -0
  42. package/dist/models/UpdateCartRequest.js +2 -0
  43. package/dist/models/UpdateOrderRequest.d.ts +6 -0
  44. package/dist/models/UpdateOrderRequest.js +2 -0
  45. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +1 -7
  46. package/dist/models/UpdateOrderRequestBillingAddress.js +3 -5
  47. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +1 -7
  48. package/dist/models/UpdateOrderRequestShippingAddress.js +2 -6
  49. package/dist/models/index.d.ts +4 -0
  50. package/dist/models/index.js +4 -0
  51. package/docs/AddressResource.md +2 -0
  52. package/docs/AdminOrderResource.md +7 -3
  53. package/docs/AttachCouponOrderRequest.md +34 -0
  54. package/docs/CartListResource.md +2 -0
  55. package/docs/CartResource.md +8 -4
  56. package/docs/DetachCouponOrderRequest.md +34 -0
  57. package/docs/OrderListResource.md +6 -0
  58. package/docs/OrderStatusWithCountResource.md +40 -0
  59. package/docs/OrderStatusWithCountResourceArrayResponse.md +34 -0
  60. package/docs/OrdersApi.md +141 -3
  61. package/docs/StoreCartRequest.md +2 -0
  62. package/docs/StoreCartRequestShippingAddress.md +2 -0
  63. package/docs/StoreStoreRequestAddress.md +2 -0
  64. package/docs/UpdateCartRequest.md +2 -0
  65. package/docs/UpdateOrderRequest.md +2 -0
  66. package/docs/UpdateOrderRequestBillingAddress.md +2 -4
  67. package/docs/UpdateOrderRequestShippingAddress.md +2 -4
  68. package/package.json +1 -1
  69. package/src/apis/OrdersApi.ts +124 -3
  70. package/src/models/AddressFrontendResource.ts +2 -3
  71. package/src/models/AddressResource.ts +12 -2
  72. package/src/models/AdminOrderResource.ts +28 -10
  73. package/src/models/AttachCouponOrderRequest.ts +66 -0
  74. package/src/models/CartListResource.ts +9 -0
  75. package/src/models/CartResource.ts +26 -9
  76. package/src/models/DetachCouponOrderRequest.ts +66 -0
  77. package/src/models/ExternalApiLogResource.ts +2 -3
  78. package/src/models/GetAllOrderRequest.ts +2 -1
  79. package/src/models/IndexOrderRequest.ts +2 -1
  80. package/src/models/OrderListResource.ts +26 -0
  81. package/src/models/OrderStatusWithCountResource.ts +93 -0
  82. package/src/models/OrderStatusWithCountResourceArrayResponse.ts +73 -0
  83. package/src/models/StoreCartRequest.ts +8 -0
  84. package/src/models/StoreCartRequestShippingAddress.ts +8 -0
  85. package/src/models/StoreFrontendResource.ts +6 -4
  86. package/src/models/StoreResource.ts +2 -3
  87. package/src/models/StoreStoreRequestAddress.ts +8 -0
  88. package/src/models/UpdateCartRequest.ts +8 -0
  89. package/src/models/UpdateOrderRequest.ts +8 -0
  90. package/src/models/UpdateOrderRequestBillingAddress.ts +4 -12
  91. package/src/models/UpdateOrderRequestShippingAddress.ts +3 -12
  92. package/src/models/index.ts +4 -0
@@ -60,6 +60,12 @@ export interface CartListResource {
60
60
  * @memberof CartListResource
61
61
  */
62
62
  insuranceAmount?: number | null;
63
+ /**
64
+ *
65
+ * @type {boolean}
66
+ * @memberof CartListResource
67
+ */
68
+ includeInsurance: boolean;
63
69
  /**
64
70
  *
65
71
  * @type {boolean}
@@ -29,6 +29,8 @@ function instanceOfCartListResource(value) {
29
29
  return false;
30
30
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
31
31
  return false;
32
+ if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
33
+ return false;
32
34
  if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
33
35
  return false;
34
36
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
@@ -62,6 +64,7 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
62
64
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
63
65
  'overrideShipping': json['override_shipping'],
64
66
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
67
+ 'includeInsurance': json['include_insurance'],
65
68
  'overrideInsurance': json['override_insurance'],
66
69
  'useAsBillingAddress': json['use_as_billing_address'],
67
70
  'expiryDate': (new Date(json['expiry_date'])),
@@ -90,6 +93,7 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
90
93
  'shipping_subtotal': value['shippingSubtotal'],
91
94
  'override_shipping': value['overrideShipping'],
92
95
  'insurance_amount': value['insuranceAmount'],
96
+ 'include_insurance': value['includeInsurance'],
93
97
  'override_insurance': value['overrideInsurance'],
94
98
  'use_as_billing_address': value['useAsBillingAddress'],
95
99
  'expiry_date': value['expiryDate'].toISOString(),
@@ -94,10 +94,16 @@ 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;
100
+ insuranceSubtotal?: string | null;
101
+ /**
102
+ *
103
+ * @type {boolean}
104
+ * @memberof CartResource
105
+ */
106
+ includeInsurance: boolean;
101
107
  /**
102
108
  *
103
109
  * @type {boolean}
@@ -170,6 +176,12 @@ export interface CartResource {
170
176
  * @memberof CartResource
171
177
  */
172
178
  shippingAmount: number;
179
+ /**
180
+ *
181
+ * @type {number}
182
+ * @memberof CartResource
183
+ */
184
+ insuranceAmount: number;
173
185
  /**
174
186
  *
175
187
  * @type {number}
@@ -199,7 +211,7 @@ export interface CartResource {
199
211
  * @type {number}
200
212
  * @memberof CartResource
201
213
  */
202
- cartDiscountAmount: number;
214
+ subtotalDiscountAmount: number;
203
215
  /**
204
216
  *
205
217
  * @type {number}
@@ -35,7 +35,7 @@ function instanceOfCartResource(value) {
35
35
  return false;
36
36
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
37
37
  return false;
38
- if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
38
+ if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
39
39
  return false;
40
40
  if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
41
41
  return false;
@@ -61,6 +61,8 @@ function instanceOfCartResource(value) {
61
61
  return false;
62
62
  if (!('shippingAmount' in value) || value['shippingAmount'] === undefined)
63
63
  return false;
64
+ if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
65
+ return false;
64
66
  if (!('total' in value) || value['total'] === undefined)
65
67
  return false;
66
68
  if (!('discountAmount' in value) || value['discountAmount'] === undefined)
@@ -69,7 +71,7 @@ function instanceOfCartResource(value) {
69
71
  return false;
70
72
  if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined)
71
73
  return false;
72
- if (!('cartDiscountAmount' in value) || value['cartDiscountAmount'] === undefined)
74
+ if (!('subtotalDiscountAmount' in value) || value['subtotalDiscountAmount'] === undefined)
73
75
  return false;
74
76
  if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined)
75
77
  return false;
@@ -97,7 +99,8 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
97
99
  'shippingType': json['shipping_type'],
98
100
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
99
101
  'overrideShipping': json['override_shipping'],
100
- 'insuranceAmount': json['insurance_amount'],
102
+ 'insuranceSubtotal': json['insurance_subtotal'] == null ? undefined : json['insurance_subtotal'],
103
+ 'includeInsurance': json['include_insurance'],
101
104
  'overrideInsurance': json['override_insurance'],
102
105
  'useAsBillingAddress': json['use_as_billing_address'],
103
106
  'admin': json['admin'],
@@ -110,11 +113,12 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
110
113
  'discountPreview': json['discount_preview'],
111
114
  'subtotal': json['subtotal'],
112
115
  'shippingAmount': json['shipping_amount'],
116
+ 'insuranceAmount': json['insurance_amount'],
113
117
  'total': json['total'],
114
118
  'discountAmount': json['discount_amount'],
115
119
  'productDiscountAmount': json['product_discount_amount'],
116
120
  'shippingDiscountAmount': json['shipping_discount_amount'],
117
- 'cartDiscountAmount': json['cart_discount_amount'],
121
+ 'subtotalDiscountAmount': json['subtotal_discount_amount'],
118
122
  'finalTotalAmount': json['final_total_amount'],
119
123
  'status': json['status'],
120
124
  };
@@ -140,7 +144,8 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
140
144
  'shipping_type': value['shippingType'],
141
145
  'shipping_subtotal': value['shippingSubtotal'],
142
146
  'override_shipping': value['overrideShipping'],
143
- 'insurance_amount': value['insuranceAmount'],
147
+ 'insurance_subtotal': value['insuranceSubtotal'],
148
+ 'include_insurance': value['includeInsurance'],
144
149
  'override_insurance': value['overrideInsurance'],
145
150
  'use_as_billing_address': value['useAsBillingAddress'],
146
151
  'admin': value['admin'],
@@ -153,11 +158,12 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
153
158
  'discount_preview': value['discountPreview'],
154
159
  'subtotal': value['subtotal'],
155
160
  'shipping_amount': value['shippingAmount'],
161
+ 'insurance_amount': value['insuranceAmount'],
156
162
  'total': value['total'],
157
163
  'discount_amount': value['discountAmount'],
158
164
  'product_discount_amount': value['productDiscountAmount'],
159
165
  'shipping_discount_amount': value['shippingDiscountAmount'],
160
- 'cart_discount_amount': value['cartDiscountAmount'],
166
+ 'subtotal_discount_amount': value['subtotalDiscountAmount'],
161
167
  'final_total_amount': value['finalTotalAmount'],
162
168
  'status': value['status'],
163
169
  };
@@ -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 DetachCouponOrderRequest
16
+ */
17
+ export interface DetachCouponOrderRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof DetachCouponOrderRequest
22
+ */
23
+ couponId: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the DetachCouponOrderRequest interface.
27
+ */
28
+ export declare function instanceOfDetachCouponOrderRequest(value: object): value is DetachCouponOrderRequest;
29
+ export declare function DetachCouponOrderRequestFromJSON(json: any): DetachCouponOrderRequest;
30
+ export declare function DetachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponOrderRequest;
31
+ export declare function DetachCouponOrderRequestToJSON(json: any): DetachCouponOrderRequest;
32
+ export declare function DetachCouponOrderRequestToJSONTyped(value?: DetachCouponOrderRequest | 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.instanceOfDetachCouponOrderRequest = instanceOfDetachCouponOrderRequest;
17
+ exports.DetachCouponOrderRequestFromJSON = DetachCouponOrderRequestFromJSON;
18
+ exports.DetachCouponOrderRequestFromJSONTyped = DetachCouponOrderRequestFromJSONTyped;
19
+ exports.DetachCouponOrderRequestToJSON = DetachCouponOrderRequestToJSON;
20
+ exports.DetachCouponOrderRequestToJSONTyped = DetachCouponOrderRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DetachCouponOrderRequest interface.
23
+ */
24
+ function instanceOfDetachCouponOrderRequest(value) {
25
+ if (!('couponId' in value) || value['couponId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DetachCouponOrderRequestFromJSON(json) {
30
+ return DetachCouponOrderRequestFromJSONTyped(json, false);
31
+ }
32
+ function DetachCouponOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'couponId': json['coupon_id'],
38
+ };
39
+ }
40
+ function DetachCouponOrderRequestToJSON(json) {
41
+ return DetachCouponOrderRequestToJSONTyped(json, false);
42
+ }
43
+ function DetachCouponOrderRequestToJSONTyped(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
+ }
@@ -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']),
@@ -84,6 +84,7 @@ export declare const GetAllOrderRequestSortByEnum: {
84
84
  readonly CreatedAt: "created_at";
85
85
  readonly PlacedAt: "placed_at";
86
86
  readonly UpdatedAt: "updated_at";
87
+ readonly NsId: "ns_id";
87
88
  };
88
89
  export type GetAllOrderRequestSortByEnum = typeof GetAllOrderRequestSortByEnum[keyof typeof GetAllOrderRequestSortByEnum];
89
90
  /**
@@ -26,7 +26,8 @@ exports.GetAllOrderRequestSortByEnum = {
26
26
  Id: 'id',
27
27
  CreatedAt: 'created_at',
28
28
  PlacedAt: 'placed_at',
29
- UpdatedAt: 'updated_at'
29
+ UpdatedAt: 'updated_at',
30
+ NsId: 'ns_id'
30
31
  };
31
32
  /**
32
33
  * @export
@@ -120,6 +120,7 @@ export declare const IndexOrderRequestSortByEnum: {
120
120
  readonly CreatedAt: "created_at";
121
121
  readonly PlacedAt: "placed_at";
122
122
  readonly UpdatedAt: "updated_at";
123
+ readonly NsId: "ns_id";
123
124
  };
124
125
  export type IndexOrderRequestSortByEnum = typeof IndexOrderRequestSortByEnum[keyof typeof IndexOrderRequestSortByEnum];
125
126
  /**
@@ -26,7 +26,8 @@ exports.IndexOrderRequestSortByEnum = {
26
26
  Id: 'id',
27
27
  CreatedAt: 'created_at',
28
28
  PlacedAt: 'placed_at',
29
- UpdatedAt: 'updated_at'
29
+ UpdatedAt: 'updated_at',
30
+ NsId: 'ns_id'
30
31
  };
31
32
  /**
32
33
  * @export
@@ -48,6 +48,24 @@ export interface OrderListResource {
48
48
  * @memberof OrderListResource
49
49
  */
50
50
  updatedAt?: Date | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof OrderListResource
55
+ */
56
+ source: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof OrderListResource
61
+ */
62
+ netsuiteId?: string | null;
63
+ /**
64
+ *
65
+ * @type {boolean}
66
+ * @memberof OrderListResource
67
+ */
68
+ isNetsuiteLocked: boolean;
51
69
  /**
52
70
  *
53
71
  * @type {number}
@@ -27,6 +27,10 @@ var CustomerListResource_1 = require("./CustomerListResource");
27
27
  function instanceOfOrderListResource(value) {
28
28
  if (!('placedAt' in value) || value['placedAt'] === undefined)
29
29
  return false;
30
+ if (!('source' in value) || value['source'] === undefined)
31
+ return false;
32
+ if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined)
33
+ return false;
30
34
  if (!('subtotal' in value) || value['subtotal'] === undefined)
31
35
  return false;
32
36
  if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined)
@@ -56,6 +60,9 @@ function OrderListResourceFromJSONTyped(json, ignoreDiscriminator) {
56
60
  'placedAt': (new Date(json['placed_at'])),
57
61
  'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
58
62
  'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
63
+ 'source': json['source'],
64
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
65
+ 'isNetsuiteLocked': json['is_netsuite_locked'],
59
66
  'subtotal': json['subtotal'],
60
67
  'finalTotalAmount': json['final_total_amount'],
61
68
  'cartStatusContext': json['cart_status_context'],
@@ -79,6 +86,9 @@ function OrderListResourceToJSONTyped(value, ignoreDiscriminator) {
79
86
  'placed_at': value['placedAt'].toISOString(),
80
87
  'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
81
88
  'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
89
+ 'source': value['source'],
90
+ 'netsuite_id': value['netsuiteId'],
91
+ 'is_netsuite_locked': value['isNetsuiteLocked'],
82
92
  'subtotal': value['subtotal'],
83
93
  'final_total_amount': value['finalTotalAmount'],
84
94
  'cart_status_context': value['cartStatusContext'],
@@ -0,0 +1,50 @@
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 OrderStatusWithCountResource
16
+ */
17
+ export interface OrderStatusWithCountResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof OrderStatusWithCountResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OrderStatusWithCountResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof OrderStatusWithCountResource
34
+ */
35
+ isOrderNetsuiteSyncable: boolean;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof OrderStatusWithCountResource
40
+ */
41
+ ordersCount: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the OrderStatusWithCountResource interface.
45
+ */
46
+ export declare function instanceOfOrderStatusWithCountResource(value: object): value is OrderStatusWithCountResource;
47
+ export declare function OrderStatusWithCountResourceFromJSON(json: any): OrderStatusWithCountResource;
48
+ export declare function OrderStatusWithCountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusWithCountResource;
49
+ export declare function OrderStatusWithCountResourceToJSON(json: any): OrderStatusWithCountResource;
50
+ export declare function OrderStatusWithCountResourceToJSONTyped(value?: OrderStatusWithCountResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfOrderStatusWithCountResource = instanceOfOrderStatusWithCountResource;
17
+ exports.OrderStatusWithCountResourceFromJSON = OrderStatusWithCountResourceFromJSON;
18
+ exports.OrderStatusWithCountResourceFromJSONTyped = OrderStatusWithCountResourceFromJSONTyped;
19
+ exports.OrderStatusWithCountResourceToJSON = OrderStatusWithCountResourceToJSON;
20
+ exports.OrderStatusWithCountResourceToJSONTyped = OrderStatusWithCountResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OrderStatusWithCountResource interface.
23
+ */
24
+ function instanceOfOrderStatusWithCountResource(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 (!('isOrderNetsuiteSyncable' in value) || value['isOrderNetsuiteSyncable'] === undefined)
30
+ return false;
31
+ if (!('ordersCount' in value) || value['ordersCount'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function OrderStatusWithCountResourceFromJSON(json) {
36
+ return OrderStatusWithCountResourceFromJSONTyped(json, false);
37
+ }
38
+ function OrderStatusWithCountResourceFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'name': json['name'],
45
+ 'isOrderNetsuiteSyncable': json['is_order_netsuite_syncable'],
46
+ 'ordersCount': json['orders_count'],
47
+ };
48
+ }
49
+ function OrderStatusWithCountResourceToJSON(json) {
50
+ return OrderStatusWithCountResourceToJSONTyped(json, false);
51
+ }
52
+ function OrderStatusWithCountResourceToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'name': value['name'],
60
+ 'is_order_netsuite_syncable': value['isOrderNetsuiteSyncable'],
61
+ 'orders_count': value['ordersCount'],
62
+ };
63
+ }
@@ -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 { OrderStatusWithCountResource } from './OrderStatusWithCountResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface OrderStatusWithCountResourceArrayResponse
17
+ */
18
+ export interface OrderStatusWithCountResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<OrderStatusWithCountResource>}
22
+ * @memberof OrderStatusWithCountResourceArrayResponse
23
+ */
24
+ data?: Array<OrderStatusWithCountResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the OrderStatusWithCountResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfOrderStatusWithCountResourceArrayResponse(value: object): value is OrderStatusWithCountResourceArrayResponse;
30
+ export declare function OrderStatusWithCountResourceArrayResponseFromJSON(json: any): OrderStatusWithCountResourceArrayResponse;
31
+ export declare function OrderStatusWithCountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusWithCountResourceArrayResponse;
32
+ export declare function OrderStatusWithCountResourceArrayResponseToJSON(json: any): OrderStatusWithCountResourceArrayResponse;
33
+ export declare function OrderStatusWithCountResourceArrayResponseToJSONTyped(value?: OrderStatusWithCountResourceArrayResponse | 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.instanceOfOrderStatusWithCountResourceArrayResponse = instanceOfOrderStatusWithCountResourceArrayResponse;
17
+ exports.OrderStatusWithCountResourceArrayResponseFromJSON = OrderStatusWithCountResourceArrayResponseFromJSON;
18
+ exports.OrderStatusWithCountResourceArrayResponseFromJSONTyped = OrderStatusWithCountResourceArrayResponseFromJSONTyped;
19
+ exports.OrderStatusWithCountResourceArrayResponseToJSON = OrderStatusWithCountResourceArrayResponseToJSON;
20
+ exports.OrderStatusWithCountResourceArrayResponseToJSONTyped = OrderStatusWithCountResourceArrayResponseToJSONTyped;
21
+ var OrderStatusWithCountResource_1 = require("./OrderStatusWithCountResource");
22
+ /**
23
+ * Check if a given object implements the OrderStatusWithCountResourceArrayResponse interface.
24
+ */
25
+ function instanceOfOrderStatusWithCountResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function OrderStatusWithCountResourceArrayResponseFromJSON(json) {
29
+ return OrderStatusWithCountResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function OrderStatusWithCountResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(OrderStatusWithCountResource_1.OrderStatusWithCountResourceFromJSON)),
37
+ };
38
+ }
39
+ function OrderStatusWithCountResourceArrayResponseToJSON(json) {
40
+ return OrderStatusWithCountResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function OrderStatusWithCountResourceArrayResponseToJSONTyped(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(OrderStatusWithCountResource_1.OrderStatusWithCountResourceToJSON)),
49
+ };
50
+ }
@@ -90,6 +90,12 @@ export interface StoreCartRequest {
90
90
  * @memberof StoreCartRequest
91
91
  */
92
92
  insuranceAmount?: number | null;
93
+ /**
94
+ *
95
+ * @type {boolean}
96
+ * @memberof StoreCartRequest
97
+ */
98
+ includeInsurance?: boolean;
93
99
  /**
94
100
  *
95
101
  * @type {boolean}
@@ -73,6 +73,7 @@ function StoreCartRequestFromJSONTyped(json, ignoreDiscriminator) {
73
73
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
74
74
  'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
75
75
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
76
+ 'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
76
77
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
77
78
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
78
79
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
@@ -102,6 +103,7 @@ function StoreCartRequestToJSONTyped(value, ignoreDiscriminator) {
102
103
  'shipping_subtotal': value['shippingSubtotal'],
103
104
  'override_shipping': value['overrideShipping'],
104
105
  'insurance_amount': value['insuranceAmount'],
106
+ 'include_insurance': value['includeInsurance'],
105
107
  'override_insurance': value['overrideInsurance'],
106
108
  'use_as_billing_address': value['useAsBillingAddress'],
107
109
  'shipping_address_id': value['shippingAddressId'],
@@ -15,6 +15,12 @@
15
15
  * @interface StoreCartRequestShippingAddress
16
16
  */
17
17
  export interface StoreCartRequestShippingAddress {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StoreCartRequestShippingAddress
22
+ */
23
+ addresseeName?: string | null;
18
24
  /**
19
25
  *
20
26
  * @type {string}
@@ -32,6 +32,7 @@ function StoreCartRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator)
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
35
36
  'company': json['company'] == null ? undefined : json['company'],
36
37
  'addressee': json['addressee'] == null ? undefined : json['addressee'],
37
38
  'line1': json['line_1'] == null ? undefined : json['line_1'],
@@ -51,6 +52,7 @@ function StoreCartRequestShippingAddressToJSONTyped(value, ignoreDiscriminator)
51
52
  return value;
52
53
  }
53
54
  return {
55
+ 'addressee_name': value['addresseeName'],
54
56
  'company': value['company'],
55
57
  'addressee': value['addressee'],
56
58
  'line_1': value['line1'],
@@ -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}
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine?: string | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}