@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,83 @@
|
|
|
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.IndexCustomerRequestSortDirectionEnum = exports.IndexCustomerRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexCustomerRequest = instanceOfIndexCustomerRequest;
|
|
18
|
+
exports.IndexCustomerRequestFromJSON = IndexCustomerRequestFromJSON;
|
|
19
|
+
exports.IndexCustomerRequestFromJSONTyped = IndexCustomerRequestFromJSONTyped;
|
|
20
|
+
exports.IndexCustomerRequestToJSON = IndexCustomerRequestToJSON;
|
|
21
|
+
exports.IndexCustomerRequestToJSONTyped = IndexCustomerRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexCustomerRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CreatedAt: 'created_at',
|
|
28
|
+
FirstName: 'first_name',
|
|
29
|
+
LastName: 'last_name',
|
|
30
|
+
Email: 'email'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.IndexCustomerRequestSortDirectionEnum = {
|
|
36
|
+
Asc: 'asc',
|
|
37
|
+
Desc: 'desc'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the IndexCustomerRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfIndexCustomerRequest(value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function IndexCustomerRequestFromJSON(json) {
|
|
46
|
+
return IndexCustomerRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function IndexCustomerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
54
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
55
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
56
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
57
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
58
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
59
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
60
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
61
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function IndexCustomerRequestToJSON(json) {
|
|
65
|
+
return IndexCustomerRequestToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function IndexCustomerRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
68
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'search': value['search'],
|
|
74
|
+
'sortBy': value['sortBy'],
|
|
75
|
+
'sortDirection': value['sortDirection'],
|
|
76
|
+
'per_page': value['perPage'],
|
|
77
|
+
'page': value['page'],
|
|
78
|
+
'site_id': value['siteId'],
|
|
79
|
+
'related_id': value['relatedId'],
|
|
80
|
+
'related_type': value['relatedType'],
|
|
81
|
+
'includes_relations': value['includesRelations'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { CartListResource } from './CartListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedCartListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedCartListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CartListResource>}
|
|
23
|
+
* @memberof PaginatedCartListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<CartListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedCartListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedCartListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedCartListResourceResponse(value: object): value is PaginatedCartListResourceResponse;
|
|
37
|
+
export declare function PaginatedCartListResourceResponseFromJSON(json: any): PaginatedCartListResourceResponse;
|
|
38
|
+
export declare function PaginatedCartListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCartListResourceResponse;
|
|
39
|
+
export declare function PaginatedCartListResourceResponseToJSON(json: any): PaginatedCartListResourceResponse;
|
|
40
|
+
export declare function PaginatedCartListResourceResponseToJSONTyped(value?: PaginatedCartListResourceResponse | 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.instanceOfPaginatedCartListResourceResponse = instanceOfPaginatedCartListResourceResponse;
|
|
17
|
+
exports.PaginatedCartListResourceResponseFromJSON = PaginatedCartListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedCartListResourceResponseFromJSONTyped = PaginatedCartListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedCartListResourceResponseToJSON = PaginatedCartListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedCartListResourceResponseToJSONTyped = PaginatedCartListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var CartListResource_1 = require("./CartListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedCartListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedCartListResourceResponse(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 PaginatedCartListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedCartListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedCartListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(CartListResource_1.CartListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedCartListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedCartListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedCartListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(CartListResource_1.CartListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedCustomerListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedCustomerListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CustomerListResource>}
|
|
23
|
+
* @memberof PaginatedCustomerListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<CustomerListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedCustomerListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedCustomerListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedCustomerListResourceResponse(value: object): value is PaginatedCustomerListResourceResponse;
|
|
37
|
+
export declare function PaginatedCustomerListResourceResponseFromJSON(json: any): PaginatedCustomerListResourceResponse;
|
|
38
|
+
export declare function PaginatedCustomerListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCustomerListResourceResponse;
|
|
39
|
+
export declare function PaginatedCustomerListResourceResponseToJSON(json: any): PaginatedCustomerListResourceResponse;
|
|
40
|
+
export declare function PaginatedCustomerListResourceResponseToJSONTyped(value?: PaginatedCustomerListResourceResponse | 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.instanceOfPaginatedCustomerListResourceResponse = instanceOfPaginatedCustomerListResourceResponse;
|
|
17
|
+
exports.PaginatedCustomerListResourceResponseFromJSON = PaginatedCustomerListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedCustomerListResourceResponseFromJSONTyped = PaginatedCustomerListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedCustomerListResourceResponseToJSON = PaginatedCustomerListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedCustomerListResourceResponseToJSONTyped = PaginatedCustomerListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedCustomerListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedCustomerListResourceResponse(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 PaginatedCustomerListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedCustomerListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedCustomerListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(CustomerListResource_1.CustomerListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedCustomerListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedCustomerListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedCustomerListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(CustomerListResource_1.CustomerListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -75,6 +75,12 @@ export interface SitePaymentConfigResource {
|
|
|
75
75
|
* @memberof SitePaymentConfigResource
|
|
76
76
|
*/
|
|
77
77
|
acCouponExpiryDays: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof SitePaymentConfigResource
|
|
82
|
+
*/
|
|
83
|
+
cartExpiryDays: number;
|
|
78
84
|
/**
|
|
79
85
|
*
|
|
80
86
|
* @type {boolean}
|
|
@@ -42,6 +42,8 @@ function instanceOfSitePaymentConfigResource(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('acCouponExpiryDays' in value) || value['acCouponExpiryDays'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
+
if (!('cartExpiryDays' in value) || value['cartExpiryDays'] === undefined)
|
|
46
|
+
return false;
|
|
45
47
|
if (!('acCouponEnabled' in value) || value['acCouponEnabled'] === undefined)
|
|
46
48
|
return false;
|
|
47
49
|
return true;
|
|
@@ -64,6 +66,7 @@ function SitePaymentConfigResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'acCouponValue': json['acCouponValue'],
|
|
65
67
|
'acCouponDiscountType': json['acCouponDiscountType'],
|
|
66
68
|
'acCouponExpiryDays': json['acCouponExpiryDays'],
|
|
69
|
+
'cartExpiryDays': json['cartExpiryDays'],
|
|
67
70
|
'acCouponEnabled': json['acCouponEnabled'],
|
|
68
71
|
};
|
|
69
72
|
}
|
|
@@ -86,6 +89,7 @@ function SitePaymentConfigResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
86
89
|
'acCouponValue': value['acCouponValue'],
|
|
87
90
|
'acCouponDiscountType': value['acCouponDiscountType'],
|
|
88
91
|
'acCouponExpiryDays': value['acCouponExpiryDays'],
|
|
92
|
+
'cartExpiryDays': value['cartExpiryDays'],
|
|
89
93
|
'acCouponEnabled': value['acCouponEnabled'],
|
|
90
94
|
};
|
|
91
95
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
import type { StoreCartRequestItemsInner } from './StoreCartRequestItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface StoreCartRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface StoreCartRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof StoreCartRequest
|
|
25
|
+
*/
|
|
26
|
+
customerId?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof StoreCartRequest
|
|
31
|
+
*/
|
|
32
|
+
siteId: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof StoreCartRequest
|
|
37
|
+
*/
|
|
38
|
+
sessionToken?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof StoreCartRequest
|
|
43
|
+
*/
|
|
44
|
+
paymentToken?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {StoreCartRequestSourceEnum}
|
|
48
|
+
* @memberof StoreCartRequest
|
|
49
|
+
*/
|
|
50
|
+
source: StoreCartRequestSourceEnum;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<StoreCartRequestItemsInner>}
|
|
54
|
+
* @memberof StoreCartRequest
|
|
55
|
+
*/
|
|
56
|
+
items: Array<StoreCartRequestItemsInner>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {StoreCartRequestCustomer}
|
|
60
|
+
* @memberof StoreCartRequest
|
|
61
|
+
*/
|
|
62
|
+
customer?: StoreCartRequestCustomer;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {StoreCartRequestShippingAddress}
|
|
66
|
+
* @memberof StoreCartRequest
|
|
67
|
+
*/
|
|
68
|
+
shippingAddress: StoreCartRequestShippingAddress;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {StoreCartRequestShippingAddress}
|
|
72
|
+
* @memberof StoreCartRequest
|
|
73
|
+
*/
|
|
74
|
+
billingAddress: StoreCartRequestShippingAddress;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const StoreCartRequestSourceEnum: {
|
|
80
|
+
readonly Checkout: "checkout";
|
|
81
|
+
readonly Admin: "admin";
|
|
82
|
+
readonly Phone: "phone";
|
|
83
|
+
readonly Email: "email";
|
|
84
|
+
readonly Ebay: "ebay";
|
|
85
|
+
readonly InStore: "in_store";
|
|
86
|
+
};
|
|
87
|
+
export type StoreCartRequestSourceEnum = typeof StoreCartRequestSourceEnum[keyof typeof StoreCartRequestSourceEnum];
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the StoreCartRequest interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfStoreCartRequest(value: object): value is StoreCartRequest;
|
|
92
|
+
export declare function StoreCartRequestFromJSON(json: any): StoreCartRequest;
|
|
93
|
+
export declare function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequest;
|
|
94
|
+
export declare function StoreCartRequestToJSON(json: any): StoreCartRequest;
|
|
95
|
+
export declare function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.StoreCartRequestSourceEnum = void 0;
|
|
17
|
+
exports.instanceOfStoreCartRequest = instanceOfStoreCartRequest;
|
|
18
|
+
exports.StoreCartRequestFromJSON = StoreCartRequestFromJSON;
|
|
19
|
+
exports.StoreCartRequestFromJSONTyped = StoreCartRequestFromJSONTyped;
|
|
20
|
+
exports.StoreCartRequestToJSON = StoreCartRequestToJSON;
|
|
21
|
+
exports.StoreCartRequestToJSONTyped = StoreCartRequestToJSONTyped;
|
|
22
|
+
var StoreCartRequestShippingAddress_1 = require("./StoreCartRequestShippingAddress");
|
|
23
|
+
var StoreCartRequestCustomer_1 = require("./StoreCartRequestCustomer");
|
|
24
|
+
var StoreCartRequestItemsInner_1 = require("./StoreCartRequestItemsInner");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.StoreCartRequestSourceEnum = {
|
|
29
|
+
Checkout: 'checkout',
|
|
30
|
+
Admin: 'admin',
|
|
31
|
+
Phone: 'phone',
|
|
32
|
+
Email: 'email',
|
|
33
|
+
Ebay: 'ebay',
|
|
34
|
+
InStore: 'in_store'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the StoreCartRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfStoreCartRequest(value) {
|
|
40
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('billingAddress' in value) || value['billingAddress'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function StoreCartRequestFromJSON(json) {
|
|
53
|
+
return StoreCartRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function StoreCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
61
|
+
'siteId': json['site_id'],
|
|
62
|
+
'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
|
|
63
|
+
'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
|
|
64
|
+
'source': json['source'],
|
|
65
|
+
'items': (json['items'].map(StoreCartRequestItemsInner_1.StoreCartRequestItemsInnerFromJSON)),
|
|
66
|
+
'customer': json['customer'] == null ? undefined : (0, StoreCartRequestCustomer_1.StoreCartRequestCustomerFromJSON)(json['customer']),
|
|
67
|
+
'shippingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['shipping_address']),
|
|
68
|
+
'billingAddress': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressFromJSON)(json['billing_address']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function StoreCartRequestToJSON(json) {
|
|
72
|
+
return StoreCartRequestToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function StoreCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
75
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'customer_id': value['customerId'],
|
|
81
|
+
'site_id': value['siteId'],
|
|
82
|
+
'session_token': value['sessionToken'],
|
|
83
|
+
'payment_token': value['paymentToken'],
|
|
84
|
+
'source': value['source'],
|
|
85
|
+
'items': (value['items'].map(StoreCartRequestItemsInner_1.StoreCartRequestItemsInnerToJSON)),
|
|
86
|
+
'customer': (0, StoreCartRequestCustomer_1.StoreCartRequestCustomerToJSON)(value['customer']),
|
|
87
|
+
'shipping_address': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressToJSON)(value['shippingAddress']),
|
|
88
|
+
'billing_address': (0, StoreCartRequestShippingAddress_1.StoreCartRequestShippingAddressToJSON)(value['billingAddress']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StoreCartRequestCustomer
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreCartRequestCustomer {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreCartRequestCustomer
|
|
22
|
+
*/
|
|
23
|
+
firstName?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreCartRequestCustomer
|
|
28
|
+
*/
|
|
29
|
+
lastName?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StoreCartRequestCustomer
|
|
34
|
+
*/
|
|
35
|
+
email?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreCartRequestCustomer
|
|
40
|
+
*/
|
|
41
|
+
phone?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the StoreCartRequestCustomer interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfStoreCartRequestCustomer(value: object): value is StoreCartRequestCustomer;
|
|
47
|
+
export declare function StoreCartRequestCustomerFromJSON(json: any): StoreCartRequestCustomer;
|
|
48
|
+
export declare function StoreCartRequestCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequestCustomer;
|
|
49
|
+
export declare function StoreCartRequestCustomerToJSON(json: any): StoreCartRequestCustomer;
|
|
50
|
+
export declare function StoreCartRequestCustomerToJSONTyped(value?: StoreCartRequestCustomer | 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.instanceOfStoreCartRequestCustomer = instanceOfStoreCartRequestCustomer;
|
|
17
|
+
exports.StoreCartRequestCustomerFromJSON = StoreCartRequestCustomerFromJSON;
|
|
18
|
+
exports.StoreCartRequestCustomerFromJSONTyped = StoreCartRequestCustomerFromJSONTyped;
|
|
19
|
+
exports.StoreCartRequestCustomerToJSON = StoreCartRequestCustomerToJSON;
|
|
20
|
+
exports.StoreCartRequestCustomerToJSONTyped = StoreCartRequestCustomerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreCartRequestCustomer interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreCartRequestCustomer(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function StoreCartRequestCustomerFromJSON(json) {
|
|
28
|
+
return StoreCartRequestCustomerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function StoreCartRequestCustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
36
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
37
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
38
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function StoreCartRequestCustomerToJSON(json) {
|
|
42
|
+
return StoreCartRequestCustomerToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function StoreCartRequestCustomerToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'first_name': value['firstName'],
|
|
51
|
+
'last_name': value['lastName'],
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'phone': value['phone'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 StoreCartRequestItemsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreCartRequestItemsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreCartRequestItemsInner
|
|
22
|
+
*/
|
|
23
|
+
productChildId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof StoreCartRequestItemsInner
|
|
28
|
+
*/
|
|
29
|
+
quantity: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreCartRequestItemsInner
|
|
34
|
+
*/
|
|
35
|
+
productPrice?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StoreCartRequestItemsInner interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStoreCartRequestItemsInner(value: object): value is StoreCartRequestItemsInner;
|
|
41
|
+
export declare function StoreCartRequestItemsInnerFromJSON(json: any): StoreCartRequestItemsInner;
|
|
42
|
+
export declare function StoreCartRequestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequestItemsInner;
|
|
43
|
+
export declare function StoreCartRequestItemsInnerToJSON(json: any): StoreCartRequestItemsInner;
|
|
44
|
+
export declare function StoreCartRequestItemsInnerToJSONTyped(value?: StoreCartRequestItemsInner | null, ignoreDiscriminator?: boolean): any;
|