@usethrottle/api-client 5.4.0 → 5.6.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/services/CartsService.d.ts +102 -1
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +372 -2
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +12 -1
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +155 -3
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/package.json +1 -1
|
@@ -260,6 +260,15 @@ export declare class OrdersService {
|
|
|
260
260
|
*/
|
|
261
261
|
amount?: number | null;
|
|
262
262
|
count?: number | null;
|
|
263
|
+
schedule?: Array<{
|
|
264
|
+
amount?: number;
|
|
265
|
+
intervalUnit?: string | null;
|
|
266
|
+
intervalCount?: number | null;
|
|
267
|
+
}> | null;
|
|
268
|
+
/**
|
|
269
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
270
|
+
*/
|
|
271
|
+
scheduleUnitTotal?: number | null;
|
|
263
272
|
} | null;
|
|
264
273
|
/**
|
|
265
274
|
* Arbitrary key-value metadata
|
|
@@ -468,6 +477,15 @@ export declare class OrdersService {
|
|
|
468
477
|
*/
|
|
469
478
|
amount?: number | null;
|
|
470
479
|
count?: number | null;
|
|
480
|
+
schedule?: Array<{
|
|
481
|
+
amount?: number;
|
|
482
|
+
intervalUnit?: string | null;
|
|
483
|
+
intervalCount?: number | null;
|
|
484
|
+
}> | null;
|
|
485
|
+
/**
|
|
486
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
487
|
+
*/
|
|
488
|
+
scheduleUnitTotal?: number | null;
|
|
471
489
|
} | null;
|
|
472
490
|
/**
|
|
473
491
|
* Arbitrary key-value metadata
|
|
@@ -684,6 +702,15 @@ export declare class OrdersService {
|
|
|
684
702
|
*/
|
|
685
703
|
amount?: number | null;
|
|
686
704
|
count?: number | null;
|
|
705
|
+
schedule?: Array<{
|
|
706
|
+
amount?: number;
|
|
707
|
+
intervalUnit?: string | null;
|
|
708
|
+
intervalCount?: number | null;
|
|
709
|
+
}> | null;
|
|
710
|
+
/**
|
|
711
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
712
|
+
*/
|
|
713
|
+
scheduleUnitTotal?: number | null;
|
|
687
714
|
} | null;
|
|
688
715
|
/**
|
|
689
716
|
* Arbitrary key-value metadata
|
|
@@ -934,6 +961,15 @@ export declare class OrdersService {
|
|
|
934
961
|
*/
|
|
935
962
|
amount?: number | null;
|
|
936
963
|
count?: number | null;
|
|
964
|
+
schedule?: Array<{
|
|
965
|
+
amount?: number;
|
|
966
|
+
intervalUnit?: string | null;
|
|
967
|
+
intervalCount?: number | null;
|
|
968
|
+
}> | null;
|
|
969
|
+
/**
|
|
970
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
971
|
+
*/
|
|
972
|
+
scheduleUnitTotal?: number | null;
|
|
937
973
|
} | null;
|
|
938
974
|
/**
|
|
939
975
|
* Arbitrary key-value metadata
|
|
@@ -1131,6 +1167,15 @@ export declare class OrdersService {
|
|
|
1131
1167
|
*/
|
|
1132
1168
|
amount?: number | null;
|
|
1133
1169
|
count?: number | null;
|
|
1170
|
+
schedule?: Array<{
|
|
1171
|
+
amount?: number;
|
|
1172
|
+
intervalUnit?: string | null;
|
|
1173
|
+
intervalCount?: number | null;
|
|
1174
|
+
}> | null;
|
|
1175
|
+
/**
|
|
1176
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
1177
|
+
*/
|
|
1178
|
+
scheduleUnitTotal?: number | null;
|
|
1134
1179
|
} | null;
|
|
1135
1180
|
/**
|
|
1136
1181
|
* Arbitrary key-value metadata
|
|
@@ -1331,6 +1376,15 @@ export declare class OrdersService {
|
|
|
1331
1376
|
*/
|
|
1332
1377
|
amount?: number | null;
|
|
1333
1378
|
count?: number | null;
|
|
1379
|
+
schedule?: Array<{
|
|
1380
|
+
amount?: number;
|
|
1381
|
+
intervalUnit?: string | null;
|
|
1382
|
+
intervalCount?: number | null;
|
|
1383
|
+
}> | null;
|
|
1384
|
+
/**
|
|
1385
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
1386
|
+
*/
|
|
1387
|
+
scheduleUnitTotal?: number | null;
|
|
1334
1388
|
} | null;
|
|
1335
1389
|
/**
|
|
1336
1390
|
* Arbitrary key-value metadata
|
|
@@ -1531,6 +1585,15 @@ export declare class OrdersService {
|
|
|
1531
1585
|
*/
|
|
1532
1586
|
amount?: number | null;
|
|
1533
1587
|
count?: number | null;
|
|
1588
|
+
schedule?: Array<{
|
|
1589
|
+
amount?: number;
|
|
1590
|
+
intervalUnit?: string | null;
|
|
1591
|
+
intervalCount?: number | null;
|
|
1592
|
+
}> | null;
|
|
1593
|
+
/**
|
|
1594
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
1595
|
+
*/
|
|
1596
|
+
scheduleUnitTotal?: number | null;
|
|
1534
1597
|
} | null;
|
|
1535
1598
|
/**
|
|
1536
1599
|
* Arbitrary key-value metadata
|
|
@@ -1732,6 +1795,15 @@ export declare class OrdersService {
|
|
|
1732
1795
|
*/
|
|
1733
1796
|
amount?: number | null;
|
|
1734
1797
|
count?: number | null;
|
|
1798
|
+
schedule?: Array<{
|
|
1799
|
+
amount?: number;
|
|
1800
|
+
intervalUnit?: string | null;
|
|
1801
|
+
intervalCount?: number | null;
|
|
1802
|
+
}> | null;
|
|
1803
|
+
/**
|
|
1804
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
1805
|
+
*/
|
|
1806
|
+
scheduleUnitTotal?: number | null;
|
|
1735
1807
|
} | null;
|
|
1736
1808
|
/**
|
|
1737
1809
|
* Arbitrary key-value metadata
|
|
@@ -1942,6 +2014,15 @@ export declare class OrdersService {
|
|
|
1942
2014
|
*/
|
|
1943
2015
|
amount?: number | null;
|
|
1944
2016
|
count?: number | null;
|
|
2017
|
+
schedule?: Array<{
|
|
2018
|
+
amount?: number;
|
|
2019
|
+
intervalUnit?: string | null;
|
|
2020
|
+
intervalCount?: number | null;
|
|
2021
|
+
}> | null;
|
|
2022
|
+
/**
|
|
2023
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
2024
|
+
*/
|
|
2025
|
+
scheduleUnitTotal?: number | null;
|
|
1945
2026
|
} | null;
|
|
1946
2027
|
/**
|
|
1947
2028
|
* Arbitrary key-value metadata
|
|
@@ -2142,6 +2223,15 @@ export declare class OrdersService {
|
|
|
2142
2223
|
*/
|
|
2143
2224
|
amount?: number | null;
|
|
2144
2225
|
count?: number | null;
|
|
2226
|
+
schedule?: Array<{
|
|
2227
|
+
amount?: number;
|
|
2228
|
+
intervalUnit?: string | null;
|
|
2229
|
+
intervalCount?: number | null;
|
|
2230
|
+
}> | null;
|
|
2231
|
+
/**
|
|
2232
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
2233
|
+
*/
|
|
2234
|
+
scheduleUnitTotal?: number | null;
|
|
2145
2235
|
} | null;
|
|
2146
2236
|
/**
|
|
2147
2237
|
* Arbitrary key-value metadata
|
|
@@ -2348,6 +2438,15 @@ export declare class OrdersService {
|
|
|
2348
2438
|
*/
|
|
2349
2439
|
amount?: number | null;
|
|
2350
2440
|
count?: number | null;
|
|
2441
|
+
schedule?: Array<{
|
|
2442
|
+
amount?: number;
|
|
2443
|
+
intervalUnit?: string | null;
|
|
2444
|
+
intervalCount?: number | null;
|
|
2445
|
+
}> | null;
|
|
2446
|
+
/**
|
|
2447
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
2448
|
+
*/
|
|
2449
|
+
scheduleUnitTotal?: number | null;
|
|
2351
2450
|
} | null;
|
|
2352
2451
|
/**
|
|
2353
2452
|
* Arbitrary key-value metadata
|
|
@@ -2548,6 +2647,15 @@ export declare class OrdersService {
|
|
|
2548
2647
|
*/
|
|
2549
2648
|
amount?: number | null;
|
|
2550
2649
|
count?: number | null;
|
|
2650
|
+
schedule?: Array<{
|
|
2651
|
+
amount?: number;
|
|
2652
|
+
intervalUnit?: string | null;
|
|
2653
|
+
intervalCount?: number | null;
|
|
2654
|
+
}> | null;
|
|
2655
|
+
/**
|
|
2656
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
2657
|
+
*/
|
|
2658
|
+
scheduleUnitTotal?: number | null;
|
|
2551
2659
|
} | null;
|
|
2552
2660
|
/**
|
|
2553
2661
|
* Arbitrary key-value metadata
|
|
@@ -2745,6 +2853,15 @@ export declare class OrdersService {
|
|
|
2745
2853
|
*/
|
|
2746
2854
|
amount?: number | null;
|
|
2747
2855
|
count?: number | null;
|
|
2856
|
+
schedule?: Array<{
|
|
2857
|
+
amount?: number;
|
|
2858
|
+
intervalUnit?: string | null;
|
|
2859
|
+
intervalCount?: number | null;
|
|
2860
|
+
}> | null;
|
|
2861
|
+
/**
|
|
2862
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
2863
|
+
*/
|
|
2864
|
+
scheduleUnitTotal?: number | null;
|
|
2748
2865
|
} | null;
|
|
2749
2866
|
/**
|
|
2750
2867
|
* Arbitrary key-value metadata
|
|
@@ -3006,6 +3123,15 @@ export declare class OrdersService {
|
|
|
3006
3123
|
*/
|
|
3007
3124
|
amount?: number | null;
|
|
3008
3125
|
count?: number | null;
|
|
3126
|
+
schedule?: Array<{
|
|
3127
|
+
amount?: number;
|
|
3128
|
+
intervalUnit?: string | null;
|
|
3129
|
+
intervalCount?: number | null;
|
|
3130
|
+
}> | null;
|
|
3131
|
+
/**
|
|
3132
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3133
|
+
*/
|
|
3134
|
+
scheduleUnitTotal?: number | null;
|
|
3009
3135
|
} | null;
|
|
3010
3136
|
/**
|
|
3011
3137
|
* Arbitrary key-value metadata
|
|
@@ -3091,7 +3217,7 @@ export declare class OrdersService {
|
|
|
3091
3217
|
* @param id
|
|
3092
3218
|
* @param requestBody
|
|
3093
3219
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
3094
|
-
* @returns any
|
|
3220
|
+
* @returns any The edit was applied and any money delta settled.
|
|
3095
3221
|
* @throws ApiError
|
|
3096
3222
|
*/
|
|
3097
3223
|
static patchApiV1OrdersLineItems(id: string, requestBody: {
|
|
@@ -3116,6 +3242,250 @@ export declare class OrdersService {
|
|
|
3116
3242
|
unitPrice?: number;
|
|
3117
3243
|
}>;
|
|
3118
3244
|
remove?: Array<string>;
|
|
3119
|
-
}, xThrottleEnvironmentId?: string): CancelablePromise<
|
|
3245
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
3246
|
+
/**
|
|
3247
|
+
* The order as stored after the edit, with every line item, the money settled for it, and any tax warnings.
|
|
3248
|
+
*/
|
|
3249
|
+
data: {
|
|
3250
|
+
id: string;
|
|
3251
|
+
workspaceId?: string;
|
|
3252
|
+
discountId?: string | null;
|
|
3253
|
+
discountCode?: string | null;
|
|
3254
|
+
orderNumber?: string;
|
|
3255
|
+
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
3256
|
+
type?: 'one_time' | 'recurring' | 'mixed';
|
|
3257
|
+
paymentStatus?: 'pending' | 'authorized' | 'captured' | 'partially_paid' | 'partially_refunded' | 'refunded' | 'failed' | 'voided' | 'processing' | 'disputed' | 'expired';
|
|
3258
|
+
source?: 'web' | 'mobile' | 'pos' | 'api' | 'subscription_engine';
|
|
3259
|
+
currency?: string;
|
|
3260
|
+
/**
|
|
3261
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3262
|
+
*/
|
|
3263
|
+
subtotal?: number;
|
|
3264
|
+
/**
|
|
3265
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3266
|
+
*/
|
|
3267
|
+
taxTotal?: number;
|
|
3268
|
+
buyerVatNumber?: string | null;
|
|
3269
|
+
taxReverseCharge?: boolean;
|
|
3270
|
+
taxProviderMessages?: Array<{
|
|
3271
|
+
summary?: string;
|
|
3272
|
+
details?: string;
|
|
3273
|
+
citationCode?: string;
|
|
3274
|
+
refersTo?: string;
|
|
3275
|
+
severity?: string;
|
|
3276
|
+
source?: string;
|
|
3277
|
+
lineNumbers?: Array<string>;
|
|
3278
|
+
lineItemIds?: Array<string>;
|
|
3279
|
+
}>;
|
|
3280
|
+
/**
|
|
3281
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3282
|
+
*/
|
|
3283
|
+
discountTotal?: number;
|
|
3284
|
+
/**
|
|
3285
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3286
|
+
*/
|
|
3287
|
+
shippingTotal?: number;
|
|
3288
|
+
/**
|
|
3289
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3290
|
+
*/
|
|
3291
|
+
total?: number;
|
|
3292
|
+
/**
|
|
3293
|
+
* 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`.
|
|
3294
|
+
*/
|
|
3295
|
+
compAmount?: number;
|
|
3296
|
+
compReason?: string | null;
|
|
3297
|
+
compedAt?: string | null;
|
|
3298
|
+
compedBy?: string | null;
|
|
3299
|
+
onHold?: boolean;
|
|
3300
|
+
holdReason?: string | null;
|
|
3301
|
+
heldAt?: string | null;
|
|
3302
|
+
heldBy?: string | null;
|
|
3303
|
+
notes?: string | null;
|
|
3304
|
+
/**
|
|
3305
|
+
* Arbitrary key-value metadata
|
|
3306
|
+
*/
|
|
3307
|
+
metadata?: Record<string, any>;
|
|
3308
|
+
billingAddress?: {
|
|
3309
|
+
firstName?: string;
|
|
3310
|
+
lastName?: string;
|
|
3311
|
+
/**
|
|
3312
|
+
* Optional. Business name for B2B addresses.
|
|
3313
|
+
*/
|
|
3314
|
+
company?: string;
|
|
3315
|
+
addressLine1?: string;
|
|
3316
|
+
addressLine2?: string;
|
|
3317
|
+
city?: string;
|
|
3318
|
+
stateProvince?: string;
|
|
3319
|
+
postalCode?: string;
|
|
3320
|
+
/**
|
|
3321
|
+
* ISO 3166-1 alpha-2
|
|
3322
|
+
*/
|
|
3323
|
+
countryCode?: string;
|
|
3324
|
+
phone?: string;
|
|
3325
|
+
email?: string;
|
|
3326
|
+
} | null;
|
|
3327
|
+
shippingAddress?: {
|
|
3328
|
+
firstName?: string;
|
|
3329
|
+
lastName?: string;
|
|
3330
|
+
/**
|
|
3331
|
+
* Optional. Business name for B2B addresses.
|
|
3332
|
+
*/
|
|
3333
|
+
company?: string;
|
|
3334
|
+
addressLine1?: string;
|
|
3335
|
+
addressLine2?: string;
|
|
3336
|
+
city?: string;
|
|
3337
|
+
stateProvince?: string;
|
|
3338
|
+
postalCode?: string;
|
|
3339
|
+
/**
|
|
3340
|
+
* ISO 3166-1 alpha-2
|
|
3341
|
+
*/
|
|
3342
|
+
countryCode?: string;
|
|
3343
|
+
phone?: string;
|
|
3344
|
+
email?: string;
|
|
3345
|
+
} | null;
|
|
3346
|
+
shippingMethod?: {
|
|
3347
|
+
methodId?: string;
|
|
3348
|
+
displayName?: string;
|
|
3349
|
+
carrier?: string | null;
|
|
3350
|
+
serviceCode?: string | null;
|
|
3351
|
+
amount?: number;
|
|
3352
|
+
} | null;
|
|
3353
|
+
customerId?: string | null;
|
|
3354
|
+
subscriptionId?: string | null;
|
|
3355
|
+
cancelledAt?: string | null;
|
|
3356
|
+
completedAt?: string | null;
|
|
3357
|
+
closedAt?: string | null;
|
|
3358
|
+
createdAt?: string;
|
|
3359
|
+
updatedAt?: string;
|
|
3360
|
+
applicationId?: string;
|
|
3361
|
+
environmentId?: string;
|
|
3362
|
+
cartId?: string | null;
|
|
3363
|
+
/**
|
|
3364
|
+
* The source platform's own order id, for an order that arrived by import; null otherwise.
|
|
3365
|
+
*/
|
|
3366
|
+
externalId?: string | null;
|
|
3367
|
+
/**
|
|
3368
|
+
* The source platform's customer id, for an order that arrived by import; null otherwise.
|
|
3369
|
+
*/
|
|
3370
|
+
externalCustomerId?: string | null;
|
|
3371
|
+
/**
|
|
3372
|
+
* The import that created this order; null otherwise.
|
|
3373
|
+
*/
|
|
3374
|
+
importId?: string | null;
|
|
3375
|
+
/**
|
|
3376
|
+
* The buyer's IP address recorded at checkout.
|
|
3377
|
+
*/
|
|
3378
|
+
ipAddress?: string | null;
|
|
3379
|
+
/**
|
|
3380
|
+
* The buyer's user agent recorded at checkout.
|
|
3381
|
+
*/
|
|
3382
|
+
userAgent?: string | null;
|
|
3383
|
+
/**
|
|
3384
|
+
* Attribution snapshot copied from the checkout session when the order was created.
|
|
3385
|
+
*/
|
|
3386
|
+
clientContext?: Record<string, any> | null;
|
|
3387
|
+
/**
|
|
3388
|
+
* Every line item on the order after the edit, not only the ones changed.
|
|
3389
|
+
*/
|
|
3390
|
+
items: Array<{
|
|
3391
|
+
id?: string;
|
|
3392
|
+
type?: 'product' | 'subscription' | 'service' | 'ticket' | 'donation' | 'custom' | 'usage';
|
|
3393
|
+
referenceId?: string | null;
|
|
3394
|
+
name?: string;
|
|
3395
|
+
description?: string | null;
|
|
3396
|
+
/**
|
|
3397
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3398
|
+
*/
|
|
3399
|
+
unitPrice?: number;
|
|
3400
|
+
quantity?: number;
|
|
3401
|
+
/**
|
|
3402
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3403
|
+
*/
|
|
3404
|
+
subtotal?: number;
|
|
3405
|
+
/**
|
|
3406
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3407
|
+
*/
|
|
3408
|
+
taxAmount?: number;
|
|
3409
|
+
/**
|
|
3410
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3411
|
+
*/
|
|
3412
|
+
discountAmount?: number;
|
|
3413
|
+
/**
|
|
3414
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3415
|
+
*/
|
|
3416
|
+
total?: number;
|
|
3417
|
+
imageUrl?: string | null;
|
|
3418
|
+
deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
|
|
3419
|
+
subscriptionId?: string | null;
|
|
3420
|
+
/**
|
|
3421
|
+
* Subscription terms. A merchant-declared subscription line carries `plan`; the plan line Throttle adds for a session `recurring` intent carries only the cadence and `count`. `amount` is the renewal unit price, set only on a trial line (whose `unitPrice` is 0).
|
|
3422
|
+
*/
|
|
3423
|
+
recurring?: {
|
|
3424
|
+
plan?: string;
|
|
3425
|
+
planName?: string | null;
|
|
3426
|
+
interval?: string;
|
|
3427
|
+
intervalUnit?: string | null;
|
|
3428
|
+
intervalCount?: number | null;
|
|
3429
|
+
totalPayments?: number | null;
|
|
3430
|
+
trialDays?: number;
|
|
3431
|
+
/**
|
|
3432
|
+
* Amount in cents (e.g. 1999 = $19.99)
|
|
3433
|
+
*/
|
|
3434
|
+
amount?: number | null;
|
|
3435
|
+
count?: number | null;
|
|
3436
|
+
} | null;
|
|
3437
|
+
/**
|
|
3438
|
+
* Arbitrary key-value metadata
|
|
3439
|
+
*/
|
|
3440
|
+
metadata?: Record<string, any>;
|
|
3441
|
+
workspaceId?: string;
|
|
3442
|
+
applicationId?: string;
|
|
3443
|
+
orderId?: string;
|
|
3444
|
+
cartId?: string | null;
|
|
3445
|
+
position?: number;
|
|
3446
|
+
createdAt?: string;
|
|
3447
|
+
updatedAt?: string;
|
|
3448
|
+
}>;
|
|
3449
|
+
/**
|
|
3450
|
+
* The money the edit settled.
|
|
3451
|
+
*/
|
|
3452
|
+
adjustment: {
|
|
3453
|
+
/**
|
|
3454
|
+
* Change in what the buyer owes, in minor units. On an order with a captured payment a positive delta was charged to the stored card and a negative one refunded; otherwise no money moved.
|
|
3455
|
+
*/
|
|
3456
|
+
delta: number;
|
|
3457
|
+
/**
|
|
3458
|
+
* The order total before the edit, in minor units.
|
|
3459
|
+
*/
|
|
3460
|
+
previousTotal: number;
|
|
3461
|
+
/**
|
|
3462
|
+
* The order total after the edit, in minor units.
|
|
3463
|
+
*/
|
|
3464
|
+
newTotal: number;
|
|
3465
|
+
/**
|
|
3466
|
+
* The payment that charged a positive delta; null when nothing was charged.
|
|
3467
|
+
*/
|
|
3468
|
+
chargedPaymentId?: string | null;
|
|
3469
|
+
/**
|
|
3470
|
+
* The payment a negative delta was refunded on; null when nothing was refunded.
|
|
3471
|
+
*/
|
|
3472
|
+
refundedPaymentId?: string | null;
|
|
3473
|
+
/**
|
|
3474
|
+
* Set when refunding a negative delta failed. The line items were still changed; retry the refund from the order.
|
|
3475
|
+
*/
|
|
3476
|
+
refundError?: {
|
|
3477
|
+
code?: string;
|
|
3478
|
+
message?: string;
|
|
3479
|
+
} | null;
|
|
3480
|
+
};
|
|
3481
|
+
/**
|
|
3482
|
+
* Present only when there is something to report. Notes from re-quoting tax with the tax provider (`taxMode: "app_based"`, e.g. Avalara) under the lenient tax fallback policy: `provider_fallback` (the provider could not answer, so your native tax rules priced the edit), `tax_address_missing` (there is no address to tax from, so no tax was charged), `tax_zero_from_provider` (the provider returned no tax for the address). Under the strict policy the same failures refuse the edit instead (503 / 422).
|
|
3483
|
+
*/
|
|
3484
|
+
warnings?: Array<{
|
|
3485
|
+
code: string;
|
|
3486
|
+
message: string;
|
|
3487
|
+
}>;
|
|
3488
|
+
};
|
|
3489
|
+
}>;
|
|
3120
3490
|
}
|
|
3121
3491
|
//# sourceMappingURL=OrdersService.d.ts.map
|