@peable.to/contracts 6.0.0 → 6.2.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/cjs/resources/billingEngine/index.js +4 -1
- package/dist/cjs/resources/billingEngine/quotes.js +342 -0
- package/dist/cjs/resources/checkout/checkoutSessions.js +8 -0
- package/dist/cjs/resources/events/events.js +4 -0
- package/dist/cjs/vocabulary/checkout.js +3 -1
- package/dist/cjs/vocabulary/errors.js +3 -0
- package/dist/cjs/vocabulary/events.js +4 -0
- package/dist/cjs/vocabulary/index.js +1 -0
- package/dist/cjs/vocabulary/invoices.js +3 -0
- package/dist/cjs/vocabulary/quotes.js +31 -0
- package/dist/esm/resources/billingEngine/index.js +4 -1
- package/dist/esm/resources/billingEngine/quotes.js +339 -0
- package/dist/esm/resources/checkout/checkoutSessions.js +9 -1
- package/dist/esm/resources/events/events.js +4 -0
- package/dist/esm/vocabulary/checkout.js +2 -0
- package/dist/esm/vocabulary/errors.js +3 -0
- package/dist/esm/vocabulary/events.js +4 -0
- package/dist/esm/vocabulary/index.js +1 -0
- package/dist/esm/vocabulary/invoices.js +3 -0
- package/dist/esm/vocabulary/quotes.js +28 -0
- package/dist/types/resources/billingEngine/index.d.ts +839 -1
- package/dist/types/resources/billingEngine/invoices.d.ts +12 -0
- package/dist/types/resources/billingEngine/quotes.d.ts +1032 -0
- package/dist/types/resources/checkout/checkoutSessions.d.ts +52 -0
- package/dist/types/resources/checkout/index.d.ts +40 -0
- package/dist/types/resources/events/events.d.ts +16 -0
- package/dist/types/resources/events/index.d.ts +54 -2
- package/dist/types/resources/events/webhookDeliveries.d.ts +12 -0
- package/dist/types/resources/events/webhookEndpoints.d.ts +52 -4
- package/dist/types/resources/payments/disputes.d.ts +10 -10
- package/dist/types/resources/payments/index.d.ts +6 -6
- package/dist/types/vocabulary/checkout.d.ts +3 -0
- package/dist/types/vocabulary/errors.d.ts +3 -0
- package/dist/types/vocabulary/events.d.ts +4 -0
- package/dist/types/vocabulary/index.d.ts +1 -0
- package/dist/types/vocabulary/invoices.d.ts +1 -1
- package/dist/types/vocabulary/quotes.d.ts +27 -0
- package/package.json +1 -1
|
@@ -98,6 +98,10 @@ export declare const webhookEndpointSchema: z.ZodObject<{
|
|
|
98
98
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
99
99
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
100
100
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
101
|
+
"quote.created": "quote.created";
|
|
102
|
+
"quote.finalized": "quote.finalized";
|
|
103
|
+
"quote.accepted": "quote.accepted";
|
|
104
|
+
"quote.canceled": "quote.canceled";
|
|
101
105
|
"tax.assessment.created": "tax.assessment.created";
|
|
102
106
|
"tax.review_item.created": "tax.review_item.created";
|
|
103
107
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -220,6 +224,10 @@ export declare const webhookEndpointWithSecretSchema: z.ZodObject<{
|
|
|
220
224
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
221
225
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
222
226
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
227
|
+
"quote.created": "quote.created";
|
|
228
|
+
"quote.finalized": "quote.finalized";
|
|
229
|
+
"quote.accepted": "quote.accepted";
|
|
230
|
+
"quote.canceled": "quote.canceled";
|
|
223
231
|
"tax.assessment.created": "tax.assessment.created";
|
|
224
232
|
"tax.review_item.created": "tax.review_item.created";
|
|
225
233
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -344,11 +352,15 @@ export declare const createWebhookEndpointParams: z.ZodObject<{
|
|
|
344
352
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
345
353
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
346
354
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
355
|
+
"quote.created": "quote.created";
|
|
356
|
+
"quote.finalized": "quote.finalized";
|
|
357
|
+
"quote.accepted": "quote.accepted";
|
|
358
|
+
"quote.canceled": "quote.canceled";
|
|
347
359
|
"tax.assessment.created": "tax.assessment.created";
|
|
348
360
|
"tax.review_item.created": "tax.review_item.created";
|
|
349
361
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
350
362
|
"*": "*";
|
|
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" | "*")[]>>;
|
|
363
|
+
}>>, 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" | "quote.created" | "quote.finalized" | "quote.accepted" | "quote.canceled" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
|
|
352
364
|
description: z.ZodOptional<z.ZodString>;
|
|
353
365
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
|
|
354
366
|
}, z.core.$strict>;
|
|
@@ -445,11 +457,15 @@ export declare const updateWebhookEndpointParams: z.ZodObject<{
|
|
|
445
457
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
446
458
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
447
459
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
460
|
+
"quote.created": "quote.created";
|
|
461
|
+
"quote.finalized": "quote.finalized";
|
|
462
|
+
"quote.accepted": "quote.accepted";
|
|
463
|
+
"quote.canceled": "quote.canceled";
|
|
448
464
|
"tax.assessment.created": "tax.assessment.created";
|
|
449
465
|
"tax.review_item.created": "tax.review_item.created";
|
|
450
466
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
451
467
|
"*": "*";
|
|
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" | "*")[]>>>;
|
|
468
|
+
}>>, 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" | "quote.created" | "quote.finalized" | "quote.accepted" | "quote.canceled" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
|
|
453
469
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
454
470
|
description: z.ZodOptional<z.ZodString>;
|
|
455
471
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
|
|
@@ -579,11 +595,15 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
579
595
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
580
596
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
581
597
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
598
|
+
"quote.created": "quote.created";
|
|
599
|
+
"quote.finalized": "quote.finalized";
|
|
600
|
+
"quote.accepted": "quote.accepted";
|
|
601
|
+
"quote.canceled": "quote.canceled";
|
|
582
602
|
"tax.assessment.created": "tax.assessment.created";
|
|
583
603
|
"tax.review_item.created": "tax.review_item.created";
|
|
584
604
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
585
605
|
"*": "*";
|
|
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" | "*")[]>>;
|
|
606
|
+
}>>, 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" | "quote.created" | "quote.finalized" | "quote.accepted" | "quote.canceled" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>;
|
|
587
607
|
description: z.ZodOptional<z.ZodString>;
|
|
588
608
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<Record<string, string>, Record<string, string>>>>;
|
|
589
609
|
}, z.core.$strict>;
|
|
@@ -684,6 +704,10 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
684
704
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
685
705
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
686
706
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
707
|
+
"quote.created": "quote.created";
|
|
708
|
+
"quote.finalized": "quote.finalized";
|
|
709
|
+
"quote.accepted": "quote.accepted";
|
|
710
|
+
"quote.canceled": "quote.canceled";
|
|
687
711
|
"tax.assessment.created": "tax.assessment.created";
|
|
688
712
|
"tax.review_item.created": "tax.review_item.created";
|
|
689
713
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -828,6 +852,10 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
828
852
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
829
853
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
830
854
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
855
|
+
"quote.created": "quote.created";
|
|
856
|
+
"quote.finalized": "quote.finalized";
|
|
857
|
+
"quote.accepted": "quote.accepted";
|
|
858
|
+
"quote.canceled": "quote.canceled";
|
|
831
859
|
"tax.assessment.created": "tax.assessment.created";
|
|
832
860
|
"tax.review_item.created": "tax.review_item.created";
|
|
833
861
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -963,6 +991,10 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
963
991
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
964
992
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
965
993
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
994
|
+
"quote.created": "quote.created";
|
|
995
|
+
"quote.finalized": "quote.finalized";
|
|
996
|
+
"quote.accepted": "quote.accepted";
|
|
997
|
+
"quote.canceled": "quote.canceled";
|
|
966
998
|
"tax.assessment.created": "tax.assessment.created";
|
|
967
999
|
"tax.review_item.created": "tax.review_item.created";
|
|
968
1000
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -1089,11 +1121,15 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
1089
1121
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
1090
1122
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
1091
1123
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
1124
|
+
"quote.created": "quote.created";
|
|
1125
|
+
"quote.finalized": "quote.finalized";
|
|
1126
|
+
"quote.accepted": "quote.accepted";
|
|
1127
|
+
"quote.canceled": "quote.canceled";
|
|
1092
1128
|
"tax.assessment.created": "tax.assessment.created";
|
|
1093
1129
|
"tax.review_item.created": "tax.review_item.created";
|
|
1094
1130
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
1095
1131
|
"*": "*";
|
|
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" | "*")[]>>>;
|
|
1132
|
+
}>>, 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" | "quote.created" | "quote.finalized" | "quote.accepted" | "quote.canceled" | "tax.assessment.created" | "tax.review_item.created" | "tax.review_item.updated" | "*")[]>>>;
|
|
1097
1133
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1098
1134
|
description: z.ZodOptional<z.ZodString>;
|
|
1099
1135
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<import("../..").MetadataPatch, Record<string, string>>>>;
|
|
@@ -1194,6 +1230,10 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
1194
1230
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
1195
1231
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
1196
1232
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
1233
|
+
"quote.created": "quote.created";
|
|
1234
|
+
"quote.finalized": "quote.finalized";
|
|
1235
|
+
"quote.accepted": "quote.accepted";
|
|
1236
|
+
"quote.canceled": "quote.canceled";
|
|
1197
1237
|
"tax.assessment.created": "tax.assessment.created";
|
|
1198
1238
|
"tax.review_item.created": "tax.review_item.created";
|
|
1199
1239
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -1345,6 +1385,10 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
1345
1385
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
1346
1386
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
1347
1387
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
1388
|
+
"quote.created": "quote.created";
|
|
1389
|
+
"quote.finalized": "quote.finalized";
|
|
1390
|
+
"quote.accepted": "quote.accepted";
|
|
1391
|
+
"quote.canceled": "quote.canceled";
|
|
1348
1392
|
"tax.assessment.created": "tax.assessment.created";
|
|
1349
1393
|
"tax.review_item.created": "tax.review_item.created";
|
|
1350
1394
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -1473,6 +1517,10 @@ export declare const webhookEndpointRoutes: readonly [{
|
|
|
1473
1517
|
"billing_portal.configuration.created": "billing_portal.configuration.created";
|
|
1474
1518
|
"billing_portal.configuration.updated": "billing_portal.configuration.updated";
|
|
1475
1519
|
"billing_portal.session.created": "billing_portal.session.created";
|
|
1520
|
+
"quote.created": "quote.created";
|
|
1521
|
+
"quote.finalized": "quote.finalized";
|
|
1522
|
+
"quote.accepted": "quote.accepted";
|
|
1523
|
+
"quote.canceled": "quote.canceled";
|
|
1476
1524
|
"tax.assessment.created": "tax.assessment.created";
|
|
1477
1525
|
"tax.review_item.created": "tax.review_item.created";
|
|
1478
1526
|
"tax.review_item.updated": "tax.review_item.updated";
|
|
@@ -9,8 +9,8 @@ import { type Expand } from '../../common/objects';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const disputeEvidenceSchema: z.ZodObject<{
|
|
11
11
|
customer_name: z.ZodNullable<z.ZodString>;
|
|
12
|
-
billing_address: z.ZodNullable<z.ZodString>;
|
|
13
12
|
access_activity_log: z.ZodNullable<z.ZodString>;
|
|
13
|
+
billing_address: z.ZodNullable<z.ZodString>;
|
|
14
14
|
cancellation_policy_disclosure: z.ZodNullable<z.ZodString>;
|
|
15
15
|
cancellation_rebuttal: z.ZodNullable<z.ZodString>;
|
|
16
16
|
customer_email_address: z.ZodNullable<z.ZodString>;
|
|
@@ -99,8 +99,8 @@ export declare const disputeSchema: z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strict>;
|
|
100
100
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
101
101
|
customer_name: z.ZodNullable<z.ZodString>;
|
|
102
|
-
billing_address: z.ZodNullable<z.ZodString>;
|
|
103
102
|
access_activity_log: z.ZodNullable<z.ZodString>;
|
|
103
|
+
billing_address: z.ZodNullable<z.ZodString>;
|
|
104
104
|
cancellation_policy_disclosure: z.ZodNullable<z.ZodString>;
|
|
105
105
|
cancellation_rebuttal: z.ZodNullable<z.ZodString>;
|
|
106
106
|
customer_email_address: z.ZodNullable<z.ZodString>;
|
|
@@ -152,8 +152,8 @@ export declare const disputeEvidenceParams: z.ZodObject<{
|
|
|
152
152
|
shipping_documentation: z.ZodOptional<z.ZodString>;
|
|
153
153
|
uncategorized_file: z.ZodOptional<z.ZodString>;
|
|
154
154
|
customer_name: z.ZodOptional<z.ZodString>;
|
|
155
|
-
billing_address: z.ZodOptional<z.ZodString>;
|
|
156
155
|
access_activity_log: z.ZodOptional<z.ZodString>;
|
|
156
|
+
billing_address: z.ZodOptional<z.ZodString>;
|
|
157
157
|
cancellation_policy_disclosure: z.ZodOptional<z.ZodString>;
|
|
158
158
|
cancellation_rebuttal: z.ZodOptional<z.ZodString>;
|
|
159
159
|
customer_email_address: z.ZodOptional<z.ZodString>;
|
|
@@ -187,8 +187,8 @@ export declare const updateDisputeParams: z.ZodObject<{
|
|
|
187
187
|
shipping_documentation: z.ZodOptional<z.ZodString>;
|
|
188
188
|
uncategorized_file: z.ZodOptional<z.ZodString>;
|
|
189
189
|
customer_name: z.ZodOptional<z.ZodString>;
|
|
190
|
-
billing_address: z.ZodOptional<z.ZodString>;
|
|
191
190
|
access_activity_log: z.ZodOptional<z.ZodString>;
|
|
191
|
+
billing_address: z.ZodOptional<z.ZodString>;
|
|
192
192
|
cancellation_policy_disclosure: z.ZodOptional<z.ZodString>;
|
|
193
193
|
cancellation_rebuttal: z.ZodOptional<z.ZodString>;
|
|
194
194
|
customer_email_address: z.ZodOptional<z.ZodString>;
|
|
@@ -332,8 +332,8 @@ export declare const disputeRoutes: readonly [{
|
|
|
332
332
|
}, z.core.$strict>;
|
|
333
333
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
334
334
|
customer_name: z.ZodNullable<z.ZodString>;
|
|
335
|
-
billing_address: z.ZodNullable<z.ZodString>;
|
|
336
335
|
access_activity_log: z.ZodNullable<z.ZodString>;
|
|
336
|
+
billing_address: z.ZodNullable<z.ZodString>;
|
|
337
337
|
cancellation_policy_disclosure: z.ZodNullable<z.ZodString>;
|
|
338
338
|
cancellation_rebuttal: z.ZodNullable<z.ZodString>;
|
|
339
339
|
customer_email_address: z.ZodNullable<z.ZodString>;
|
|
@@ -451,8 +451,8 @@ export declare const disputeRoutes: readonly [{
|
|
|
451
451
|
}, z.core.$strict>;
|
|
452
452
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
453
453
|
customer_name: z.ZodNullable<z.ZodString>;
|
|
454
|
-
billing_address: z.ZodNullable<z.ZodString>;
|
|
455
454
|
access_activity_log: z.ZodNullable<z.ZodString>;
|
|
455
|
+
billing_address: z.ZodNullable<z.ZodString>;
|
|
456
456
|
cancellation_policy_disclosure: z.ZodNullable<z.ZodString>;
|
|
457
457
|
cancellation_rebuttal: z.ZodNullable<z.ZodString>;
|
|
458
458
|
customer_email_address: z.ZodNullable<z.ZodString>;
|
|
@@ -556,8 +556,8 @@ export declare const disputeRoutes: readonly [{
|
|
|
556
556
|
}, z.core.$strict>;
|
|
557
557
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
558
558
|
customer_name: z.ZodNullable<z.ZodString>;
|
|
559
|
-
billing_address: z.ZodNullable<z.ZodString>;
|
|
560
559
|
access_activity_log: z.ZodNullable<z.ZodString>;
|
|
560
|
+
billing_address: z.ZodNullable<z.ZodString>;
|
|
561
561
|
cancellation_policy_disclosure: z.ZodNullable<z.ZodString>;
|
|
562
562
|
cancellation_rebuttal: z.ZodNullable<z.ZodString>;
|
|
563
563
|
customer_email_address: z.ZodNullable<z.ZodString>;
|
|
@@ -613,8 +613,8 @@ export declare const disputeRoutes: readonly [{
|
|
|
613
613
|
shipping_documentation: z.ZodOptional<z.ZodString>;
|
|
614
614
|
uncategorized_file: z.ZodOptional<z.ZodString>;
|
|
615
615
|
customer_name: z.ZodOptional<z.ZodString>;
|
|
616
|
-
billing_address: z.ZodOptional<z.ZodString>;
|
|
617
616
|
access_activity_log: z.ZodOptional<z.ZodString>;
|
|
617
|
+
billing_address: z.ZodOptional<z.ZodString>;
|
|
618
618
|
cancellation_policy_disclosure: z.ZodOptional<z.ZodString>;
|
|
619
619
|
cancellation_rebuttal: z.ZodOptional<z.ZodString>;
|
|
620
620
|
customer_email_address: z.ZodOptional<z.ZodString>;
|
|
@@ -688,8 +688,8 @@ export declare const disputeRoutes: readonly [{
|
|
|
688
688
|
}, z.core.$strict>;
|
|
689
689
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
690
690
|
customer_name: z.ZodNullable<z.ZodString>;
|
|
691
|
-
billing_address: z.ZodNullable<z.ZodString>;
|
|
692
691
|
access_activity_log: z.ZodNullable<z.ZodString>;
|
|
692
|
+
billing_address: z.ZodNullable<z.ZodString>;
|
|
693
693
|
cancellation_policy_disclosure: z.ZodNullable<z.ZodString>;
|
|
694
694
|
cancellation_rebuttal: z.ZodNullable<z.ZodString>;
|
|
695
695
|
customer_email_address: z.ZodNullable<z.ZodString>;
|
|
@@ -788,8 +788,8 @@ export declare const disputeRoutes: readonly [{
|
|
|
788
788
|
}, z.core.$strict>;
|
|
789
789
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
790
790
|
customer_name: z.ZodNullable<z.ZodString>;
|
|
791
|
-
billing_address: z.ZodNullable<z.ZodString>;
|
|
792
791
|
access_activity_log: z.ZodNullable<z.ZodString>;
|
|
792
|
+
billing_address: z.ZodNullable<z.ZodString>;
|
|
793
793
|
cancellation_policy_disclosure: z.ZodNullable<z.ZodString>;
|
|
794
794
|
cancellation_rebuttal: z.ZodNullable<z.ZodString>;
|
|
795
795
|
customer_email_address: z.ZodNullable<z.ZodString>;
|
|
@@ -2895,8 +2895,8 @@ export declare const paymentsRoutes: readonly [{
|
|
|
2895
2895
|
}, import("zod/v4/core").$strict>;
|
|
2896
2896
|
evidence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2897
2897
|
customer_name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2898
|
-
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2899
2898
|
access_activity_log: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2899
|
+
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2900
2900
|
cancellation_policy_disclosure: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2901
2901
|
cancellation_rebuttal: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2902
2902
|
customer_email_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -3014,8 +3014,8 @@ export declare const paymentsRoutes: readonly [{
|
|
|
3014
3014
|
}, import("zod/v4/core").$strict>;
|
|
3015
3015
|
evidence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3016
3016
|
customer_name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3017
|
-
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3018
3017
|
access_activity_log: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3018
|
+
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3019
3019
|
cancellation_policy_disclosure: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3020
3020
|
cancellation_rebuttal: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3021
3021
|
customer_email_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -3119,8 +3119,8 @@ export declare const paymentsRoutes: readonly [{
|
|
|
3119
3119
|
}, import("zod/v4/core").$strict>;
|
|
3120
3120
|
evidence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3121
3121
|
customer_name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3122
|
-
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3123
3122
|
access_activity_log: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3123
|
+
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3124
3124
|
cancellation_policy_disclosure: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3125
3125
|
cancellation_rebuttal: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3126
3126
|
customer_email_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -3176,8 +3176,8 @@ export declare const paymentsRoutes: readonly [{
|
|
|
3176
3176
|
shipping_documentation: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3177
3177
|
uncategorized_file: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3178
3178
|
customer_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3179
|
-
billing_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3180
3179
|
access_activity_log: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3180
|
+
billing_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3181
3181
|
cancellation_policy_disclosure: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3182
3182
|
cancellation_rebuttal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3183
3183
|
customer_email_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -3251,8 +3251,8 @@ export declare const paymentsRoutes: readonly [{
|
|
|
3251
3251
|
}, import("zod/v4/core").$strict>;
|
|
3252
3252
|
evidence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3253
3253
|
customer_name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3254
|
-
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3255
3254
|
access_activity_log: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3255
|
+
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3256
3256
|
cancellation_policy_disclosure: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3257
3257
|
cancellation_rebuttal: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3258
3258
|
customer_email_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -3351,8 +3351,8 @@ export declare const paymentsRoutes: readonly [{
|
|
|
3351
3351
|
}, import("zod/v4/core").$strict>;
|
|
3352
3352
|
evidence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3353
3353
|
customer_name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3354
|
-
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3355
3354
|
access_activity_log: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3355
|
+
billing_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3356
3356
|
cancellation_policy_disclosure: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3357
3357
|
cancellation_rebuttal: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3358
3358
|
customer_email_address: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -75,3 +75,6 @@ export declare const PAYMENT_LINK_LIMITS: Readonly<{
|
|
|
75
75
|
lineItemsMax: 20;
|
|
76
76
|
customMessageMax: 500;
|
|
77
77
|
}>;
|
|
78
|
+
/** Who owns contact collection for a service-created checkout session. */
|
|
79
|
+
export declare const CHECKOUT_CONTACT_COLLECTIONS: readonly ["email", "merchant_account"];
|
|
80
|
+
export type CheckoutContactCollection = (typeof CHECKOUT_CONTACT_COLLECTIONS)[number];
|
|
@@ -91,6 +91,9 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
|
|
|
91
91
|
readonly invoice_not_editable: "The invoice is finalized and can no longer be edited.";
|
|
92
92
|
readonly invoice_unexpected_state: "The invoice is in a status that does not allow this operation.";
|
|
93
93
|
readonly invoice_no_customer_line_items: "The invoice has no line items to finalize.";
|
|
94
|
+
readonly quote_not_editable: "Only a draft quote can be edited.";
|
|
95
|
+
readonly quote_unexpected_state: "The quote's status does not allow this.";
|
|
96
|
+
readonly quote_expired: "The quote expired.";
|
|
94
97
|
readonly invoice_payment_intent_requires_action: "The invoice's payment needs the customer to act (a card challenge).";
|
|
95
98
|
readonly subscription_unexpected_state: "The subscription is in a status that does not allow this operation.";
|
|
96
99
|
readonly customer_currency_mismatch: "The currency differs from the customer's billing currency.";
|
|
@@ -116,6 +116,10 @@ export declare const WEBHOOK_EVENT_OBJECTS: {
|
|
|
116
116
|
readonly 'billing_portal.configuration.created': "billing_portal.configuration";
|
|
117
117
|
readonly 'billing_portal.configuration.updated': "billing_portal.configuration";
|
|
118
118
|
readonly 'billing_portal.session.created': "billing_portal.session";
|
|
119
|
+
readonly 'quote.created': "quote";
|
|
120
|
+
readonly 'quote.finalized': "quote";
|
|
121
|
+
readonly 'quote.accepted': "quote";
|
|
122
|
+
readonly 'quote.canceled': "quote";
|
|
119
123
|
readonly 'tax.assessment.created': "tax.assessment";
|
|
120
124
|
readonly 'tax.review_item.created': "tax.review_item";
|
|
121
125
|
readonly 'tax.review_item.updated': "tax.review_item";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const INVOICE_STATUSES: readonly ["draft", "open", "paid", "void", "uncollectible"];
|
|
2
2
|
export type InvoiceStatus = (typeof INVOICE_STATUSES)[number];
|
|
3
3
|
/** Why an invoice exists. */
|
|
4
|
-
export declare const INVOICE_BILLING_REASONS: readonly ["manual", "subscription_create", "subscription_cycle", "subscription_update", "subscription_cancel", "upcoming"];
|
|
4
|
+
export declare const INVOICE_BILLING_REASONS: readonly ["manual", "subscription_create", "subscription_cycle", "subscription_update", "subscription_cancel", "upcoming", "quote_accept"];
|
|
5
5
|
export type InvoiceBillingReason = (typeof INVOICE_BILLING_REASONS)[number];
|
|
6
6
|
/**
|
|
7
7
|
* `automatic_tax.status` — Peable Tax (ADR 0011) is computed before an invoice
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a quote stands — Stripe's four.
|
|
3
|
+
*
|
|
4
|
+
* - `draft` — being written; the only status a quote can be edited in.
|
|
5
|
+
* - `open` — finalized: numbered, priced and taxed, waiting for the
|
|
6
|
+
* customer's answer until `expires_at`.
|
|
7
|
+
* - `accepted` — terminal: the native billing engine made its invoice (one-time
|
|
8
|
+
* lines) or its subscription and first invoice (recurring lines).
|
|
9
|
+
* - `canceled` — terminal: cancelled by the merchant, or expired while open.
|
|
10
|
+
*/
|
|
11
|
+
export declare const QUOTE_STATUSES: readonly ["draft", "open", "accepted", "canceled"];
|
|
12
|
+
export type QuoteStatus = (typeof QUOTE_STATUSES)[number];
|
|
13
|
+
/** Bounds a quote is checked against. */
|
|
14
|
+
export declare const QUOTE_LIMITS: {
|
|
15
|
+
/** Lines on one quote — a subscription's item limit. */
|
|
16
|
+
readonly lineItemsMax: 20;
|
|
17
|
+
readonly quantityMax: 1000000;
|
|
18
|
+
/** `header` and `footer`; `description` is 1500 like an invoice's. */
|
|
19
|
+
readonly headerMax: 50;
|
|
20
|
+
readonly footerMax: 500;
|
|
21
|
+
readonly descriptionMax: 1500;
|
|
22
|
+
/** A quote expires 30 days after it is created unless `expires_at` says otherwise (Stripe's default). */
|
|
23
|
+
readonly defaultExpiryDays: 30;
|
|
24
|
+
/** `expires_at` at most this far ahead. */
|
|
25
|
+
readonly expiryMaxDays: 365;
|
|
26
|
+
readonly trialPeriodDaysMax: 730;
|
|
27
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peable.to/contracts",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "The Peable wire, declared once: Zod contracts of every public route, the OpenAPI 3.1 generator and the closed value sets (ADR 0014 D5).",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|