← Public packages
@kentcdodds/stripe
Stripe helpers for customers, payments, invoices, subscriptions, products, payment links, refunds, and balance.
src/products-default.ts
17 lines · 729 B · TypeScriptimport products from './products.ts'
/**
* Stripe products/prices/payment-links dispatcher (default `./products` action).
* Defaults to list-products. Named helpers remain on the `products` namespace.
*
* @param input.action - list-products (default), get-product, create-product, archive-product, list-prices, create-price, list-payment-links, create-payment-link, deactivate-payment-link
* @returns Action result for the selected Stripe helper
*
* @example
* import products from 'kody:@kentcdodds/stripe/products'
* const result = await products({})
* // => { hasMore: false, products: [...] }
*/
export default async function productsDefault(input: Record<string, unknown> = {}) {
return await products(input)
}