import * as actions from "./actions" import * as triggers from "./triggers" import { defineAccount } from "../../automation/integrations" /** Declares a named Stripe account binding for an automation. */ export const stripeAccount = defineAccount("stripe") /** Stripe callables. */ /** * Named callable map keeps declaration emit on the exported action and trigger * types. */ type StripeCallables = { readonly archivePrice: typeof actions.archiveStripePrice readonly archiveProduct: typeof actions.archiveStripeProduct readonly attachPaymentMethod: typeof actions.attachStripePaymentMethod readonly cancelPaymentIntent: typeof actions.cancelStripePaymentIntent readonly cancelPayout: typeof actions.cancelStripePayout readonly cancelRefund: typeof actions.cancelStripeRefund readonly cancelSetupIntent: typeof actions.cancelStripeSetupIntent readonly cancelSubscription: typeof actions.cancelStripeSubscription readonly capturePaymentIntent: typeof actions.captureStripePaymentIntent readonly closeDispute: typeof actions.closeStripeDispute readonly confirmPaymentIntent: typeof actions.confirmStripePaymentIntent readonly confirmSetupIntent: typeof actions.confirmStripeSetupIntent readonly createBillingPortalSession: typeof actions.createStripeBillingPortalSession readonly createCheckoutSession: typeof actions.createStripeCheckoutSession readonly createCustomer: typeof actions.createStripeCustomer readonly createInvoice: typeof actions.createStripeInvoice readonly createInvoiceItem: typeof actions.createStripeInvoiceItem readonly createPaymentMethod: typeof actions.createStripePaymentMethod readonly createPaymentIntent: typeof actions.createStripePaymentIntent readonly createPaymentLink: typeof actions.createStripePaymentLink readonly createPrice: typeof actions.createStripePrice readonly createProduct: typeof actions.createStripeProduct readonly createPayout: typeof actions.createStripePayout readonly createRefund: typeof actions.createStripeRefund readonly createSetupIntent: typeof actions.createStripeSetupIntent readonly createSubscription: typeof actions.createStripeSubscription readonly deleteCustomer: typeof actions.deleteStripeCustomer readonly deleteInvoice: typeof actions.deleteStripeInvoice readonly deleteInvoiceItem: typeof actions.deleteStripeInvoiceItem readonly detachPaymentMethod: typeof actions.detachStripePaymentMethod readonly expireCheckoutSession: typeof actions.expireStripeCheckoutSession readonly finalizeInvoice: typeof actions.finalizeStripeInvoice readonly getBalance: typeof actions.getStripeBalance readonly getCheckoutSession: typeof actions.getStripeCheckoutSession readonly getCurrentAccount: typeof actions.getCurrentStripeAccount readonly getCustomer: typeof actions.getStripeCustomer readonly getDispute: typeof actions.getStripeDispute readonly getInvoice: typeof actions.getStripeInvoice readonly getInvoiceItem: typeof actions.getStripeInvoiceItem readonly getPaymentIntent: typeof actions.getStripePaymentIntent readonly getPaymentLink: typeof actions.getStripePaymentLink readonly getPaymentMethod: typeof actions.getStripePaymentMethod readonly getPayout: typeof actions.getStripePayout readonly getPrice: typeof actions.getStripePrice readonly getProduct: typeof actions.getStripeProduct readonly getRefund: typeof actions.getStripeRefund readonly getSetupIntent: typeof actions.getStripeSetupIntent readonly getSubscription: typeof actions.getStripeSubscription readonly listBalanceTransactions: typeof actions.listStripeBalanceTransactions readonly listCheckoutSessions: typeof actions.listStripeCheckoutSessions readonly listCustomers: typeof actions.listStripeCustomers readonly listDisputes: typeof actions.listStripeDisputes readonly listInvoices: typeof actions.listStripeInvoices readonly listInvoiceItems: typeof actions.listStripeInvoiceItems readonly listPaymentIntents: typeof actions.listStripePaymentIntents readonly listPaymentLinks: typeof actions.listStripePaymentLinks readonly listPaymentMethods: typeof actions.listStripePaymentMethods readonly listPayouts: typeof actions.listStripePayouts readonly listPrices: typeof actions.listStripePrices readonly listProducts: typeof actions.listStripeProducts readonly listRefunds: typeof actions.listStripeRefunds readonly listSetupIntents: typeof actions.listStripeSetupIntents readonly listSubscriptions: typeof actions.listStripeSubscriptions readonly markInvoiceUncollectible: typeof actions.markStripeInvoiceUncollectible readonly onChargeDisputeClosed: typeof triggers.onStripeChargeDisputeClosed readonly onChargeDisputeCreated: typeof triggers.onStripeChargeDisputeCreated readonly onCheckoutSessionAsyncPaymentFailed: typeof triggers.onStripeCheckoutSessionAsyncPaymentFailed readonly onCheckoutSessionAsyncPaymentSucceeded: typeof triggers.onStripeCheckoutSessionAsyncPaymentSucceeded readonly onCheckoutSessionCompleted: typeof triggers.onStripeCheckoutSessionCompleted readonly onCheckoutSessionExpired: typeof triggers.onStripeCheckoutSessionExpired readonly onCustomerCreated: typeof triggers.onStripeCustomerCreated readonly onCustomerDeleted: typeof triggers.onStripeCustomerDeleted readonly onCustomerUpdated: typeof triggers.onStripeCustomerUpdated readonly onEvent: typeof triggers.onStripeEvent readonly onInvoiceFinalized: typeof triggers.onStripeInvoiceFinalized readonly onInvoiceOverdue: typeof triggers.onStripeInvoiceOverdue readonly onInvoicePaid: typeof triggers.onStripeInvoicePaid readonly onInvoicePaymentFailed: typeof triggers.onStripeInvoicePaymentFailed readonly onInvoiceVoided: typeof triggers.onStripeInvoiceVoided readonly onPaymentIntentCanceled: typeof triggers.onStripePaymentIntentCanceled readonly onPaymentIntentPaymentFailed: typeof triggers.onStripePaymentIntentPaymentFailed readonly onPaymentIntentSucceeded: typeof triggers.onStripePaymentIntentSucceeded readonly onPayoutFailed: typeof triggers.onStripePayoutFailed readonly onPayoutPaid: typeof triggers.onStripePayoutPaid readonly onRefundCreated: typeof triggers.onStripeRefundCreated readonly onRefundFailed: typeof triggers.onStripeRefundFailed readonly onSubscriptionCreated: typeof triggers.onStripeSubscriptionCreated readonly onSubscriptionDeleted: typeof triggers.onStripeSubscriptionDeleted readonly onSubscriptionTrialWillEnd: typeof triggers.onStripeSubscriptionTrialWillEnd readonly onSubscriptionUpdated: typeof triggers.onStripeSubscriptionUpdated readonly payInvoice: typeof actions.payStripeInvoice readonly resumeSubscription: typeof actions.resumeStripeSubscription readonly reversePayout: typeof actions.reverseStripePayout readonly searchCustomers: typeof actions.searchStripeCustomers readonly searchInvoices: typeof actions.searchStripeInvoices readonly searchPaymentIntents: typeof actions.searchStripePaymentIntents readonly searchPrices: typeof actions.searchStripePrices readonly searchProducts: typeof actions.searchStripeProducts readonly searchSubscriptions: typeof actions.searchStripeSubscriptions readonly sendInvoice: typeof actions.sendStripeInvoice readonly updateCustomer: typeof actions.updateStripeCustomer readonly updateDispute: typeof actions.updateStripeDispute readonly updateInvoice: typeof actions.updateStripeInvoice readonly updateInvoiceItem: typeof actions.updateStripeInvoiceItem readonly updatePaymentIntent: typeof actions.updateStripePaymentIntent readonly updatePaymentLink: typeof actions.updateStripePaymentLink readonly updatePaymentMethod: typeof actions.updateStripePaymentMethod readonly updatePayout: typeof actions.updateStripePayout readonly updatePrice: typeof actions.updateStripePrice readonly updateProduct: typeof actions.updateStripeProduct readonly updateRefund: typeof actions.updateStripeRefund readonly updateSetupIntent: typeof actions.updateStripeSetupIntent readonly updateSubscription: typeof actions.updateStripeSubscription readonly voidInvoice: typeof actions.voidStripeInvoice } export const stripe: StripeCallables = { archivePrice: actions.archiveStripePrice, archiveProduct: actions.archiveStripeProduct, attachPaymentMethod: actions.attachStripePaymentMethod, cancelPaymentIntent: actions.cancelStripePaymentIntent, cancelPayout: actions.cancelStripePayout, cancelRefund: actions.cancelStripeRefund, cancelSetupIntent: actions.cancelStripeSetupIntent, cancelSubscription: actions.cancelStripeSubscription, capturePaymentIntent: actions.captureStripePaymentIntent, closeDispute: actions.closeStripeDispute, confirmPaymentIntent: actions.confirmStripePaymentIntent, confirmSetupIntent: actions.confirmStripeSetupIntent, createBillingPortalSession: actions.createStripeBillingPortalSession, createCheckoutSession: actions.createStripeCheckoutSession, createCustomer: actions.createStripeCustomer, createInvoice: actions.createStripeInvoice, createInvoiceItem: actions.createStripeInvoiceItem, createPaymentMethod: actions.createStripePaymentMethod, createPaymentIntent: actions.createStripePaymentIntent, createPaymentLink: actions.createStripePaymentLink, createPrice: actions.createStripePrice, createProduct: actions.createStripeProduct, createPayout: actions.createStripePayout, createRefund: actions.createStripeRefund, createSetupIntent: actions.createStripeSetupIntent, createSubscription: actions.createStripeSubscription, deleteCustomer: actions.deleteStripeCustomer, deleteInvoice: actions.deleteStripeInvoice, deleteInvoiceItem: actions.deleteStripeInvoiceItem, detachPaymentMethod: actions.detachStripePaymentMethod, expireCheckoutSession: actions.expireStripeCheckoutSession, finalizeInvoice: actions.finalizeStripeInvoice, getBalance: actions.getStripeBalance, getCheckoutSession: actions.getStripeCheckoutSession, getCurrentAccount: actions.getCurrentStripeAccount, getCustomer: actions.getStripeCustomer, getDispute: actions.getStripeDispute, getInvoice: actions.getStripeInvoice, getInvoiceItem: actions.getStripeInvoiceItem, getPaymentIntent: actions.getStripePaymentIntent, getPaymentLink: actions.getStripePaymentLink, getPaymentMethod: actions.getStripePaymentMethod, getPayout: actions.getStripePayout, getPrice: actions.getStripePrice, getProduct: actions.getStripeProduct, getRefund: actions.getStripeRefund, getSetupIntent: actions.getStripeSetupIntent, getSubscription: actions.getStripeSubscription, listBalanceTransactions: actions.listStripeBalanceTransactions, listCheckoutSessions: actions.listStripeCheckoutSessions, listCustomers: actions.listStripeCustomers, listDisputes: actions.listStripeDisputes, listInvoices: actions.listStripeInvoices, listInvoiceItems: actions.listStripeInvoiceItems, listPaymentIntents: actions.listStripePaymentIntents, listPaymentLinks: actions.listStripePaymentLinks, listPaymentMethods: actions.listStripePaymentMethods, listPayouts: actions.listStripePayouts, listPrices: actions.listStripePrices, listProducts: actions.listStripeProducts, listRefunds: actions.listStripeRefunds, listSetupIntents: actions.listStripeSetupIntents, listSubscriptions: actions.listStripeSubscriptions, markInvoiceUncollectible: actions.markStripeInvoiceUncollectible, onChargeDisputeClosed: triggers.onStripeChargeDisputeClosed, onChargeDisputeCreated: triggers.onStripeChargeDisputeCreated, onCheckoutSessionAsyncPaymentFailed: triggers.onStripeCheckoutSessionAsyncPaymentFailed, onCheckoutSessionAsyncPaymentSucceeded: triggers.onStripeCheckoutSessionAsyncPaymentSucceeded, onCheckoutSessionCompleted: triggers.onStripeCheckoutSessionCompleted, onCheckoutSessionExpired: triggers.onStripeCheckoutSessionExpired, onCustomerCreated: triggers.onStripeCustomerCreated, onCustomerDeleted: triggers.onStripeCustomerDeleted, onCustomerUpdated: triggers.onStripeCustomerUpdated, onEvent: triggers.onStripeEvent, onInvoiceFinalized: triggers.onStripeInvoiceFinalized, onInvoiceOverdue: triggers.onStripeInvoiceOverdue, onInvoicePaid: triggers.onStripeInvoicePaid, onInvoicePaymentFailed: triggers.onStripeInvoicePaymentFailed, onInvoiceVoided: triggers.onStripeInvoiceVoided, onPaymentIntentCanceled: triggers.onStripePaymentIntentCanceled, onPaymentIntentPaymentFailed: triggers.onStripePaymentIntentPaymentFailed, onPaymentIntentSucceeded: triggers.onStripePaymentIntentSucceeded, onPayoutFailed: triggers.onStripePayoutFailed, onPayoutPaid: triggers.onStripePayoutPaid, onRefundCreated: triggers.onStripeRefundCreated, onRefundFailed: triggers.onStripeRefundFailed, onSubscriptionCreated: triggers.onStripeSubscriptionCreated, onSubscriptionDeleted: triggers.onStripeSubscriptionDeleted, onSubscriptionTrialWillEnd: triggers.onStripeSubscriptionTrialWillEnd, onSubscriptionUpdated: triggers.onStripeSubscriptionUpdated, payInvoice: actions.payStripeInvoice, resumeSubscription: actions.resumeStripeSubscription, reversePayout: actions.reverseStripePayout, searchCustomers: actions.searchStripeCustomers, searchInvoices: actions.searchStripeInvoices, searchPaymentIntents: actions.searchStripePaymentIntents, searchPrices: actions.searchStripePrices, searchProducts: actions.searchStripeProducts, searchSubscriptions: actions.searchStripeSubscriptions, sendInvoice: actions.sendStripeInvoice, updateCustomer: actions.updateStripeCustomer, updateDispute: actions.updateStripeDispute, updateInvoice: actions.updateStripeInvoice, updateInvoiceItem: actions.updateStripeInvoiceItem, updatePaymentIntent: actions.updateStripePaymentIntent, updatePaymentLink: actions.updateStripePaymentLink, updatePaymentMethod: actions.updateStripePaymentMethod, updatePayout: actions.updateStripePayout, updatePrice: actions.updateStripePrice, updateProduct: actions.updateStripeProduct, updateRefund: actions.updateStripeRefund, updateSetupIntent: actions.updateStripeSetupIntent, updateSubscription: actions.updateStripeSubscription, voidInvoice: actions.voidStripeInvoice, } export * from "./actions" export { getStripeApi } from "./lib" export type { StripeInputValue, StripeMutationInput, StripeValue } from "./lib" export * from "./triggers"