Package com.stripe.model
Class InvoicePayment
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.InvoicePayment
- All Implemented Interfaces:
HasId
,StripeObjectInterface
The invoice payment object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
The reference for this out of band payment record. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Excess payment that was received for this invoice and credited to the customer’sinvoice_credit_balance
.Amount that was actually paid for this invoice, in cents (or local equivalent).Amount intended to be paid toward this invoice, in cents (or local equivalent).Time at which the object was created.Three-letter ISO currency code, in lowercase.getId()
Unique identifier for the object.Get ID of expandableinvoice
object.Get expandedinvoice
.Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’samount_remaining
.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.The status of the payment, one ofopen
,paid
, orcanceled
.int
hashCode()
void
setAmountOverpaid
(Long amountOverpaid) Excess payment that was received for this invoice and credited to the customer’sinvoice_credit_balance
.void
setAmountPaid
(Long amountPaid) Amount that was actually paid for this invoice, in cents (or local equivalent).void
setAmountRequested
(Long amountRequested) Amount intended to be paid toward this invoice, in cents (or local equivalent).void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
Unique identifier for the object.void
setInvoice
(String id) void
setInvoiceObject
(Invoice expandableObject) void
setIsDefault
(Boolean isDefault) Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’samount_remaining
.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setPayment
(InvoicePayment.Payment payment) void
The status of the payment, one ofopen
,paid
, orcanceled
.void
setStatusTransitions
(InvoicePayment.StatusTransitions statusTransitions) Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
InvoicePayment
public InvoicePayment()
-
-
Method Details
-
getInvoice
Get ID of expandableinvoice
object. -
setInvoice
-
getInvoiceObject
Get expandedinvoice
. -
setInvoiceObject
-
getAmountOverpaid
Excess payment that was received for this invoice and credited to the customer’sinvoice_credit_balance
. This field is null until the payment ispaid
. Overpayment can happen when you attach more than one PaymentIntent to the invoice, and each of them succeeds. To avoid overpayment, cancel any PaymentIntents that you do not need before attaching more. -
getAmountPaid
Amount that was actually paid for this invoice, in cents (or local equivalent). This field is null until the payment ispaid
. This amount can be less than theamount_requested
if the PaymentIntent’samount_received
is not sufficient to pay all of the invoices that it is attached to. -
getAmountRequested
Amount intended to be paid toward this invoice, in cents (or local equivalent). -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getIsDefault
Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’samount_remaining
. The PaymentIntent associated with the default payment can’t be edited or canceled directly. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
invoice_payment
. -
getPayment
-
getStatus
The status of the payment, one ofopen
,paid
, orcanceled
. -
getStatusTransitions
-
setAmountOverpaid
Excess payment that was received for this invoice and credited to the customer’sinvoice_credit_balance
. This field is null until the payment ispaid
. Overpayment can happen when you attach more than one PaymentIntent to the invoice, and each of them succeeds. To avoid overpayment, cancel any PaymentIntents that you do not need before attaching more. -
setAmountPaid
Amount that was actually paid for this invoice, in cents (or local equivalent). This field is null until the payment ispaid
. This amount can be less than theamount_requested
if the PaymentIntent’samount_received
is not sufficient to pay all of the invoices that it is attached to. -
setAmountRequested
Amount intended to be paid toward this invoice, in cents (or local equivalent). -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setId
Unique identifier for the object. -
setIsDefault
Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’samount_remaining
. The PaymentIntent associated with the default payment can’t be edited or canceled directly. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
invoice_payment
. -
setPayment
-
setStatus
The status of the payment, one ofopen
,paid
, orcanceled
. -
setStatusTransitions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-