@digital8/lighting-illusions-ts-sdk 0.0.2347 → 0.0.2348
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 +14 -34
- package/README.md +9 -24
- package/dist/apis/ProductClassApi.d.ts +34 -0
- package/dist/apis/ProductClassApi.js +139 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +2 -3
- package/dist/models/AdminOrderResource.js +2 -3
- package/dist/models/AppliedCouponResource.d.ts +50 -0
- package/dist/models/{CartCouponResource.js → AppliedCouponResource.js} +13 -13
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/AppliedCouponResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
- package/dist/models/CategoryAutomationFieldType.js +3 -1
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
- package/dist/models/CreateSupplierRequest.d.ts +6 -0
- package/dist/models/CreateSupplierRequest.js +2 -0
- package/dist/models/FrontendCartResource.d.ts +18 -0
- package/dist/models/FrontendCartResource.js +12 -0
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/OrderStatusWithCountResource.d.ts +12 -0
- package/dist/models/OrderStatusWithCountResource.js +8 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
- package/dist/models/ProductClassLiteResource.d.ts +44 -0
- package/dist/models/ProductClassLiteResource.js +57 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllOrdersRequest.d.ts +6 -0
- package/dist/models/SearchAllOrdersRequest.js +2 -0
- package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
- package/dist/models/SearchAllProductClassesRequest.js +74 -0
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +6 -6
- package/dist/models/SearchOrdersRequest.js +2 -2
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- 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/SupplierFrontendResource.d.ts +6 -0
- package/dist/models/SupplierFrontendResource.js +4 -0
- package/dist/models/SupplierResource.d.ts +6 -0
- package/dist/models/SupplierResource.js +4 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateSupplierRequest.d.ts +6 -0
- package/dist/models/UpdateSupplierRequest.js +2 -0
- package/dist/models/index.d.ts +6 -16
- package/dist/models/index.js +6 -16
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{CartCouponResource.md → AppliedCouponResource.md} +4 -4
- package/docs/{CouponLiteResourceArrayResponse.md → AppliedCouponResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +2 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateSupplierRequest.md +2 -0
- package/docs/FrontendCartResource.md +6 -0
- package/docs/FrontendOrderResource.md +1 -1
- package/docs/OrderStatusWithCountResource.md +4 -0
- package/docs/{PaginatedCouponListResourceResponse.md → PaginatedProductClassLiteResourceResponse.md} +5 -5
- package/docs/ProductClassApi.md +74 -0
- package/docs/{CouponLiteResource.md → ProductClassLiteResource.md} +6 -6
- package/docs/{CartCouponResourceArrayResponse.md → ProductClassLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductClassResource.md +1 -1
- package/docs/SearchAllOrdersRequest.md +2 -0
- package/docs/{SearchAllCouponsRequest.md → SearchAllProductClassesRequest.md} +4 -10
- package/docs/SearchCartsRequest.md +0 -2
- package/docs/SearchOrdersRequest.md +2 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductClassApi.ts +76 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +4 -11
- package/src/models/{CartCouponResource.ts → AppliedCouponResource.ts} +14 -14
- package/src/models/AppliedCouponResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CategoryAutomationFieldType.ts +3 -1
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
- package/src/models/CreateSupplierRequest.ts +8 -0
- package/src/models/FrontendCartResource.ts +27 -0
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/OrderStatusWithCountResource.ts +18 -0
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
- package/src/models/ProductClassLiteResource.ts +83 -0
- package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllOrdersRequest.ts +8 -0
- package/src/models/SearchAllProductClassesRequest.ts +125 -0
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +8 -8
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/SupplierFrontendResource.ts +9 -0
- package/src/models/SupplierResource.ts +9 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateSupplierRequest.ts +8 -0
- package/src/models/index.ts +6 -16
- package/dist/apis/CouponsApi.d.ts +0 -116
- package/dist/apis/CouponsApi.js +0 -440
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponListResource.d.ts +0 -99
- package/dist/models/CouponListResource.js +0 -90
- package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponListResourceArrayResponse.js +0 -50
- package/dist/models/CouponLiteResource.d.ts +0 -44
- package/dist/models/CouponLiteResource.js +0 -57
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/CouponResource.d.ts +0 -163
- package/dist/models/CouponResource.js +0 -134
- package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponType.d.ts +0 -26
- package/dist/models/CouponType.js +0 -52
- package/dist/models/CreateCouponRequest.d.ts +0 -134
- package/dist/models/CreateCouponRequest.js +0 -114
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
- package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
- package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponResourceResponse.js +0 -57
- package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
- package/dist/models/SearchAllCouponsRequest.js +0 -85
- package/dist/models/SearchCouponsRequest.d.ts +0 -137
- package/dist/models/SearchCouponsRequest.js +0 -97
- package/dist/models/UpdateCouponRequest.d.ts +0 -128
- package/dist/models/UpdateCouponRequest.js +0 -110
- package/docs/CouponListResource.md +0 -56
- package/docs/CouponListResourceArrayResponse.md +0 -34
- package/docs/CouponResource.md +0 -76
- package/docs/CouponResourceArrayResponse.md +0 -34
- package/docs/CouponType.md +0 -32
- package/docs/CouponsApi.md +0 -407
- package/docs/CreateCouponRequest.md +0 -62
- package/docs/CreateCouponRequestCouponablesInner.md +0 -36
- package/docs/PaginatedCouponResourceResponse.md +0 -36
- package/docs/SearchCouponsRequest.md +0 -62
- package/docs/UpdateCouponRequest.md +0 -60
- package/src/apis/CouponsApi.ts +0 -345
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponListResource.ts +0 -170
- package/src/models/CouponListResourceArrayResponse.ts +0 -73
- package/src/models/CouponLiteResource.ts +0 -83
- package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/CouponResource.ts +0 -288
- package/src/models/CouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponType.ts +0 -54
- package/src/models/CreateCouponRequest.ts +0 -216
- package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
- package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
- package/src/models/PaginatedCouponResourceResponse.ts +0 -90
- package/src/models/SearchAllCouponsRequest.ts +0 -154
- package/src/models/SearchCouponsRequest.ts +0 -202
- package/src/models/UpdateCouponRequest.ts +0 -207
|
@@ -1,128 +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 { CreateCouponRequestCouponablesInner } from './CreateCouponRequestCouponablesInner';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UpdateCouponRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface UpdateCouponRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UpdateCouponRequest
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UpdateCouponRequest
|
|
29
|
-
*/
|
|
30
|
-
code: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {UpdateCouponRequestTypeEnum}
|
|
34
|
-
* @memberof UpdateCouponRequest
|
|
35
|
-
*/
|
|
36
|
-
type: UpdateCouponRequestTypeEnum;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {UpdateCouponRequestDiscountTypeEnum}
|
|
40
|
-
* @memberof UpdateCouponRequest
|
|
41
|
-
*/
|
|
42
|
-
discountType: UpdateCouponRequestDiscountTypeEnum;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof UpdateCouponRequest
|
|
47
|
-
*/
|
|
48
|
-
discountAmount: number;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof UpdateCouponRequest
|
|
53
|
-
*/
|
|
54
|
-
minAmount: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof UpdateCouponRequest
|
|
59
|
-
*/
|
|
60
|
-
minProducts: number;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof UpdateCouponRequest
|
|
65
|
-
*/
|
|
66
|
-
totalUseLimit: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof UpdateCouponRequest
|
|
71
|
-
*/
|
|
72
|
-
customerUseLimit: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof UpdateCouponRequest
|
|
77
|
-
*/
|
|
78
|
-
startDate?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof UpdateCouponRequest
|
|
83
|
-
*/
|
|
84
|
-
endDate?: string | null;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {boolean}
|
|
88
|
-
* @memberof UpdateCouponRequest
|
|
89
|
-
*/
|
|
90
|
-
isForAllProducts?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {boolean}
|
|
94
|
-
* @memberof UpdateCouponRequest
|
|
95
|
-
*/
|
|
96
|
-
isForAllCustomers?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {Array<CreateCouponRequestCouponablesInner>}
|
|
100
|
-
* @memberof UpdateCouponRequest
|
|
101
|
-
*/
|
|
102
|
-
couponables?: Array<CreateCouponRequestCouponablesInner>;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
|
-
export declare const UpdateCouponRequestTypeEnum: {
|
|
108
|
-
readonly Subtotal: "subtotal";
|
|
109
|
-
readonly Product: "product";
|
|
110
|
-
readonly Shipping: "shipping";
|
|
111
|
-
};
|
|
112
|
-
export type UpdateCouponRequestTypeEnum = typeof UpdateCouponRequestTypeEnum[keyof typeof UpdateCouponRequestTypeEnum];
|
|
113
|
-
/**
|
|
114
|
-
* @export
|
|
115
|
-
*/
|
|
116
|
-
export declare const UpdateCouponRequestDiscountTypeEnum: {
|
|
117
|
-
readonly Dollar: "$";
|
|
118
|
-
readonly Percent: "%";
|
|
119
|
-
};
|
|
120
|
-
export type UpdateCouponRequestDiscountTypeEnum = typeof UpdateCouponRequestDiscountTypeEnum[keyof typeof UpdateCouponRequestDiscountTypeEnum];
|
|
121
|
-
/**
|
|
122
|
-
* Check if a given object implements the UpdateCouponRequest interface.
|
|
123
|
-
*/
|
|
124
|
-
export declare function instanceOfUpdateCouponRequest(value: object): value is UpdateCouponRequest;
|
|
125
|
-
export declare function UpdateCouponRequestFromJSON(json: any): UpdateCouponRequest;
|
|
126
|
-
export declare function UpdateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCouponRequest;
|
|
127
|
-
export declare function UpdateCouponRequestToJSON(json: any): UpdateCouponRequest;
|
|
128
|
-
export declare function UpdateCouponRequestToJSONTyped(value?: UpdateCouponRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,110 +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.UpdateCouponRequestDiscountTypeEnum = exports.UpdateCouponRequestTypeEnum = void 0;
|
|
17
|
-
exports.instanceOfUpdateCouponRequest = instanceOfUpdateCouponRequest;
|
|
18
|
-
exports.UpdateCouponRequestFromJSON = UpdateCouponRequestFromJSON;
|
|
19
|
-
exports.UpdateCouponRequestFromJSONTyped = UpdateCouponRequestFromJSONTyped;
|
|
20
|
-
exports.UpdateCouponRequestToJSON = UpdateCouponRequestToJSON;
|
|
21
|
-
exports.UpdateCouponRequestToJSONTyped = UpdateCouponRequestToJSONTyped;
|
|
22
|
-
var CreateCouponRequestCouponablesInner_1 = require("./CreateCouponRequestCouponablesInner");
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.UpdateCouponRequestTypeEnum = {
|
|
27
|
-
Subtotal: 'subtotal',
|
|
28
|
-
Product: 'product',
|
|
29
|
-
Shipping: 'shipping'
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
exports.UpdateCouponRequestDiscountTypeEnum = {
|
|
35
|
-
Dollar: '$',
|
|
36
|
-
Percent: '%'
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the UpdateCouponRequest interface.
|
|
40
|
-
*/
|
|
41
|
-
function instanceOfUpdateCouponRequest(value) {
|
|
42
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
43
|
-
return false;
|
|
44
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
45
|
-
return false;
|
|
46
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
47
|
-
return false;
|
|
48
|
-
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
49
|
-
return false;
|
|
50
|
-
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
51
|
-
return false;
|
|
52
|
-
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
53
|
-
return false;
|
|
54
|
-
if (!('minProducts' in value) || value['minProducts'] === undefined)
|
|
55
|
-
return false;
|
|
56
|
-
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined)
|
|
57
|
-
return false;
|
|
58
|
-
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined)
|
|
59
|
-
return false;
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
function UpdateCouponRequestFromJSON(json) {
|
|
63
|
-
return UpdateCouponRequestFromJSONTyped(json, false);
|
|
64
|
-
}
|
|
65
|
-
function UpdateCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
66
|
-
if (json == null) {
|
|
67
|
-
return json;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
'name': json['name'],
|
|
71
|
-
'code': json['code'],
|
|
72
|
-
'type': json['type'],
|
|
73
|
-
'discountType': json['discount_type'],
|
|
74
|
-
'discountAmount': json['discount_amount'],
|
|
75
|
-
'minAmount': json['min_amount'],
|
|
76
|
-
'minProducts': json['min_products'],
|
|
77
|
-
'totalUseLimit': json['total_use_limit'],
|
|
78
|
-
'customerUseLimit': json['customer_use_limit'],
|
|
79
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
80
|
-
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
81
|
-
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
82
|
-
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
83
|
-
'couponables': json['couponables'] == null ? undefined : (json['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerFromJSON)),
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function UpdateCouponRequestToJSON(json) {
|
|
87
|
-
return UpdateCouponRequestToJSONTyped(json, false);
|
|
88
|
-
}
|
|
89
|
-
function UpdateCouponRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
90
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
91
|
-
if (value == null) {
|
|
92
|
-
return value;
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
'name': value['name'],
|
|
96
|
-
'code': value['code'],
|
|
97
|
-
'type': value['type'],
|
|
98
|
-
'discount_type': value['discountType'],
|
|
99
|
-
'discount_amount': value['discountAmount'],
|
|
100
|
-
'min_amount': value['minAmount'],
|
|
101
|
-
'min_products': value['minProducts'],
|
|
102
|
-
'total_use_limit': value['totalUseLimit'],
|
|
103
|
-
'customer_use_limit': value['customerUseLimit'],
|
|
104
|
-
'start_date': value['startDate'],
|
|
105
|
-
'end_date': value['endDate'],
|
|
106
|
-
'is_for_all_products': value['isForAllProducts'],
|
|
107
|
-
'is_for_all_customers': value['isForAllCustomers'],
|
|
108
|
-
'couponables': value['couponables'] == null ? undefined : (value['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerToJSON)),
|
|
109
|
-
};
|
|
110
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CouponListResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`code` | string
|
|
12
|
-
`type` | string
|
|
13
|
-
`discountType` | string
|
|
14
|
-
`discountAmount` | number
|
|
15
|
-
`startDate` | Date
|
|
16
|
-
`endDate` | Date
|
|
17
|
-
`isAbandonedCart` | boolean
|
|
18
|
-
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
19
|
-
`ordersCount` | number
|
|
20
|
-
`cartsCount` | number
|
|
21
|
-
|
|
22
|
-
## Example
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import type { CouponListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
26
|
-
|
|
27
|
-
// TODO: Update the object below with actual values
|
|
28
|
-
const example = {
|
|
29
|
-
"id": null,
|
|
30
|
-
"name": null,
|
|
31
|
-
"code": null,
|
|
32
|
-
"type": null,
|
|
33
|
-
"discountType": null,
|
|
34
|
-
"discountAmount": null,
|
|
35
|
-
"startDate": null,
|
|
36
|
-
"endDate": null,
|
|
37
|
-
"isAbandonedCart": null,
|
|
38
|
-
"site": null,
|
|
39
|
-
"ordersCount": null,
|
|
40
|
-
"cartsCount": null,
|
|
41
|
-
} satisfies CouponListResource
|
|
42
|
-
|
|
43
|
-
console.log(example)
|
|
44
|
-
|
|
45
|
-
// Convert the instance to a JSON string
|
|
46
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
-
console.log(exampleJSON)
|
|
48
|
-
|
|
49
|
-
// Parse the JSON string back to an object
|
|
50
|
-
const exampleParsed = JSON.parse(exampleJSON) as CouponListResource
|
|
51
|
-
console.log(exampleParsed)
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
-
|
|
56
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CouponListResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<CouponListResource>](CouponListResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { CouponListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies CouponListResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as CouponListResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
package/docs/CouponResource.md
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CouponResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`code` | string
|
|
12
|
-
`type` | string
|
|
13
|
-
`discountType` | string
|
|
14
|
-
`discountAmount` | number
|
|
15
|
-
`minAmount` | number
|
|
16
|
-
`minProducts` | number
|
|
17
|
-
`totalUseLimit` | number
|
|
18
|
-
`customerUseLimit` | number
|
|
19
|
-
`isAbandonedCart` | boolean
|
|
20
|
-
`isForAllProducts` | boolean
|
|
21
|
-
`isForAllCustomers` | boolean
|
|
22
|
-
`startDate` | Date
|
|
23
|
-
`endDate` | Date
|
|
24
|
-
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
25
|
-
`productChildren` | [Array<ProductChildLiteResource>](ProductChildLiteResource.md)
|
|
26
|
-
`categories` | [Array<ProductCategoryListResource>](ProductCategoryListResource.md)
|
|
27
|
-
`suppliers` | [Array<SupplierListResource>](SupplierListResource.md)
|
|
28
|
-
`customers` | [Array<CustomerListResource>](CustomerListResource.md)
|
|
29
|
-
`ordersCount` | number
|
|
30
|
-
`cartsCount` | number
|
|
31
|
-
|
|
32
|
-
## Example
|
|
33
|
-
|
|
34
|
-
```typescript
|
|
35
|
-
import type { CouponResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
36
|
-
|
|
37
|
-
// TODO: Update the object below with actual values
|
|
38
|
-
const example = {
|
|
39
|
-
"id": null,
|
|
40
|
-
"name": null,
|
|
41
|
-
"code": null,
|
|
42
|
-
"type": null,
|
|
43
|
-
"discountType": null,
|
|
44
|
-
"discountAmount": null,
|
|
45
|
-
"minAmount": null,
|
|
46
|
-
"minProducts": null,
|
|
47
|
-
"totalUseLimit": null,
|
|
48
|
-
"customerUseLimit": null,
|
|
49
|
-
"isAbandonedCart": null,
|
|
50
|
-
"isForAllProducts": null,
|
|
51
|
-
"isForAllCustomers": null,
|
|
52
|
-
"startDate": null,
|
|
53
|
-
"endDate": null,
|
|
54
|
-
"site": null,
|
|
55
|
-
"productChildren": null,
|
|
56
|
-
"categories": null,
|
|
57
|
-
"suppliers": null,
|
|
58
|
-
"customers": null,
|
|
59
|
-
"ordersCount": null,
|
|
60
|
-
"cartsCount": null,
|
|
61
|
-
} satisfies CouponResource
|
|
62
|
-
|
|
63
|
-
console.log(example)
|
|
64
|
-
|
|
65
|
-
// Convert the instance to a JSON string
|
|
66
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
67
|
-
console.log(exampleJSON)
|
|
68
|
-
|
|
69
|
-
// Parse the JSON string back to an object
|
|
70
|
-
const exampleParsed = JSON.parse(exampleJSON) as CouponResource
|
|
71
|
-
console.log(exampleParsed)
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
75
|
-
|
|
76
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CouponResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<CouponResource>](CouponResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { CouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies CouponResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as CouponResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
package/docs/CouponType.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CouponType
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { CouponType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies CouponType
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as CouponType
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|