@digital8/lighting-illusions-ts-sdk 0.0.2735 → 0.0.2736
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 +2 -2
- package/dist/apis/StoreCreditsApi.d.ts +29 -0
- package/dist/apis/StoreCreditsApi.js +125 -0
- package/dist/apis/TransactionsApi.d.ts +12 -1
- package/dist/apis/TransactionsApi.js +46 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AdminOrderResource.d.ts +12 -0
- package/dist/models/AdminOrderResource.js +8 -0
- package/dist/models/CreateTransactionRequest.d.ts +1 -0
- package/dist/models/CreateTransactionRequest.js +2 -1
- package/dist/models/FrontendCartResource.d.ts +25 -0
- package/dist/models/FrontendCartResource.js +17 -0
- package/dist/models/FrontendCartResourceStoreCreditsInner.d.ts +44 -0
- package/dist/models/FrontendCartResourceStoreCreditsInner.js +53 -0
- package/dist/models/FrontendOrderResource.d.ts +6 -0
- package/dist/models/FrontendOrderResource.js +4 -0
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +6 -4
- package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedStoreCreditListResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +1 -0
- package/dist/models/PaymentMethod.js +2 -1
- package/dist/models/PaymentTotalsResource.d.ts +25 -0
- package/dist/models/PaymentTotalsResource.js +17 -0
- package/dist/models/SearchStoreCreditsRequest.d.ts +106 -0
- package/dist/models/SearchStoreCreditsRequest.js +86 -0
- package/dist/models/SearchTransactionsRequest.d.ts +3 -2
- package/dist/models/SearchTransactionsRequest.js +3 -2
- package/dist/models/StoreCreditListResource.d.ts +86 -0
- package/dist/models/StoreCreditListResource.js +80 -0
- package/dist/models/StoreCreditListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreCreditListResourceArrayResponse.js +50 -0
- package/dist/models/StoreCreditLiteResource.d.ts +44 -0
- package/dist/models/StoreCreditLiteResource.js +59 -0
- package/dist/models/StoreCreditLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreCreditLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/TransactionListResource.d.ts +12 -8
- package/dist/models/TransactionListResource.js +12 -8
- package/dist/models/TransactionLiteResource.d.ts +12 -8
- package/dist/models/TransactionLiteResource.js +12 -8
- package/dist/models/TransactionResource.d.ts +12 -8
- package/dist/models/TransactionResource.js +12 -8
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/StoreCreditsApi.ts +69 -0
- package/src/apis/TransactionsApi.ts +44 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +18 -0
- package/src/models/CreateTransactionRequest.ts +2 -1
- package/src/models/FrontendCartResource.ts +43 -0
- package/src/models/FrontendCartResourceStoreCreditsInner.ts +81 -0
- package/src/models/FrontendOrderResource.ts +9 -0
- package/src/models/OrderFulfillmentResource.ts +8 -7
- package/src/models/PaginatedStoreCreditListResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +2 -1
- package/src/models/PaymentTotalsResource.ts +44 -0
- package/src/models/SearchStoreCreditsRequest.ts +161 -0
- package/src/models/SearchTransactionsRequest.ts +12 -4
- package/src/models/StoreCreditListResource.ts +143 -0
- package/src/models/StoreCreditListResourceArrayResponse.ts +73 -0
- package/src/models/StoreCreditLiteResource.ts +84 -0
- package/src/models/StoreCreditLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/TransactionListResource.ts +47 -16
- package/src/models/TransactionLiteResource.ts +47 -16
- package/src/models/TransactionResource.ts +47 -16
- package/src/models/index.ts +7 -0
|
@@ -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 { StoreCreditLiteResource } from './StoreCreditLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
StoreCreditLiteResourceFromJSON,
|
|
19
|
+
StoreCreditLiteResourceFromJSONTyped,
|
|
20
|
+
StoreCreditLiteResourceToJSON,
|
|
21
|
+
StoreCreditLiteResourceToJSONTyped,
|
|
22
|
+
} from './StoreCreditLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface StoreCreditLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface StoreCreditLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<StoreCreditLiteResource>}
|
|
33
|
+
* @memberof StoreCreditLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<StoreCreditLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StoreCreditLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfStoreCreditLiteResourceArrayResponse(value: object): value is StoreCreditLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StoreCreditLiteResourceArrayResponseFromJSON(json: any): StoreCreditLiteResourceArrayResponse {
|
|
46
|
+
return StoreCreditLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StoreCreditLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCreditLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreCreditLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function StoreCreditLiteResourceArrayResponseToJSON(json: any): StoreCreditLiteResourceArrayResponse {
|
|
60
|
+
return StoreCreditLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function StoreCreditLiteResourceArrayResponseToJSONTyped(value?: StoreCreditLiteResourceArrayResponse | 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(StoreCreditLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine?: string | null;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -109,7 +109,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
109
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
112
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
113
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
114
|
return true;
|
|
@@ -134,7 +133,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
134
133
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
134
|
'latitude': json['latitude'],
|
|
136
135
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
136
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
137
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
138
|
'specialDates': json['specialDates'],
|
|
140
139
|
'suppliers': json['suppliers'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -13,6 +13,35 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TransactionType } from './TransactionType';
|
|
17
|
+
import {
|
|
18
|
+
TransactionTypeFromJSON,
|
|
19
|
+
TransactionTypeFromJSONTyped,
|
|
20
|
+
TransactionTypeToJSON,
|
|
21
|
+
TransactionTypeToJSONTyped,
|
|
22
|
+
} from './TransactionType';
|
|
23
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethodFromJSON,
|
|
26
|
+
PaymentMethodFromJSONTyped,
|
|
27
|
+
PaymentMethodToJSON,
|
|
28
|
+
PaymentMethodToJSONTyped,
|
|
29
|
+
} from './PaymentMethod';
|
|
30
|
+
import type { PaymentSource } from './PaymentSource';
|
|
31
|
+
import {
|
|
32
|
+
PaymentSourceFromJSON,
|
|
33
|
+
PaymentSourceFromJSONTyped,
|
|
34
|
+
PaymentSourceToJSON,
|
|
35
|
+
PaymentSourceToJSONTyped,
|
|
36
|
+
} from './PaymentSource';
|
|
37
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
+
import {
|
|
39
|
+
PaymentStatusFromJSON,
|
|
40
|
+
PaymentStatusFromJSONTyped,
|
|
41
|
+
PaymentStatusToJSON,
|
|
42
|
+
PaymentStatusToJSONTyped,
|
|
43
|
+
} from './PaymentStatus';
|
|
44
|
+
|
|
16
45
|
/**
|
|
17
46
|
*
|
|
18
47
|
* @export
|
|
@@ -27,28 +56,28 @@ export interface TransactionListResource {
|
|
|
27
56
|
id: number;
|
|
28
57
|
/**
|
|
29
58
|
*
|
|
30
|
-
* @type {
|
|
59
|
+
* @type {PaymentSource}
|
|
31
60
|
* @memberof TransactionListResource
|
|
32
61
|
*/
|
|
33
|
-
paymentSource:
|
|
62
|
+
paymentSource: PaymentSource;
|
|
34
63
|
/**
|
|
35
64
|
*
|
|
36
|
-
* @type {
|
|
65
|
+
* @type {PaymentMethod}
|
|
37
66
|
* @memberof TransactionListResource
|
|
38
67
|
*/
|
|
39
|
-
paymentMethod:
|
|
68
|
+
paymentMethod: PaymentMethod;
|
|
40
69
|
/**
|
|
41
70
|
*
|
|
42
|
-
* @type {
|
|
71
|
+
* @type {TransactionType}
|
|
43
72
|
* @memberof TransactionListResource
|
|
44
73
|
*/
|
|
45
|
-
type:
|
|
74
|
+
type: TransactionType;
|
|
46
75
|
/**
|
|
47
76
|
*
|
|
48
|
-
* @type {
|
|
77
|
+
* @type {PaymentStatus}
|
|
49
78
|
* @memberof TransactionListResource
|
|
50
79
|
*/
|
|
51
|
-
status:
|
|
80
|
+
status: PaymentStatus;
|
|
52
81
|
/**
|
|
53
82
|
*
|
|
54
83
|
* @type {number}
|
|
@@ -111,6 +140,8 @@ export interface TransactionListResource {
|
|
|
111
140
|
createdAt?: Date | null;
|
|
112
141
|
}
|
|
113
142
|
|
|
143
|
+
|
|
144
|
+
|
|
114
145
|
/**
|
|
115
146
|
* Check if a given object implements the TransactionListResource interface.
|
|
116
147
|
*/
|
|
@@ -139,10 +170,10 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
139
170
|
return {
|
|
140
171
|
|
|
141
172
|
'id': json['id'],
|
|
142
|
-
'paymentSource': json['paymentSource'],
|
|
143
|
-
'paymentMethod': json['paymentMethod'],
|
|
144
|
-
'type': json['type'],
|
|
145
|
-
'status': json['status'],
|
|
173
|
+
'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
|
|
174
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
175
|
+
'type': TransactionTypeFromJSON(json['type']),
|
|
176
|
+
'status': PaymentStatusFromJSON(json['status']),
|
|
146
177
|
'totalAmount': json['totalAmount'],
|
|
147
178
|
'surcharge': json['surcharge'],
|
|
148
179
|
'refundedAmount': json['refundedAmount'],
|
|
@@ -168,10 +199,10 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
|
|
|
168
199
|
return {
|
|
169
200
|
|
|
170
201
|
'id': value['id'],
|
|
171
|
-
'paymentSource': value['paymentSource'],
|
|
172
|
-
'paymentMethod': value['paymentMethod'],
|
|
173
|
-
'type': value['type'],
|
|
174
|
-
'status': value['status'],
|
|
202
|
+
'paymentSource': PaymentSourceToJSON(value['paymentSource']),
|
|
203
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
204
|
+
'type': TransactionTypeToJSON(value['type']),
|
|
205
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
175
206
|
'totalAmount': value['totalAmount'],
|
|
176
207
|
'surcharge': value['surcharge'],
|
|
177
208
|
'refundedAmount': value['refundedAmount'],
|
|
@@ -13,6 +13,35 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TransactionType } from './TransactionType';
|
|
17
|
+
import {
|
|
18
|
+
TransactionTypeFromJSON,
|
|
19
|
+
TransactionTypeFromJSONTyped,
|
|
20
|
+
TransactionTypeToJSON,
|
|
21
|
+
TransactionTypeToJSONTyped,
|
|
22
|
+
} from './TransactionType';
|
|
23
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethodFromJSON,
|
|
26
|
+
PaymentMethodFromJSONTyped,
|
|
27
|
+
PaymentMethodToJSON,
|
|
28
|
+
PaymentMethodToJSONTyped,
|
|
29
|
+
} from './PaymentMethod';
|
|
30
|
+
import type { PaymentSource } from './PaymentSource';
|
|
31
|
+
import {
|
|
32
|
+
PaymentSourceFromJSON,
|
|
33
|
+
PaymentSourceFromJSONTyped,
|
|
34
|
+
PaymentSourceToJSON,
|
|
35
|
+
PaymentSourceToJSONTyped,
|
|
36
|
+
} from './PaymentSource';
|
|
37
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
+
import {
|
|
39
|
+
PaymentStatusFromJSON,
|
|
40
|
+
PaymentStatusFromJSONTyped,
|
|
41
|
+
PaymentStatusToJSON,
|
|
42
|
+
PaymentStatusToJSONTyped,
|
|
43
|
+
} from './PaymentStatus';
|
|
44
|
+
|
|
16
45
|
/**
|
|
17
46
|
*
|
|
18
47
|
* @export
|
|
@@ -27,16 +56,16 @@ export interface TransactionLiteResource {
|
|
|
27
56
|
id?: number | null;
|
|
28
57
|
/**
|
|
29
58
|
*
|
|
30
|
-
* @type {
|
|
59
|
+
* @type {PaymentSource}
|
|
31
60
|
* @memberof TransactionLiteResource
|
|
32
61
|
*/
|
|
33
|
-
paymentSource:
|
|
62
|
+
paymentSource: PaymentSource;
|
|
34
63
|
/**
|
|
35
64
|
*
|
|
36
|
-
* @type {
|
|
65
|
+
* @type {PaymentMethod}
|
|
37
66
|
* @memberof TransactionLiteResource
|
|
38
67
|
*/
|
|
39
|
-
paymentMethod:
|
|
68
|
+
paymentMethod: PaymentMethod;
|
|
40
69
|
/**
|
|
41
70
|
*
|
|
42
71
|
* @type {string}
|
|
@@ -45,16 +74,16 @@ export interface TransactionLiteResource {
|
|
|
45
74
|
paymentMethodThumbnail: string;
|
|
46
75
|
/**
|
|
47
76
|
*
|
|
48
|
-
* @type {
|
|
77
|
+
* @type {TransactionType}
|
|
49
78
|
* @memberof TransactionLiteResource
|
|
50
79
|
*/
|
|
51
|
-
type:
|
|
80
|
+
type: TransactionType;
|
|
52
81
|
/**
|
|
53
82
|
*
|
|
54
|
-
* @type {
|
|
83
|
+
* @type {PaymentStatus}
|
|
55
84
|
* @memberof TransactionLiteResource
|
|
56
85
|
*/
|
|
57
|
-
status:
|
|
86
|
+
status: PaymentStatus;
|
|
58
87
|
/**
|
|
59
88
|
*
|
|
60
89
|
* @type {number}
|
|
@@ -93,6 +122,8 @@ export interface TransactionLiteResource {
|
|
|
93
122
|
createdAt?: Date | null;
|
|
94
123
|
}
|
|
95
124
|
|
|
125
|
+
|
|
126
|
+
|
|
96
127
|
/**
|
|
97
128
|
* Check if a given object implements the TransactionLiteResource interface.
|
|
98
129
|
*/
|
|
@@ -120,11 +151,11 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
120
151
|
return {
|
|
121
152
|
|
|
122
153
|
'id': json['id'] == null ? undefined : json['id'],
|
|
123
|
-
'paymentSource': json['paymentSource'],
|
|
124
|
-
'paymentMethod': json['paymentMethod'],
|
|
154
|
+
'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
|
|
155
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
125
156
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
126
|
-
'type': json['type'],
|
|
127
|
-
'status': json['status'],
|
|
157
|
+
'type': TransactionTypeFromJSON(json['type']),
|
|
158
|
+
'status': PaymentStatusFromJSON(json['status']),
|
|
128
159
|
'amount': json['amount'],
|
|
129
160
|
'surcharge': json['surcharge'],
|
|
130
161
|
'totalAmount': json['totalAmount'],
|
|
@@ -146,11 +177,11 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
146
177
|
return {
|
|
147
178
|
|
|
148
179
|
'id': value['id'],
|
|
149
|
-
'paymentSource': value['paymentSource'],
|
|
150
|
-
'paymentMethod': value['paymentMethod'],
|
|
180
|
+
'paymentSource': PaymentSourceToJSON(value['paymentSource']),
|
|
181
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
151
182
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
|
152
|
-
'type': value['type'],
|
|
153
|
-
'status': value['status'],
|
|
183
|
+
'type': TransactionTypeToJSON(value['type']),
|
|
184
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
154
185
|
'amount': value['amount'],
|
|
155
186
|
'surcharge': value['surcharge'],
|
|
156
187
|
'totalAmount': value['totalAmount'],
|
|
@@ -13,6 +13,35 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TransactionType } from './TransactionType';
|
|
17
|
+
import {
|
|
18
|
+
TransactionTypeFromJSON,
|
|
19
|
+
TransactionTypeFromJSONTyped,
|
|
20
|
+
TransactionTypeToJSON,
|
|
21
|
+
TransactionTypeToJSONTyped,
|
|
22
|
+
} from './TransactionType';
|
|
23
|
+
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethodFromJSON,
|
|
26
|
+
PaymentMethodFromJSONTyped,
|
|
27
|
+
PaymentMethodToJSON,
|
|
28
|
+
PaymentMethodToJSONTyped,
|
|
29
|
+
} from './PaymentMethod';
|
|
30
|
+
import type { PaymentSource } from './PaymentSource';
|
|
31
|
+
import {
|
|
32
|
+
PaymentSourceFromJSON,
|
|
33
|
+
PaymentSourceFromJSONTyped,
|
|
34
|
+
PaymentSourceToJSON,
|
|
35
|
+
PaymentSourceToJSONTyped,
|
|
36
|
+
} from './PaymentSource';
|
|
37
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
+
import {
|
|
39
|
+
PaymentStatusFromJSON,
|
|
40
|
+
PaymentStatusFromJSONTyped,
|
|
41
|
+
PaymentStatusToJSON,
|
|
42
|
+
PaymentStatusToJSONTyped,
|
|
43
|
+
} from './PaymentStatus';
|
|
44
|
+
|
|
16
45
|
/**
|
|
17
46
|
*
|
|
18
47
|
* @export
|
|
@@ -27,28 +56,28 @@ export interface TransactionResource {
|
|
|
27
56
|
id?: number | null;
|
|
28
57
|
/**
|
|
29
58
|
*
|
|
30
|
-
* @type {
|
|
59
|
+
* @type {PaymentSource}
|
|
31
60
|
* @memberof TransactionResource
|
|
32
61
|
*/
|
|
33
|
-
paymentSource:
|
|
62
|
+
paymentSource: PaymentSource;
|
|
34
63
|
/**
|
|
35
64
|
*
|
|
36
|
-
* @type {
|
|
65
|
+
* @type {PaymentMethod}
|
|
37
66
|
* @memberof TransactionResource
|
|
38
67
|
*/
|
|
39
|
-
paymentMethod:
|
|
68
|
+
paymentMethod: PaymentMethod;
|
|
40
69
|
/**
|
|
41
70
|
*
|
|
42
|
-
* @type {
|
|
71
|
+
* @type {TransactionType}
|
|
43
72
|
* @memberof TransactionResource
|
|
44
73
|
*/
|
|
45
|
-
type:
|
|
74
|
+
type: TransactionType;
|
|
46
75
|
/**
|
|
47
76
|
*
|
|
48
|
-
* @type {
|
|
77
|
+
* @type {PaymentStatus}
|
|
49
78
|
* @memberof TransactionResource
|
|
50
79
|
*/
|
|
51
|
-
status:
|
|
80
|
+
status: PaymentStatus;
|
|
52
81
|
/**
|
|
53
82
|
*
|
|
54
83
|
* @type {number}
|
|
@@ -123,6 +152,8 @@ export interface TransactionResource {
|
|
|
123
152
|
createdAt?: Date | null;
|
|
124
153
|
}
|
|
125
154
|
|
|
155
|
+
|
|
156
|
+
|
|
126
157
|
/**
|
|
127
158
|
* Check if a given object implements the TransactionResource interface.
|
|
128
159
|
*/
|
|
@@ -151,10 +182,10 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
151
182
|
return {
|
|
152
183
|
|
|
153
184
|
'id': json['id'] == null ? undefined : json['id'],
|
|
154
|
-
'paymentSource': json['paymentSource'],
|
|
155
|
-
'paymentMethod': json['paymentMethod'],
|
|
156
|
-
'type': json['type'],
|
|
157
|
-
'status': json['status'],
|
|
185
|
+
'paymentSource': PaymentSourceFromJSON(json['paymentSource']),
|
|
186
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
187
|
+
'type': TransactionTypeFromJSON(json['type']),
|
|
188
|
+
'status': PaymentStatusFromJSON(json['status']),
|
|
158
189
|
'amount': json['amount'],
|
|
159
190
|
'surcharge': json['surcharge'],
|
|
160
191
|
'totalAmount': json['totalAmount'],
|
|
@@ -182,10 +213,10 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
|
|
|
182
213
|
return {
|
|
183
214
|
|
|
184
215
|
'id': value['id'],
|
|
185
|
-
'paymentSource': value['paymentSource'],
|
|
186
|
-
'paymentMethod': value['paymentMethod'],
|
|
187
|
-
'type': value['type'],
|
|
188
|
-
'status': value['status'],
|
|
216
|
+
'paymentSource': PaymentSourceToJSON(value['paymentSource']),
|
|
217
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
218
|
+
'type': TransactionTypeToJSON(value['type']),
|
|
219
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
189
220
|
'amount': value['amount'],
|
|
190
221
|
'surcharge': value['surcharge'],
|
|
191
222
|
'totalAmount': value['totalAmount'],
|
package/src/models/index.ts
CHANGED
|
@@ -210,6 +210,7 @@ export * from './FreshdeskFaqResourceArrayResponse';
|
|
|
210
210
|
export * from './FrontendCartResource';
|
|
211
211
|
export * from './FrontendCartResourceArrayResponse';
|
|
212
212
|
export * from './FrontendCartResourceCouponsInner';
|
|
213
|
+
export * from './FrontendCartResourceStoreCreditsInner';
|
|
213
214
|
export * from './FrontendComponentLiteResource';
|
|
214
215
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
215
216
|
export * from './FrontendComponentResource';
|
|
@@ -402,6 +403,7 @@ export * from './PaginatedSiteLiteResourceResponse';
|
|
|
402
403
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
403
404
|
export * from './PaginatedSiteNotificationResourceResponse';
|
|
404
405
|
export * from './PaginatedSiteResourceResponse';
|
|
406
|
+
export * from './PaginatedStoreCreditListResourceResponse';
|
|
405
407
|
export * from './PaginatedStoreListResourceResponse';
|
|
406
408
|
export * from './PaginatedSupplierFrontendResourceResponse';
|
|
407
409
|
export * from './PaginatedSupplierListResourceResponse';
|
|
@@ -647,6 +649,7 @@ export * from './SearchReviewsRequest';
|
|
|
647
649
|
export * from './SearchRolesRequest';
|
|
648
650
|
export * from './SearchSiteNotificationsRequest';
|
|
649
651
|
export * from './SearchSitesRequest';
|
|
652
|
+
export * from './SearchStoreCreditsRequest';
|
|
650
653
|
export * from './SearchStoresRequest';
|
|
651
654
|
export * from './SearchSuppliersRequest';
|
|
652
655
|
export * from './SearchTagsRequest';
|
|
@@ -671,6 +674,10 @@ export * from './SiteResource';
|
|
|
671
674
|
export * from './SiteResourceArrayResponse';
|
|
672
675
|
export * from './SkuSearchProductChildRequest';
|
|
673
676
|
export * from './SocialProvider';
|
|
677
|
+
export * from './StoreCreditListResource';
|
|
678
|
+
export * from './StoreCreditListResourceArrayResponse';
|
|
679
|
+
export * from './StoreCreditLiteResource';
|
|
680
|
+
export * from './StoreCreditLiteResourceArrayResponse';
|
|
674
681
|
export * from './StoreFrontendResource';
|
|
675
682
|
export * from './StoreFrontendResourceArrayResponse';
|
|
676
683
|
export * from './StoreListResource';
|