Package com.stripe.model
Class Mandate
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.Mandate
-
- All Implemented Interfaces:
HasId
,StripeObjectInterface
public class Mandate extends ApiResource implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Mandate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 valuetrue
if the object exists in live mode or the valuefalse
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 expandablepaymentMethod
object.Mandate.PaymentMethodDetails
getPaymentMethodDetails()
PaymentMethod
getPaymentMethodObject()
Get expandedpaymentMethod
.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, RequestOptions options)
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.void
setCustomerAcceptance(Mandate.CustomerAcceptance customerAcceptance)
void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
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.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getPaymentMethod
public java.lang.String getPaymentMethod()
Get ID of expandablepaymentMethod
object.
-
setPaymentMethod
public void setPaymentMethod(java.lang.String id)
-
getPaymentMethodObject
public PaymentMethod getPaymentMethodObject()
Get expandedpaymentMethod
.
-
setPaymentMethodObject
public void setPaymentMethodObject(PaymentMethod expandableObject)
-
retrieve
public static Mandate retrieve(java.lang.String mandate) throws StripeException
Retrieves a Mandate object.- Throws:
StripeException
-
retrieve
public static Mandate retrieve(java.lang.String mandate, RequestOptions options) throws StripeException
Retrieves a Mandate object.- Throws:
StripeException
-
retrieve
public static Mandate retrieve(java.lang.String mandate, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves a Mandate object.- Throws:
StripeException
-
retrieve
public static Mandate retrieve(java.lang.String mandate, MandateRetrieveParams params, RequestOptions options) throws StripeException
Retrieves a Mandate object.- Throws:
StripeException
-
getCustomerAcceptance
public Mandate.CustomerAcceptance getCustomerAcceptance()
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getMultiUse
public Mandate.MultiUse getMultiUse()
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
mandate
.
-
getPaymentMethodDetails
public Mandate.PaymentMethodDetails getPaymentMethodDetails()
-
getSingleUse
public Mandate.SingleUse getSingleUse()
-
getStatus
public java.lang.String getStatus()
The status of the mandate, which indicates whether it can be used to initiate a payment.One of
active
,inactive
, orpending
.
-
getType
public java.lang.String getType()
The type of the mandate.One of
multi_use
, orsingle_use
.
-
setCustomerAcceptance
public void setCustomerAcceptance(Mandate.CustomerAcceptance customerAcceptance)
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
setMultiUse
public void setMultiUse(Mandate.MultiUse multiUse)
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
mandate
.
-
setPaymentMethodDetails
public void setPaymentMethodDetails(Mandate.PaymentMethodDetails paymentMethodDetails)
-
setSingleUse
public void setSingleUse(Mandate.SingleUse singleUse)
-
setStatus
public void setStatus(java.lang.String status)
The status of the mandate, which indicates whether it can be used to initiate a payment.One of
active
,inactive
, orpending
.
-
setType
public void setType(java.lang.String type)
The type of the mandate.One of
multi_use
, orsingle_use
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-