@digital8/lighting-illusions-ts-sdk 0.0.2372 → 0.0.2374
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 +42 -0
- package/README.md +30 -2
- package/dist/apis/ReturnsApi.d.ts +149 -0
- package/dist/apis/ReturnsApi.js +563 -0
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +2 -6
- package/dist/models/AttachReturnAssetsRequest.d.ts +32 -0
- package/dist/models/AttachReturnAssetsRequest.js +51 -0
- package/dist/models/CreateReturnRequest.d.ts +106 -0
- package/dist/models/CreateReturnRequest.js +103 -0
- package/dist/models/DetachReturnAssetsRequest.d.ts +32 -0
- package/dist/models/DetachReturnAssetsRequest.js +51 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/PaginatedReturnFrontendListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReturnFrontendListResourceResponse.js +57 -0
- package/dist/models/PaginatedReturnListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReturnListResourceResponse.js +57 -0
- package/dist/models/ReturnFrontendListResource.d.ts +82 -0
- package/dist/models/ReturnFrontendListResource.js +83 -0
- package/dist/models/ReturnFrontendListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnFrontendListResourceArrayResponse.js +50 -0
- package/dist/models/ReturnFrontendResource.d.ts +94 -0
- package/dist/models/ReturnFrontendResource.js +91 -0
- package/dist/models/ReturnFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ReturnListResource.d.ts +97 -0
- package/dist/models/ReturnListResource.js +94 -0
- package/dist/models/ReturnListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnListResourceArrayResponse.js +50 -0
- package/dist/models/ReturnLiteResource.d.ts +44 -0
- package/dist/models/ReturnLiteResource.js +59 -0
- package/dist/models/ReturnLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnLiteResourceArrayResponse.js +50 -0
- package/dist/models/ReturnMethod.d.ts +25 -0
- package/dist/models/ReturnMethod.js +51 -0
- package/dist/models/ReturnReason.d.ts +30 -0
- package/dist/models/ReturnReason.js +56 -0
- package/dist/models/ReturnResource.d.ts +135 -0
- package/dist/models/ReturnResource.js +118 -0
- package/dist/models/ReturnResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReturnResourceArrayResponse.js +50 -0
- package/dist/models/ReturnStatus.d.ts +28 -0
- package/dist/models/ReturnStatus.js +54 -0
- package/dist/models/SearchAllRolesRequest.d.ts +0 -2
- package/dist/models/SearchAllRolesRequest.js +1 -3
- package/dist/models/SearchReturnsRequest.d.ts +165 -0
- package/dist/models/SearchReturnsRequest.js +109 -0
- package/dist/models/SearchRolesRequest.d.ts +0 -2
- package/dist/models/SearchRolesRequest.js +1 -3
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateReturnRequest.d.ts +100 -0
- package/dist/models/UpdateReturnRequest.js +99 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/docs/AttachReturnAssetsRequest.md +34 -0
- package/docs/CreateReturnRequest.md +48 -0
- package/docs/DetachReturnAssetsRequest.md +34 -0
- package/docs/PaginatedReturnFrontendListResourceResponse.md +36 -0
- package/docs/PaginatedReturnListResourceResponse.md +36 -0
- package/docs/ReturnFrontendListResource.md +50 -0
- package/docs/ReturnFrontendListResourceArrayResponse.md +34 -0
- package/docs/ReturnFrontendResource.md +54 -0
- package/docs/ReturnFrontendResourceArrayResponse.md +34 -0
- package/docs/ReturnListResource.md +54 -0
- package/docs/ReturnListResourceArrayResponse.md +34 -0
- package/docs/ReturnLiteResource.md +38 -0
- package/docs/ReturnLiteResourceArrayResponse.md +34 -0
- package/docs/ReturnMethod.md +32 -0
- package/docs/ReturnReason.md +32 -0
- package/docs/ReturnResource.md +66 -0
- package/docs/ReturnResourceArrayResponse.md +34 -0
- package/docs/ReturnStatus.md +32 -0
- package/docs/ReturnsApi.md +545 -0
- package/docs/SearchReturnsRequest.md +70 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/SupplierApi.md +2 -2
- package/docs/UpdateReturnRequest.md +46 -0
- package/package.json +1 -1
- package/src/apis/ReturnsApi.ts +456 -0
- package/src/apis/SupplierApi.ts +1 -1
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +4 -6
- package/src/models/AttachReturnAssetsRequest.ts +66 -0
- package/src/models/CreateReturnRequest.ts +163 -0
- package/src/models/DetachReturnAssetsRequest.ts +66 -0
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/PaginatedReturnFrontendListResourceResponse.ts +90 -0
- package/src/models/PaginatedReturnListResourceResponse.ts +90 -0
- package/src/models/ReturnFrontendListResource.ts +152 -0
- package/src/models/ReturnFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ReturnFrontendResource.ts +170 -0
- package/src/models/ReturnFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ReturnListResource.ts +191 -0
- package/src/models/ReturnListResourceArrayResponse.ts +73 -0
- package/src/models/ReturnLiteResource.ts +84 -0
- package/src/models/ReturnLiteResourceArrayResponse.ts +73 -0
- package/src/models/ReturnMethod.ts +53 -0
- package/src/models/ReturnReason.ts +58 -0
- package/src/models/ReturnResource.ts +258 -0
- package/src/models/ReturnResourceArrayResponse.ts +73 -0
- package/src/models/ReturnStatus.ts +56 -0
- package/src/models/SearchAllRolesRequest.ts +1 -3
- package/src/models/SearchReturnsRequest.ts +238 -0
- package/src/models/SearchRolesRequest.ts +1 -3
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateReturnRequest.ts +154 -0
- package/src/models/index.ts +20 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnFrontendListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ReturnFrontendListResource>](ReturnFrontendListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ReturnFrontendListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ReturnFrontendListResourceArrayResponse
|
|
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 ReturnFrontendListResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnFrontendResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`status` | string
|
|
12
|
+
`reason` | string
|
|
13
|
+
`returnMethod` | string
|
|
14
|
+
`createdAt` | Date
|
|
15
|
+
`assetsCount` | number
|
|
16
|
+
`order` | [OrderLiteResource](OrderLiteResource.md)
|
|
17
|
+
`lineItem` | [LineItemListResource](LineItemListResource.md)
|
|
18
|
+
`description` | string
|
|
19
|
+
`assets` | object
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { ReturnFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"id": null,
|
|
29
|
+
"quantity": null,
|
|
30
|
+
"status": null,
|
|
31
|
+
"reason": null,
|
|
32
|
+
"returnMethod": null,
|
|
33
|
+
"createdAt": null,
|
|
34
|
+
"assetsCount": null,
|
|
35
|
+
"order": null,
|
|
36
|
+
"lineItem": null,
|
|
37
|
+
"description": null,
|
|
38
|
+
"assets": null,
|
|
39
|
+
} satisfies ReturnFrontendResource
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReturnFrontendResource
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnFrontendResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ReturnFrontendResource>](ReturnFrontendResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ReturnFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ReturnFrontendResourceArrayResponse
|
|
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 ReturnFrontendResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`status` | string
|
|
12
|
+
`reason` | string
|
|
13
|
+
`returnMethod` | string
|
|
14
|
+
`createdAt` | Date
|
|
15
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
16
|
+
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
17
|
+
`order` | [OrderLiteResource](OrderLiteResource.md)
|
|
18
|
+
`lineItem` | [LineItemListResource](LineItemListResource.md)
|
|
19
|
+
`reviewer` | [AdminUserLiteResource](AdminUserLiteResource.md)
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { ReturnListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"id": null,
|
|
29
|
+
"quantity": null,
|
|
30
|
+
"status": null,
|
|
31
|
+
"reason": null,
|
|
32
|
+
"returnMethod": null,
|
|
33
|
+
"createdAt": null,
|
|
34
|
+
"site": null,
|
|
35
|
+
"customer": null,
|
|
36
|
+
"order": null,
|
|
37
|
+
"lineItem": null,
|
|
38
|
+
"reviewer": null,
|
|
39
|
+
} satisfies ReturnListResource
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReturnListResource
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ReturnListResource>](ReturnListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ReturnListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ReturnListResourceArrayResponse
|
|
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 ReturnListResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`status` | string
|
|
11
|
+
`quantity` | number
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ReturnLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"status": null,
|
|
22
|
+
"quantity": null,
|
|
23
|
+
} satisfies ReturnLiteResource
|
|
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 ReturnLiteResource
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ReturnLiteResource>](ReturnLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ReturnLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ReturnLiteResourceArrayResponse
|
|
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 ReturnLiteResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnMethod
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ReturnMethod } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ReturnMethod
|
|
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 ReturnMethod
|
|
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
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnReason
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ReturnReason } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ReturnReason
|
|
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 ReturnReason
|
|
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
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`status` | string
|
|
12
|
+
`reason` | string
|
|
13
|
+
`returnMethod` | string
|
|
14
|
+
`createdAt` | Date
|
|
15
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
16
|
+
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
17
|
+
`order` | [OrderLiteResource](OrderLiteResource.md)
|
|
18
|
+
`lineItem` | [LineItemListResource](LineItemListResource.md)
|
|
19
|
+
`reviewer` | [AdminUserLiteResource](AdminUserLiteResource.md)
|
|
20
|
+
`description` | string
|
|
21
|
+
`assets` | object
|
|
22
|
+
`netsuiteSync` | [NetsuiteSyncLiteResource](NetsuiteSyncLiteResource.md)
|
|
23
|
+
`omnisendSync` | [OmnisendSyncLiteResource](OmnisendSyncLiteResource.md)
|
|
24
|
+
`externalApiLogs` | object
|
|
25
|
+
`updatedAt` | Date
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import type { ReturnResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
31
|
+
|
|
32
|
+
// TODO: Update the object below with actual values
|
|
33
|
+
const example = {
|
|
34
|
+
"id": null,
|
|
35
|
+
"quantity": null,
|
|
36
|
+
"status": null,
|
|
37
|
+
"reason": null,
|
|
38
|
+
"returnMethod": null,
|
|
39
|
+
"createdAt": null,
|
|
40
|
+
"site": null,
|
|
41
|
+
"customer": null,
|
|
42
|
+
"order": null,
|
|
43
|
+
"lineItem": null,
|
|
44
|
+
"reviewer": null,
|
|
45
|
+
"description": null,
|
|
46
|
+
"assets": null,
|
|
47
|
+
"netsuiteSync": null,
|
|
48
|
+
"omnisendSync": null,
|
|
49
|
+
"externalApiLogs": null,
|
|
50
|
+
"updatedAt": null,
|
|
51
|
+
} satisfies ReturnResource
|
|
52
|
+
|
|
53
|
+
console.log(example)
|
|
54
|
+
|
|
55
|
+
// Convert the instance to a JSON string
|
|
56
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
57
|
+
console.log(exampleJSON)
|
|
58
|
+
|
|
59
|
+
// Parse the JSON string back to an object
|
|
60
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReturnResource
|
|
61
|
+
console.log(exampleParsed)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
66
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ReturnResource>](ReturnResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ReturnResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ReturnResourceArrayResponse
|
|
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 ReturnResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ReturnStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ReturnStatus } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ReturnStatus
|
|
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 ReturnStatus
|
|
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
|
+
|