@peable.to/contracts 2.0.0 → 3.1.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 (44) hide show
  1. package/dist/cjs/resources/catalog/index.js +1 -5
  2. package/dist/cjs/resources/checkout/checkoutSessions.js +0 -4
  3. package/dist/cjs/resources/events/events.js +1 -32
  4. package/dist/cjs/resources/events/webhookDeliveries.js +1 -1
  5. package/dist/cjs/resources/events/webhookEndpoints.js +1 -1
  6. package/dist/cjs/resources/payments/disputes.js +16 -0
  7. package/dist/cjs/resources/payments/refunds.js +46 -11
  8. package/dist/cjs/vocabulary/catalog.js +1 -17
  9. package/dist/cjs/vocabulary/errors.js +0 -13
  10. package/dist/cjs/vocabulary/events.js +5 -1
  11. package/dist/esm/resources/catalog/index.js +1 -5
  12. package/dist/esm/resources/checkout/checkoutSessions.js +0 -4
  13. package/dist/esm/resources/events/events.js +0 -31
  14. package/dist/esm/resources/events/webhookDeliveries.js +1 -1
  15. package/dist/esm/resources/events/webhookEndpoints.js +1 -1
  16. package/dist/esm/resources/payments/disputes.js +16 -0
  17. package/dist/esm/resources/payments/refunds.js +46 -11
  18. package/dist/esm/vocabulary/catalog.js +0 -16
  19. package/dist/esm/vocabulary/errors.js +0 -13
  20. package/dist/esm/vocabulary/events.js +5 -1
  21. package/dist/types/resources/catalog/index.d.ts +1 -851
  22. package/dist/types/resources/checkout/checkoutSessions.d.ts +13 -61
  23. package/dist/types/resources/checkout/index.d.ts +10 -46
  24. package/dist/types/resources/connect/balance.d.ts +5 -5
  25. package/dist/types/resources/connect/index.d.ts +4 -4
  26. package/dist/types/resources/connect/payouts.d.ts +2 -2
  27. package/dist/types/resources/events/events.d.ts +0 -22
  28. package/dist/types/resources/events/index.d.ts +7 -15
  29. package/dist/types/resources/events/webhookDeliveries.d.ts +0 -3
  30. package/dist/types/resources/events/webhookEndpoints.d.ts +11 -16
  31. package/dist/types/resources/payments/disputes.d.ts +35 -0
  32. package/dist/types/resources/payments/index.d.ts +82 -10
  33. package/dist/types/resources/payments/paymentIntents.d.ts +10 -10
  34. package/dist/types/resources/payments/refunds.d.ts +56 -5
  35. package/dist/types/resources/payments/testHelpers.d.ts +1 -1
  36. package/dist/types/resources/tax/index.d.ts +1 -1
  37. package/dist/types/resources/tax/registrations.d.ts +2 -2
  38. package/dist/types/vocabulary/catalog.d.ts +0 -9
  39. package/dist/types/vocabulary/errors.d.ts +0 -13
  40. package/dist/types/vocabulary/events.d.ts +5 -2
  41. package/package.json +1 -1
  42. package/dist/cjs/resources/catalog/billing.js +0 -753
  43. package/dist/esm/resources/catalog/billing.js +0 -750
  44. package/dist/types/resources/catalog/billing.d.ts +0 -1723
@@ -83,7 +83,6 @@ export declare const eventsRoutes: readonly [{
83
83
  "setup_intent.succeeded": "setup_intent.succeeded";
84
84
  "setup_intent.setup_failed": "setup_intent.setup_failed";
85
85
  "setup_intent.canceled": "setup_intent.canceled";
86
- "billing.observation.updated": "billing.observation.updated";
87
86
  "connected_account.updated": "connected_account.updated";
88
87
  "product.created": "product.created";
89
88
  "product.updated": "product.updated";
@@ -221,7 +220,6 @@ export declare const eventsRoutes: readonly [{
221
220
  "setup_intent.succeeded": "setup_intent.succeeded";
222
221
  "setup_intent.setup_failed": "setup_intent.setup_failed";
223
222
  "setup_intent.canceled": "setup_intent.canceled";
224
- "billing.observation.updated": "billing.observation.updated";
225
223
  "connected_account.updated": "connected_account.updated";
226
224
  "product.created": "product.created";
227
225
  "product.updated": "product.updated";
@@ -350,7 +348,6 @@ export declare const eventsRoutes: readonly [{
350
348
  "setup_intent.succeeded": "setup_intent.succeeded";
351
349
  "setup_intent.setup_failed": "setup_intent.setup_failed";
352
350
  "setup_intent.canceled": "setup_intent.canceled";
353
- "billing.observation.updated": "billing.observation.updated";
354
351
  "connected_account.updated": "connected_account.updated";
355
352
  "product.created": "product.created";
356
353
  "product.updated": "product.updated";
@@ -463,7 +460,6 @@ export declare const eventsRoutes: readonly [{
463
460
  "setup_intent.succeeded": "setup_intent.succeeded";
464
461
  "setup_intent.setup_failed": "setup_intent.setup_failed";
465
462
  "setup_intent.canceled": "setup_intent.canceled";
466
- "billing.observation.updated": "billing.observation.updated";
467
463
  "connected_account.updated": "connected_account.updated";
468
464
  "product.created": "product.created";
469
465
  "product.updated": "product.updated";
@@ -530,7 +526,7 @@ export declare const eventsRoutes: readonly [{
530
526
  "tax.review_item.created": "tax.review_item.created";
531
527
  "tax.review_item.updated": "tax.review_item.updated";
532
528
  "*": "*";
533
- }>>, import("zod").ZodTransform<import("../..").WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "billing.observation.updated" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
529
+ }>>, import("zod").ZodTransform<import("../..").WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
534
530
  description: import("zod").ZodOptional<import("zod").ZodString>;
535
531
  metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<Record<string, string>, Record<string, string>>>>;
536
532
  }, import("zod/v4/core").$strict>;
@@ -569,7 +565,6 @@ export declare const eventsRoutes: readonly [{
569
565
  "setup_intent.succeeded": "setup_intent.succeeded";
570
566
  "setup_intent.setup_failed": "setup_intent.setup_failed";
571
567
  "setup_intent.canceled": "setup_intent.canceled";
572
- "billing.observation.updated": "billing.observation.updated";
573
568
  "connected_account.updated": "connected_account.updated";
574
569
  "product.created": "product.created";
575
570
  "product.updated": "product.updated";
@@ -644,6 +639,7 @@ export declare const eventsRoutes: readonly [{
644
639
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
645
640
  disabled_by_merchant: "disabled_by_merchant";
646
641
  delivery_failures: "delivery_failures";
642
+ url_refused: "url_refused";
647
643
  }>>;
648
644
  api_version: import("zod").ZodString;
649
645
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -713,7 +709,6 @@ export declare const eventsRoutes: readonly [{
713
709
  "setup_intent.succeeded": "setup_intent.succeeded";
714
710
  "setup_intent.setup_failed": "setup_intent.setup_failed";
715
711
  "setup_intent.canceled": "setup_intent.canceled";
716
- "billing.observation.updated": "billing.observation.updated";
717
712
  "connected_account.updated": "connected_account.updated";
718
713
  "product.created": "product.created";
719
714
  "product.updated": "product.updated";
@@ -788,6 +783,7 @@ export declare const eventsRoutes: readonly [{
788
783
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
789
784
  disabled_by_merchant: "disabled_by_merchant";
790
785
  delivery_failures: "delivery_failures";
786
+ url_refused: "url_refused";
791
787
  }>>;
792
788
  api_version: import("zod").ZodString;
793
789
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -848,7 +844,6 @@ export declare const eventsRoutes: readonly [{
848
844
  "setup_intent.succeeded": "setup_intent.succeeded";
849
845
  "setup_intent.setup_failed": "setup_intent.setup_failed";
850
846
  "setup_intent.canceled": "setup_intent.canceled";
851
- "billing.observation.updated": "billing.observation.updated";
852
847
  "connected_account.updated": "connected_account.updated";
853
848
  "product.created": "product.created";
854
849
  "product.updated": "product.updated";
@@ -923,6 +918,7 @@ export declare const eventsRoutes: readonly [{
923
918
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
924
919
  disabled_by_merchant: "disabled_by_merchant";
925
920
  delivery_failures: "delivery_failures";
921
+ url_refused: "url_refused";
926
922
  }>>;
927
923
  api_version: import("zod").ZodString;
928
924
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -974,7 +970,6 @@ export declare const eventsRoutes: readonly [{
974
970
  "setup_intent.succeeded": "setup_intent.succeeded";
975
971
  "setup_intent.setup_failed": "setup_intent.setup_failed";
976
972
  "setup_intent.canceled": "setup_intent.canceled";
977
- "billing.observation.updated": "billing.observation.updated";
978
973
  "connected_account.updated": "connected_account.updated";
979
974
  "product.created": "product.created";
980
975
  "product.updated": "product.updated";
@@ -1041,7 +1036,7 @@ export declare const eventsRoutes: readonly [{
1041
1036
  "tax.review_item.created": "tax.review_item.created";
1042
1037
  "tax.review_item.updated": "tax.review_item.updated";
1043
1038
  "*": "*";
1044
- }>>, import("zod").ZodTransform<import("../..").WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "billing.observation.updated" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
1039
+ }>>, import("zod").ZodTransform<import("../..").WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
1045
1040
  disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1046
1041
  description: import("zod").ZodOptional<import("zod").ZodString>;
1047
1042
  metadata: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>, import("zod").ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
@@ -1080,7 +1075,6 @@ export declare const eventsRoutes: readonly [{
1080
1075
  "setup_intent.succeeded": "setup_intent.succeeded";
1081
1076
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1082
1077
  "setup_intent.canceled": "setup_intent.canceled";
1083
- "billing.observation.updated": "billing.observation.updated";
1084
1078
  "connected_account.updated": "connected_account.updated";
1085
1079
  "product.created": "product.created";
1086
1080
  "product.updated": "product.updated";
@@ -1155,6 +1149,7 @@ export declare const eventsRoutes: readonly [{
1155
1149
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
1156
1150
  disabled_by_merchant: "disabled_by_merchant";
1157
1151
  delivery_failures: "delivery_failures";
1152
+ url_refused: "url_refused";
1158
1153
  }>>;
1159
1154
  api_version: import("zod").ZodString;
1160
1155
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -1231,7 +1226,6 @@ export declare const eventsRoutes: readonly [{
1231
1226
  "setup_intent.succeeded": "setup_intent.succeeded";
1232
1227
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1233
1228
  "setup_intent.canceled": "setup_intent.canceled";
1234
- "billing.observation.updated": "billing.observation.updated";
1235
1229
  "connected_account.updated": "connected_account.updated";
1236
1230
  "product.created": "product.created";
1237
1231
  "product.updated": "product.updated";
@@ -1306,6 +1300,7 @@ export declare const eventsRoutes: readonly [{
1306
1300
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
1307
1301
  disabled_by_merchant: "disabled_by_merchant";
1308
1302
  delivery_failures: "delivery_failures";
1303
+ url_refused: "url_refused";
1309
1304
  }>>;
1310
1305
  api_version: import("zod").ZodString;
1311
1306
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -1359,7 +1354,6 @@ export declare const eventsRoutes: readonly [{
1359
1354
  "setup_intent.succeeded": "setup_intent.succeeded";
1360
1355
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1361
1356
  "setup_intent.canceled": "setup_intent.canceled";
1362
- "billing.observation.updated": "billing.observation.updated";
1363
1357
  "connected_account.updated": "connected_account.updated";
1364
1358
  "product.created": "product.created";
1365
1359
  "product.updated": "product.updated";
@@ -1506,7 +1500,6 @@ export declare const eventsRoutes: readonly [{
1506
1500
  "setup_intent.succeeded": "setup_intent.succeeded";
1507
1501
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1508
1502
  "setup_intent.canceled": "setup_intent.canceled";
1509
- "billing.observation.updated": "billing.observation.updated";
1510
1503
  "connected_account.updated": "connected_account.updated";
1511
1504
  "product.created": "product.created";
1512
1505
  "product.updated": "product.updated";
@@ -1640,7 +1633,6 @@ export declare const eventsRoutes: readonly [{
1640
1633
  "setup_intent.succeeded": "setup_intent.succeeded";
1641
1634
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1642
1635
  "setup_intent.canceled": "setup_intent.canceled";
1643
- "billing.observation.updated": "billing.observation.updated";
1644
1636
  "connected_account.updated": "connected_account.updated";
1645
1637
  "product.created": "product.created";
1646
1638
  "product.updated": "product.updated";
@@ -38,7 +38,6 @@ export declare const webhookDeliverySchema: z.ZodObject<{
38
38
  "setup_intent.succeeded": "setup_intent.succeeded";
39
39
  "setup_intent.setup_failed": "setup_intent.setup_failed";
40
40
  "setup_intent.canceled": "setup_intent.canceled";
41
- "billing.observation.updated": "billing.observation.updated";
42
41
  "connected_account.updated": "connected_account.updated";
43
42
  "product.created": "product.created";
44
43
  "product.updated": "product.updated";
@@ -215,7 +214,6 @@ export declare const webhookDeliveryRoutes: readonly [{
215
214
  "setup_intent.succeeded": "setup_intent.succeeded";
216
215
  "setup_intent.setup_failed": "setup_intent.setup_failed";
217
216
  "setup_intent.canceled": "setup_intent.canceled";
218
- "billing.observation.updated": "billing.observation.updated";
219
217
  "connected_account.updated": "connected_account.updated";
220
218
  "product.created": "product.created";
221
219
  "product.updated": "product.updated";
@@ -349,7 +347,6 @@ export declare const webhookDeliveryRoutes: readonly [{
349
347
  "setup_intent.succeeded": "setup_intent.succeeded";
350
348
  "setup_intent.setup_failed": "setup_intent.setup_failed";
351
349
  "setup_intent.canceled": "setup_intent.canceled";
352
- "billing.observation.updated": "billing.observation.updated";
353
350
  "connected_account.updated": "connected_account.updated";
354
351
  "product.created": "product.created";
355
352
  "product.updated": "product.updated";
@@ -36,7 +36,6 @@ export declare const webhookEndpointSchema: z.ZodObject<{
36
36
  "setup_intent.succeeded": "setup_intent.succeeded";
37
37
  "setup_intent.setup_failed": "setup_intent.setup_failed";
38
38
  "setup_intent.canceled": "setup_intent.canceled";
39
- "billing.observation.updated": "billing.observation.updated";
40
39
  "connected_account.updated": "connected_account.updated";
41
40
  "product.created": "product.created";
42
41
  "product.updated": "product.updated";
@@ -111,6 +110,7 @@ export declare const webhookEndpointSchema: z.ZodObject<{
111
110
  disabled_reason: z.ZodNullable<z.ZodEnum<{
112
111
  disabled_by_merchant: "disabled_by_merchant";
113
112
  delivery_failures: "delivery_failures";
113
+ url_refused: "url_refused";
114
114
  }>>;
115
115
  api_version: z.ZodString;
116
116
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -158,7 +158,6 @@ export declare const webhookEndpointWithSecretSchema: z.ZodObject<{
158
158
  "setup_intent.succeeded": "setup_intent.succeeded";
159
159
  "setup_intent.setup_failed": "setup_intent.setup_failed";
160
160
  "setup_intent.canceled": "setup_intent.canceled";
161
- "billing.observation.updated": "billing.observation.updated";
162
161
  "connected_account.updated": "connected_account.updated";
163
162
  "product.created": "product.created";
164
163
  "product.updated": "product.updated";
@@ -233,6 +232,7 @@ export declare const webhookEndpointWithSecretSchema: z.ZodObject<{
233
232
  disabled_reason: z.ZodNullable<z.ZodEnum<{
234
233
  disabled_by_merchant: "disabled_by_merchant";
235
234
  delivery_failures: "delivery_failures";
235
+ url_refused: "url_refused";
236
236
  }>>;
237
237
  api_version: z.ZodString;
238
238
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -282,7 +282,6 @@ export declare const createWebhookEndpointParams: z.ZodObject<{
282
282
  "setup_intent.succeeded": "setup_intent.succeeded";
283
283
  "setup_intent.setup_failed": "setup_intent.setup_failed";
284
284
  "setup_intent.canceled": "setup_intent.canceled";
285
- "billing.observation.updated": "billing.observation.updated";
286
285
  "connected_account.updated": "connected_account.updated";
287
286
  "product.created": "product.created";
288
287
  "product.updated": "product.updated";
@@ -349,7 +348,7 @@ export declare const createWebhookEndpointParams: z.ZodObject<{
349
348
  "tax.review_item.created": "tax.review_item.created";
350
349
  "tax.review_item.updated": "tax.review_item.updated";
351
350
  "*": "*";
352
- }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "billing.observation.updated" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
351
+ }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
353
352
  description: z.ZodOptional<z.ZodString>;
354
353
  metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
355
354
  }, z.core.$strict>;
@@ -384,7 +383,6 @@ export declare const updateWebhookEndpointParams: z.ZodObject<{
384
383
  "setup_intent.succeeded": "setup_intent.succeeded";
385
384
  "setup_intent.setup_failed": "setup_intent.setup_failed";
386
385
  "setup_intent.canceled": "setup_intent.canceled";
387
- "billing.observation.updated": "billing.observation.updated";
388
386
  "connected_account.updated": "connected_account.updated";
389
387
  "product.created": "product.created";
390
388
  "product.updated": "product.updated";
@@ -451,7 +449,7 @@ export declare const updateWebhookEndpointParams: z.ZodObject<{
451
449
  "tax.review_item.created": "tax.review_item.created";
452
450
  "tax.review_item.updated": "tax.review_item.updated";
453
451
  "*": "*";
454
- }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "billing.observation.updated" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
452
+ }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
455
453
  disabled: z.ZodOptional<z.ZodBoolean>;
456
454
  description: z.ZodOptional<z.ZodString>;
457
455
  metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
@@ -519,7 +517,6 @@ export declare const webhookEndpointRoutes: readonly [{
519
517
  "setup_intent.succeeded": "setup_intent.succeeded";
520
518
  "setup_intent.setup_failed": "setup_intent.setup_failed";
521
519
  "setup_intent.canceled": "setup_intent.canceled";
522
- "billing.observation.updated": "billing.observation.updated";
523
520
  "connected_account.updated": "connected_account.updated";
524
521
  "product.created": "product.created";
525
522
  "product.updated": "product.updated";
@@ -586,7 +583,7 @@ export declare const webhookEndpointRoutes: readonly [{
586
583
  "tax.review_item.created": "tax.review_item.created";
587
584
  "tax.review_item.updated": "tax.review_item.updated";
588
585
  "*": "*";
589
- }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "billing.observation.updated" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
586
+ }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
590
587
  description: z.ZodOptional<z.ZodString>;
591
588
  metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
592
589
  }, z.core.$strict>;
@@ -625,7 +622,6 @@ export declare const webhookEndpointRoutes: readonly [{
625
622
  "setup_intent.succeeded": "setup_intent.succeeded";
626
623
  "setup_intent.setup_failed": "setup_intent.setup_failed";
627
624
  "setup_intent.canceled": "setup_intent.canceled";
628
- "billing.observation.updated": "billing.observation.updated";
629
625
  "connected_account.updated": "connected_account.updated";
630
626
  "product.created": "product.created";
631
627
  "product.updated": "product.updated";
@@ -700,6 +696,7 @@ export declare const webhookEndpointRoutes: readonly [{
700
696
  disabled_reason: z.ZodNullable<z.ZodEnum<{
701
697
  disabled_by_merchant: "disabled_by_merchant";
702
698
  delivery_failures: "delivery_failures";
699
+ url_refused: "url_refused";
703
700
  }>>;
704
701
  api_version: z.ZodString;
705
702
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -769,7 +766,6 @@ export declare const webhookEndpointRoutes: readonly [{
769
766
  "setup_intent.succeeded": "setup_intent.succeeded";
770
767
  "setup_intent.setup_failed": "setup_intent.setup_failed";
771
768
  "setup_intent.canceled": "setup_intent.canceled";
772
- "billing.observation.updated": "billing.observation.updated";
773
769
  "connected_account.updated": "connected_account.updated";
774
770
  "product.created": "product.created";
775
771
  "product.updated": "product.updated";
@@ -844,6 +840,7 @@ export declare const webhookEndpointRoutes: readonly [{
844
840
  disabled_reason: z.ZodNullable<z.ZodEnum<{
845
841
  disabled_by_merchant: "disabled_by_merchant";
846
842
  delivery_failures: "delivery_failures";
843
+ url_refused: "url_refused";
847
844
  }>>;
848
845
  api_version: z.ZodString;
849
846
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -904,7 +901,6 @@ export declare const webhookEndpointRoutes: readonly [{
904
901
  "setup_intent.succeeded": "setup_intent.succeeded";
905
902
  "setup_intent.setup_failed": "setup_intent.setup_failed";
906
903
  "setup_intent.canceled": "setup_intent.canceled";
907
- "billing.observation.updated": "billing.observation.updated";
908
904
  "connected_account.updated": "connected_account.updated";
909
905
  "product.created": "product.created";
910
906
  "product.updated": "product.updated";
@@ -979,6 +975,7 @@ export declare const webhookEndpointRoutes: readonly [{
979
975
  disabled_reason: z.ZodNullable<z.ZodEnum<{
980
976
  disabled_by_merchant: "disabled_by_merchant";
981
977
  delivery_failures: "delivery_failures";
978
+ url_refused: "url_refused";
982
979
  }>>;
983
980
  api_version: z.ZodString;
984
981
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1030,7 +1027,6 @@ export declare const webhookEndpointRoutes: readonly [{
1030
1027
  "setup_intent.succeeded": "setup_intent.succeeded";
1031
1028
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1032
1029
  "setup_intent.canceled": "setup_intent.canceled";
1033
- "billing.observation.updated": "billing.observation.updated";
1034
1030
  "connected_account.updated": "connected_account.updated";
1035
1031
  "product.created": "product.created";
1036
1032
  "product.updated": "product.updated";
@@ -1097,7 +1093,7 @@ export declare const webhookEndpointRoutes: readonly [{
1097
1093
  "tax.review_item.created": "tax.review_item.created";
1098
1094
  "tax.review_item.updated": "tax.review_item.updated";
1099
1095
  "*": "*";
1100
- }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "billing.observation.updated" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
1096
+ }>>, z.ZodTransform<WebhookEnabledEvent[], ("payment_intent.created" | "payment_intent.requires_action" | "payment_intent.processing" | "payment_intent.amount_capturable_updated" | "payment_intent.succeeded" | "payment_intent.payment_failed" | "payment_intent.canceled" | "charge.refunded" | "charge.dispute.created" | "charge.dispute.updated" | "charge.dispute.closed" | "charge.dispute.funds_withdrawn" | "charge.dispute.funds_reinstated" | "refund.created" | "refund.updated" | "refund.failed" | "customer.created" | "customer.updated" | "customer.deleted" | "payment_method.attached" | "payment_method.detached" | "payment_method.updated" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.succeeded" | "setup_intent.setup_failed" | "setup_intent.canceled" | "connected_account.updated" | "product.created" | "product.updated" | "product.deleted" | "price.created" | "price.updated" | "coupon.created" | "coupon.updated" | "coupon.deleted" | "promotion_code.created" | "promotion_code.updated" | "account.updated" | "application_fee.created" | "application_fee.refunded" | "payout.created" | "payout.updated" | "payout.paid" | "payout.failed" | "payout.canceled" | "balance.available" | "checkout.session.completed" | "checkout.session.expired" | "checkout.session.async_payment_succeeded" | "checkout.session.async_payment_failed" | "payment_link.created" | "payment_link.updated" | "reporting.report_run.succeeded" | "reporting.report_run.failed" | "customer.subscription.created" | "customer.subscription.updated" | "customer.subscription.deleted" | "customer.subscription.trial_will_end" | "customer.subscription.paused" | "customer.subscription.resumed" | "invoice.created" | "invoice.updated" | "invoice.deleted" | "invoice.finalized" | "invoice.paid" | "invoice.payment_failed" | "invoice.payment_action_required" | "invoice.voided" | "invoice.marked_uncollectible" | "invoice.upcoming" | "invoice.sent" | "invoiceitem.created" | "invoiceitem.deleted" | "credit_note.created" | "credit_note.updated" | "credit_note.voided" | "test_helpers.test_clock.created" | "test_helpers.test_clock.advancing" | "test_helpers.test_clock.ready" | "test_helpers.test_clock.deleted" | "billing.meter.created" | "billing.meter.updated" | "billing.meter.deactivated" | "billing.meter.reactivated" | "entitlements.active_entitlement_summary.updated" | "billing_portal.configuration.created" | "billing_portal.configuration.updated" | "billing_portal.session.created" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
1101
1097
  disabled: z.ZodOptional<z.ZodBoolean>;
1102
1098
  description: z.ZodOptional<z.ZodString>;
1103
1099
  metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
@@ -1136,7 +1132,6 @@ export declare const webhookEndpointRoutes: readonly [{
1136
1132
  "setup_intent.succeeded": "setup_intent.succeeded";
1137
1133
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1138
1134
  "setup_intent.canceled": "setup_intent.canceled";
1139
- "billing.observation.updated": "billing.observation.updated";
1140
1135
  "connected_account.updated": "connected_account.updated";
1141
1136
  "product.created": "product.created";
1142
1137
  "product.updated": "product.updated";
@@ -1211,6 +1206,7 @@ export declare const webhookEndpointRoutes: readonly [{
1211
1206
  disabled_reason: z.ZodNullable<z.ZodEnum<{
1212
1207
  disabled_by_merchant: "disabled_by_merchant";
1213
1208
  delivery_failures: "delivery_failures";
1209
+ url_refused: "url_refused";
1214
1210
  }>>;
1215
1211
  api_version: z.ZodString;
1216
1212
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1287,7 +1283,6 @@ export declare const webhookEndpointRoutes: readonly [{
1287
1283
  "setup_intent.succeeded": "setup_intent.succeeded";
1288
1284
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1289
1285
  "setup_intent.canceled": "setup_intent.canceled";
1290
- "billing.observation.updated": "billing.observation.updated";
1291
1286
  "connected_account.updated": "connected_account.updated";
1292
1287
  "product.created": "product.created";
1293
1288
  "product.updated": "product.updated";
@@ -1362,6 +1357,7 @@ export declare const webhookEndpointRoutes: readonly [{
1362
1357
  disabled_reason: z.ZodNullable<z.ZodEnum<{
1363
1358
  disabled_by_merchant: "disabled_by_merchant";
1364
1359
  delivery_failures: "delivery_failures";
1360
+ url_refused: "url_refused";
1365
1361
  }>>;
1366
1362
  api_version: z.ZodString;
1367
1363
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1415,7 +1411,6 @@ export declare const webhookEndpointRoutes: readonly [{
1415
1411
  "setup_intent.succeeded": "setup_intent.succeeded";
1416
1412
  "setup_intent.setup_failed": "setup_intent.setup_failed";
1417
1413
  "setup_intent.canceled": "setup_intent.canceled";
1418
- "billing.observation.updated": "billing.observation.updated";
1419
1414
  "connected_account.updated": "connected_account.updated";
1420
1415
  "product.created": "product.created";
1421
1416
  "product.updated": "product.updated";
@@ -819,4 +819,39 @@ export declare const disputeRoutes: readonly [{
819
819
  updated_at: z.ZodNumber;
820
820
  }, z.core.$strict>;
821
821
  readonly sdk: "disputes.close";
822
+ }, {
823
+ readonly operationId: "retrieveDisputeSettlement";
824
+ readonly method: "get";
825
+ readonly path: "/v1/disputes/{disputeId}/settlement";
826
+ readonly tag: "Disputes";
827
+ readonly summary: "Retrieve a dispute's settlement";
828
+ readonly description: "What the dispute WITHDREW from the settlement balance — `gross` the principal, `fee` the dispute fee, a negative `net` — in the settlement currency, read live from the provider. An inquiry moves no money: `unknown`, every figure `null`, never `0`. A reinstatement after a won dispute is not this figure.";
829
+ readonly auth: "service";
830
+ readonly scope: "payments:read";
831
+ readonly params: {
832
+ disputeId: string;
833
+ };
834
+ readonly query: z.ZodObject<{
835
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
836
+ }, z.core.$strict>;
837
+ readonly response: z.ZodObject<{
838
+ object: z.ZodLiteral<"settlement">;
839
+ livemode: z.ZodBoolean;
840
+ payment_intent: z.ZodType<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">, z.core.$ZodTypeInternals<string | import("../..").Ref<"payment_intent">, string | import("../..").Ref<"payment_intent">>>;
841
+ refund: z.ZodNullable<z.ZodType<string | import("../..").Ref<"refund">, string | import("../..").Ref<"refund">, z.core.$ZodTypeInternals<string | import("../..").Ref<"refund">, string | import("../..").Ref<"refund">>>>;
842
+ dispute: z.ZodNullable<z.ZodType<string | import("../..").Ref<"dispute">, string | import("../..").Ref<"dispute">, z.core.$ZodTypeInternals<string | import("../..").Ref<"dispute">, string | import("../..").Ref<"dispute">>>>;
843
+ status: z.ZodEnum<{
844
+ unknown: "unknown";
845
+ pending: "pending";
846
+ available: "available";
847
+ }>;
848
+ gross: z.ZodNullable<z.ZodString>;
849
+ fee: z.ZodNullable<z.ZodString>;
850
+ net: z.ZodNullable<z.ZodString>;
851
+ currency: z.ZodNullable<z.ZodString>;
852
+ available_on: z.ZodNullable<z.ZodNumber>;
853
+ exchange_rate: z.ZodNullable<z.ZodNumber>;
854
+ }, z.core.$strict>;
855
+ readonly sdk: "disputes.settlement";
856
+ readonly expandable: "settlement";
822
857
  }];