@digital8/lighting-illusions-ts-sdk 0.0.1896 → 0.0.1897
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 +0 -48
- package/README.md +3 -37
- package/dist/apis/CartsApi.d.ts +6 -21
- package/dist/apis/CartsApi.js +5 -62
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +3 -3
- package/dist/models/AddressResource.js +7 -7
- package/dist/models/CartResource.d.ts +6 -37
- package/dist/models/CartResource.js +12 -35
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/LineItemListResource.d.ts +4 -35
- package/dist/models/LineItemListResource.js +4 -25
- package/dist/models/StoreCartRequestShippingAddress.d.ts +2 -2
- package/dist/models/StoreCartRequestShippingAddress.js +2 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreStoreRequestAddress.d.ts +6 -0
- package/dist/models/StoreStoreRequestAddress.js +2 -0
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -23
- package/docs/AddressResource.md +2 -2
- package/docs/CartResource.md +7 -17
- package/docs/CartsApi.md +8 -74
- package/docs/LineItemListResource.md +1 -11
- package/docs/StoreCartRequestShippingAddress.md +2 -2
- package/docs/StoreStoreRequestAddress.md +2 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -64
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +9 -9
- package/src/models/CartResource.ts +18 -71
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/LineItemListResource.ts +12 -64
- package/src/models/StoreCartRequestShippingAddress.ts +4 -4
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreStoreRequestAddress.ts +8 -0
- package/src/models/index.ts +0 -23
- package/dist/apis/OrdersApi.d.ts +0 -170
- package/dist/apis/OrdersApi.js +0 -678
- package/dist/models/AdminOrderResource.d.ts +0 -262
- package/dist/models/AdminOrderResource.js +0 -187
- package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
- package/dist/models/AttachItemOrderRequest.d.ts +0 -44
- package/dist/models/AttachItemOrderRequest.js +0 -57
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResource.js +0 -63
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/GetAllOrderRequest.d.ts +0 -104
- package/dist/models/GetAllOrderRequest.js +0 -84
- package/dist/models/IndexOrderRequest.d.ts +0 -140
- package/dist/models/IndexOrderRequest.js +0 -96
- package/dist/models/LineItemDiscountResource.d.ts +0 -50
- package/dist/models/LineItemDiscountResource.js +0 -63
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
- package/dist/models/OrderListResource.d.ts +0 -101
- package/dist/models/OrderListResource.js +0 -90
- package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderListResourceArrayResponse.js +0 -50
- package/dist/models/OrderLiteResource.d.ts +0 -62
- package/dist/models/OrderLiteResource.js +0 -67
- package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResource.js +0 -89
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/dist/models/UpdateItemOrderRequest.d.ts +0 -38
- package/dist/models/UpdateItemOrderRequest.js +0 -53
- package/dist/models/UpdateOrderRequest.d.ts +0 -111
- package/dist/models/UpdateOrderRequest.js +0 -99
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -67
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
- package/docs/AdminOrderResource.md +0 -110
- package/docs/AdminOrderResourceArrayResponse.md +0 -34
- package/docs/AttachItemOrderRequest.md +0 -38
- package/docs/CartCouponResource.md +0 -40
- package/docs/CartCouponResourceArrayResponse.md +0 -34
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/GetAllOrderRequest.md +0 -52
- package/docs/IndexOrderRequest.md +0 -64
- package/docs/LineItemDiscountResource.md +0 -40
- package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
- package/docs/OrderListResource.md +0 -56
- package/docs/OrderListResourceArrayResponse.md +0 -34
- package/docs/OrderLiteResource.md +0 -44
- package/docs/OrderLiteResourceArrayResponse.md +0 -34
- package/docs/OrdersApi.md +0 -675
- package/docs/PaginatedOrderListResourceResponse.md +0 -36
- package/docs/ProductChildCartLiteResource.md +0 -52
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/docs/UpdateItemOrderRequest.md +0 -36
- package/docs/UpdateOrderRequest.md +0 -52
- package/docs/UpdateOrderRequestBillingAddress.md +0 -50
- package/docs/UpdateOrderRequestShippingAddress.md +0 -50
- package/src/apis/OrdersApi.ts +0 -552
- package/src/models/AdminOrderResource.ts +0 -414
- package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
- package/src/models/AttachItemOrderRequest.ts +0 -83
- package/src/models/CartCouponResource.ts +0 -93
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/GetAllOrderRequest.ts +0 -159
- package/src/models/IndexOrderRequest.ts +0 -207
- package/src/models/LineItemDiscountResource.ts +0 -93
- package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
- package/src/models/OrderListResource.ts +0 -183
- package/src/models/OrderListResourceArrayResponse.ts +0 -73
- package/src/models/OrderLiteResource.ts +0 -109
- package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
- package/src/models/ProductChildCartLiteResource.ts +0 -162
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
- package/src/models/UpdateItemOrderRequest.ts +0 -74
- package/src/models/UpdateOrderRequest.ts +0 -183
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -130
- package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
|
@@ -1,63 +0,0 @@
|
|
|
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.instanceOfCartCouponResource = instanceOfCartCouponResource;
|
|
17
|
-
exports.CartCouponResourceFromJSON = CartCouponResourceFromJSON;
|
|
18
|
-
exports.CartCouponResourceFromJSONTyped = CartCouponResourceFromJSONTyped;
|
|
19
|
-
exports.CartCouponResourceToJSON = CartCouponResourceToJSON;
|
|
20
|
-
exports.CartCouponResourceToJSONTyped = CartCouponResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the CartCouponResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfCartCouponResource(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 (!('discountTotal' in value) || value['discountTotal'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function CartCouponResourceFromJSON(json) {
|
|
36
|
-
return CartCouponResourceFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function CartCouponResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'id': json['id'],
|
|
44
|
-
'code': json['code'],
|
|
45
|
-
'name': json['name'],
|
|
46
|
-
'discountTotal': json['discount_total'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function CartCouponResourceToJSON(json) {
|
|
50
|
-
return CartCouponResourceToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function CartCouponResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'id': value['id'],
|
|
59
|
-
'code': value['code'],
|
|
60
|
-
'name': value['name'],
|
|
61
|
-
'discount_total': value['discountTotal'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { CartCouponResource } from './CartCouponResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CartCouponResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface CartCouponResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<CartCouponResource>}
|
|
22
|
-
* @memberof CartCouponResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<CartCouponResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CartCouponResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCartCouponResourceArrayResponse(value: object): value is CartCouponResourceArrayResponse;
|
|
30
|
-
export declare function CartCouponResourceArrayResponseFromJSON(json: any): CartCouponResourceArrayResponse;
|
|
31
|
-
export declare function CartCouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponResourceArrayResponse;
|
|
32
|
-
export declare function CartCouponResourceArrayResponseToJSON(json: any): CartCouponResourceArrayResponse;
|
|
33
|
-
export declare function CartCouponResourceArrayResponseToJSONTyped(value?: CartCouponResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfCartCouponResourceArrayResponse = instanceOfCartCouponResourceArrayResponse;
|
|
17
|
-
exports.CartCouponResourceArrayResponseFromJSON = CartCouponResourceArrayResponseFromJSON;
|
|
18
|
-
exports.CartCouponResourceArrayResponseFromJSONTyped = CartCouponResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.CartCouponResourceArrayResponseToJSON = CartCouponResourceArrayResponseToJSON;
|
|
20
|
-
exports.CartCouponResourceArrayResponseToJSONTyped = CartCouponResourceArrayResponseToJSONTyped;
|
|
21
|
-
var CartCouponResource_1 = require("./CartCouponResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CartCouponResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCartCouponResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function CartCouponResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return CartCouponResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function CartCouponResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(CartCouponResource_1.CartCouponResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function CartCouponResourceArrayResponseToJSON(json) {
|
|
40
|
-
return CartCouponResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function CartCouponResourceArrayResponseToJSONTyped(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(CartCouponResource_1.CartCouponResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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 DetachCouponCartRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface DetachCouponCartRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<number>}
|
|
21
|
-
* @memberof DetachCouponCartRequest
|
|
22
|
-
*/
|
|
23
|
-
couponIds: Array<number>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the DetachCouponCartRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest;
|
|
29
|
-
export declare function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest;
|
|
30
|
-
export declare function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest;
|
|
31
|
-
export declare function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest;
|
|
32
|
-
export declare function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.instanceOfDetachCouponCartRequest = instanceOfDetachCouponCartRequest;
|
|
17
|
-
exports.DetachCouponCartRequestFromJSON = DetachCouponCartRequestFromJSON;
|
|
18
|
-
exports.DetachCouponCartRequestFromJSONTyped = DetachCouponCartRequestFromJSONTyped;
|
|
19
|
-
exports.DetachCouponCartRequestToJSON = DetachCouponCartRequestToJSON;
|
|
20
|
-
exports.DetachCouponCartRequestToJSONTyped = DetachCouponCartRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the DetachCouponCartRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfDetachCouponCartRequest(value) {
|
|
25
|
-
if (!('couponIds' in value) || value['couponIds'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function DetachCouponCartRequestFromJSON(json) {
|
|
30
|
-
return DetachCouponCartRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function DetachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponIds': json['coupon_ids'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function DetachCouponCartRequestToJSON(json) {
|
|
41
|
-
return DetachCouponCartRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function DetachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'coupon_ids': value['couponIds'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
*/
|
|
16
|
-
export declare const DiscountType: {
|
|
17
|
-
readonly Shipping: "shipping";
|
|
18
|
-
readonly Subtotal: "subtotal";
|
|
19
|
-
readonly Product: "product";
|
|
20
|
-
};
|
|
21
|
-
export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
22
|
-
export declare function instanceOfDiscountType(value: any): boolean;
|
|
23
|
-
export declare function DiscountTypeFromJSON(json: any): DiscountType;
|
|
24
|
-
export declare function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType;
|
|
25
|
-
export declare function DiscountTypeToJSON(value?: DiscountType | null): any;
|
|
26
|
-
export declare function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType;
|
|
@@ -1,52 +0,0 @@
|
|
|
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.DiscountType = void 0;
|
|
17
|
-
exports.instanceOfDiscountType = instanceOfDiscountType;
|
|
18
|
-
exports.DiscountTypeFromJSON = DiscountTypeFromJSON;
|
|
19
|
-
exports.DiscountTypeFromJSONTyped = DiscountTypeFromJSONTyped;
|
|
20
|
-
exports.DiscountTypeToJSON = DiscountTypeToJSON;
|
|
21
|
-
exports.DiscountTypeToJSONTyped = DiscountTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.DiscountType = {
|
|
27
|
-
Shipping: 'shipping',
|
|
28
|
-
Subtotal: 'subtotal',
|
|
29
|
-
Product: 'product'
|
|
30
|
-
};
|
|
31
|
-
function instanceOfDiscountType(value) {
|
|
32
|
-
for (var key in exports.DiscountType) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(exports.DiscountType, key)) {
|
|
34
|
-
if (exports.DiscountType[key] === value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
function DiscountTypeFromJSON(json) {
|
|
42
|
-
return DiscountTypeFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function DiscountTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
function DiscountTypeToJSON(value) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
function DiscountTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
*/
|
|
16
|
-
export declare const DiscountValueType: {
|
|
17
|
-
readonly FixedValue: "fixed_value";
|
|
18
|
-
readonly Percentage: "percentage";
|
|
19
|
-
};
|
|
20
|
-
export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
|
|
21
|
-
export declare function instanceOfDiscountValueType(value: any): boolean;
|
|
22
|
-
export declare function DiscountValueTypeFromJSON(json: any): DiscountValueType;
|
|
23
|
-
export declare function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType;
|
|
24
|
-
export declare function DiscountValueTypeToJSON(value?: DiscountValueType | null): any;
|
|
25
|
-
export declare function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.DiscountValueType = void 0;
|
|
17
|
-
exports.instanceOfDiscountValueType = instanceOfDiscountValueType;
|
|
18
|
-
exports.DiscountValueTypeFromJSON = DiscountValueTypeFromJSON;
|
|
19
|
-
exports.DiscountValueTypeFromJSONTyped = DiscountValueTypeFromJSONTyped;
|
|
20
|
-
exports.DiscountValueTypeToJSON = DiscountValueTypeToJSON;
|
|
21
|
-
exports.DiscountValueTypeToJSONTyped = DiscountValueTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.DiscountValueType = {
|
|
27
|
-
FixedValue: 'fixed_value',
|
|
28
|
-
Percentage: 'percentage'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfDiscountValueType(value) {
|
|
31
|
-
for (var key in exports.DiscountValueType) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.DiscountValueType, key)) {
|
|
33
|
-
if (exports.DiscountValueType[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function DiscountValueTypeFromJSON(json) {
|
|
41
|
-
return DiscountValueTypeFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function DiscountValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function DiscountValueTypeToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function DiscountValueTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
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 GetAllOrderRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface GetAllOrderRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof GetAllOrderRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {GetAllOrderRequestSortByEnum}
|
|
27
|
-
* @memberof GetAllOrderRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: GetAllOrderRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {GetAllOrderRequestSortDirectionEnum}
|
|
33
|
-
* @memberof GetAllOrderRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: GetAllOrderRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof GetAllOrderRequest
|
|
40
|
-
*/
|
|
41
|
-
relatedId?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof GetAllOrderRequest
|
|
46
|
-
*/
|
|
47
|
-
relatedType?: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof GetAllOrderRequest
|
|
52
|
-
*/
|
|
53
|
-
includesRelations?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof GetAllOrderRequest
|
|
58
|
-
*/
|
|
59
|
-
siteId?: Array<string>;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<string>}
|
|
63
|
-
* @memberof GetAllOrderRequest
|
|
64
|
-
*/
|
|
65
|
-
source?: Array<string>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<string>}
|
|
69
|
-
* @memberof GetAllOrderRequest
|
|
70
|
-
*/
|
|
71
|
-
statusId?: Array<string>;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Array<string>}
|
|
75
|
-
* @memberof GetAllOrderRequest
|
|
76
|
-
*/
|
|
77
|
-
customerId?: Array<string>;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @export
|
|
81
|
-
*/
|
|
82
|
-
export declare const GetAllOrderRequestSortByEnum: {
|
|
83
|
-
readonly Id: "id";
|
|
84
|
-
readonly CreatedAt: "created_at";
|
|
85
|
-
readonly PlacedAt: "placed_at";
|
|
86
|
-
readonly UpdatedAt: "updated_at";
|
|
87
|
-
};
|
|
88
|
-
export type GetAllOrderRequestSortByEnum = typeof GetAllOrderRequestSortByEnum[keyof typeof GetAllOrderRequestSortByEnum];
|
|
89
|
-
/**
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
export declare const GetAllOrderRequestSortDirectionEnum: {
|
|
93
|
-
readonly Asc: "asc";
|
|
94
|
-
readonly Desc: "desc";
|
|
95
|
-
};
|
|
96
|
-
export type GetAllOrderRequestSortDirectionEnum = typeof GetAllOrderRequestSortDirectionEnum[keyof typeof GetAllOrderRequestSortDirectionEnum];
|
|
97
|
-
/**
|
|
98
|
-
* Check if a given object implements the GetAllOrderRequest interface.
|
|
99
|
-
*/
|
|
100
|
-
export declare function instanceOfGetAllOrderRequest(value: object): value is GetAllOrderRequest;
|
|
101
|
-
export declare function GetAllOrderRequestFromJSON(json: any): GetAllOrderRequest;
|
|
102
|
-
export declare function GetAllOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllOrderRequest;
|
|
103
|
-
export declare function GetAllOrderRequestToJSON(json: any): GetAllOrderRequest;
|
|
104
|
-
export declare function GetAllOrderRequestToJSONTyped(value?: GetAllOrderRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,84 +0,0 @@
|
|
|
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.GetAllOrderRequestSortDirectionEnum = exports.GetAllOrderRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfGetAllOrderRequest = instanceOfGetAllOrderRequest;
|
|
18
|
-
exports.GetAllOrderRequestFromJSON = GetAllOrderRequestFromJSON;
|
|
19
|
-
exports.GetAllOrderRequestFromJSONTyped = GetAllOrderRequestFromJSONTyped;
|
|
20
|
-
exports.GetAllOrderRequestToJSON = GetAllOrderRequestToJSON;
|
|
21
|
-
exports.GetAllOrderRequestToJSONTyped = GetAllOrderRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.GetAllOrderRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
CreatedAt: 'created_at',
|
|
28
|
-
PlacedAt: 'placed_at',
|
|
29
|
-
UpdatedAt: 'updated_at'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
exports.GetAllOrderRequestSortDirectionEnum = {
|
|
35
|
-
Asc: 'asc',
|
|
36
|
-
Desc: 'desc'
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the GetAllOrderRequest interface.
|
|
40
|
-
*/
|
|
41
|
-
function instanceOfGetAllOrderRequest(value) {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
function GetAllOrderRequestFromJSON(json) {
|
|
45
|
-
return GetAllOrderRequestFromJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function GetAllOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
53
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
54
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
55
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
56
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
57
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
58
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
59
|
-
'source': json['source'] == null ? undefined : json['source'],
|
|
60
|
-
'statusId': json['status_id'] == null ? undefined : json['status_id'],
|
|
61
|
-
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function GetAllOrderRequestToJSON(json) {
|
|
65
|
-
return GetAllOrderRequestToJSONTyped(json, false);
|
|
66
|
-
}
|
|
67
|
-
function GetAllOrderRequestToJSONTyped(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
|
-
'related_id': value['relatedId'],
|
|
77
|
-
'related_type': value['relatedType'],
|
|
78
|
-
'includes_relations': value['includesRelations'],
|
|
79
|
-
'site_id': value['siteId'],
|
|
80
|
-
'source': value['source'],
|
|
81
|
-
'status_id': value['statusId'],
|
|
82
|
-
'customer_id': value['customerId'],
|
|
83
|
-
};
|
|
84
|
-
}
|