import { Stripe as Stripe$1 } from 'stripe'; import { Prettify } from '@trigger.dev/integration-kit'; import * as _trigger_dev_sdk from '@trigger.dev/sdk'; import { IntegrationTaskKey, EventSpecification, TriggerIntegration, IO, ConnectionAuth, ExternalSource, Json, IOTask, RunTaskOptions, RunTaskErrorCallback, EventFilter, ExternalSourceTrigger } from '@trigger.dev/sdk'; import { z } from 'zod'; type StripeSDK = Stripe$1; type StripeIntegrationOptions = { id: string; apiKey?: string; /** * An account id on whose behalf you wish to make every request. */ stripeAccount?: string; }; type WithStripeConnectOptions = T & { stripeAccount?: string; }; type CreateChargeParams = Prettify>; type CreateChargeResponse = Prettify>; type CreateCustomerParams = Prettify>; type CreateCustomerResponse = Prettify>; type UpdateCustomerParams = Prettify>; type UpdateCustomerResponse = Prettify>; type RetrieveSubscriptionParams = Prettify>; type RetrieveSubscriptionResponse = Prettify>; type CreateCheckoutSessionParams = Prettify>; type CreateCheckoutSessionResponse = Prettify>; type CreateWebhookParams = Prettify; type CreateWebhookResponse = Prettify; type UpdateWebhookParams = Prettify; type UpdateWebhookResponse = Prettify; type WebhookEvents = Exclude; type ListWebhooksParams = Prettify; type ListWebhooksResponse = Prettify>>; type ExtractWebhookPayload = Prettify; type OnPriceEvent = ExtractWebhookPayload; type OnProductEvent = ExtractWebhookPayload; type OnCheckoutSession = ExtractWebhookPayload; type OnCustomerSubscription = ExtractWebhookPayload; type OnAccountEvent = ExtractWebhookPayload; type OnCustomerEvent = ExtractWebhookPayload; type OnChargeEvent = ExtractWebhookPayload; type OnExternalAccountEvent = ExtractWebhookPayload; type OnPersonEvent = ExtractWebhookPayload; type OnPaymentIntentEvent = ExtractWebhookPayload; type OnPayoutEvent = ExtractWebhookPayload; type OnInvoiceEvent = ExtractWebhookPayload; type OnInvoiceItemEvent = ExtractWebhookPayload; declare class Charges { private runTask; constructor(runTask: StripeRunTask); /** * Use the [Payment Intents API](https://stripe.com/docs/api/payment_intents) to initiate a new payment instead * of using this method. Confirmation of the PaymentIntent creates the Charge * object used to request payment, so this method is limited to legacy integrations. */ create(key: IntegrationTaskKey, params: CreateChargeParams): Promise; } declare class Checkout { private runTask; constructor(runTask: StripeRunTask); sessions: { /** * Creates a Session object. */ create: (key: IntegrationTaskKey, params: CreateCheckoutSessionParams) => Promise; }; } declare class Customers { private runTask; constructor(runTask: StripeRunTask); create(key: IntegrationTaskKey, params: CreateCustomerParams): Promise; /** * Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior. * * This request accepts mostly the same arguments as the customer creation call. */ update(key: IntegrationTaskKey, params: UpdateCustomerParams): Promise; } declare const onPriceCreated: EventSpecification; declare const onPriceUpdated: EventSpecification; declare const onPriceDeleted: EventSpecification; declare const onPrice: EventSpecification; declare const onProduct: EventSpecification; declare const onProductCreated: EventSpecification; declare const onProductUpdated: EventSpecification; declare const onProductDeleted: EventSpecification; declare const onCheckoutSession: EventSpecification; declare const onCheckoutSessionCompleted: EventSpecification; declare const onCheckoutSessionExpired: EventSpecification; declare const onCustomerSubscription: EventSpecification; declare const onCustomerSubscriptionCreated: EventSpecification; declare const onCustomerSubscriptionPaused: EventSpecification; declare const onCustomerSubscriptionResumed: EventSpecification; declare const onCustomerSubscriptionDeleted: EventSpecification; declare const onCustomerSubscriptionUpdated: EventSpecification; declare const onAccountUpdated: EventSpecification; declare const onCustomer: EventSpecification; declare const onCustomerCreated: EventSpecification; declare const onCustomerDeleted: EventSpecification; declare const onCustomerUpdated: EventSpecification; declare const onCharge: EventSpecification; declare const onChargeCaptured: EventSpecification; declare const onChargeExpired: EventSpecification; declare const onChargeFailed: EventSpecification; declare const onChargePending: EventSpecification; declare const onChargeRefunded: EventSpecification; declare const onChargeSucceeded: EventSpecification; declare const onChargeUpdated: EventSpecification; declare const onExternalAccount: EventSpecification; declare const onExternalAccountCreated: EventSpecification; declare const onExternalAccountDeleted: EventSpecification; declare const onExternalAccountUpdated: EventSpecification; declare const onPerson: EventSpecification; declare const onPersonCreated: EventSpecification; declare const onPersonDeleted: EventSpecification; declare const onPersonUpdated: EventSpecification; declare const onPaymentIntent: EventSpecification; declare const onPaymentIntentCreated: EventSpecification; declare const onPaymentIntentSucceeded: EventSpecification; declare const onPaymentIntentCanceled: EventSpecification; declare const onPaymentIntentProcessing: EventSpecification; declare const onPaymentIntentRequiresAction: EventSpecification; declare const onPaymentIntentAmountCapturableUpdated: EventSpecification; declare const onPaymentIntentPaymentFailed: EventSpecification; declare const onPaymentIntentPartiallyFunded: EventSpecification; declare const onPayout: EventSpecification; declare const onPayoutCancelled: EventSpecification; declare const onPayoutCreated: EventSpecification; declare const onPayoutFailed: EventSpecification; declare const onPayoutPaid: EventSpecification; declare const onPayoutReconciliationCompleted: EventSpecification; declare const onPayoutUpdated: EventSpecification; declare const onInvoice: EventSpecification; declare const onInvoiceCreated: EventSpecification; declare const onInvoiceFinalized: EventSpecification; declare const onInvoiceFinalizationFailed: EventSpecification; declare const onInvoiceDeleted: EventSpecification; declare const onInvoiceMarkedUncollectible: EventSpecification; declare const onInvoicePaid: EventSpecification; declare const onInvoicePaymentActionRequired: EventSpecification; declare const onInvoicePaymentFailed: EventSpecification; declare const onInvoicePaymentSucceeded: EventSpecification; declare const onInvoiceSent: EventSpecification; declare const onInvoiceUpcoming: EventSpecification; declare const onInvoiceUpdated: EventSpecification; declare const onInvoiceVoided: EventSpecification; declare const onInvoiceItemCreated: EventSpecification; declare const onInvoiceItemDeleted: EventSpecification; declare const events_onAccountUpdated: typeof onAccountUpdated; declare const events_onCharge: typeof onCharge; declare const events_onChargeCaptured: typeof onChargeCaptured; declare const events_onChargeExpired: typeof onChargeExpired; declare const events_onChargeFailed: typeof onChargeFailed; declare const events_onChargePending: typeof onChargePending; declare const events_onChargeRefunded: typeof onChargeRefunded; declare const events_onChargeSucceeded: typeof onChargeSucceeded; declare const events_onChargeUpdated: typeof onChargeUpdated; declare const events_onCheckoutSession: typeof onCheckoutSession; declare const events_onCheckoutSessionCompleted: typeof onCheckoutSessionCompleted; declare const events_onCheckoutSessionExpired: typeof onCheckoutSessionExpired; declare const events_onCustomer: typeof onCustomer; declare const events_onCustomerCreated: typeof onCustomerCreated; declare const events_onCustomerDeleted: typeof onCustomerDeleted; declare const events_onCustomerSubscription: typeof onCustomerSubscription; declare const events_onCustomerSubscriptionCreated: typeof onCustomerSubscriptionCreated; declare const events_onCustomerSubscriptionDeleted: typeof onCustomerSubscriptionDeleted; declare const events_onCustomerSubscriptionPaused: typeof onCustomerSubscriptionPaused; declare const events_onCustomerSubscriptionResumed: typeof onCustomerSubscriptionResumed; declare const events_onCustomerSubscriptionUpdated: typeof onCustomerSubscriptionUpdated; declare const events_onCustomerUpdated: typeof onCustomerUpdated; declare const events_onExternalAccount: typeof onExternalAccount; declare const events_onExternalAccountCreated: typeof onExternalAccountCreated; declare const events_onExternalAccountDeleted: typeof onExternalAccountDeleted; declare const events_onExternalAccountUpdated: typeof onExternalAccountUpdated; declare const events_onInvoice: typeof onInvoice; declare const events_onInvoiceCreated: typeof onInvoiceCreated; declare const events_onInvoiceDeleted: typeof onInvoiceDeleted; declare const events_onInvoiceFinalizationFailed: typeof onInvoiceFinalizationFailed; declare const events_onInvoiceFinalized: typeof onInvoiceFinalized; declare const events_onInvoiceItemCreated: typeof onInvoiceItemCreated; declare const events_onInvoiceItemDeleted: typeof onInvoiceItemDeleted; declare const events_onInvoiceMarkedUncollectible: typeof onInvoiceMarkedUncollectible; declare const events_onInvoicePaid: typeof onInvoicePaid; declare const events_onInvoicePaymentActionRequired: typeof onInvoicePaymentActionRequired; declare const events_onInvoicePaymentFailed: typeof onInvoicePaymentFailed; declare const events_onInvoicePaymentSucceeded: typeof onInvoicePaymentSucceeded; declare const events_onInvoiceSent: typeof onInvoiceSent; declare const events_onInvoiceUpcoming: typeof onInvoiceUpcoming; declare const events_onInvoiceUpdated: typeof onInvoiceUpdated; declare const events_onInvoiceVoided: typeof onInvoiceVoided; declare const events_onPaymentIntent: typeof onPaymentIntent; declare const events_onPaymentIntentAmountCapturableUpdated: typeof onPaymentIntentAmountCapturableUpdated; declare const events_onPaymentIntentCanceled: typeof onPaymentIntentCanceled; declare const events_onPaymentIntentCreated: typeof onPaymentIntentCreated; declare const events_onPaymentIntentPartiallyFunded: typeof onPaymentIntentPartiallyFunded; declare const events_onPaymentIntentPaymentFailed: typeof onPaymentIntentPaymentFailed; declare const events_onPaymentIntentProcessing: typeof onPaymentIntentProcessing; declare const events_onPaymentIntentRequiresAction: typeof onPaymentIntentRequiresAction; declare const events_onPaymentIntentSucceeded: typeof onPaymentIntentSucceeded; declare const events_onPayout: typeof onPayout; declare const events_onPayoutCancelled: typeof onPayoutCancelled; declare const events_onPayoutCreated: typeof onPayoutCreated; declare const events_onPayoutFailed: typeof onPayoutFailed; declare const events_onPayoutPaid: typeof onPayoutPaid; declare const events_onPayoutReconciliationCompleted: typeof onPayoutReconciliationCompleted; declare const events_onPayoutUpdated: typeof onPayoutUpdated; declare const events_onPerson: typeof onPerson; declare const events_onPersonCreated: typeof onPersonCreated; declare const events_onPersonDeleted: typeof onPersonDeleted; declare const events_onPersonUpdated: typeof onPersonUpdated; declare const events_onPrice: typeof onPrice; declare const events_onPriceCreated: typeof onPriceCreated; declare const events_onPriceDeleted: typeof onPriceDeleted; declare const events_onPriceUpdated: typeof onPriceUpdated; declare const events_onProduct: typeof onProduct; declare const events_onProductCreated: typeof onProductCreated; declare const events_onProductDeleted: typeof onProductDeleted; declare const events_onProductUpdated: typeof onProductUpdated; declare namespace events { export { events_onAccountUpdated as onAccountUpdated, events_onCharge as onCharge, events_onChargeCaptured as onChargeCaptured, events_onChargeExpired as onChargeExpired, events_onChargeFailed as onChargeFailed, events_onChargePending as onChargePending, events_onChargeRefunded as onChargeRefunded, events_onChargeSucceeded as onChargeSucceeded, events_onChargeUpdated as onChargeUpdated, events_onCheckoutSession as onCheckoutSession, events_onCheckoutSessionCompleted as onCheckoutSessionCompleted, events_onCheckoutSessionExpired as onCheckoutSessionExpired, events_onCustomer as onCustomer, events_onCustomerCreated as onCustomerCreated, events_onCustomerDeleted as onCustomerDeleted, events_onCustomerSubscription as onCustomerSubscription, events_onCustomerSubscriptionCreated as onCustomerSubscriptionCreated, events_onCustomerSubscriptionDeleted as onCustomerSubscriptionDeleted, events_onCustomerSubscriptionPaused as onCustomerSubscriptionPaused, events_onCustomerSubscriptionResumed as onCustomerSubscriptionResumed, events_onCustomerSubscriptionUpdated as onCustomerSubscriptionUpdated, events_onCustomerUpdated as onCustomerUpdated, events_onExternalAccount as onExternalAccount, events_onExternalAccountCreated as onExternalAccountCreated, events_onExternalAccountDeleted as onExternalAccountDeleted, events_onExternalAccountUpdated as onExternalAccountUpdated, events_onInvoice as onInvoice, events_onInvoiceCreated as onInvoiceCreated, events_onInvoiceDeleted as onInvoiceDeleted, events_onInvoiceFinalizationFailed as onInvoiceFinalizationFailed, events_onInvoiceFinalized as onInvoiceFinalized, events_onInvoiceItemCreated as onInvoiceItemCreated, events_onInvoiceItemDeleted as onInvoiceItemDeleted, events_onInvoiceMarkedUncollectible as onInvoiceMarkedUncollectible, events_onInvoicePaid as onInvoicePaid, events_onInvoicePaymentActionRequired as onInvoicePaymentActionRequired, events_onInvoicePaymentFailed as onInvoicePaymentFailed, events_onInvoicePaymentSucceeded as onInvoicePaymentSucceeded, events_onInvoiceSent as onInvoiceSent, events_onInvoiceUpcoming as onInvoiceUpcoming, events_onInvoiceUpdated as onInvoiceUpdated, events_onInvoiceVoided as onInvoiceVoided, events_onPaymentIntent as onPaymentIntent, events_onPaymentIntentAmountCapturableUpdated as onPaymentIntentAmountCapturableUpdated, events_onPaymentIntentCanceled as onPaymentIntentCanceled, events_onPaymentIntentCreated as onPaymentIntentCreated, events_onPaymentIntentPartiallyFunded as onPaymentIntentPartiallyFunded, events_onPaymentIntentPaymentFailed as onPaymentIntentPaymentFailed, events_onPaymentIntentProcessing as onPaymentIntentProcessing, events_onPaymentIntentRequiresAction as onPaymentIntentRequiresAction, events_onPaymentIntentSucceeded as onPaymentIntentSucceeded, events_onPayout as onPayout, events_onPayoutCancelled as onPayoutCancelled, events_onPayoutCreated as onPayoutCreated, events_onPayoutFailed as onPayoutFailed, events_onPayoutPaid as onPayoutPaid, events_onPayoutReconciliationCompleted as onPayoutReconciliationCompleted, events_onPayoutUpdated as onPayoutUpdated, events_onPerson as onPerson, events_onPersonCreated as onPersonCreated, events_onPersonDeleted as onPersonDeleted, events_onPersonUpdated as onPersonUpdated, events_onPrice as onPrice, events_onPriceCreated as onPriceCreated, events_onPriceDeleted as onPriceDeleted, events_onPriceUpdated as onPriceUpdated, events_onProduct as onProduct, events_onProductCreated as onProductCreated, events_onProductDeleted as onProductDeleted, events_onProductUpdated as onProductUpdated }; } declare const PriceEventNamesSchema: z.ZodArray, "many">; type PriceEventNames = z.infer; declare const ProductEventNamesSchema: z.ZodArray, "many">; type ProductEventNames = z.infer; declare const CheckoutSessionEventNamesSchema: z.ZodArray, "many">; type CheckoutSessionEventNames = z.infer; declare const CustomerSubscriptionEventNamesSchema: z.ZodArray, "many">; type CustomerSubscriptionEventNames = z.infer; declare const CustomerEventNamesSchema: z.ZodArray, "many">; type CustomerEventNames = z.infer; declare const ChargeEventNamesSchema: z.ZodArray, "many">; type ChargeEventNames = z.infer; declare const ExternalAccountEventNamesSchema: z.ZodArray, "many">; type ExternalAccountEventNames = z.infer; declare const PersonEventNamesSchema: z.ZodArray, "many">; type PersonEventNames = z.infer; declare const PaymentIntentEventNamesSchema: z.ZodArray, "many">; type PaymentIntentEventNames = z.infer; declare const PayoutEventNamesSchema: z.ZodArray, "many">; type PayoutEventNames = z.infer; declare const InvoiceEventNamesSchema: z.ZodArray, "many">; type InvoiceEventNames = z.infer; declare class Subscriptions { private runTask; constructor(runTask: StripeRunTask); /** * Retrieves the subscription with the given ID. */ retrieve(key: IntegrationTaskKey, params: RetrieveSubscriptionParams): Promise; } declare class WebhookEndpoints { private runTask; constructor(runTask: StripeRunTask); create(key: IntegrationTaskKey, params: CreateWebhookParams): Promise; update(key: IntegrationTaskKey, params: UpdateWebhookParams): Promise; list(key: IntegrationTaskKey, params: ListWebhooksParams): Promise; } type StripeRunTask = InstanceType["runTask"]; declare class Stripe implements TriggerIntegration { private options; /** * The native Stripe client. This is exposed for use outside of Trigger.dev jobs * * @example * ```ts * import { Stripe } from "@trigger.dev/stripe"; * * const stripe = new Stripe({ * id: "stripe", * apiKey: process.env.STRIPE_API_KEY!, * }); * * const customer = await stripe.native.customers.create({}); // etc. * ``` */ readonly native?: Stripe$1; constructor(options: StripeIntegrationOptions); get authSource(): "LOCAL"; cloneForRun(io: IO, connectionKey: string, auth?: ConnectionAuth): Stripe; get id(): string; get metadata(): { id: string; name: string; }; get source(): ExternalSource; runTask | void>(key: IntegrationTaskKey, callback: (client: Stripe$1, task: IOTask, io: IO) => Promise, options?: RunTaskOptions, errorCallback?: RunTaskErrorCallback): Promise; get charges(): Charges; createCharge: (key: IntegrationTaskKey, params: { amount?: number | undefined; application_fee?: number | undefined; application_fee_amount?: number | undefined; capture?: boolean | undefined; currency?: string | undefined; customer?: string | undefined; description?: string | undefined; destination?: Stripe$1.ChargeCreateParams.Destination | undefined; expand?: string[] | undefined; metadata?: Stripe$1.Emptyable | undefined; on_behalf_of?: string | undefined; radar_options?: Stripe$1.ChargeCreateParams.RadarOptions | undefined; receipt_email?: string | undefined; shipping?: Stripe$1.ChargeCreateParams.Shipping | undefined; source?: string | undefined; statement_descriptor?: string | undefined; statement_descriptor_suffix?: string | undefined; transfer_data?: Stripe$1.ChargeCreateParams.TransferData | undefined; transfer_group?: string | undefined; stripeAccount?: string | undefined; }) => Promise<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; lastResponse: { headers: { [key: string]: string; }; requestId: string; statusCode: number; apiVersion?: string | undefined; idempotencyKey?: string | undefined; stripeAccount?: string | undefined; }; }>; get customers(): Customers; createCustomer: (key: IntegrationTaskKey, params: { address?: Stripe$1.Emptyable | undefined; balance?: number | undefined; cash_balance?: Stripe$1.CustomerCreateParams.CashBalance | undefined; coupon?: string | undefined; description?: string | undefined; email?: string | undefined; expand?: string[] | undefined; invoice_prefix?: string | undefined; invoice_settings?: Stripe$1.CustomerCreateParams.InvoiceSettings | undefined; metadata?: Stripe$1.Emptyable | undefined; name?: string | undefined; next_invoice_sequence?: number | undefined; payment_method?: string | undefined; phone?: string | undefined; preferred_locales?: string[] | undefined; promotion_code?: string | undefined; shipping?: Stripe$1.Emptyable | undefined; source?: string | undefined; tax?: Stripe$1.CustomerCreateParams.Tax | undefined; tax_exempt?: Stripe$1.Emptyable | undefined; tax_id_data?: Stripe$1.CustomerCreateParams.TaxIdDatum[] | undefined; test_clock?: string | undefined; validate?: boolean | undefined; stripeAccount?: string | undefined; }) => Promise<{ id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; lastResponse: { headers: { [key: string]: string; }; requestId: string; statusCode: number; apiVersion?: string | undefined; idempotencyKey?: string | undefined; stripeAccount?: string | undefined; }; }>; updateCustomer: (key: IntegrationTaskKey, params: { address?: Stripe$1.Emptyable | undefined; balance?: number | undefined; cash_balance?: Stripe$1.CustomerUpdateParams.CashBalance | undefined; coupon?: string | undefined; default_source?: string | undefined; description?: string | undefined; email?: string | undefined; expand?: string[] | undefined; invoice_prefix?: string | undefined; invoice_settings?: Stripe$1.CustomerUpdateParams.InvoiceSettings | undefined; metadata?: Stripe$1.Emptyable | undefined; name?: string | undefined; next_invoice_sequence?: number | undefined; phone?: string | undefined; preferred_locales?: string[] | undefined; promotion_code?: string | undefined; shipping?: Stripe$1.Emptyable | undefined; source?: string | undefined; tax?: Stripe$1.CustomerUpdateParams.Tax | undefined; tax_exempt?: Stripe$1.Emptyable | undefined; validate?: boolean | undefined; id: string; stripeAccount?: string | undefined; }) => Promise<{ id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; lastResponse: { headers: { [key: string]: string; }; requestId: string; statusCode: number; apiVersion?: string | undefined; idempotencyKey?: string | undefined; stripeAccount?: string | undefined; }; }>; get subscriptions(): Subscriptions; retrieveSubscription: (key: IntegrationTaskKey, params: { expand?: string[] | undefined; id: string; stripeAccount?: string | undefined; }) => Promise<{ id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; lastResponse: { headers: { [key: string]: string; }; requestId: string; statusCode: number; apiVersion?: string | undefined; idempotencyKey?: string | undefined; stripeAccount?: string | undefined; }; }>; get checkout(): Checkout; createCheckoutSession: (key: IntegrationTaskKey, params: { success_url: string; after_expiration?: Stripe$1.Checkout.SessionCreateParams.AfterExpiration | undefined; allow_promotion_codes?: boolean | undefined; automatic_tax?: Stripe$1.Checkout.SessionCreateParams.AutomaticTax | undefined; billing_address_collection?: Stripe$1.Checkout.SessionCreateParams.BillingAddressCollection | undefined; cancel_url?: string | undefined; client_reference_id?: string | undefined; consent_collection?: Stripe$1.Checkout.SessionCreateParams.ConsentCollection | undefined; currency?: string | undefined; custom_fields?: Stripe$1.Checkout.SessionCreateParams.CustomField[] | undefined; custom_text?: Stripe$1.Checkout.SessionCreateParams.CustomText | undefined; customer?: string | undefined; customer_creation?: Stripe$1.Checkout.SessionCreateParams.CustomerCreation | undefined; customer_email?: string | undefined; customer_update?: Stripe$1.Checkout.SessionCreateParams.CustomerUpdate | undefined; discounts?: Stripe$1.Checkout.SessionCreateParams.Discount[] | undefined; expand?: string[] | undefined; expires_at?: number | undefined; invoice_creation?: Stripe$1.Checkout.SessionCreateParams.InvoiceCreation | undefined; line_items?: Stripe$1.Checkout.SessionCreateParams.LineItem[] | undefined; locale?: Stripe$1.Checkout.SessionCreateParams.Locale | undefined; metadata?: Stripe$1.MetadataParam | undefined; mode?: Stripe$1.Checkout.SessionCreateParams.Mode | undefined; payment_intent_data?: Stripe$1.Checkout.SessionCreateParams.PaymentIntentData | undefined; payment_method_collection?: Stripe$1.Checkout.SessionCreateParams.PaymentMethodCollection | undefined; payment_method_options?: Stripe$1.Checkout.SessionCreateParams.PaymentMethodOptions | undefined; payment_method_types?: Stripe$1.Checkout.SessionCreateParams.PaymentMethodType[] | undefined; phone_number_collection?: Stripe$1.Checkout.SessionCreateParams.PhoneNumberCollection | undefined; setup_intent_data?: Stripe$1.Checkout.SessionCreateParams.SetupIntentData | undefined; shipping_address_collection?: Stripe$1.Checkout.SessionCreateParams.ShippingAddressCollection | undefined; shipping_options?: Stripe$1.Checkout.SessionCreateParams.ShippingOption[] | undefined; shipping_rates?: string[] | undefined; submit_type?: Stripe$1.Checkout.SessionCreateParams.SubmitType | undefined; subscription_data?: Stripe$1.Checkout.SessionCreateParams.SubscriptionData | undefined; tax_id_collection?: Stripe$1.Checkout.SessionCreateParams.TaxIdCollection | undefined; stripeAccount?: string | undefined; }) => Promise<{ id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; lastResponse: { headers: { [key: string]: string; }; requestId: string; statusCode: number; apiVersion?: string | undefined; idempotencyKey?: string | undefined; stripeAccount?: string | undefined; }; }>; get webhookEndpoints(): WebhookEndpoints; createWebhook: (key: IntegrationTaskKey, params: { enabled_events: Stripe$1.WebhookEndpointCreateParams.EnabledEvent[]; url: string; api_version?: Stripe$1.WebhookEndpointCreateParams.ApiVersion | undefined; connect?: boolean | undefined; description?: string | undefined; expand?: string[] | undefined; metadata?: Stripe$1.Emptyable | undefined; }) => Promise<{ id: string; object: "webhook_endpoint"; api_version: string | null; application: string | null; created: number; deleted?: void | undefined; description: string | null; enabled_events: string[]; livemode: boolean; metadata: Stripe$1.Metadata; secret?: string | undefined; status: string; url: string; }>; updateWebhook: (key: IntegrationTaskKey, params: { description?: string | undefined; disabled?: boolean | undefined; enabled_events?: Stripe$1.WebhookEndpointUpdateParams.EnabledEvent[] | undefined; expand?: string[] | undefined; metadata?: Stripe$1.Emptyable | undefined; url?: string | undefined; id: string; }) => Promise<{ id: string; object: "webhook_endpoint"; api_version: string | null; application: string | null; created: number; deleted?: void | undefined; description: string | null; enabled_events: string[]; livemode: boolean; metadata: Stripe$1.Metadata; secret?: string | undefined; status: string; url: string; }>; listWebhooks: (key: IntegrationTaskKey, params: { expand?: string[] | undefined; ending_before?: string | undefined; limit?: number | undefined; starting_after?: string | undefined; }) => Promise<{ object: "list"; data: Stripe$1.WebhookEndpoint[]; has_more: boolean; url: string; lastResponse: { headers: { [key: string]: string; }; requestId: string; statusCode: number; apiVersion?: string | undefined; idempotencyKey?: string | undefined; stripeAccount?: string | undefined; }; }>; /** * Occurs whenever a price is created, updated, or deleted. Accepts an optional array of events to filter on. By default it will listen to all price events. * * @example * ```ts * stripe.onPrice({ events: ["price.created", "price.updated"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-price", * name: "Stripe Price", * version: "0.1.0", * trigger: stripe.onPrice({ events: ["price.created", "price.updated"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "price.created" or "price.updated" * }, * }); * ``` */ onPrice(params?: TriggerParams & { events?: PriceEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }) | undefined; runProperties?: ((payload: { id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever a price is created. */ onPriceCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }, { id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }>>; /** * Occurs whenever a price is updated. */ onPriceUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }, { id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }>>; /** * Occurs whenever a price is deleted. */ onPriceDeleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }, { id: string; object: "price"; active: boolean; billing_scheme: Stripe$1.Price.BillingScheme; created: number; currency: string; currency_options?: { [key: string]: Stripe$1.Price.CurrencyOptions; } | undefined; custom_unit_amount: Stripe$1.Price.CustomUnitAmount | null; deleted?: void | undefined; livemode: boolean; lookup_key: string | null; metadata: Stripe$1.Metadata; nickname: string | null; product: string | Stripe$1.Product | Stripe$1.DeletedProduct; recurring: Stripe$1.Price.Recurring | null; tax_behavior: Stripe$1.Price.TaxBehavior | null; tiers?: Stripe$1.Price.Tier[] | undefined; tiers_mode: Stripe$1.Price.TiersMode | null; transform_quantity: Stripe$1.Price.TransformQuantity | null; type: Stripe$1.Price.Type; unit_amount: number | null; unit_amount_decimal: string | null; }>>; /** * Occurs whenever a product is created, updated, or deleted. Accepts an optional array of events to filter on. By default it will listen to all product events. * * @example * ```ts * stripe.onProduct({ events: ["product.created", "product.updated"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onProduct({ events: ["product.created", "product.updated"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "product.created" or "product.updated" * }, * }); * ``` */ onProduct(params?: TriggerParams & { events?: ProductEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }) | undefined; runProperties?: ((payload: { id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever a product is created. */ onProductCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }, { id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }>>; /** * Occurs whenever a product is updated. */ onProductUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }, { id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }>>; /** * Occurs whenever a product is deleted. */ onProductDeleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }, { id: string; object: "product"; active: boolean; attributes: string[] | null; caption?: string | null | undefined; created: number; deactivate_on?: string[] | undefined; default_price?: string | Stripe$1.Price | null | undefined; deleted?: void | undefined; description: string | null; images: string[]; livemode: boolean; metadata: Stripe$1.Metadata; name: string; package_dimensions: Stripe$1.Product.PackageDimensions | null; shippable: boolean | null; statement_descriptor?: string | null | undefined; tax_code: string | Stripe$1.TaxCode | null; type: Stripe$1.Product.Type; unit_label?: string | null | undefined; updated: number; url: string | null; }>>; /** * Occurs whenever a checkout.session is completed, expired, async_payment_succeeded, or async_payment_failed. Accepts an optional array of events to filter on. By default it will listen to all checkout.session events. * * @example * ```ts * stripe.onCheckoutSession({ events: ["session.checkout.completed", "session.checkout.expired"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onCheckoutSession({ events: ["checkout.session.completed", "checkout.session.expired"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "checkout.session.completed" or "checkout.session.expired" * }, * }); * ``` */ onCheckoutSession(params?: TriggerParams & { events?: CheckoutSessionEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; }) | undefined; runProperties?: ((payload: { id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs when a Checkout Session has been successfully completed. */ onCheckoutSessionCompleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; }, { id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; }>>; /** * Occurs when a Checkout Session is expired. */ onCheckoutSessionExpired(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; }, { id: string; object: "checkout.session"; after_expiration: Stripe$1.Checkout.Session.AfterExpiration | null; allow_promotion_codes: boolean | null; amount_subtotal: number | null; amount_total: number | null; automatic_tax: Stripe$1.Checkout.Session.AutomaticTax; billing_address_collection: Stripe$1.Checkout.Session.BillingAddressCollection | null; cancel_url: string | null; client_reference_id: string | null; consent: Stripe$1.Checkout.Session.Consent | null; consent_collection: Stripe$1.Checkout.Session.ConsentCollection | null; created: number; currency: string | null; currency_conversion: Stripe$1.Checkout.Session.CurrencyConversion | null; custom_fields: Stripe$1.Checkout.Session.CustomField[]; custom_text: Stripe$1.Checkout.Session.CustomText; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_creation: Stripe$1.Checkout.Session.CustomerCreation | null; customer_details: Stripe$1.Checkout.Session.CustomerDetails | null; customer_email: string | null; expires_at: number; invoice: string | Stripe$1.Invoice | null; invoice_creation: Stripe$1.Checkout.Session.InvoiceCreation | null; line_items?: Stripe$1.ApiList | undefined; livemode: boolean; locale: Stripe$1.Checkout.Session.Locale | null; metadata: Stripe$1.Metadata | null; mode: Stripe$1.Checkout.Session.Mode; payment_intent: string | Stripe$1.PaymentIntent | null; payment_link: string | Stripe$1.PaymentLink | null; payment_method_collection: Stripe$1.Checkout.Session.PaymentMethodCollection | null; payment_method_options: Stripe$1.Checkout.Session.PaymentMethodOptions | null; payment_method_types: string[]; payment_status: Stripe$1.Checkout.Session.PaymentStatus; phone_number_collection?: Stripe$1.Checkout.Session.PhoneNumberCollection | undefined; recovered_from: string | null; setup_intent: string | Stripe$1.SetupIntent | null; shipping_address_collection: Stripe$1.Checkout.Session.ShippingAddressCollection | null; shipping_cost: Stripe$1.Checkout.Session.ShippingCost | null; shipping_details: Stripe$1.Checkout.Session.ShippingDetails | null; shipping_options: Stripe$1.Checkout.Session.ShippingOption[]; status: Stripe$1.Checkout.Session.Status | null; submit_type: Stripe$1.Checkout.Session.SubmitType | null; subscription: string | Stripe$1.Subscription | null; success_url: string | null; tax_id_collection?: Stripe$1.Checkout.Session.TaxIdCollection | undefined; total_details: Stripe$1.Checkout.Session.TotalDetails | null; url: string | null; }>>; /** * Occurs on any customer.subscription.* event. Accepts an optional array of events to filter on. By default it will listen to all customer.subscription.* events. * * @example * ```ts * stripe.onCustomerSubscription({ events: ["customer.subscription.created", "customer.subscription.resumed"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onCustomerSubscription({ events: ["customer.subscription.created", "customer.subscription.resumed"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "customer.subscription.created" or "customer.subscription.resumed" * }, * }); * ``` */ onCustomerSubscription(params?: TriggerParams & { events?: CustomerSubscriptionEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }) | undefined; runProperties?: ((payload: { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever a customer is signed up for a new plan. */ onCustomerSubscriptionCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }, { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }>>; /** * Occurs whenever a customer's subscription is paused. Only applies when subscriptions enter `status=paused`, not when [payment collection](https://stripe.com/docs/billing/subscriptions/pause) is paused. */ onCustomerSubscriptionPaused(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }, { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }>>; /** * Occurs whenever a customer's subscription is no longer paused. Only applies when a `status=paused` subscription is [resumed](https://stripe.com/docs/api/subscriptions/resume), not when [payment collection](https://stripe.com/docs/billing/subscriptions/pause) is resumed. */ onCustomerSubscriptionResumed(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }, { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }>>; /** * Occurs whenever a subscription changes (e.g., switching from one plan to another, or changing the status from trial to active). */ onCustomerSubscriptionUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }, { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }>>; /** * Occurs whenever a customer's subscription ends. */ onCustomerSubscriptionDeleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }, { id: string; object: "subscription"; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_percent: number | null; automatic_tax: Stripe$1.Subscription.AutomaticTax; billing_cycle_anchor: number; billing_thresholds: Stripe$1.Subscription.BillingThresholds | null; cancel_at: number | null; cancel_at_period_end: boolean; canceled_at: number | null; cancellation_details: Stripe$1.Subscription.CancellationDetails | null; collection_method: Stripe$1.Subscription.CollectionMethod; created: number; currency: string; current_period_end: number; current_period_start: number; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; days_until_due: number | null; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates?: Stripe$1.TaxRate[] | null | undefined; description: string | null; discount: Stripe$1.Discount | null; ended_at: number | null; items: Stripe$1.ApiList; latest_invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata; next_pending_invoice_item_invoice: number | null; on_behalf_of: string | Stripe$1.Account | null; pause_collection: Stripe$1.Subscription.PauseCollection | null; payment_settings: Stripe$1.Subscription.PaymentSettings | null; pending_invoice_item_interval: Stripe$1.Subscription.PendingInvoiceItemInterval | null; pending_setup_intent: string | Stripe$1.SetupIntent | null; pending_update: Stripe$1.Subscription.PendingUpdate | null; schedule: string | Stripe$1.SubscriptionSchedule | null; start_date: number; status: Stripe$1.Subscription.Status; test_clock: string | Stripe$1.TestHelpers.TestClock | null; transfer_data: Stripe$1.Subscription.TransferData | null; trial_end: number | null; trial_settings: Stripe$1.Subscription.TrialSettings | null; trial_start: number | null; }>>; /** * Occurs whenever an account status or property has changed. */ onAccountUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "account"; business_profile?: Stripe$1.Account.BusinessProfile | null | undefined; business_type?: Stripe$1.Account.BusinessType | null | undefined; capabilities?: Stripe$1.Account.Capabilities | undefined; charges_enabled: boolean; company?: Stripe$1.Account.Company | undefined; controller?: Stripe$1.Account.Controller | undefined; country?: string | undefined; created?: number | undefined; default_currency?: string | undefined; deleted?: void | undefined; details_submitted: boolean; email: string | null; external_accounts?: Stripe$1.ApiList | undefined; future_requirements?: Stripe$1.Account.FutureRequirements | undefined; individual?: Stripe$1.Person | undefined; metadata?: Stripe$1.Metadata | undefined; payouts_enabled: boolean; requirements?: Stripe$1.Account.Requirements | undefined; settings?: Stripe$1.Account.Settings | null | undefined; tos_acceptance?: Stripe$1.Account.TosAcceptance | undefined; type: Stripe$1.Account.Type; }, { id: string; object: "account"; business_profile?: Stripe$1.Account.BusinessProfile | null | undefined; business_type?: Stripe$1.Account.BusinessType | null | undefined; capabilities?: Stripe$1.Account.Capabilities | undefined; charges_enabled: boolean; company?: Stripe$1.Account.Company | undefined; controller?: Stripe$1.Account.Controller | undefined; country?: string | undefined; created?: number | undefined; default_currency?: string | undefined; deleted?: void | undefined; details_submitted: boolean; email: string | null; external_accounts?: Stripe$1.ApiList | undefined; future_requirements?: Stripe$1.Account.FutureRequirements | undefined; individual?: Stripe$1.Person | undefined; metadata?: Stripe$1.Metadata | undefined; payouts_enabled: boolean; requirements?: Stripe$1.Account.Requirements | undefined; settings?: Stripe$1.Account.Settings | null | undefined; tos_acceptance?: Stripe$1.Account.TosAcceptance | undefined; type: Stripe$1.Account.Type; }>>; /** * Occurs on customer.created, customer.deleted, and customer.updated * * @example * ```ts * stripe.onCustomer() * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onCustomer(), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "customer.created" or "customer.deleted" * }, * }); * ``` */ onCustomer(params?: TriggerParams & { events?: CustomerEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }) | undefined; runProperties?: ((payload: { id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever a new customer is created. */ onCustomerCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }, { id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }>>; /** * Occurs whenever a new customer is deleted. */ onCustomerDeleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }, { id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }>>; /** * Occurs whenever a new customer is updated. */ onCustomerUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }, { id: string; object: "customer"; address?: Stripe$1.Address | null | undefined; balance: number; cash_balance?: Stripe$1.CashBalance | null | undefined; created: number; currency?: string | null | undefined; default_source: string | Stripe$1.CustomerSource | null; deleted?: void | undefined; delinquent?: boolean | null | undefined; description: string | null; discount?: Stripe$1.Discount | null | undefined; email: string | null; invoice_credit_balance?: { [key: string]: number; } | undefined; invoice_prefix?: string | null | undefined; invoice_settings: Stripe$1.Customer.InvoiceSettings; livemode: boolean; metadata: Stripe$1.Metadata; name?: string | null | undefined; next_invoice_sequence?: number | undefined; phone?: string | null | undefined; preferred_locales?: string[] | null | undefined; shipping: Stripe$1.Customer.Shipping | null; sources?: Stripe$1.ApiList | undefined; subscriptions?: Stripe$1.ApiList | undefined; tax?: Stripe$1.Customer.Tax | undefined; tax_exempt?: Stripe$1.Customer.TaxExempt | null | undefined; tax_ids?: Stripe$1.ApiList | undefined; test_clock?: string | Stripe$1.TestHelpers.TestClock | null | undefined; }>>; /** * Occurs on any charge.* event. Accepts an optional array of events to filter on. By default it will listen to all charge.* events. * * @example * ```ts * stripe.onCharge({ events: ["charge.refunded", "charge.succeeded"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onCharge({ events: ["charge.refunded", "charge.succeeded"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "charge.refunded" or "charge.succeeded" * }, * }); * ``` */ onCharge(params?: TriggerParams & { events?: ChargeEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }) | undefined; runProperties?: ((payload: { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever a previously uncaptured charge is captured */ onChargeCaptured(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }, { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }>>; /** * Occurs whenever an uncaptured charge expires. */ onChargeExpired(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }, { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }>>; /** * Occurs whenever a failed charge attempt occurs */ onChargeFailed(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }, { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }>>; /** * Occurs whenever a pending charge is created */ onChargePending(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }, { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }>>; /** * Occurs whenever a charge is refunded, including partial refunds */ onChargeRefunded(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }, { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }>>; /** * Occurs whenever a charge is successful */ onChargeSucceeded(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }, { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }>>; /** * Occurs whenever a charge description or metadata is updated, or upon an asynchronous capture */ onChargeUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }, { id: string; object: "charge"; alternate_statement_descriptors?: Stripe$1.Charge.AlternateStatementDescriptors | undefined; amount: number; amount_captured: number; amount_refunded: number; application: string | Stripe$1.Application | null; application_fee: string | Stripe$1.ApplicationFee | null; application_fee_amount: number | null; authorization_code?: string | undefined; balance_transaction: string | Stripe$1.BalanceTransaction | null; billing_details: Stripe$1.Charge.BillingDetails; calculated_statement_descriptor: string | null; captured: boolean; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; destination: string | Stripe$1.Account | null; dispute: string | Stripe$1.Dispute | null; disputed: boolean; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; fraud_details: Stripe$1.Charge.FraudDetails | null; invoice: string | Stripe$1.Invoice | null; level3?: Stripe$1.Charge.Level3 | undefined; livemode: boolean; metadata: Stripe$1.Metadata; on_behalf_of: string | Stripe$1.Account | null; outcome: Stripe$1.Charge.Outcome | null; paid: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_method: string | null; payment_method_details: Stripe$1.Charge.PaymentMethodDetails | null; radar_options?: Stripe$1.Charge.RadarOptions | undefined; receipt_email: string | null; receipt_number: string | null; receipt_url: string | null; refunded: boolean; refunds: Stripe$1.ApiList | null; review: string | Stripe$1.Review | null; shipping: Stripe$1.Charge.Shipping | null; source: Stripe$1.CustomerSource | null; source_transfer: string | Stripe$1.Transfer | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.Charge.Status; transfer?: string | Stripe$1.Transfer | undefined; transfer_data: Stripe$1.Charge.TransferData | null; transfer_group: string | null; }>>; /** * Occurs on any account.external_account.* event. Accepts an optional array of events to filter on. By default it will listen to all charge.* events. * * @example * ```ts * stripe.onExternalAccount({ events: ["account.external_account.created", "account.external_account.deleted"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onExternalAccount({ events: ["account.external_account.created", "account.external_account.deleted"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "account.external_account.created" or "account.external_account.deleted" * }, * }); * ``` */ onExternalAccount(params?: TriggerParams & { events?: ExternalAccountEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => OnExternalAccountEvent; parseInvokePayload?: ((payload: unknown) => OnExternalAccountEvent) | undefined; runProperties?: ((payload: OnExternalAccountEvent) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever an external account is created. * */ onExternalAccountCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification>; /** * Occurs whenever an external account is deleted. * */ onExternalAccountDeleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification>; /** * Occurs whenever an external account is updated. * */ onExternalAccountUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification>; /** * Occurs on any person.* event. Accepts an optional array of events to filter on. By default it will listen to all person.* events. * * @example * ```ts * stripe.onPerson({ events: ["person.created", "person.deleted"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onPerson({ events: ["person.created", "person.deleted"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "person.created" or "person.deleted" * }, * }); * ``` */ onPerson(params?: TriggerParams & { events?: PersonEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }) | undefined; runProperties?: ((payload: { id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever a person associated with an account is created. * */ onPersonCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }, { id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }>>; /** * Occurs whenever a person associated with an account is deleted. * */ onPersonDeleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }, { id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }>>; /** * Occurs whenever a person associated with an account is updated. * */ onPersonUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }, { id: string; object: "person"; account: string; address?: Stripe$1.Address | undefined; address_kana?: Stripe$1.Person.AddressKana | null | undefined; address_kanji?: Stripe$1.Person.AddressKanji | null | undefined; created: number; deleted?: void | undefined; dob?: Stripe$1.Person.Dob | undefined; email?: string | null | undefined; first_name?: string | null | undefined; first_name_kana?: string | null | undefined; first_name_kanji?: string | null | undefined; full_name_aliases?: string[] | undefined; future_requirements?: Stripe$1.Person.FutureRequirements | null | undefined; gender?: string | null | undefined; id_number_provided?: boolean | undefined; id_number_secondary_provided?: boolean | undefined; last_name?: string | null | undefined; last_name_kana?: string | null | undefined; last_name_kanji?: string | null | undefined; maiden_name?: string | null | undefined; metadata?: Stripe$1.Metadata | undefined; nationality?: string | null | undefined; phone?: string | null | undefined; political_exposure?: Stripe$1.Person.PoliticalExposure | undefined; registered_address?: Stripe$1.Address | undefined; relationship?: Stripe$1.Person.Relationship | undefined; requirements?: Stripe$1.Person.Requirements | null | undefined; ssn_last_4_provided?: boolean | undefined; verification?: Stripe$1.Person.Verification | undefined; }>>; /** * Occurs on any payment_intent.* event. Accepts an optional array of events to filter on. By default it will listen to all payment_intent.* events. * * @example * ```ts * stripe.onPaymentIntent({ events: ["payment_intent.created", "payment_intent.succeeded"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onPaymentIntent({ events: ["payment_intent.created", "payment_intent.succeeded"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "payment_intent.created" or "payment_intent.succeeded" * }, * }); * ``` */ onPaymentIntent(params?: TriggerParams & { events?: PaymentIntentEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }) | undefined; runProperties?: ((payload: { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs when a new PaymentIntent is created.. * */ onPaymentIntentCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs when a PaymentIntent has successfully completed payment. * */ onPaymentIntentSucceeded(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs when a PaymentIntent is canceled. * */ onPaymentIntentCancelled(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs when a PaymentIntent has started processing. * */ onPaymentIntentProcessing(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs when a PaymentIntent transitions to requires_action state * */ onPaymentIntentRequiresAction(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs when a PaymentIntent has funds to be captured. Check the amount_capturable property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an amount_to_capture value up to the specified amount. [Learn more about capturing PaymentIntents](https://stripe.com/docs/api/payment_intents/capture) * */ onPaymentIntentAmountCapturableUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs when a PaymentIntent has failed the attempt to create a payment method or a payment. * */ onPaymentIntentPaymentFailed(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs when funds are applied to a customer_balance PaymentIntent and the ‘amount_remaining’ changes. * */ onPaymentIntentPartiallyFunded(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }, { id: string; object: "payment_intent"; amount: number; amount_capturable: number; amount_details?: Stripe$1.PaymentIntent.AmountDetails | undefined; amount_received: number; application: string | Stripe$1.Application | null; application_fee_amount: number | null; automatic_payment_methods: Stripe$1.PaymentIntent.AutomaticPaymentMethods | null; canceled_at: number | null; cancellation_reason: Stripe$1.PaymentIntent.CancellationReason | null; capture_method: Stripe$1.PaymentIntent.CaptureMethod; client_secret: string | null; confirmation_method: Stripe$1.PaymentIntent.ConfirmationMethod; created: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; description: string | null; invoice: string | Stripe$1.Invoice | null; last_payment_error: Stripe$1.PaymentIntent.LastPaymentError | null; latest_charge?: string | Stripe$1.Charge | null | undefined; livemode: boolean; metadata: Stripe$1.Metadata; next_action: Stripe$1.PaymentIntent.NextAction | null; on_behalf_of: string | Stripe$1.Account | null; payment_method: string | Stripe$1.PaymentMethod | null; payment_method_options: Stripe$1.PaymentIntent.PaymentMethodOptions | null; payment_method_types: string[]; processing: Stripe$1.PaymentIntent.Processing | null; receipt_email: string | null; review: string | Stripe$1.Review | null; setup_future_usage: Stripe$1.PaymentIntent.SetupFutureUsage | null; shipping: Stripe$1.PaymentIntent.Shipping | null; source: string | Stripe$1.CustomerSource | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; statement_descriptor: string | null; statement_descriptor_suffix: string | null; status: Stripe$1.PaymentIntent.Status; transfer_data: Stripe$1.PaymentIntent.TransferData | null; transfer_group: string | null; }>>; /** * Occurs on any payout.* event. Accepts an optional array of events to filter on. By default it will listen to all payout.* events. * * @example * ```ts * stripe.onPayout({ events: ["payout.created", "payout.paid"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onPayout({ events: ["payout.created", "payout.paid"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "payout.created" or "payout.paid" * }, * }); * ``` */ onPayout(params?: TriggerParams & { events?: PayoutEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }) | undefined; runProperties?: ((payload: { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever a payout is created. * */ onPayoutCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }, { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }>>; /** * Occurs whenever a payout is updated. * */ onPayoutUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }, { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }>>; /** * Occurs whenever a payout is canceled. * */ onPayoutCanceled(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }, { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }>>; /** * Occurs whenever a payout attempt fails. * */ onPayoutFailed(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }, { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }>>; /** * Occurs whenever a payout is expected to be available in the destination account. If the payout fails, a `payout.failed` notification is also sent, at a later time. * */ onPayoutPaid(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }, { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }>>; /** * Occurs whenever balance transactions paid out in an automatic payout can be queried. * */ onPayoutReconciliationCompleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }, { id: string; object: "payout"; amount: number; arrival_date: number; automatic: boolean; balance_transaction: string | Stripe$1.BalanceTransaction | null; created: number; currency: string; description: string | null; destination: string | Stripe$1.Card | Stripe$1.BankAccount | Stripe$1.DeletedBankAccount | Stripe$1.DeletedCard | null; failure_balance_transaction: string | Stripe$1.BalanceTransaction | null; failure_code: string | null; failure_message: string | null; livemode: boolean; metadata: Stripe$1.Metadata | null; method: string; original_payout: string | Stripe$1.Payout | null; reconciliation_status: Stripe$1.Payout.ReconciliationStatus; reversed_by: string | Stripe$1.Payout | null; source_type: string; statement_descriptor: string | null; status: string; type: Stripe$1.Payout.Type; }>>; /** * Occurs on any invoice.* event. Accepts an optional array of events to filter on. By default it will listen to all invoice.* events. * * @example * ```ts * stripe.onInvoice({ events: ["invoice.created", "invoice.paid"] }) * ``` * * You can detect the event name in your job by using the `ctx.event.name` property: * * ```ts * client.defineJob({ * id: "stripe-example", * name: "Stripe Example", * version: "0.1.0", * trigger: stripe.onInvoice({ events: ["invoice.created", "invoice.paid"] }), * run: async (payload, io, ctx) => { * console.log(ctx.event.name); // "invoice.created" or "invoice.paid" * }, * }); * ``` */ onInvoice(params?: TriggerParams & { events?: InvoiceEventNames; }): CreateTriggersResult<{ name: string | string[]; title: string; source: string; icon: string; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | undefined; schema?: any; examples?: { name: string; id: string; icon?: string | undefined; payload?: any; }[] | undefined; filter?: EventFilter | undefined; parsePayload: (payload: unknown) => { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }; parseInvokePayload?: ((payload: unknown) => { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }) | undefined; runProperties?: ((payload: { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }) => { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[]) | undefined; }>; /** * Occurs whenever an invoice is created. */ onInvoiceCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; /** * Occurs whenever an invoice is finalized. */ onInvoiceFinalized(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; /** * The invoice couldn’t be finalized. */ onInvoiceFinalizationFailed(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; /** * Occurs whenever an invoice is marked uncollectible. */ onInvoiceMarkedUncollectible(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoicePaid(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoicePaymentActionRequired(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoicePaymentFailed(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoicePaymentSucceeded(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoiceSent(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoiceUpcoming(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoiceUpdated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoiceVoided(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }, { id: string; object: "invoice"; account_country: string | null; account_name: string | null; account_tax_ids: (string | Stripe$1.TaxId | Stripe$1.DeletedTaxId)[] | null; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application: string | Stripe$1.Application | Stripe$1.DeletedApplication | null; application_fee_amount: number | null; attempt_count: number; attempted: boolean; auto_advance?: boolean | undefined; automatic_tax: Stripe$1.Invoice.AutomaticTax; billing_reason: Stripe$1.Invoice.BillingReason | null; charge: string | Stripe$1.Charge | null; collection_method: Stripe$1.Invoice.CollectionMethod; created: number; currency: string; custom_fields: Stripe$1.Invoice.CustomField[] | null; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer | null; customer_address: Stripe$1.Address | null; customer_email: string | null; customer_name: string | null; customer_phone: string | null; customer_shipping: Stripe$1.Invoice.CustomerShipping | null; customer_tax_exempt: Stripe$1.Invoice.CustomerTaxExempt | null; customer_tax_ids?: Stripe$1.Invoice.CustomerTaxId[] | null | undefined; default_payment_method: string | Stripe$1.PaymentMethod | null; default_source: string | Stripe$1.CustomerSource | null; default_tax_rates: Stripe$1.TaxRate[]; deleted?: void | undefined; description: string | null; discount: Stripe$1.Discount | null; discounts: (string | Stripe$1.Discount | Stripe$1.DeletedDiscount)[] | null; due_date: number | null; effective_at: number | null; ending_balance: number | null; footer: string | null; from_invoice: Stripe$1.Invoice.FromInvoice | null; hosted_invoice_url?: string | null | undefined; invoice_pdf?: string | null | undefined; last_finalization_error: Stripe$1.Invoice.LastFinalizationError | null; latest_revision: string | Stripe$1.Invoice | null; lines: Stripe$1.ApiList; livemode: boolean; metadata: Stripe$1.Metadata | null; next_payment_attempt: number | null; number: string | null; on_behalf_of: string | Stripe$1.Account | null; paid: boolean; paid_out_of_band: boolean; payment_intent: string | Stripe$1.PaymentIntent | null; payment_settings: Stripe$1.Invoice.PaymentSettings; period_end: number; period_start: number; post_payment_credit_notes_amount: number; pre_payment_credit_notes_amount: number; quote: string | Stripe$1.Quote | null; receipt_number: string | null; rendering_options: Stripe$1.Invoice.RenderingOptions | null; shipping_cost: Stripe$1.Invoice.ShippingCost | null; shipping_details: Stripe$1.Invoice.ShippingDetails | null; starting_balance: number; statement_descriptor: string | null; status: Stripe$1.Invoice.Status | null; status_transitions: Stripe$1.Invoice.StatusTransitions; subscription: string | Stripe$1.Subscription | null; subscription_proration_date?: number | undefined; subtotal: number; subtotal_excluding_tax: number | null; tax: number | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; threshold_reason?: Stripe$1.Invoice.ThresholdReason | undefined; total: number; total_discount_amounts: Stripe$1.Invoice.TotalDiscountAmount[] | null; total_excluding_tax: number | null; total_tax_amounts: Stripe$1.Invoice.TotalTaxAmount[]; transfer_data: Stripe$1.Invoice.TransferData | null; webhooks_delivered_at: number | null; }>>; onInvoiceItemCreated(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoiceitem"; amount: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; date: number; deleted?: void | undefined; description: string | null; discountable: boolean; discounts: (string | Stripe$1.Discount)[] | null; invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata | null; period: Stripe$1.InvoiceItem.Period; plan: Stripe$1.Plan | null; price: Stripe$1.Price | null; proration: boolean; quantity: number; subscription: string | Stripe$1.Subscription | null; subscription_item?: string | undefined; tax_rates: Stripe$1.TaxRate[] | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; unit_amount: number | null; unit_amount_decimal: string | null; }, { id: string; object: "invoiceitem"; amount: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; date: number; deleted?: void | undefined; description: string | null; discountable: boolean; discounts: (string | Stripe$1.Discount)[] | null; invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata | null; period: Stripe$1.InvoiceItem.Period; plan: Stripe$1.Plan | null; price: Stripe$1.Price | null; proration: boolean; quantity: number; subscription: string | Stripe$1.Subscription | null; subscription_item?: string | undefined; tax_rates: Stripe$1.TaxRate[] | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; unit_amount: number | null; unit_amount_decimal: string | null; }>>; onInvoiceItemDeleted(params?: TriggerParams): CreateTriggersResult<_trigger_dev_sdk.EventSpecification<{ id: string; object: "invoiceitem"; amount: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; date: number; deleted?: void | undefined; description: string | null; discountable: boolean; discounts: (string | Stripe$1.Discount)[] | null; invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata | null; period: Stripe$1.InvoiceItem.Period; plan: Stripe$1.Plan | null; price: Stripe$1.Price | null; proration: boolean; quantity: number; subscription: string | Stripe$1.Subscription | null; subscription_item?: string | undefined; tax_rates: Stripe$1.TaxRate[] | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; unit_amount: number | null; unit_amount_decimal: string | null; }, { id: string; object: "invoiceitem"; amount: number; currency: string; customer: string | Stripe$1.Customer | Stripe$1.DeletedCustomer; date: number; deleted?: void | undefined; description: string | null; discountable: boolean; discounts: (string | Stripe$1.Discount)[] | null; invoice: string | Stripe$1.Invoice | null; livemode: boolean; metadata: Stripe$1.Metadata | null; period: Stripe$1.InvoiceItem.Period; plan: Stripe$1.Plan | null; price: Stripe$1.Price | null; proration: boolean; quantity: number; subscription: string | Stripe$1.Subscription | null; subscription_item?: string | undefined; tax_rates: Stripe$1.TaxRate[] | null; test_clock: string | Stripe$1.TestHelpers.TestClock | null; unit_amount: number | null; unit_amount_decimal: string | null; }>>; } type TriggerParams = { connect?: boolean; filter?: EventFilter; }; type StripeEvents = (typeof events)[keyof typeof events]; type CreateTriggersResult = ExternalSourceTrigger>; declare function createWebhookEventSource(integration: Stripe): ExternalSource; export { type CreateChargeParams, type CreateChargeResponse, type CreateCheckoutSessionParams, type CreateCheckoutSessionResponse, type CreateCustomerParams, type CreateCustomerResponse, type CreateWebhookParams, type CreateWebhookResponse, type ListWebhooksParams, type ListWebhooksResponse, type OnAccountEvent, type OnChargeEvent, type OnCheckoutSession, type OnCustomerEvent, type OnCustomerSubscription, type OnExternalAccountEvent, type OnInvoiceEvent, type OnInvoiceItemEvent, type OnPaymentIntentEvent, type OnPayoutEvent, type OnPersonEvent, type OnPriceEvent, type OnProductEvent, type RetrieveSubscriptionParams, type RetrieveSubscriptionResponse, Stripe, type StripeIntegrationOptions, type StripeRunTask, type StripeSDK, type TriggerParams, type UpdateCustomerParams, type UpdateCustomerResponse, type UpdateWebhookParams, type UpdateWebhookResponse, type WebhookEvents };