@usethrottle/api-client 5.2.0 → 5.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.
Files changed (34) hide show
  1. package/dist/generated/services/CartsService.d.ts +630 -0
  2. package/dist/generated/services/CartsService.d.ts.map +1 -1
  3. package/dist/generated/services/CartsService.js.map +1 -1
  4. package/dist/generated/services/CheckoutService.d.ts +8 -0
  5. package/dist/generated/services/CheckoutService.d.ts.map +1 -1
  6. package/dist/generated/services/CheckoutService.js +19 -0
  7. package/dist/generated/services/CheckoutService.js.map +1 -1
  8. package/dist/generated/services/CheckoutSessionsService.d.ts +10 -2
  9. package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
  10. package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
  11. package/dist/generated/services/DefaultService.d.ts +35 -0
  12. package/dist/generated/services/DefaultService.d.ts.map +1 -1
  13. package/dist/generated/services/DefaultService.js +66 -0
  14. package/dist/generated/services/DefaultService.js.map +1 -1
  15. package/dist/generated/services/OAuthService.d.ts +1 -0
  16. package/dist/generated/services/OAuthService.d.ts.map +1 -1
  17. package/dist/generated/services/OAuthService.js.map +1 -1
  18. package/dist/generated/services/OrdersService.d.ts +268 -2
  19. package/dist/generated/services/OrdersService.d.ts.map +1 -1
  20. package/dist/generated/services/OrdersService.js +2 -2
  21. package/dist/generated/services/OrdersService.js.map +1 -1
  22. package/dist/generated/services/QuotesService.d.ts +72 -0
  23. package/dist/generated/services/QuotesService.d.ts.map +1 -1
  24. package/dist/generated/services/QuotesService.js +1 -0
  25. package/dist/generated/services/QuotesService.js.map +1 -1
  26. package/dist/generated/services/SubscriptionsService.d.ts +352 -265
  27. package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
  28. package/dist/generated/services/SubscriptionsService.js +1 -1
  29. package/dist/generated/services/SubscriptionsService.js.map +1 -1
  30. package/dist/generated/services/WebhooksOutboundService.d.ts +1 -0
  31. package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
  32. package/dist/generated/services/WebhooksOutboundService.js +1 -0
  33. package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
  34. package/package.json +1 -1
@@ -47,6 +47,66 @@ export declare class CartsService {
47
47
  * Amount in cents (e.g. 1999 = $19.99)
48
48
  */
49
49
  total?: number;
50
+ lineItems?: Array<{
51
+ id?: string;
52
+ cartId?: string | null;
53
+ type?: string;
54
+ referenceId?: string | null;
55
+ name?: string;
56
+ description?: string | null;
57
+ /**
58
+ * Amount in cents (e.g. 1999 = $19.99)
59
+ */
60
+ unitPrice?: number;
61
+ quantity?: number;
62
+ /**
63
+ * Amount in cents (e.g. 1999 = $19.99)
64
+ */
65
+ subtotal?: number;
66
+ /**
67
+ * Amount in cents (e.g. 1999 = $19.99)
68
+ */
69
+ taxAmount?: number;
70
+ /**
71
+ * Amount in cents (e.g. 1999 = $19.99)
72
+ */
73
+ discountAmount?: number;
74
+ /**
75
+ * Amount in cents (e.g. 1999 = $19.99)
76
+ */
77
+ total?: number;
78
+ /**
79
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
80
+ */
81
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
82
+ /**
83
+ * 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).
84
+ */
85
+ recurring?: {
86
+ plan?: string;
87
+ planName?: string | null;
88
+ interval?: string;
89
+ intervalUnit?: string | null;
90
+ intervalCount?: number | null;
91
+ totalPayments?: number | null;
92
+ trialDays?: number;
93
+ /**
94
+ * Amount in cents (e.g. 1999 = $19.99)
95
+ */
96
+ amount?: number | null;
97
+ count?: number | null;
98
+ } | null;
99
+ /**
100
+ * The subscription this line created. Null until the checkout completes.
101
+ */
102
+ subscriptionId?: string | null;
103
+ imageUrl?: string | null;
104
+ position?: number;
105
+ /**
106
+ * Arbitrary key-value metadata
107
+ */
108
+ metadata?: Record<string, any>;
109
+ }>;
50
110
  netN?: number | null;
51
111
  buyerVatNumber?: string | null;
52
112
  taxReverseCharge?: boolean;
@@ -157,6 +217,66 @@ export declare class CartsService {
157
217
  * Amount in cents (e.g. 1999 = $19.99)
158
218
  */
159
219
  total?: number;
220
+ lineItems?: Array<{
221
+ id?: string;
222
+ cartId?: string | null;
223
+ type?: string;
224
+ referenceId?: string | null;
225
+ name?: string;
226
+ description?: string | null;
227
+ /**
228
+ * Amount in cents (e.g. 1999 = $19.99)
229
+ */
230
+ unitPrice?: number;
231
+ quantity?: number;
232
+ /**
233
+ * Amount in cents (e.g. 1999 = $19.99)
234
+ */
235
+ subtotal?: number;
236
+ /**
237
+ * Amount in cents (e.g. 1999 = $19.99)
238
+ */
239
+ taxAmount?: number;
240
+ /**
241
+ * Amount in cents (e.g. 1999 = $19.99)
242
+ */
243
+ discountAmount?: number;
244
+ /**
245
+ * Amount in cents (e.g. 1999 = $19.99)
246
+ */
247
+ total?: number;
248
+ /**
249
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
250
+ */
251
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
252
+ /**
253
+ * 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).
254
+ */
255
+ recurring?: {
256
+ plan?: string;
257
+ planName?: string | null;
258
+ interval?: string;
259
+ intervalUnit?: string | null;
260
+ intervalCount?: number | null;
261
+ totalPayments?: number | null;
262
+ trialDays?: number;
263
+ /**
264
+ * Amount in cents (e.g. 1999 = $19.99)
265
+ */
266
+ amount?: number | null;
267
+ count?: number | null;
268
+ } | null;
269
+ /**
270
+ * The subscription this line created. Null until the checkout completes.
271
+ */
272
+ subscriptionId?: string | null;
273
+ imageUrl?: string | null;
274
+ position?: number;
275
+ /**
276
+ * Arbitrary key-value metadata
277
+ */
278
+ metadata?: Record<string, any>;
279
+ }>;
160
280
  netN?: number | null;
161
281
  buyerVatNumber?: string | null;
162
282
  taxReverseCharge?: boolean;
@@ -280,6 +400,66 @@ export declare class CartsService {
280
400
  * Amount in cents (e.g. 1999 = $19.99)
281
401
  */
282
402
  total?: number;
403
+ lineItems?: Array<{
404
+ id?: string;
405
+ cartId?: string | null;
406
+ type?: string;
407
+ referenceId?: string | null;
408
+ name?: string;
409
+ description?: string | null;
410
+ /**
411
+ * Amount in cents (e.g. 1999 = $19.99)
412
+ */
413
+ unitPrice?: number;
414
+ quantity?: number;
415
+ /**
416
+ * Amount in cents (e.g. 1999 = $19.99)
417
+ */
418
+ subtotal?: number;
419
+ /**
420
+ * Amount in cents (e.g. 1999 = $19.99)
421
+ */
422
+ taxAmount?: number;
423
+ /**
424
+ * Amount in cents (e.g. 1999 = $19.99)
425
+ */
426
+ discountAmount?: number;
427
+ /**
428
+ * Amount in cents (e.g. 1999 = $19.99)
429
+ */
430
+ total?: number;
431
+ /**
432
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
433
+ */
434
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
435
+ /**
436
+ * 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).
437
+ */
438
+ recurring?: {
439
+ plan?: string;
440
+ planName?: string | null;
441
+ interval?: string;
442
+ intervalUnit?: string | null;
443
+ intervalCount?: number | null;
444
+ totalPayments?: number | null;
445
+ trialDays?: number;
446
+ /**
447
+ * Amount in cents (e.g. 1999 = $19.99)
448
+ */
449
+ amount?: number | null;
450
+ count?: number | null;
451
+ } | null;
452
+ /**
453
+ * The subscription this line created. Null until the checkout completes.
454
+ */
455
+ subscriptionId?: string | null;
456
+ imageUrl?: string | null;
457
+ position?: number;
458
+ /**
459
+ * Arbitrary key-value metadata
460
+ */
461
+ metadata?: Record<string, any>;
462
+ }>;
283
463
  netN?: number | null;
284
464
  buyerVatNumber?: string | null;
285
465
  taxReverseCharge?: boolean;
@@ -392,6 +572,18 @@ export declare class CartsService {
392
572
  * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
393
573
  */
394
574
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
575
+ /**
576
+ * Makes this line a subscription (type is forced to `subscription`). One subscription is created per line when the checkout completes; at most 10 per cart. Send `interval`, or `intervalUnit` + `intervalCount` (1 hour to 1 year). `totalPayments` (2-60) makes it an installment plan; `trialDays` (0-365) adds a free trial and cannot be combined with `totalPayments`. A trial line is stored with `unitPrice` 0 and the price you send on `recurring.amount`. Terms cannot be changed later; remove the line and add it again.
577
+ */
578
+ recurring?: {
579
+ plan: string;
580
+ planName?: string | null;
581
+ interval?: string;
582
+ intervalUnit?: string;
583
+ intervalCount?: number;
584
+ totalPayments?: number | null;
585
+ trialDays?: number | null;
586
+ };
395
587
  /**
396
588
  * Arbitrary key-value metadata
397
589
  */
@@ -399,12 +591,28 @@ export declare class CartsService {
399
591
  }, xThrottleEnvironmentId?: string): CancelablePromise<{
400
592
  data?: {
401
593
  id?: string;
594
+ cartId?: string | null;
595
+ type?: string;
596
+ referenceId?: string | null;
402
597
  name?: string;
598
+ description?: string | null;
403
599
  /**
404
600
  * Amount in cents (e.g. 1999 = $19.99)
405
601
  */
406
602
  unitPrice?: number;
407
603
  quantity?: number;
604
+ /**
605
+ * Amount in cents (e.g. 1999 = $19.99)
606
+ */
607
+ subtotal?: number;
608
+ /**
609
+ * Amount in cents (e.g. 1999 = $19.99)
610
+ */
611
+ taxAmount?: number;
612
+ /**
613
+ * Amount in cents (e.g. 1999 = $19.99)
614
+ */
615
+ discountAmount?: number;
408
616
  /**
409
617
  * Amount in cents (e.g. 1999 = $19.99)
410
618
  */
@@ -413,6 +621,29 @@ export declare class CartsService {
413
621
  * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
414
622
  */
415
623
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
624
+ /**
625
+ * 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).
626
+ */
627
+ recurring?: {
628
+ plan?: string;
629
+ planName?: string | null;
630
+ interval?: string;
631
+ intervalUnit?: string | null;
632
+ intervalCount?: number | null;
633
+ totalPayments?: number | null;
634
+ trialDays?: number;
635
+ /**
636
+ * Amount in cents (e.g. 1999 = $19.99)
637
+ */
638
+ amount?: number | null;
639
+ count?: number | null;
640
+ } | null;
641
+ /**
642
+ * The subscription this line created. Null until the checkout completes.
643
+ */
644
+ subscriptionId?: string | null;
645
+ imageUrl?: string | null;
646
+ position?: number;
416
647
  /**
417
648
  * Arbitrary key-value metadata
418
649
  */
@@ -459,12 +690,28 @@ export declare class CartsService {
459
690
  }, xThrottleEnvironmentId?: string): CancelablePromise<{
460
691
  data?: {
461
692
  id?: string;
693
+ cartId?: string | null;
694
+ type?: string;
695
+ referenceId?: string | null;
462
696
  name?: string;
697
+ description?: string | null;
463
698
  /**
464
699
  * Amount in cents (e.g. 1999 = $19.99)
465
700
  */
466
701
  unitPrice?: number;
467
702
  quantity?: number;
703
+ /**
704
+ * Amount in cents (e.g. 1999 = $19.99)
705
+ */
706
+ subtotal?: number;
707
+ /**
708
+ * Amount in cents (e.g. 1999 = $19.99)
709
+ */
710
+ taxAmount?: number;
711
+ /**
712
+ * Amount in cents (e.g. 1999 = $19.99)
713
+ */
714
+ discountAmount?: number;
468
715
  /**
469
716
  * Amount in cents (e.g. 1999 = $19.99)
470
717
  */
@@ -473,6 +720,29 @@ export declare class CartsService {
473
720
  * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
474
721
  */
475
722
  deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
723
+ /**
724
+ * 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).
725
+ */
726
+ recurring?: {
727
+ plan?: string;
728
+ planName?: string | null;
729
+ interval?: string;
730
+ intervalUnit?: string | null;
731
+ intervalCount?: number | null;
732
+ totalPayments?: number | null;
733
+ trialDays?: number;
734
+ /**
735
+ * Amount in cents (e.g. 1999 = $19.99)
736
+ */
737
+ amount?: number | null;
738
+ count?: number | null;
739
+ } | null;
740
+ /**
741
+ * The subscription this line created. Null until the checkout completes.
742
+ */
743
+ subscriptionId?: string | null;
744
+ imageUrl?: string | null;
745
+ position?: number;
476
746
  /**
477
747
  * Arbitrary key-value metadata
478
748
  */
@@ -613,6 +883,66 @@ export declare class CartsService {
613
883
  * Amount in cents (e.g. 1999 = $19.99)
614
884
  */
615
885
  total?: number;
886
+ lineItems?: Array<{
887
+ id?: string;
888
+ cartId?: string | null;
889
+ type?: string;
890
+ referenceId?: string | null;
891
+ name?: string;
892
+ description?: string | null;
893
+ /**
894
+ * Amount in cents (e.g. 1999 = $19.99)
895
+ */
896
+ unitPrice?: number;
897
+ quantity?: number;
898
+ /**
899
+ * Amount in cents (e.g. 1999 = $19.99)
900
+ */
901
+ subtotal?: number;
902
+ /**
903
+ * Amount in cents (e.g. 1999 = $19.99)
904
+ */
905
+ taxAmount?: number;
906
+ /**
907
+ * Amount in cents (e.g. 1999 = $19.99)
908
+ */
909
+ discountAmount?: number;
910
+ /**
911
+ * Amount in cents (e.g. 1999 = $19.99)
912
+ */
913
+ total?: number;
914
+ /**
915
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
916
+ */
917
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
918
+ /**
919
+ * 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).
920
+ */
921
+ recurring?: {
922
+ plan?: string;
923
+ planName?: string | null;
924
+ interval?: string;
925
+ intervalUnit?: string | null;
926
+ intervalCount?: number | null;
927
+ totalPayments?: number | null;
928
+ trialDays?: number;
929
+ /**
930
+ * Amount in cents (e.g. 1999 = $19.99)
931
+ */
932
+ amount?: number | null;
933
+ count?: number | null;
934
+ } | null;
935
+ /**
936
+ * The subscription this line created. Null until the checkout completes.
937
+ */
938
+ subscriptionId?: string | null;
939
+ imageUrl?: string | null;
940
+ position?: number;
941
+ /**
942
+ * Arbitrary key-value metadata
943
+ */
944
+ metadata?: Record<string, any>;
945
+ }>;
616
946
  netN?: number | null;
617
947
  buyerVatNumber?: string | null;
618
948
  taxReverseCharge?: boolean;
@@ -723,6 +1053,66 @@ export declare class CartsService {
723
1053
  * Amount in cents (e.g. 1999 = $19.99)
724
1054
  */
725
1055
  total?: number;
1056
+ lineItems?: Array<{
1057
+ id?: string;
1058
+ cartId?: string | null;
1059
+ type?: string;
1060
+ referenceId?: string | null;
1061
+ name?: string;
1062
+ description?: string | null;
1063
+ /**
1064
+ * Amount in cents (e.g. 1999 = $19.99)
1065
+ */
1066
+ unitPrice?: number;
1067
+ quantity?: number;
1068
+ /**
1069
+ * Amount in cents (e.g. 1999 = $19.99)
1070
+ */
1071
+ subtotal?: number;
1072
+ /**
1073
+ * Amount in cents (e.g. 1999 = $19.99)
1074
+ */
1075
+ taxAmount?: number;
1076
+ /**
1077
+ * Amount in cents (e.g. 1999 = $19.99)
1078
+ */
1079
+ discountAmount?: number;
1080
+ /**
1081
+ * Amount in cents (e.g. 1999 = $19.99)
1082
+ */
1083
+ total?: number;
1084
+ /**
1085
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
1086
+ */
1087
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1088
+ /**
1089
+ * 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).
1090
+ */
1091
+ recurring?: {
1092
+ plan?: string;
1093
+ planName?: string | null;
1094
+ interval?: string;
1095
+ intervalUnit?: string | null;
1096
+ intervalCount?: number | null;
1097
+ totalPayments?: number | null;
1098
+ trialDays?: number;
1099
+ /**
1100
+ * Amount in cents (e.g. 1999 = $19.99)
1101
+ */
1102
+ amount?: number | null;
1103
+ count?: number | null;
1104
+ } | null;
1105
+ /**
1106
+ * The subscription this line created. Null until the checkout completes.
1107
+ */
1108
+ subscriptionId?: string | null;
1109
+ imageUrl?: string | null;
1110
+ position?: number;
1111
+ /**
1112
+ * Arbitrary key-value metadata
1113
+ */
1114
+ metadata?: Record<string, any>;
1115
+ }>;
726
1116
  netN?: number | null;
727
1117
  buyerVatNumber?: string | null;
728
1118
  taxReverseCharge?: boolean;
@@ -845,6 +1235,66 @@ export declare class CartsService {
845
1235
  * Amount in cents (e.g. 1999 = $19.99)
846
1236
  */
847
1237
  total?: number;
1238
+ lineItems?: Array<{
1239
+ id?: string;
1240
+ cartId?: string | null;
1241
+ type?: string;
1242
+ referenceId?: string | null;
1243
+ name?: string;
1244
+ description?: string | null;
1245
+ /**
1246
+ * Amount in cents (e.g. 1999 = $19.99)
1247
+ */
1248
+ unitPrice?: number;
1249
+ quantity?: number;
1250
+ /**
1251
+ * Amount in cents (e.g. 1999 = $19.99)
1252
+ */
1253
+ subtotal?: number;
1254
+ /**
1255
+ * Amount in cents (e.g. 1999 = $19.99)
1256
+ */
1257
+ taxAmount?: number;
1258
+ /**
1259
+ * Amount in cents (e.g. 1999 = $19.99)
1260
+ */
1261
+ discountAmount?: number;
1262
+ /**
1263
+ * Amount in cents (e.g. 1999 = $19.99)
1264
+ */
1265
+ total?: number;
1266
+ /**
1267
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
1268
+ */
1269
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1270
+ /**
1271
+ * 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).
1272
+ */
1273
+ recurring?: {
1274
+ plan?: string;
1275
+ planName?: string | null;
1276
+ interval?: string;
1277
+ intervalUnit?: string | null;
1278
+ intervalCount?: number | null;
1279
+ totalPayments?: number | null;
1280
+ trialDays?: number;
1281
+ /**
1282
+ * Amount in cents (e.g. 1999 = $19.99)
1283
+ */
1284
+ amount?: number | null;
1285
+ count?: number | null;
1286
+ } | null;
1287
+ /**
1288
+ * The subscription this line created. Null until the checkout completes.
1289
+ */
1290
+ subscriptionId?: string | null;
1291
+ imageUrl?: string | null;
1292
+ position?: number;
1293
+ /**
1294
+ * Arbitrary key-value metadata
1295
+ */
1296
+ metadata?: Record<string, any>;
1297
+ }>;
848
1298
  netN?: number | null;
849
1299
  buyerVatNumber?: string | null;
850
1300
  taxReverseCharge?: boolean;
@@ -955,6 +1405,66 @@ export declare class CartsService {
955
1405
  * Amount in cents (e.g. 1999 = $19.99)
956
1406
  */
957
1407
  total?: number;
1408
+ lineItems?: Array<{
1409
+ id?: string;
1410
+ cartId?: string | null;
1411
+ type?: string;
1412
+ referenceId?: string | null;
1413
+ name?: string;
1414
+ description?: string | null;
1415
+ /**
1416
+ * Amount in cents (e.g. 1999 = $19.99)
1417
+ */
1418
+ unitPrice?: number;
1419
+ quantity?: number;
1420
+ /**
1421
+ * Amount in cents (e.g. 1999 = $19.99)
1422
+ */
1423
+ subtotal?: number;
1424
+ /**
1425
+ * Amount in cents (e.g. 1999 = $19.99)
1426
+ */
1427
+ taxAmount?: number;
1428
+ /**
1429
+ * Amount in cents (e.g. 1999 = $19.99)
1430
+ */
1431
+ discountAmount?: number;
1432
+ /**
1433
+ * Amount in cents (e.g. 1999 = $19.99)
1434
+ */
1435
+ total?: number;
1436
+ /**
1437
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
1438
+ */
1439
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1440
+ /**
1441
+ * 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).
1442
+ */
1443
+ recurring?: {
1444
+ plan?: string;
1445
+ planName?: string | null;
1446
+ interval?: string;
1447
+ intervalUnit?: string | null;
1448
+ intervalCount?: number | null;
1449
+ totalPayments?: number | null;
1450
+ trialDays?: number;
1451
+ /**
1452
+ * Amount in cents (e.g. 1999 = $19.99)
1453
+ */
1454
+ amount?: number | null;
1455
+ count?: number | null;
1456
+ } | null;
1457
+ /**
1458
+ * The subscription this line created. Null until the checkout completes.
1459
+ */
1460
+ subscriptionId?: string | null;
1461
+ imageUrl?: string | null;
1462
+ position?: number;
1463
+ /**
1464
+ * Arbitrary key-value metadata
1465
+ */
1466
+ metadata?: Record<string, any>;
1467
+ }>;
958
1468
  netN?: number | null;
959
1469
  buyerVatNumber?: string | null;
960
1470
  taxReverseCharge?: boolean;
@@ -1076,6 +1586,66 @@ export declare class CartsService {
1076
1586
  * Amount in cents (e.g. 1999 = $19.99)
1077
1587
  */
1078
1588
  total?: number;
1589
+ lineItems?: Array<{
1590
+ id?: string;
1591
+ cartId?: string | null;
1592
+ type?: string;
1593
+ referenceId?: string | null;
1594
+ name?: string;
1595
+ description?: string | null;
1596
+ /**
1597
+ * Amount in cents (e.g. 1999 = $19.99)
1598
+ */
1599
+ unitPrice?: number;
1600
+ quantity?: number;
1601
+ /**
1602
+ * Amount in cents (e.g. 1999 = $19.99)
1603
+ */
1604
+ subtotal?: number;
1605
+ /**
1606
+ * Amount in cents (e.g. 1999 = $19.99)
1607
+ */
1608
+ taxAmount?: number;
1609
+ /**
1610
+ * Amount in cents (e.g. 1999 = $19.99)
1611
+ */
1612
+ discountAmount?: number;
1613
+ /**
1614
+ * Amount in cents (e.g. 1999 = $19.99)
1615
+ */
1616
+ total?: number;
1617
+ /**
1618
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
1619
+ */
1620
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1621
+ /**
1622
+ * 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).
1623
+ */
1624
+ recurring?: {
1625
+ plan?: string;
1626
+ planName?: string | null;
1627
+ interval?: string;
1628
+ intervalUnit?: string | null;
1629
+ intervalCount?: number | null;
1630
+ totalPayments?: number | null;
1631
+ trialDays?: number;
1632
+ /**
1633
+ * Amount in cents (e.g. 1999 = $19.99)
1634
+ */
1635
+ amount?: number | null;
1636
+ count?: number | null;
1637
+ } | null;
1638
+ /**
1639
+ * The subscription this line created. Null until the checkout completes.
1640
+ */
1641
+ subscriptionId?: string | null;
1642
+ imageUrl?: string | null;
1643
+ position?: number;
1644
+ /**
1645
+ * Arbitrary key-value metadata
1646
+ */
1647
+ metadata?: Record<string, any>;
1648
+ }>;
1079
1649
  netN?: number | null;
1080
1650
  buyerVatNumber?: string | null;
1081
1651
  taxReverseCharge?: boolean;
@@ -1186,6 +1756,66 @@ export declare class CartsService {
1186
1756
  * Amount in cents (e.g. 1999 = $19.99)
1187
1757
  */
1188
1758
  total?: number;
1759
+ lineItems?: Array<{
1760
+ id?: string;
1761
+ cartId?: string | null;
1762
+ type?: string;
1763
+ referenceId?: string | null;
1764
+ name?: string;
1765
+ description?: string | null;
1766
+ /**
1767
+ * Amount in cents (e.g. 1999 = $19.99)
1768
+ */
1769
+ unitPrice?: number;
1770
+ quantity?: number;
1771
+ /**
1772
+ * Amount in cents (e.g. 1999 = $19.99)
1773
+ */
1774
+ subtotal?: number;
1775
+ /**
1776
+ * Amount in cents (e.g. 1999 = $19.99)
1777
+ */
1778
+ taxAmount?: number;
1779
+ /**
1780
+ * Amount in cents (e.g. 1999 = $19.99)
1781
+ */
1782
+ discountAmount?: number;
1783
+ /**
1784
+ * Amount in cents (e.g. 1999 = $19.99)
1785
+ */
1786
+ total?: number;
1787
+ /**
1788
+ * What this item needs before it counts as delivered. Omit to resolve from `type` and `metadata`. `digital` and `access_grant` are delivered automatically on payment capture; `none` means there is nothing to deliver.
1789
+ */
1790
+ deliveryMethod?: 'shipment' | 'digital' | 'access_grant' | 'service' | 'in_person' | 'custom' | 'none';
1791
+ /**
1792
+ * 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).
1793
+ */
1794
+ recurring?: {
1795
+ plan?: string;
1796
+ planName?: string | null;
1797
+ interval?: string;
1798
+ intervalUnit?: string | null;
1799
+ intervalCount?: number | null;
1800
+ totalPayments?: number | null;
1801
+ trialDays?: number;
1802
+ /**
1803
+ * Amount in cents (e.g. 1999 = $19.99)
1804
+ */
1805
+ amount?: number | null;
1806
+ count?: number | null;
1807
+ } | null;
1808
+ /**
1809
+ * The subscription this line created. Null until the checkout completes.
1810
+ */
1811
+ subscriptionId?: string | null;
1812
+ imageUrl?: string | null;
1813
+ position?: number;
1814
+ /**
1815
+ * Arbitrary key-value metadata
1816
+ */
1817
+ metadata?: Record<string, any>;
1818
+ }>;
1189
1819
  netN?: number | null;
1190
1820
  buyerVatNumber?: string | null;
1191
1821
  taxReverseCharge?: boolean;