import type { IntegrationAccountRequirement, TriggerDefinition } from "../types" const STRIPE_ACCOUNT = { connectionOptions: [{ connectionMethodId: "api-key", requiredScopes: [] }], serviceId: "stripe", } as const satisfies IntegrationAccountRequirement export const stripeTriggerDefinitions = { stripeChargeDisputeClosed: { account: STRIPE_ACCOUNT, type: "stripe.charge.dispute.closed", }, stripeChargeDisputeCreated: { account: STRIPE_ACCOUNT, type: "stripe.charge.dispute.created", }, stripeCheckoutSessionCompleted: { account: STRIPE_ACCOUNT, type: "stripe.checkout.session.completed", }, stripeCheckoutSessionAsyncPaymentFailed: { account: STRIPE_ACCOUNT, type: "stripe.checkout.session.asyncPaymentFailed", }, stripeCheckoutSessionAsyncPaymentSucceeded: { account: STRIPE_ACCOUNT, type: "stripe.checkout.session.asyncPaymentSucceeded", }, stripeCheckoutSessionExpired: { account: STRIPE_ACCOUNT, type: "stripe.checkout.session.expired", }, stripeCustomerCreated: { account: STRIPE_ACCOUNT, type: "stripe.customer.created", }, stripeCustomerDeleted: { account: STRIPE_ACCOUNT, type: "stripe.customer.deleted", }, stripeCustomerSubscriptionCreated: { account: STRIPE_ACCOUNT, type: "stripe.customer.subscription.created", }, stripeCustomerSubscriptionDeleted: { account: STRIPE_ACCOUNT, type: "stripe.customer.subscription.deleted", }, stripeCustomerSubscriptionTrialWillEnd: { account: STRIPE_ACCOUNT, type: "stripe.customer.subscription.trialWillEnd", }, stripeCustomerSubscriptionUpdated: { account: STRIPE_ACCOUNT, type: "stripe.customer.subscription.updated", }, stripeCustomerUpdated: { account: STRIPE_ACCOUNT, type: "stripe.customer.updated", }, stripeEvent: { account: STRIPE_ACCOUNT, type: "stripe.event" }, stripeInvoiceFinalized: { account: STRIPE_ACCOUNT, type: "stripe.invoice.finalized", }, stripeInvoiceOverdue: { account: STRIPE_ACCOUNT, type: "stripe.invoice.overdue", }, stripeInvoicePaid: { account: STRIPE_ACCOUNT, type: "stripe.invoice.paid", }, stripeInvoicePaymentFailed: { account: STRIPE_ACCOUNT, type: "stripe.invoice.paymentFailed", }, stripeInvoiceVoided: { account: STRIPE_ACCOUNT, type: "stripe.invoice.voided", }, stripePaymentIntentCanceled: { account: STRIPE_ACCOUNT, type: "stripe.paymentIntent.canceled", }, stripePaymentIntentPaymentFailed: { account: STRIPE_ACCOUNT, type: "stripe.paymentIntent.paymentFailed", }, stripePaymentIntentSucceeded: { account: STRIPE_ACCOUNT, type: "stripe.paymentIntent.succeeded", }, stripePayoutFailed: { account: STRIPE_ACCOUNT, type: "stripe.payout.failed", }, stripePayoutPaid: { account: STRIPE_ACCOUNT, type: "stripe.payout.paid", }, stripeRefundCreated: { account: STRIPE_ACCOUNT, type: "stripe.refund.created", }, stripeRefundFailed: { account: STRIPE_ACCOUNT, type: "stripe.refund.failed", }, } as const satisfies Record