pub struct InvoicePayment {
pub amount_paid: Option<i64>,
pub amount_requested: i64,
pub created: Timestamp,
pub currency: Currency,
pub id: InvoicePaymentId,
pub invoice: Expandable<Invoice>,
pub is_default: bool,
pub livemode: bool,
pub payment: InvoicesPaymentsInvoicePaymentAssociatedPayment,
pub status: String,
pub status_transitions: InvoicesPaymentsInvoicePaymentStatusTransitions,
}
Expand description
Invoice Payments represent payments made against invoices. Invoice Payments can
be accessed in two ways:
1.
By expanding the payments
field on the Invoice resource.
2. By using the Invoice Payment retrieve and list endpoints.
Invoice Payments include the mapping between payment objects, such as Payment Intent, and Invoices. This resource and its endpoints allows you to easily track if a payment is associated with a specific invoice and. monitor the allocation details of the payments.
Fields§
§amount_paid: Option<i64>
Amount that was actually paid for this invoice, in cents (or local equivalent).
This field is null until the payment is paid
.
This amount can be less than the amount_requested
if the PaymentIntent’s amount_received
is not sufficient to pay all of the invoices that it is attached to.
amount_requested: i64
Amount intended to be paid toward this invoice, in cents (or local equivalent)
created: Timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
currency: Currency
Three-letter ISO currency code, in lowercase. Must be a supported currency.
id: InvoicePaymentId
Unique identifier for the object.
invoice: Expandable<Invoice>
The invoice that was paid.
is_default: bool
Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s amount_remaining
.
The PaymentIntent associated with the default payment can’t be edited or canceled directly.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
payment: InvoicesPaymentsInvoicePaymentAssociatedPayment
§status: String
The status of the payment, one of open
, paid
, or canceled
.
status_transitions: InvoicesPaymentsInvoicePaymentStatusTransitions
Trait Implementations§
Source§impl Clone for InvoicePayment
impl Clone for InvoicePayment
Source§fn clone(&self) -> InvoicePayment
fn clone(&self) -> InvoicePayment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more