@digital8/lighting-illusions-ts-sdk 0.0.2031 → 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/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +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/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.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/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/AddressFrontendResource.ts +2 -3
- 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/StoreListResource.ts +3 -2
- 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,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { TransactionListResource } from './TransactionListResource';
|
|
24
|
+
import {
|
|
25
|
+
TransactionListResourceFromJSON,
|
|
26
|
+
TransactionListResourceFromJSONTyped,
|
|
27
|
+
TransactionListResourceToJSON,
|
|
28
|
+
TransactionListResourceToJSONTyped,
|
|
29
|
+
} from './TransactionListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedTransactionListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedTransactionListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<TransactionListResource>}
|
|
40
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<TransactionListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
61
|
+
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
76
|
+
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SkuSearchProductChildRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SkuSearchProductChildRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SkuSearchProductChildRequest
|
|
26
|
+
*/
|
|
27
|
+
sku: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SkuSearchProductChildRequest
|
|
32
|
+
*/
|
|
33
|
+
siteId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SkuSearchProductChildRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest {
|
|
40
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
41
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest {
|
|
46
|
+
return SkuSearchProductChildRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'sku': json['sku'],
|
|
56
|
+
'siteId': json['site_id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest {
|
|
61
|
+
return SkuSearchProductChildRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'sku': value['sku'],
|
|
72
|
+
'site_id': value['siteId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,6 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
115
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
116
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -133,7 +134,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'longitude': json['longitude'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
137
138
|
'email': json['email'],
|
|
138
139
|
'website': json['website'],
|
|
139
140
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TransactionListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransactionListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TransactionListResource
|
|
32
|
+
*/
|
|
33
|
+
paymentSource: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TransactionListResource
|
|
38
|
+
*/
|
|
39
|
+
paymentMethod: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TransactionListResource
|
|
44
|
+
*/
|
|
45
|
+
type: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TransactionListResource
|
|
50
|
+
*/
|
|
51
|
+
status: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof TransactionListResource
|
|
56
|
+
*/
|
|
57
|
+
totalAmount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof TransactionListResource
|
|
62
|
+
*/
|
|
63
|
+
surcharge: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof TransactionListResource
|
|
68
|
+
*/
|
|
69
|
+
refundedAmount: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof TransactionListResource
|
|
74
|
+
*/
|
|
75
|
+
unrefundedAmount: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof TransactionListResource
|
|
80
|
+
*/
|
|
81
|
+
reference: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof TransactionListResource
|
|
86
|
+
*/
|
|
87
|
+
description?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof TransactionListResource
|
|
92
|
+
*/
|
|
93
|
+
extendedData?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof TransactionListResource
|
|
98
|
+
*/
|
|
99
|
+
riskScore?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof TransactionListResource
|
|
104
|
+
*/
|
|
105
|
+
fraudDecision?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {Date}
|
|
109
|
+
* @memberof TransactionListResource
|
|
110
|
+
*/
|
|
111
|
+
createdAt?: Date | null;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the TransactionListResource interface.
|
|
116
|
+
*/
|
|
117
|
+
export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
|
|
118
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
119
|
+
if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
|
|
120
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
121
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
122
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
123
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
124
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
|
|
125
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
|
|
126
|
+
if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined) return false;
|
|
127
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function TransactionListResourceFromJSON(json: any): TransactionListResource {
|
|
132
|
+
return TransactionListResourceFromJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
|
|
136
|
+
if (json == null) {
|
|
137
|
+
return json;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'id': json['id'],
|
|
142
|
+
'paymentSource': json['paymentSource'],
|
|
143
|
+
'paymentMethod': json['paymentMethod'],
|
|
144
|
+
'type': json['type'],
|
|
145
|
+
'status': json['status'],
|
|
146
|
+
'totalAmount': json['totalAmount'],
|
|
147
|
+
'surcharge': json['surcharge'],
|
|
148
|
+
'refundedAmount': json['refundedAmount'],
|
|
149
|
+
'unrefundedAmount': json['unrefundedAmount'],
|
|
150
|
+
'reference': json['reference'],
|
|
151
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
152
|
+
'extendedData': json['extendedData'] == null ? undefined : json['extendedData'],
|
|
153
|
+
'riskScore': json['riskScore'] == null ? undefined : json['riskScore'],
|
|
154
|
+
'fraudDecision': json['fraudDecision'] == null ? undefined : json['fraudDecision'],
|
|
155
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function TransactionListResourceToJSON(json: any): TransactionListResource {
|
|
160
|
+
return TransactionListResourceToJSONTyped(json, false);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
164
|
+
if (value == null) {
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'id': value['id'],
|
|
171
|
+
'paymentSource': value['paymentSource'],
|
|
172
|
+
'paymentMethod': value['paymentMethod'],
|
|
173
|
+
'type': value['type'],
|
|
174
|
+
'status': value['status'],
|
|
175
|
+
'totalAmount': value['totalAmount'],
|
|
176
|
+
'surcharge': value['surcharge'],
|
|
177
|
+
'refundedAmount': value['refundedAmount'],
|
|
178
|
+
'unrefundedAmount': value['unrefundedAmount'],
|
|
179
|
+
'reference': value['reference'],
|
|
180
|
+
'description': value['description'],
|
|
181
|
+
'extendedData': value['extendedData'],
|
|
182
|
+
'riskScore': value['riskScore'],
|
|
183
|
+
'fraudDecision': value['fraudDecision'],
|
|
184
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TransactionListResource } from './TransactionListResource';
|
|
17
|
+
import {
|
|
18
|
+
TransactionListResourceFromJSON,
|
|
19
|
+
TransactionListResourceFromJSONTyped,
|
|
20
|
+
TransactionListResourceToJSON,
|
|
21
|
+
TransactionListResourceToJSONTyped,
|
|
22
|
+
} from './TransactionListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface TransactionListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface TransactionListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<TransactionListResource>}
|
|
33
|
+
* @memberof TransactionListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<TransactionListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse {
|
|
46
|
+
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse {
|
|
60
|
+
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface TransactionLiteResource
|
|
20
20
|
*/
|
|
21
21
|
export interface TransactionLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransactionLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -107,6 +113,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
107
113
|
}
|
|
108
114
|
return {
|
|
109
115
|
|
|
116
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
110
117
|
'paymentSource': json['paymentSource'],
|
|
111
118
|
'paymentMethod': json['paymentMethod'],
|
|
112
119
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
@@ -131,6 +138,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
131
138
|
|
|
132
139
|
return {
|
|
133
140
|
|
|
141
|
+
'id': value['id'],
|
|
134
142
|
'paymentSource': value['paymentSource'],
|
|
135
143
|
'paymentMethod': value['paymentMethod'],
|
|
136
144
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
package/src/models/index.ts
CHANGED
|
@@ -329,6 +329,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
329
329
|
export * from './PaginatedTagListResourceResponse';
|
|
330
330
|
export * from './PaginatedTagLiteResourceResponse';
|
|
331
331
|
export * from './PaginatedTagResourceResponse';
|
|
332
|
+
export * from './PaginatedTransactionListResourceResponse';
|
|
332
333
|
export * from './PaginatedTransactionResourceResponse';
|
|
333
334
|
export * from './PagingMetadata';
|
|
334
335
|
export * from './PaymentMethod';
|
|
@@ -530,6 +531,7 @@ export * from './SitePaymentConfigResource';
|
|
|
530
531
|
export * from './SitePaymentConfigResourceArrayResponse';
|
|
531
532
|
export * from './SiteResource';
|
|
532
533
|
export * from './SiteResourceArrayResponse';
|
|
534
|
+
export * from './SkuSearchProductChildRequest';
|
|
533
535
|
export * from './StoreFrontendResource';
|
|
534
536
|
export * from './StoreFrontendResourceArrayResponse';
|
|
535
537
|
export * from './StoreListResource';
|
|
@@ -564,6 +566,8 @@ export * from './TagResource';
|
|
|
564
566
|
export * from './TagResourceArrayResponse';
|
|
565
567
|
export * from './TagType';
|
|
566
568
|
export * from './Thumbnail';
|
|
569
|
+
export * from './TransactionListResource';
|
|
570
|
+
export * from './TransactionListResourceArrayResponse';
|
|
567
571
|
export * from './TransactionLiteResource';
|
|
568
572
|
export * from './TransactionLiteResourceArrayResponse';
|
|
569
573
|
export * from './TransactionResource';
|