@digital8/lighting-illusions-ts-sdk 0.0.2793 → 0.0.2795
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 -10
- 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 +6 -2
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +3 -3
- package/dist/models/AdminOrderResource.d.ts +0 -12
- package/dist/models/AdminOrderResource.js +0 -8
- 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 +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- 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 +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- 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 +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/UpdatePageRequest.d.ts +2 -2
- package/dist/models/UpdatePageRequest.js +3 -2
- package/dist/models/index.d.ts +0 -9
- package/dist/models/index.js +0 -9
- 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 +6 -4
- package/src/models/AddressResource.ts +5 -5
- package/src/models/AdminOrderResource.ts +0 -18
- 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 +3 -2
- 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 +5 -5
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.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/UpdatePageRequest.ts +4 -4
- package/src/models/index.ts +0 -9
- 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/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/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 { 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 | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -106,10 +106,10 @@ 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;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
113
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
114
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
115
|
return true;
|
|
@@ -129,12 +129,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
129
|
'siteId': json['siteId'],
|
|
130
130
|
'name': json['name'],
|
|
131
131
|
'email': json['email'],
|
|
132
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
133
133
|
'phone': json['phone'],
|
|
134
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
135
|
'latitude': json['latitude'],
|
|
136
136
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
138
138
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
139
|
'specialDates': json['specialDates'],
|
|
140
140
|
'suppliers': json['suppliers'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -112,7 +112,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
116
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
117
|
return true;
|
|
@@ -136,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
136
135
|
'latitude': json['latitude'],
|
|
137
136
|
'tagLine': json['tagLine'],
|
|
138
137
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
138
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
140
139
|
'netsuiteId': json['netsuiteId'],
|
|
141
140
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
141
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -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 {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,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'],
|
|
@@ -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';
|
|
@@ -405,7 +402,6 @@ export * from './PaginatedSiteLiteResourceResponse';
|
|
|
405
402
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
406
403
|
export * from './PaginatedSiteNotificationResourceResponse';
|
|
407
404
|
export * from './PaginatedSiteResourceResponse';
|
|
408
|
-
export * from './PaginatedStoreCreditListResourceResponse';
|
|
409
405
|
export * from './PaginatedStoreListResourceResponse';
|
|
410
406
|
export * from './PaginatedSupplierFrontendResourceResponse';
|
|
411
407
|
export * from './PaginatedSupplierListResourceResponse';
|
|
@@ -651,7 +647,6 @@ export * from './SearchReviewsRequest';
|
|
|
651
647
|
export * from './SearchRolesRequest';
|
|
652
648
|
export * from './SearchSiteNotificationsRequest';
|
|
653
649
|
export * from './SearchSitesRequest';
|
|
654
|
-
export * from './SearchStoreCreditsRequest';
|
|
655
650
|
export * from './SearchStoresRequest';
|
|
656
651
|
export * from './SearchSuppliersRequest';
|
|
657
652
|
export * from './SearchTagsRequest';
|
|
@@ -676,10 +671,6 @@ export * from './SiteResource';
|
|
|
676
671
|
export * from './SiteResourceArrayResponse';
|
|
677
672
|
export * from './SkuSearchProductChildRequest';
|
|
678
673
|
export * from './SocialProvider';
|
|
679
|
-
export * from './StoreCreditListResource';
|
|
680
|
-
export * from './StoreCreditListResourceArrayResponse';
|
|
681
|
-
export * from './StoreCreditLiteResource';
|
|
682
|
-
export * from './StoreCreditLiteResourceArrayResponse';
|
|
683
674
|
export * from './StoreFrontendResource';
|
|
684
675
|
export * from './StoreFrontendResourceArrayResponse';
|
|
685
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
|
-
}
|