OptionalapiOptionaltypescriptOptionally indicate that you are using TypeScript. This currently has no runtime effect other than adding "TypeScript" to your user-agent.
OptionalmaxSpecifies maximum number of automatic network retries (default 1). Retries will be attempted with exponential backoff. Retries can be disabled by setting this option to 0. Idempotency keys are added where appropriate to prevent duplication.
OptionalhttpUse a custom http(s) agent. Useful for making requests through a proxy.
OptionalhttpUse a custom http client, rather than relying on Node libraries.
Useful for making requests in contexts other than NodeJS (eg. using
fetch).
OptionaltimeoutRequest timeout in milliseconds. The default is 80000
OptionalhostSpecify the host to use for API Requests.
OptionalportSpecify the port to use for API Requests.
OptionalprotocolSpecify the HTTP protool to use for API Requests.
OptionaltelemetryPass telemetry: false to disable headers that provide Stripe
with data about usage of the API.
Currently, the only telemetry we send is latency metrics.
OptionalappFor plugin authors to identify their code.
OptionalstripeAn account id on whose behalf you wish to make every request. Prefer stripeContext for new code.
OptionalstripeAn account on whose behalf you wish to make every request. See https://docs.corp.stripe.com/context for more information.
This library's types only reflect the latest API version.
We recommend upgrading your account's API Version to the latest version if you wish to use TypeScript with this library.
If you wish to remain on your account's default API version, you may pass
nullor another version instead of the latest version, and add a@ts-ignorecomment here and anywhere the types differ between API versions.