14#include <unordered_map>
42 std::unordered_map<std::string, std::string>
metadata;
86 std::unordered_map<std::string, std::string>
metadata;
121 std::unordered_map<std::string, std::string>
metadata;
A Stripe billing portal session: a short-lived link to the self-serve billing page.
std::string id
Stripe-assigned billing portal session identifier.
std::string url
Hosted billing portal URL for end-user redirection.
std::string customer_id
Stripe customer identifier linked to this portal session.
bool livemode
True when the object belongs to a live Stripe account.
std::int64_t created_unix
Unix timestamp when Stripe created the object.
std::string return_url
Return URL used by Stripe after portal navigation.
A Stripe Checkout session: one attempt by a customer to pay or subscribe.
std::string payment_intent_id
Stripe payment intent identifier created by checkout, when present.
std::string id
Stripe-assigned checkout session identifier.
std::int64_t amount_total
Total amount in the smallest currency unit.
bool livemode
True when the object belongs to a live Stripe account.
std::unordered_map< std::string, std::string > metadata
Free-form metadata key/value pairs attached to this session.
std::string customer_id
Stripe customer identifier associated with the session.
std::string mode
Checkout mode, for example subscription or payment.
std::string currency
ISO currency code, for example usd.
std::string url
Redirect URL for hosted checkout.
std::string subscription_id
Stripe subscription identifier created by checkout, when present.
std::string status
Session status, for example open, complete, or expired.
A Stripe customer: the account everything else is billed against.
std::string name
Customer display name.
std::string email
Customer email address.
bool livemode
True when the object belongs to a live Stripe account.
std::unordered_map< std::string, std::string > metadata
Free-form metadata key/value pairs attached to this customer.
std::string id
Stripe-assigned customer identifier.
A Stripe event, as delivered by a webhook.
std::string payload_json
Stripe's raw JSON for the whole event.
std::string account
Connected account the event belongs to, when using Stripe Connect.
std::string id
Stripe event identifier, of the form "evt_...".
std::string type
What happened, for example "invoice.paid".
std::int64_t created_unix
Unix timestamp of when the event occurred in Stripe.
bool livemode
True when the event belongs to a live Stripe account.
std::string api_version
Stripe API version the payload is formatted for.
std::string request_id
Id of the API request that caused the event, when there was one.
A Stripe invoice: the bill for one subscription period.
bool livemode
True when the object belongs to a live Stripe account.
std::string status
Invoice status, for example paid, open, or uncollectible.
bool paid
True when Stripe marks the invoice as paid.
std::string subscription_id
Subscription identifier associated with the invoice, when present.
std::string currency
ISO currency code, for example usd.
std::string customer_id
Stripe customer identifier associated with the invoice.
std::string id
Stripe-assigned invoice identifier.
std::int64_t amount_due
Amount due in the smallest currency unit.
std::int64_t amount_paid
Amount paid in the smallest currency unit.
A Stripe subscription: a customer's recurring agreement to pay.
std::string status
Lifecycle status, for example active, trialing, or past_due.
std::int64_t current_period_end_unix
Unix timestamp for the current period end.
std::string customer_id
Stripe customer identifier owning this subscription.
std::int64_t current_period_start_unix
Unix timestamp for the current period start.
std::unordered_map< std::string, std::string > metadata
Free-form metadata key/value pairs attached to this subscription.
bool cancel_at_period_end
True when cancellation will occur at period end.
std::string id
Stripe-assigned subscription identifier.
bool livemode
True when the object belongs to a live Stripe account.