@digital8/lighting-illusions-ts-sdk 0.0.2792 → 0.0.2794
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 -11
- package/README.md +2 -2
- package/dist/apis/CouponsApi.d.ts +1 -9
- package/dist/apis/CouponsApi.js +0 -42
- 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 +4 -4
- package/dist/models/AdminOrderResource.d.ts +2 -20
- package/dist/models/AdminOrderResource.js +0 -12
- package/dist/models/CreatePageRequest.d.ts +2 -2
- package/dist/models/CreatePageRequest.js +3 -2
- 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 +2 -9
- package/dist/models/OrderFulfillmentResource.js +2 -11
- 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/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- 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/UpdateOrderRequest.d.ts +0 -6
- package/dist/models/UpdateOrderRequest.js +0 -2
- package/dist/models/UpdatePageRequest.d.ts +2 -2
- package/dist/models/UpdatePageRequest.js +3 -2
- package/dist/models/index.d.ts +0 -10
- package/dist/models/index.js +0 -10
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +0 -32
- package/src/apis/TransactionsApi.ts +0 -44
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +2 -29
- package/src/models/CreatePageRequest.ts +4 -4
- 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 +4 -24
- package/src/models/PaymentMethod.ts +1 -2
- package/src/models/PaymentTotalsResource.ts +0 -44
- package/src/models/SearchTransactionsRequest.ts +4 -12
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionListResource.ts +16 -47
- package/src/models/TransactionLiteResource.ts +16 -47
- package/src/models/TransactionResource.ts +16 -47
- package/src/models/UpdateOrderRequest.ts +0 -8
- package/src/models/UpdatePageRequest.ts +4 -4
- package/src/models/index.ts +0 -10
- 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/GeneratedCouponCodeResource.d.ts +0 -32
- package/dist/models/GeneratedCouponCodeResource.js +0 -51
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.d.ts +0 -33
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.js +0 -50
- package/dist/models/OrderFulfillmentStatus.d.ts +0 -25
- package/dist/models/OrderFulfillmentStatus.js +0 -51
- 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/GeneratedCouponCodeResource.ts +0 -66
- package/src/models/GeneratedCouponCodeResourceArrayResponse.ts +0 -73
- package/src/models/OrderFulfillmentStatus.ts +0 -53
- 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
|
@@ -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()),
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -151,6 +151,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
152
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
155
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
155
156
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
156
157
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -177,7 +178,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
177
178
|
'latitude': json['latitude'],
|
|
178
179
|
'tagLine': json['tagLine'],
|
|
179
180
|
'email': json['email'],
|
|
180
|
-
'website': json['website']
|
|
181
|
+
'website': json['website'],
|
|
181
182
|
'netsuiteId': json['netsuiteId'],
|
|
182
183
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
183
184
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ 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;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'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'],
|
|
@@ -87,12 +87,6 @@ export interface UpdateOrderRequest {
|
|
|
87
87
|
* @memberof UpdateOrderRequest
|
|
88
88
|
*/
|
|
89
89
|
useAsBillingAddress?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {boolean}
|
|
93
|
-
* @memberof UpdateOrderRequest
|
|
94
|
-
*/
|
|
95
|
-
confirmFulfillmentDeletion?: boolean;
|
|
96
90
|
/**
|
|
97
91
|
*
|
|
98
92
|
* @type {number}
|
|
@@ -175,7 +169,6 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
175
169
|
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
176
170
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
177
171
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
178
|
-
'confirmFulfillmentDeletion': json['confirm_fulfillment_deletion'] == null ? undefined : json['confirm_fulfillment_deletion'],
|
|
179
172
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
|
180
173
|
'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
|
|
181
174
|
'shippingAddress': json['shipping_address'] == null ? undefined : CreateCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
@@ -204,7 +197,6 @@ export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null,
|
|
|
204
197
|
'include_insurance': value['includeInsurance'],
|
|
205
198
|
'override_insurance': value['overrideInsurance'],
|
|
206
199
|
'use_as_billing_address': value['useAsBillingAddress'],
|
|
207
|
-
'confirm_fulfillment_deletion': value['confirmFulfillmentDeletion'],
|
|
208
200
|
'shipping_address_id': value['shippingAddressId'],
|
|
209
201
|
'billing_address_id': value['billingAddressId'],
|
|
210
202
|
'shipping_address': CreateCartRequestShippingAddressToJSON(value['shippingAddress']),
|
|
@@ -61,10 +61,10 @@ export interface UpdatePageRequest {
|
|
|
61
61
|
enabled?: boolean;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {Date}
|
|
65
65
|
* @memberof UpdatePageRequest
|
|
66
66
|
*/
|
|
67
|
-
startDate?:
|
|
67
|
+
startDate?: Date | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {CreatePageRequestBlog}
|
|
@@ -108,7 +108,7 @@ export function UpdatePageRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
108
108
|
'name': json['name'],
|
|
109
109
|
'slug': json['slug'],
|
|
110
110
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
111
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
111
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
112
112
|
'blog': json['blog'] == null ? undefined : CreatePageRequestBlogFromJSON(json['blog']),
|
|
113
113
|
'componentOrder': json['component_order'] == null ? undefined : ((json['component_order'] as Array<any>).map(UpdatePageRequestComponentOrderInnerFromJSON)),
|
|
114
114
|
'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
@@ -129,7 +129,7 @@ export function UpdatePageRequestToJSONTyped(value?: UpdatePageRequest | null, i
|
|
|
129
129
|
'name': value['name'],
|
|
130
130
|
'slug': value['slug'],
|
|
131
131
|
'enabled': value['enabled'],
|
|
132
|
-
'start_date': value['startDate'],
|
|
132
|
+
'start_date': value['startDate'] === null ? null : ((value['startDate'] as any)?.toISOString()),
|
|
133
133
|
'blog': CreatePageRequestBlogToJSON(value['blog']),
|
|
134
134
|
'component_order': value['componentOrder'] == null ? undefined : ((value['componentOrder'] as Array<any>).map(UpdatePageRequestComponentOrderInnerToJSON)),
|
|
135
135
|
'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
|
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';
|
|
@@ -228,8 +227,6 @@ export * from './FrontendOrderResource';
|
|
|
228
227
|
export * from './FrontendOrderResourceArrayResponse';
|
|
229
228
|
export * from './FrontendOrderResourceFulfillmentsInner';
|
|
230
229
|
export * from './FrontendOrderResourceFulfillmentsInnerItemsInner';
|
|
231
|
-
export * from './GeneratedCouponCodeResource';
|
|
232
|
-
export * from './GeneratedCouponCodeResourceArrayResponse';
|
|
233
230
|
export * from './GenericResponse';
|
|
234
231
|
export * from './GetUniqueEndpointsRequest';
|
|
235
232
|
export * from './GlobalSearchCategoryResource';
|
|
@@ -292,7 +289,6 @@ export * from './OrderFulfillmentLineItemResource';
|
|
|
292
289
|
export * from './OrderFulfillmentLineItemResourceArrayResponse';
|
|
293
290
|
export * from './OrderFulfillmentResource';
|
|
294
291
|
export * from './OrderFulfillmentResourceArrayResponse';
|
|
295
|
-
export * from './OrderFulfillmentStatus';
|
|
296
292
|
export * from './OrderListResource';
|
|
297
293
|
export * from './OrderListResourceArrayResponse';
|
|
298
294
|
export * from './OrderLiteResource';
|
|
@@ -406,7 +402,6 @@ export * from './PaginatedSiteLiteResourceResponse';
|
|
|
406
402
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
407
403
|
export * from './PaginatedSiteNotificationResourceResponse';
|
|
408
404
|
export * from './PaginatedSiteResourceResponse';
|
|
409
|
-
export * from './PaginatedStoreCreditListResourceResponse';
|
|
410
405
|
export * from './PaginatedStoreListResourceResponse';
|
|
411
406
|
export * from './PaginatedSupplierFrontendResourceResponse';
|
|
412
407
|
export * from './PaginatedSupplierListResourceResponse';
|
|
@@ -652,7 +647,6 @@ export * from './SearchReviewsRequest';
|
|
|
652
647
|
export * from './SearchRolesRequest';
|
|
653
648
|
export * from './SearchSiteNotificationsRequest';
|
|
654
649
|
export * from './SearchSitesRequest';
|
|
655
|
-
export * from './SearchStoreCreditsRequest';
|
|
656
650
|
export * from './SearchStoresRequest';
|
|
657
651
|
export * from './SearchSuppliersRequest';
|
|
658
652
|
export * from './SearchTagsRequest';
|
|
@@ -677,10 +671,6 @@ export * from './SiteResource';
|
|
|
677
671
|
export * from './SiteResourceArrayResponse';
|
|
678
672
|
export * from './SkuSearchProductChildRequest';
|
|
679
673
|
export * from './SocialProvider';
|
|
680
|
-
export * from './StoreCreditListResource';
|
|
681
|
-
export * from './StoreCreditListResourceArrayResponse';
|
|
682
|
-
export * from './StoreCreditLiteResource';
|
|
683
|
-
export * from './StoreCreditLiteResourceArrayResponse';
|
|
684
674
|
export * from './StoreFrontendResource';
|
|
685
675
|
export * from './StoreFrontendResourceArrayResponse';
|
|
686
676
|
export * from './StoreListResource';
|