@usethrottle/api-client 5.29.1 → 6.0.0
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/__tests__/order-holds-types.test.js +4 -3
- package/dist/__tests__/order-holds-types.test.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +71 -1
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js +48 -1
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/ExtensionsService.d.ts +1 -1
- package/dist/generated/services/ExtensionsService.js +1 -1
- package/dist/generated/services/OrdersService.d.ts +247 -25
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +44 -10
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts +16 -1
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +3 -3
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/QuotesService.d.ts +18 -0
- package/dist/generated/services/QuotesService.d.ts.map +1 -1
- package/dist/generated/services/QuotesService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +3 -3
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -211,7 +211,11 @@ export declare class OrdersService {
|
|
|
211
211
|
shippingDiscountId?: string | null;
|
|
212
212
|
shippingDiscountCode?: string | null;
|
|
213
213
|
orderNumber?: string;
|
|
214
|
-
status?: 'draft' | '
|
|
214
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
215
|
+
/**
|
|
216
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
217
|
+
*/
|
|
218
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
215
219
|
displayStatus?: string;
|
|
216
220
|
fulfillmentSummary?: {
|
|
217
221
|
itemsTotal?: number;
|
|
@@ -357,7 +361,13 @@ export declare class OrdersService {
|
|
|
357
361
|
company?: string | null;
|
|
358
362
|
} | null;
|
|
359
363
|
cancelledAt?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
366
|
+
*/
|
|
360
367
|
completedAt?: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* When the order was marked completed.
|
|
370
|
+
*/
|
|
361
371
|
closedAt?: string | null;
|
|
362
372
|
createdAt?: string;
|
|
363
373
|
updatedAt?: string;
|
|
@@ -449,10 +459,11 @@ export declare class OrdersService {
|
|
|
449
459
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
450
460
|
* @param cursor Cursor for pagination (last item ID)
|
|
451
461
|
* @param limit Number of items per page
|
|
452
|
-
* @param status
|
|
462
|
+
* @param status Retired values accepted until 2027-02-20; see /docs/developers/reference/order-states/#renamed-statuses
|
|
453
463
|
* @param paymentStatus
|
|
464
|
+
* @param effectiveStatus Filter on the derived `effectiveStatus`: the lifecycle status unless the order is cancelled, on hold, refunded, partially refunded or disputed.
|
|
454
465
|
* @param type
|
|
455
|
-
* @param delivery Where the goods are. Derived from shipment and return records, not an order column: `not_shipped` = nothing has left yet on an order that still owes goods (status `
|
|
466
|
+
* @param delivery Where the goods are. Derived from shipment and return records, not an order column: `not_shipped` = nothing has left yet on an order that still owes goods (status `awaiting_fulfillment`, `awaiting_shipment` or `partially_shipped`, no returns), `in_transit` = something shipped and something has not arrived, `delivered` = every shipment arrived, `returned` = any items came back (a partial return included).
|
|
456
467
|
* @param source
|
|
457
468
|
* @param q Search order id, number, source, status, or metadata.
|
|
458
469
|
* @param customerId
|
|
@@ -463,7 +474,7 @@ export declare class OrdersService {
|
|
|
463
474
|
* @returns any Default Response
|
|
464
475
|
* @throws ApiError
|
|
465
476
|
*/
|
|
466
|
-
static getApiV1Orders(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | '
|
|
477
|
+
static getApiV1Orders(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired' | 'charged_back', effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed', type?: 'one_time' | 'recurring' | 'mixed', delivery?: 'not_shipped' | 'in_transit' | 'delivered' | 'returned', source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine', q?: string, customerId?: string, subscriptionId?: string, createdAfter?: string, createdBefore?: string, include?: 'lineItems'): CancelablePromise<{
|
|
467
478
|
data?: Array<{
|
|
468
479
|
id?: string;
|
|
469
480
|
workspaceId?: string;
|
|
@@ -472,7 +483,11 @@ export declare class OrdersService {
|
|
|
472
483
|
shippingDiscountId?: string | null;
|
|
473
484
|
shippingDiscountCode?: string | null;
|
|
474
485
|
orderNumber?: string;
|
|
475
|
-
status?: 'draft' | '
|
|
486
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
487
|
+
/**
|
|
488
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
489
|
+
*/
|
|
490
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
476
491
|
displayStatus?: string;
|
|
477
492
|
fulfillmentSummary?: {
|
|
478
493
|
itemsTotal?: number;
|
|
@@ -618,7 +633,13 @@ export declare class OrdersService {
|
|
|
618
633
|
company?: string | null;
|
|
619
634
|
} | null;
|
|
620
635
|
cancelledAt?: string | null;
|
|
636
|
+
/**
|
|
637
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
638
|
+
*/
|
|
621
639
|
completedAt?: string | null;
|
|
640
|
+
/**
|
|
641
|
+
* When the order was marked completed.
|
|
642
|
+
*/
|
|
622
643
|
closedAt?: string | null;
|
|
623
644
|
createdAt?: string;
|
|
624
645
|
updatedAt?: string;
|
|
@@ -710,10 +731,11 @@ export declare class OrdersService {
|
|
|
710
731
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
711
732
|
* @param cursor Cursor for pagination (last item ID)
|
|
712
733
|
* @param limit Number of items per page
|
|
713
|
-
* @param status
|
|
734
|
+
* @param status Retired values accepted until 2027-02-20; see /docs/developers/reference/order-states/#renamed-statuses
|
|
714
735
|
* @param paymentStatus
|
|
736
|
+
* @param effectiveStatus Filter on the derived `effectiveStatus`: the lifecycle status unless the order is cancelled, on hold, refunded, partially refunded or disputed.
|
|
715
737
|
* @param type
|
|
716
|
-
* @param delivery Where the goods are. Derived from shipment and return records, not an order column: `not_shipped` = nothing has left yet on an order that still owes goods (status `
|
|
738
|
+
* @param delivery Where the goods are. Derived from shipment and return records, not an order column: `not_shipped` = nothing has left yet on an order that still owes goods (status `awaiting_fulfillment`, `awaiting_shipment` or `partially_shipped`, no returns), `in_transit` = something shipped and something has not arrived, `delivered` = every shipment arrived, `returned` = any items came back (a partial return included).
|
|
717
739
|
* @param source
|
|
718
740
|
* @param q Search order id, number, source, status, or metadata.
|
|
719
741
|
* @param customerId
|
|
@@ -724,7 +746,7 @@ export declare class OrdersService {
|
|
|
724
746
|
* @returns any Default Response
|
|
725
747
|
* @throws ApiError
|
|
726
748
|
*/
|
|
727
|
-
static getApiV1OrdersExportCsv(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | '
|
|
749
|
+
static getApiV1OrdersExportCsv(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired' | 'charged_back', effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed', type?: 'one_time' | 'recurring' | 'mixed', delivery?: 'not_shipped' | 'in_transit' | 'delivered' | 'returned', source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine', q?: string, customerId?: string, subscriptionId?: string, createdAfter?: string, createdBefore?: string, include?: 'lineItems'): CancelablePromise<any>;
|
|
728
750
|
/**
|
|
729
751
|
* Get an order by ID (includes line items, plus `capturedAmount` and `refundedAmount`)
|
|
730
752
|
* @param id
|
|
@@ -741,7 +763,11 @@ export declare class OrdersService {
|
|
|
741
763
|
shippingDiscountId?: string | null;
|
|
742
764
|
shippingDiscountCode?: string | null;
|
|
743
765
|
orderNumber?: string;
|
|
744
|
-
status?: 'draft' | '
|
|
766
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
767
|
+
/**
|
|
768
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
769
|
+
*/
|
|
770
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
745
771
|
displayStatus?: string;
|
|
746
772
|
fulfillmentSummary?: {
|
|
747
773
|
itemsTotal?: number;
|
|
@@ -887,7 +913,13 @@ export declare class OrdersService {
|
|
|
887
913
|
company?: string | null;
|
|
888
914
|
} | null;
|
|
889
915
|
cancelledAt?: string | null;
|
|
916
|
+
/**
|
|
917
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
918
|
+
*/
|
|
890
919
|
completedAt?: string | null;
|
|
920
|
+
/**
|
|
921
|
+
* When the order was marked completed.
|
|
922
|
+
*/
|
|
891
923
|
closedAt?: string | null;
|
|
892
924
|
createdAt?: string;
|
|
893
925
|
updatedAt?: string;
|
|
@@ -1047,7 +1079,11 @@ export declare class OrdersService {
|
|
|
1047
1079
|
shippingDiscountId?: string | null;
|
|
1048
1080
|
shippingDiscountCode?: string | null;
|
|
1049
1081
|
orderNumber?: string;
|
|
1050
|
-
status?: 'draft' | '
|
|
1082
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
1083
|
+
/**
|
|
1084
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
1085
|
+
*/
|
|
1086
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
1051
1087
|
displayStatus?: string;
|
|
1052
1088
|
fulfillmentSummary?: {
|
|
1053
1089
|
itemsTotal?: number;
|
|
@@ -1193,7 +1229,13 @@ export declare class OrdersService {
|
|
|
1193
1229
|
company?: string | null;
|
|
1194
1230
|
} | null;
|
|
1195
1231
|
cancelledAt?: string | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
1234
|
+
*/
|
|
1196
1235
|
completedAt?: string | null;
|
|
1236
|
+
/**
|
|
1237
|
+
* When the order was marked completed.
|
|
1238
|
+
*/
|
|
1197
1239
|
closedAt?: string | null;
|
|
1198
1240
|
createdAt?: string;
|
|
1199
1241
|
updatedAt?: string;
|
|
@@ -1304,7 +1346,11 @@ export declare class OrdersService {
|
|
|
1304
1346
|
shippingDiscountId?: string | null;
|
|
1305
1347
|
shippingDiscountCode?: string | null;
|
|
1306
1348
|
orderNumber?: string;
|
|
1307
|
-
status?: 'draft' | '
|
|
1349
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
1350
|
+
/**
|
|
1351
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
1352
|
+
*/
|
|
1353
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
1308
1354
|
displayStatus?: string;
|
|
1309
1355
|
fulfillmentSummary?: {
|
|
1310
1356
|
itemsTotal?: number;
|
|
@@ -1450,7 +1496,13 @@ export declare class OrdersService {
|
|
|
1450
1496
|
company?: string | null;
|
|
1451
1497
|
} | null;
|
|
1452
1498
|
cancelledAt?: string | null;
|
|
1499
|
+
/**
|
|
1500
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
1501
|
+
*/
|
|
1453
1502
|
completedAt?: string | null;
|
|
1503
|
+
/**
|
|
1504
|
+
* When the order was marked completed.
|
|
1505
|
+
*/
|
|
1454
1506
|
closedAt?: string | null;
|
|
1455
1507
|
createdAt?: string;
|
|
1456
1508
|
updatedAt?: string;
|
|
@@ -1556,7 +1608,11 @@ export declare class OrdersService {
|
|
|
1556
1608
|
shippingDiscountId?: string | null;
|
|
1557
1609
|
shippingDiscountCode?: string | null;
|
|
1558
1610
|
orderNumber?: string;
|
|
1559
|
-
status?: 'draft' | '
|
|
1611
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
1612
|
+
/**
|
|
1613
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
1614
|
+
*/
|
|
1615
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
1560
1616
|
displayStatus?: string;
|
|
1561
1617
|
fulfillmentSummary?: {
|
|
1562
1618
|
itemsTotal?: number;
|
|
@@ -1702,7 +1758,13 @@ export declare class OrdersService {
|
|
|
1702
1758
|
company?: string | null;
|
|
1703
1759
|
} | null;
|
|
1704
1760
|
cancelledAt?: string | null;
|
|
1761
|
+
/**
|
|
1762
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
1763
|
+
*/
|
|
1705
1764
|
completedAt?: string | null;
|
|
1765
|
+
/**
|
|
1766
|
+
* When the order was marked completed.
|
|
1767
|
+
*/
|
|
1706
1768
|
closedAt?: string | null;
|
|
1707
1769
|
createdAt?: string;
|
|
1708
1770
|
updatedAt?: string;
|
|
@@ -1808,7 +1870,11 @@ export declare class OrdersService {
|
|
|
1808
1870
|
shippingDiscountId?: string | null;
|
|
1809
1871
|
shippingDiscountCode?: string | null;
|
|
1810
1872
|
orderNumber?: string;
|
|
1811
|
-
status?: 'draft' | '
|
|
1873
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
1874
|
+
/**
|
|
1875
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
1876
|
+
*/
|
|
1877
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
1812
1878
|
displayStatus?: string;
|
|
1813
1879
|
fulfillmentSummary?: {
|
|
1814
1880
|
itemsTotal?: number;
|
|
@@ -1954,7 +2020,13 @@ export declare class OrdersService {
|
|
|
1954
2020
|
company?: string | null;
|
|
1955
2021
|
} | null;
|
|
1956
2022
|
cancelledAt?: string | null;
|
|
2023
|
+
/**
|
|
2024
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
2025
|
+
*/
|
|
1957
2026
|
completedAt?: string | null;
|
|
2027
|
+
/**
|
|
2028
|
+
* When the order was marked completed.
|
|
2029
|
+
*/
|
|
1958
2030
|
closedAt?: string | null;
|
|
1959
2031
|
createdAt?: string;
|
|
1960
2032
|
updatedAt?: string;
|
|
@@ -2061,7 +2133,11 @@ export declare class OrdersService {
|
|
|
2061
2133
|
shippingDiscountId?: string | null;
|
|
2062
2134
|
shippingDiscountCode?: string | null;
|
|
2063
2135
|
orderNumber?: string;
|
|
2064
|
-
status?: 'draft' | '
|
|
2136
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
2137
|
+
/**
|
|
2138
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
2139
|
+
*/
|
|
2140
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
2065
2141
|
displayStatus?: string;
|
|
2066
2142
|
fulfillmentSummary?: {
|
|
2067
2143
|
itemsTotal?: number;
|
|
@@ -2207,7 +2283,13 @@ export declare class OrdersService {
|
|
|
2207
2283
|
company?: string | null;
|
|
2208
2284
|
} | null;
|
|
2209
2285
|
cancelledAt?: string | null;
|
|
2286
|
+
/**
|
|
2287
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
2288
|
+
*/
|
|
2210
2289
|
completedAt?: string | null;
|
|
2290
|
+
/**
|
|
2291
|
+
* When the order was marked completed.
|
|
2292
|
+
*/
|
|
2211
2293
|
closedAt?: string | null;
|
|
2212
2294
|
createdAt?: string;
|
|
2213
2295
|
updatedAt?: string;
|
|
@@ -2312,7 +2394,10 @@ export declare class OrdersService {
|
|
|
2312
2394
|
* @throws ApiError
|
|
2313
2395
|
*/
|
|
2314
2396
|
static postApiV1OrdersStatus(id: string, requestBody: {
|
|
2315
|
-
|
|
2397
|
+
/**
|
|
2398
|
+
* Retired values accepted until 2027-02-20; see /docs/developers/reference/order-states/#renamed-statuses
|
|
2399
|
+
*/
|
|
2400
|
+
status: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'closed';
|
|
2316
2401
|
reason?: string;
|
|
2317
2402
|
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
2318
2403
|
data?: {
|
|
@@ -2323,7 +2408,11 @@ export declare class OrdersService {
|
|
|
2323
2408
|
shippingDiscountId?: string | null;
|
|
2324
2409
|
shippingDiscountCode?: string | null;
|
|
2325
2410
|
orderNumber?: string;
|
|
2326
|
-
status?: 'draft' | '
|
|
2411
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
2412
|
+
/**
|
|
2413
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
2414
|
+
*/
|
|
2415
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
2327
2416
|
displayStatus?: string;
|
|
2328
2417
|
fulfillmentSummary?: {
|
|
2329
2418
|
itemsTotal?: number;
|
|
@@ -2469,7 +2558,13 @@ export declare class OrdersService {
|
|
|
2469
2558
|
company?: string | null;
|
|
2470
2559
|
} | null;
|
|
2471
2560
|
cancelledAt?: string | null;
|
|
2561
|
+
/**
|
|
2562
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
2563
|
+
*/
|
|
2472
2564
|
completedAt?: string | null;
|
|
2565
|
+
/**
|
|
2566
|
+
* When the order was marked completed.
|
|
2567
|
+
*/
|
|
2473
2568
|
closedAt?: string | null;
|
|
2474
2569
|
createdAt?: string;
|
|
2475
2570
|
updatedAt?: string;
|
|
@@ -2575,7 +2670,11 @@ export declare class OrdersService {
|
|
|
2575
2670
|
shippingDiscountId?: string | null;
|
|
2576
2671
|
shippingDiscountCode?: string | null;
|
|
2577
2672
|
orderNumber?: string;
|
|
2578
|
-
status?: 'draft' | '
|
|
2673
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
2674
|
+
/**
|
|
2675
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
2676
|
+
*/
|
|
2677
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
2579
2678
|
displayStatus?: string;
|
|
2580
2679
|
fulfillmentSummary?: {
|
|
2581
2680
|
itemsTotal?: number;
|
|
@@ -2721,7 +2820,13 @@ export declare class OrdersService {
|
|
|
2721
2820
|
company?: string | null;
|
|
2722
2821
|
} | null;
|
|
2723
2822
|
cancelledAt?: string | null;
|
|
2823
|
+
/**
|
|
2824
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
2825
|
+
*/
|
|
2724
2826
|
completedAt?: string | null;
|
|
2827
|
+
/**
|
|
2828
|
+
* When the order was marked completed.
|
|
2829
|
+
*/
|
|
2725
2830
|
closedAt?: string | null;
|
|
2726
2831
|
createdAt?: string;
|
|
2727
2832
|
updatedAt?: string;
|
|
@@ -2833,7 +2938,11 @@ export declare class OrdersService {
|
|
|
2833
2938
|
shippingDiscountId?: string | null;
|
|
2834
2939
|
shippingDiscountCode?: string | null;
|
|
2835
2940
|
orderNumber?: string;
|
|
2836
|
-
status?: 'draft' | '
|
|
2941
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
2942
|
+
/**
|
|
2943
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
2944
|
+
*/
|
|
2945
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
2837
2946
|
displayStatus?: string;
|
|
2838
2947
|
fulfillmentSummary?: {
|
|
2839
2948
|
itemsTotal?: number;
|
|
@@ -2979,7 +3088,13 @@ export declare class OrdersService {
|
|
|
2979
3088
|
company?: string | null;
|
|
2980
3089
|
} | null;
|
|
2981
3090
|
cancelledAt?: string | null;
|
|
3091
|
+
/**
|
|
3092
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
3093
|
+
*/
|
|
2982
3094
|
completedAt?: string | null;
|
|
3095
|
+
/**
|
|
3096
|
+
* When the order was marked completed.
|
|
3097
|
+
*/
|
|
2983
3098
|
closedAt?: string | null;
|
|
2984
3099
|
createdAt?: string;
|
|
2985
3100
|
updatedAt?: string;
|
|
@@ -3067,7 +3182,7 @@ export declare class OrdersService {
|
|
|
3067
3182
|
};
|
|
3068
3183
|
}>;
|
|
3069
3184
|
/**
|
|
3070
|
-
* Freeze an order operationally. A hold is a flag, not a stage: `status`, `paymentStatus` and `displayStatus` are unchanged, and nothing about money or delivery moves. Holdable while the order is still live (`
|
|
3185
|
+
* Freeze an order operationally. A hold is a flag, not a stage: `status`, `paymentStatus` and `displayStatus` are unchanged, and nothing about money or delivery moves. Holdable while the order is still live (`awaiting_payment`, `awaiting_fulfillment`, `awaiting_shipment`, `partially_shipped`, `shipped`); a draft, cancelled or completed order answers 422 `order_not_holdable`. Re-holding with the same reason is a no-op and does not restart `heldAt`; a new reason overwrites it. `heldBy` comes from the caller's credentials and cannot be supplied.
|
|
3071
3186
|
* @param id
|
|
3072
3187
|
* @param requestBody
|
|
3073
3188
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
@@ -3085,7 +3200,11 @@ export declare class OrdersService {
|
|
|
3085
3200
|
shippingDiscountId?: string | null;
|
|
3086
3201
|
shippingDiscountCode?: string | null;
|
|
3087
3202
|
orderNumber?: string;
|
|
3088
|
-
status?: 'draft' | '
|
|
3203
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
3204
|
+
/**
|
|
3205
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
3206
|
+
*/
|
|
3207
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
3089
3208
|
displayStatus?: string;
|
|
3090
3209
|
fulfillmentSummary?: {
|
|
3091
3210
|
itemsTotal?: number;
|
|
@@ -3231,7 +3350,13 @@ export declare class OrdersService {
|
|
|
3231
3350
|
company?: string | null;
|
|
3232
3351
|
} | null;
|
|
3233
3352
|
cancelledAt?: string | null;
|
|
3353
|
+
/**
|
|
3354
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
3355
|
+
*/
|
|
3234
3356
|
completedAt?: string | null;
|
|
3357
|
+
/**
|
|
3358
|
+
* When the order was marked completed.
|
|
3359
|
+
*/
|
|
3235
3360
|
closedAt?: string | null;
|
|
3236
3361
|
createdAt?: string;
|
|
3237
3362
|
updatedAt?: string;
|
|
@@ -3334,7 +3459,11 @@ export declare class OrdersService {
|
|
|
3334
3459
|
shippingDiscountId?: string | null;
|
|
3335
3460
|
shippingDiscountCode?: string | null;
|
|
3336
3461
|
orderNumber?: string;
|
|
3337
|
-
status?: 'draft' | '
|
|
3462
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
3463
|
+
/**
|
|
3464
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
3465
|
+
*/
|
|
3466
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
3338
3467
|
displayStatus?: string;
|
|
3339
3468
|
fulfillmentSummary?: {
|
|
3340
3469
|
itemsTotal?: number;
|
|
@@ -3480,7 +3609,13 @@ export declare class OrdersService {
|
|
|
3480
3609
|
company?: string | null;
|
|
3481
3610
|
} | null;
|
|
3482
3611
|
cancelledAt?: string | null;
|
|
3612
|
+
/**
|
|
3613
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
3614
|
+
*/
|
|
3483
3615
|
completedAt?: string | null;
|
|
3616
|
+
/**
|
|
3617
|
+
* When the order was marked completed.
|
|
3618
|
+
*/
|
|
3484
3619
|
closedAt?: string | null;
|
|
3485
3620
|
createdAt?: string;
|
|
3486
3621
|
updatedAt?: string;
|
|
@@ -3632,7 +3767,7 @@ export declare class OrdersService {
|
|
|
3632
3767
|
};
|
|
3633
3768
|
}>;
|
|
3634
3769
|
/**
|
|
3635
|
-
*
|
|
3770
|
+
* Mark a shipped order completed.
|
|
3636
3771
|
* @param id
|
|
3637
3772
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
3638
3773
|
* @returns any Default Response
|
|
@@ -3647,7 +3782,11 @@ export declare class OrdersService {
|
|
|
3647
3782
|
shippingDiscountId?: string | null;
|
|
3648
3783
|
shippingDiscountCode?: string | null;
|
|
3649
3784
|
orderNumber?: string;
|
|
3650
|
-
status?: 'draft' | '
|
|
3785
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
3786
|
+
/**
|
|
3787
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
3788
|
+
*/
|
|
3789
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
3651
3790
|
displayStatus?: string;
|
|
3652
3791
|
fulfillmentSummary?: {
|
|
3653
3792
|
itemsTotal?: number;
|
|
@@ -3793,7 +3932,13 @@ export declare class OrdersService {
|
|
|
3793
3932
|
company?: string | null;
|
|
3794
3933
|
} | null;
|
|
3795
3934
|
cancelledAt?: string | null;
|
|
3935
|
+
/**
|
|
3936
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
3937
|
+
*/
|
|
3796
3938
|
completedAt?: string | null;
|
|
3939
|
+
/**
|
|
3940
|
+
* When the order was marked completed.
|
|
3941
|
+
*/
|
|
3797
3942
|
closedAt?: string | null;
|
|
3798
3943
|
createdAt?: string;
|
|
3799
3944
|
updatedAt?: string;
|
|
@@ -4105,7 +4250,14 @@ export declare class OrdersService {
|
|
|
4105
4250
|
*/
|
|
4106
4251
|
static patchApiV1OrdersLineItems(id: string, requestBody: {
|
|
4107
4252
|
add?: Array<{
|
|
4253
|
+
/**
|
|
4254
|
+
* Your id for the item. Defaults to `sku` when one is given.
|
|
4255
|
+
*/
|
|
4108
4256
|
referenceId?: string;
|
|
4257
|
+
/**
|
|
4258
|
+
* The item's SKU, stored as the line's `metadata.sku` (where inventory and fulfillment integrations read it) and as its `referenceId` unless you send one.
|
|
4259
|
+
*/
|
|
4260
|
+
sku?: string;
|
|
4109
4261
|
name: string;
|
|
4110
4262
|
unitPrice: number;
|
|
4111
4263
|
quantity: number;
|
|
@@ -4125,6 +4277,14 @@ export declare class OrdersService {
|
|
|
4125
4277
|
}>;
|
|
4126
4278
|
update?: Array<{
|
|
4127
4279
|
lineItemId: string;
|
|
4280
|
+
/**
|
|
4281
|
+
* The line's new name.
|
|
4282
|
+
*/
|
|
4283
|
+
name?: string;
|
|
4284
|
+
/**
|
|
4285
|
+
* Swap the line to another item: `metadata.sku` and `referenceId` both take the new SKU, and a `metadata.catalogLink` for another SKU is dropped. Send an empty string or null to clear it. Sending the line's current SKU changes nothing.
|
|
4286
|
+
*/
|
|
4287
|
+
sku?: string | null;
|
|
4128
4288
|
quantity?: number;
|
|
4129
4289
|
unitPrice?: number;
|
|
4130
4290
|
/**
|
|
@@ -4149,7 +4309,11 @@ export declare class OrdersService {
|
|
|
4149
4309
|
shippingDiscountId?: string | null;
|
|
4150
4310
|
shippingDiscountCode?: string | null;
|
|
4151
4311
|
orderNumber?: string;
|
|
4152
|
-
status?: 'draft' | '
|
|
4312
|
+
status?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled';
|
|
4313
|
+
/**
|
|
4314
|
+
* One status combining the lifecycle with hold, refund and dispute, for tools that read a single status. Derived, never stored.
|
|
4315
|
+
*/
|
|
4316
|
+
effectiveStatus?: 'draft' | 'awaiting_payment' | 'awaiting_fulfillment' | 'awaiting_shipment' | 'partially_shipped' | 'shipped' | 'completed' | 'cancelled' | 'on_hold' | 'refunded' | 'partially_refunded' | 'disputed';
|
|
4153
4317
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
4154
4318
|
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired' | 'charged_back';
|
|
4155
4319
|
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
@@ -4281,7 +4445,13 @@ export declare class OrdersService {
|
|
|
4281
4445
|
clientContext?: Record<string, any> | null;
|
|
4282
4446
|
subscriptionId?: string | null;
|
|
4283
4447
|
cancelledAt?: string | null;
|
|
4448
|
+
/**
|
|
4449
|
+
* When everything was handed over (entering shipped, or completed directly for orders with nothing to ship).
|
|
4450
|
+
*/
|
|
4284
4451
|
completedAt?: string | null;
|
|
4452
|
+
/**
|
|
4453
|
+
* When the order was marked completed.
|
|
4454
|
+
*/
|
|
4285
4455
|
closedAt?: string | null;
|
|
4286
4456
|
createdAt?: string;
|
|
4287
4457
|
updatedAt?: string;
|
|
@@ -4361,7 +4531,7 @@ export declare class OrdersService {
|
|
|
4361
4531
|
*/
|
|
4362
4532
|
adjustment: {
|
|
4363
4533
|
/**
|
|
4364
|
-
* Change in what the buyer owes, in minor units. On an order with an outstanding Net-N invoice it is billed on that invoice (see `invoice`). Otherwise, on an order with a captured payment a positive delta
|
|
4534
|
+
* Change in what the buyer owes, in minor units. On an order with an outstanding Net-N invoice it is billed on that invoice (see `invoice`). Otherwise, on an order with a captured payment a positive delta is charged to the customer's default saved card, or left owing when there is no card to charge (see `leftOutstanding`); a negative one comes off any balance still owed first and the rest is refunded. On an order with no captured payment no money moved.
|
|
4365
4535
|
*/
|
|
4366
4536
|
delta: number;
|
|
4367
4537
|
/**
|
|
@@ -4376,6 +4546,14 @@ export declare class OrdersService {
|
|
|
4376
4546
|
* The payment that charged a positive delta; null when nothing was charged.
|
|
4377
4547
|
*/
|
|
4378
4548
|
chargedPaymentId?: string | null;
|
|
4549
|
+
/**
|
|
4550
|
+
* The part of a positive delta left owing because there was no card to charge, in minor units: the order has no customer, the customer has no saved card, or no card processor is connected (`chargeSkippedReason`). The edit was still saved and the order's `paymentStatus` reads `partially_paid`. Collect the balance by recording a payment or charging a saved card. 0 when nothing was left owing. A card that was tried and declined still refuses the edit with `402 payment_failed`.
|
|
4551
|
+
*/
|
|
4552
|
+
leftOutstanding?: number;
|
|
4553
|
+
/**
|
|
4554
|
+
* Why a positive delta was not charged: `no_customer`, `no_payment_method`, `payment_method_not_chargeable` or `no_payment_connection`. Null when it was charged or there was nothing to charge.
|
|
4555
|
+
*/
|
|
4556
|
+
chargeSkippedReason?: string | null;
|
|
4379
4557
|
/**
|
|
4380
4558
|
* The payment a negative delta was refunded on; null when nothing was refunded.
|
|
4381
4559
|
*/
|
|
@@ -4577,5 +4755,49 @@ export declare class OrdersService {
|
|
|
4577
4755
|
};
|
|
4578
4756
|
};
|
|
4579
4757
|
}>;
|
|
4758
|
+
/**
|
|
4759
|
+
* The emails this order sent its customer, newest first: confirmation, payment receipts, shipping, refunds, invoices and payment requests. Emails to your own team are not included. The email body is not stored.
|
|
4760
|
+
* @param id
|
|
4761
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
4762
|
+
* @param limit
|
|
4763
|
+
* @returns any Default Response
|
|
4764
|
+
* @throws ApiError
|
|
4765
|
+
*/
|
|
4766
|
+
static getApiV1OrdersEmails(id: string, xThrottleEnvironmentId?: string, limit?: number): CancelablePromise<{
|
|
4767
|
+
data: Array<{
|
|
4768
|
+
id: string;
|
|
4769
|
+
/**
|
|
4770
|
+
* Which email, such as `customer.order_shipped`.
|
|
4771
|
+
*/
|
|
4772
|
+
templateKey: string;
|
|
4773
|
+
/**
|
|
4774
|
+
* The subject line as sent. For an email that was not sent, filled in from the template.
|
|
4775
|
+
*/
|
|
4776
|
+
subject: string;
|
|
4777
|
+
/**
|
|
4778
|
+
* Who it went to. Null unless the caller holds `customer_pii:read`.
|
|
4779
|
+
*/
|
|
4780
|
+
recipientEmail: string | null;
|
|
4781
|
+
/**
|
|
4782
|
+
* `suppressed_optout`: not sent because the customer opted out or the template is switched off. `suppressed_cooldown`: not sent because the same email went out moments before.
|
|
4783
|
+
*/
|
|
4784
|
+
status: 'queued' | 'sending' | 'sent' | 'delivered' | 'bounced' | 'complained' | 'failed' | 'suppressed_optout' | 'suppressed_cooldown';
|
|
4785
|
+
/**
|
|
4786
|
+
* The order the email was about.
|
|
4787
|
+
*/
|
|
4788
|
+
orderId: string | null;
|
|
4789
|
+
createdAt: string;
|
|
4790
|
+
sentAt?: string | null;
|
|
4791
|
+
deliveredAt?: string | null;
|
|
4792
|
+
openedAt?: string | null;
|
|
4793
|
+
bouncedAt?: string | null;
|
|
4794
|
+
}>;
|
|
4795
|
+
meta: {
|
|
4796
|
+
/**
|
|
4797
|
+
* More emails exist than `limit`.
|
|
4798
|
+
*/
|
|
4799
|
+
hasMore?: boolean;
|
|
4800
|
+
};
|
|
4801
|
+
}>;
|
|
4580
4802
|
}
|
|
4581
4803
|
//# sourceMappingURL=OrdersService.d.ts.map
|