Package com.stripe.param
Class InvoicePayParams
java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.InvoicePayParams
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
Method Summary
Modifier and TypeMethodDescriptionstatic InvoicePayParams.Builder
builder()
Specifies which fields in the response should be expanded.Map of extra parameters for custom features not available in this client library.In cases where the source used to pay the invoice has insufficient funds, passingforgive=true
controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice.ID of the mandate to be used for this invoice.Indicates if a customer is on or off-session while an invoice payment is attempted.Boolean representing whether an invoice is paid outside of Stripe.A PaymentMethod to be charged.A payment source to be charged.Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
getExpand
Specifies which fields in the response should be expanded. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getForgive
In cases where the source used to pay the invoice has insufficient funds, passingforgive=true
controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice. This effectively forgives the difference between the amount available on the source and the amount due.Passing
forgive=false
will fail the charge if the source hasn't been pre-funded with the right amount. An example for this case is with ACH Credit Transfers and wires: if the amount wired is less than the amount due by a small amount, you might want to forgive the difference. Defaults tofalse
. -
getMandate
ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the payment_method param or the invoice's default_payment_method or default_source, if set. -
getOffSession
Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults totrue
(off-session). -
getPaidOutOfBand
Boolean representing whether an invoice is paid outside of Stripe. This will result in no charge being made. Defaults tofalse
. -
getPaymentMethod
A PaymentMethod to be charged. The PaymentMethod must be the ID of a PaymentMethod belonging to the customer associated with the invoice being paid. -
getSource
A payment source to be charged. The source must be the ID of a source belonging to the customer associated with the invoice being paid.
-