@digital8/lighting-illusions-ts-sdk 0.0.2030 → 0.0.2032
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 -0
- package/README.md +7 -2
- package/dist/apis/ProductApi.d.ts +16 -0
- package/dist/apis/ProductApi.js +59 -0
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +5 -1
- 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/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/SkuSearchProductChildRequest.d.ts +38 -0
- package/dist/models/SkuSearchProductChildRequest.js +55 -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/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/TransactionListResource.d.ts +116 -0
- package/dist/models/TransactionListResource.js +97 -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 +4 -0
- package/dist/models/index.js +4 -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/ProductApi.md +66 -0
- package/docs/SkuSearchProductChildRequest.md +36 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/TransactionListResource.md +62 -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/ProductApi.ts +49 -0
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressResource.ts +11 -2
- 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/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/SkuSearchProductChildRequest.ts +75 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/TransactionListResource.ts +187 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionLiteResource.ts +8 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfSkuSearchProductChildRequest = instanceOfSkuSearchProductChildRequest;
|
|
17
|
+
exports.SkuSearchProductChildRequestFromJSON = SkuSearchProductChildRequestFromJSON;
|
|
18
|
+
exports.SkuSearchProductChildRequestFromJSONTyped = SkuSearchProductChildRequestFromJSONTyped;
|
|
19
|
+
exports.SkuSearchProductChildRequestToJSON = SkuSearchProductChildRequestToJSON;
|
|
20
|
+
exports.SkuSearchProductChildRequestToJSONTyped = SkuSearchProductChildRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SkuSearchProductChildRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSkuSearchProductChildRequest(value) {
|
|
25
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function SkuSearchProductChildRequestFromJSON(json) {
|
|
32
|
+
return SkuSearchProductChildRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function SkuSearchProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'sku': json['sku'],
|
|
40
|
+
'siteId': json['site_id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SkuSearchProductChildRequestToJSON(json) {
|
|
44
|
+
return SkuSearchProductChildRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SkuSearchProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'sku': value['sku'],
|
|
53
|
+
'site_id': value['siteId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
63
61
|
'longitude': json['longitude'],
|
|
64
|
-
'tagLine': json['tagLine'],
|
|
62
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
65
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
66
64
|
'specialDates': json['specialDates'],
|
|
67
65
|
'suppliers': json['suppliers'],
|
|
@@ -36,8 +36,6 @@ 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
41
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -66,7 +64,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
64
|
'phone': json['phone'],
|
|
67
65
|
'longitude': json['longitude'],
|
|
68
66
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine'],
|
|
67
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
70
68
|
'email': json['email'],
|
|
71
69
|
'website': json['website'] == null ? undefined : json['website'],
|
|
72
70
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(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;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
surcharge: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof TransactionListResource
|
|
64
|
+
*/
|
|
65
|
+
refundedAmount: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof TransactionListResource
|
|
70
|
+
*/
|
|
71
|
+
unrefundedAmount: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof TransactionListResource
|
|
76
|
+
*/
|
|
77
|
+
reference: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof TransactionListResource
|
|
82
|
+
*/
|
|
83
|
+
description?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof TransactionListResource
|
|
88
|
+
*/
|
|
89
|
+
extendedData?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof TransactionListResource
|
|
94
|
+
*/
|
|
95
|
+
riskScore?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof TransactionListResource
|
|
100
|
+
*/
|
|
101
|
+
fraudDecision?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof TransactionListResource
|
|
106
|
+
*/
|
|
107
|
+
createdAt?: Date | null;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
111
|
+
*/
|
|
112
|
+
export declare function instanceOfTransactionListResource(value: object): value is TransactionListResource;
|
|
113
|
+
export declare function TransactionListResourceFromJSON(json: any): TransactionListResource;
|
|
114
|
+
export declare function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource;
|
|
115
|
+
export declare function TransactionListResourceToJSON(json: any): TransactionListResource;
|
|
116
|
+
export declare function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,97 @@
|
|
|
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 (!('surcharge' in value) || value['surcharge'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function TransactionListResourceFromJSON(json) {
|
|
48
|
+
return TransactionListResourceFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'paymentSource': json['paymentSource'],
|
|
57
|
+
'paymentMethod': json['paymentMethod'],
|
|
58
|
+
'type': json['type'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'totalAmount': json['totalAmount'],
|
|
61
|
+
'surcharge': json['surcharge'],
|
|
62
|
+
'refundedAmount': json['refundedAmount'],
|
|
63
|
+
'unrefundedAmount': json['unrefundedAmount'],
|
|
64
|
+
'reference': json['reference'],
|
|
65
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
66
|
+
'extendedData': json['extendedData'] == null ? undefined : json['extendedData'],
|
|
67
|
+
'riskScore': json['riskScore'] == null ? undefined : json['riskScore'],
|
|
68
|
+
'fraudDecision': json['fraudDecision'] == null ? undefined : json['fraudDecision'],
|
|
69
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function TransactionListResourceToJSON(json) {
|
|
73
|
+
return TransactionListResourceToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
76
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'id': value['id'],
|
|
82
|
+
'paymentSource': value['paymentSource'],
|
|
83
|
+
'paymentMethod': value['paymentMethod'],
|
|
84
|
+
'type': value['type'],
|
|
85
|
+
'status': value['status'],
|
|
86
|
+
'totalAmount': value['totalAmount'],
|
|
87
|
+
'surcharge': value['surcharge'],
|
|
88
|
+
'refundedAmount': value['refundedAmount'],
|
|
89
|
+
'unrefundedAmount': value['unrefundedAmount'],
|
|
90
|
+
'reference': value['reference'],
|
|
91
|
+
'description': value['description'],
|
|
92
|
+
'extendedData': value['extendedData'],
|
|
93
|
+
'riskScore': value['riskScore'],
|
|
94
|
+
'fraudDecision': value['fraudDecision'],
|
|
95
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -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';
|
|
@@ -528,6 +529,7 @@ export * from './SitePaymentConfigResource';
|
|
|
528
529
|
export * from './SitePaymentConfigResourceArrayResponse';
|
|
529
530
|
export * from './SiteResource';
|
|
530
531
|
export * from './SiteResourceArrayResponse';
|
|
532
|
+
export * from './SkuSearchProductChildRequest';
|
|
531
533
|
export * from './StoreFrontendResource';
|
|
532
534
|
export * from './StoreFrontendResourceArrayResponse';
|
|
533
535
|
export * from './StoreListResource';
|
|
@@ -562,6 +564,8 @@ export * from './TagResource';
|
|
|
562
564
|
export * from './TagResourceArrayResponse';
|
|
563
565
|
export * from './TagType';
|
|
564
566
|
export * from './Thumbnail';
|
|
567
|
+
export * from './TransactionListResource';
|
|
568
|
+
export * from './TransactionListResourceArrayResponse';
|
|
565
569
|
export * from './TransactionLiteResource';
|
|
566
570
|
export * from './TransactionLiteResourceArrayResponse';
|
|
567
571
|
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);
|
|
@@ -546,6 +547,7 @@ __exportStar(require("./SitePaymentConfigResource"), exports);
|
|
|
546
547
|
__exportStar(require("./SitePaymentConfigResourceArrayResponse"), exports);
|
|
547
548
|
__exportStar(require("./SiteResource"), exports);
|
|
548
549
|
__exportStar(require("./SiteResourceArrayResponse"), exports);
|
|
550
|
+
__exportStar(require("./SkuSearchProductChildRequest"), exports);
|
|
549
551
|
__exportStar(require("./StoreFrontendResource"), exports);
|
|
550
552
|
__exportStar(require("./StoreFrontendResourceArrayResponse"), exports);
|
|
551
553
|
__exportStar(require("./StoreListResource"), exports);
|
|
@@ -580,6 +582,8 @@ __exportStar(require("./TagResource"), exports);
|
|
|
580
582
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
581
583
|
__exportStar(require("./TagType"), exports);
|
|
582
584
|
__exportStar(require("./Thumbnail"), exports);
|
|
585
|
+
__exportStar(require("./TransactionListResource"), exports);
|
|
586
|
+
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
583
587
|
__exportStar(require("./TransactionLiteResource"), exports);
|
|
584
588
|
__exportStar(require("./TransactionLiteResourceArrayResponse"), exports);
|
|
585
589
|
__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
|
+
|