← Public packages
@kentcdodds/stripe
Stripe helpers for customers, payments, invoices, subscriptions, products, payment links, refunds, and balance.
src/customers-default.ts
17 lines · 726 B · TypeScriptimport customers from './customers.ts'
/**
* Stripe customers dispatcher (default `./customers` action). Defaults to list-customers.
* Use when routing customer helpers; named helpers remain on the `customers` namespace.
*
* @param input.action - list-customers (default), search-customers, get-customer, create-customer, update-customer, delete-customer
* @returns Action result for the selected Stripe helper
*
* @example
* import customers from 'kody:@kentcdodds/stripe/customers'
* const result = await customers({ email: 'ada@example.com' })
* // => { hasMore: false, customers: [...] }
*/
export default async function customersDefault(input: Record<string, unknown> = {}) {
return await customers(input)
}