@digital8/lighting-illusions-ts-sdk 0.0.2033 → 0.0.2035
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 +18 -8
- package/README.md +12 -7
- package/dist/apis/OrdersApi.d.ts +15 -0
- package/dist/apis/OrdersApi.js +59 -0
- package/dist/apis/ProductApi.d.ts +0 -16
- package/dist/apis/ProductApi.js +0 -59
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressResource.d.ts +1 -7
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/AdminNoteResource.d.ts +12 -0
- package/dist/models/AdminNoteResource.js +8 -0
- package/dist/models/AdminOrderResource.d.ts +3 -3
- package/dist/models/AdminOrderResource.js +3 -3
- package/dist/models/CartCouponLiteResource.d.ts +56 -0
- package/dist/models/CartCouponLiteResource.js +67 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CartResource.d.ts +3 -3
- package/dist/models/CartResource.js +3 -3
- package/dist/models/CreateTransactionRequest.d.ts +0 -6
- package/dist/models/CreateTransactionRequest.js +0 -2
- package/dist/models/CustomerListResource.d.ts +7 -0
- package/dist/models/CustomerListResource.js +5 -0
- package/dist/models/FrontendCartResource.d.ts +144 -0
- package/dist/models/FrontendCartResource.js +121 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
- package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
- package/dist/models/FrontendLineItemResource.d.ts +81 -0
- package/dist/models/FrontendLineItemResource.js +82 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderResource.d.ts +168 -0
- package/dist/models/FrontendOrderResource.js +137 -0
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
- package/dist/models/PaymentSource.d.ts +1 -0
- package/dist/models/PaymentSource.js +2 -1
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/TransactionLiteResource.d.ts +0 -12
- package/dist/models/TransactionLiteResource.js +0 -4
- package/dist/models/UpdateOrderRequest.d.ts +0 -6
- package/dist/models/UpdateOrderRequest.js +0 -2
- package/dist/models/index.d.ts +9 -4
- package/dist/models/index.js +9 -4
- package/docs/AddressResource.md +0 -2
- package/docs/AdminNoteResource.md +4 -0
- package/docs/AdminOrderResource.md +1 -1
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
- package/docs/CartResource.md +1 -1
- package/docs/CreateTransactionRequest.md +0 -2
- package/docs/CustomerListResource.md +2 -0
- package/docs/FrontendCartResource.md +70 -0
- package/docs/{SkuSearchProductChildRequest.md → FrontendCartResourceArrayResponse.md} +6 -8
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +50 -0
- package/docs/{PaginatedTransactionListResourceResponse.md → FrontendLineItemResourceArrayResponse.md} +5 -7
- package/docs/FrontendOrderResource.md +78 -0
- package/docs/FrontendOrderResourceArrayResponse.md +34 -0
- package/docs/OrdersApi.md +66 -0
- package/docs/ProductApi.md +0 -66
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/TransactionLiteResource.md +0 -4
- package/docs/TransactionsApi.md +3 -3
- package/docs/UpdateOrderRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +49 -0
- package/src/apis/ProductApi.ts +0 -49
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressResource.ts +3 -10
- package/src/models/AdminNoteResource.ts +18 -0
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CartResource.ts +11 -11
- package/src/models/CreateTransactionRequest.ts +0 -8
- package/src/models/CustomerListResource.ts +16 -0
- package/src/models/FrontendCartResource.ts +254 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
- package/src/models/FrontendLineItemResource.ts +145 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderResource.ts +290 -0
- package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
- package/src/models/PaymentSource.ts +2 -1
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionLiteResource.ts +0 -16
- package/src/models/UpdateOrderRequest.ts +0 -8
- package/src/models/index.ts +9 -4
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
- package/dist/models/SkuSearchProductChildRequest.js +0 -55
- package/dist/models/TransactionListResource.d.ts +0 -116
- package/dist/models/TransactionListResource.js +0 -97
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/docs/TransactionListResource.md +0 -62
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/SkuSearchProductChildRequest.ts +0 -75
- package/src/models/TransactionListResource.ts +0 -187
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfCartCouponLiteResource = instanceOfCartCouponLiteResource;
|
|
17
|
+
exports.CartCouponLiteResourceFromJSON = CartCouponLiteResourceFromJSON;
|
|
18
|
+
exports.CartCouponLiteResourceFromJSONTyped = CartCouponLiteResourceFromJSONTyped;
|
|
19
|
+
exports.CartCouponLiteResourceToJSON = CartCouponLiteResourceToJSON;
|
|
20
|
+
exports.CartCouponLiteResourceToJSONTyped = CartCouponLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CartCouponLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCartCouponLiteResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('discount' in value) || value['discount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('appliesTo' in value) || value['appliesTo'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CartCouponLiteResourceFromJSON(json) {
|
|
38
|
+
return CartCouponLiteResourceFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CartCouponLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'code': json['code'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'discount': json['discount'],
|
|
49
|
+
'appliesTo': json['appliesTo'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function CartCouponLiteResourceToJSON(json) {
|
|
53
|
+
return CartCouponLiteResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function CartCouponLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'code': value['code'],
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'discount': value['discount'],
|
|
65
|
+
'appliesTo': value['appliesTo'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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 { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CartCouponLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CartCouponLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CartCouponLiteResource>}
|
|
22
|
+
* @memberof CartCouponLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<CartCouponLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCartCouponLiteResourceArrayResponse(value: object): value is CartCouponLiteResourceArrayResponse;
|
|
30
|
+
export declare function CartCouponLiteResourceArrayResponseFromJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
31
|
+
export declare function CartCouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResourceArrayResponse;
|
|
32
|
+
export declare function CartCouponLiteResourceArrayResponseToJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
33
|
+
export declare function CartCouponLiteResourceArrayResponseToJSONTyped(value?: CartCouponLiteResourceArrayResponse | 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.instanceOfCartCouponLiteResourceArrayResponse = instanceOfCartCouponLiteResourceArrayResponse;
|
|
17
|
+
exports.CartCouponLiteResourceArrayResponseFromJSON = CartCouponLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.CartCouponLiteResourceArrayResponseFromJSONTyped = CartCouponLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.CartCouponLiteResourceArrayResponseToJSON = CartCouponLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.CartCouponLiteResourceArrayResponseToJSONTyped = CartCouponLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var CartCouponLiteResource_1 = require("./CartCouponLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCartCouponLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CartCouponLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return CartCouponLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CartCouponLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(CartCouponLiteResource_1.CartCouponLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CartCouponLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return CartCouponLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CartCouponLiteResourceArrayResponseToJSONTyped(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(CartCouponLiteResource_1.CartCouponLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
13
|
import type { LineItemListResource } from './LineItemListResource';
|
|
14
|
-
import type { CustomerResource } from './CustomerResource';
|
|
15
14
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
15
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
16
16
|
import type { AddressResource } from './AddressResource';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -130,10 +130,10 @@ export interface CartResource {
|
|
|
130
130
|
site: SiteLiteResource | null;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
|
-
* @type {
|
|
133
|
+
* @type {CustomerListResource}
|
|
134
134
|
* @memberof CartResource
|
|
135
135
|
*/
|
|
136
|
-
customer:
|
|
136
|
+
customer: CustomerListResource | null;
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
* @type {Array<LineItemListResource>}
|
|
@@ -20,8 +20,8 @@ exports.CartResourceToJSON = CartResourceToJSON;
|
|
|
20
20
|
exports.CartResourceToJSONTyped = CartResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
22
|
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
-
var CustomerResource_1 = require("./CustomerResource");
|
|
24
23
|
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
24
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
25
25
|
var AddressResource_1 = require("./AddressResource");
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CartResource interface.
|
|
@@ -105,7 +105,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
105
105
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
106
106
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
107
107
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
108
|
-
'customer': (0,
|
|
108
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
109
109
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
110
110
|
'coupons': json['coupons'],
|
|
111
111
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
@@ -150,7 +150,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
150
150
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
151
151
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
152
152
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
153
|
-
'customer': (0,
|
|
153
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
154
154
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
155
155
|
'coupons': value['coupons'],
|
|
156
156
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
@@ -45,12 +45,6 @@ export interface CreateTransactionRequest {
|
|
|
45
45
|
* @memberof CreateTransactionRequest
|
|
46
46
|
*/
|
|
47
47
|
paymentMethod: CreateTransactionRequestPaymentMethodEnum;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof CreateTransactionRequest
|
|
52
|
-
*/
|
|
53
|
-
description?: string | null;
|
|
54
48
|
/**
|
|
55
49
|
*
|
|
56
50
|
* @type {string}
|
|
@@ -54,7 +54,6 @@ function CreateTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
55
55
|
'surcharge': json['surcharge'],
|
|
56
56
|
'paymentMethod': json['payment_method'],
|
|
57
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
58
57
|
'nonce': json['nonce'] == null ? undefined : json['nonce'],
|
|
59
58
|
'deviceData': json['device_data'] == null ? undefined : json['device_data'],
|
|
60
59
|
};
|
|
@@ -73,7 +72,6 @@ function CreateTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
72
|
'amount': value['amount'],
|
|
74
73
|
'surcharge': value['surcharge'],
|
|
75
74
|
'payment_method': value['paymentMethod'],
|
|
76
|
-
'description': value['description'],
|
|
77
75
|
'nonce': value['nonce'],
|
|
78
76
|
'device_data': value['deviceData'],
|
|
79
77
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { LiAddressResource } from './LiAddressResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -52,6 +53,12 @@ export interface CustomerListResource {
|
|
|
52
53
|
* @memberof CustomerListResource
|
|
53
54
|
*/
|
|
54
55
|
site: SiteLiteResource | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<LiAddressResource>}
|
|
59
|
+
* @memberof CustomerListResource
|
|
60
|
+
*/
|
|
61
|
+
addresses: Array<LiAddressResource> | null;
|
|
55
62
|
}
|
|
56
63
|
/**
|
|
57
64
|
* Check if a given object implements the CustomerListResource interface.
|
|
@@ -19,6 +19,7 @@ exports.CustomerListResourceFromJSONTyped = CustomerListResourceFromJSONTyped;
|
|
|
19
19
|
exports.CustomerListResourceToJSON = CustomerListResourceToJSON;
|
|
20
20
|
exports.CustomerListResourceToJSONTyped = CustomerListResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var LiAddressResource_1 = require("./LiAddressResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the CustomerListResource interface.
|
|
24
25
|
*/
|
|
@@ -33,6 +34,8 @@ function instanceOfCustomerListResource(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('site' in value) || value['site'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('addresses' in value) || value['addresses'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
function CustomerListResourceFromJSON(json) {
|
|
@@ -49,6 +52,7 @@ function CustomerListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
52
|
'email': json['email'],
|
|
50
53
|
'phone': json['phone'],
|
|
51
54
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
55
|
+
'addresses': (json['addresses'] == null ? null : json['addresses'].map(LiAddressResource_1.LiAddressResourceFromJSON)),
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
function CustomerListResourceToJSON(json) {
|
|
@@ -66,5 +70,6 @@ function CustomerListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
70
|
'email': value['email'],
|
|
67
71
|
'phone': value['phone'],
|
|
68
72
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
73
|
+
'addresses': (value['addresses'] == null ? null : value['addresses'].map(LiAddressResource_1.LiAddressResourceToJSON)),
|
|
69
74
|
};
|
|
70
75
|
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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 { FrontendLineItemResource } from './FrontendLineItemResource';
|
|
13
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
14
|
+
import type { FrontendCartResourceCouponsInner } from './FrontendCartResourceCouponsInner';
|
|
15
|
+
import type { AddressResource } from './AddressResource';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FrontendCartResource
|
|
20
|
+
*/
|
|
21
|
+
export interface FrontendCartResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof FrontendCartResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FrontendCartResource
|
|
32
|
+
*/
|
|
33
|
+
lifecycleStatus: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof FrontendCartResource
|
|
38
|
+
*/
|
|
39
|
+
siteId: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FrontendCartResource
|
|
44
|
+
*/
|
|
45
|
+
sessionToken?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof FrontendCartResource
|
|
50
|
+
*/
|
|
51
|
+
guestEmail?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {CustomerListResource}
|
|
55
|
+
* @memberof FrontendCartResource
|
|
56
|
+
*/
|
|
57
|
+
customer: CustomerListResource | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof FrontendCartResource
|
|
62
|
+
*/
|
|
63
|
+
shippingType: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {AddressResource}
|
|
67
|
+
* @memberof FrontendCartResource
|
|
68
|
+
*/
|
|
69
|
+
shippingAddress: AddressResource | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {AddressResource}
|
|
73
|
+
* @memberof FrontendCartResource
|
|
74
|
+
*/
|
|
75
|
+
billingAddress: AddressResource | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<FrontendLineItemResource>}
|
|
79
|
+
* @memberof FrontendCartResource
|
|
80
|
+
*/
|
|
81
|
+
lineItems: Array<FrontendLineItemResource> | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<FrontendCartResourceCouponsInner>}
|
|
85
|
+
* @memberof FrontendCartResource
|
|
86
|
+
*/
|
|
87
|
+
coupons: Array<FrontendCartResourceCouponsInner>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof FrontendCartResource
|
|
92
|
+
*/
|
|
93
|
+
subtotal: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof FrontendCartResource
|
|
98
|
+
*/
|
|
99
|
+
promotionalDiscount: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof FrontendCartResource
|
|
104
|
+
*/
|
|
105
|
+
couponSubtotalDiscount: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof FrontendCartResource
|
|
110
|
+
*/
|
|
111
|
+
couponShippingDiscount: number;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof FrontendCartResource
|
|
116
|
+
*/
|
|
117
|
+
shipping: number;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof FrontendCartResource
|
|
122
|
+
*/
|
|
123
|
+
transitInsurance: number;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof FrontendCartResource
|
|
128
|
+
*/
|
|
129
|
+
gst: number;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof FrontendCartResource
|
|
134
|
+
*/
|
|
135
|
+
grandTotal: number;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Check if a given object implements the FrontendCartResource interface.
|
|
139
|
+
*/
|
|
140
|
+
export declare function instanceOfFrontendCartResource(value: object): value is FrontendCartResource;
|
|
141
|
+
export declare function FrontendCartResourceFromJSON(json: any): FrontendCartResource;
|
|
142
|
+
export declare function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResource;
|
|
143
|
+
export declare function FrontendCartResourceToJSON(json: any): FrontendCartResource;
|
|
144
|
+
export declare function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,121 @@
|
|
|
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.instanceOfFrontendCartResource = instanceOfFrontendCartResource;
|
|
17
|
+
exports.FrontendCartResourceFromJSON = FrontendCartResourceFromJSON;
|
|
18
|
+
exports.FrontendCartResourceFromJSONTyped = FrontendCartResourceFromJSONTyped;
|
|
19
|
+
exports.FrontendCartResourceToJSON = FrontendCartResourceToJSON;
|
|
20
|
+
exports.FrontendCartResourceToJSONTyped = FrontendCartResourceToJSONTyped;
|
|
21
|
+
var FrontendLineItemResource_1 = require("./FrontendLineItemResource");
|
|
22
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
23
|
+
var FrontendCartResourceCouponsInner_1 = require("./FrontendCartResourceCouponsInner");
|
|
24
|
+
var AddressResource_1 = require("./AddressResource");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the FrontendCartResource interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfFrontendCartResource(value) {
|
|
29
|
+
if (!('lifecycleStatus' in value) || value['lifecycleStatus'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('shippingType' in value) || value['shippingType'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('billingAddress' in value) || value['billingAddress'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('coupons' in value) || value['coupons'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('couponSubtotalDiscount' in value) || value['couponSubtotalDiscount'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('couponShippingDiscount' in value) || value['couponShippingDiscount'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('shipping' in value) || value['shipping'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('transitInsurance' in value) || value['transitInsurance'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('gst' in value) || value['gst'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('grandTotal' in value) || value['grandTotal'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
function FrontendCartResourceFromJSON(json) {
|
|
64
|
+
return FrontendCartResourceFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function FrontendCartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
72
|
+
'lifecycleStatus': json['lifecycleStatus'],
|
|
73
|
+
'siteId': json['siteId'],
|
|
74
|
+
'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
|
|
75
|
+
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
76
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
77
|
+
'shippingType': json['shippingType'],
|
|
78
|
+
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
79
|
+
'billingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['billingAddress']),
|
|
80
|
+
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
81
|
+
'coupons': (json['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerFromJSON)),
|
|
82
|
+
'subtotal': json['subtotal'],
|
|
83
|
+
'promotionalDiscount': json['promotionalDiscount'],
|
|
84
|
+
'couponSubtotalDiscount': json['couponSubtotalDiscount'],
|
|
85
|
+
'couponShippingDiscount': json['couponShippingDiscount'],
|
|
86
|
+
'shipping': json['shipping'],
|
|
87
|
+
'transitInsurance': json['transitInsurance'],
|
|
88
|
+
'gst': json['gst'],
|
|
89
|
+
'grandTotal': json['grandTotal'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function FrontendCartResourceToJSON(json) {
|
|
93
|
+
return FrontendCartResourceToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
function FrontendCartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
96
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
'id': value['id'],
|
|
102
|
+
'lifecycleStatus': value['lifecycleStatus'],
|
|
103
|
+
'siteId': value['siteId'],
|
|
104
|
+
'sessionToken': value['sessionToken'],
|
|
105
|
+
'guestEmail': value['guestEmail'],
|
|
106
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
107
|
+
'shippingType': value['shippingType'],
|
|
108
|
+
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
109
|
+
'billingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['billingAddress']),
|
|
110
|
+
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
111
|
+
'coupons': (value['coupons'].map(FrontendCartResourceCouponsInner_1.FrontendCartResourceCouponsInnerToJSON)),
|
|
112
|
+
'subtotal': value['subtotal'],
|
|
113
|
+
'promotionalDiscount': value['promotionalDiscount'],
|
|
114
|
+
'couponSubtotalDiscount': value['couponSubtotalDiscount'],
|
|
115
|
+
'couponShippingDiscount': value['couponShippingDiscount'],
|
|
116
|
+
'shipping': value['shipping'],
|
|
117
|
+
'transitInsurance': value['transitInsurance'],
|
|
118
|
+
'gst': value['gst'],
|
|
119
|
+
'grandTotal': value['grandTotal'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -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 { FrontendCartResource } from './FrontendCartResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FrontendCartResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FrontendCartResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<FrontendCartResource>}
|
|
22
|
+
* @memberof FrontendCartResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<FrontendCartResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfFrontendCartResourceArrayResponse(value: object): value is FrontendCartResourceArrayResponse;
|
|
30
|
+
export declare function FrontendCartResourceArrayResponseFromJSON(json: any): FrontendCartResourceArrayResponse;
|
|
31
|
+
export declare function FrontendCartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceArrayResponse;
|
|
32
|
+
export declare function FrontendCartResourceArrayResponseToJSON(json: any): FrontendCartResourceArrayResponse;
|
|
33
|
+
export declare function FrontendCartResourceArrayResponseToJSONTyped(value?: FrontendCartResourceArrayResponse | 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.instanceOfFrontendCartResourceArrayResponse = instanceOfFrontendCartResourceArrayResponse;
|
|
17
|
+
exports.FrontendCartResourceArrayResponseFromJSON = FrontendCartResourceArrayResponseFromJSON;
|
|
18
|
+
exports.FrontendCartResourceArrayResponseFromJSONTyped = FrontendCartResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.FrontendCartResourceArrayResponseToJSON = FrontendCartResourceArrayResponseToJSON;
|
|
20
|
+
exports.FrontendCartResourceArrayResponseToJSONTyped = FrontendCartResourceArrayResponseToJSONTyped;
|
|
21
|
+
var FrontendCartResource_1 = require("./FrontendCartResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFrontendCartResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function FrontendCartResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return FrontendCartResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function FrontendCartResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(FrontendCartResource_1.FrontendCartResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function FrontendCartResourceArrayResponseToJSON(json) {
|
|
40
|
+
return FrontendCartResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function FrontendCartResourceArrayResponseToJSONTyped(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(FrontendCartResource_1.FrontendCartResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|