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
A Mandate is a record of the permission a customer has given you to debit their payment method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classThe user agent of the browser from which the Mandate was accepted by the customer.static classstatic classNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Get ID of expandablepaymentMethodobject.Get expandedpaymentMethod.The status of the mandate, which indicates whether it can be used to initiate a payment.getType()The type of the mandate.inthashCode()static MandateRetrieves a Mandate object.static Mandateretrieve(String mandate, RequestOptions options) Retrieves a Mandate object.static Mandateretrieve(String mandate, MandateRetrieveParams params, RequestOptions options) Retrieves a Mandate object.static MandateRetrieves a Mandate object.voidsetCustomerAcceptance(Mandate.CustomerAcceptance customerAcceptance) voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMultiUse(Mandate.MultiUse multiUse) voidString representing the object's type.voidvoidsetPaymentMethodDetails(Mandate.PaymentMethodDetails paymentMethodDetails) voidsetPaymentMethodObject(PaymentMethod expandableObject) voidsetSingleUse(Mandate.SingleUse singleUse) voidThe status of the mandate, which indicates whether it can be used to initiate a payment.voidThe 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, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Mandate
public Mandate()
-
-
Method Details
-
getPaymentMethod
Get ID of expandablepaymentMethodobject. -
setPaymentMethod
-
getPaymentMethodObject
Get expandedpaymentMethod. -
setPaymentMethodObject
-
retrieve
Retrieves a Mandate object.- Throws:
StripeException
-
retrieve
Retrieves a Mandate object.- Throws:
StripeException
-
retrieve
public static Mandate retrieve(String mandate, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a Mandate object.- Throws:
StripeException
-
retrieve
public static Mandate retrieve(String mandate, MandateRetrieveParams params, RequestOptions options) throws StripeException Retrieves a Mandate object.- Throws:
StripeException
-
getCustomerAcceptance
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMultiUse
-
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
mandate. -
getPaymentMethodDetails
-
getSingleUse
-
getStatus
The status of the mandate, which indicates whether it can be used to initiate a payment.One of
active,inactive, orpending. -
getType
The type of the mandate.One of
multi_use, orsingle_use. -
setCustomerAcceptance
-
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMultiUse
-
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
mandate. -
setPaymentMethodDetails
-
setSingleUse
-
setStatus
The status of the mandate, which indicates whether it can be used to initiate a payment.One of
active,inactive, orpending. -
setType
The type of the mandate.One of
multi_use, orsingle_use. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-