@digital8/lighting-illusions-ts-sdk 0.0.2525 → 0.0.2527
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 +12 -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 +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- 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 +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreLocationResource.d.ts +38 -0
- package/dist/models/StoreLocationResource.js +55 -0
- package/dist/models/StoreLocationResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreLocationResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.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 +11 -14
- package/dist/models/index.js +11 -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 +6 -4
- 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 +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreLocationResource.ts +75 -0
- package/src/models/StoreLocationResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +2 -3
- 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 +11 -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
|
}
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
63
61
|
'longitude': json['longitude'],
|
|
64
|
-
'tagLine': json['tagLine'],
|
|
62
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
65
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
66
64
|
'specialDates': json['specialDates'],
|
|
67
65
|
'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'],
|
|
@@ -0,0 +1,38 @@
|
|
|
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 StoreLocationResource
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreLocationResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreLocationResource
|
|
22
|
+
*/
|
|
23
|
+
latitude: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof StoreLocationResource
|
|
28
|
+
*/
|
|
29
|
+
longitude: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the StoreLocationResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfStoreLocationResource(value: object): value is StoreLocationResource;
|
|
35
|
+
export declare function StoreLocationResourceFromJSON(json: any): StoreLocationResource;
|
|
36
|
+
export declare function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource;
|
|
37
|
+
export declare function StoreLocationResourceToJSON(json: any): StoreLocationResource;
|
|
38
|
+
export declare function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfStoreLocationResource = instanceOfStoreLocationResource;
|
|
17
|
+
exports.StoreLocationResourceFromJSON = StoreLocationResourceFromJSON;
|
|
18
|
+
exports.StoreLocationResourceFromJSONTyped = StoreLocationResourceFromJSONTyped;
|
|
19
|
+
exports.StoreLocationResourceToJSON = StoreLocationResourceToJSON;
|
|
20
|
+
exports.StoreLocationResourceToJSONTyped = StoreLocationResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreLocationResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreLocationResource(value) {
|
|
25
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StoreLocationResourceFromJSON(json) {
|
|
32
|
+
return StoreLocationResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StoreLocationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'latitude': json['latitude'],
|
|
40
|
+
'longitude': json['longitude'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function StoreLocationResourceToJSON(json) {
|
|
44
|
+
return StoreLocationResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StoreLocationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'latitude': value['latitude'],
|
|
53
|
+
'longitude': value['longitude'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 { StoreLocationResource } from './StoreLocationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreLocationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreLocationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<StoreLocationResource>}
|
|
22
|
+
* @memberof StoreLocationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<StoreLocationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse;
|
|
30
|
+
export declare function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse;
|
|
31
|
+
export declare function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse;
|
|
32
|
+
export declare function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse;
|
|
33
|
+
export declare function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | 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.instanceOfStoreLocationResourceArrayResponse = instanceOfStoreLocationResourceArrayResponse;
|
|
17
|
+
exports.StoreLocationResourceArrayResponseFromJSON = StoreLocationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.StoreLocationResourceArrayResponseFromJSONTyped = StoreLocationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.StoreLocationResourceArrayResponseToJSON = StoreLocationResourceArrayResponseToJSON;
|
|
20
|
+
exports.StoreLocationResourceArrayResponseToJSONTyped = StoreLocationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var StoreLocationResource_1 = require("./StoreLocationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreLocationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function StoreLocationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function StoreLocationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(StoreLocationResource_1.StoreLocationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function StoreLocationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return StoreLocationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function StoreLocationResourceArrayResponseToJSONTyped(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(StoreLocationResource_1.StoreLocationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -36,8 +36,6 @@ 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;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'phone': json['phone'],
|
|
69
67
|
'longitude': json['longitude'],
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
69
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
71
|
'website': json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|