@digital8/lighting-illusions-ts-sdk 0.0.2742 → 0.0.2744
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 +0 -8
- package/README.md +2 -2
- package/dist/apis/TransactionsApi.d.ts +1 -12
- package/dist/apis/TransactionsApi.js +0 -46
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/CreateTransactionRequest.d.ts +0 -1
- package/dist/models/CreateTransactionRequest.js +1 -2
- package/dist/models/FrontendCartResource.d.ts +0 -25
- package/dist/models/FrontendCartResource.js +0 -17
- package/dist/models/FrontendOrderResource.d.ts +0 -6
- package/dist/models/FrontendOrderResource.js +0 -4
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +6 -4
- package/dist/models/PaymentMethod.d.ts +0 -1
- package/dist/models/PaymentMethod.js +1 -2
- package/dist/models/PaymentTotalsResource.d.ts +0 -25
- package/dist/models/PaymentTotalsResource.js +0 -17
- package/dist/models/SearchTransactionsRequest.d.ts +2 -3
- package/dist/models/SearchTransactionsRequest.js +2 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/TransactionListResource.d.ts +8 -12
- package/dist/models/TransactionListResource.js +8 -12
- package/dist/models/TransactionLiteResource.d.ts +8 -12
- package/dist/models/TransactionLiteResource.js +8 -12
- package/dist/models/TransactionResource.d.ts +8 -12
- package/dist/models/TransactionResource.js +8 -12
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +0 -44
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/CreateTransactionRequest.ts +1 -2
- package/src/models/FrontendCartResource.ts +0 -43
- package/src/models/FrontendOrderResource.ts +0 -9
- package/src/models/OrderFulfillmentResource.ts +8 -7
- package/src/models/PaymentMethod.ts +1 -2
- package/src/models/PaymentTotalsResource.ts +0 -44
- package/src/models/SearchTransactionsRequest.ts +4 -12
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/TransactionListResource.ts +16 -47
- package/src/models/TransactionLiteResource.ts +16 -47
- package/src/models/TransactionResource.ts +16 -47
- package/src/models/index.ts +0 -7
- package/dist/apis/StoreCreditsApi.d.ts +0 -29
- package/dist/apis/StoreCreditsApi.js +0 -125
- package/dist/models/FrontendCartResourceStoreCreditsInner.d.ts +0 -44
- package/dist/models/FrontendCartResourceStoreCreditsInner.js +0 -53
- package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreCreditListResourceResponse.js +0 -57
- package/dist/models/SearchStoreCreditsRequest.d.ts +0 -106
- package/dist/models/SearchStoreCreditsRequest.js +0 -86
- package/dist/models/StoreCreditListResource.d.ts +0 -86
- package/dist/models/StoreCreditListResource.js +0 -80
- package/dist/models/StoreCreditListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditListResourceArrayResponse.js +0 -50
- package/dist/models/StoreCreditLiteResource.d.ts +0 -44
- package/dist/models/StoreCreditLiteResource.js +0 -59
- package/dist/models/StoreCreditLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditLiteResourceArrayResponse.js +0 -50
- package/src/apis/StoreCreditsApi.ts +0 -69
- package/src/models/FrontendCartResourceStoreCreditsInner.ts +0 -81
- package/src/models/PaginatedStoreCreditListResourceResponse.ts +0 -90
- package/src/models/SearchStoreCreditsRequest.ts +0 -161
- package/src/models/StoreCreditListResource.ts +0 -143
- package/src/models/StoreCreditListResourceArrayResponse.ts +0 -73
- package/src/models/StoreCreditLiteResource.ts +0 -84
- package/src/models/StoreCreditLiteResourceArrayResponse.ts +0 -73
|
@@ -50,19 +50,19 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany: string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -102,7 +102,8 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('
|
|
105
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
106
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
106
107
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
107
108
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
108
109
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -122,9 +123,9 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
122
123
|
'id': json['id'],
|
|
123
124
|
'orderId': json['orderId'],
|
|
124
125
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
125
|
-
'trackingNumber': json['trackingNumber'],
|
|
126
|
-
'trackingUrl': json['trackingUrl']
|
|
127
|
-
'trackingCompany': json['trackingCompany']
|
|
126
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
127
|
+
'trackingUrl': json['trackingUrl'],
|
|
128
|
+
'trackingCompany': json['trackingCompany'],
|
|
128
129
|
'docnum': json['docnum'],
|
|
129
130
|
'netsuiteId': json['netsuiteId'],
|
|
130
131
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -24,8 +24,7 @@ export const PaymentMethod = {
|
|
|
24
24
|
AmericanExpress: 'american_express',
|
|
25
25
|
GooglePay: 'google_pay',
|
|
26
26
|
PayPal: 'pay_pal',
|
|
27
|
-
ApplePay: 'apple_pay'
|
|
28
|
-
StoreCredit: 'store_credit'
|
|
27
|
+
ApplePay: 'apple_pay'
|
|
29
28
|
} as const;
|
|
30
29
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
31
30
|
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { FrontendCartResourceStoreCreditsInner } from './FrontendCartResourceStoreCreditsInner';
|
|
17
|
-
import {
|
|
18
|
-
FrontendCartResourceStoreCreditsInnerFromJSON,
|
|
19
|
-
FrontendCartResourceStoreCreditsInnerFromJSONTyped,
|
|
20
|
-
FrontendCartResourceStoreCreditsInnerToJSON,
|
|
21
|
-
FrontendCartResourceStoreCreditsInnerToJSONTyped,
|
|
22
|
-
} from './FrontendCartResourceStoreCreditsInner';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -81,36 +73,12 @@ export interface PaymentTotalsResource {
|
|
|
81
73
|
* @memberof PaymentTotalsResource
|
|
82
74
|
*/
|
|
83
75
|
surchargePaid: number;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof PaymentTotalsResource
|
|
88
|
-
*/
|
|
89
|
-
storeCreditPaid: number;
|
|
90
76
|
/**
|
|
91
77
|
*
|
|
92
78
|
* @type {number}
|
|
93
79
|
* @memberof PaymentTotalsResource
|
|
94
80
|
*/
|
|
95
81
|
amountDue: number;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {Array<FrontendCartResourceStoreCreditsInner>}
|
|
99
|
-
* @memberof PaymentTotalsResource
|
|
100
|
-
*/
|
|
101
|
-
storeCredits: Array<FrontendCartResourceStoreCreditsInner>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {number}
|
|
105
|
-
* @memberof PaymentTotalsResource
|
|
106
|
-
*/
|
|
107
|
-
storeCreditTotal: number;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {number}
|
|
111
|
-
* @memberof PaymentTotalsResource
|
|
112
|
-
*/
|
|
113
|
-
availableStoreCreditTotal: number;
|
|
114
82
|
/**
|
|
115
83
|
*
|
|
116
84
|
* @type {Array<object>}
|
|
@@ -174,11 +142,7 @@ export function instanceOfPaymentTotalsResource(value: object): value is Payment
|
|
|
174
142
|
if (!('finalTotal' in value) || value['finalTotal'] === undefined) return false;
|
|
175
143
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined) return false;
|
|
176
144
|
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined) return false;
|
|
177
|
-
if (!('storeCreditPaid' in value) || value['storeCreditPaid'] === undefined) return false;
|
|
178
145
|
if (!('amountDue' in value) || value['amountDue'] === undefined) return false;
|
|
179
|
-
if (!('storeCredits' in value) || value['storeCredits'] === undefined) return false;
|
|
180
|
-
if (!('storeCreditTotal' in value) || value['storeCreditTotal'] === undefined) return false;
|
|
181
|
-
if (!('availableStoreCreditTotal' in value) || value['availableStoreCreditTotal'] === undefined) return false;
|
|
182
146
|
if (!('appliedCoupons' in value) || value['appliedCoupons'] === undefined) return false;
|
|
183
147
|
if (!('noOfItems' in value) || value['noOfItems'] === undefined) return false;
|
|
184
148
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
@@ -208,11 +172,7 @@ export function PaymentTotalsResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
208
172
|
'finalTotal': json['finalTotal'],
|
|
209
173
|
'amountPaid': json['amountPaid'],
|
|
210
174
|
'surchargePaid': json['surchargePaid'],
|
|
211
|
-
'storeCreditPaid': json['storeCreditPaid'],
|
|
212
175
|
'amountDue': json['amountDue'],
|
|
213
|
-
'storeCredits': ((json['storeCredits'] as Array<any>).map(FrontendCartResourceStoreCreditsInnerFromJSON)),
|
|
214
|
-
'storeCreditTotal': json['storeCreditTotal'],
|
|
215
|
-
'availableStoreCreditTotal': json['availableStoreCreditTotal'],
|
|
216
176
|
'appliedCoupons': json['appliedCoupons'],
|
|
217
177
|
'noOfItems': json['noOfItems'],
|
|
218
178
|
'lineItems': json['lineItems'],
|
|
@@ -244,11 +204,7 @@ export function PaymentTotalsResourceToJSONTyped(value?: PaymentTotalsResource |
|
|
|
244
204
|
'finalTotal': value['finalTotal'],
|
|
245
205
|
'amountPaid': value['amountPaid'],
|
|
246
206
|
'surchargePaid': value['surchargePaid'],
|
|
247
|
-
'storeCreditPaid': value['storeCreditPaid'],
|
|
248
207
|
'amountDue': value['amountDue'],
|
|
249
|
-
'storeCredits': ((value['storeCredits'] as Array<any>).map(FrontendCartResourceStoreCreditsInnerToJSON)),
|
|
250
|
-
'storeCreditTotal': value['storeCreditTotal'],
|
|
251
|
-
'availableStoreCreditTotal': value['availableStoreCreditTotal'],
|
|
252
208
|
'appliedCoupons': value['appliedCoupons'],
|
|
253
209
|
'noOfItems': value['noOfItems'],
|
|
254
210
|
'lineItems': value['lineItems'],
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
17
|
-
import {
|
|
18
|
-
PaymentMethodFromJSON,
|
|
19
|
-
PaymentMethodFromJSONTyped,
|
|
20
|
-
PaymentMethodToJSON,
|
|
21
|
-
PaymentMethodToJSONTyped,
|
|
22
|
-
} from './PaymentMethod';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -71,10 +63,10 @@ export interface SearchTransactionsRequest {
|
|
|
71
63
|
type?: Array<string>;
|
|
72
64
|
/**
|
|
73
65
|
*
|
|
74
|
-
* @type {Array<
|
|
66
|
+
* @type {Array<string>}
|
|
75
67
|
* @memberof SearchTransactionsRequest
|
|
76
68
|
*/
|
|
77
|
-
paymentMethod?: Array<
|
|
69
|
+
paymentMethod?: Array<string>;
|
|
78
70
|
/**
|
|
79
71
|
*
|
|
80
72
|
* @type {Array<string>}
|
|
@@ -167,7 +159,7 @@ export function SearchTransactionsRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
167
159
|
'page': json['page'] == null ? undefined : json['page'],
|
|
168
160
|
'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
|
|
169
161
|
'type': json['type'] == null ? undefined : json['type'],
|
|
170
|
-
'paymentMethod': json['payment_method'] == null ? undefined :
|
|
162
|
+
'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
|
|
171
163
|
'status': json['status'] == null ? undefined : json['status'],
|
|
172
164
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
173
165
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
@@ -195,7 +187,7 @@ export function SearchTransactionsRequestToJSONTyped(value?: SearchTransactionsR
|
|
|
195
187
|
'page': value['page'],
|
|
196
188
|
'payment_source': value['paymentSource'],
|
|
197
189
|
'type': value['type'],
|
|
198
|
-
'payment_method': value['paymentMethod']
|
|
190
|
+
'payment_method': value['paymentMethod'],
|
|
199
191
|
'status': value['status'],
|
|
200
192
|
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
201
193
|
'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,6 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
154
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
155
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -175,7 +176,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
176
|
'phone': json['phone'],
|
|
176
177
|
'longitude': json['longitude'],
|
|
177
178
|
'latitude': json['latitude'],
|
|
178
|
-
'tagLine': json['tagLine']
|
|
179
|
+
'tagLine': json['tagLine'],
|
|
179
180
|
'email': json['email'],
|
|
180
181
|
'website': json['website'],
|
|
181
182
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
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 StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
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,35 +13,6 @@
|
|
|
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
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,28 +27,28 @@ export interface TransactionListResource {
|
|
|
56
27
|
id: number;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionListResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionListResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
72
43
|
* @memberof TransactionListResource
|
|
73
44
|
*/
|
|
74
|
-
type:
|
|
45
|
+
type: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionListResource
|
|
79
50
|
*/
|
|
80
|
-
status:
|
|
51
|
+
status: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
54
|
* @type {number}
|
|
@@ -140,8 +111,6 @@ export interface TransactionListResource {
|
|
|
140
111
|
createdAt?: Date | null;
|
|
141
112
|
}
|
|
142
113
|
|
|
143
|
-
|
|
144
|
-
|
|
145
114
|
/**
|
|
146
115
|
* Check if a given object implements the TransactionListResource interface.
|
|
147
116
|
*/
|
|
@@ -170,10 +139,10 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
170
139
|
return {
|
|
171
140
|
|
|
172
141
|
'id': json['id'],
|
|
173
|
-
'paymentSource':
|
|
174
|
-
'paymentMethod':
|
|
175
|
-
'type':
|
|
176
|
-
'status':
|
|
142
|
+
'paymentSource': json['paymentSource'],
|
|
143
|
+
'paymentMethod': json['paymentMethod'],
|
|
144
|
+
'type': json['type'],
|
|
145
|
+
'status': json['status'],
|
|
177
146
|
'totalAmount': json['totalAmount'],
|
|
178
147
|
'surcharge': json['surcharge'],
|
|
179
148
|
'refundedAmount': json['refundedAmount'],
|
|
@@ -199,10 +168,10 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
|
|
|
199
168
|
return {
|
|
200
169
|
|
|
201
170
|
'id': value['id'],
|
|
202
|
-
'paymentSource':
|
|
203
|
-
'paymentMethod':
|
|
204
|
-
'type':
|
|
205
|
-
'status':
|
|
171
|
+
'paymentSource': value['paymentSource'],
|
|
172
|
+
'paymentMethod': value['paymentMethod'],
|
|
173
|
+
'type': value['type'],
|
|
174
|
+
'status': value['status'],
|
|
206
175
|
'totalAmount': value['totalAmount'],
|
|
207
176
|
'surcharge': value['surcharge'],
|
|
208
177
|
'refundedAmount': value['refundedAmount'],
|
|
@@ -13,35 +13,6 @@
|
|
|
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
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,16 +27,16 @@ export interface TransactionLiteResource {
|
|
|
56
27
|
id?: number | null;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionLiteResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionLiteResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
42
|
* @type {string}
|
|
@@ -74,16 +45,16 @@ export interface TransactionLiteResource {
|
|
|
74
45
|
paymentMethodThumbnail: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionLiteResource
|
|
79
50
|
*/
|
|
80
|
-
type:
|
|
51
|
+
type: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
|
-
* @type {
|
|
54
|
+
* @type {string}
|
|
84
55
|
* @memberof TransactionLiteResource
|
|
85
56
|
*/
|
|
86
|
-
status:
|
|
57
|
+
status: string;
|
|
87
58
|
/**
|
|
88
59
|
*
|
|
89
60
|
* @type {number}
|
|
@@ -122,8 +93,6 @@ export interface TransactionLiteResource {
|
|
|
122
93
|
createdAt?: Date | null;
|
|
123
94
|
}
|
|
124
95
|
|
|
125
|
-
|
|
126
|
-
|
|
127
96
|
/**
|
|
128
97
|
* Check if a given object implements the TransactionLiteResource interface.
|
|
129
98
|
*/
|
|
@@ -151,11 +120,11 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
151
120
|
return {
|
|
152
121
|
|
|
153
122
|
'id': json['id'] == null ? undefined : json['id'],
|
|
154
|
-
'paymentSource':
|
|
155
|
-
'paymentMethod':
|
|
123
|
+
'paymentSource': json['paymentSource'],
|
|
124
|
+
'paymentMethod': json['paymentMethod'],
|
|
156
125
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
157
|
-
'type':
|
|
158
|
-
'status':
|
|
126
|
+
'type': json['type'],
|
|
127
|
+
'status': json['status'],
|
|
159
128
|
'amount': json['amount'],
|
|
160
129
|
'surcharge': json['surcharge'],
|
|
161
130
|
'totalAmount': json['totalAmount'],
|
|
@@ -177,11 +146,11 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
177
146
|
return {
|
|
178
147
|
|
|
179
148
|
'id': value['id'],
|
|
180
|
-
'paymentSource':
|
|
181
|
-
'paymentMethod':
|
|
149
|
+
'paymentSource': value['paymentSource'],
|
|
150
|
+
'paymentMethod': value['paymentMethod'],
|
|
182
151
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
|
183
|
-
'type':
|
|
184
|
-
'status':
|
|
152
|
+
'type': value['type'],
|
|
153
|
+
'status': value['status'],
|
|
185
154
|
'amount': value['amount'],
|
|
186
155
|
'surcharge': value['surcharge'],
|
|
187
156
|
'totalAmount': value['totalAmount'],
|
|
@@ -13,35 +13,6 @@
|
|
|
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
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,28 +27,28 @@ export interface TransactionResource {
|
|
|
56
27
|
id?: number | null;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
72
43
|
* @memberof TransactionResource
|
|
73
44
|
*/
|
|
74
|
-
type:
|
|
45
|
+
type: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionResource
|
|
79
50
|
*/
|
|
80
|
-
status:
|
|
51
|
+
status: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
54
|
* @type {number}
|
|
@@ -152,8 +123,6 @@ export interface TransactionResource {
|
|
|
152
123
|
createdAt?: Date | null;
|
|
153
124
|
}
|
|
154
125
|
|
|
155
|
-
|
|
156
|
-
|
|
157
126
|
/**
|
|
158
127
|
* Check if a given object implements the TransactionResource interface.
|
|
159
128
|
*/
|
|
@@ -182,10 +151,10 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
182
151
|
return {
|
|
183
152
|
|
|
184
153
|
'id': json['id'] == null ? undefined : json['id'],
|
|
185
|
-
'paymentSource':
|
|
186
|
-
'paymentMethod':
|
|
187
|
-
'type':
|
|
188
|
-
'status':
|
|
154
|
+
'paymentSource': json['paymentSource'],
|
|
155
|
+
'paymentMethod': json['paymentMethod'],
|
|
156
|
+
'type': json['type'],
|
|
157
|
+
'status': json['status'],
|
|
189
158
|
'amount': json['amount'],
|
|
190
159
|
'surcharge': json['surcharge'],
|
|
191
160
|
'totalAmount': json['totalAmount'],
|
|
@@ -213,10 +182,10 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
|
|
|
213
182
|
return {
|
|
214
183
|
|
|
215
184
|
'id': value['id'],
|
|
216
|
-
'paymentSource':
|
|
217
|
-
'paymentMethod':
|
|
218
|
-
'type':
|
|
219
|
-
'status':
|
|
185
|
+
'paymentSource': value['paymentSource'],
|
|
186
|
+
'paymentMethod': value['paymentMethod'],
|
|
187
|
+
'type': value['type'],
|
|
188
|
+
'status': value['status'],
|
|
220
189
|
'amount': value['amount'],
|
|
221
190
|
'surcharge': value['surcharge'],
|
|
222
191
|
'totalAmount': value['totalAmount'],
|
package/src/models/index.ts
CHANGED
|
@@ -210,7 +210,6 @@ export * from './FreshdeskFaqResourceArrayResponse';
|
|
|
210
210
|
export * from './FrontendCartResource';
|
|
211
211
|
export * from './FrontendCartResourceArrayResponse';
|
|
212
212
|
export * from './FrontendCartResourceCouponsInner';
|
|
213
|
-
export * from './FrontendCartResourceStoreCreditsInner';
|
|
214
213
|
export * from './FrontendComponentLiteResource';
|
|
215
214
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
216
215
|
export * from './FrontendComponentResource';
|
|
@@ -403,7 +402,6 @@ export * from './PaginatedSiteLiteResourceResponse';
|
|
|
403
402
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
404
403
|
export * from './PaginatedSiteNotificationResourceResponse';
|
|
405
404
|
export * from './PaginatedSiteResourceResponse';
|
|
406
|
-
export * from './PaginatedStoreCreditListResourceResponse';
|
|
407
405
|
export * from './PaginatedStoreListResourceResponse';
|
|
408
406
|
export * from './PaginatedSupplierFrontendResourceResponse';
|
|
409
407
|
export * from './PaginatedSupplierListResourceResponse';
|
|
@@ -649,7 +647,6 @@ export * from './SearchReviewsRequest';
|
|
|
649
647
|
export * from './SearchRolesRequest';
|
|
650
648
|
export * from './SearchSiteNotificationsRequest';
|
|
651
649
|
export * from './SearchSitesRequest';
|
|
652
|
-
export * from './SearchStoreCreditsRequest';
|
|
653
650
|
export * from './SearchStoresRequest';
|
|
654
651
|
export * from './SearchSuppliersRequest';
|
|
655
652
|
export * from './SearchTagsRequest';
|
|
@@ -674,10 +671,6 @@ export * from './SiteResource';
|
|
|
674
671
|
export * from './SiteResourceArrayResponse';
|
|
675
672
|
export * from './SkuSearchProductChildRequest';
|
|
676
673
|
export * from './SocialProvider';
|
|
677
|
-
export * from './StoreCreditListResource';
|
|
678
|
-
export * from './StoreCreditListResourceArrayResponse';
|
|
679
|
-
export * from './StoreCreditLiteResource';
|
|
680
|
-
export * from './StoreCreditLiteResourceArrayResponse';
|
|
681
674
|
export * from './StoreFrontendResource';
|
|
682
675
|
export * from './StoreFrontendResourceArrayResponse';
|
|
683
676
|
export * from './StoreListResource';
|
|
@@ -1,29 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { PaginatedStoreCreditListResourceResponse, SearchStoreCreditsRequest } from '../models/index';
|
|
14
|
-
export interface IndexStoreCreditRequest {
|
|
15
|
-
searchStoreCreditsRequest?: SearchStoreCreditsRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class StoreCreditsApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
* Auto-generated: indexStoreCredit
|
|
23
|
-
*/
|
|
24
|
-
indexStoreCreditRaw(requestParameters: IndexStoreCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedStoreCreditListResourceResponse>>;
|
|
25
|
-
/**
|
|
26
|
-
* Auto-generated: indexStoreCredit
|
|
27
|
-
*/
|
|
28
|
-
indexStoreCredit(requestParameters?: IndexStoreCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStoreCreditListResourceResponse>;
|
|
29
|
-
}
|