@digital8/lighting-illusions-ts-sdk 0.0.2301 → 0.0.2303
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 +2 -2
- package/dist/models/AddressFrontendResource.js +2 -6
- 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/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/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- 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/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +4 -6
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +4 -11
- package/src/models/OrderCouponResource.ts +93 -0
- package/src/models/OrderCouponResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- 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.2303
|
|
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.2303`
|
|
946
948
|
- Generator version: `7.22.0`
|
|
947
949
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
948
950
|
|
|
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AddressFrontendResource
|
|
22
22
|
*/
|
|
23
|
-
company
|
|
23
|
+
company?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
line2
|
|
35
|
+
line2?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -22,12 +22,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
-
return false;
|
|
31
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
28
|
return false;
|
|
33
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -48,9 +44,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
44
|
return json;
|
|
49
45
|
}
|
|
50
46
|
return {
|
|
51
|
-
'company': json['company'],
|
|
47
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
52
48
|
'line1': json['line1'],
|
|
53
|
-
'line2': json['line2'],
|
|
49
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
54
50
|
'postcode': json['postcode'],
|
|
55
51
|
'suburb': json['suburb'],
|
|
56
52
|
'country': json['country'],
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -50,7 +52,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'type': json['type'] == null ? undefined : json['type'],
|
|
51
53
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
52
54
|
'addresseeName': json['addresseeName'],
|
|
53
|
-
'company': json['company']
|
|
55
|
+
'company': json['company'],
|
|
54
56
|
'line1': json['line1'],
|
|
55
57
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
56
58
|
'postcode': json['postcode'],
|
|
@@ -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']),
|
|
@@ -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
|
+
}
|
|
@@ -35,8 +35,6 @@ function instanceOfStoreListResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
39
|
-
return false;
|
|
40
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
39
|
return false;
|
|
42
40
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'latitude': json['latitude'],
|
|
60
58
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
61
59
|
'email': json['email'],
|
|
62
|
-
'website': json['website'],
|
|
60
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
63
61
|
'netsuiteId': json['netsuiteId'],
|
|
64
62
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -38,6 +38,8 @@ function instanceOfStoreResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
42
44
|
return false;
|
|
43
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'latitude': json['latitude'],
|
|
67
69
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
68
70
|
'email': json['email'],
|
|
69
|
-
'website': json['website']
|
|
71
|
+
'website': json['website'],
|
|
70
72
|
'netsuiteId': json['netsuiteId'],
|
|
71
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
72
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ 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;
|
|
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 StoreSpecialDateFrontendResourceFromJSONTyped(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'],
|
|
@@ -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
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -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}
|
|
@@ -73,9 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
79
77
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
80
78
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
81
79
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -94,9 +92,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
94
92
|
}
|
|
95
93
|
return {
|
|
96
94
|
|
|
97
|
-
'company': json['company'],
|
|
95
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
98
96
|
'line1': json['line1'],
|
|
99
|
-
'line2': json['line2'],
|
|
97
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
100
98
|
'postcode': json['postcode'],
|
|
101
99
|
'suburb': json['suburb'],
|
|
102
100
|
'country': json['country'],
|
|
@@ -48,7 +48,7 @@ export interface AddressResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -98,6 +98,7 @@ export interface AddressResource {
|
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
101
102
|
if (!('line1' in value) || value['line1'] === 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;
|
|
@@ -121,7 +122,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
121
122
|
'type': json['type'] == null ? undefined : json['type'],
|
|
122
123
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
123
124
|
'addresseeName': json['addresseeName'],
|
|
124
|
-
'company': json['company']
|
|
125
|
+
'company': json['company'],
|
|
125
126
|
'line1': json['line1'],
|
|
126
127
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
127
128
|
'postcode': json['postcode'],
|
|
@@ -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']),
|
|
@@ -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
|
+
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -111,7 +111,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
114
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
115
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
116
|
return true;
|
|
@@ -135,7 +134,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
135
134
|
'latitude': json['latitude'],
|
|
136
135
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
137
136
|
'email': json['email'],
|
|
138
|
-
'website': json['website'],
|
|
137
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
139
138
|
'netsuiteId': json['netsuiteId'],
|
|
140
139
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
140
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -150,6 +150,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
|
+
if (!('website' in value) || value['website'] === 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;
|
|
155
156
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -176,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
177
|
'latitude': json['latitude'],
|
|
177
178
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
178
179
|
'email': json['email'],
|
|
179
|
-
'website': json['website']
|
|
180
|
+
'website': json['website'],
|
|
180
181
|
'netsuiteId': json['netsuiteId'],
|
|
181
182
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
182
183
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
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 StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
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'],
|
|
@@ -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';
|