public class Mandate extends ApiResource implements HasId
| Modifier and Type | Class and Description |
|---|---|
static class |
Mandate.AuBecsDebit |
static class |
Mandate.BacsDebit |
static class |
Mandate.CustomerAcceptance |
static class |
Mandate.MultiUse
The user agent of the browser from which the Mandate was accepted by the customer.
|
static class |
Mandate.PaymentMethodDetails |
static class |
Mandate.SingleUse
The URL of the mandate.
|
ApiResource.RequestMethodCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Mandate() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
Mandate.CustomerAcceptance |
getCustomerAcceptance() |
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
Mandate.MultiUse |
getMultiUse() |
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getPaymentMethod()
Get ID of expandable
paymentMethod object. |
Mandate.PaymentMethodDetails |
getPaymentMethodDetails() |
PaymentMethod |
getPaymentMethodObject()
Get expanded
paymentMethod. |
Mandate.SingleUse |
getSingleUse() |
java.lang.String |
getStatus()
The status of the mandate, which indicates whether it can be used to initiate a payment.
|
java.lang.String |
getType()
The type of the mandate.
|
int |
hashCode() |
static Mandate |
retrieve(java.lang.String mandate)
Retrieves a Mandate object.
|
static Mandate |
retrieve(java.lang.String mandate,
MandateRetrieveParams params,
RequestOptions options)
Retrieves a Mandate object.
|
static Mandate |
retrieve(java.lang.String mandate,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves a Mandate object.
|
static Mandate |
retrieve(java.lang.String mandate,
RequestOptions options)
Retrieves a Mandate object.
|
void |
setCustomerAcceptance(Mandate.CustomerAcceptance customerAcceptance) |
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setMultiUse(Mandate.MultiUse multiUse) |
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPaymentMethod(java.lang.String id) |
void |
setPaymentMethodDetails(Mandate.PaymentMethodDetails paymentMethodDetails) |
void |
setPaymentMethodObject(PaymentMethod expandableObject) |
void |
setSingleUse(Mandate.SingleUse singleUse) |
void |
setStatus(java.lang.String status)
The status of the mandate, which indicates whether it can be used to initiate a payment.
|
void |
setType(java.lang.String type)
The type of the mandate.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdequals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringpublic java.lang.String getPaymentMethod()
paymentMethod object.public void setPaymentMethod(java.lang.String id)
public PaymentMethod getPaymentMethodObject()
paymentMethod.public void setPaymentMethodObject(PaymentMethod expandableObject)
public static Mandate retrieve(java.lang.String mandate) throws StripeException
StripeExceptionpublic static Mandate retrieve(java.lang.String mandate, RequestOptions options) throws StripeException
StripeExceptionpublic static Mandate retrieve(java.lang.String mandate, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic static Mandate retrieve(java.lang.String mandate, MandateRetrieveParams params, RequestOptions options) throws StripeException
StripeExceptionpublic Mandate.CustomerAcceptance getCustomerAcceptance()
public java.lang.Boolean getLivemode()
true if the object exists in live mode or the value false if the
object exists in test mode.public Mandate.MultiUse getMultiUse()
public java.lang.String getObject()
Equal to mandate.
public Mandate.PaymentMethodDetails getPaymentMethodDetails()
public Mandate.SingleUse getSingleUse()
public java.lang.String getStatus()
One of active, inactive, or pending.
public java.lang.String getType()
One of multi_use, or single_use.
public void setCustomerAcceptance(Mandate.CustomerAcceptance customerAcceptance)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true if the object exists in live mode or the value false if the
object exists in test mode.public void setMultiUse(Mandate.MultiUse multiUse)
public void setObject(java.lang.String object)
Equal to mandate.
public void setPaymentMethodDetails(Mandate.PaymentMethodDetails paymentMethodDetails)
public void setSingleUse(Mandate.SingleUse singleUse)
public void setStatus(java.lang.String status)
One of active, inactive, or pending.
public void setType(java.lang.String type)
One of multi_use, or single_use.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object