@usethrottle/api-client 4.3.0 → 4.4.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/generated/index.d.ts +2 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/services/ApplicationsService.d.ts +19 -0
- package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationsService.js +41 -0
- package/dist/generated/services/ApplicationsService.js.map +1 -1
- package/dist/generated/services/CartsService.d.ts +117 -0
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts +16 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.js +24 -1
- package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +24 -0
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js +57 -0
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +500 -0
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +1097 -105
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/EmbedService.d.ts +10 -0
- package/dist/generated/services/EmbedService.d.ts.map +1 -1
- package/dist/generated/services/EmbedService.js.map +1 -1
- package/dist/generated/services/ExtensionsService.d.ts +164 -1
- package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
- package/dist/generated/services/ExtensionsService.js +192 -1
- package/dist/generated/services/ExtensionsService.js.map +1 -1
- package/dist/generated/services/FulfillmentsService.d.ts +67 -0
- package/dist/generated/services/FulfillmentsService.d.ts.map +1 -1
- package/dist/generated/services/FulfillmentsService.js.map +1 -1
- package/dist/generated/services/ImportsService.d.ts +76 -0
- package/dist/generated/services/ImportsService.d.ts.map +1 -0
- package/dist/generated/services/ImportsService.js +174 -0
- package/dist/generated/services/ImportsService.js.map +1 -0
- package/dist/generated/services/OrdersService.d.ts +284 -23
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +10 -6
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PartnersService.d.ts +8 -0
- package/dist/generated/services/PartnersService.d.ts.map +1 -1
- package/dist/generated/services/PartnersService.js +19 -0
- package/dist/generated/services/PartnersService.js.map +1 -1
- package/dist/generated/services/PaymentMethodsService.d.ts +17 -0
- package/dist/generated/services/PaymentMethodsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentMethodsService.js +38 -0
- package/dist/generated/services/PaymentMethodsService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +4 -0
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/QuotesService.d.ts +128 -1
- package/dist/generated/services/QuotesService.d.ts.map +1 -1
- package/dist/generated/services/QuotesService.js +68 -0
- package/dist/generated/services/QuotesService.js.map +1 -1
- package/dist/generated/services/ScriptsService.d.ts +110 -0
- package/dist/generated/services/ScriptsService.d.ts.map +1 -0
- package/dist/generated/services/ScriptsService.js +245 -0
- package/dist/generated/services/ScriptsService.js.map +1 -0
- package/dist/generated/services/SubscriptionsService.d.ts +40 -16
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +24 -0
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +9 -5
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.js +5 -1
- package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
- package/dist/generated/services/WorkspacesService.d.ts +4 -0
- package/dist/generated/services/WorkspacesService.d.ts.map +1 -1
- package/dist/generated/services/WorkspacesService.js.map +1 -1
- package/package.json +1 -1
|
@@ -116,6 +116,16 @@ export declare class OrdersService {
|
|
|
116
116
|
taxTotal?: number;
|
|
117
117
|
buyerVatNumber?: string | null;
|
|
118
118
|
taxReverseCharge?: boolean;
|
|
119
|
+
taxProviderMessages?: Array<{
|
|
120
|
+
summary?: string;
|
|
121
|
+
details?: string;
|
|
122
|
+
citationCode?: string;
|
|
123
|
+
refersTo?: string;
|
|
124
|
+
severity?: string;
|
|
125
|
+
source?: string;
|
|
126
|
+
lineNumbers?: Array<string>;
|
|
127
|
+
lineItemIds?: Array<string>;
|
|
128
|
+
}>;
|
|
119
129
|
/**
|
|
120
130
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
121
131
|
*/
|
|
@@ -129,7 +139,7 @@ export declare class OrdersService {
|
|
|
129
139
|
*/
|
|
130
140
|
total?: number;
|
|
131
141
|
/**
|
|
132
|
-
*
|
|
142
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
133
143
|
*/
|
|
134
144
|
compAmount?: number;
|
|
135
145
|
compReason?: string | null;
|
|
@@ -139,6 +149,7 @@ export declare class OrdersService {
|
|
|
139
149
|
holdReason?: string | null;
|
|
140
150
|
heldAt?: string | null;
|
|
141
151
|
heldBy?: string | null;
|
|
152
|
+
notes?: string | null;
|
|
142
153
|
/**
|
|
143
154
|
* Arbitrary key-value metadata
|
|
144
155
|
*/
|
|
@@ -181,6 +192,13 @@ export declare class OrdersService {
|
|
|
181
192
|
phone?: string;
|
|
182
193
|
email?: string;
|
|
183
194
|
} | null;
|
|
195
|
+
shippingMethod?: {
|
|
196
|
+
methodId?: string;
|
|
197
|
+
displayName?: string;
|
|
198
|
+
carrier?: string | null;
|
|
199
|
+
serviceCode?: string | null;
|
|
200
|
+
amount?: number;
|
|
201
|
+
} | null;
|
|
184
202
|
customerId?: string | null;
|
|
185
203
|
subscriptionId?: string | null;
|
|
186
204
|
customer?: {
|
|
@@ -246,7 +264,7 @@ export declare class OrdersService {
|
|
|
246
264
|
* @param status
|
|
247
265
|
* @param paymentStatus
|
|
248
266
|
* @param type
|
|
249
|
-
* @param delivery Where the goods are. Derived from shipment and return records, not an order column: `in_transit` = something shipped and something has not arrived, `delivered` = every shipment arrived, `returned` = any items came back (a partial return included).
|
|
267
|
+
* @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 `processing` or `partially_fulfilled`, no returns), `in_transit` = something shipped and something has not arrived, `delivered` = every shipment arrived, `returned` = any items came back (a partial return included).
|
|
250
268
|
* @param source
|
|
251
269
|
* @param q Search order id, number, source, status, or metadata.
|
|
252
270
|
* @param customerId
|
|
@@ -256,7 +274,7 @@ export declare class OrdersService {
|
|
|
256
274
|
* @returns any Default Response
|
|
257
275
|
* @throws ApiError
|
|
258
276
|
*/
|
|
259
|
-
static getApiV1Orders(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired', type?: 'one_time' | 'recurring' | 'mixed', delivery?: 'in_transit' | 'delivered' | 'returned', source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine', q?: string, customerId?: string, subscriptionId?: string, createdAfter?: string, createdBefore?: string): CancelablePromise<{
|
|
277
|
+
static getApiV1Orders(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired', 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): CancelablePromise<{
|
|
260
278
|
data?: Array<{
|
|
261
279
|
id?: string;
|
|
262
280
|
workspaceId?: string;
|
|
@@ -284,6 +302,16 @@ export declare class OrdersService {
|
|
|
284
302
|
taxTotal?: number;
|
|
285
303
|
buyerVatNumber?: string | null;
|
|
286
304
|
taxReverseCharge?: boolean;
|
|
305
|
+
taxProviderMessages?: Array<{
|
|
306
|
+
summary?: string;
|
|
307
|
+
details?: string;
|
|
308
|
+
citationCode?: string;
|
|
309
|
+
refersTo?: string;
|
|
310
|
+
severity?: string;
|
|
311
|
+
source?: string;
|
|
312
|
+
lineNumbers?: Array<string>;
|
|
313
|
+
lineItemIds?: Array<string>;
|
|
314
|
+
}>;
|
|
287
315
|
/**
|
|
288
316
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
289
317
|
*/
|
|
@@ -297,7 +325,7 @@ export declare class OrdersService {
|
|
|
297
325
|
*/
|
|
298
326
|
total?: number;
|
|
299
327
|
/**
|
|
300
|
-
*
|
|
328
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
301
329
|
*/
|
|
302
330
|
compAmount?: number;
|
|
303
331
|
compReason?: string | null;
|
|
@@ -307,6 +335,7 @@ export declare class OrdersService {
|
|
|
307
335
|
holdReason?: string | null;
|
|
308
336
|
heldAt?: string | null;
|
|
309
337
|
heldBy?: string | null;
|
|
338
|
+
notes?: string | null;
|
|
310
339
|
/**
|
|
311
340
|
* Arbitrary key-value metadata
|
|
312
341
|
*/
|
|
@@ -349,6 +378,13 @@ export declare class OrdersService {
|
|
|
349
378
|
phone?: string;
|
|
350
379
|
email?: string;
|
|
351
380
|
} | null;
|
|
381
|
+
shippingMethod?: {
|
|
382
|
+
methodId?: string;
|
|
383
|
+
displayName?: string;
|
|
384
|
+
carrier?: string | null;
|
|
385
|
+
serviceCode?: string | null;
|
|
386
|
+
amount?: number;
|
|
387
|
+
} | null;
|
|
352
388
|
customerId?: string | null;
|
|
353
389
|
subscriptionId?: string | null;
|
|
354
390
|
customer?: {
|
|
@@ -414,7 +450,7 @@ export declare class OrdersService {
|
|
|
414
450
|
* @param status
|
|
415
451
|
* @param paymentStatus
|
|
416
452
|
* @param type
|
|
417
|
-
* @param delivery Where the goods are. Derived from shipment and return records, not an order column: `in_transit` = something shipped and something has not arrived, `delivered` = every shipment arrived, `returned` = any items came back (a partial return included).
|
|
453
|
+
* @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 `processing` or `partially_fulfilled`, no returns), `in_transit` = something shipped and something has not arrived, `delivered` = every shipment arrived, `returned` = any items came back (a partial return included).
|
|
418
454
|
* @param source
|
|
419
455
|
* @param q Search order id, number, source, status, or metadata.
|
|
420
456
|
* @param customerId
|
|
@@ -424,9 +460,9 @@ export declare class OrdersService {
|
|
|
424
460
|
* @returns any Default Response
|
|
425
461
|
* @throws ApiError
|
|
426
462
|
*/
|
|
427
|
-
static getApiV1OrdersExportCsv(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired', type?: 'one_time' | 'recurring' | 'mixed', delivery?: 'in_transit' | 'delivered' | 'returned', source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine', q?: string, customerId?: string, subscriptionId?: string, createdAfter?: string, createdBefore?: string): CancelablePromise<any>;
|
|
463
|
+
static getApiV1OrdersExportCsv(xThrottleEnvironmentId?: string, cursor?: string, limit?: number, status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed', paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired', 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): CancelablePromise<any>;
|
|
428
464
|
/**
|
|
429
|
-
* Get an order by ID (includes line items)
|
|
465
|
+
* Get an order by ID (includes line items, plus `capturedAmount` and `refundedAmount`)
|
|
430
466
|
* @param id
|
|
431
467
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
432
468
|
* @returns any Default Response
|
|
@@ -460,6 +496,16 @@ export declare class OrdersService {
|
|
|
460
496
|
taxTotal?: number;
|
|
461
497
|
buyerVatNumber?: string | null;
|
|
462
498
|
taxReverseCharge?: boolean;
|
|
499
|
+
taxProviderMessages?: Array<{
|
|
500
|
+
summary?: string;
|
|
501
|
+
details?: string;
|
|
502
|
+
citationCode?: string;
|
|
503
|
+
refersTo?: string;
|
|
504
|
+
severity?: string;
|
|
505
|
+
source?: string;
|
|
506
|
+
lineNumbers?: Array<string>;
|
|
507
|
+
lineItemIds?: Array<string>;
|
|
508
|
+
}>;
|
|
463
509
|
/**
|
|
464
510
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
465
511
|
*/
|
|
@@ -473,7 +519,7 @@ export declare class OrdersService {
|
|
|
473
519
|
*/
|
|
474
520
|
total?: number;
|
|
475
521
|
/**
|
|
476
|
-
*
|
|
522
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
477
523
|
*/
|
|
478
524
|
compAmount?: number;
|
|
479
525
|
compReason?: string | null;
|
|
@@ -483,6 +529,7 @@ export declare class OrdersService {
|
|
|
483
529
|
holdReason?: string | null;
|
|
484
530
|
heldAt?: string | null;
|
|
485
531
|
heldBy?: string | null;
|
|
532
|
+
notes?: string | null;
|
|
486
533
|
/**
|
|
487
534
|
* Arbitrary key-value metadata
|
|
488
535
|
*/
|
|
@@ -525,6 +572,13 @@ export declare class OrdersService {
|
|
|
525
572
|
phone?: string;
|
|
526
573
|
email?: string;
|
|
527
574
|
} | null;
|
|
575
|
+
shippingMethod?: {
|
|
576
|
+
methodId?: string;
|
|
577
|
+
displayName?: string;
|
|
578
|
+
carrier?: string | null;
|
|
579
|
+
serviceCode?: string | null;
|
|
580
|
+
amount?: number;
|
|
581
|
+
} | null;
|
|
528
582
|
customerId?: string | null;
|
|
529
583
|
subscriptionId?: string | null;
|
|
530
584
|
customer?: {
|
|
@@ -573,6 +627,14 @@ export declare class OrdersService {
|
|
|
573
627
|
*/
|
|
574
628
|
metadata?: Record<string, any>;
|
|
575
629
|
}>;
|
|
630
|
+
/**
|
|
631
|
+
* What this order actually collected, before refunds. Not the same as `total` on a partially-paid order.
|
|
632
|
+
*/
|
|
633
|
+
capturedAmount?: number;
|
|
634
|
+
/**
|
|
635
|
+
* How much of the captured money went back. `paymentStatus: "refunded"` says a full refund happened; this says how much it was.
|
|
636
|
+
*/
|
|
637
|
+
refundedAmount?: number;
|
|
576
638
|
};
|
|
577
639
|
meta?: {
|
|
578
640
|
requestId?: string;
|
|
@@ -662,6 +724,16 @@ export declare class OrdersService {
|
|
|
662
724
|
taxTotal?: number;
|
|
663
725
|
buyerVatNumber?: string | null;
|
|
664
726
|
taxReverseCharge?: boolean;
|
|
727
|
+
taxProviderMessages?: Array<{
|
|
728
|
+
summary?: string;
|
|
729
|
+
details?: string;
|
|
730
|
+
citationCode?: string;
|
|
731
|
+
refersTo?: string;
|
|
732
|
+
severity?: string;
|
|
733
|
+
source?: string;
|
|
734
|
+
lineNumbers?: Array<string>;
|
|
735
|
+
lineItemIds?: Array<string>;
|
|
736
|
+
}>;
|
|
665
737
|
/**
|
|
666
738
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
667
739
|
*/
|
|
@@ -675,7 +747,7 @@ export declare class OrdersService {
|
|
|
675
747
|
*/
|
|
676
748
|
total?: number;
|
|
677
749
|
/**
|
|
678
|
-
*
|
|
750
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
679
751
|
*/
|
|
680
752
|
compAmount?: number;
|
|
681
753
|
compReason?: string | null;
|
|
@@ -685,6 +757,7 @@ export declare class OrdersService {
|
|
|
685
757
|
holdReason?: string | null;
|
|
686
758
|
heldAt?: string | null;
|
|
687
759
|
heldBy?: string | null;
|
|
760
|
+
notes?: string | null;
|
|
688
761
|
/**
|
|
689
762
|
* Arbitrary key-value metadata
|
|
690
763
|
*/
|
|
@@ -727,6 +800,13 @@ export declare class OrdersService {
|
|
|
727
800
|
phone?: string;
|
|
728
801
|
email?: string;
|
|
729
802
|
} | null;
|
|
803
|
+
shippingMethod?: {
|
|
804
|
+
methodId?: string;
|
|
805
|
+
displayName?: string;
|
|
806
|
+
carrier?: string | null;
|
|
807
|
+
serviceCode?: string | null;
|
|
808
|
+
amount?: number;
|
|
809
|
+
} | null;
|
|
730
810
|
customerId?: string | null;
|
|
731
811
|
subscriptionId?: string | null;
|
|
732
812
|
customer?: {
|
|
@@ -819,6 +899,16 @@ export declare class OrdersService {
|
|
|
819
899
|
taxTotal?: number;
|
|
820
900
|
buyerVatNumber?: string | null;
|
|
821
901
|
taxReverseCharge?: boolean;
|
|
902
|
+
taxProviderMessages?: Array<{
|
|
903
|
+
summary?: string;
|
|
904
|
+
details?: string;
|
|
905
|
+
citationCode?: string;
|
|
906
|
+
refersTo?: string;
|
|
907
|
+
severity?: string;
|
|
908
|
+
source?: string;
|
|
909
|
+
lineNumbers?: Array<string>;
|
|
910
|
+
lineItemIds?: Array<string>;
|
|
911
|
+
}>;
|
|
822
912
|
/**
|
|
823
913
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
824
914
|
*/
|
|
@@ -832,7 +922,7 @@ export declare class OrdersService {
|
|
|
832
922
|
*/
|
|
833
923
|
total?: number;
|
|
834
924
|
/**
|
|
835
|
-
*
|
|
925
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
836
926
|
*/
|
|
837
927
|
compAmount?: number;
|
|
838
928
|
compReason?: string | null;
|
|
@@ -842,6 +932,7 @@ export declare class OrdersService {
|
|
|
842
932
|
holdReason?: string | null;
|
|
843
933
|
heldAt?: string | null;
|
|
844
934
|
heldBy?: string | null;
|
|
935
|
+
notes?: string | null;
|
|
845
936
|
/**
|
|
846
937
|
* Arbitrary key-value metadata
|
|
847
938
|
*/
|
|
@@ -884,6 +975,13 @@ export declare class OrdersService {
|
|
|
884
975
|
phone?: string;
|
|
885
976
|
email?: string;
|
|
886
977
|
} | null;
|
|
978
|
+
shippingMethod?: {
|
|
979
|
+
methodId?: string;
|
|
980
|
+
displayName?: string;
|
|
981
|
+
carrier?: string | null;
|
|
982
|
+
serviceCode?: string | null;
|
|
983
|
+
amount?: number;
|
|
984
|
+
} | null;
|
|
887
985
|
customerId?: string | null;
|
|
888
986
|
subscriptionId?: string | null;
|
|
889
987
|
customer?: {
|
|
@@ -979,6 +1077,16 @@ export declare class OrdersService {
|
|
|
979
1077
|
taxTotal?: number;
|
|
980
1078
|
buyerVatNumber?: string | null;
|
|
981
1079
|
taxReverseCharge?: boolean;
|
|
1080
|
+
taxProviderMessages?: Array<{
|
|
1081
|
+
summary?: string;
|
|
1082
|
+
details?: string;
|
|
1083
|
+
citationCode?: string;
|
|
1084
|
+
refersTo?: string;
|
|
1085
|
+
severity?: string;
|
|
1086
|
+
source?: string;
|
|
1087
|
+
lineNumbers?: Array<string>;
|
|
1088
|
+
lineItemIds?: Array<string>;
|
|
1089
|
+
}>;
|
|
982
1090
|
/**
|
|
983
1091
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
984
1092
|
*/
|
|
@@ -992,7 +1100,7 @@ export declare class OrdersService {
|
|
|
992
1100
|
*/
|
|
993
1101
|
total?: number;
|
|
994
1102
|
/**
|
|
995
|
-
*
|
|
1103
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
996
1104
|
*/
|
|
997
1105
|
compAmount?: number;
|
|
998
1106
|
compReason?: string | null;
|
|
@@ -1002,6 +1110,7 @@ export declare class OrdersService {
|
|
|
1002
1110
|
holdReason?: string | null;
|
|
1003
1111
|
heldAt?: string | null;
|
|
1004
1112
|
heldBy?: string | null;
|
|
1113
|
+
notes?: string | null;
|
|
1005
1114
|
/**
|
|
1006
1115
|
* Arbitrary key-value metadata
|
|
1007
1116
|
*/
|
|
@@ -1044,6 +1153,13 @@ export declare class OrdersService {
|
|
|
1044
1153
|
phone?: string;
|
|
1045
1154
|
email?: string;
|
|
1046
1155
|
} | null;
|
|
1156
|
+
shippingMethod?: {
|
|
1157
|
+
methodId?: string;
|
|
1158
|
+
displayName?: string;
|
|
1159
|
+
carrier?: string | null;
|
|
1160
|
+
serviceCode?: string | null;
|
|
1161
|
+
amount?: number;
|
|
1162
|
+
} | null;
|
|
1047
1163
|
customerId?: string | null;
|
|
1048
1164
|
subscriptionId?: string | null;
|
|
1049
1165
|
customer?: {
|
|
@@ -1139,6 +1255,16 @@ export declare class OrdersService {
|
|
|
1139
1255
|
taxTotal?: number;
|
|
1140
1256
|
buyerVatNumber?: string | null;
|
|
1141
1257
|
taxReverseCharge?: boolean;
|
|
1258
|
+
taxProviderMessages?: Array<{
|
|
1259
|
+
summary?: string;
|
|
1260
|
+
details?: string;
|
|
1261
|
+
citationCode?: string;
|
|
1262
|
+
refersTo?: string;
|
|
1263
|
+
severity?: string;
|
|
1264
|
+
source?: string;
|
|
1265
|
+
lineNumbers?: Array<string>;
|
|
1266
|
+
lineItemIds?: Array<string>;
|
|
1267
|
+
}>;
|
|
1142
1268
|
/**
|
|
1143
1269
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1144
1270
|
*/
|
|
@@ -1152,7 +1278,7 @@ export declare class OrdersService {
|
|
|
1152
1278
|
*/
|
|
1153
1279
|
total?: number;
|
|
1154
1280
|
/**
|
|
1155
|
-
*
|
|
1281
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
1156
1282
|
*/
|
|
1157
1283
|
compAmount?: number;
|
|
1158
1284
|
compReason?: string | null;
|
|
@@ -1162,6 +1288,7 @@ export declare class OrdersService {
|
|
|
1162
1288
|
holdReason?: string | null;
|
|
1163
1289
|
heldAt?: string | null;
|
|
1164
1290
|
heldBy?: string | null;
|
|
1291
|
+
notes?: string | null;
|
|
1165
1292
|
/**
|
|
1166
1293
|
* Arbitrary key-value metadata
|
|
1167
1294
|
*/
|
|
@@ -1204,6 +1331,13 @@ export declare class OrdersService {
|
|
|
1204
1331
|
phone?: string;
|
|
1205
1332
|
email?: string;
|
|
1206
1333
|
} | null;
|
|
1334
|
+
shippingMethod?: {
|
|
1335
|
+
methodId?: string;
|
|
1336
|
+
displayName?: string;
|
|
1337
|
+
carrier?: string | null;
|
|
1338
|
+
serviceCode?: string | null;
|
|
1339
|
+
amount?: number;
|
|
1340
|
+
} | null;
|
|
1207
1341
|
customerId?: string | null;
|
|
1208
1342
|
subscriptionId?: string | null;
|
|
1209
1343
|
customer?: {
|
|
@@ -1300,6 +1434,16 @@ export declare class OrdersService {
|
|
|
1300
1434
|
taxTotal?: number;
|
|
1301
1435
|
buyerVatNumber?: string | null;
|
|
1302
1436
|
taxReverseCharge?: boolean;
|
|
1437
|
+
taxProviderMessages?: Array<{
|
|
1438
|
+
summary?: string;
|
|
1439
|
+
details?: string;
|
|
1440
|
+
citationCode?: string;
|
|
1441
|
+
refersTo?: string;
|
|
1442
|
+
severity?: string;
|
|
1443
|
+
source?: string;
|
|
1444
|
+
lineNumbers?: Array<string>;
|
|
1445
|
+
lineItemIds?: Array<string>;
|
|
1446
|
+
}>;
|
|
1303
1447
|
/**
|
|
1304
1448
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1305
1449
|
*/
|
|
@@ -1313,7 +1457,7 @@ export declare class OrdersService {
|
|
|
1313
1457
|
*/
|
|
1314
1458
|
total?: number;
|
|
1315
1459
|
/**
|
|
1316
|
-
*
|
|
1460
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
1317
1461
|
*/
|
|
1318
1462
|
compAmount?: number;
|
|
1319
1463
|
compReason?: string | null;
|
|
@@ -1323,6 +1467,7 @@ export declare class OrdersService {
|
|
|
1323
1467
|
holdReason?: string | null;
|
|
1324
1468
|
heldAt?: string | null;
|
|
1325
1469
|
heldBy?: string | null;
|
|
1470
|
+
notes?: string | null;
|
|
1326
1471
|
/**
|
|
1327
1472
|
* Arbitrary key-value metadata
|
|
1328
1473
|
*/
|
|
@@ -1365,6 +1510,13 @@ export declare class OrdersService {
|
|
|
1365
1510
|
phone?: string;
|
|
1366
1511
|
email?: string;
|
|
1367
1512
|
} | null;
|
|
1513
|
+
shippingMethod?: {
|
|
1514
|
+
methodId?: string;
|
|
1515
|
+
displayName?: string;
|
|
1516
|
+
carrier?: string | null;
|
|
1517
|
+
serviceCode?: string | null;
|
|
1518
|
+
amount?: number;
|
|
1519
|
+
} | null;
|
|
1368
1520
|
customerId?: string | null;
|
|
1369
1521
|
subscriptionId?: string | null;
|
|
1370
1522
|
customer?: {
|
|
@@ -1470,6 +1622,16 @@ export declare class OrdersService {
|
|
|
1470
1622
|
taxTotal?: number;
|
|
1471
1623
|
buyerVatNumber?: string | null;
|
|
1472
1624
|
taxReverseCharge?: boolean;
|
|
1625
|
+
taxProviderMessages?: Array<{
|
|
1626
|
+
summary?: string;
|
|
1627
|
+
details?: string;
|
|
1628
|
+
citationCode?: string;
|
|
1629
|
+
refersTo?: string;
|
|
1630
|
+
severity?: string;
|
|
1631
|
+
source?: string;
|
|
1632
|
+
lineNumbers?: Array<string>;
|
|
1633
|
+
lineItemIds?: Array<string>;
|
|
1634
|
+
}>;
|
|
1473
1635
|
/**
|
|
1474
1636
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1475
1637
|
*/
|
|
@@ -1483,7 +1645,7 @@ export declare class OrdersService {
|
|
|
1483
1645
|
*/
|
|
1484
1646
|
total?: number;
|
|
1485
1647
|
/**
|
|
1486
|
-
*
|
|
1648
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
1487
1649
|
*/
|
|
1488
1650
|
compAmount?: number;
|
|
1489
1651
|
compReason?: string | null;
|
|
@@ -1493,6 +1655,7 @@ export declare class OrdersService {
|
|
|
1493
1655
|
holdReason?: string | null;
|
|
1494
1656
|
heldAt?: string | null;
|
|
1495
1657
|
heldBy?: string | null;
|
|
1658
|
+
notes?: string | null;
|
|
1496
1659
|
/**
|
|
1497
1660
|
* Arbitrary key-value metadata
|
|
1498
1661
|
*/
|
|
@@ -1535,6 +1698,13 @@ export declare class OrdersService {
|
|
|
1535
1698
|
phone?: string;
|
|
1536
1699
|
email?: string;
|
|
1537
1700
|
} | null;
|
|
1701
|
+
shippingMethod?: {
|
|
1702
|
+
methodId?: string;
|
|
1703
|
+
displayName?: string;
|
|
1704
|
+
carrier?: string | null;
|
|
1705
|
+
serviceCode?: string | null;
|
|
1706
|
+
amount?: number;
|
|
1707
|
+
} | null;
|
|
1538
1708
|
customerId?: string | null;
|
|
1539
1709
|
subscriptionId?: string | null;
|
|
1540
1710
|
customer?: {
|
|
@@ -1593,7 +1763,7 @@ export declare class OrdersService {
|
|
|
1593
1763
|
};
|
|
1594
1764
|
}>;
|
|
1595
1765
|
/**
|
|
1596
|
-
* Write off the order's remaining balance. Money already captured stays captured; the buyer is never charged and no processor is contacted. `compAmount` is set to the balance outstanding
|
|
1766
|
+
* Write off the order's remaining balance. Money already captured stays captured; the buyer is never charged and no processor is contacted. `compAmount` is set to the balance outstanding; `total` is NOT reduced, because the order is still a sale of that size — the comp is a credit recorded against it. What the buyer owes is `total - compAmount`, so `paymentStatus` settles at `captured` and `displayStatus` reads "… · Comped".
|
|
1597
1767
|
* @param id
|
|
1598
1768
|
* @param requestBody
|
|
1599
1769
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
@@ -1630,6 +1800,16 @@ export declare class OrdersService {
|
|
|
1630
1800
|
taxTotal?: number;
|
|
1631
1801
|
buyerVatNumber?: string | null;
|
|
1632
1802
|
taxReverseCharge?: boolean;
|
|
1803
|
+
taxProviderMessages?: Array<{
|
|
1804
|
+
summary?: string;
|
|
1805
|
+
details?: string;
|
|
1806
|
+
citationCode?: string;
|
|
1807
|
+
refersTo?: string;
|
|
1808
|
+
severity?: string;
|
|
1809
|
+
source?: string;
|
|
1810
|
+
lineNumbers?: Array<string>;
|
|
1811
|
+
lineItemIds?: Array<string>;
|
|
1812
|
+
}>;
|
|
1633
1813
|
/**
|
|
1634
1814
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1635
1815
|
*/
|
|
@@ -1643,7 +1823,7 @@ export declare class OrdersService {
|
|
|
1643
1823
|
*/
|
|
1644
1824
|
total?: number;
|
|
1645
1825
|
/**
|
|
1646
|
-
*
|
|
1826
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
1647
1827
|
*/
|
|
1648
1828
|
compAmount?: number;
|
|
1649
1829
|
compReason?: string | null;
|
|
@@ -1653,6 +1833,7 @@ export declare class OrdersService {
|
|
|
1653
1833
|
holdReason?: string | null;
|
|
1654
1834
|
heldAt?: string | null;
|
|
1655
1835
|
heldBy?: string | null;
|
|
1836
|
+
notes?: string | null;
|
|
1656
1837
|
/**
|
|
1657
1838
|
* Arbitrary key-value metadata
|
|
1658
1839
|
*/
|
|
@@ -1695,6 +1876,13 @@ export declare class OrdersService {
|
|
|
1695
1876
|
phone?: string;
|
|
1696
1877
|
email?: string;
|
|
1697
1878
|
} | null;
|
|
1879
|
+
shippingMethod?: {
|
|
1880
|
+
methodId?: string;
|
|
1881
|
+
displayName?: string;
|
|
1882
|
+
carrier?: string | null;
|
|
1883
|
+
serviceCode?: string | null;
|
|
1884
|
+
amount?: number;
|
|
1885
|
+
} | null;
|
|
1698
1886
|
customerId?: string | null;
|
|
1699
1887
|
subscriptionId?: string | null;
|
|
1700
1888
|
customer?: {
|
|
@@ -1762,7 +1950,7 @@ export declare class OrdersService {
|
|
|
1762
1950
|
};
|
|
1763
1951
|
}>;
|
|
1764
1952
|
/**
|
|
1765
|
-
* Undo a comp. The order owes what it owed again: `compAmount` returns to 0
|
|
1953
|
+
* Undo a comp. The order owes what it owed again: `compAmount` returns to 0 (`total` never moved) and `paymentStatus` falls back out of `captured` on its own. Side effects of the comp are NOT rewound: an authorization voided at the processor cannot be un-voided, so collecting the restored balance needs a new payment, and a tax document voided or returned at the provider needs a manual re-file (`POST /v1/tax-documents/{id}/retry`).
|
|
1766
1954
|
* @param id
|
|
1767
1955
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1768
1956
|
* @returns any Default Response
|
|
@@ -1796,6 +1984,16 @@ export declare class OrdersService {
|
|
|
1796
1984
|
taxTotal?: number;
|
|
1797
1985
|
buyerVatNumber?: string | null;
|
|
1798
1986
|
taxReverseCharge?: boolean;
|
|
1987
|
+
taxProviderMessages?: Array<{
|
|
1988
|
+
summary?: string;
|
|
1989
|
+
details?: string;
|
|
1990
|
+
citationCode?: string;
|
|
1991
|
+
refersTo?: string;
|
|
1992
|
+
severity?: string;
|
|
1993
|
+
source?: string;
|
|
1994
|
+
lineNumbers?: Array<string>;
|
|
1995
|
+
lineItemIds?: Array<string>;
|
|
1996
|
+
}>;
|
|
1799
1997
|
/**
|
|
1800
1998
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1801
1999
|
*/
|
|
@@ -1809,7 +2007,7 @@ export declare class OrdersService {
|
|
|
1809
2007
|
*/
|
|
1810
2008
|
total?: number;
|
|
1811
2009
|
/**
|
|
1812
|
-
*
|
|
2010
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
1813
2011
|
*/
|
|
1814
2012
|
compAmount?: number;
|
|
1815
2013
|
compReason?: string | null;
|
|
@@ -1819,6 +2017,7 @@ export declare class OrdersService {
|
|
|
1819
2017
|
holdReason?: string | null;
|
|
1820
2018
|
heldAt?: string | null;
|
|
1821
2019
|
heldBy?: string | null;
|
|
2020
|
+
notes?: string | null;
|
|
1822
2021
|
/**
|
|
1823
2022
|
* Arbitrary key-value metadata
|
|
1824
2023
|
*/
|
|
@@ -1861,6 +2060,13 @@ export declare class OrdersService {
|
|
|
1861
2060
|
phone?: string;
|
|
1862
2061
|
email?: string;
|
|
1863
2062
|
} | null;
|
|
2063
|
+
shippingMethod?: {
|
|
2064
|
+
methodId?: string;
|
|
2065
|
+
displayName?: string;
|
|
2066
|
+
carrier?: string | null;
|
|
2067
|
+
serviceCode?: string | null;
|
|
2068
|
+
amount?: number;
|
|
2069
|
+
} | null;
|
|
1864
2070
|
customerId?: string | null;
|
|
1865
2071
|
subscriptionId?: string | null;
|
|
1866
2072
|
customer?: {
|
|
@@ -1956,6 +2162,16 @@ export declare class OrdersService {
|
|
|
1956
2162
|
taxTotal?: number;
|
|
1957
2163
|
buyerVatNumber?: string | null;
|
|
1958
2164
|
taxReverseCharge?: boolean;
|
|
2165
|
+
taxProviderMessages?: Array<{
|
|
2166
|
+
summary?: string;
|
|
2167
|
+
details?: string;
|
|
2168
|
+
citationCode?: string;
|
|
2169
|
+
refersTo?: string;
|
|
2170
|
+
severity?: string;
|
|
2171
|
+
source?: string;
|
|
2172
|
+
lineNumbers?: Array<string>;
|
|
2173
|
+
lineItemIds?: Array<string>;
|
|
2174
|
+
}>;
|
|
1959
2175
|
/**
|
|
1960
2176
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
1961
2177
|
*/
|
|
@@ -1969,7 +2185,7 @@ export declare class OrdersService {
|
|
|
1969
2185
|
*/
|
|
1970
2186
|
total?: number;
|
|
1971
2187
|
/**
|
|
1972
|
-
*
|
|
2188
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
1973
2189
|
*/
|
|
1974
2190
|
compAmount?: number;
|
|
1975
2191
|
compReason?: string | null;
|
|
@@ -1979,6 +2195,7 @@ export declare class OrdersService {
|
|
|
1979
2195
|
holdReason?: string | null;
|
|
1980
2196
|
heldAt?: string | null;
|
|
1981
2197
|
heldBy?: string | null;
|
|
2198
|
+
notes?: string | null;
|
|
1982
2199
|
/**
|
|
1983
2200
|
* Arbitrary key-value metadata
|
|
1984
2201
|
*/
|
|
@@ -2021,6 +2238,13 @@ export declare class OrdersService {
|
|
|
2021
2238
|
phone?: string;
|
|
2022
2239
|
email?: string;
|
|
2023
2240
|
} | null;
|
|
2241
|
+
shippingMethod?: {
|
|
2242
|
+
methodId?: string;
|
|
2243
|
+
displayName?: string;
|
|
2244
|
+
carrier?: string | null;
|
|
2245
|
+
serviceCode?: string | null;
|
|
2246
|
+
amount?: number;
|
|
2247
|
+
} | null;
|
|
2024
2248
|
customerId?: string | null;
|
|
2025
2249
|
subscriptionId?: string | null;
|
|
2026
2250
|
customer?: {
|
|
@@ -2113,6 +2337,16 @@ export declare class OrdersService {
|
|
|
2113
2337
|
taxTotal?: number;
|
|
2114
2338
|
buyerVatNumber?: string | null;
|
|
2115
2339
|
taxReverseCharge?: boolean;
|
|
2340
|
+
taxProviderMessages?: Array<{
|
|
2341
|
+
summary?: string;
|
|
2342
|
+
details?: string;
|
|
2343
|
+
citationCode?: string;
|
|
2344
|
+
refersTo?: string;
|
|
2345
|
+
severity?: string;
|
|
2346
|
+
source?: string;
|
|
2347
|
+
lineNumbers?: Array<string>;
|
|
2348
|
+
lineItemIds?: Array<string>;
|
|
2349
|
+
}>;
|
|
2116
2350
|
/**
|
|
2117
2351
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
2118
2352
|
*/
|
|
@@ -2126,7 +2360,7 @@ export declare class OrdersService {
|
|
|
2126
2360
|
*/
|
|
2127
2361
|
total?: number;
|
|
2128
2362
|
/**
|
|
2129
|
-
*
|
|
2363
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
2130
2364
|
*/
|
|
2131
2365
|
compAmount?: number;
|
|
2132
2366
|
compReason?: string | null;
|
|
@@ -2136,6 +2370,7 @@ export declare class OrdersService {
|
|
|
2136
2370
|
holdReason?: string | null;
|
|
2137
2371
|
heldAt?: string | null;
|
|
2138
2372
|
heldBy?: string | null;
|
|
2373
|
+
notes?: string | null;
|
|
2139
2374
|
/**
|
|
2140
2375
|
* Arbitrary key-value metadata
|
|
2141
2376
|
*/
|
|
@@ -2178,6 +2413,13 @@ export declare class OrdersService {
|
|
|
2178
2413
|
phone?: string;
|
|
2179
2414
|
email?: string;
|
|
2180
2415
|
} | null;
|
|
2416
|
+
shippingMethod?: {
|
|
2417
|
+
methodId?: string;
|
|
2418
|
+
displayName?: string;
|
|
2419
|
+
carrier?: string | null;
|
|
2420
|
+
serviceCode?: string | null;
|
|
2421
|
+
amount?: number;
|
|
2422
|
+
} | null;
|
|
2181
2423
|
customerId?: string | null;
|
|
2182
2424
|
subscriptionId?: string | null;
|
|
2183
2425
|
customer?: {
|
|
@@ -2283,6 +2525,7 @@ export declare class OrdersService {
|
|
|
2283
2525
|
actorType?: 'user' | 'system' | 'integration' | 'api_key';
|
|
2284
2526
|
actorName?: string;
|
|
2285
2527
|
reason?: string;
|
|
2528
|
+
subscriptionId?: string;
|
|
2286
2529
|
}>;
|
|
2287
2530
|
meta?: {
|
|
2288
2531
|
requestId?: string;
|
|
@@ -2327,6 +2570,16 @@ export declare class OrdersService {
|
|
|
2327
2570
|
taxTotal?: number;
|
|
2328
2571
|
buyerVatNumber?: string | null;
|
|
2329
2572
|
taxReverseCharge?: boolean;
|
|
2573
|
+
taxProviderMessages?: Array<{
|
|
2574
|
+
summary?: string;
|
|
2575
|
+
details?: string;
|
|
2576
|
+
citationCode?: string;
|
|
2577
|
+
refersTo?: string;
|
|
2578
|
+
severity?: string;
|
|
2579
|
+
source?: string;
|
|
2580
|
+
lineNumbers?: Array<string>;
|
|
2581
|
+
lineItemIds?: Array<string>;
|
|
2582
|
+
}>;
|
|
2330
2583
|
/**
|
|
2331
2584
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
2332
2585
|
*/
|
|
@@ -2340,7 +2593,7 @@ export declare class OrdersService {
|
|
|
2340
2593
|
*/
|
|
2341
2594
|
total?: number;
|
|
2342
2595
|
/**
|
|
2343
|
-
*
|
|
2596
|
+
* Balance written off. A credit against the order, not a re-pricing of it: `total` is unchanged, and what the buyer owes is `total - compAmount`.
|
|
2344
2597
|
*/
|
|
2345
2598
|
compAmount?: number;
|
|
2346
2599
|
compReason?: string | null;
|
|
@@ -2350,6 +2603,7 @@ export declare class OrdersService {
|
|
|
2350
2603
|
holdReason?: string | null;
|
|
2351
2604
|
heldAt?: string | null;
|
|
2352
2605
|
heldBy?: string | null;
|
|
2606
|
+
notes?: string | null;
|
|
2353
2607
|
/**
|
|
2354
2608
|
* Arbitrary key-value metadata
|
|
2355
2609
|
*/
|
|
@@ -2392,6 +2646,13 @@ export declare class OrdersService {
|
|
|
2392
2646
|
phone?: string;
|
|
2393
2647
|
email?: string;
|
|
2394
2648
|
} | null;
|
|
2649
|
+
shippingMethod?: {
|
|
2650
|
+
methodId?: string;
|
|
2651
|
+
displayName?: string;
|
|
2652
|
+
carrier?: string | null;
|
|
2653
|
+
serviceCode?: string | null;
|
|
2654
|
+
amount?: number;
|
|
2655
|
+
} | null;
|
|
2395
2656
|
customerId?: string | null;
|
|
2396
2657
|
subscriptionId?: string | null;
|
|
2397
2658
|
customer?: {
|
|
@@ -2450,7 +2711,7 @@ export declare class OrdersService {
|
|
|
2450
2711
|
};
|
|
2451
2712
|
}>;
|
|
2452
2713
|
/**
|
|
2453
|
-
* Refund
|
|
2714
|
+
* Refund an order. Spread across its captured payments, newest capture first, when the order was paid in instalments.
|
|
2454
2715
|
* @param id
|
|
2455
2716
|
* @param requestBody
|
|
2456
2717
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
@@ -2459,7 +2720,7 @@ export declare class OrdersService {
|
|
|
2459
2720
|
*/
|
|
2460
2721
|
static postApiV1OrdersRefund(id: string, requestBody: {
|
|
2461
2722
|
/**
|
|
2462
|
-
* Partial refund amount (defaults to
|
|
2723
|
+
* Partial refund amount (defaults to everything still refundable on the order)
|
|
2463
2724
|
*/
|
|
2464
2725
|
amount?: number;
|
|
2465
2726
|
reason?: string;
|