@usethrottle/api-client 5.7.0 → 5.8.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.
@@ -200,6 +200,33 @@ export declare class OrdersService {
200
200
  amount?: number;
201
201
  } | null;
202
202
  customerId?: string | null;
203
+ applicationId?: string;
204
+ environmentId?: string;
205
+ cartId?: string | null;
206
+ /**
207
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
208
+ */
209
+ externalId?: string | null;
210
+ /**
211
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
212
+ */
213
+ externalCustomerId?: string | null;
214
+ /**
215
+ * The import that created this order; null otherwise.
216
+ */
217
+ importId?: string | null;
218
+ /**
219
+ * The buyer's IP address recorded at checkout.
220
+ */
221
+ ipAddress?: string | null;
222
+ /**
223
+ * The buyer's user agent recorded at checkout.
224
+ */
225
+ userAgent?: string | null;
226
+ /**
227
+ * Attribution snapshot copied from the checkout session when the order was created.
228
+ */
229
+ clientContext?: Record<string, any> | null;
203
230
  subscriptionIds?: Array<string>;
204
231
  subscriptionId?: string | null;
205
232
  customer?: {
@@ -274,6 +301,13 @@ export declare class OrdersService {
274
301
  * Arbitrary key-value metadata
275
302
  */
276
303
  metadata?: Record<string, any>;
304
+ workspaceId?: string;
305
+ applicationId?: string;
306
+ orderId?: string;
307
+ cartId?: string | null;
308
+ position?: number;
309
+ createdAt?: string;
310
+ updatedAt?: string;
277
311
  }>;
278
312
  };
279
313
  meta?: {
@@ -417,6 +451,33 @@ export declare class OrdersService {
417
451
  amount?: number;
418
452
  } | null;
419
453
  customerId?: string | null;
454
+ applicationId?: string;
455
+ environmentId?: string;
456
+ cartId?: string | null;
457
+ /**
458
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
459
+ */
460
+ externalId?: string | null;
461
+ /**
462
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
463
+ */
464
+ externalCustomerId?: string | null;
465
+ /**
466
+ * The import that created this order; null otherwise.
467
+ */
468
+ importId?: string | null;
469
+ /**
470
+ * The buyer's IP address recorded at checkout.
471
+ */
472
+ ipAddress?: string | null;
473
+ /**
474
+ * The buyer's user agent recorded at checkout.
475
+ */
476
+ userAgent?: string | null;
477
+ /**
478
+ * Attribution snapshot copied from the checkout session when the order was created.
479
+ */
480
+ clientContext?: Record<string, any> | null;
420
481
  subscriptionIds?: Array<string>;
421
482
  subscriptionId?: string | null;
422
483
  customer?: {
@@ -491,6 +552,13 @@ export declare class OrdersService {
491
552
  * Arbitrary key-value metadata
492
553
  */
493
554
  metadata?: Record<string, any>;
555
+ workspaceId?: string;
556
+ applicationId?: string;
557
+ orderId?: string;
558
+ cartId?: string | null;
559
+ position?: number;
560
+ createdAt?: string;
561
+ updatedAt?: string;
494
562
  }>;
495
563
  }>;
496
564
  meta?: {
@@ -642,6 +710,33 @@ export declare class OrdersService {
642
710
  amount?: number;
643
711
  } | null;
644
712
  customerId?: string | null;
713
+ applicationId?: string;
714
+ environmentId?: string;
715
+ cartId?: string | null;
716
+ /**
717
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
718
+ */
719
+ externalId?: string | null;
720
+ /**
721
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
722
+ */
723
+ externalCustomerId?: string | null;
724
+ /**
725
+ * The import that created this order; null otherwise.
726
+ */
727
+ importId?: string | null;
728
+ /**
729
+ * The buyer's IP address recorded at checkout.
730
+ */
731
+ ipAddress?: string | null;
732
+ /**
733
+ * The buyer's user agent recorded at checkout.
734
+ */
735
+ userAgent?: string | null;
736
+ /**
737
+ * Attribution snapshot copied from the checkout session when the order was created.
738
+ */
739
+ clientContext?: Record<string, any> | null;
645
740
  subscriptionIds?: Array<string>;
646
741
  subscriptionId?: string | null;
647
742
  customer?: {
@@ -716,6 +811,13 @@ export declare class OrdersService {
716
811
  * Arbitrary key-value metadata
717
812
  */
718
813
  metadata?: Record<string, any>;
814
+ workspaceId?: string;
815
+ applicationId?: string;
816
+ orderId?: string;
817
+ cartId?: string | null;
818
+ position?: number;
819
+ createdAt?: string;
820
+ updatedAt?: string;
719
821
  }>;
720
822
  /**
721
823
  * What this order actually collected, before refunds. Not the same as `total` on a partially-paid order.
@@ -901,6 +1003,33 @@ export declare class OrdersService {
901
1003
  amount?: number;
902
1004
  } | null;
903
1005
  customerId?: string | null;
1006
+ applicationId?: string;
1007
+ environmentId?: string;
1008
+ cartId?: string | null;
1009
+ /**
1010
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
1011
+ */
1012
+ externalId?: string | null;
1013
+ /**
1014
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
1015
+ */
1016
+ externalCustomerId?: string | null;
1017
+ /**
1018
+ * The import that created this order; null otherwise.
1019
+ */
1020
+ importId?: string | null;
1021
+ /**
1022
+ * The buyer's IP address recorded at checkout.
1023
+ */
1024
+ ipAddress?: string | null;
1025
+ /**
1026
+ * The buyer's user agent recorded at checkout.
1027
+ */
1028
+ userAgent?: string | null;
1029
+ /**
1030
+ * Attribution snapshot copied from the checkout session when the order was created.
1031
+ */
1032
+ clientContext?: Record<string, any> | null;
904
1033
  subscriptionIds?: Array<string>;
905
1034
  subscriptionId?: string | null;
906
1035
  customer?: {
@@ -975,6 +1104,13 @@ export declare class OrdersService {
975
1104
  * Arbitrary key-value metadata
976
1105
  */
977
1106
  metadata?: Record<string, any>;
1107
+ workspaceId?: string;
1108
+ applicationId?: string;
1109
+ orderId?: string;
1110
+ cartId?: string | null;
1111
+ position?: number;
1112
+ createdAt?: string;
1113
+ updatedAt?: string;
978
1114
  }>;
979
1115
  };
980
1116
  meta?: {
@@ -1107,6 +1243,33 @@ export declare class OrdersService {
1107
1243
  amount?: number;
1108
1244
  } | null;
1109
1245
  customerId?: string | null;
1246
+ applicationId?: string;
1247
+ environmentId?: string;
1248
+ cartId?: string | null;
1249
+ /**
1250
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
1251
+ */
1252
+ externalId?: string | null;
1253
+ /**
1254
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
1255
+ */
1256
+ externalCustomerId?: string | null;
1257
+ /**
1258
+ * The import that created this order; null otherwise.
1259
+ */
1260
+ importId?: string | null;
1261
+ /**
1262
+ * The buyer's IP address recorded at checkout.
1263
+ */
1264
+ ipAddress?: string | null;
1265
+ /**
1266
+ * The buyer's user agent recorded at checkout.
1267
+ */
1268
+ userAgent?: string | null;
1269
+ /**
1270
+ * Attribution snapshot copied from the checkout session when the order was created.
1271
+ */
1272
+ clientContext?: Record<string, any> | null;
1110
1273
  subscriptionIds?: Array<string>;
1111
1274
  subscriptionId?: string | null;
1112
1275
  customer?: {
@@ -1181,6 +1344,13 @@ export declare class OrdersService {
1181
1344
  * Arbitrary key-value metadata
1182
1345
  */
1183
1346
  metadata?: Record<string, any>;
1347
+ workspaceId?: string;
1348
+ applicationId?: string;
1349
+ orderId?: string;
1350
+ cartId?: string | null;
1351
+ position?: number;
1352
+ createdAt?: string;
1353
+ updatedAt?: string;
1184
1354
  }>;
1185
1355
  };
1186
1356
  meta?: {
@@ -1316,6 +1486,33 @@ export declare class OrdersService {
1316
1486
  amount?: number;
1317
1487
  } | null;
1318
1488
  customerId?: string | null;
1489
+ applicationId?: string;
1490
+ environmentId?: string;
1491
+ cartId?: string | null;
1492
+ /**
1493
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
1494
+ */
1495
+ externalId?: string | null;
1496
+ /**
1497
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
1498
+ */
1499
+ externalCustomerId?: string | null;
1500
+ /**
1501
+ * The import that created this order; null otherwise.
1502
+ */
1503
+ importId?: string | null;
1504
+ /**
1505
+ * The buyer's IP address recorded at checkout.
1506
+ */
1507
+ ipAddress?: string | null;
1508
+ /**
1509
+ * The buyer's user agent recorded at checkout.
1510
+ */
1511
+ userAgent?: string | null;
1512
+ /**
1513
+ * Attribution snapshot copied from the checkout session when the order was created.
1514
+ */
1515
+ clientContext?: Record<string, any> | null;
1319
1516
  subscriptionIds?: Array<string>;
1320
1517
  subscriptionId?: string | null;
1321
1518
  customer?: {
@@ -1390,6 +1587,13 @@ export declare class OrdersService {
1390
1587
  * Arbitrary key-value metadata
1391
1588
  */
1392
1589
  metadata?: Record<string, any>;
1590
+ workspaceId?: string;
1591
+ applicationId?: string;
1592
+ orderId?: string;
1593
+ cartId?: string | null;
1594
+ position?: number;
1595
+ createdAt?: string;
1596
+ updatedAt?: string;
1393
1597
  }>;
1394
1598
  };
1395
1599
  meta?: {
@@ -1525,6 +1729,33 @@ export declare class OrdersService {
1525
1729
  amount?: number;
1526
1730
  } | null;
1527
1731
  customerId?: string | null;
1732
+ applicationId?: string;
1733
+ environmentId?: string;
1734
+ cartId?: string | null;
1735
+ /**
1736
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
1737
+ */
1738
+ externalId?: string | null;
1739
+ /**
1740
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
1741
+ */
1742
+ externalCustomerId?: string | null;
1743
+ /**
1744
+ * The import that created this order; null otherwise.
1745
+ */
1746
+ importId?: string | null;
1747
+ /**
1748
+ * The buyer's IP address recorded at checkout.
1749
+ */
1750
+ ipAddress?: string | null;
1751
+ /**
1752
+ * The buyer's user agent recorded at checkout.
1753
+ */
1754
+ userAgent?: string | null;
1755
+ /**
1756
+ * Attribution snapshot copied from the checkout session when the order was created.
1757
+ */
1758
+ clientContext?: Record<string, any> | null;
1528
1759
  subscriptionIds?: Array<string>;
1529
1760
  subscriptionId?: string | null;
1530
1761
  customer?: {
@@ -1599,6 +1830,13 @@ export declare class OrdersService {
1599
1830
  * Arbitrary key-value metadata
1600
1831
  */
1601
1832
  metadata?: Record<string, any>;
1833
+ workspaceId?: string;
1834
+ applicationId?: string;
1835
+ orderId?: string;
1836
+ cartId?: string | null;
1837
+ position?: number;
1838
+ createdAt?: string;
1839
+ updatedAt?: string;
1602
1840
  }>;
1603
1841
  };
1604
1842
  meta?: {
@@ -1613,7 +1851,7 @@ export declare class OrdersService {
1613
1851
  };
1614
1852
  }>;
1615
1853
  /**
1616
- * Cancel an order. Authorized payments are always voided; captured payments are refunded when refundCapturedPayments is true.
1854
+ * Cancel an order. Authorized payments and unpaid Net-N invoices (`method: net30`, status `authorized` or `pending`) are always voided; captured payments are refunded when refundCapturedPayments is true.
1617
1855
  * @param id
1618
1856
  * @param requestBody
1619
1857
  * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
@@ -1735,6 +1973,33 @@ export declare class OrdersService {
1735
1973
  amount?: number;
1736
1974
  } | null;
1737
1975
  customerId?: string | null;
1976
+ applicationId?: string;
1977
+ environmentId?: string;
1978
+ cartId?: string | null;
1979
+ /**
1980
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
1981
+ */
1982
+ externalId?: string | null;
1983
+ /**
1984
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
1985
+ */
1986
+ externalCustomerId?: string | null;
1987
+ /**
1988
+ * The import that created this order; null otherwise.
1989
+ */
1990
+ importId?: string | null;
1991
+ /**
1992
+ * The buyer's IP address recorded at checkout.
1993
+ */
1994
+ ipAddress?: string | null;
1995
+ /**
1996
+ * The buyer's user agent recorded at checkout.
1997
+ */
1998
+ userAgent?: string | null;
1999
+ /**
2000
+ * Attribution snapshot copied from the checkout session when the order was created.
2001
+ */
2002
+ clientContext?: Record<string, any> | null;
1738
2003
  subscriptionIds?: Array<string>;
1739
2004
  subscriptionId?: string | null;
1740
2005
  customer?: {
@@ -1809,9 +2074,16 @@ export declare class OrdersService {
1809
2074
  * Arbitrary key-value metadata
1810
2075
  */
1811
2076
  metadata?: Record<string, any>;
2077
+ workspaceId?: string;
2078
+ applicationId?: string;
2079
+ orderId?: string;
2080
+ cartId?: string | null;
2081
+ position?: number;
2082
+ createdAt?: string;
2083
+ updatedAt?: string;
1812
2084
  }>;
1813
2085
  /**
1814
- * Payment settlement performed by the cancel: voids of open authorizations (always) and refunds of captured payments (opt-in). Failures never undo the cancel.
2086
+ * Payment settlement performed by the cancel: voids of open authorizations and unpaid Net-N invoices (always) and refunds of captured payments (opt-in). Failures never undo the cancel.
1815
2087
  */
1816
2088
  paymentActions?: Array<{
1817
2089
  paymentId?: string;
@@ -1832,7 +2104,7 @@ export declare class OrdersService {
1832
2104
  };
1833
2105
  }>;
1834
2106
  /**
1835
- * Move an order to any lifecycle status. Both directions are allowed — this is the merchant override, not a state-machine step. Side effects already applied are never rewound. Moving to `cancelled` additionally requires the `order_cancellations:write` scope and voids the order's live authorizations, exactly as `POST /orders/{id}/cancel` does; captured payments are left alone.
2107
+ * Move an order to any lifecycle status. Both directions are allowed — this is the merchant override, not a state-machine step. Side effects already applied are never rewound. Moving to `cancelled` additionally requires the `order_cancellations:write` scope and voids the order's live authorizations and unpaid Net-N invoices, exactly as `POST /orders/{id}/cancel` does; captured payments are left alone.
1836
2108
  * @param id
1837
2109
  * @param requestBody
1838
2110
  * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
@@ -1954,6 +2226,33 @@ export declare class OrdersService {
1954
2226
  amount?: number;
1955
2227
  } | null;
1956
2228
  customerId?: string | null;
2229
+ applicationId?: string;
2230
+ environmentId?: string;
2231
+ cartId?: string | null;
2232
+ /**
2233
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
2234
+ */
2235
+ externalId?: string | null;
2236
+ /**
2237
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
2238
+ */
2239
+ externalCustomerId?: string | null;
2240
+ /**
2241
+ * The import that created this order; null otherwise.
2242
+ */
2243
+ importId?: string | null;
2244
+ /**
2245
+ * The buyer's IP address recorded at checkout.
2246
+ */
2247
+ ipAddress?: string | null;
2248
+ /**
2249
+ * The buyer's user agent recorded at checkout.
2250
+ */
2251
+ userAgent?: string | null;
2252
+ /**
2253
+ * Attribution snapshot copied from the checkout session when the order was created.
2254
+ */
2255
+ clientContext?: Record<string, any> | null;
1957
2256
  subscriptionIds?: Array<string>;
1958
2257
  subscriptionId?: string | null;
1959
2258
  customer?: {
@@ -2028,6 +2327,13 @@ export declare class OrdersService {
2028
2327
  * Arbitrary key-value metadata
2029
2328
  */
2030
2329
  metadata?: Record<string, any>;
2330
+ workspaceId?: string;
2331
+ applicationId?: string;
2332
+ orderId?: string;
2333
+ cartId?: string | null;
2334
+ position?: number;
2335
+ createdAt?: string;
2336
+ updatedAt?: string;
2031
2337
  }>;
2032
2338
  };
2033
2339
  meta?: {
@@ -2163,6 +2469,33 @@ export declare class OrdersService {
2163
2469
  amount?: number;
2164
2470
  } | null;
2165
2471
  customerId?: string | null;
2472
+ applicationId?: string;
2473
+ environmentId?: string;
2474
+ cartId?: string | null;
2475
+ /**
2476
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
2477
+ */
2478
+ externalId?: string | null;
2479
+ /**
2480
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
2481
+ */
2482
+ externalCustomerId?: string | null;
2483
+ /**
2484
+ * The import that created this order; null otherwise.
2485
+ */
2486
+ importId?: string | null;
2487
+ /**
2488
+ * The buyer's IP address recorded at checkout.
2489
+ */
2490
+ ipAddress?: string | null;
2491
+ /**
2492
+ * The buyer's user agent recorded at checkout.
2493
+ */
2494
+ userAgent?: string | null;
2495
+ /**
2496
+ * Attribution snapshot copied from the checkout session when the order was created.
2497
+ */
2498
+ clientContext?: Record<string, any> | null;
2166
2499
  subscriptionIds?: Array<string>;
2167
2500
  subscriptionId?: string | null;
2168
2501
  customer?: {
@@ -2237,6 +2570,13 @@ export declare class OrdersService {
2237
2570
  * Arbitrary key-value metadata
2238
2571
  */
2239
2572
  metadata?: Record<string, any>;
2573
+ workspaceId?: string;
2574
+ applicationId?: string;
2575
+ orderId?: string;
2576
+ cartId?: string | null;
2577
+ position?: number;
2578
+ createdAt?: string;
2579
+ updatedAt?: string;
2240
2580
  }>;
2241
2581
  /**
2242
2582
  * Payment settlement performed by the comp: voids of anything still claiming the waived balance — open authorizations, and unpaid Net-N invoices, whose buyers are also emailed. Captured money is never touched. Failures never undo the comp.
@@ -2378,6 +2718,33 @@ export declare class OrdersService {
2378
2718
  amount?: number;
2379
2719
  } | null;
2380
2720
  customerId?: string | null;
2721
+ applicationId?: string;
2722
+ environmentId?: string;
2723
+ cartId?: string | null;
2724
+ /**
2725
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
2726
+ */
2727
+ externalId?: string | null;
2728
+ /**
2729
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
2730
+ */
2731
+ externalCustomerId?: string | null;
2732
+ /**
2733
+ * The import that created this order; null otherwise.
2734
+ */
2735
+ importId?: string | null;
2736
+ /**
2737
+ * The buyer's IP address recorded at checkout.
2738
+ */
2739
+ ipAddress?: string | null;
2740
+ /**
2741
+ * The buyer's user agent recorded at checkout.
2742
+ */
2743
+ userAgent?: string | null;
2744
+ /**
2745
+ * Attribution snapshot copied from the checkout session when the order was created.
2746
+ */
2747
+ clientContext?: Record<string, any> | null;
2381
2748
  subscriptionIds?: Array<string>;
2382
2749
  subscriptionId?: string | null;
2383
2750
  customer?: {
@@ -2452,6 +2819,13 @@ export declare class OrdersService {
2452
2819
  * Arbitrary key-value metadata
2453
2820
  */
2454
2821
  metadata?: Record<string, any>;
2822
+ workspaceId?: string;
2823
+ applicationId?: string;
2824
+ orderId?: string;
2825
+ cartId?: string | null;
2826
+ position?: number;
2827
+ createdAt?: string;
2828
+ updatedAt?: string;
2455
2829
  }>;
2456
2830
  };
2457
2831
  meta?: {
@@ -2587,6 +2961,33 @@ export declare class OrdersService {
2587
2961
  amount?: number;
2588
2962
  } | null;
2589
2963
  customerId?: string | null;
2964
+ applicationId?: string;
2965
+ environmentId?: string;
2966
+ cartId?: string | null;
2967
+ /**
2968
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
2969
+ */
2970
+ externalId?: string | null;
2971
+ /**
2972
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
2973
+ */
2974
+ externalCustomerId?: string | null;
2975
+ /**
2976
+ * The import that created this order; null otherwise.
2977
+ */
2978
+ importId?: string | null;
2979
+ /**
2980
+ * The buyer's IP address recorded at checkout.
2981
+ */
2982
+ ipAddress?: string | null;
2983
+ /**
2984
+ * The buyer's user agent recorded at checkout.
2985
+ */
2986
+ userAgent?: string | null;
2987
+ /**
2988
+ * Attribution snapshot copied from the checkout session when the order was created.
2989
+ */
2990
+ clientContext?: Record<string, any> | null;
2590
2991
  subscriptionIds?: Array<string>;
2591
2992
  subscriptionId?: string | null;
2592
2993
  customer?: {
@@ -2661,6 +3062,13 @@ export declare class OrdersService {
2661
3062
  * Arbitrary key-value metadata
2662
3063
  */
2663
3064
  metadata?: Record<string, any>;
3065
+ workspaceId?: string;
3066
+ applicationId?: string;
3067
+ orderId?: string;
3068
+ cartId?: string | null;
3069
+ position?: number;
3070
+ createdAt?: string;
3071
+ updatedAt?: string;
2664
3072
  }>;
2665
3073
  };
2666
3074
  meta?: {
@@ -2793,6 +3201,33 @@ export declare class OrdersService {
2793
3201
  amount?: number;
2794
3202
  } | null;
2795
3203
  customerId?: string | null;
3204
+ applicationId?: string;
3205
+ environmentId?: string;
3206
+ cartId?: string | null;
3207
+ /**
3208
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
3209
+ */
3210
+ externalId?: string | null;
3211
+ /**
3212
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
3213
+ */
3214
+ externalCustomerId?: string | null;
3215
+ /**
3216
+ * The import that created this order; null otherwise.
3217
+ */
3218
+ importId?: string | null;
3219
+ /**
3220
+ * The buyer's IP address recorded at checkout.
3221
+ */
3222
+ ipAddress?: string | null;
3223
+ /**
3224
+ * The buyer's user agent recorded at checkout.
3225
+ */
3226
+ userAgent?: string | null;
3227
+ /**
3228
+ * Attribution snapshot copied from the checkout session when the order was created.
3229
+ */
3230
+ clientContext?: Record<string, any> | null;
2796
3231
  subscriptionIds?: Array<string>;
2797
3232
  subscriptionId?: string | null;
2798
3233
  customer?: {
@@ -2867,6 +3302,13 @@ export declare class OrdersService {
2867
3302
  * Arbitrary key-value metadata
2868
3303
  */
2869
3304
  metadata?: Record<string, any>;
3305
+ workspaceId?: string;
3306
+ applicationId?: string;
3307
+ orderId?: string;
3308
+ cartId?: string | null;
3309
+ position?: number;
3310
+ createdAt?: string;
3311
+ updatedAt?: string;
2870
3312
  }>;
2871
3313
  };
2872
3314
  meta?: {
@@ -3063,6 +3505,33 @@ export declare class OrdersService {
3063
3505
  amount?: number;
3064
3506
  } | null;
3065
3507
  customerId?: string | null;
3508
+ applicationId?: string;
3509
+ environmentId?: string;
3510
+ cartId?: string | null;
3511
+ /**
3512
+ * The source platform's own order id, for an order that arrived by import; null otherwise.
3513
+ */
3514
+ externalId?: string | null;
3515
+ /**
3516
+ * The source platform's customer id, for an order that arrived by import; null otherwise.
3517
+ */
3518
+ externalCustomerId?: string | null;
3519
+ /**
3520
+ * The import that created this order; null otherwise.
3521
+ */
3522
+ importId?: string | null;
3523
+ /**
3524
+ * The buyer's IP address recorded at checkout.
3525
+ */
3526
+ ipAddress?: string | null;
3527
+ /**
3528
+ * The buyer's user agent recorded at checkout.
3529
+ */
3530
+ userAgent?: string | null;
3531
+ /**
3532
+ * Attribution snapshot copied from the checkout session when the order was created.
3533
+ */
3534
+ clientContext?: Record<string, any> | null;
3066
3535
  subscriptionIds?: Array<string>;
3067
3536
  subscriptionId?: string | null;
3068
3537
  customer?: {
@@ -3137,6 +3606,13 @@ export declare class OrdersService {
3137
3606
  * Arbitrary key-value metadata
3138
3607
  */
3139
3608
  metadata?: Record<string, any>;
3609
+ workspaceId?: string;
3610
+ applicationId?: string;
3611
+ orderId?: string;
3612
+ cartId?: string | null;
3613
+ position?: number;
3614
+ createdAt?: string;
3615
+ updatedAt?: string;
3140
3616
  }>;
3141
3617
  };
3142
3618
  meta?: {