@digital8/lighting-illusions-ts-sdk 0.0.2024 → 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 -14
- package/README.md +5 -9
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- 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/ProductChildLineItemLiteResource.d.ts +0 -18
- package/dist/models/ProductChildLineItemLiteResource.js +0 -12
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- 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 -7
- package/dist/models/index.js +3 -7
- 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/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionListResourceResponse.md} +7 -5
- package/docs/ProductChildLineItemLiteResource.md +0 -6
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/TransactionListResource.md +50 -0
- package/docs/{CartCouponLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
- 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/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/ProductChildLineItemLiteResource.ts +0 -27
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +4 -6
- 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 -7
- package/dist/models/CartCouponLiteResource.d.ts +0 -56
- package/dist/models/CartCouponLiteResource.js +0 -67
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResource.d.ts +0 -138
- package/dist/models/FrontendCartResource.js +0 -119
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +0 -56
- package/dist/models/FrontendCartResourceCouponsInner.js +0 -57
- package/dist/models/FrontendLineItemResource.d.ts +0 -81
- package/dist/models/FrontendLineItemResource.js +0 -82
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
- package/docs/CartCouponLiteResource.md +0 -42
- package/docs/FrontendCartResource.md +0 -68
- package/docs/FrontendCartResourceArrayResponse.md +0 -34
- package/docs/FrontendCartResourceCouponsInner.md +0 -42
- package/docs/FrontendLineItemResource.md +0 -50
- package/src/models/CartCouponLiteResource.ts +0 -102
- package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResource.ts +0 -246
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResourceCouponsInner.ts +0 -97
- package/src/models/FrontendLineItemResource.ts +0 -145
- package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
|
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'siteId': json['siteId'],
|
|
57
55
|
'name': json['name'],
|
|
58
56
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
58
|
'phone': json['phone'],
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,7 +72,7 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
75
|
+
website?: string | null;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
@@ -36,12 +36,8 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
41
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
42
|
return false;
|
|
47
43
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
64
|
'phone': json['phone'],
|
|
69
65
|
'longitude': json['longitude'],
|
|
70
66
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
67
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
68
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
69
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
74
70
|
'netsuiteId': json['netsuiteId'],
|
|
75
71
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
72
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -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
|
@@ -59,8 +59,6 @@ export * from './BlogFrontendResource';
|
|
|
59
59
|
export * from './BlogFrontendResourceArrayResponse';
|
|
60
60
|
export * from './BlogResource';
|
|
61
61
|
export * from './BlogResourceArrayResponse';
|
|
62
|
-
export * from './CartCouponLiteResource';
|
|
63
|
-
export * from './CartCouponLiteResourceArrayResponse';
|
|
64
62
|
export * from './CartCouponResource';
|
|
65
63
|
export * from './CartCouponResourceArrayResponse';
|
|
66
64
|
export * from './CartListResource';
|
|
@@ -167,15 +165,10 @@ export * from './ExternalApiLogResource';
|
|
|
167
165
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
168
166
|
export * from './ExternalApiProvider';
|
|
169
167
|
export * from './ExternalApiSyncStatus';
|
|
170
|
-
export * from './FrontendCartResource';
|
|
171
|
-
export * from './FrontendCartResourceArrayResponse';
|
|
172
|
-
export * from './FrontendCartResourceCouponsInner';
|
|
173
168
|
export * from './FrontendComponentLiteResource';
|
|
174
169
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
175
170
|
export * from './FrontendComponentResource';
|
|
176
171
|
export * from './FrontendComponentResourceArrayResponse';
|
|
177
|
-
export * from './FrontendLineItemResource';
|
|
178
|
-
export * from './FrontendLineItemResourceArrayResponse';
|
|
179
172
|
export * from './GenericResponse';
|
|
180
173
|
export * from './GetUniqueEndpointsRequest';
|
|
181
174
|
export * from './GlobalSearchCategoryResource';
|
|
@@ -334,6 +327,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
334
327
|
export * from './PaginatedTagListResourceResponse';
|
|
335
328
|
export * from './PaginatedTagLiteResourceResponse';
|
|
336
329
|
export * from './PaginatedTagResourceResponse';
|
|
330
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
337
331
|
export * from './PaginatedTransactionResourceResponse';
|
|
338
332
|
export * from './PagingMetadata';
|
|
339
333
|
export * from './PaymentMethod';
|
|
@@ -569,6 +563,8 @@ export * from './TagResource';
|
|
|
569
563
|
export * from './TagResourceArrayResponse';
|
|
570
564
|
export * from './TagType';
|
|
571
565
|
export * from './Thumbnail';
|
|
566
|
+
export * from './TransactionListResource';
|
|
567
|
+
export * from './TransactionListResourceArrayResponse';
|
|
572
568
|
export * from './TransactionLiteResource';
|
|
573
569
|
export * from './TransactionLiteResourceArrayResponse';
|
|
574
570
|
export * from './TransactionResource';
|
package/dist/models/index.js
CHANGED
|
@@ -77,8 +77,6 @@ __exportStar(require("./BlogFrontendResource"), exports);
|
|
|
77
77
|
__exportStar(require("./BlogFrontendResourceArrayResponse"), exports);
|
|
78
78
|
__exportStar(require("./BlogResource"), exports);
|
|
79
79
|
__exportStar(require("./BlogResourceArrayResponse"), exports);
|
|
80
|
-
__exportStar(require("./CartCouponLiteResource"), exports);
|
|
81
|
-
__exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
|
|
82
80
|
__exportStar(require("./CartCouponResource"), exports);
|
|
83
81
|
__exportStar(require("./CartCouponResourceArrayResponse"), exports);
|
|
84
82
|
__exportStar(require("./CartListResource"), exports);
|
|
@@ -185,15 +183,10 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
185
183
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
186
184
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
187
185
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
188
|
-
__exportStar(require("./FrontendCartResource"), exports);
|
|
189
|
-
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
190
|
-
__exportStar(require("./FrontendCartResourceCouponsInner"), exports);
|
|
191
186
|
__exportStar(require("./FrontendComponentLiteResource"), exports);
|
|
192
187
|
__exportStar(require("./FrontendComponentLiteResourceArrayResponse"), exports);
|
|
193
188
|
__exportStar(require("./FrontendComponentResource"), exports);
|
|
194
189
|
__exportStar(require("./FrontendComponentResourceArrayResponse"), exports);
|
|
195
|
-
__exportStar(require("./FrontendLineItemResource"), exports);
|
|
196
|
-
__exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
|
|
197
190
|
__exportStar(require("./GenericResponse"), exports);
|
|
198
191
|
__exportStar(require("./GetUniqueEndpointsRequest"), exports);
|
|
199
192
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
@@ -352,6 +345,7 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
352
345
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
353
346
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
354
347
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
348
|
+
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
355
349
|
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
356
350
|
__exportStar(require("./PagingMetadata"), exports);
|
|
357
351
|
__exportStar(require("./PaymentMethod"), exports);
|
|
@@ -587,6 +581,8 @@ __exportStar(require("./TagResource"), exports);
|
|
|
587
581
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
588
582
|
__exportStar(require("./TagType"), exports);
|
|
589
583
|
__exportStar(require("./Thumbnail"), exports);
|
|
584
|
+
__exportStar(require("./TransactionListResource"), exports);
|
|
585
|
+
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
590
586
|
__exportStar(require("./TransactionLiteResource"), exports);
|
|
591
587
|
__exportStar(require("./TransactionLiteResourceArrayResponse"), exports);
|
|
592
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)
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PaginatedTransactionListResourceResponse
|
|
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
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
13
14
|
```typescript
|
|
14
|
-
import type {
|
|
15
|
+
import type { PaginatedTransactionListResourceResponse } 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 PaginatedTransactionListResourceResponse
|
|
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 PaginatedTransactionListResourceResponse
|
|
29
31
|
console.log(exampleParsed)
|
|
30
32
|
```
|
|
31
33
|
|
|
@@ -12,9 +12,6 @@ Name | Type
|
|
|
12
12
|
`model` | string
|
|
13
13
|
`modelNumber` | string
|
|
14
14
|
`name` | string
|
|
15
|
-
`parentName` | string
|
|
16
|
-
`variantName` | string
|
|
17
|
-
`slug` | string
|
|
18
15
|
`stock` | number
|
|
19
16
|
`salePrice` | number
|
|
20
17
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
@@ -33,9 +30,6 @@ const example = {
|
|
|
33
30
|
"model": null,
|
|
34
31
|
"modelNumber": null,
|
|
35
32
|
"name": null,
|
|
36
|
-
"parentName": null,
|
|
37
|
-
"variantName": null,
|
|
38
|
-
"slug": null,
|
|
39
33
|
"stock": null,
|
|
40
34
|
"salePrice": null,
|
|
41
35
|
"thumbnail": null,
|
|
@@ -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
|
+
|