|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
The StripeClient implementation, built on any HTTPClient. More...
#include <StripeApiClient.h>
Public Member Functions | |
| StripeApiClient (HTTPClient &http_client) | |
| Creates a client that decodes responses with JsonCpp. | |
| StripeApiClient (HTTPClient &http_client, const StripeResponseParser &response_parser) | |
| Creates a client that decodes responses with a parser of your own. | |
| ~StripeApiClient () override | |
| Destroys the client and its operation groups. | |
| StripeApiClient (const StripeApiClient &)=delete | |
| StripeApiClient & | operator= (const StripeApiClient &)=delete |
| Customers & | customers () override |
| Returns the customer operations. | |
| Checkout & | checkout () override |
| Returns the Checkout operations. | |
| Subscriptions & | subscriptions () override |
| Returns the subscription operations. | |
| BillingPortal & | billing_portal () override |
| Returns the billing portal operations. | |
| Public Member Functions inherited from stripekit::StripeClient | |
| virtual | ~StripeClient ()=default |
| Destroys the client instance. | |
The StripeClient implementation, built on any HTTPClient.
This is what turns an adapter's transport into a working Stripe client: it builds the requests, sends them through the supplied HTTPClient, parses the responses, and raises StripeApiException on failure. An adapter's factory function constructs one of these, so applications rarely need to.
Construct it directly when you need to supply a custom response parser:
The HTTP client and parser are referenced, not owned, so both must outlive the client. Safe to use from several threads.
Definition at line 160 of file StripeApiClient.h.
|
explicit |
Creates a client that decodes responses with JsonCpp.
| http_client | Transport to send requests through. Must outlive the client. |
| stripekit::StripeApiClient::StripeApiClient | ( | HTTPClient & | http_client, |
| const StripeResponseParser & | response_parser ) |
Creates a client that decodes responses with a parser of your own.
| http_client | Transport to send requests through. Must outlive the client. |
| response_parser | Decoder for Stripe's responses. Must outlive the client. |
|
override |
Destroys the client and its operation groups.
|
overridevirtual |
Returns the customer operations.
Implements stripekit::StripeClient.
|
overridevirtual |
Returns the Checkout operations.
Implements stripekit::StripeClient.
|
overridevirtual |
Returns the subscription operations.
Implements stripekit::StripeClient.
|
overridevirtual |
Returns the billing portal operations.
Implements stripekit::StripeClient.