@digital8/lighting-illusions-ts-sdk 0.0.1932 → 0.0.1933
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.
- package/.openapi-generator/FILES +8 -8
- package/README.md +7 -8
- package/dist/apis/AdminApi.d.ts +17 -0
- package/dist/apis/AdminApi.js +60 -0
- package/dist/apis/OrdersApi.d.ts +2 -37
- package/dist/apis/OrdersApi.js +1 -126
- package/dist/models/AddressResource.d.ts +0 -6
- package/dist/models/AddressResource.js +0 -4
- package/dist/models/AdminNoteResource.d.ts +68 -0
- package/dist/models/AdminNoteResource.js +71 -0
- package/dist/models/AdminNoteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminNoteResourceArrayResponse.js +50 -0
- package/dist/models/AdminOrderResource.d.ts +4 -16
- package/dist/models/AdminOrderResource.js +7 -15
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CartResource.d.ts +3 -15
- package/dist/models/CartResource.js +6 -12
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllAdminNoteRequest.d.ts +102 -0
- package/dist/models/GetAllAdminNoteRequest.js +82 -0
- package/dist/models/GetAllOrderRequest.d.ts +0 -1
- package/dist/models/GetAllOrderRequest.js +1 -2
- package/dist/models/IndexOrderRequest.d.ts +0 -1
- package/dist/models/IndexOrderRequest.js +1 -2
- package/dist/models/OrderListResource.d.ts +0 -18
- package/dist/models/OrderListResource.js +0 -10
- package/dist/models/PaginatedAdminNoteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAdminNoteResourceResponse.js +57 -0
- package/dist/models/StoreCartRequest.d.ts +0 -6
- package/dist/models/StoreCartRequest.js +0 -2
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
- package/dist/models/StoreStoreRequestAddress.js +0 -2
- package/dist/models/UpdateCartRequest.d.ts +0 -6
- package/dist/models/UpdateCartRequest.js +0 -2
- package/dist/models/UpdateOrderRequest.d.ts +0 -6
- package/dist/models/UpdateOrderRequest.js +0 -2
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +7 -1
- package/dist/models/UpdateOrderRequestBillingAddress.js +5 -3
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +7 -1
- package/dist/models/UpdateOrderRequestShippingAddress.js +6 -2
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/docs/AddressResource.md +0 -2
- package/docs/AdminApi.md +66 -0
- package/docs/{OrderStatusWithCountResource.md → AdminNoteResource.md} +16 -10
- package/docs/{AttachCouponOrderRequest.md → AdminNoteResourceArrayResponse.md} +6 -6
- package/docs/AdminOrderResource.md +3 -7
- package/docs/CartListResource.md +0 -2
- package/docs/CartResource.md +4 -8
- package/docs/GetAllAdminNoteRequest.md +52 -0
- package/docs/OrderListResource.md +0 -6
- package/docs/OrdersApi.md +3 -141
- package/docs/{OrderStatusWithCountResourceArrayResponse.md → PaginatedAdminNoteResourceResponse.md} +7 -5
- package/docs/StoreCartRequest.md +0 -2
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreStoreRequestAddress.md +0 -2
- package/docs/UpdateCartRequest.md +0 -2
- package/docs/UpdateOrderRequest.md +0 -2
- package/docs/UpdateOrderRequestBillingAddress.md +4 -2
- package/docs/UpdateOrderRequestShippingAddress.md +4 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +54 -0
- package/src/apis/OrdersApi.ts +3 -124
- package/src/models/AddressResource.ts +0 -9
- package/src/models/AdminNoteResource.ts +118 -0
- package/src/models/AdminNoteResourceArrayResponse.ts +73 -0
- package/src/models/AdminOrderResource.ts +10 -28
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +9 -26
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllAdminNoteRequest.ts +157 -0
- package/src/models/GetAllOrderRequest.ts +1 -2
- package/src/models/IndexOrderRequest.ts +1 -2
- package/src/models/OrderListResource.ts +0 -26
- package/src/models/PaginatedAdminNoteResourceResponse.ts +90 -0
- package/src/models/StoreCartRequest.ts +0 -8
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreStoreRequestAddress.ts +0 -8
- package/src/models/UpdateCartRequest.ts +0 -8
- package/src/models/UpdateOrderRequest.ts +0 -8
- package/src/models/UpdateOrderRequestBillingAddress.ts +12 -4
- package/src/models/UpdateOrderRequestShippingAddress.ts +12 -3
- package/src/models/index.ts +4 -4
- package/dist/models/AttachCouponOrderRequest.d.ts +0 -32
- package/dist/models/AttachCouponOrderRequest.js +0 -51
- package/dist/models/DetachCouponOrderRequest.d.ts +0 -32
- package/dist/models/DetachCouponOrderRequest.js +0 -51
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -50
- package/dist/models/OrderStatusWithCountResource.js +0 -63
- package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderStatusWithCountResourceArrayResponse.js +0 -50
- package/docs/DetachCouponOrderRequest.md +0 -34
- package/src/models/AttachCouponOrderRequest.ts +0 -66
- package/src/models/DetachCouponOrderRequest.ts +0 -66
- package/src/models/OrderStatusWithCountResource.ts +0 -93
- package/src/models/OrderStatusWithCountResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfAdminNoteResource = instanceOfAdminNoteResource;
|
|
17
|
+
exports.AdminNoteResourceFromJSON = AdminNoteResourceFromJSON;
|
|
18
|
+
exports.AdminNoteResourceFromJSONTyped = AdminNoteResourceFromJSONTyped;
|
|
19
|
+
exports.AdminNoteResourceToJSON = AdminNoteResourceToJSON;
|
|
20
|
+
exports.AdminNoteResourceToJSONTyped = AdminNoteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminNoteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminNoteResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('orderId' in value) || value['orderId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('adminId' in value) || value['adminId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('note' in value) || value['note'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('admin' in value) || value['admin'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AdminNoteResourceFromJSON(json) {
|
|
38
|
+
return AdminNoteResourceFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AdminNoteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'orderId': json['orderId'],
|
|
47
|
+
'adminId': json['adminId'],
|
|
48
|
+
'note': json['note'],
|
|
49
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
50
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
51
|
+
'admin': json['admin'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AdminNoteResourceToJSON(json) {
|
|
55
|
+
return AdminNoteResourceToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AdminNoteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'orderId': value['orderId'],
|
|
65
|
+
'adminId': value['adminId'],
|
|
66
|
+
'note': value['note'],
|
|
67
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
68
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
69
|
+
'admin': value['admin'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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 { AdminNoteResource } from './AdminNoteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminNoteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminNoteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AdminNoteResource>}
|
|
22
|
+
* @memberof AdminNoteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<AdminNoteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AdminNoteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAdminNoteResourceArrayResponse(value: object): value is AdminNoteResourceArrayResponse;
|
|
30
|
+
export declare function AdminNoteResourceArrayResponseFromJSON(json: any): AdminNoteResourceArrayResponse;
|
|
31
|
+
export declare function AdminNoteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminNoteResourceArrayResponse;
|
|
32
|
+
export declare function AdminNoteResourceArrayResponseToJSON(json: any): AdminNoteResourceArrayResponse;
|
|
33
|
+
export declare function AdminNoteResourceArrayResponseToJSONTyped(value?: AdminNoteResourceArrayResponse | 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.instanceOfAdminNoteResourceArrayResponse = instanceOfAdminNoteResourceArrayResponse;
|
|
17
|
+
exports.AdminNoteResourceArrayResponseFromJSON = AdminNoteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.AdminNoteResourceArrayResponseFromJSONTyped = AdminNoteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.AdminNoteResourceArrayResponseToJSON = AdminNoteResourceArrayResponseToJSON;
|
|
20
|
+
exports.AdminNoteResourceArrayResponseToJSONTyped = AdminNoteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var AdminNoteResource_1 = require("./AdminNoteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminNoteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminNoteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AdminNoteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return AdminNoteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AdminNoteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(AdminNoteResource_1.AdminNoteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AdminNoteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return AdminNoteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AdminNoteResourceArrayResponseToJSONTyped(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(AdminNoteResource_1.AdminNoteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -83,12 +83,6 @@ export interface AdminOrderResource {
|
|
|
83
83
|
* @memberof AdminOrderResource
|
|
84
84
|
*/
|
|
85
85
|
insuranceAmount: number;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {boolean}
|
|
89
|
-
* @memberof AdminOrderResource
|
|
90
|
-
*/
|
|
91
|
-
includeInsurance: boolean;
|
|
92
86
|
/**
|
|
93
87
|
*
|
|
94
88
|
* @type {boolean}
|
|
@@ -113,12 +107,6 @@ export interface AdminOrderResource {
|
|
|
113
107
|
* @memberof AdminOrderResource
|
|
114
108
|
*/
|
|
115
109
|
isNetsuiteLocked: boolean;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @type {boolean}
|
|
119
|
-
* @memberof AdminOrderResource
|
|
120
|
-
*/
|
|
121
|
-
isDisabled: boolean;
|
|
122
110
|
/**
|
|
123
111
|
*
|
|
124
112
|
* @type {string}
|
|
@@ -142,7 +130,7 @@ export interface AdminOrderResource {
|
|
|
142
130
|
* @type {number}
|
|
143
131
|
* @memberof AdminOrderResource
|
|
144
132
|
*/
|
|
145
|
-
|
|
133
|
+
cartDiscountAmount: number;
|
|
146
134
|
/**
|
|
147
135
|
*
|
|
148
136
|
* @type {number}
|
|
@@ -154,7 +142,7 @@ export interface AdminOrderResource {
|
|
|
154
142
|
* @type {number}
|
|
155
143
|
* @memberof AdminOrderResource
|
|
156
144
|
*/
|
|
157
|
-
shippingAmount
|
|
145
|
+
shippingAmount?: number | null;
|
|
158
146
|
/**
|
|
159
147
|
*
|
|
160
148
|
* @type {number}
|
|
@@ -259,10 +247,10 @@ export interface AdminOrderResource {
|
|
|
259
247
|
billingAddress: object;
|
|
260
248
|
/**
|
|
261
249
|
*
|
|
262
|
-
* @type {
|
|
250
|
+
* @type {object}
|
|
263
251
|
* @memberof AdminOrderResource
|
|
264
252
|
*/
|
|
265
|
-
omnisendSync
|
|
253
|
+
omnisendSync: object;
|
|
266
254
|
}
|
|
267
255
|
/**
|
|
268
256
|
* Check if a given object implements the AdminOrderResource interface.
|
|
@@ -34,26 +34,20 @@ function instanceOfAdminOrderResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('includeInsurance' in value) || value['includeInsurance'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined)
|
|
44
42
|
return false;
|
|
45
|
-
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
46
|
-
return false;
|
|
47
43
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
48
44
|
return false;
|
|
49
45
|
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined)
|
|
50
46
|
return false;
|
|
51
|
-
if (!('
|
|
47
|
+
if (!('cartDiscountAmount' in value) || value['cartDiscountAmount'] === undefined)
|
|
52
48
|
return false;
|
|
53
49
|
if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined)
|
|
54
50
|
return false;
|
|
55
|
-
if (!('shippingAmount' in value) || value['shippingAmount'] === undefined)
|
|
56
|
-
return false;
|
|
57
51
|
if (!('total' in value) || value['total'] === undefined)
|
|
58
52
|
return false;
|
|
59
53
|
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
@@ -88,6 +82,8 @@ function instanceOfAdminOrderResource(value) {
|
|
|
88
82
|
return false;
|
|
89
83
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined)
|
|
90
84
|
return false;
|
|
85
|
+
if (!('omnisendSync' in value) || value['omnisendSync'] === undefined)
|
|
86
|
+
return false;
|
|
91
87
|
return true;
|
|
92
88
|
}
|
|
93
89
|
function AdminOrderResourceFromJSON(json) {
|
|
@@ -109,18 +105,16 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
109
105
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
110
106
|
'overrideShipping': json['override_shipping'],
|
|
111
107
|
'insuranceAmount': json['insurance_amount'],
|
|
112
|
-
'includeInsurance': json['include_insurance'],
|
|
113
108
|
'overrideInsurance': json['override_insurance'],
|
|
114
109
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
115
110
|
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
116
111
|
'isNetsuiteLocked': json['is_netsuite_locked'],
|
|
117
|
-
'isDisabled': json['is_disabled'],
|
|
118
112
|
'omnisendId': json['omnisend_id'] == null ? undefined : json['omnisend_id'],
|
|
119
113
|
'subtotal': json['subtotal'],
|
|
120
114
|
'productDiscountAmount': json['product_discount_amount'],
|
|
121
|
-
'
|
|
115
|
+
'cartDiscountAmount': json['cart_discount_amount'],
|
|
122
116
|
'shippingDiscountAmount': json['shipping_discount_amount'],
|
|
123
|
-
'shippingAmount': json['shipping_amount'],
|
|
117
|
+
'shippingAmount': json['shipping_amount'] == null ? undefined : json['shipping_amount'],
|
|
124
118
|
'total': json['total'],
|
|
125
119
|
'discountAmount': json['discount_amount'],
|
|
126
120
|
'finalTotalAmount': json['final_total_amount'],
|
|
@@ -138,7 +132,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
138
132
|
'coupons': json['coupons'],
|
|
139
133
|
'shippingAddress': json['shipping_address'],
|
|
140
134
|
'billingAddress': json['billing_address'],
|
|
141
|
-
'omnisendSync': json['omnisend_sync']
|
|
135
|
+
'omnisendSync': json['omnisend_sync'],
|
|
142
136
|
};
|
|
143
137
|
}
|
|
144
138
|
function AdminOrderResourceToJSON(json) {
|
|
@@ -161,16 +155,14 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
161
155
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
162
156
|
'override_shipping': value['overrideShipping'],
|
|
163
157
|
'insurance_amount': value['insuranceAmount'],
|
|
164
|
-
'include_insurance': value['includeInsurance'],
|
|
165
158
|
'override_insurance': value['overrideInsurance'],
|
|
166
159
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
167
160
|
'netsuite_id': value['netsuiteId'],
|
|
168
161
|
'is_netsuite_locked': value['isNetsuiteLocked'],
|
|
169
|
-
'is_disabled': value['isDisabled'],
|
|
170
162
|
'omnisend_id': value['omnisendId'],
|
|
171
163
|
'subtotal': value['subtotal'],
|
|
172
164
|
'product_discount_amount': value['productDiscountAmount'],
|
|
173
|
-
'
|
|
165
|
+
'cart_discount_amount': value['cartDiscountAmount'],
|
|
174
166
|
'shipping_discount_amount': value['shippingDiscountAmount'],
|
|
175
167
|
'shipping_amount': value['shippingAmount'],
|
|
176
168
|
'total': value['total'],
|
|
@@ -29,8 +29,6 @@ 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;
|
|
34
32
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined)
|
|
@@ -64,7 +62,6 @@ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
65
63
|
'overrideShipping': json['override_shipping'],
|
|
66
64
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
67
|
-
'includeInsurance': json['include_insurance'],
|
|
68
65
|
'overrideInsurance': json['override_insurance'],
|
|
69
66
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
70
67
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
@@ -93,7 +90,6 @@ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
90
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
94
91
|
'override_shipping': value['overrideShipping'],
|
|
95
92
|
'insurance_amount': value['insuranceAmount'],
|
|
96
|
-
'include_insurance': value['includeInsurance'],
|
|
97
93
|
'override_insurance': value['overrideInsurance'],
|
|
98
94
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
99
95
|
'expiry_date': value['expiryDate'].toISOString(),
|
|
@@ -94,16 +94,10 @@ export interface CartResource {
|
|
|
94
94
|
overrideShipping: boolean;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @type {
|
|
98
|
-
* @memberof CartResource
|
|
99
|
-
*/
|
|
100
|
-
insuranceSubtotal?: string | null;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {boolean}
|
|
97
|
+
* @type {number}
|
|
104
98
|
* @memberof CartResource
|
|
105
99
|
*/
|
|
106
|
-
|
|
100
|
+
insuranceAmount: number;
|
|
107
101
|
/**
|
|
108
102
|
*
|
|
109
103
|
* @type {boolean}
|
|
@@ -176,12 +170,6 @@ export interface CartResource {
|
|
|
176
170
|
* @memberof CartResource
|
|
177
171
|
*/
|
|
178
172
|
shippingAmount: number;
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* @type {number}
|
|
182
|
-
* @memberof CartResource
|
|
183
|
-
*/
|
|
184
|
-
insuranceAmount: number;
|
|
185
173
|
/**
|
|
186
174
|
*
|
|
187
175
|
* @type {number}
|
|
@@ -211,7 +199,7 @@ export interface CartResource {
|
|
|
211
199
|
* @type {number}
|
|
212
200
|
* @memberof CartResource
|
|
213
201
|
*/
|
|
214
|
-
|
|
202
|
+
cartDiscountAmount: number;
|
|
215
203
|
/**
|
|
216
204
|
*
|
|
217
205
|
* @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 (!('
|
|
38
|
+
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined)
|
|
41
41
|
return false;
|
|
@@ -61,8 +61,6 @@ 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;
|
|
66
64
|
if (!('total' in value) || value['total'] === undefined)
|
|
67
65
|
return false;
|
|
68
66
|
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
@@ -71,7 +69,7 @@ function instanceOfCartResource(value) {
|
|
|
71
69
|
return false;
|
|
72
70
|
if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined)
|
|
73
71
|
return false;
|
|
74
|
-
if (!('
|
|
72
|
+
if (!('cartDiscountAmount' in value) || value['cartDiscountAmount'] === undefined)
|
|
75
73
|
return false;
|
|
76
74
|
if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined)
|
|
77
75
|
return false;
|
|
@@ -99,8 +97,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
99
97
|
'shippingType': json['shipping_type'],
|
|
100
98
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
101
99
|
'overrideShipping': json['override_shipping'],
|
|
102
|
-
'
|
|
103
|
-
'includeInsurance': json['include_insurance'],
|
|
100
|
+
'insuranceAmount': json['insurance_amount'],
|
|
104
101
|
'overrideInsurance': json['override_insurance'],
|
|
105
102
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
106
103
|
'admin': json['admin'],
|
|
@@ -113,12 +110,11 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
113
110
|
'discountPreview': json['discount_preview'],
|
|
114
111
|
'subtotal': json['subtotal'],
|
|
115
112
|
'shippingAmount': json['shipping_amount'],
|
|
116
|
-
'insuranceAmount': json['insurance_amount'],
|
|
117
113
|
'total': json['total'],
|
|
118
114
|
'discountAmount': json['discount_amount'],
|
|
119
115
|
'productDiscountAmount': json['product_discount_amount'],
|
|
120
116
|
'shippingDiscountAmount': json['shipping_discount_amount'],
|
|
121
|
-
'
|
|
117
|
+
'cartDiscountAmount': json['cart_discount_amount'],
|
|
122
118
|
'finalTotalAmount': json['final_total_amount'],
|
|
123
119
|
'status': json['status'],
|
|
124
120
|
};
|
|
@@ -144,8 +140,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
144
140
|
'shipping_type': value['shippingType'],
|
|
145
141
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
146
142
|
'override_shipping': value['overrideShipping'],
|
|
147
|
-
'
|
|
148
|
-
'include_insurance': value['includeInsurance'],
|
|
143
|
+
'insurance_amount': value['insuranceAmount'],
|
|
149
144
|
'override_insurance': value['overrideInsurance'],
|
|
150
145
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
151
146
|
'admin': value['admin'],
|
|
@@ -158,12 +153,11 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
158
153
|
'discount_preview': value['discountPreview'],
|
|
159
154
|
'subtotal': value['subtotal'],
|
|
160
155
|
'shipping_amount': value['shippingAmount'],
|
|
161
|
-
'insurance_amount': value['insuranceAmount'],
|
|
162
156
|
'total': value['total'],
|
|
163
157
|
'discount_amount': value['discountAmount'],
|
|
164
158
|
'product_discount_amount': value['productDiscountAmount'],
|
|
165
159
|
'shipping_discount_amount': value['shippingDiscountAmount'],
|
|
166
|
-
'
|
|
160
|
+
'cart_discount_amount': value['cartDiscountAmount'],
|
|
167
161
|
'final_total_amount': value['finalTotalAmount'],
|
|
168
162
|
'status': value['status'],
|
|
169
163
|
};
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,102 @@
|
|
|
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 GetAllAdminNoteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAllAdminNoteRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetAllAdminNoteRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetAllAdminNoteRequestSortByEnum}
|
|
27
|
+
* @memberof GetAllAdminNoteRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: GetAllAdminNoteRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {GetAllAdminNoteRequestSortDirectionEnum}
|
|
33
|
+
* @memberof GetAllAdminNoteRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: GetAllAdminNoteRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetAllAdminNoteRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetAllAdminNoteRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof GetAllAdminNoteRequest
|
|
52
|
+
*/
|
|
53
|
+
adminId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof GetAllAdminNoteRequest
|
|
58
|
+
*/
|
|
59
|
+
orderId?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetAllAdminNoteRequest
|
|
64
|
+
*/
|
|
65
|
+
relatedId?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GetAllAdminNoteRequest
|
|
70
|
+
*/
|
|
71
|
+
relatedType?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof GetAllAdminNoteRequest
|
|
76
|
+
*/
|
|
77
|
+
includesRelations?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const GetAllAdminNoteRequestSortByEnum: {
|
|
83
|
+
readonly Id: "id";
|
|
84
|
+
readonly CreatedAt: "created_at";
|
|
85
|
+
};
|
|
86
|
+
export type GetAllAdminNoteRequestSortByEnum = typeof GetAllAdminNoteRequestSortByEnum[keyof typeof GetAllAdminNoteRequestSortByEnum];
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const GetAllAdminNoteRequestSortDirectionEnum: {
|
|
91
|
+
readonly Asc: "asc";
|
|
92
|
+
readonly Desc: "desc";
|
|
93
|
+
};
|
|
94
|
+
export type GetAllAdminNoteRequestSortDirectionEnum = typeof GetAllAdminNoteRequestSortDirectionEnum[keyof typeof GetAllAdminNoteRequestSortDirectionEnum];
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the GetAllAdminNoteRequest interface.
|
|
97
|
+
*/
|
|
98
|
+
export declare function instanceOfGetAllAdminNoteRequest(value: object): value is GetAllAdminNoteRequest;
|
|
99
|
+
export declare function GetAllAdminNoteRequestFromJSON(json: any): GetAllAdminNoteRequest;
|
|
100
|
+
export declare function GetAllAdminNoteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAdminNoteRequest;
|
|
101
|
+
export declare function GetAllAdminNoteRequestToJSON(json: any): GetAllAdminNoteRequest;
|
|
102
|
+
export declare function GetAllAdminNoteRequestToJSONTyped(value?: GetAllAdminNoteRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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.GetAllAdminNoteRequestSortDirectionEnum = exports.GetAllAdminNoteRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfGetAllAdminNoteRequest = instanceOfGetAllAdminNoteRequest;
|
|
18
|
+
exports.GetAllAdminNoteRequestFromJSON = GetAllAdminNoteRequestFromJSON;
|
|
19
|
+
exports.GetAllAdminNoteRequestFromJSONTyped = GetAllAdminNoteRequestFromJSONTyped;
|
|
20
|
+
exports.GetAllAdminNoteRequestToJSON = GetAllAdminNoteRequestToJSON;
|
|
21
|
+
exports.GetAllAdminNoteRequestToJSONTyped = GetAllAdminNoteRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetAllAdminNoteRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CreatedAt: 'created_at'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.GetAllAdminNoteRequestSortDirectionEnum = {
|
|
33
|
+
Asc: 'asc',
|
|
34
|
+
Desc: 'desc'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetAllAdminNoteRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfGetAllAdminNoteRequest(value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function GetAllAdminNoteRequestFromJSON(json) {
|
|
43
|
+
return GetAllAdminNoteRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function GetAllAdminNoteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
51
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
52
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
53
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
54
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
55
|
+
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
56
|
+
'orderId': json['order_id'] == null ? undefined : json['order_id'],
|
|
57
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
58
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
59
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function GetAllAdminNoteRequestToJSON(json) {
|
|
63
|
+
return GetAllAdminNoteRequestToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function GetAllAdminNoteRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'search': value['search'],
|
|
72
|
+
'sortBy': value['sortBy'],
|
|
73
|
+
'sortDirection': value['sortDirection'],
|
|
74
|
+
'per_page': value['perPage'],
|
|
75
|
+
'page': value['page'],
|
|
76
|
+
'admin_id': value['adminId'],
|
|
77
|
+
'order_id': value['orderId'],
|
|
78
|
+
'related_id': value['relatedId'],
|
|
79
|
+
'related_type': value['relatedType'],
|
|
80
|
+
'includes_relations': value['includesRelations'],
|
|
81
|
+
};
|
|
82
|
+
}
|