@digital8/lighting-illusions-ts-sdk 0.0.2364 → 0.0.2366
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 +4 -34
- package/README.md +4 -24
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +3 -2
- package/dist/models/AdminOrderResource.js +3 -2
- package/dist/models/CartCouponResource.d.ts +50 -0
- package/dist/models/{AppliedCouponResource.js → CartCouponResource.js} +13 -13
- package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendOrderResource.d.ts +3 -3
- package/dist/models/FrontendOrderResource.js +3 -3
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +3 -3
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +0 -6
- package/dist/models/SearchOrdersRequest.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/index.d.ts +2 -16
- package/dist/models/index.js +2 -16
- package/docs/AdminOrderResource.md +1 -1
- package/docs/{AppliedCouponResource.md → CartCouponResource.md} +4 -4
- package/docs/{CouponLiteResourceArrayResponse.md → CartCouponResourceArrayResponse.md} +5 -5
- package/docs/FrontendOrderResource.md +1 -1
- package/docs/SearchCartsRequest.md +0 -2
- package/docs/SearchOrdersRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +11 -4
- package/src/models/{AppliedCouponResource.ts → CartCouponResource.ts} +14 -14
- package/src/models/CartCouponResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendOrderResource.ts +11 -11
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +0 -8
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +6 -4
- package/src/models/index.ts +2 -16
- package/dist/apis/CouponsApi.d.ts +0 -116
- package/dist/apis/CouponsApi.js +0 -440
- package/dist/models/AppliedCouponResource.d.ts +0 -50
- package/dist/models/AppliedCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/AppliedCouponResourceArrayResponse.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/AppliedCouponResourceArrayResponse.md +0 -34
- package/docs/CouponListResource.md +0 -56
- package/docs/CouponListResourceArrayResponse.md +0 -34
- package/docs/CouponLiteResource.md +0 -38
- 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/PaginatedCouponListResourceResponse.md +0 -36
- package/docs/PaginatedCouponResourceResponse.md +0 -36
- package/docs/SearchAllCouponsRequest.md +0 -50
- package/docs/SearchCouponsRequest.md +0 -62
- package/docs/UpdateCouponRequest.md +0 -60
- package/src/apis/CouponsApi.ts +0 -345
- package/src/models/AppliedCouponResourceArrayResponse.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,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,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AppliedCouponResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<AppliedCouponResource>](AppliedCouponResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AppliedCouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies AppliedCouponResourceArrayResponse
|
|
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 AppliedCouponResourceArrayResponse
|
|
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
|
-
|
|
@@ -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
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CouponLiteResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`code` | string
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { CouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"id": null,
|
|
21
|
-
"name": null,
|
|
22
|
-
"code": null,
|
|
23
|
-
} satisfies CouponLiteResource
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as CouponLiteResource
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|
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
|
-
|