@digital8/lighting-illusions-ts-sdk 0.0.1955 → 0.0.1956
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 +8 -4
- package/README.md +6 -4
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +7 -1
- 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/OrderListResource.d.ts +0 -7
- package/dist/models/OrderListResource.js +0 -5
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -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/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- 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 +24 -0
- package/dist/models/TransactionResource.js +8 -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 +4 -2
- package/dist/models/index.js +4 -2
- 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/OrderListResource.md +0 -2
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/StoreCartRequest.md +0 -2
- package/docs/StoreCartRequestShippingAddress.md +2 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/{TransactionLiteResource.md → TransactionListResource.md} +30 -4
- package/docs/{TransactionLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +8 -0
- package/docs/TransactionsApi.md +3 -3
- 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 +7 -7
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +12 -2
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +0 -9
- package/src/models/OrderListResource.ts +0 -16
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/StoreCartRequest.ts +0 -8
- package/src/models/StoreCartRequestShippingAddress.ts +8 -0
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionListResource.ts +235 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +32 -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 +4 -2
- package/dist/models/TransactionLiteResource.d.ts +0 -74
- package/dist/models/TransactionLiteResource.js +0 -77
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
- package/src/models/TransactionLiteResource.ts +0 -128
- package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfUpdateOrderRequestShippingAddress = instanceOfUpdateOrderRequestShippingAddress;
|
|
17
|
+
exports.UpdateOrderRequestShippingAddressFromJSON = UpdateOrderRequestShippingAddressFromJSON;
|
|
18
|
+
exports.UpdateOrderRequestShippingAddressFromJSONTyped = UpdateOrderRequestShippingAddressFromJSONTyped;
|
|
19
|
+
exports.UpdateOrderRequestShippingAddressToJSON = UpdateOrderRequestShippingAddressToJSON;
|
|
20
|
+
exports.UpdateOrderRequestShippingAddressToJSONTyped = UpdateOrderRequestShippingAddressToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateOrderRequestShippingAddress(value) {
|
|
25
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateOrderRequestShippingAddressFromJSON(json) {
|
|
30
|
+
return UpdateOrderRequestShippingAddressFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateOrderRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'addresseeName': json['addressee_name'],
|
|
38
|
+
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
39
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
40
|
+
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
41
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
42
|
+
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
43
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
44
|
+
'postcode': json['postcode'] == null ? undefined : json['postcode'],
|
|
45
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function UpdateOrderRequestShippingAddressToJSON(json) {
|
|
49
|
+
return UpdateOrderRequestShippingAddressToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function UpdateOrderRequestShippingAddressToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'addressee_name': value['addresseeName'],
|
|
58
|
+
'addressee': value['addressee'],
|
|
59
|
+
'company': value['company'],
|
|
60
|
+
'line_1': value['line1'],
|
|
61
|
+
'line_2': value['line2'],
|
|
62
|
+
'suburb': value['suburb'],
|
|
63
|
+
'state': value['state'],
|
|
64
|
+
'postcode': value['postcode'],
|
|
65
|
+
'country': value['country'],
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -266,6 +266,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
266
266
|
export * from './PaginatedTagListResourceResponse';
|
|
267
267
|
export * from './PaginatedTagLiteResourceResponse';
|
|
268
268
|
export * from './PaginatedTagResourceResponse';
|
|
269
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
269
270
|
export * from './PaginatedTransactionResourceResponse';
|
|
270
271
|
export * from './PagingMetadata';
|
|
271
272
|
export * from './PaymentMethod';
|
|
@@ -459,8 +460,8 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
459
460
|
export * from './TagResource';
|
|
460
461
|
export * from './TagResourceArrayResponse';
|
|
461
462
|
export * from './TagType';
|
|
462
|
-
export * from './
|
|
463
|
-
export * from './
|
|
463
|
+
export * from './TransactionListResource';
|
|
464
|
+
export * from './TransactionListResourceArrayResponse';
|
|
464
465
|
export * from './TransactionResource';
|
|
465
466
|
export * from './TransactionResourceArrayResponse';
|
|
466
467
|
export * from './TransactionType';
|
|
@@ -482,6 +483,7 @@ export * from './UpdateMenuRequestMenuItemOrderInner';
|
|
|
482
483
|
export * from './UpdateModelAttributeRequest';
|
|
483
484
|
export * from './UpdateOrderRequest';
|
|
484
485
|
export * from './UpdateOrderRequestBillingAddress';
|
|
486
|
+
export * from './UpdateOrderRequestShippingAddress';
|
|
485
487
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
486
488
|
export * from './UpdateOverlayTemplateRequest';
|
|
487
489
|
export * from './UpdateProductCategoryRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -284,6 +284,7 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
284
284
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
285
285
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
286
286
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
287
|
+
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
287
288
|
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
288
289
|
__exportStar(require("./PagingMetadata"), exports);
|
|
289
290
|
__exportStar(require("./PaymentMethod"), exports);
|
|
@@ -477,8 +478,8 @@ __exportStar(require("./TagLiteResourceArrayResponse"), exports);
|
|
|
477
478
|
__exportStar(require("./TagResource"), exports);
|
|
478
479
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
479
480
|
__exportStar(require("./TagType"), exports);
|
|
480
|
-
__exportStar(require("./
|
|
481
|
-
__exportStar(require("./
|
|
481
|
+
__exportStar(require("./TransactionListResource"), exports);
|
|
482
|
+
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
482
483
|
__exportStar(require("./TransactionResource"), exports);
|
|
483
484
|
__exportStar(require("./TransactionResourceArrayResponse"), exports);
|
|
484
485
|
__exportStar(require("./TransactionType"), exports);
|
|
@@ -500,6 +501,7 @@ __exportStar(require("./UpdateMenuRequestMenuItemOrderInner"), exports);
|
|
|
500
501
|
__exportStar(require("./UpdateModelAttributeRequest"), exports);
|
|
501
502
|
__exportStar(require("./UpdateOrderRequest"), exports);
|
|
502
503
|
__exportStar(require("./UpdateOrderRequestBillingAddress"), exports);
|
|
504
|
+
__exportStar(require("./UpdateOrderRequestShippingAddress"), exports);
|
|
503
505
|
__exportStar(require("./UpdateOverlayTemplateAssetRequest"), exports);
|
|
504
506
|
__exportStar(require("./UpdateOverlayTemplateRequest"), exports);
|
|
505
507
|
__exportStar(require("./UpdateProductCategoryRequest"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`sourceAddressId` | number
|
|
11
11
|
`addresseeName` | string
|
|
12
12
|
`company` | string
|
|
13
|
+
`addressee` | string
|
|
13
14
|
`line1` | string
|
|
14
15
|
`line2` | string
|
|
15
16
|
`postcode` | string
|
|
@@ -29,6 +30,7 @@ const example = {
|
|
|
29
30
|
"sourceAddressId": null,
|
|
30
31
|
"addresseeName": null,
|
|
31
32
|
"company": null,
|
|
33
|
+
"addressee": null,
|
|
32
34
|
"line1": null,
|
|
33
35
|
"line2": null,
|
|
34
36
|
"postcode": null,
|
|
@@ -17,7 +17,6 @@ Name | Type
|
|
|
17
17
|
`shippingSubtotal` | number
|
|
18
18
|
`overrideShipping` | boolean
|
|
19
19
|
`insuranceAmount` | number
|
|
20
|
-
`includeInsurance` | boolean
|
|
21
20
|
`overrideInsurance` | boolean
|
|
22
21
|
`useAsBillingAddress` | boolean
|
|
23
22
|
`netsuiteId` | string
|
|
@@ -66,7 +65,6 @@ const example = {
|
|
|
66
65
|
"shippingSubtotal": null,
|
|
67
66
|
"overrideShipping": null,
|
|
68
67
|
"insuranceAmount": null,
|
|
69
|
-
"includeInsurance": null,
|
|
70
68
|
"overrideInsurance": null,
|
|
71
69
|
"useAsBillingAddress": null,
|
|
72
70
|
"netsuiteId": null,
|
package/docs/CartListResource.md
CHANGED
|
@@ -13,7 +13,6 @@ Name | Type
|
|
|
13
13
|
`shippingSubtotal` | number
|
|
14
14
|
`overrideShipping` | boolean
|
|
15
15
|
`insuranceAmount` | number
|
|
16
|
-
`includeInsurance` | boolean
|
|
17
16
|
`overrideInsurance` | boolean
|
|
18
17
|
`useAsBillingAddress` | boolean
|
|
19
18
|
`expiryDate` | Date
|
|
@@ -39,7 +38,6 @@ const example = {
|
|
|
39
38
|
"shippingSubtotal": null,
|
|
40
39
|
"overrideShipping": null,
|
|
41
40
|
"insuranceAmount": null,
|
|
42
|
-
"includeInsurance": null,
|
|
43
41
|
"overrideInsurance": null,
|
|
44
42
|
"useAsBillingAddress": null,
|
|
45
43
|
"expiryDate": null,
|
package/docs/CartResource.md
CHANGED
|
@@ -19,7 +19,6 @@ Name | Type
|
|
|
19
19
|
`shippingSubtotal` | number
|
|
20
20
|
`overrideShipping` | boolean
|
|
21
21
|
`insuranceSubtotal` | string
|
|
22
|
-
`includeInsurance` | boolean
|
|
23
22
|
`overrideInsurance` | boolean
|
|
24
23
|
`useAsBillingAddress` | boolean
|
|
25
24
|
`admin` | object
|
|
@@ -61,7 +60,6 @@ const example = {
|
|
|
61
60
|
"shippingSubtotal": null,
|
|
62
61
|
"overrideShipping": null,
|
|
63
62
|
"insuranceSubtotal": null,
|
|
64
|
-
"includeInsurance": null,
|
|
65
63
|
"overrideInsurance": null,
|
|
66
64
|
"useAsBillingAddress": null,
|
|
67
65
|
"admin": null,
|
|
@@ -21,7 +21,6 @@ Name | Type
|
|
|
21
21
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
22
22
|
`status` | Array<number>
|
|
23
23
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
24
|
-
`transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
25
24
|
|
|
26
25
|
## Example
|
|
27
26
|
|
|
@@ -45,7 +44,6 @@ const example = {
|
|
|
45
44
|
"customer": null,
|
|
46
45
|
"status": null,
|
|
47
46
|
"lineItems": null,
|
|
48
|
-
"transactions": null,
|
|
49
47
|
} satisfies OrderListResource
|
|
50
48
|
|
|
51
49
|
console.log(example)
|
|
@@ -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/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,
|
|
@@ -1,36 +1,62 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# TransactionListResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`orderId` | number
|
|
11
|
+
`cartId` | number
|
|
12
|
+
`adminId` | number
|
|
13
|
+
`paymentSource` | string
|
|
9
14
|
`paymentMethod` | string
|
|
10
15
|
`type` | string
|
|
11
16
|
`status` | string
|
|
12
17
|
`amount` | number
|
|
13
18
|
`surcharge` | number
|
|
14
19
|
`totalAmount` | number
|
|
20
|
+
`refundedAmount` | number
|
|
21
|
+
`unrefundedAmount` | number
|
|
15
22
|
`reference` | string
|
|
23
|
+
`description` | string
|
|
24
|
+
`extendedData` | string
|
|
25
|
+
`riskScore` | string
|
|
26
|
+
`fraudDecision` | string
|
|
27
|
+
`refundedTransactionId` | number
|
|
16
28
|
`createdAt` | Date
|
|
29
|
+
`updatedAt` | Date
|
|
17
30
|
|
|
18
31
|
## Example
|
|
19
32
|
|
|
20
33
|
```typescript
|
|
21
|
-
import type {
|
|
34
|
+
import type { TransactionListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
35
|
|
|
23
36
|
// TODO: Update the object below with actual values
|
|
24
37
|
const example = {
|
|
38
|
+
"id": null,
|
|
39
|
+
"orderId": null,
|
|
40
|
+
"cartId": null,
|
|
41
|
+
"adminId": null,
|
|
42
|
+
"paymentSource": null,
|
|
25
43
|
"paymentMethod": null,
|
|
26
44
|
"type": null,
|
|
27
45
|
"status": null,
|
|
28
46
|
"amount": null,
|
|
29
47
|
"surcharge": null,
|
|
30
48
|
"totalAmount": null,
|
|
49
|
+
"refundedAmount": null,
|
|
50
|
+
"unrefundedAmount": null,
|
|
31
51
|
"reference": null,
|
|
52
|
+
"description": null,
|
|
53
|
+
"extendedData": null,
|
|
54
|
+
"riskScore": null,
|
|
55
|
+
"fraudDecision": null,
|
|
56
|
+
"refundedTransactionId": null,
|
|
32
57
|
"createdAt": null,
|
|
33
|
-
|
|
58
|
+
"updatedAt": null,
|
|
59
|
+
} satisfies TransactionListResource
|
|
34
60
|
|
|
35
61
|
console.log(example)
|
|
36
62
|
|
|
@@ -39,7 +65,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
39
65
|
console.log(exampleJSON)
|
|
40
66
|
|
|
41
67
|
// Parse the JSON string back to an object
|
|
42
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
68
|
+
const exampleParsed = JSON.parse(exampleJSON) as TransactionListResource
|
|
43
69
|
console.log(exampleParsed)
|
|
44
70
|
```
|
|
45
71
|
|
package/docs/{TransactionLiteResourceArrayResponse.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
|
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
+
`orderId` | number
|
|
11
|
+
`cartId` | number
|
|
12
|
+
`adminId` | number
|
|
10
13
|
`paymentSource` | string
|
|
11
14
|
`paymentMethod` | string
|
|
12
15
|
`type` | string
|
|
@@ -23,6 +26,7 @@ Name | Type
|
|
|
23
26
|
`fraudDecision` | string
|
|
24
27
|
`refundedTransactionId` | number
|
|
25
28
|
`createdAt` | Date
|
|
29
|
+
`updatedAt` | Date
|
|
26
30
|
|
|
27
31
|
## Example
|
|
28
32
|
|
|
@@ -32,6 +36,9 @@ import type { TransactionResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
32
36
|
// TODO: Update the object below with actual values
|
|
33
37
|
const example = {
|
|
34
38
|
"id": null,
|
|
39
|
+
"orderId": null,
|
|
40
|
+
"cartId": null,
|
|
41
|
+
"adminId": null,
|
|
35
42
|
"paymentSource": null,
|
|
36
43
|
"paymentMethod": null,
|
|
37
44
|
"type": null,
|
|
@@ -48,6 +55,7 @@ const example = {
|
|
|
48
55
|
"fraudDecision": null,
|
|
49
56
|
"refundedTransactionId": null,
|
|
50
57
|
"createdAt": null,
|
|
58
|
+
"updatedAt": null,
|
|
51
59
|
} satisfies TransactionResource
|
|
52
60
|
|
|
53
61
|
console.log(example)
|
package/docs/TransactionsApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
12
12
|
|
|
13
13
|
## indexTransaction
|
|
14
14
|
|
|
15
|
-
>
|
|
15
|
+
> PaginatedTransactionListResourceResponse indexTransaction(indexTransactionRequest)
|
|
16
16
|
|
|
17
17
|
Auto-generated: indexTransaction
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ example().catch(console.error);
|
|
|
55
55
|
|
|
56
56
|
### Return type
|
|
57
57
|
|
|
58
|
-
[**
|
|
58
|
+
[**PaginatedTransactionListResourceResponse**](PaginatedTransactionListResourceResponse.md)
|
|
59
59
|
|
|
60
60
|
### Authorization
|
|
61
61
|
|
|
@@ -70,7 +70,7 @@ No authorization required
|
|
|
70
70
|
### HTTP response details
|
|
71
71
|
| Status code | Description | Response headers |
|
|
72
72
|
|-------------|-------------|------------------|
|
|
73
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
73
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TransactionListResource[]>> | - |
|
|
74
74
|
|
|
75
75
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
76
|
|
|
@@ -14,7 +14,6 @@ Name | Type
|
|
|
14
14
|
`shippingSubtotal` | number
|
|
15
15
|
`overrideShipping` | boolean
|
|
16
16
|
`insuranceAmount` | number
|
|
17
|
-
`includeInsurance` | boolean
|
|
18
17
|
`overrideInsurance` | boolean
|
|
19
18
|
`useAsBillingAddress` | boolean
|
|
20
19
|
`shippingAddressId` | number
|
|
@@ -37,7 +36,6 @@ const example = {
|
|
|
37
36
|
"shippingSubtotal": null,
|
|
38
37
|
"overrideShipping": null,
|
|
39
38
|
"insuranceAmount": null,
|
|
40
|
-
"includeInsurance": null,
|
|
41
39
|
"overrideInsurance": null,
|
|
42
40
|
"useAsBillingAddress": null,
|
|
43
41
|
"shippingAddressId": null,
|
|
@@ -13,9 +13,8 @@ Name | Type
|
|
|
13
13
|
`shippingSubtotal` | number
|
|
14
14
|
`overrideShipping` | boolean
|
|
15
15
|
`insuranceAmount` | number
|
|
16
|
-
`includeInsurance` | boolean
|
|
17
16
|
`overrideInsurance` | boolean
|
|
18
|
-
`shippingAddress` | [
|
|
17
|
+
`shippingAddress` | [UpdateOrderRequestShippingAddress](UpdateOrderRequestShippingAddress.md)
|
|
19
18
|
`billingAddress` | [UpdateOrderRequestBillingAddress](UpdateOrderRequestBillingAddress.md)
|
|
20
19
|
|
|
21
20
|
## Example
|
|
@@ -32,7 +31,6 @@ const example = {
|
|
|
32
31
|
"shippingSubtotal": null,
|
|
33
32
|
"overrideShipping": null,
|
|
34
33
|
"insuranceAmount": null,
|
|
35
|
-
"includeInsurance": null,
|
|
36
34
|
"overrideInsurance": null,
|
|
37
35
|
"shippingAddress": null,
|
|
38
36
|
"billingAddress": null,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`addresseeName` | string
|
|
10
|
+
`addressee` | string
|
|
10
11
|
`company` | string
|
|
11
12
|
`line1` | string
|
|
12
13
|
`line2` | string
|
|
@@ -23,6 +24,7 @@ import type { UpdateOrderRequestBillingAddress } from '@digital8/lighting-illusi
|
|
|
23
24
|
// TODO: Update the object below with actual values
|
|
24
25
|
const example = {
|
|
25
26
|
"addresseeName": null,
|
|
27
|
+
"addressee": null,
|
|
26
28
|
"company": null,
|
|
27
29
|
"line1": null,
|
|
28
30
|
"line2": null,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateOrderRequestShippingAddress
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`addresseeName` | string
|
|
10
|
+
`addressee` | string
|
|
11
|
+
`company` | string
|
|
12
|
+
`line1` | string
|
|
13
|
+
`line2` | string
|
|
14
|
+
`suburb` | string
|
|
15
|
+
`state` | string
|
|
16
|
+
`postcode` | string
|
|
17
|
+
`country` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { UpdateOrderRequestShippingAddress } from '@digital8/lighting-illusions-ts-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"addresseeName": null,
|
|
27
|
+
"addressee": null,
|
|
28
|
+
"company": null,
|
|
29
|
+
"line1": null,
|
|
30
|
+
"line2": null,
|
|
31
|
+
"suburb": null,
|
|
32
|
+
"state": null,
|
|
33
|
+
"postcode": null,
|
|
34
|
+
"country": null,
|
|
35
|
+
} satisfies UpdateOrderRequestShippingAddress
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateOrderRequestShippingAddress
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
package/package.json
CHANGED
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
IndexTransactionRequestToJSON,
|
|
25
25
|
} from '../models/IndexTransactionRequest';
|
|
26
26
|
import {
|
|
27
|
-
type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from '../models/
|
|
27
|
+
type PaginatedTransactionListResourceResponse,
|
|
28
|
+
PaginatedTransactionListResourceResponseFromJSON,
|
|
29
|
+
PaginatedTransactionListResourceResponseToJSON,
|
|
30
|
+
} from '../models/PaginatedTransactionListResourceResponse';
|
|
31
31
|
import {
|
|
32
32
|
type RefundTransactionRequest,
|
|
33
33
|
RefundTransactionRequestFromJSON,
|
|
@@ -87,17 +87,17 @@ export class TransactionsApi extends runtime.BaseAPI {
|
|
|
87
87
|
/**
|
|
88
88
|
* Auto-generated: indexTransaction
|
|
89
89
|
*/
|
|
90
|
-
async indexTransactionRaw(requestParameters: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
90
|
+
async indexTransactionRaw(requestParameters: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionListResourceResponse>> {
|
|
91
91
|
const requestOptions = await this.indexTransactionRequestOpts(requestParameters);
|
|
92
92
|
const response = await this.request(requestOptions, initOverrides);
|
|
93
93
|
|
|
94
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTransactionListResourceResponseFromJSON(jsonValue));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Auto-generated: indexTransaction
|
|
99
99
|
*/
|
|
100
|
-
async indexTransaction(requestParameters: IndexTransactionOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
100
|
+
async indexTransaction(requestParameters: IndexTransactionOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionListResourceResponse> {
|
|
101
101
|
const response = await this.indexTransactionRaw(requestParameters, initOverrides);
|
|
102
102
|
return await response.value();
|
|
103
103
|
}
|
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,7 +73,6 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
77
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
78
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -93,7 +92,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
92
|
}
|
|
94
93
|
return {
|
|
95
94
|
|
|
96
|
-
'company': json['company'],
|
|
95
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
97
96
|
'line1': json['line1'],
|
|
98
97
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
99
98
|
'postcode': json['postcode'],
|