@digital8/lighting-illusions-ts-sdk 0.0.2525 → 0.0.2526
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 +10 -15
- package/README.md +2 -2
- package/dist/apis/AuspostApi.d.ts +29 -0
- package/dist/apis/AuspostApi.js +125 -0
- package/dist/apis/CartsApi.d.ts +11 -0
- package/dist/apis/CartsApi.js +46 -0
- package/dist/apis/OrdersApi.d.ts +11 -0
- package/dist/apis/OrdersApi.js +46 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/AppliedCouponResource.d.ts +0 -30
- package/dist/models/AppliedCouponResource.js +0 -20
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/CustomerOrderTab.d.ts +26 -0
- package/dist/models/CustomerOrderTab.js +52 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -6
- package/dist/models/FrontendCartResource.js +0 -4
- package/dist/models/FrontendOrderFulfillmentResource.d.ts +62 -0
- package/dist/models/FrontendOrderFulfillmentResource.js +71 -0
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderListResource.d.ts +70 -0
- package/dist/models/FrontendOrderListResource.js +77 -0
- package/dist/models/FrontendOrderListResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderListResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderResource.d.ts +13 -0
- package/dist/models/FrontendOrderResource.js +9 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +2 -6
- package/dist/models/PaginatedFrontendOrderListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedFrontendOrderListResourceResponse.js +57 -0
- package/dist/models/PaymentTotalsResource.d.ts +6 -0
- package/dist/models/PaymentTotalsResource.js +4 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
- package/dist/models/ProductCategoryLiteResource.js +0 -4
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +0 -6
- package/dist/models/SearchOrdersRequest.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +2 -6
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- 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 +3 -1
- package/dist/models/SuburbValidationResource.d.ts +32 -0
- package/dist/models/SuburbValidationResource.js +51 -0
- package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
- package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
- package/dist/models/ValidateSuburbRequest.d.ts +50 -0
- package/dist/models/ValidateSuburbRequest.js +63 -0
- package/dist/models/index.d.ts +9 -14
- package/dist/models/index.js +9 -14
- package/package.json +1 -1
- package/src/apis/AuspostApi.ts +69 -0
- package/src/apis/CartsApi.ts +41 -0
- package/src/apis/OrdersApi.ts +41 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/AppliedCouponResource.ts +0 -45
- package/src/models/CartResource.ts +9 -0
- package/src/models/CustomerOrderTab.ts +54 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -9
- package/src/models/FrontendOrderFulfillmentResource.ts +111 -0
- package/src/models/FrontendOrderFulfillmentResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderListResource.ts +135 -0
- package/src/models/FrontendOrderListResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderResource.ts +25 -0
- package/src/models/OrderFulfillmentResource.ts +4 -6
- package/src/models/PaginatedFrontendOrderListResourceResponse.ts +90 -0
- package/src/models/PaymentTotalsResource.ts +9 -0
- package/src/models/ProductCategoryLiteResource.ts +0 -9
- package/src/models/ProductChildListResource.ts +0 -9
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +0 -8
- package/src/models/StoreFrontendResource.ts +4 -6
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/SuburbValidationResource.ts +66 -0
- package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
- package/src/models/ValidateSuburbRequest.ts +93 -0
- package/src/models/index.ts +9 -14
- package/dist/apis/CouponsApi.d.ts +0 -85
- package/dist/apis/CouponsApi.js +0 -355
- package/dist/models/CouponListResource.d.ts +0 -99
- package/dist/models/CouponListResource.js +0 -91
- package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponListResourceArrayResponse.js +0 -50
- package/dist/models/CouponLiteResource.d.ts +0 -44
- package/dist/models/CouponLiteResource.js +0 -57
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/CouponResource.d.ts +0 -163
- package/dist/models/CouponResource.js +0 -135
- package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponType.d.ts +0 -26
- package/dist/models/CouponType.js +0 -52
- package/dist/models/CreateCouponRequest.d.ts +0 -126
- package/dist/models/CreateCouponRequest.js +0 -107
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
- package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
- package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponResourceResponse.js +0 -57
- package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
- package/dist/models/SearchAllCouponsRequest.js +0 -85
- package/dist/models/SearchCouponsRequest.d.ts +0 -137
- package/dist/models/SearchCouponsRequest.js +0 -97
- package/dist/models/UpdateCouponRequest.d.ts +0 -120
- package/dist/models/UpdateCouponRequest.js +0 -103
- package/src/apis/CouponsApi.ts +0 -286
- package/src/models/CouponListResource.ts +0 -170
- package/src/models/CouponListResourceArrayResponse.ts +0 -73
- package/src/models/CouponLiteResource.ts +0 -83
- package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/CouponResource.ts +0 -288
- package/src/models/CouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponType.ts +0 -54
- package/src/models/CreateCouponRequest.ts +0 -207
- package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
- package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
- package/src/models/PaginatedCouponResourceResponse.ts +0 -90
- package/src/models/SearchAllCouponsRequest.ts +0 -154
- package/src/models/SearchCouponsRequest.ts +0 -202
- package/src/models/UpdateCouponRequest.ts +0 -198
|
@@ -22,6 +22,7 @@ var FrontendLineItemResource_1 = require("./FrontendLineItemResource");
|
|
|
22
22
|
var CustomerListResource_1 = require("./CustomerListResource");
|
|
23
23
|
var FrontendCartResourceCouponsInner_1 = require("./FrontendCartResourceCouponsInner");
|
|
24
24
|
var AddressResource_1 = require("./AddressResource");
|
|
25
|
+
var FrontendOrderFulfillmentResource_1 = require("./FrontendOrderFulfillmentResource");
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the FrontendOrderResource interface.
|
|
27
28
|
*/
|
|
@@ -46,6 +47,8 @@ function instanceOfFrontendOrderResource(value) {
|
|
|
46
47
|
return false;
|
|
47
48
|
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
48
49
|
return false;
|
|
50
|
+
if (!('fulfillments' in value) || value['fulfillments'] === undefined)
|
|
51
|
+
return false;
|
|
49
52
|
if (!('coupons' in value) || value['coupons'] === undefined)
|
|
50
53
|
return false;
|
|
51
54
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
@@ -66,6 +69,8 @@ function instanceOfFrontendOrderResource(value) {
|
|
|
66
69
|
return false;
|
|
67
70
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined)
|
|
68
71
|
return false;
|
|
72
|
+
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined)
|
|
73
|
+
return false;
|
|
69
74
|
if (!('amountDue' in value) || value['amountDue'] === undefined)
|
|
70
75
|
return false;
|
|
71
76
|
return true;
|
|
@@ -91,6 +96,7 @@ function FrontendOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
91
96
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
92
97
|
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
93
98
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
99
|
+
'fulfillments': (json['fulfillments'] == null ? null : json['fulfillments'].map(FrontendOrderFulfillmentResource_1.FrontendOrderFulfillmentResourceFromJSON)),
|
|
94
100
|
'coupons': (json['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerFromJSON)),
|
|
95
101
|
'subtotal': json['subtotal'],
|
|
96
102
|
'promotionalDiscount': json['promotionalDiscount'],
|
|
@@ -101,6 +107,7 @@ function FrontendOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
107
|
'gst': json['gst'],
|
|
102
108
|
'grandTotal': json['grandTotal'],
|
|
103
109
|
'amountPaid': json['amountPaid'],
|
|
110
|
+
'surchargePaid': json['surchargePaid'],
|
|
104
111
|
'amountDue': json['amountDue'],
|
|
105
112
|
};
|
|
106
113
|
}
|
|
@@ -126,6 +133,7 @@ function FrontendOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
133
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
127
134
|
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
128
135
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
136
|
+
'fulfillments': (value['fulfillments'] == null ? null : value['fulfillments'].map(FrontendOrderFulfillmentResource_1.FrontendOrderFulfillmentResourceToJSON)),
|
|
129
137
|
'coupons': (value['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerToJSON)),
|
|
130
138
|
'subtotal': value['subtotal'],
|
|
131
139
|
'promotionalDiscount': value['promotionalDiscount'],
|
|
@@ -136,6 +144,7 @@ function FrontendOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
136
144
|
'gst': value['gst'],
|
|
137
145
|
'grandTotal': value['grandTotal'],
|
|
138
146
|
'amountPaid': value['amountPaid'],
|
|
147
|
+
'surchargePaid': value['surchargePaid'],
|
|
139
148
|
'amountDue': value['amountDue'],
|
|
140
149
|
};
|
|
141
150
|
}
|
|
@@ -45,13 +45,13 @@ export interface OrderFulfillmentResource {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof OrderFulfillmentResource
|
|
53
53
|
*/
|
|
54
|
-
trackingCompany
|
|
54
|
+
trackingCompany?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -29,10 +29,6 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
35
|
-
return false;
|
|
36
32
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
37
33
|
return false;
|
|
38
34
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -53,8 +49,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
49
|
'orderId': json['orderId'],
|
|
54
50
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
55
51
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
56
|
-
'trackingUrl': json['trackingUrl'],
|
|
57
|
-
'trackingCompany': json['trackingCompany'],
|
|
52
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
53
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
58
54
|
'docnum': json['docnum'],
|
|
59
55
|
'netsuiteId': json['netsuiteId'],
|
|
60
56
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { FrontendOrderListResource } from './FrontendOrderListResource';
|
|
13
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedFrontendOrderListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedFrontendOrderListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<FrontendOrderListResource>}
|
|
23
|
+
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<FrontendOrderListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedFrontendOrderListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedFrontendOrderListResourceResponse(value: object): value is PaginatedFrontendOrderListResourceResponse;
|
|
37
|
+
export declare function PaginatedFrontendOrderListResourceResponseFromJSON(json: any): PaginatedFrontendOrderListResourceResponse;
|
|
38
|
+
export declare function PaginatedFrontendOrderListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFrontendOrderListResourceResponse;
|
|
39
|
+
export declare function PaginatedFrontendOrderListResourceResponseToJSON(json: any): PaginatedFrontendOrderListResourceResponse;
|
|
40
|
+
export declare function PaginatedFrontendOrderListResourceResponseToJSONTyped(value?: PaginatedFrontendOrderListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedFrontendOrderListResourceResponse = instanceOfPaginatedFrontendOrderListResourceResponse;
|
|
17
|
+
exports.PaginatedFrontendOrderListResourceResponseFromJSON = PaginatedFrontendOrderListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedFrontendOrderListResourceResponseFromJSONTyped = PaginatedFrontendOrderListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedFrontendOrderListResourceResponseToJSON = PaginatedFrontendOrderListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedFrontendOrderListResourceResponseToJSONTyped = PaginatedFrontendOrderListResourceResponseToJSONTyped;
|
|
21
|
+
var FrontendOrderListResource_1 = require("./FrontendOrderListResource");
|
|
22
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedFrontendOrderListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedFrontendOrderListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedFrontendOrderListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedFrontendOrderListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedFrontendOrderListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(FrontendOrderListResource_1.FrontendOrderListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedFrontendOrderListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedFrontendOrderListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedFrontendOrderListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(FrontendOrderListResource_1.FrontendOrderListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -38,6 +38,8 @@ function instanceOfPaymentTotalsResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
if (!('amountDue' in value) || value['amountDue'] === undefined)
|
|
42
44
|
return false;
|
|
43
45
|
if (!('appliedCoupons' in value) || value['appliedCoupons'] === undefined)
|
|
@@ -72,6 +74,7 @@ function PaymentTotalsResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
74
|
'gstAmount': json['gstAmount'],
|
|
73
75
|
'finalTotal': json['finalTotal'],
|
|
74
76
|
'amountPaid': json['amountPaid'],
|
|
77
|
+
'surchargePaid': json['surchargePaid'],
|
|
75
78
|
'amountDue': json['amountDue'],
|
|
76
79
|
'appliedCoupons': json['appliedCoupons'],
|
|
77
80
|
'noOfItems': json['noOfItems'],
|
|
@@ -100,6 +103,7 @@ function PaymentTotalsResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
103
|
'gstAmount': value['gstAmount'],
|
|
101
104
|
'finalTotal': value['finalTotal'],
|
|
102
105
|
'amountPaid': value['amountPaid'],
|
|
106
|
+
'surchargePaid': value['surchargePaid'],
|
|
103
107
|
'amountDue': value['amountDue'],
|
|
104
108
|
'appliedCoupons': value['appliedCoupons'],
|
|
105
109
|
'noOfItems': value['noOfItems'],
|
|
@@ -39,12 +39,6 @@ export interface ProductCategoryLiteResource {
|
|
|
39
39
|
* @memberof ProductCategoryLiteResource
|
|
40
40
|
*/
|
|
41
41
|
isAutomated: boolean;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof ProductCategoryLiteResource
|
|
46
|
-
*/
|
|
47
|
-
isParent: boolean;
|
|
48
42
|
}
|
|
49
43
|
/**
|
|
50
44
|
* Check if a given object implements the ProductCategoryLiteResource interface.
|
|
@@ -28,8 +28,6 @@ function instanceOfProductCategoryLiteResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('isAutomated' in value) || value['isAutomated'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('isParent' in value) || value['isParent'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
return true;
|
|
34
32
|
}
|
|
35
33
|
function ProductCategoryLiteResourceFromJSON(json) {
|
|
@@ -44,7 +42,6 @@ function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
'name': json['name'],
|
|
45
43
|
'siteId': json['siteId'],
|
|
46
44
|
'isAutomated': json['isAutomated'],
|
|
47
|
-
'isParent': json['isParent'],
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
function ProductCategoryLiteResourceToJSON(json) {
|
|
@@ -60,6 +57,5 @@ function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
60
57
|
'name': value['name'],
|
|
61
58
|
'siteId': value['siteId'],
|
|
62
59
|
'isAutomated': value['isAutomated'],
|
|
63
|
-
'isParent': value['isParent'],
|
|
64
60
|
};
|
|
65
61
|
}
|
|
@@ -30,8 +30,6 @@ function instanceOfProductChildListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('model' in value) || value['model'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
@@ -58,7 +56,6 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
56
|
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
59
57
|
'sku': json['sku'],
|
|
60
58
|
'name': json['name'],
|
|
61
|
-
'fullName': json['fullName'],
|
|
62
59
|
'model': json['model'],
|
|
63
60
|
'stock': json['stock'],
|
|
64
61
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
@@ -82,7 +79,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
79
|
'parentId': value['parentId'],
|
|
83
80
|
'sku': value['sku'],
|
|
84
81
|
'name': value['name'],
|
|
85
|
-
'fullName': value['fullName'],
|
|
86
82
|
'model': value['model'],
|
|
87
83
|
'stock': value['stock'],
|
|
88
84
|
'isDisabled': value['isDisabled'],
|
|
@@ -117,12 +117,6 @@ export interface SearchCartsRequest {
|
|
|
117
117
|
* @memberof SearchCartsRequest
|
|
118
118
|
*/
|
|
119
119
|
includesRelations?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {number}
|
|
123
|
-
* @memberof SearchCartsRequest
|
|
124
|
-
*/
|
|
125
|
-
couponId?: number | null;
|
|
126
120
|
}
|
|
127
121
|
/**
|
|
128
122
|
* @export
|
|
@@ -66,7 +66,6 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
67
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
68
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
function SearchCartsRequestToJSON(json) {
|
|
@@ -95,6 +94,5 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
94
|
'related_id': value['relatedId'],
|
|
96
95
|
'related_type': value['relatedType'],
|
|
97
96
|
'includes_relations': value['includesRelations'],
|
|
98
|
-
'coupon_id': value['couponId'],
|
|
99
97
|
};
|
|
100
98
|
}
|
|
@@ -129,12 +129,6 @@ export interface SearchOrdersRequest {
|
|
|
129
129
|
* @memberof SearchOrdersRequest
|
|
130
130
|
*/
|
|
131
131
|
includesRelations?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {number}
|
|
135
|
-
* @memberof SearchOrdersRequest
|
|
136
|
-
*/
|
|
137
|
-
couponId?: number | null;
|
|
138
132
|
}
|
|
139
133
|
/**
|
|
140
134
|
* @export
|
|
@@ -69,7 +69,6 @@ function SearchOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
70
70
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
71
71
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
72
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
73
72
|
};
|
|
74
73
|
}
|
|
75
74
|
function SearchOrdersRequestToJSON(json) {
|
|
@@ -100,6 +99,5 @@ function SearchOrdersRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
99
|
'related_id': value['relatedId'],
|
|
101
100
|
'related_type': value['relatedType'],
|
|
102
101
|
'includes_relations': value['includesRelations'],
|
|
103
|
-
'coupon_id': value['couponId'],
|
|
104
102
|
};
|
|
105
103
|
}
|
|
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof StoreFrontendResource
|
|
46
46
|
*/
|
|
47
|
-
website
|
|
47
|
+
website?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreFrontendResource
|
|
76
76
|
*/
|
|
77
|
-
tagLine
|
|
77
|
+
tagLine?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -28,16 +28,12 @@ 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)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
36
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
37
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
42
38
|
return false;
|
|
43
39
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -56,12 +52,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
52
|
'siteId': json['siteId'],
|
|
57
53
|
'name': json['name'],
|
|
58
54
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
55
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
56
|
'phone': json['phone'],
|
|
61
57
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
58
|
'latitude': json['latitude'],
|
|
63
59
|
'longitude': json['longitude'],
|
|
64
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
65
61
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
66
62
|
'specialDates': json['specialDates'],
|
|
67
63
|
'suppliers': json['suppliers'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website?: string | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -33,12 +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;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
43
39
|
return false;
|
|
44
40
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,9 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
55
|
'phone': json['phone'],
|
|
60
56
|
'longitude': json['longitude'],
|
|
61
57
|
'latitude': json['latitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
58
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
59
|
'email': json['email'],
|
|
64
|
-
'website': json['website'],
|
|
60
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
65
61
|
'netsuiteId': json['netsuiteId'],
|
|
66
62
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
67
63
|
'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,6 +26,8 @@ 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;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SuburbValidationResource
|
|
16
|
+
*/
|
|
17
|
+
export interface SuburbValidationResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SuburbValidationResource
|
|
22
|
+
*/
|
|
23
|
+
found: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SuburbValidationResource interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource;
|
|
29
|
+
export declare function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource;
|
|
30
|
+
export declare function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource;
|
|
31
|
+
export declare function SuburbValidationResourceToJSON(json: any): SuburbValidationResource;
|
|
32
|
+
export declare function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSuburbValidationResource = instanceOfSuburbValidationResource;
|
|
17
|
+
exports.SuburbValidationResourceFromJSON = SuburbValidationResourceFromJSON;
|
|
18
|
+
exports.SuburbValidationResourceFromJSONTyped = SuburbValidationResourceFromJSONTyped;
|
|
19
|
+
exports.SuburbValidationResourceToJSON = SuburbValidationResourceToJSON;
|
|
20
|
+
exports.SuburbValidationResourceToJSONTyped = SuburbValidationResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SuburbValidationResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSuburbValidationResource(value) {
|
|
25
|
+
if (!('found' in value) || value['found'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SuburbValidationResourceFromJSON(json) {
|
|
30
|
+
return SuburbValidationResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SuburbValidationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'found': json['found'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SuburbValidationResourceToJSON(json) {
|
|
41
|
+
return SuburbValidationResourceToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SuburbValidationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'found': value['found'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 { SuburbValidationResource } from './SuburbValidationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SuburbValidationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SuburbValidationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SuburbValidationResource>}
|
|
22
|
+
* @memberof SuburbValidationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<SuburbValidationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SuburbValidationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse;
|
|
30
|
+
export declare function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse;
|
|
31
|
+
export declare function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse;
|
|
32
|
+
export declare function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse;
|
|
33
|
+
export declare function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|