Crate dolladollabills

Crate dolladollabills 

Source
Expand description

A fully generated, opinionated API client library for Stripe.

docs.rs

§API Details

The Stripe REST API. Please see https://stripe.com/docs/api for more details.

API Terms of Service

§Contact

nameurlemail
Stripe Dev Platform Teamhttps://stripe.comdev-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.
HeaderMap
A set of HTTP headers
Response
RootDefaultServer
StatusCode
An HTTP status code (status-code in RFC 7230 et al.).

Enums§

ClientError
Errors returned by the client

Constants§

FALLBACK_HOST