@digital8/lighting-illusions-ts-sdk 0.0.1939 → 0.0.1940
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 +30 -16
- package/README.md +19 -10
- package/dist/apis/TransactionsApi.d.ts +69 -0
- package/dist/apis/TransactionsApi.js +262 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +4 -2
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CartResource.d.ts +0 -6
- package/dist/models/CartResource.js +0 -4
- package/dist/models/IndexTransactionRequest.d.ts +127 -0
- package/dist/models/IndexTransactionRequest.js +91 -0
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +30 -0
- package/dist/models/PaymentMethod.js +56 -0
- package/dist/models/PaymentSource.d.ts +26 -0
- package/dist/models/PaymentSource.js +52 -0
- package/dist/models/PaymentStatus.d.ts +25 -0
- package/dist/models/PaymentStatus.js +51 -0
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -6
- package/dist/models/ProductChildCartLiteResource.js +0 -4
- package/dist/models/RefundTransactionRequest.d.ts +38 -0
- package/dist/models/RefundTransactionRequest.js +53 -0
- package/dist/models/StoreCartRequest.d.ts +0 -6
- package/dist/models/StoreCartRequest.js +0 -2
- package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
- package/dist/models/StoreCartRequestShippingAddress.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreTransactionRequest.d.ts +81 -0
- package/dist/models/StoreTransactionRequest.js +78 -0
- package/dist/models/TransactionListResource.d.ts +152 -0
- package/dist/models/TransactionListResource.js +109 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +152 -0
- package/dist/models/TransactionResource.js +109 -0
- package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionResourceArrayResponse.js +50 -0
- package/dist/models/TransactionType.d.ts +25 -0
- package/dist/models/TransactionType.js +51 -0
- package/dist/models/UpdateCartRequest.d.ts +0 -6
- package/dist/models/UpdateCartRequest.js +0 -2
- package/dist/models/UpdateOrderRequest.d.ts +3 -9
- package/dist/models/UpdateOrderRequest.js +3 -5
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
- package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
- package/dist/models/index.d.ts +14 -8
- package/dist/models/index.js +14 -8
- package/docs/AddressResource.md +2 -0
- package/docs/AdminOrderResource.md +0 -2
- package/docs/CartListResource.md +0 -2
- package/docs/CartResource.md +0 -2
- package/docs/IndexTransactionRequest.md +60 -0
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionResourceResponse.md} +7 -5
- package/docs/{CartCouponLiteResource.md → PaymentMethod.md} +4 -10
- package/docs/{CartCouponLiteResourceArrayResponse.md → PaymentSource.md} +4 -6
- package/docs/PaymentStatus.md +32 -0
- package/docs/ProductChildCartLiteResource.md +0 -2
- package/docs/RefundTransactionRequest.md +36 -0
- package/docs/StoreCartRequest.md +0 -2
- package/docs/StoreCartRequestShippingAddress.md +2 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreTransactionRequest.md +46 -0
- package/docs/TransactionListResource.md +74 -0
- package/docs/{FrontendOrderResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +74 -0
- package/docs/{FrontendCartResourceArrayResponse.md → TransactionResourceArrayResponse.md} +5 -5
- package/docs/TransactionType.md +32 -0
- package/docs/TransactionsApi.md +209 -0
- package/docs/UpdateCartRequest.md +0 -2
- package/docs/UpdateOrderRequest.md +1 -3
- package/docs/UpdateOrderRequestBillingAddress.md +2 -0
- package/docs/UpdateOrderRequestShippingAddress.md +50 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +193 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +11 -3
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +0 -9
- package/src/models/IndexTransactionRequest.ts +190 -0
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +58 -0
- package/src/models/PaymentSource.ts +54 -0
- package/src/models/PaymentStatus.ts +53 -0
- package/src/models/ProductChildCartLiteResource.ts +0 -9
- package/src/models/RefundTransactionRequest.ts +74 -0
- package/src/models/StoreCartRequest.ts +0 -8
- package/src/models/StoreCartRequestShippingAddress.ts +8 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreTransactionRequest.ts +131 -0
- package/src/models/TransactionListResource.ts +235 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +235 -0
- package/src/models/TransactionResourceArrayResponse.ts +73 -0
- package/src/models/TransactionType.ts +53 -0
- package/src/models/UpdateCartRequest.ts +0 -8
- package/src/models/UpdateOrderRequest.ts +10 -18
- package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
- package/src/models/index.ts +14 -8
- package/dist/models/CartCouponLiteResource.d.ts +0 -44
- package/dist/models/CartCouponLiteResource.js +0 -59
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResource.d.ts +0 -144
- package/dist/models/FrontendCartResource.js +0 -121
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/FrontendLineItemResource.d.ts +0 -63
- package/dist/models/FrontendLineItemResource.js +0 -70
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
- package/dist/models/FrontendOrderResource.d.ts +0 -168
- package/dist/models/FrontendOrderResource.js +0 -137
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendOrderResourceArrayResponse.js +0 -50
- package/docs/FrontendCartResource.md +0 -70
- package/docs/FrontendLineItemResource.md +0 -44
- package/docs/FrontendOrderResource.md +0 -78
- package/src/models/CartCouponLiteResource.ts +0 -84
- package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResource.ts +0 -254
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/FrontendLineItemResource.ts +0 -118
- package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
- package/src/models/FrontendOrderResource.ts +0 -290
- package/src/models/FrontendOrderResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedTransactionListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TransactionListResource>](TransactionListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedTransactionListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedTransactionListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedTransactionListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionResourceResponse.md}
RENAMED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaginatedTransactionResourceResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<TransactionResource>](TransactionResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
13
14
|
```typescript
|
|
14
|
-
import type {
|
|
15
|
+
import type { PaginatedTransactionResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
16
|
|
|
16
17
|
// TODO: Update the object below with actual values
|
|
17
18
|
const example = {
|
|
18
19
|
"data": null,
|
|
19
|
-
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedTransactionResourceResponse
|
|
20
22
|
|
|
21
23
|
console.log(example)
|
|
22
24
|
|
|
@@ -25,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
27
|
console.log(exampleJSON)
|
|
26
28
|
|
|
27
29
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedTransactionResourceResponse
|
|
29
31
|
console.log(exampleParsed)
|
|
30
32
|
```
|
|
31
33
|
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaymentMethod
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`code` | string
|
|
11
|
-
`name` | string
|
|
12
9
|
|
|
13
10
|
## Example
|
|
14
11
|
|
|
15
12
|
```typescript
|
|
16
|
-
import type {
|
|
13
|
+
import type { PaymentMethod } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
14
|
|
|
18
15
|
// TODO: Update the object below with actual values
|
|
19
16
|
const example = {
|
|
20
|
-
|
|
21
|
-
"code": null,
|
|
22
|
-
"name": null,
|
|
23
|
-
} satisfies CartCouponLiteResource
|
|
17
|
+
} satisfies PaymentMethod
|
|
24
18
|
|
|
25
19
|
console.log(example)
|
|
26
20
|
|
|
@@ -29,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
23
|
console.log(exampleJSON)
|
|
30
24
|
|
|
31
25
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaymentMethod
|
|
33
27
|
console.log(exampleParsed)
|
|
34
28
|
```
|
|
35
29
|
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaymentSource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
|
|
10
9
|
|
|
11
10
|
## Example
|
|
12
11
|
|
|
13
12
|
```typescript
|
|
14
|
-
import type {
|
|
13
|
+
import type { PaymentSource } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
14
|
|
|
16
15
|
// TODO: Update the object below with actual values
|
|
17
16
|
const example = {
|
|
18
|
-
|
|
19
|
-
} satisfies CartCouponLiteResourceArrayResponse
|
|
17
|
+
} satisfies PaymentSource
|
|
20
18
|
|
|
21
19
|
console.log(example)
|
|
22
20
|
|
|
@@ -25,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
23
|
console.log(exampleJSON)
|
|
26
24
|
|
|
27
25
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaymentSource
|
|
29
27
|
console.log(exampleParsed)
|
|
30
28
|
```
|
|
31
29
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# PaymentStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { PaymentStatus } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies PaymentStatus
|
|
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 PaymentStatus
|
|
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
|
+
|
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`model` | string
|
|
13
13
|
`modelNumber` | string
|
|
14
14
|
`name` | string
|
|
15
|
-
`slug` | string
|
|
16
15
|
`stock` | number
|
|
17
16
|
`salePrice` | number
|
|
18
17
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
@@ -31,7 +30,6 @@ const example = {
|
|
|
31
30
|
"model": null,
|
|
32
31
|
"modelNumber": null,
|
|
33
32
|
"name": null,
|
|
34
|
-
"slug": null,
|
|
35
33
|
"stock": null,
|
|
36
34
|
"salePrice": null,
|
|
37
35
|
"thumbnail": null,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# RefundTransactionRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`amount` | number
|
|
10
|
+
`description` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { RefundTransactionRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"amount": null,
|
|
20
|
+
"description": null,
|
|
21
|
+
} satisfies RefundTransactionRequest
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as RefundTransactionRequest
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/StoreCartRequest.md
CHANGED
|
@@ -18,7 +18,6 @@ Name | Type
|
|
|
18
18
|
`shippingSubtotal` | number
|
|
19
19
|
`overrideShipping` | boolean
|
|
20
20
|
`insuranceAmount` | number
|
|
21
|
-
`includeInsurance` | boolean
|
|
22
21
|
`overrideInsurance` | boolean
|
|
23
22
|
`useAsBillingAddress` | boolean
|
|
24
23
|
`shippingAddressId` | number
|
|
@@ -45,7 +44,6 @@ const example = {
|
|
|
45
44
|
"shippingSubtotal": null,
|
|
46
45
|
"overrideShipping": null,
|
|
47
46
|
"insuranceAmount": null,
|
|
48
|
-
"includeInsurance": null,
|
|
49
47
|
"overrideInsurance": null,
|
|
50
48
|
"useAsBillingAddress": null,
|
|
51
49
|
"shippingAddressId": null,
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`addresseeName` | string
|
|
10
10
|
`company` | string
|
|
11
|
+
`addressee` | string
|
|
11
12
|
`line1` | string
|
|
12
13
|
`line2` | string
|
|
13
14
|
`suburb` | string
|
|
@@ -24,6 +25,7 @@ import type { StoreCartRequestShippingAddress } from '@digital8/lighting-illusio
|
|
|
24
25
|
const example = {
|
|
25
26
|
"addresseeName": null,
|
|
26
27
|
"company": null,
|
|
28
|
+
"addressee": null,
|
|
27
29
|
"line1": null,
|
|
28
30
|
"line2": null,
|
|
29
31
|
"suburb": null,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreTransactionRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`cartId` | number
|
|
10
|
+
`orderId` | number
|
|
11
|
+
`amount` | number
|
|
12
|
+
`surcharge` | number
|
|
13
|
+
`paymentMethod` | string
|
|
14
|
+
`nonce` | string
|
|
15
|
+
`deviceData` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { StoreTransactionRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"cartId": null,
|
|
25
|
+
"orderId": null,
|
|
26
|
+
"amount": null,
|
|
27
|
+
"surcharge": null,
|
|
28
|
+
"paymentMethod": null,
|
|
29
|
+
"nonce": null,
|
|
30
|
+
"deviceData": null,
|
|
31
|
+
} satisfies StoreTransactionRequest
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreTransactionRequest
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`orderId` | number
|
|
11
|
+
`cartId` | number
|
|
12
|
+
`adminId` | number
|
|
13
|
+
`paymentSource` | string
|
|
14
|
+
`paymentMethod` | string
|
|
15
|
+
`type` | string
|
|
16
|
+
`status` | string
|
|
17
|
+
`amount` | number
|
|
18
|
+
`surcharge` | number
|
|
19
|
+
`totalAmount` | number
|
|
20
|
+
`refundedAmount` | number
|
|
21
|
+
`unrefundedAmount` | number
|
|
22
|
+
`reference` | string
|
|
23
|
+
`description` | string
|
|
24
|
+
`extendedData` | string
|
|
25
|
+
`riskScore` | string
|
|
26
|
+
`fraudDecision` | string
|
|
27
|
+
`refundedTransactionId` | number
|
|
28
|
+
`createdAt` | Date
|
|
29
|
+
`updatedAt` | Date
|
|
30
|
+
|
|
31
|
+
## Example
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import type { TransactionListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
35
|
+
|
|
36
|
+
// TODO: Update the object below with actual values
|
|
37
|
+
const example = {
|
|
38
|
+
"id": null,
|
|
39
|
+
"orderId": null,
|
|
40
|
+
"cartId": null,
|
|
41
|
+
"adminId": null,
|
|
42
|
+
"paymentSource": null,
|
|
43
|
+
"paymentMethod": null,
|
|
44
|
+
"type": null,
|
|
45
|
+
"status": null,
|
|
46
|
+
"amount": null,
|
|
47
|
+
"surcharge": null,
|
|
48
|
+
"totalAmount": null,
|
|
49
|
+
"refundedAmount": null,
|
|
50
|
+
"unrefundedAmount": null,
|
|
51
|
+
"reference": null,
|
|
52
|
+
"description": null,
|
|
53
|
+
"extendedData": null,
|
|
54
|
+
"riskScore": null,
|
|
55
|
+
"fraudDecision": null,
|
|
56
|
+
"refundedTransactionId": null,
|
|
57
|
+
"createdAt": null,
|
|
58
|
+
"updatedAt": null,
|
|
59
|
+
} satisfies TransactionListResource
|
|
60
|
+
|
|
61
|
+
console.log(example)
|
|
62
|
+
|
|
63
|
+
// Convert the instance to a JSON string
|
|
64
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
65
|
+
console.log(exampleJSON)
|
|
66
|
+
|
|
67
|
+
// Parse the JSON string back to an object
|
|
68
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionListResource
|
|
69
|
+
console.log(exampleParsed)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
73
|
+
|
|
74
|
+
|
package/docs/{FrontendOrderResourceArrayResponse.md → TransactionListResourceArrayResponse.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# TransactionListResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<TransactionListResource>](TransactionListResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { TransactionListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies TransactionListResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionListResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`orderId` | number
|
|
11
|
+
`cartId` | number
|
|
12
|
+
`adminId` | number
|
|
13
|
+
`paymentSource` | string
|
|
14
|
+
`paymentMethod` | string
|
|
15
|
+
`type` | string
|
|
16
|
+
`status` | string
|
|
17
|
+
`amount` | number
|
|
18
|
+
`surcharge` | number
|
|
19
|
+
`totalAmount` | number
|
|
20
|
+
`refundedAmount` | number
|
|
21
|
+
`unrefundedAmount` | number
|
|
22
|
+
`reference` | string
|
|
23
|
+
`description` | string
|
|
24
|
+
`extendedData` | string
|
|
25
|
+
`riskScore` | string
|
|
26
|
+
`fraudDecision` | string
|
|
27
|
+
`refundedTransactionId` | number
|
|
28
|
+
`createdAt` | Date
|
|
29
|
+
`updatedAt` | Date
|
|
30
|
+
|
|
31
|
+
## Example
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import type { TransactionResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
35
|
+
|
|
36
|
+
// TODO: Update the object below with actual values
|
|
37
|
+
const example = {
|
|
38
|
+
"id": null,
|
|
39
|
+
"orderId": null,
|
|
40
|
+
"cartId": null,
|
|
41
|
+
"adminId": null,
|
|
42
|
+
"paymentSource": null,
|
|
43
|
+
"paymentMethod": null,
|
|
44
|
+
"type": null,
|
|
45
|
+
"status": null,
|
|
46
|
+
"amount": null,
|
|
47
|
+
"surcharge": null,
|
|
48
|
+
"totalAmount": null,
|
|
49
|
+
"refundedAmount": null,
|
|
50
|
+
"unrefundedAmount": null,
|
|
51
|
+
"reference": null,
|
|
52
|
+
"description": null,
|
|
53
|
+
"extendedData": null,
|
|
54
|
+
"riskScore": null,
|
|
55
|
+
"fraudDecision": null,
|
|
56
|
+
"refundedTransactionId": null,
|
|
57
|
+
"createdAt": null,
|
|
58
|
+
"updatedAt": null,
|
|
59
|
+
} satisfies TransactionResource
|
|
60
|
+
|
|
61
|
+
console.log(example)
|
|
62
|
+
|
|
63
|
+
// Convert the instance to a JSON string
|
|
64
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
65
|
+
console.log(exampleJSON)
|
|
66
|
+
|
|
67
|
+
// Parse the JSON string back to an object
|
|
68
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionResource
|
|
69
|
+
console.log(exampleParsed)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
73
|
+
|
|
74
|
+
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# TransactionResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<TransactionResource>](TransactionResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { TransactionResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies TransactionResourceArrayResponse
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { TransactionType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies TransactionType
|
|
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 TransactionType
|
|
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
|
+
|