Expand description
A fully generated, opinionated API client library for Stripe.
§API Details
The Stripe REST API. Please see https://stripe.com/docs/api for more details.
§Contact
| name | url | |
|---|---|---|
| Stripe Dev Platform Team | https://stripe.com | dev-platform@stripe.com |
§Client Details
This client is generated from the Stripe OpenAPI
specs based on API spec version 2020-08-27. This way it will remain
up to date as features are added. The documentation for the crate is generated
along with the code to make this library easy to use.
To install the library, add the following to your Cargo.toml file.
[dependencies]
dolladollabills = "0.7.0"§Basic example
Typical use will require intializing a Client. This requires
a user agent string and set of credentials.
use dolladollabills::Client;
let stripe = Client::new(
String::from("api-key"),
);Alternatively, the library can search for most of the variables required for the client in the environment:
STRIPE_API_KEY
And then you can create a client from the environment.
use dolladollabills::Client;
let stripe = Client::new_from_env();Modules§
- account
- account_
links - accounts
- apple_
pay - application_
fees - balance
- balance_
transactions - billing_
portal - bitcoin
- charges
- checkout
- country_
specs - coupons
- credit_
notes - customers
- disputes
- ephemeral_
keys - events
- exchange_
rates - file_
links - files
- identity
- invoiceitems
- invoices
- issuer_
fraud_ records - issuing
- mandates
- order_
returns - orders
- payment_
intents - payment_
links - payment_
methods - payouts
- plans
- prices
- products
- promotion_
codes - quotes
- radar
- recipients
- refunds
- reporting
- reviews
- setup_
attempts - setup_
intents - shipping_
rates - sigma
- skus
- sources
- subscription_
items - subscription_
schedules - subscriptions
- tax_
codes - tax_
rates - terminal
- test_
helpers - three_
d_ secure - tokens
- topups
- transfers
- types
- The data types sent to and returned from the API client.
- webhook_
endpoints
Structs§
- Client
- Entrypoint for interacting with the API client.
- Header
Map - A set of HTTP headers
- Response
- Root
Default Server - Status
Code - An HTTP status code (
status-codein RFC 7230 et al.).
Enums§
- Client
Error - Errors returned by the client