@usethrottle/api-client 1.3.0 → 1.4.1
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/dist/generated/services/ApplicationsService.d.ts +4 -8
- package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationsService.js.map +1 -1
- package/dist/generated/services/CartsService.d.ts +14 -28
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +13 -24
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +2 -2
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DiscountsService.d.ts +50 -64
- package/dist/generated/services/DiscountsService.d.ts.map +1 -1
- package/dist/generated/services/DiscountsService.js +2 -4
- package/dist/generated/services/DiscountsService.js.map +1 -1
- package/dist/generated/services/EventsService.d.ts +10 -12
- package/dist/generated/services/EventsService.d.ts.map +1 -1
- package/dist/generated/services/EventsService.js +2 -2
- package/dist/generated/services/EventsService.js.map +1 -1
- package/dist/generated/services/ExtensionsService.d.ts +59 -67
- package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
- package/dist/generated/services/ExtensionsService.js.map +1 -1
- package/dist/generated/services/FulfillmentsService.d.ts +34 -44
- package/dist/generated/services/FulfillmentsService.d.ts.map +1 -1
- package/dist/generated/services/FulfillmentsService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +142 -155
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +3 -5
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PaymentMethodsService.d.ts +6 -6
- package/dist/generated/services/PaymentMethodsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentMethodsService.js +1 -1
- package/dist/generated/services/PaymentsService.d.ts +75 -83
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/StoresService.d.ts +21 -25
- package/dist/generated/services/StoresService.d.ts.map +1 -1
- package/dist/generated/services/StoresService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +72 -80
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +2 -2
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +5 -5
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.js +3 -3
- package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
- package/dist/generated/services/WebhooksService.d.ts +35 -41
- package/dist/generated/services/WebhooksService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksService.js.map +1 -1
- package/dist/generated/services/WorkspaceService.d.ts +1 -1
- package/dist/generated/services/WorkspaceService.d.ts.map +1 -1
- package/dist/generated/services/WorkspacesService.d.ts +4 -8
- package/dist/generated/services/WorkspacesService.d.ts.map +1 -1
- package/dist/generated/services/WorkspacesService.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,39 +7,38 @@ export declare class OrdersService {
|
|
|
7
7
|
* @throws ApiError
|
|
8
8
|
*/
|
|
9
9
|
static postApiV1Orders(requestBody: {
|
|
10
|
-
|
|
11
|
-
customer_id?: string;
|
|
10
|
+
customerId?: string;
|
|
12
11
|
currency?: string;
|
|
13
12
|
source?: 'web' | 'mobile' | 'pos' | 'api';
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
billingAddress?: Record<string, any>;
|
|
14
|
+
shippingAddress?: Record<string, any>;
|
|
16
15
|
notes?: string;
|
|
17
16
|
/**
|
|
18
17
|
* Arbitrary key-value metadata
|
|
19
18
|
*/
|
|
20
19
|
metadata?: Record<string, any>;
|
|
21
|
-
|
|
20
|
+
lineItems?: Array<{
|
|
22
21
|
type?: 'product' | 'subscription' | 'service' | 'ticket' | 'donation' | 'custom';
|
|
23
22
|
/**
|
|
24
23
|
* Merchant's external ID (SKU, plan ID, etc.)
|
|
25
24
|
*/
|
|
26
|
-
|
|
25
|
+
referenceId?: string;
|
|
27
26
|
name: string;
|
|
28
27
|
description?: string;
|
|
29
28
|
/**
|
|
30
29
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
unitPrice: number;
|
|
33
32
|
quantity?: number;
|
|
34
33
|
/**
|
|
35
34
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
36
35
|
*/
|
|
37
|
-
|
|
36
|
+
taxAmount?: number;
|
|
38
37
|
/**
|
|
39
38
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
40
39
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
discountAmount?: number;
|
|
41
|
+
imageUrl?: string;
|
|
43
42
|
/**
|
|
44
43
|
* Arbitrary key-value metadata
|
|
45
44
|
*/
|
|
@@ -48,14 +47,14 @@ export declare class OrdersService {
|
|
|
48
47
|
}): CancelablePromise<{
|
|
49
48
|
data?: {
|
|
50
49
|
id?: string;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
workspaceId?: string;
|
|
51
|
+
discountId?: string | null;
|
|
52
|
+
discountCode?: string | null;
|
|
53
|
+
orderNumber?: string;
|
|
55
54
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
56
55
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
57
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
59
58
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
60
59
|
currency?: string;
|
|
61
60
|
/**
|
|
@@ -65,15 +64,15 @@ export declare class OrdersService {
|
|
|
65
64
|
/**
|
|
66
65
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
67
66
|
*/
|
|
68
|
-
|
|
67
|
+
taxTotal?: number;
|
|
69
68
|
/**
|
|
70
69
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
71
70
|
*/
|
|
72
|
-
|
|
71
|
+
discountTotal?: number;
|
|
73
72
|
/**
|
|
74
73
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
75
74
|
*/
|
|
76
|
-
|
|
75
|
+
shippingTotal?: number;
|
|
77
76
|
/**
|
|
78
77
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
79
78
|
*/
|
|
@@ -82,15 +81,14 @@ export declare class OrdersService {
|
|
|
82
81
|
* Arbitrary key-value metadata
|
|
83
82
|
*/
|
|
84
83
|
metadata?: Record<string, any>;
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
createdAt?: string;
|
|
85
|
+
updatedAt?: string;
|
|
87
86
|
};
|
|
88
87
|
meta?: {
|
|
89
|
-
|
|
88
|
+
requestId?: string;
|
|
90
89
|
pagination?: {
|
|
91
90
|
cursor?: string | null;
|
|
92
91
|
hasMore?: boolean;
|
|
93
|
-
has_more?: boolean;
|
|
94
92
|
};
|
|
95
93
|
};
|
|
96
94
|
}>;
|
|
@@ -104,21 +102,20 @@ export declare class OrdersService {
|
|
|
104
102
|
* @param source
|
|
105
103
|
* @param q Search order id, number, source, status, or metadata.
|
|
106
104
|
* @param customerId
|
|
107
|
-
* @param storeId
|
|
108
105
|
* @returns any Default Response
|
|
109
106
|
* @throws ApiError
|
|
110
107
|
*/
|
|
111
|
-
static getApiV1Orders(cursor?: string, limit?: number, status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided', type?: 'one_time' | 'recurring' | 'mixed', source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine', q?: string, customerId?: string
|
|
108
|
+
static getApiV1Orders(cursor?: string, limit?: number, status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided', type?: 'one_time' | 'recurring' | 'mixed', source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine', q?: string, customerId?: string): CancelablePromise<{
|
|
112
109
|
data?: Array<{
|
|
113
110
|
id?: string;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
workspaceId?: string;
|
|
112
|
+
discountId?: string | null;
|
|
113
|
+
discountCode?: string | null;
|
|
114
|
+
orderNumber?: string;
|
|
118
115
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
119
116
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
118
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
122
119
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
123
120
|
currency?: string;
|
|
124
121
|
/**
|
|
@@ -128,15 +125,15 @@ export declare class OrdersService {
|
|
|
128
125
|
/**
|
|
129
126
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
130
127
|
*/
|
|
131
|
-
|
|
128
|
+
taxTotal?: number;
|
|
132
129
|
/**
|
|
133
130
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
134
131
|
*/
|
|
135
|
-
|
|
132
|
+
discountTotal?: number;
|
|
136
133
|
/**
|
|
137
134
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
138
135
|
*/
|
|
139
|
-
|
|
136
|
+
shippingTotal?: number;
|
|
140
137
|
/**
|
|
141
138
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
142
139
|
*/
|
|
@@ -145,15 +142,14 @@ export declare class OrdersService {
|
|
|
145
142
|
* Arbitrary key-value metadata
|
|
146
143
|
*/
|
|
147
144
|
metadata?: Record<string, any>;
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
createdAt?: string;
|
|
146
|
+
updatedAt?: string;
|
|
150
147
|
}>;
|
|
151
148
|
meta?: {
|
|
152
|
-
|
|
149
|
+
requestId?: string;
|
|
153
150
|
pagination?: {
|
|
154
151
|
cursor?: string | null;
|
|
155
152
|
hasMore?: boolean;
|
|
156
|
-
has_more?: boolean;
|
|
157
153
|
};
|
|
158
154
|
};
|
|
159
155
|
}>;
|
|
@@ -166,14 +162,14 @@ export declare class OrdersService {
|
|
|
166
162
|
static getApiV1Orders1(id: string): CancelablePromise<{
|
|
167
163
|
data?: {
|
|
168
164
|
id?: string;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
workspaceId?: string;
|
|
166
|
+
discountId?: string | null;
|
|
167
|
+
discountCode?: string | null;
|
|
168
|
+
orderNumber?: string;
|
|
173
169
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
174
170
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
172
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
177
173
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
178
174
|
currency?: string;
|
|
179
175
|
/**
|
|
@@ -183,15 +179,15 @@ export declare class OrdersService {
|
|
|
183
179
|
/**
|
|
184
180
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
185
181
|
*/
|
|
186
|
-
|
|
182
|
+
taxTotal?: number;
|
|
187
183
|
/**
|
|
188
184
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
189
185
|
*/
|
|
190
|
-
|
|
186
|
+
discountTotal?: number;
|
|
191
187
|
/**
|
|
192
188
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
193
189
|
*/
|
|
194
|
-
|
|
190
|
+
shippingTotal?: number;
|
|
195
191
|
/**
|
|
196
192
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
197
193
|
*/
|
|
@@ -200,15 +196,14 @@ export declare class OrdersService {
|
|
|
200
196
|
* Arbitrary key-value metadata
|
|
201
197
|
*/
|
|
202
198
|
metadata?: Record<string, any>;
|
|
203
|
-
|
|
204
|
-
|
|
199
|
+
createdAt?: string;
|
|
200
|
+
updatedAt?: string;
|
|
205
201
|
};
|
|
206
202
|
meta?: {
|
|
207
|
-
|
|
203
|
+
requestId?: string;
|
|
208
204
|
pagination?: {
|
|
209
205
|
cursor?: string | null;
|
|
210
206
|
hasMore?: boolean;
|
|
211
|
-
has_more?: boolean;
|
|
212
207
|
};
|
|
213
208
|
};
|
|
214
209
|
}>;
|
|
@@ -220,8 +215,8 @@ export declare class OrdersService {
|
|
|
220
215
|
* @throws ApiError
|
|
221
216
|
*/
|
|
222
217
|
static patchApiV1Orders(id: string, requestBody: {
|
|
223
|
-
|
|
224
|
-
|
|
218
|
+
billingAddress?: Record<string, any>;
|
|
219
|
+
shippingAddress?: Record<string, any>;
|
|
225
220
|
notes?: string;
|
|
226
221
|
/**
|
|
227
222
|
* Arbitrary key-value metadata
|
|
@@ -230,14 +225,14 @@ export declare class OrdersService {
|
|
|
230
225
|
}): CancelablePromise<{
|
|
231
226
|
data?: {
|
|
232
227
|
id?: string;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
228
|
+
workspaceId?: string;
|
|
229
|
+
discountId?: string | null;
|
|
230
|
+
discountCode?: string | null;
|
|
231
|
+
orderNumber?: string;
|
|
237
232
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
238
233
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
239
|
-
|
|
240
|
-
|
|
234
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
235
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
241
236
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
242
237
|
currency?: string;
|
|
243
238
|
/**
|
|
@@ -247,15 +242,15 @@ export declare class OrdersService {
|
|
|
247
242
|
/**
|
|
248
243
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
249
244
|
*/
|
|
250
|
-
|
|
245
|
+
taxTotal?: number;
|
|
251
246
|
/**
|
|
252
247
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
253
248
|
*/
|
|
254
|
-
|
|
249
|
+
discountTotal?: number;
|
|
255
250
|
/**
|
|
256
251
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
257
252
|
*/
|
|
258
|
-
|
|
253
|
+
shippingTotal?: number;
|
|
259
254
|
/**
|
|
260
255
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
261
256
|
*/
|
|
@@ -264,15 +259,14 @@ export declare class OrdersService {
|
|
|
264
259
|
* Arbitrary key-value metadata
|
|
265
260
|
*/
|
|
266
261
|
metadata?: Record<string, any>;
|
|
267
|
-
|
|
268
|
-
|
|
262
|
+
createdAt?: string;
|
|
263
|
+
updatedAt?: string;
|
|
269
264
|
};
|
|
270
265
|
meta?: {
|
|
271
|
-
|
|
266
|
+
requestId?: string;
|
|
272
267
|
pagination?: {
|
|
273
268
|
cursor?: string | null;
|
|
274
269
|
hasMore?: boolean;
|
|
275
|
-
has_more?: boolean;
|
|
276
270
|
};
|
|
277
271
|
};
|
|
278
272
|
}>;
|
|
@@ -285,14 +279,14 @@ export declare class OrdersService {
|
|
|
285
279
|
static postApiV1OrdersCheckout(id: string): CancelablePromise<{
|
|
286
280
|
data?: {
|
|
287
281
|
id?: string;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
282
|
+
workspaceId?: string;
|
|
283
|
+
discountId?: string | null;
|
|
284
|
+
discountCode?: string | null;
|
|
285
|
+
orderNumber?: string;
|
|
292
286
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
293
287
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
294
|
-
|
|
295
|
-
|
|
288
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
289
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
296
290
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
297
291
|
currency?: string;
|
|
298
292
|
/**
|
|
@@ -302,15 +296,15 @@ export declare class OrdersService {
|
|
|
302
296
|
/**
|
|
303
297
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
304
298
|
*/
|
|
305
|
-
|
|
299
|
+
taxTotal?: number;
|
|
306
300
|
/**
|
|
307
301
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
308
302
|
*/
|
|
309
|
-
|
|
303
|
+
discountTotal?: number;
|
|
310
304
|
/**
|
|
311
305
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
312
306
|
*/
|
|
313
|
-
|
|
307
|
+
shippingTotal?: number;
|
|
314
308
|
/**
|
|
315
309
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
316
310
|
*/
|
|
@@ -319,15 +313,14 @@ export declare class OrdersService {
|
|
|
319
313
|
* Arbitrary key-value metadata
|
|
320
314
|
*/
|
|
321
315
|
metadata?: Record<string, any>;
|
|
322
|
-
|
|
323
|
-
|
|
316
|
+
createdAt?: string;
|
|
317
|
+
updatedAt?: string;
|
|
324
318
|
};
|
|
325
319
|
meta?: {
|
|
326
|
-
|
|
320
|
+
requestId?: string;
|
|
327
321
|
pagination?: {
|
|
328
322
|
cursor?: string | null;
|
|
329
323
|
hasMore?: boolean;
|
|
330
|
-
has_more?: boolean;
|
|
331
324
|
};
|
|
332
325
|
};
|
|
333
326
|
}>;
|
|
@@ -343,14 +336,14 @@ export declare class OrdersService {
|
|
|
343
336
|
}): CancelablePromise<{
|
|
344
337
|
data?: {
|
|
345
338
|
id?: string;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
339
|
+
workspaceId?: string;
|
|
340
|
+
discountId?: string | null;
|
|
341
|
+
discountCode?: string | null;
|
|
342
|
+
orderNumber?: string;
|
|
350
343
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
351
344
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
352
|
-
|
|
353
|
-
|
|
345
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
346
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
354
347
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
355
348
|
currency?: string;
|
|
356
349
|
/**
|
|
@@ -360,15 +353,15 @@ export declare class OrdersService {
|
|
|
360
353
|
/**
|
|
361
354
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
362
355
|
*/
|
|
363
|
-
|
|
356
|
+
taxTotal?: number;
|
|
364
357
|
/**
|
|
365
358
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
366
359
|
*/
|
|
367
|
-
|
|
360
|
+
discountTotal?: number;
|
|
368
361
|
/**
|
|
369
362
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
370
363
|
*/
|
|
371
|
-
|
|
364
|
+
shippingTotal?: number;
|
|
372
365
|
/**
|
|
373
366
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
374
367
|
*/
|
|
@@ -377,15 +370,14 @@ export declare class OrdersService {
|
|
|
377
370
|
* Arbitrary key-value metadata
|
|
378
371
|
*/
|
|
379
372
|
metadata?: Record<string, any>;
|
|
380
|
-
|
|
381
|
-
|
|
373
|
+
createdAt?: string;
|
|
374
|
+
updatedAt?: string;
|
|
382
375
|
};
|
|
383
376
|
meta?: {
|
|
384
|
-
|
|
377
|
+
requestId?: string;
|
|
385
378
|
pagination?: {
|
|
386
379
|
cursor?: string | null;
|
|
387
380
|
hasMore?: boolean;
|
|
388
|
-
has_more?: boolean;
|
|
389
381
|
};
|
|
390
382
|
};
|
|
391
383
|
}>;
|
|
@@ -401,14 +393,14 @@ export declare class OrdersService {
|
|
|
401
393
|
}): CancelablePromise<{
|
|
402
394
|
data?: {
|
|
403
395
|
id?: string;
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
396
|
+
workspaceId?: string;
|
|
397
|
+
discountId?: string | null;
|
|
398
|
+
discountCode?: string | null;
|
|
399
|
+
orderNumber?: string;
|
|
408
400
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
409
401
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
410
|
-
|
|
411
|
-
|
|
402
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
403
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
412
404
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
413
405
|
currency?: string;
|
|
414
406
|
/**
|
|
@@ -418,15 +410,15 @@ export declare class OrdersService {
|
|
|
418
410
|
/**
|
|
419
411
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
420
412
|
*/
|
|
421
|
-
|
|
413
|
+
taxTotal?: number;
|
|
422
414
|
/**
|
|
423
415
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
424
416
|
*/
|
|
425
|
-
|
|
417
|
+
discountTotal?: number;
|
|
426
418
|
/**
|
|
427
419
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
428
420
|
*/
|
|
429
|
-
|
|
421
|
+
shippingTotal?: number;
|
|
430
422
|
/**
|
|
431
423
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
432
424
|
*/
|
|
@@ -435,15 +427,14 @@ export declare class OrdersService {
|
|
|
435
427
|
* Arbitrary key-value metadata
|
|
436
428
|
*/
|
|
437
429
|
metadata?: Record<string, any>;
|
|
438
|
-
|
|
439
|
-
|
|
430
|
+
createdAt?: string;
|
|
431
|
+
updatedAt?: string;
|
|
440
432
|
};
|
|
441
433
|
meta?: {
|
|
442
|
-
|
|
434
|
+
requestId?: string;
|
|
443
435
|
pagination?: {
|
|
444
436
|
cursor?: string | null;
|
|
445
437
|
hasMore?: boolean;
|
|
446
|
-
has_more?: boolean;
|
|
447
438
|
};
|
|
448
439
|
};
|
|
449
440
|
}>;
|
|
@@ -459,14 +450,14 @@ export declare class OrdersService {
|
|
|
459
450
|
}): CancelablePromise<{
|
|
460
451
|
data?: {
|
|
461
452
|
id?: string;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
453
|
+
workspaceId?: string;
|
|
454
|
+
discountId?: string | null;
|
|
455
|
+
discountCode?: string | null;
|
|
456
|
+
orderNumber?: string;
|
|
466
457
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
467
458
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
468
|
-
|
|
469
|
-
|
|
459
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
460
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
470
461
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
471
462
|
currency?: string;
|
|
472
463
|
/**
|
|
@@ -476,15 +467,15 @@ export declare class OrdersService {
|
|
|
476
467
|
/**
|
|
477
468
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
478
469
|
*/
|
|
479
|
-
|
|
470
|
+
taxTotal?: number;
|
|
480
471
|
/**
|
|
481
472
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
482
473
|
*/
|
|
483
|
-
|
|
474
|
+
discountTotal?: number;
|
|
484
475
|
/**
|
|
485
476
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
486
477
|
*/
|
|
487
|
-
|
|
478
|
+
shippingTotal?: number;
|
|
488
479
|
/**
|
|
489
480
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
490
481
|
*/
|
|
@@ -493,15 +484,14 @@ export declare class OrdersService {
|
|
|
493
484
|
* Arbitrary key-value metadata
|
|
494
485
|
*/
|
|
495
486
|
metadata?: Record<string, any>;
|
|
496
|
-
|
|
497
|
-
|
|
487
|
+
createdAt?: string;
|
|
488
|
+
updatedAt?: string;
|
|
498
489
|
};
|
|
499
490
|
meta?: {
|
|
500
|
-
|
|
491
|
+
requestId?: string;
|
|
501
492
|
pagination?: {
|
|
502
493
|
cursor?: string | null;
|
|
503
494
|
hasMore?: boolean;
|
|
504
|
-
has_more?: boolean;
|
|
505
495
|
};
|
|
506
496
|
};
|
|
507
497
|
}>;
|
|
@@ -514,14 +504,14 @@ export declare class OrdersService {
|
|
|
514
504
|
static postApiV1OrdersComplete(id: string): CancelablePromise<{
|
|
515
505
|
data?: {
|
|
516
506
|
id?: string;
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
507
|
+
workspaceId?: string;
|
|
508
|
+
discountId?: string | null;
|
|
509
|
+
discountCode?: string | null;
|
|
510
|
+
orderNumber?: string;
|
|
521
511
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
522
512
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
523
|
-
|
|
524
|
-
|
|
513
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
514
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
525
515
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
526
516
|
currency?: string;
|
|
527
517
|
/**
|
|
@@ -531,15 +521,15 @@ export declare class OrdersService {
|
|
|
531
521
|
/**
|
|
532
522
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
533
523
|
*/
|
|
534
|
-
|
|
524
|
+
taxTotal?: number;
|
|
535
525
|
/**
|
|
536
526
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
537
527
|
*/
|
|
538
|
-
|
|
528
|
+
discountTotal?: number;
|
|
539
529
|
/**
|
|
540
530
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
541
531
|
*/
|
|
542
|
-
|
|
532
|
+
shippingTotal?: number;
|
|
543
533
|
/**
|
|
544
534
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
545
535
|
*/
|
|
@@ -548,15 +538,14 @@ export declare class OrdersService {
|
|
|
548
538
|
* Arbitrary key-value metadata
|
|
549
539
|
*/
|
|
550
540
|
metadata?: Record<string, any>;
|
|
551
|
-
|
|
552
|
-
|
|
541
|
+
createdAt?: string;
|
|
542
|
+
updatedAt?: string;
|
|
553
543
|
};
|
|
554
544
|
meta?: {
|
|
555
|
-
|
|
545
|
+
requestId?: string;
|
|
556
546
|
pagination?: {
|
|
557
547
|
cursor?: string | null;
|
|
558
548
|
hasMore?: boolean;
|
|
559
|
-
has_more?: boolean;
|
|
560
549
|
};
|
|
561
550
|
};
|
|
562
551
|
}>;
|
|
@@ -569,14 +558,14 @@ export declare class OrdersService {
|
|
|
569
558
|
static postApiV1OrdersClose(id: string): CancelablePromise<{
|
|
570
559
|
data?: {
|
|
571
560
|
id?: string;
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
561
|
+
workspaceId?: string;
|
|
562
|
+
discountId?: string | null;
|
|
563
|
+
discountCode?: string | null;
|
|
564
|
+
orderNumber?: string;
|
|
576
565
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'completed' | 'cancelled' | 'closed';
|
|
577
566
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
578
|
-
|
|
579
|
-
|
|
567
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_refunded' | 'refunded' | 'failed' | 'voided';
|
|
568
|
+
fulfillmentStatus?: 'unfulfilled' | 'partially_fulfilled' | 'fulfilled' | 'not_applicable';
|
|
580
569
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
581
570
|
currency?: string;
|
|
582
571
|
/**
|
|
@@ -586,15 +575,15 @@ export declare class OrdersService {
|
|
|
586
575
|
/**
|
|
587
576
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
588
577
|
*/
|
|
589
|
-
|
|
578
|
+
taxTotal?: number;
|
|
590
579
|
/**
|
|
591
580
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
592
581
|
*/
|
|
593
|
-
|
|
582
|
+
discountTotal?: number;
|
|
594
583
|
/**
|
|
595
584
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
596
585
|
*/
|
|
597
|
-
|
|
586
|
+
shippingTotal?: number;
|
|
598
587
|
/**
|
|
599
588
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
600
589
|
*/
|
|
@@ -603,15 +592,14 @@ export declare class OrdersService {
|
|
|
603
592
|
* Arbitrary key-value metadata
|
|
604
593
|
*/
|
|
605
594
|
metadata?: Record<string, any>;
|
|
606
|
-
|
|
607
|
-
|
|
595
|
+
createdAt?: string;
|
|
596
|
+
updatedAt?: string;
|
|
608
597
|
};
|
|
609
598
|
meta?: {
|
|
610
|
-
|
|
599
|
+
requestId?: string;
|
|
611
600
|
pagination?: {
|
|
612
601
|
cursor?: string | null;
|
|
613
602
|
hasMore?: boolean;
|
|
614
|
-
has_more?: boolean;
|
|
615
603
|
};
|
|
616
604
|
};
|
|
617
605
|
}>;
|
|
@@ -631,10 +619,10 @@ export declare class OrdersService {
|
|
|
631
619
|
}): CancelablePromise<{
|
|
632
620
|
data?: {
|
|
633
621
|
id?: string;
|
|
634
|
-
|
|
622
|
+
orderId?: string;
|
|
635
623
|
processor?: string;
|
|
636
|
-
|
|
637
|
-
|
|
624
|
+
processorTransactionId?: string | null;
|
|
625
|
+
processorResponse?: any | null;
|
|
638
626
|
/**
|
|
639
627
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
640
628
|
*/
|
|
@@ -642,23 +630,22 @@ export declare class OrdersService {
|
|
|
642
630
|
currency?: string;
|
|
643
631
|
status?: 'pending' | 'authorized' | 'captured' | 'failed' | 'voided' | 'refunded' | 'partially_refunded';
|
|
644
632
|
method?: 'card' | 'bank_transfer' | 'wallet' | 'cash' | 'external' | 'manual' | 'net30';
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
633
|
+
netN?: number;
|
|
634
|
+
netNSource?: 'customer_override' | 'cart_override' | 'global_default';
|
|
635
|
+
authorizedAt?: string | null;
|
|
636
|
+
capturedAt?: string | null;
|
|
637
|
+
voidedAt?: string | null;
|
|
650
638
|
/**
|
|
651
639
|
* Arbitrary key-value metadata
|
|
652
640
|
*/
|
|
653
641
|
metadata?: Record<string, any>;
|
|
654
|
-
|
|
642
|
+
createdAt?: string;
|
|
655
643
|
};
|
|
656
644
|
meta?: {
|
|
657
|
-
|
|
645
|
+
requestId?: string;
|
|
658
646
|
pagination?: {
|
|
659
647
|
cursor?: string | null;
|
|
660
648
|
hasMore?: boolean;
|
|
661
|
-
has_more?: boolean;
|
|
662
649
|
};
|
|
663
650
|
};
|
|
664
651
|
}>;
|