|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
The response parser StripeKit uses by default. More...
#include <StripeApiClient.h>
Public Member Functions | |
| Customer | parse_customer (const HttpResponse &response) const override |
| Reads a customer out of a successful response. | |
| CheckoutSession | parse_checkout_session (const HttpResponse &response) const override |
| Reads a Checkout session out of a successful response. | |
| Subscription | parse_subscription (const HttpResponse &response) const override |
| Reads a subscription out of a successful response. | |
| BillingPortalSession | parse_billing_portal_session (const HttpResponse &response) const override |
| Reads a billing portal session out of a successful response. | |
| StripeErrorPayload | parse_error (const HttpResponse &response) const override |
| Reads the error details out of a failed response. | |
| Public Member Functions inherited from stripekit::StripeResponseParser | |
| virtual | ~StripeResponseParser ()=default |
| Destroys the parser instance. | |
The response parser StripeKit uses by default.
Decodes Stripe's JSON with JsonCpp. Applications get this automatically and only need to think about it when supplying a parser of their own.
Definition at line 94 of file StripeApiClient.h.
|
overridevirtual |
Reads a customer out of a successful response.
| response | The response body and status from Stripe. |
| ConfigurationException | The body was not valid JSON, or not a customer. |
Implements stripekit::StripeResponseParser.
|
overridevirtual |
Reads a Checkout session out of a successful response.
| response | The response body and status from Stripe. |
| ConfigurationException | The body was not valid JSON, or not a session. |
Implements stripekit::StripeResponseParser.
|
overridevirtual |
Reads a subscription out of a successful response.
| response | The response body and status from Stripe. |
| ConfigurationException | The body was not valid JSON, or not a subscription. |
Implements stripekit::StripeResponseParser.
|
overridevirtual |
Reads a billing portal session out of a successful response.
| response | The response body and status from Stripe. |
| ConfigurationException | The body was not valid JSON, or not a session. |
Implements stripekit::StripeResponseParser.
|
overridevirtual |
Reads the error details out of a failed response.
| response | The response body and status from Stripe. |
Implements stripekit::StripeResponseParser.