@digital8/lighting-illusions-ts-sdk 0.0.1775 → 0.0.1776
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 +50 -0
- package/README.md +32 -2
- package/dist/apis/CartsApi.d.ts +94 -0
- package/dist/apis/CartsApi.js +375 -0
- package/dist/apis/CustomersApi.d.ts +48 -0
- package/dist/apis/CustomersApi.js +196 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/CartAddressType.d.ts +25 -0
- package/dist/models/CartAddressType.js +51 -0
- package/dist/models/CartItemListResource.d.ts +51 -0
- package/dist/models/CartItemListResource.js +62 -0
- package/dist/models/CartItemListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartItemListResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +101 -0
- package/dist/models/CartListResource.js +90 -0
- package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartListResourceArrayResponse.js +50 -0
- package/dist/models/CartOrderSource.d.ts +29 -0
- package/dist/models/CartOrderSource.js +55 -0
- package/dist/models/CartResource.d.ts +155 -0
- package/dist/models/CartResource.js +116 -0
- package/dist/models/CartResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartResourceArrayResponse.js +50 -0
- package/dist/models/CartStatus.d.ts +26 -0
- package/dist/models/CartStatus.js +52 -0
- package/dist/models/CustomerListResource.d.ts +69 -0
- package/dist/models/CustomerListResource.js +72 -0
- package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerListResourceArrayResponse.js +50 -0
- package/dist/models/CustomerResource.d.ts +69 -0
- package/dist/models/CustomerResource.js +72 -0
- package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerResourceArrayResponse.js +50 -0
- package/dist/models/IndexCartRequest.d.ts +154 -0
- package/dist/models/IndexCartRequest.js +105 -0
- package/dist/models/IndexCustomerRequest.d.ts +99 -0
- package/dist/models/IndexCustomerRequest.js +83 -0
- package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCartListResourceResponse.js +57 -0
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
- package/dist/models/SitePaymentConfigResource.d.ts +6 -0
- package/dist/models/SitePaymentConfigResource.js +4 -0
- package/dist/models/StoreCartRequest.d.ts +95 -0
- package/dist/models/StoreCartRequest.js +90 -0
- package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
- package/dist/models/StoreCartRequestCustomer.js +55 -0
- package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
- package/dist/models/StoreCartRequestItemsInner.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
- package/dist/models/StoreCartRequestShippingAddress.js +63 -0
- package/dist/models/StoreCustomerRequest.d.ts +56 -0
- package/dist/models/StoreCustomerRequest.js +65 -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 +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +70 -0
- package/dist/models/UpdateCartRequest.js +75 -0
- package/dist/models/UpdateSiteRequest.d.ts +6 -0
- package/dist/models/UpdateSiteRequest.js +4 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/docs/CartAddressType.md +32 -0
- package/docs/CartItemListResource.md +40 -0
- package/docs/CartItemListResourceArrayResponse.md +34 -0
- package/docs/CartListResource.md +56 -0
- package/docs/CartListResourceArrayResponse.md +34 -0
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartResource.md +74 -0
- package/docs/CartResourceArrayResponse.md +34 -0
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +341 -0
- package/docs/CustomerListResource.md +46 -0
- package/docs/CustomerListResourceArrayResponse.md +34 -0
- package/docs/CustomerResource.md +46 -0
- package/docs/CustomerResourceArrayResponse.md +34 -0
- package/docs/CustomersApi.md +140 -0
- package/docs/IndexCartRequest.md +66 -0
- package/docs/IndexCustomerRequest.md +50 -0
- package/docs/PaginatedCartListResourceResponse.md +36 -0
- package/docs/PaginatedCustomerListResourceResponse.md +36 -0
- package/docs/SitePaymentConfigResource.md +2 -0
- package/docs/StoreCartRequest.md +50 -0
- package/docs/StoreCartRequestCustomer.md +40 -0
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +48 -0
- package/docs/StoreCustomerRequest.md +42 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCartRequest.md +42 -0
- package/docs/UpdateSiteRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +284 -0
- package/src/apis/CustomersApi.ts +127 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +3 -2
- package/src/models/CartAddressType.ts +53 -0
- package/src/models/CartItemListResource.ts +100 -0
- package/src/models/CartItemListResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +183 -0
- package/src/models/CartListResourceArrayResponse.ts +73 -0
- package/src/models/CartOrderSource.ts +57 -0
- package/src/models/CartResource.ts +259 -0
- package/src/models/CartResourceArrayResponse.ts +73 -0
- package/src/models/CartStatus.ts +54 -0
- package/src/models/CustomerListResource.ts +126 -0
- package/src/models/CustomerListResourceArrayResponse.ts +73 -0
- package/src/models/CustomerResource.ts +126 -0
- package/src/models/CustomerResourceArrayResponse.ts +73 -0
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/IndexCustomerRequest.ts +152 -0
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
- package/src/models/SitePaymentConfigResource.ts +9 -0
- package/src/models/StoreCartRequest.ts +171 -0
- package/src/models/StoreCartRequestCustomer.ts +89 -0
- package/src/models/StoreCartRequestItemsInner.ts +83 -0
- package/src/models/StoreCartRequestShippingAddress.ts +121 -0
- package/src/models/StoreCustomerRequest.ts +101 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCartRequest.ts +129 -0
- package/src/models/UpdateSiteRequest.ts +9 -0
- package/src/models/index.ts +23 -0
|
@@ -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.instanceOfStoreCartRequestItemsInner = instanceOfStoreCartRequestItemsInner;
|
|
17
|
+
exports.StoreCartRequestItemsInnerFromJSON = StoreCartRequestItemsInnerFromJSON;
|
|
18
|
+
exports.StoreCartRequestItemsInnerFromJSONTyped = StoreCartRequestItemsInnerFromJSONTyped;
|
|
19
|
+
exports.StoreCartRequestItemsInnerToJSON = StoreCartRequestItemsInnerToJSON;
|
|
20
|
+
exports.StoreCartRequestItemsInnerToJSONTyped = StoreCartRequestItemsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreCartRequestItemsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreCartRequestItemsInner(value) {
|
|
25
|
+
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StoreCartRequestItemsInnerFromJSON(json) {
|
|
32
|
+
return StoreCartRequestItemsInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StoreCartRequestItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'productChildId': json['product_child_id'],
|
|
40
|
+
'quantity': json['quantity'],
|
|
41
|
+
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function StoreCartRequestItemsInnerToJSON(json) {
|
|
45
|
+
return StoreCartRequestItemsInnerToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function StoreCartRequestItemsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'product_child_id': value['productChildId'],
|
|
54
|
+
'quantity': value['quantity'],
|
|
55
|
+
'product_price': value['productPrice'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 StoreCartRequestShippingAddress
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreCartRequestShippingAddress {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreCartRequestShippingAddress
|
|
22
|
+
*/
|
|
23
|
+
addressId?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreCartRequestShippingAddress
|
|
28
|
+
*/
|
|
29
|
+
company?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StoreCartRequestShippingAddress
|
|
34
|
+
*/
|
|
35
|
+
line1?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreCartRequestShippingAddress
|
|
40
|
+
*/
|
|
41
|
+
line2?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StoreCartRequestShippingAddress
|
|
46
|
+
*/
|
|
47
|
+
suburb?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof StoreCartRequestShippingAddress
|
|
52
|
+
*/
|
|
53
|
+
state?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof StoreCartRequestShippingAddress
|
|
58
|
+
*/
|
|
59
|
+
postcode?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof StoreCartRequestShippingAddress
|
|
64
|
+
*/
|
|
65
|
+
country?: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the StoreCartRequestShippingAddress interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfStoreCartRequestShippingAddress(value: object): value is StoreCartRequestShippingAddress;
|
|
71
|
+
export declare function StoreCartRequestShippingAddressFromJSON(json: any): StoreCartRequestShippingAddress;
|
|
72
|
+
export declare function StoreCartRequestShippingAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequestShippingAddress;
|
|
73
|
+
export declare function StoreCartRequestShippingAddressToJSON(json: any): StoreCartRequestShippingAddress;
|
|
74
|
+
export declare function StoreCartRequestShippingAddressToJSONTyped(value?: StoreCartRequestShippingAddress | 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.instanceOfStoreCartRequestShippingAddress = instanceOfStoreCartRequestShippingAddress;
|
|
17
|
+
exports.StoreCartRequestShippingAddressFromJSON = StoreCartRequestShippingAddressFromJSON;
|
|
18
|
+
exports.StoreCartRequestShippingAddressFromJSONTyped = StoreCartRequestShippingAddressFromJSONTyped;
|
|
19
|
+
exports.StoreCartRequestShippingAddressToJSON = StoreCartRequestShippingAddressToJSON;
|
|
20
|
+
exports.StoreCartRequestShippingAddressToJSONTyped = StoreCartRequestShippingAddressToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreCartRequestShippingAddress interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreCartRequestShippingAddress(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function StoreCartRequestShippingAddressFromJSON(json) {
|
|
28
|
+
return StoreCartRequestShippingAddressFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function StoreCartRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'addressId': json['address_id'] == null ? undefined : json['address_id'],
|
|
36
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
37
|
+
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
38
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
39
|
+
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
40
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
41
|
+
'postcode': json['postcode'] == null ? undefined : json['postcode'],
|
|
42
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function StoreCartRequestShippingAddressToJSON(json) {
|
|
46
|
+
return StoreCartRequestShippingAddressToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function StoreCartRequestShippingAddressToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'address_id': value['addressId'],
|
|
55
|
+
'company': value['company'],
|
|
56
|
+
'line_1': value['line1'],
|
|
57
|
+
'line_2': value['line2'],
|
|
58
|
+
'suburb': value['suburb'],
|
|
59
|
+
'state': value['state'],
|
|
60
|
+
'postcode': value['postcode'],
|
|
61
|
+
'country': value['country'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 StoreCustomerRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreCustomerRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreCustomerRequest
|
|
22
|
+
*/
|
|
23
|
+
siteId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreCustomerRequest
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StoreCustomerRequest
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreCustomerRequest
|
|
40
|
+
*/
|
|
41
|
+
email: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StoreCustomerRequest
|
|
46
|
+
*/
|
|
47
|
+
phone?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the StoreCustomerRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfStoreCustomerRequest(value: object): value is StoreCustomerRequest;
|
|
53
|
+
export declare function StoreCustomerRequestFromJSON(json: any): StoreCustomerRequest;
|
|
54
|
+
export declare function StoreCustomerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCustomerRequest;
|
|
55
|
+
export declare function StoreCustomerRequestToJSON(json: any): StoreCustomerRequest;
|
|
56
|
+
export declare function StoreCustomerRequestToJSONTyped(value?: StoreCustomerRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.instanceOfStoreCustomerRequest = instanceOfStoreCustomerRequest;
|
|
17
|
+
exports.StoreCustomerRequestFromJSON = StoreCustomerRequestFromJSON;
|
|
18
|
+
exports.StoreCustomerRequestFromJSONTyped = StoreCustomerRequestFromJSONTyped;
|
|
19
|
+
exports.StoreCustomerRequestToJSON = StoreCustomerRequestToJSON;
|
|
20
|
+
exports.StoreCustomerRequestToJSONTyped = StoreCustomerRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreCustomerRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreCustomerRequest(value) {
|
|
25
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function StoreCustomerRequestFromJSON(json) {
|
|
36
|
+
return StoreCustomerRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function StoreCustomerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'siteId': json['site_id'],
|
|
44
|
+
'firstName': json['first_name'],
|
|
45
|
+
'lastName': json['last_name'],
|
|
46
|
+
'email': json['email'],
|
|
47
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function StoreCustomerRequestToJSON(json) {
|
|
51
|
+
return StoreCustomerRequestToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function StoreCustomerRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'site_id': value['siteId'],
|
|
60
|
+
'first_name': value['firstName'],
|
|
61
|
+
'last_name': value['lastName'],
|
|
62
|
+
'email': value['email'],
|
|
63
|
+
'phone': value['phone'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -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
|
return true;
|
|
41
39
|
}
|
|
42
40
|
function StoreListResourceFromJSON(json) {
|
|
@@ -55,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
53
|
'latitude': json['latitude'],
|
|
56
54
|
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
57
55
|
'email': json['email'],
|
|
58
|
-
'website': json['website'],
|
|
56
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
59
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
60
58
|
};
|
|
61
59
|
}
|
|
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'latitude': json['latitude'],
|
|
65
67
|
'tagLine': json['tag_line'],
|
|
66
68
|
'email': json['email'],
|
|
67
|
-
'website': json['website']
|
|
69
|
+
'website': json['website'],
|
|
68
70
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
69
71
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
70
72
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ 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;
|
|
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 StoreSpecialDateFrontendResourceFromJSONTyped(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'],
|
|
@@ -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['display_start_date'],
|
|
51
53
|
'displayEndDate': json['display_end_date'],
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { StoreCartRequestShippingAddress } from './StoreCartRequestShippingAddress';
|
|
13
|
+
import type { StoreCartRequestCustomer } from './StoreCartRequestCustomer';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateCartRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCartRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof UpdateCartRequest
|
|
24
|
+
*/
|
|
25
|
+
customerId?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {UpdateCartRequestSourceEnum}
|
|
29
|
+
* @memberof UpdateCartRequest
|
|
30
|
+
*/
|
|
31
|
+
source?: UpdateCartRequestSourceEnum | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {StoreCartRequestCustomer}
|
|
35
|
+
* @memberof UpdateCartRequest
|
|
36
|
+
*/
|
|
37
|
+
customer?: StoreCartRequestCustomer;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {StoreCartRequestShippingAddress}
|
|
41
|
+
* @memberof UpdateCartRequest
|
|
42
|
+
*/
|
|
43
|
+
shippingAddress: StoreCartRequestShippingAddress;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {StoreCartRequestShippingAddress}
|
|
47
|
+
* @memberof UpdateCartRequest
|
|
48
|
+
*/
|
|
49
|
+
billingAddress: StoreCartRequestShippingAddress;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const UpdateCartRequestSourceEnum: {
|
|
55
|
+
readonly Checkout: "checkout";
|
|
56
|
+
readonly Admin: "admin";
|
|
57
|
+
readonly Phone: "phone";
|
|
58
|
+
readonly Email: "email";
|
|
59
|
+
readonly Ebay: "ebay";
|
|
60
|
+
readonly InStore: "in_store";
|
|
61
|
+
};
|
|
62
|
+
export type UpdateCartRequestSourceEnum = typeof UpdateCartRequestSourceEnum[keyof typeof UpdateCartRequestSourceEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the UpdateCartRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfUpdateCartRequest(value: object): value is UpdateCartRequest;
|
|
67
|
+
export declare function UpdateCartRequestFromJSON(json: any): UpdateCartRequest;
|
|
68
|
+
export declare function UpdateCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCartRequest;
|
|
69
|
+
export declare function UpdateCartRequestToJSON(json: any): UpdateCartRequest;
|
|
70
|
+
export declare function UpdateCartRequestToJSONTyped(value?: UpdateCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.UpdateCartRequestSourceEnum = void 0;
|
|
17
|
+
exports.instanceOfUpdateCartRequest = instanceOfUpdateCartRequest;
|
|
18
|
+
exports.UpdateCartRequestFromJSON = UpdateCartRequestFromJSON;
|
|
19
|
+
exports.UpdateCartRequestFromJSONTyped = UpdateCartRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateCartRequestToJSON = UpdateCartRequestToJSON;
|
|
21
|
+
exports.UpdateCartRequestToJSONTyped = UpdateCartRequestToJSONTyped;
|
|
22
|
+
var StoreCartRequestShippingAddress_1 = require("./StoreCartRequestShippingAddress");
|
|
23
|
+
var StoreCartRequestCustomer_1 = require("./StoreCartRequestCustomer");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.UpdateCartRequestSourceEnum = {
|
|
28
|
+
Checkout: 'checkout',
|
|
29
|
+
Admin: 'admin',
|
|
30
|
+
Phone: 'phone',
|
|
31
|
+
Email: 'email',
|
|
32
|
+
Ebay: 'ebay',
|
|
33
|
+
InStore: 'in_store'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the UpdateCartRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfUpdateCartRequest(value) {
|
|
39
|
+
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('billingAddress' in value) || value['billingAddress'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function UpdateCartRequestFromJSON(json) {
|
|
46
|
+
return UpdateCartRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
54
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
55
|
+
'customer': json['customer'] == null ? undefined : (0, StoreCartRequestCustomer_1.StoreCartRequestCustomerFromJSON)(json['customer']),
|
|
56
|
+
'shippingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
57
|
+
'billingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['billing_address']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function UpdateCartRequestToJSON(json) {
|
|
61
|
+
return UpdateCartRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'customer_id': value['customerId'],
|
|
70
|
+
'source': value['source'],
|
|
71
|
+
'customer': (0, StoreCartRequestCustomer_1.StoreCartRequestCustomerToJSON)(value['customer']),
|
|
72
|
+
'shipping_address': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
73
|
+
'billing_address': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressToJSON)(value['billingAddress']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -141,6 +141,12 @@ export interface UpdateSiteRequest {
|
|
|
141
141
|
* @memberof UpdateSiteRequest
|
|
142
142
|
*/
|
|
143
143
|
acCouponExpiryDays: number;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {number}
|
|
147
|
+
* @memberof UpdateSiteRequest
|
|
148
|
+
*/
|
|
149
|
+
cartExpiryDays: number;
|
|
144
150
|
/**
|
|
145
151
|
*
|
|
146
152
|
* @type {boolean}
|
|
@@ -62,6 +62,8 @@ function instanceOfUpdateSiteRequest(value) {
|
|
|
62
62
|
return false;
|
|
63
63
|
if (!('acCouponExpiryDays' in value) || value['acCouponExpiryDays'] === undefined)
|
|
64
64
|
return false;
|
|
65
|
+
if (!('cartExpiryDays' in value) || value['cartExpiryDays'] === undefined)
|
|
66
|
+
return false;
|
|
65
67
|
if (!('acCouponEnabled' in value) || value['acCouponEnabled'] === undefined)
|
|
66
68
|
return false;
|
|
67
69
|
return true;
|
|
@@ -95,6 +97,7 @@ function UpdateSiteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
97
|
'acCouponValue': json['ac_coupon_value'],
|
|
96
98
|
'acCouponDiscountType': json['ac_coupon_discount_type'],
|
|
97
99
|
'acCouponExpiryDays': json['ac_coupon_expiry_days'],
|
|
100
|
+
'cartExpiryDays': json['cart_expiry_days'],
|
|
98
101
|
'acCouponEnabled': json['ac_coupon_enabled'],
|
|
99
102
|
};
|
|
100
103
|
}
|
|
@@ -128,6 +131,7 @@ function UpdateSiteRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
128
131
|
'ac_coupon_value': value['acCouponValue'],
|
|
129
132
|
'ac_coupon_discount_type': value['acCouponDiscountType'],
|
|
130
133
|
'ac_coupon_expiry_days': value['acCouponExpiryDays'],
|
|
134
|
+
'cart_expiry_days': value['cartExpiryDays'],
|
|
131
135
|
'ac_coupon_enabled': value['acCouponEnabled'],
|
|
132
136
|
};
|
|
133
137
|
}
|