StripeKit 0.1.1
Stripe integration toolkit for C++
Loading...
Searching...
No Matches
stripekit::Invoice Struct Reference

A Stripe invoice: the bill for one subscription period. More...

#include <Models.h>

Public Attributes

std::string id
 Stripe-assigned invoice identifier.
std::string customer_id
 Stripe customer identifier associated with the invoice.
std::string subscription_id
 Subscription identifier associated with the invoice, when present.
std::string status
 Invoice status, for example paid, open, or uncollectible.
std::string currency
 ISO currency code, for example usd.
std::int64_t amount_due = 0
 Amount due in the smallest currency unit.
std::int64_t amount_paid = 0
 Amount paid in the smallest currency unit.
bool paid = false
 True when Stripe marks the invoice as paid.
bool livemode = false
 True when the object belongs to a live Stripe account.

Detailed Description

A Stripe invoice: the bill for one subscription period.

A paid invoice is the signal that a period has been paid for, and is normally what access should be granted from.

See also
https://docs.stripe.com/api/invoices/object

Definition at line 132 of file Models.h.

Member Data Documentation

◆ id

std::string stripekit::Invoice::id

Stripe-assigned invoice identifier.

Definition at line 134 of file Models.h.

◆ customer_id

std::string stripekit::Invoice::customer_id

Stripe customer identifier associated with the invoice.

Definition at line 137 of file Models.h.

◆ subscription_id

std::string stripekit::Invoice::subscription_id

Subscription identifier associated with the invoice, when present.

Definition at line 140 of file Models.h.

◆ status

std::string stripekit::Invoice::status

Invoice status, for example paid, open, or uncollectible.

Definition at line 143 of file Models.h.

◆ currency

std::string stripekit::Invoice::currency

ISO currency code, for example usd.

Definition at line 146 of file Models.h.

◆ amount_due

std::int64_t stripekit::Invoice::amount_due = 0

Amount due in the smallest currency unit.

Definition at line 149 of file Models.h.

◆ amount_paid

std::int64_t stripekit::Invoice::amount_paid = 0

Amount paid in the smallest currency unit.

Definition at line 152 of file Models.h.

◆ paid

bool stripekit::Invoice::paid = false

True when Stripe marks the invoice as paid.

Definition at line 155 of file Models.h.

◆ livemode

bool stripekit::Invoice::livemode = false

True when the object belongs to a live Stripe account.

Definition at line 158 of file Models.h.


The documentation for this struct was generated from the following file: