@digital8/lighting-illusions-ts-sdk 0.0.2301 → 0.0.2302
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 +4 -0
- package/README.md +4 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +2 -3
- package/dist/models/AdminOrderResource.js +2 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/OrderCouponResource.d.ts +50 -0
- package/dist/models/OrderCouponResource.js +63 -0
- package/dist/models/OrderCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/OrderCouponResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AdminOrderResource.md +1 -1
- package/docs/OrderCouponResource.md +40 -0
- package/docs/OrderCouponResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +4 -11
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/OrderCouponResource.ts +93 -0
- package/src/models/OrderCouponResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -246,6 +246,8 @@ docs/ModelAttributeResource.md
|
|
|
246
246
|
docs/ModelAttributeResourceArrayResponse.md
|
|
247
247
|
docs/OmnisendSyncLiteResource.md
|
|
248
248
|
docs/OmnisendSyncLiteResourceArrayResponse.md
|
|
249
|
+
docs/OrderCouponResource.md
|
|
250
|
+
docs/OrderCouponResourceArrayResponse.md
|
|
249
251
|
docs/OrderFulfillmentLineItemResource.md
|
|
250
252
|
docs/OrderFulfillmentLineItemResourceArrayResponse.md
|
|
251
253
|
docs/OrderFulfillmentResource.md
|
|
@@ -932,6 +934,8 @@ src/models/ModelAttributeResource.ts
|
|
|
932
934
|
src/models/ModelAttributeResourceArrayResponse.ts
|
|
933
935
|
src/models/OmnisendSyncLiteResource.ts
|
|
934
936
|
src/models/OmnisendSyncLiteResourceArrayResponse.ts
|
|
937
|
+
src/models/OrderCouponResource.ts
|
|
938
|
+
src/models/OrderCouponResourceArrayResponse.ts
|
|
935
939
|
src/models/OrderFulfillmentLineItemResource.ts
|
|
936
940
|
src/models/OrderFulfillmentLineItemResourceArrayResponse.ts
|
|
937
941
|
src/models/OrderFulfillmentResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2302
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -524,6 +524,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
524
524
|
- [ModelAttributeResourceArrayResponse](docs/ModelAttributeResourceArrayResponse.md)
|
|
525
525
|
- [OmnisendSyncLiteResource](docs/OmnisendSyncLiteResource.md)
|
|
526
526
|
- [OmnisendSyncLiteResourceArrayResponse](docs/OmnisendSyncLiteResourceArrayResponse.md)
|
|
527
|
+
- [OrderCouponResource](docs/OrderCouponResource.md)
|
|
528
|
+
- [OrderCouponResourceArrayResponse](docs/OrderCouponResourceArrayResponse.md)
|
|
527
529
|
- [OrderFulfillmentLineItemResource](docs/OrderFulfillmentLineItemResource.md)
|
|
528
530
|
- [OrderFulfillmentLineItemResourceArrayResponse](docs/OrderFulfillmentLineItemResourceArrayResponse.md)
|
|
529
531
|
- [OrderFulfillmentResource](docs/OrderFulfillmentResource.md)
|
|
@@ -942,7 +944,7 @@ and is automatically generated by the
|
|
|
942
944
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
943
945
|
|
|
944
946
|
- API version: `1.0.0`
|
|
945
|
-
- Package version: `0.0.
|
|
947
|
+
- Package version: `0.0.2302`
|
|
946
948
|
- Generator version: `7.22.0`
|
|
947
949
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
948
950
|
|
|
@@ -26,8 +26,6 @@ function instanceOfAddressFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'company': json['company'],
|
|
52
50
|
'line1': json['line1'],
|
|
53
|
-
'line2': json['line2'],
|
|
51
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
54
52
|
'postcode': json['postcode'],
|
|
55
53
|
'suburb': json['suburb'],
|
|
56
54
|
'country': json['country'],
|
|
@@ -26,6 +26,8 @@ function instanceOfAddressResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -52,7 +54,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'addresseeName': json['addresseeName'],
|
|
53
55
|
'company': json['company'] == null ? undefined : json['company'],
|
|
54
56
|
'line1': json['line1'],
|
|
55
|
-
'line2': json['line2']
|
|
57
|
+
'line2': json['line2'],
|
|
56
58
|
'postcode': json['postcode'],
|
|
57
59
|
'suburb': json['suburb'],
|
|
58
60
|
'country': json['country'],
|
|
@@ -15,7 +15,6 @@ import type { SiteLiteResource } from './SiteLiteResource';
|
|
|
15
15
|
import type { TransactionLiteResource } from './TransactionLiteResource';
|
|
16
16
|
import type { AdminOrderLineItemResource } from './AdminOrderLineItemResource';
|
|
17
17
|
import type { OrderStatusLiteResource } from './OrderStatusLiteResource';
|
|
18
|
-
import type { CartCouponResource } from './CartCouponResource';
|
|
19
18
|
import type { CustomerResource } from './CustomerResource';
|
|
20
19
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
21
20
|
import type { OmnisendSyncLiteResource } from './OmnisendSyncLiteResource';
|
|
@@ -256,10 +255,10 @@ export interface AdminOrderResource {
|
|
|
256
255
|
lineItems: Array<AdminOrderLineItemResource> | null;
|
|
257
256
|
/**
|
|
258
257
|
*
|
|
259
|
-
* @type {
|
|
258
|
+
* @type {object}
|
|
260
259
|
* @memberof AdminOrderResource
|
|
261
260
|
*/
|
|
262
|
-
coupons:
|
|
261
|
+
coupons: object;
|
|
263
262
|
/**
|
|
264
263
|
*
|
|
265
264
|
* @type {Array<DiscountResource>}
|
|
@@ -24,7 +24,6 @@ var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
|
24
24
|
var TransactionLiteResource_1 = require("./TransactionLiteResource");
|
|
25
25
|
var AdminOrderLineItemResource_1 = require("./AdminOrderLineItemResource");
|
|
26
26
|
var OrderStatusLiteResource_1 = require("./OrderStatusLiteResource");
|
|
27
|
-
var CartCouponResource_1 = require("./CartCouponResource");
|
|
28
27
|
var CustomerResource_1 = require("./CustomerResource");
|
|
29
28
|
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
30
29
|
var OmnisendSyncLiteResource_1 = require("./OmnisendSyncLiteResource");
|
|
@@ -159,7 +158,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
159
158
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
160
159
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceFromJSON)(json['status']),
|
|
161
160
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(AdminOrderLineItemResource_1.AdminOrderLineItemResourceFromJSON)),
|
|
162
|
-
'coupons':
|
|
161
|
+
'coupons': json['coupons'],
|
|
163
162
|
'discounts': (json['discounts'] == null ? null : json['discounts'].map(DiscountResource_1.DiscountResourceFromJSON)),
|
|
164
163
|
'transactions': (json['transactions'] == null ? null : json['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
|
|
165
164
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
@@ -214,7 +213,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
214
213
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
215
214
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceToJSON)(value['status']),
|
|
216
215
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(AdminOrderLineItemResource_1.AdminOrderLineItemResourceToJSON)),
|
|
217
|
-
'coupons':
|
|
216
|
+
'coupons': value['coupons'],
|
|
218
217
|
'discounts': (value['discounts'] == null ? null : value['discounts'].map(DiscountResource_1.DiscountResourceToJSON)),
|
|
219
218
|
'transactions': (value['transactions'] == null ? null : value['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
|
|
220
219
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
@@ -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']),
|
|
@@ -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 OrderCouponResource
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderCouponResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof OrderCouponResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderCouponResource
|
|
28
|
+
*/
|
|
29
|
+
code: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrderCouponResource
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OrderCouponResource
|
|
40
|
+
*/
|
|
41
|
+
discountTotal: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the OrderCouponResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfOrderCouponResource(value: object): value is OrderCouponResource;
|
|
47
|
+
export declare function OrderCouponResourceFromJSON(json: any): OrderCouponResource;
|
|
48
|
+
export declare function OrderCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCouponResource;
|
|
49
|
+
export declare function OrderCouponResourceToJSON(json: any): OrderCouponResource;
|
|
50
|
+
export declare function OrderCouponResourceToJSONTyped(value?: OrderCouponResource | 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.instanceOfOrderCouponResource = instanceOfOrderCouponResource;
|
|
17
|
+
exports.OrderCouponResourceFromJSON = OrderCouponResourceFromJSON;
|
|
18
|
+
exports.OrderCouponResourceFromJSONTyped = OrderCouponResourceFromJSONTyped;
|
|
19
|
+
exports.OrderCouponResourceToJSON = OrderCouponResourceToJSON;
|
|
20
|
+
exports.OrderCouponResourceToJSONTyped = OrderCouponResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrderCouponResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrderCouponResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('discountTotal' in value) || value['discountTotal'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function OrderCouponResourceFromJSON(json) {
|
|
36
|
+
return OrderCouponResourceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function OrderCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'code': json['code'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'discountTotal': json['discountTotal'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function OrderCouponResourceToJSON(json) {
|
|
50
|
+
return OrderCouponResourceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function OrderCouponResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'code': value['code'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'discountTotal': value['discountTotal'],
|
|
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 { OrderCouponResource } from './OrderCouponResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrderCouponResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface OrderCouponResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<OrderCouponResource>}
|
|
22
|
+
* @memberof OrderCouponResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<OrderCouponResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the OrderCouponResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfOrderCouponResourceArrayResponse(value: object): value is OrderCouponResourceArrayResponse;
|
|
30
|
+
export declare function OrderCouponResourceArrayResponseFromJSON(json: any): OrderCouponResourceArrayResponse;
|
|
31
|
+
export declare function OrderCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCouponResourceArrayResponse;
|
|
32
|
+
export declare function OrderCouponResourceArrayResponseToJSON(json: any): OrderCouponResourceArrayResponse;
|
|
33
|
+
export declare function OrderCouponResourceArrayResponseToJSONTyped(value?: OrderCouponResourceArrayResponse | 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.instanceOfOrderCouponResourceArrayResponse = instanceOfOrderCouponResourceArrayResponse;
|
|
17
|
+
exports.OrderCouponResourceArrayResponseFromJSON = OrderCouponResourceArrayResponseFromJSON;
|
|
18
|
+
exports.OrderCouponResourceArrayResponseFromJSONTyped = OrderCouponResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.OrderCouponResourceArrayResponseToJSON = OrderCouponResourceArrayResponseToJSON;
|
|
20
|
+
exports.OrderCouponResourceArrayResponseToJSONTyped = OrderCouponResourceArrayResponseToJSONTyped;
|
|
21
|
+
var OrderCouponResource_1 = require("./OrderCouponResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OrderCouponResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOrderCouponResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function OrderCouponResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return OrderCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function OrderCouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(OrderCouponResource_1.OrderCouponResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function OrderCouponResourceArrayResponseToJSON(json) {
|
|
40
|
+
return OrderCouponResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function OrderCouponResourceArrayResponseToJSONTyped(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(OrderCouponResource_1.OrderCouponResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -31,6 +31,8 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
@@ -53,7 +55,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
55
|
'orderId': json['orderId'],
|
|
54
56
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
55
57
|
'trackingNumber': json['trackingNumber'],
|
|
56
|
-
'trackingUrl': json['trackingUrl']
|
|
58
|
+
'trackingUrl': json['trackingUrl'],
|
|
57
59
|
'trackingCompany': json['trackingCompany'],
|
|
58
60
|
'docnum': json['docnum'],
|
|
59
61
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'siteId': json['siteId'],
|
|
57
55
|
'name': json['name'],
|
|
58
56
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
58
|
'phone': json['phone'],
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'phone': json['phone'],
|
|
58
60
|
'longitude': json['longitude'],
|
|
59
61
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
61
63
|
'email': json['email'],
|
|
62
64
|
'website': json['website'],
|
|
63
65
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -36,6 +36,8 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'phone': json['phone'],
|
|
65
67
|
'longitude': json['longitude'],
|
|
66
68
|
'latitude': json['latitude'],
|
|
67
|
-
'tagLine': json['tagLine']
|
|
69
|
+
'tagLine': json['tagLine'],
|
|
68
70
|
'email': json['email'],
|
|
69
71
|
'website': json['website'] == null ? undefined : json['website'],
|
|
70
72
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -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['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -228,6 +228,8 @@ export * from './ModelAttributeResource';
|
|
|
228
228
|
export * from './ModelAttributeResourceArrayResponse';
|
|
229
229
|
export * from './OmnisendSyncLiteResource';
|
|
230
230
|
export * from './OmnisendSyncLiteResourceArrayResponse';
|
|
231
|
+
export * from './OrderCouponResource';
|
|
232
|
+
export * from './OrderCouponResourceArrayResponse';
|
|
231
233
|
export * from './OrderFulfillmentLineItemResource';
|
|
232
234
|
export * from './OrderFulfillmentLineItemResourceArrayResponse';
|
|
233
235
|
export * from './OrderFulfillmentResource';
|
package/dist/models/index.js
CHANGED
|
@@ -246,6 +246,8 @@ __exportStar(require("./ModelAttributeResource"), exports);
|
|
|
246
246
|
__exportStar(require("./ModelAttributeResourceArrayResponse"), exports);
|
|
247
247
|
__exportStar(require("./OmnisendSyncLiteResource"), exports);
|
|
248
248
|
__exportStar(require("./OmnisendSyncLiteResourceArrayResponse"), exports);
|
|
249
|
+
__exportStar(require("./OrderCouponResource"), exports);
|
|
250
|
+
__exportStar(require("./OrderCouponResourceArrayResponse"), exports);
|
|
249
251
|
__exportStar(require("./OrderFulfillmentLineItemResource"), exports);
|
|
250
252
|
__exportStar(require("./OrderFulfillmentLineItemResourceArrayResponse"), exports);
|
|
251
253
|
__exportStar(require("./OrderFulfillmentResource"), exports);
|
|
@@ -44,7 +44,7 @@ Name | Type
|
|
|
44
44
|
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
45
45
|
`status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
|
|
46
46
|
`lineItems` | [Array<AdminOrderLineItemResource>](AdminOrderLineItemResource.md)
|
|
47
|
-
`coupons` |
|
|
47
|
+
`coupons` | object
|
|
48
48
|
`discounts` | [Array<DiscountResource>](DiscountResource.md)
|
|
49
49
|
`transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
50
50
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# OrderCouponResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`code` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`discountTotal` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { OrderCouponResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"id": null,
|
|
22
|
+
"code": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"discountTotal": null,
|
|
25
|
+
} satisfies OrderCouponResource
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as OrderCouponResource
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# OrderCouponResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<OrderCouponResource>](OrderCouponResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { OrderCouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies OrderCouponResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as OrderCouponResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -75,7 +75,6 @@ export interface AddressFrontendResource {
|
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
76
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
79
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
80
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
81
80
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -96,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
96
95
|
|
|
97
96
|
'company': json['company'],
|
|
98
97
|
'line1': json['line1'],
|
|
99
|
-
'line2': json['line2'],
|
|
98
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
100
99
|
'postcode': json['postcode'],
|
|
101
100
|
'suburb': json['suburb'],
|
|
102
101
|
'country': json['country'],
|
|
@@ -60,7 +60,7 @@ export interface AddressResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof AddressResource
|
|
62
62
|
*/
|
|
63
|
-
line2
|
|
63
|
+
line2: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -99,6 +99,7 @@ export interface AddressResource {
|
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
101
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
102
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
102
103
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
103
104
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
104
105
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -123,7 +124,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
123
124
|
'addresseeName': json['addresseeName'],
|
|
124
125
|
'company': json['company'] == null ? undefined : json['company'],
|
|
125
126
|
'line1': json['line1'],
|
|
126
|
-
'line2': json['line2']
|
|
127
|
+
'line2': json['line2'],
|
|
127
128
|
'postcode': json['postcode'],
|
|
128
129
|
'suburb': json['suburb'],
|
|
129
130
|
'country': json['country'],
|
|
@@ -55,13 +55,6 @@ import {
|
|
|
55
55
|
OrderStatusLiteResourceToJSON,
|
|
56
56
|
OrderStatusLiteResourceToJSONTyped,
|
|
57
57
|
} from './OrderStatusLiteResource';
|
|
58
|
-
import type { CartCouponResource } from './CartCouponResource';
|
|
59
|
-
import {
|
|
60
|
-
CartCouponResourceFromJSON,
|
|
61
|
-
CartCouponResourceFromJSONTyped,
|
|
62
|
-
CartCouponResourceToJSON,
|
|
63
|
-
CartCouponResourceToJSONTyped,
|
|
64
|
-
} from './CartCouponResource';
|
|
65
58
|
import type { CustomerResource } from './CustomerResource';
|
|
66
59
|
import {
|
|
67
60
|
CustomerResourceFromJSON,
|
|
@@ -327,10 +320,10 @@ export interface AdminOrderResource {
|
|
|
327
320
|
lineItems: Array<AdminOrderLineItemResource> | null;
|
|
328
321
|
/**
|
|
329
322
|
*
|
|
330
|
-
* @type {
|
|
323
|
+
* @type {object}
|
|
331
324
|
* @memberof AdminOrderResource
|
|
332
325
|
*/
|
|
333
|
-
coupons:
|
|
326
|
+
coupons: object;
|
|
334
327
|
/**
|
|
335
328
|
*
|
|
336
329
|
* @type {Array<DiscountResource>}
|
|
@@ -457,7 +450,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
457
450
|
'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
|
|
458
451
|
'status': OrderStatusLiteResourceFromJSON(json['status']),
|
|
459
452
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(AdminOrderLineItemResourceFromJSON)),
|
|
460
|
-
'coupons':
|
|
453
|
+
'coupons': json['coupons'],
|
|
461
454
|
'discounts': (json['discounts'] == null ? null : (json['discounts'] as Array<any>).map(DiscountResourceFromJSON)),
|
|
462
455
|
'transactions': (json['transactions'] == null ? null : (json['transactions'] as Array<any>).map(TransactionLiteResourceFromJSON)),
|
|
463
456
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
@@ -515,7 +508,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
515
508
|
'admin': LiAdminUserLiteResourceToJSON(value['admin']),
|
|
516
509
|
'status': OrderStatusLiteResourceToJSON(value['status']),
|
|
517
510
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(AdminOrderLineItemResourceToJSON)),
|
|
518
|
-
'coupons':
|
|
511
|
+
'coupons': value['coupons'],
|
|
519
512
|
'discounts': (value['discounts'] == null ? null : (value['discounts'] as Array<any>).map(DiscountResourceToJSON)),
|
|
520
513
|
'transactions': (value['transactions'] == null ? null : (value['transactions'] as Array<any>).map(TransactionLiteResourceToJSON)),
|
|
521
514
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrderCouponResource
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderCouponResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof OrderCouponResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderCouponResource
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrderCouponResource
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof OrderCouponResource
|
|
44
|
+
*/
|
|
45
|
+
discountTotal: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the OrderCouponResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfOrderCouponResource(value: object): value is OrderCouponResource {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
54
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
55
|
+
if (!('discountTotal' in value) || value['discountTotal'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function OrderCouponResourceFromJSON(json: any): OrderCouponResource {
|
|
60
|
+
return OrderCouponResourceFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function OrderCouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCouponResource {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'code': json['code'],
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'discountTotal': json['discountTotal'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function OrderCouponResourceToJSON(json: any): OrderCouponResource {
|
|
77
|
+
return OrderCouponResourceToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function OrderCouponResourceToJSONTyped(value?: OrderCouponResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'code': value['code'],
|
|
89
|
+
'name': value['name'],
|
|
90
|
+
'discountTotal': value['discountTotal'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OrderCouponResource } from './OrderCouponResource';
|
|
17
|
+
import {
|
|
18
|
+
OrderCouponResourceFromJSON,
|
|
19
|
+
OrderCouponResourceFromJSONTyped,
|
|
20
|
+
OrderCouponResourceToJSON,
|
|
21
|
+
OrderCouponResourceToJSONTyped,
|
|
22
|
+
} from './OrderCouponResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface OrderCouponResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface OrderCouponResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<OrderCouponResource>}
|
|
33
|
+
* @memberof OrderCouponResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<OrderCouponResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the OrderCouponResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfOrderCouponResourceArrayResponse(value: object): value is OrderCouponResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function OrderCouponResourceArrayResponseFromJSON(json: any): OrderCouponResourceArrayResponse {
|
|
46
|
+
return OrderCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function OrderCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCouponResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(OrderCouponResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function OrderCouponResourceArrayResponseToJSON(json: any): OrderCouponResourceArrayResponse {
|
|
60
|
+
return OrderCouponResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function OrderCouponResourceArrayResponseToJSONTyped(value?: OrderCouponResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(OrderCouponResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -56,7 +56,7 @@ export interface OrderFulfillmentResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -103,6 +103,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
105
|
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
106
107
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
107
108
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
109
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -124,7 +125,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
124
125
|
'orderId': json['orderId'],
|
|
125
126
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
127
|
'trackingNumber': json['trackingNumber'],
|
|
127
|
-
'trackingUrl': json['trackingUrl']
|
|
128
|
+
'trackingUrl': json['trackingUrl'],
|
|
128
129
|
'trackingCompany': json['trackingCompany'],
|
|
129
130
|
'docnum': json['docnum'],
|
|
130
131
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,6 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
115
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
116
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -133,7 +134,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'longitude': json['longitude'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
137
138
|
'email': json['email'],
|
|
138
139
|
'website': json['website'],
|
|
139
140
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,6 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
154
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
@@ -174,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
174
175
|
'phone': json['phone'],
|
|
175
176
|
'longitude': json['longitude'],
|
|
176
177
|
'latitude': json['latitude'],
|
|
177
|
-
'tagLine': json['tagLine']
|
|
178
|
+
'tagLine': json['tagLine'],
|
|
178
179
|
'email': json['email'],
|
|
179
180
|
'website': json['website'] == null ? undefined : json['website'],
|
|
180
181
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -230,6 +230,8 @@ export * from './ModelAttributeResource';
|
|
|
230
230
|
export * from './ModelAttributeResourceArrayResponse';
|
|
231
231
|
export * from './OmnisendSyncLiteResource';
|
|
232
232
|
export * from './OmnisendSyncLiteResourceArrayResponse';
|
|
233
|
+
export * from './OrderCouponResource';
|
|
234
|
+
export * from './OrderCouponResourceArrayResponse';
|
|
233
235
|
export * from './OrderFulfillmentLineItemResource';
|
|
234
236
|
export * from './OrderFulfillmentLineItemResourceArrayResponse';
|
|
235
237
|
export * from './OrderFulfillmentResource';
|