public class InvoicePayParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
InvoicePayParams.Builder |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static InvoicePayParams.Builder |
builder() |
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.Boolean |
getForgive()
In cases where the source used to pay the invoice has insufficient funds, passing
forgive=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. |
java.lang.Boolean |
getOffSession()
Indicates if a customer is on or off-session while an invoice payment is attempted.
|
java.lang.Boolean |
getPaidOutOfBand()
Boolean representing whether an invoice is paid outside of Stripe.
|
java.lang.String |
getPaymentMethod()
A PaymentMethod to be charged.
|
java.lang.String |
getSource()
A payment source to be charged.
|
toMap
public static InvoicePayParams.Builder builder()
public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@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.public java.lang.Boolean getForgive()
forgive=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 to false
.
public java.lang.Boolean getOffSession()
true
(off-session).public java.lang.Boolean getPaidOutOfBand()
false
.public java.lang.String getPaymentMethod()
public java.lang.String getSource()