@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Module core

    @bates-solutions/stripe — a TypeScript wrapper for the Stripe API.

    The package's main entrypoint. Exports createStripeClient / StripeClient (one service per Stripe domain — customers, checkout, billingPortal, subscriptions, prices, products, invoices, paymentLinks, paymentMethods, setupIntents, payments, refunds, oauth; forAccount(id) scopes a client to a Connect account), the normalized error hierarchy (StripeError + parseStripeError), and money / idempotency utilities (toMinor, fromMinor, formatMoney, createIdempotencyKey). Webhook helpers live in the @bates-solutions/stripe/server entrypoint.

    import { createStripeClient } from '@bates-solutions/stripe';

    const stripe = createStripeClient({ apiKey: process.env.STRIPE_SECRET_KEY! });
    const customer = await stripe.customers.create({ email: 'jane@example.com' });
    BillingPortalService
    CheckoutService
    CustomersService
    InvoicesService
    OAuthService
    PaymentLinksService
    PaymentMethodsService
    PaymentsError
    PaymentsService
    PricesService
    ProductsService
    RefundsService
    SetupIntentsService
    StripeApiError
    StripeAuthError
    StripeClient
    StripeError
    StripePaymentError
    StripeValidationError
    SubscriptionsService
    AddInvoiceItemOptions
    BuildAuthorizeUrlOptions
    CancelSubscriptionOptions
    CheckoutLineItem
    ConnectedAccountGrant
    CreateCheckoutSessionOptions
    CreateCustomerOptions
    CreateInvoiceOptions
    CreatePaymentOptions
    CreatePortalSessionOptions
    CreatePriceOptions
    CreateProductOptions
    CreateRefundOptions
    CreateSetupIntentOptions
    CustomerAddress
    DeauthorizeOptions
    ListCheckoutSessionsOptions
    ListCustomersOptions
    ListInvoicesOptions
    ListLineItemsOptions
    ListPaymentMethodsOptions
    ListPaymentsOptions
    ListPricesOptions
    ListProductsOptions
    ListRefundsOptions
    ListSetupIntentsOptions
    ListSubscriptionsOptions
    Money
    MoneyInput
    NormalizedSubscription
    NormalizedSubscriptionItem
    PaginatedResponse
    PaginationOptions
    PriceRecurring
    ReplacePriceOptions
    ReplacePriceResult
    StripeClientConfig
    TimeRange
    UpdateCustomerOptions
    UpdatePriceOptions
    UpdateProductOptions
    BillingPortalSession
    CheckoutSession
    ConnectOAuthScope
    CurrencyCode
    Customer
    Invoice
    InvoiceItem
    InvoiceLineItem
    LineItem
    Payment
    PaymentMethod
    Price
    Product
    Refund
    RefundReason
    SetupIntent
    StripeEnvironment
    StripeErrorCode
    Subscription
    SubscriptionStatus
    buildAuthorizeUrl
    createIdempotencyKey
    createStripeClient
    formatMoney
    fromMinor
    fromUnixTime
    normalizeSubscription
    parseStripeError
    resolveId
    toMinor
    toUnixTime