@digital8/lighting-illusions-ts-sdk 0.0.2025 → 0.0.2026
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 +6 -0
- package/README.md +5 -2
- 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 +8 -2
- package/dist/models/AddressResource.js +4 -6
- package/dist/models/AdminNoteResource.d.ts +0 -12
- package/dist/models/AdminNoteResource.js +0 -8
- package/dist/models/AdminOrderResource.d.ts +3 -3
- package/dist/models/AdminOrderResource.js +3 -3
- package/dist/models/CartResource.d.ts +3 -3
- package/dist/models/CartResource.js +3 -3
- package/dist/models/CustomerListResource.d.ts +0 -7
- package/dist/models/CustomerListResource.js +0 -5
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/TransactionListResource.d.ts +80 -0
- package/dist/models/TransactionListResource.js +81 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionLiteResource.d.ts +6 -0
- package/dist/models/TransactionLiteResource.js +2 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/AddressResource.md +2 -0
- package/docs/AdminNoteResource.md +0 -4
- package/docs/AdminOrderResource.md +1 -1
- package/docs/CartResource.md +1 -1
- package/docs/CustomerListResource.md +0 -2
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/TransactionListResource.md +50 -0
- package/docs/TransactionListResourceArrayResponse.md +34 -0
- package/docs/TransactionLiteResource.md +2 -0
- package/docs/TransactionsApi.md +3 -3
- 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 -6
- package/src/models/AdminNoteResource.ts +0 -18
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/CartResource.ts +11 -11
- package/src/models/CustomerListResource.ts +0 -16
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/TransactionListResource.ts +137 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionLiteResource.ts +8 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionListResource
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionListResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TransactionListResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransactionListResource
|
|
28
|
+
*/
|
|
29
|
+
paymentSource: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TransactionListResource
|
|
34
|
+
*/
|
|
35
|
+
paymentMethod: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TransactionListResource
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TransactionListResource
|
|
46
|
+
*/
|
|
47
|
+
status: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof TransactionListResource
|
|
52
|
+
*/
|
|
53
|
+
totalAmount: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof TransactionListResource
|
|
58
|
+
*/
|
|
59
|
+
refundedAmount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TransactionListResource
|
|
64
|
+
*/
|
|
65
|
+
reference: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof TransactionListResource
|
|
70
|
+
*/
|
|
71
|
+
createdAt?: Date | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfTransactionListResource(value: object): value is TransactionListResource;
|
|
77
|
+
export declare function TransactionListResourceFromJSON(json: any): TransactionListResource;
|
|
78
|
+
export declare function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource;
|
|
79
|
+
export declare function TransactionListResourceToJSON(json: any): TransactionListResource;
|
|
80
|
+
export declare function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfTransactionListResource = instanceOfTransactionListResource;
|
|
17
|
+
exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
|
|
18
|
+
exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
|
|
19
|
+
exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
|
|
20
|
+
exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionListResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('paymentSource' in value) || value['paymentSource'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function TransactionListResourceFromJSON(json) {
|
|
44
|
+
return TransactionListResourceFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'paymentSource': json['paymentSource'],
|
|
53
|
+
'paymentMethod': json['paymentMethod'],
|
|
54
|
+
'type': json['type'],
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'totalAmount': json['totalAmount'],
|
|
57
|
+
'refundedAmount': json['refundedAmount'],
|
|
58
|
+
'reference': json['reference'],
|
|
59
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function TransactionListResourceToJSON(json) {
|
|
63
|
+
return TransactionListResourceToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'paymentSource': value['paymentSource'],
|
|
73
|
+
'paymentMethod': value['paymentMethod'],
|
|
74
|
+
'type': value['type'],
|
|
75
|
+
'status': value['status'],
|
|
76
|
+
'totalAmount': value['totalAmount'],
|
|
77
|
+
'refundedAmount': value['refundedAmount'],
|
|
78
|
+
'reference': value['reference'],
|
|
79
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TransactionListResource } from './TransactionListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TransactionListResource>}
|
|
22
|
+
* @memberof TransactionListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TransactionListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse;
|
|
30
|
+
export declare function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse;
|
|
31
|
+
export declare function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse;
|
|
32
|
+
export declare function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse;
|
|
33
|
+
export declare function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfTransactionListResourceArrayResponse = instanceOfTransactionListResourceArrayResponse;
|
|
17
|
+
exports.TransactionListResourceArrayResponseFromJSON = TransactionListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.TransactionListResourceArrayResponseFromJSONTyped = TransactionListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.TransactionListResourceArrayResponseToJSON = TransactionListResourceArrayResponseToJSON;
|
|
20
|
+
exports.TransactionListResourceArrayResponseToJSONTyped = TransactionListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var TransactionListResource_1 = require("./TransactionListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTransactionListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TransactionListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TransactionListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TransactionListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TransactionListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -50,6 +50,7 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
return json;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
53
54
|
'paymentSource': json['paymentSource'],
|
|
54
55
|
'paymentMethod': json['paymentMethod'],
|
|
55
56
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
@@ -71,6 +72,7 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
72
|
return value;
|
|
72
73
|
}
|
|
73
74
|
return {
|
|
75
|
+
'id': value['id'],
|
|
74
76
|
'paymentSource': value['paymentSource'],
|
|
75
77
|
'paymentMethod': value['paymentMethod'],
|
|
76
78
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -327,6 +327,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
327
327
|
export * from './PaginatedTagListResourceResponse';
|
|
328
328
|
export * from './PaginatedTagLiteResourceResponse';
|
|
329
329
|
export * from './PaginatedTagResourceResponse';
|
|
330
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
330
331
|
export * from './PaginatedTransactionResourceResponse';
|
|
331
332
|
export * from './PagingMetadata';
|
|
332
333
|
export * from './PaymentMethod';
|
|
@@ -562,6 +563,8 @@ export * from './TagResource';
|
|
|
562
563
|
export * from './TagResourceArrayResponse';
|
|
563
564
|
export * from './TagType';
|
|
564
565
|
export * from './Thumbnail';
|
|
566
|
+
export * from './TransactionListResource';
|
|
567
|
+
export * from './TransactionListResourceArrayResponse';
|
|
565
568
|
export * from './TransactionLiteResource';
|
|
566
569
|
export * from './TransactionLiteResourceArrayResponse';
|
|
567
570
|
export * from './TransactionResource';
|
package/dist/models/index.js
CHANGED
|
@@ -345,6 +345,7 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
345
345
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
346
346
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
347
347
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
348
|
+
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
348
349
|
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
349
350
|
__exportStar(require("./PagingMetadata"), exports);
|
|
350
351
|
__exportStar(require("./PaymentMethod"), exports);
|
|
@@ -580,6 +581,8 @@ __exportStar(require("./TagResource"), exports);
|
|
|
580
581
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
581
582
|
__exportStar(require("./TagType"), exports);
|
|
582
583
|
__exportStar(require("./Thumbnail"), exports);
|
|
584
|
+
__exportStar(require("./TransactionListResource"), exports);
|
|
585
|
+
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
583
586
|
__exportStar(require("./TransactionLiteResource"), exports);
|
|
584
587
|
__exportStar(require("./TransactionLiteResourceArrayResponse"), exports);
|
|
585
588
|
__exportStar(require("./TransactionResource"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
+
`type` | string
|
|
10
11
|
`sourceAddressId` | number
|
|
11
12
|
`addresseeName` | string
|
|
12
13
|
`company` | string
|
|
@@ -26,6 +27,7 @@ import type { AddressResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
26
27
|
// TODO: Update the object below with actual values
|
|
27
28
|
const example = {
|
|
28
29
|
"id": null,
|
|
30
|
+
"type": null,
|
|
29
31
|
"sourceAddressId": null,
|
|
30
32
|
"addresseeName": null,
|
|
31
33
|
"company": null,
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`orderId` | number
|
|
11
|
-
`adminId` | number
|
|
12
10
|
`note` | string
|
|
13
11
|
`createdAt` | Date
|
|
14
12
|
`updatedAt` | Date
|
|
@@ -22,8 +20,6 @@ import type { AdminNoteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
22
20
|
// TODO: Update the object below with actual values
|
|
23
21
|
const example = {
|
|
24
22
|
"id": null,
|
|
25
|
-
"orderId": null,
|
|
26
|
-
"adminId": null,
|
|
27
23
|
"note": null,
|
|
28
24
|
"createdAt": null,
|
|
29
25
|
"updatedAt": null,
|
|
@@ -40,7 +40,7 @@ Name | Type
|
|
|
40
40
|
`shippingEstimate` | number
|
|
41
41
|
`insuranceEstimate` | number
|
|
42
42
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
43
|
-
`customer` | [
|
|
43
|
+
`customer` | [CustomerResource](CustomerResource.md)
|
|
44
44
|
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
45
45
|
`status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
|
|
46
46
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
package/docs/CartResource.md
CHANGED
|
@@ -24,7 +24,7 @@ Name | Type
|
|
|
24
24
|
`useAsBillingAddress` | boolean
|
|
25
25
|
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
26
26
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
27
|
-
`customer` | [
|
|
27
|
+
`customer` | [CustomerResource](CustomerResource.md)
|
|
28
28
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
29
29
|
`coupons` | object
|
|
30
30
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
@@ -12,7 +12,6 @@ Name | Type
|
|
|
12
12
|
`email` | string
|
|
13
13
|
`phone` | string
|
|
14
14
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
15
|
-
`addresses` | [Array<LiAddressResource>](LiAddressResource.md)
|
|
16
15
|
|
|
17
16
|
## Example
|
|
18
17
|
|
|
@@ -27,7 +26,6 @@ const example = {
|
|
|
27
26
|
"email": null,
|
|
28
27
|
"phone": null,
|
|
29
28
|
"site": null,
|
|
30
|
-
"addresses": null,
|
|
31
29
|
} satisfies CustomerListResource
|
|
32
30
|
|
|
33
31
|
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
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`paymentSource` | string
|
|
11
|
+
`paymentMethod` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`status` | string
|
|
14
|
+
`totalAmount` | number
|
|
15
|
+
`refundedAmount` | number
|
|
16
|
+
`reference` | string
|
|
17
|
+
`createdAt` | Date
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { TransactionListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"paymentSource": null,
|
|
28
|
+
"paymentMethod": null,
|
|
29
|
+
"type": null,
|
|
30
|
+
"status": null,
|
|
31
|
+
"totalAmount": null,
|
|
32
|
+
"refundedAmount": null,
|
|
33
|
+
"reference": null,
|
|
34
|
+
"createdAt": null,
|
|
35
|
+
} satisfies TransactionListResource
|
|
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 TransactionListResource
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# TransactionListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TransactionListResource>](TransactionListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { TransactionListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies TransactionListResourceArrayResponse
|
|
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 TransactionListResourceArrayResponse
|
|
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
|
+
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`id` | number
|
|
9
10
|
`paymentSource` | string
|
|
10
11
|
`paymentMethod` | string
|
|
11
12
|
`paymentMethodThumbnail` | string
|
|
@@ -24,6 +25,7 @@ import type { TransactionLiteResource } from '@digital8/lighting-illusions-ts-sd
|
|
|
24
25
|
|
|
25
26
|
// TODO: Update the object below with actual values
|
|
26
27
|
const example = {
|
|
28
|
+
"id": null,
|
|
27
29
|
"paymentSource": null,
|
|
28
30
|
"paymentMethod": null,
|
|
29
31
|
"paymentMethodThumbnail": null,
|
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(searchTransactionsRequest)
|
|
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
|
|
package/package.json
CHANGED
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
CreateTransactionRequestToJSON,
|
|
20
20
|
} from '../models/CreateTransactionRequest';
|
|
21
21
|
import {
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from '../models/
|
|
22
|
+
type PaginatedTransactionListResourceResponse,
|
|
23
|
+
PaginatedTransactionListResourceResponseFromJSON,
|
|
24
|
+
PaginatedTransactionListResourceResponseToJSON,
|
|
25
|
+
} from '../models/PaginatedTransactionListResourceResponse';
|
|
26
26
|
import {
|
|
27
27
|
type RefundTransactionRequest,
|
|
28
28
|
RefundTransactionRequestFromJSON,
|
|
@@ -87,17 +87,17 @@ export class TransactionsApi extends runtime.BaseAPI {
|
|
|
87
87
|
/**
|
|
88
88
|
* Auto-generated: indexTransaction
|
|
89
89
|
*/
|
|
90
|
-
async indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
90
|
+
async indexTransactionRaw(requestParameters: IndexTransactionRequest, 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: IndexTransactionRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
100
|
+
async indexTransaction(requestParameters: IndexTransactionRequest = {}, 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'],
|