@digital8/lighting-illusions-ts-sdk 0.0.1936 → 0.0.1938

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 (93) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/README.md +8 -3
  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 +3 -1
  7. package/dist/models/AddressResource.d.ts +1 -7
  8. package/dist/models/AddressResource.js +3 -5
  9. package/dist/models/AdminOrderResource.d.ts +12 -0
  10. package/dist/models/AdminOrderResource.js +8 -0
  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 +6 -0
  16. package/dist/models/CartResource.js +4 -0
  17. package/dist/models/DetachCouponOrderRequest.d.ts +32 -0
  18. package/dist/models/DetachCouponOrderRequest.js +51 -0
  19. package/dist/models/GetAllOrderRequest.d.ts +1 -0
  20. package/dist/models/GetAllOrderRequest.js +2 -1
  21. package/dist/models/IndexOrderRequest.d.ts +1 -0
  22. package/dist/models/IndexOrderRequest.js +2 -1
  23. package/dist/models/OrderListResource.d.ts +18 -0
  24. package/dist/models/OrderListResource.js +10 -0
  25. package/dist/models/OrderStatusWithCountResource.d.ts +50 -0
  26. package/dist/models/OrderStatusWithCountResource.js +63 -0
  27. package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/OrderStatusWithCountResourceArrayResponse.js +50 -0
  29. package/dist/models/StoreCartRequest.d.ts +6 -0
  30. package/dist/models/StoreCartRequest.js +2 -0
  31. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
  32. package/dist/models/StoreCartRequestShippingAddress.js +0 -2
  33. package/dist/models/StoreListResource.d.ts +2 -2
  34. package/dist/models/StoreListResource.js +4 -4
  35. package/dist/models/StoreResource.d.ts +1 -1
  36. package/dist/models/StoreResource.js +1 -3
  37. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  38. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  39. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  40. package/dist/models/StoreSpecialDateResource.js +1 -3
  41. package/dist/models/UpdateCartRequest.d.ts +6 -0
  42. package/dist/models/UpdateCartRequest.js +2 -0
  43. package/dist/models/UpdateOrderRequest.d.ts +9 -3
  44. package/dist/models/UpdateOrderRequest.js +5 -3
  45. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +1 -7
  46. package/dist/models/UpdateOrderRequestBillingAddress.js +3 -5
  47. package/dist/models/index.d.ts +4 -1
  48. package/dist/models/index.js +4 -1
  49. package/docs/AddressResource.md +0 -2
  50. package/docs/AdminOrderResource.md +4 -0
  51. package/docs/AttachCouponOrderRequest.md +34 -0
  52. package/docs/CartListResource.md +2 -0
  53. package/docs/CartResource.md +2 -0
  54. package/docs/DetachCouponOrderRequest.md +34 -0
  55. package/docs/OrderListResource.md +6 -0
  56. package/docs/OrderStatusWithCountResource.md +40 -0
  57. package/docs/OrderStatusWithCountResourceArrayResponse.md +34 -0
  58. package/docs/OrdersApi.md +141 -3
  59. package/docs/StoreCartRequest.md +2 -0
  60. package/docs/StoreCartRequestShippingAddress.md +0 -2
  61. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  62. package/docs/StoreSpecialDateResource.md +1 -1
  63. package/docs/UpdateCartRequest.md +2 -0
  64. package/docs/UpdateOrderRequest.md +3 -1
  65. package/docs/UpdateOrderRequestBillingAddress.md +2 -4
  66. package/package.json +1 -1
  67. package/src/apis/OrdersApi.ts +124 -3
  68. package/src/models/AddressFrontendResource.ts +3 -2
  69. package/src/models/AddressResource.ts +3 -11
  70. package/src/models/AdminOrderResource.ts +18 -0
  71. package/src/models/AttachCouponOrderRequest.ts +66 -0
  72. package/src/models/CartListResource.ts +9 -0
  73. package/src/models/CartResource.ts +9 -0
  74. package/src/models/DetachCouponOrderRequest.ts +66 -0
  75. package/src/models/GetAllOrderRequest.ts +2 -1
  76. package/src/models/IndexOrderRequest.ts +2 -1
  77. package/src/models/OrderListResource.ts +26 -0
  78. package/src/models/OrderStatusWithCountResource.ts +93 -0
  79. package/src/models/OrderStatusWithCountResourceArrayResponse.ts +73 -0
  80. package/src/models/StoreCartRequest.ts +8 -0
  81. package/src/models/StoreCartRequestShippingAddress.ts +0 -8
  82. package/src/models/StoreListResource.ts +5 -5
  83. package/src/models/StoreResource.ts +2 -3
  84. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  85. package/src/models/StoreSpecialDateResource.ts +3 -4
  86. package/src/models/UpdateCartRequest.ts +8 -0
  87. package/src/models/UpdateOrderRequest.ts +18 -10
  88. package/src/models/UpdateOrderRequestBillingAddress.ts +4 -12
  89. package/src/models/index.ts +4 -1
  90. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
  91. package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
  92. package/docs/UpdateOrderRequestShippingAddress.md +0 -50
  93. package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
@@ -35,6 +35,8 @@ function instanceOfCartResource(value) {
35
35
  return false;
36
36
  if (!('overrideShipping' in value) || value['overrideShipping'] === undefined)
37
37
  return false;
38
+ if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
39
+ return false;
38
40
  if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
39
41
  return false;
40
42
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
@@ -98,6 +100,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
98
100
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
99
101
  'overrideShipping': json['override_shipping'],
100
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'],
@@ -142,6 +145,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
142
145
  'shipping_subtotal': value['shippingSubtotal'],
143
146
  'override_shipping': value['overrideShipping'],
144
147
  'insurance_subtotal': value['insuranceSubtotal'],
148
+ 'include_insurance': value['includeInsurance'],
145
149
  'override_insurance': value['overrideInsurance'],
146
150
  'use_as_billing_address': value['useAsBillingAddress'],
147
151
  'admin': value['admin'],
@@ -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
+ }
@@ -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'],
@@ -27,12 +27,6 @@ export interface StoreCartRequestShippingAddress {
27
27
  * @memberof StoreCartRequestShippingAddress
28
28
  */
29
29
  company?: string | null;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof StoreCartRequestShippingAddress
34
- */
35
- addressee?: string | null;
36
30
  /**
37
31
  *
38
32
  * @type {string}
@@ -34,7 +34,6 @@ function StoreCartRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator)
34
34
  return {
35
35
  'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
36
36
  'company': json['company'] == null ? undefined : json['company'],
37
- 'addressee': json['addressee'] == null ? undefined : json['addressee'],
38
37
  'line1': json['line_1'] == null ? undefined : json['line_1'],
39
38
  'line2': json['line_2'] == null ? undefined : json['line_2'],
40
39
  'suburb': json['suburb'] == null ? undefined : json['suburb'],
@@ -54,7 +53,6 @@ function StoreCartRequestShippingAddressToJSONTyped(value, ignoreDiscriminator)
54
53
  return {
55
54
  'addressee_name': value['addresseeName'],
56
55
  'company': value['company'],
57
- 'addressee': value['addressee'],
58
56
  'line_1': value['line1'],
59
57
  'line_2': value['line2'],
60
58
  'suburb': value['suburb'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine: string;
60
+ tagLine?: string | null;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -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 {string}
@@ -33,10 +33,10 @@ 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;
38
36
  if (!('email' in value) || value['email'] === undefined)
39
37
  return false;
38
+ if (!('website' in value) || value['website'] === undefined)
39
+ return false;
40
40
  return true;
41
41
  }
42
42
  function StoreListResourceFromJSON(json) {
@@ -53,9 +53,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'phone': json['phone'],
54
54
  'longitude': json['longitude'],
55
55
  'latitude': json['latitude'],
56
- 'tagLine': json['tag_line'],
56
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
57
57
  'email': json['email'],
58
- 'website': json['website'] == null ? undefined : json['website'],
58
+ 'website': json['website'],
59
59
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
60
60
  };
61
61
  }
@@ -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']),
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {object}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date?: string | null;
41
+ date: object;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(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 StoreSpecialDateFrontendResourceFromJSONTyped(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'],
@@ -35,10 +35,10 @@ export interface StoreSpecialDateResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {object}
38
+ * @type {string}
39
39
  * @memberof StoreSpecialDateResource
40
40
  */
41
- date: object;
41
+ date?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,8 +26,6 @@ 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;
31
29
  if (!('closed' in value) || value['closed'] === undefined)
32
30
  return false;
33
31
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
47
45
  'id': json['id'] == null ? undefined : json['id'],
48
46
  'name': json['name'],
49
47
  'hours': json['hours'],
50
- 'date': json['date'],
48
+ 'date': json['date'] == null ? undefined : json['date'],
51
49
  'closed': json['closed'],
52
50
  'displayStartDate': json['display_start_date'],
53
51
  'displayEndDate': json['display_end_date'],
@@ -65,6 +65,12 @@ export interface UpdateCartRequest {
65
65
  * @memberof UpdateCartRequest
66
66
  */
67
67
  insuranceAmount?: number | null;
68
+ /**
69
+ *
70
+ * @type {boolean}
71
+ * @memberof UpdateCartRequest
72
+ */
73
+ includeInsurance?: boolean;
68
74
  /**
69
75
  *
70
76
  * @type {boolean}
@@ -64,6 +64,7 @@ function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
65
65
  'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
66
66
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
67
+ 'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
67
68
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
68
69
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
69
70
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
@@ -89,6 +90,7 @@ function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
89
90
  'shipping_subtotal': value['shippingSubtotal'],
90
91
  'override_shipping': value['overrideShipping'],
91
92
  'insurance_amount': value['insuranceAmount'],
93
+ 'include_insurance': value['includeInsurance'],
92
94
  'override_insurance': value['overrideInsurance'],
93
95
  'use_as_billing_address': value['useAsBillingAddress'],
94
96
  'shipping_address_id': value['shippingAddressId'],