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,StripeActiveObject,StripeObjectInterface
A Mandate is a record of the permission that your customer gives you to debit their payment
method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about CustomerAcceptance, please refer to the API Reference.static classFor more details about MultiUse, please refer to the API Reference.static classFor more details about PaymentMethodDetails, please refer to the API Reference.static classFor more details about SingleUse, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_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.The account (if any) that the mandate is intended for.Get ID of expandablepaymentMethodobject.Get expandedpaymentMethod.The mandate status indicates whether or not you can use it to initiate a payment.getType()The type of the mandate.inthashCode()static MandateCollectionlist(MandateListParams params) Retrieves a list of Mandates for a given PaymentMethod.static MandateCollectionlist(MandateListParams params, RequestOptions options) Retrieves a list of Mandates for a given PaymentMethod.static MandateCollectionRetrieves a list of Mandates for a given PaymentMethod.static MandateCollectionlist(Map<String, Object> params, RequestOptions options) Retrieves a list of Mandates for a given PaymentMethod.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.voidsetOnBehalfOf(String onBehalfOf) The account (if any) that the mandate is intended for.voidvoidsetPaymentMethodDetails(Mandate.PaymentMethodDetails paymentMethodDetails) voidsetPaymentMethodObject(PaymentMethod expandableObject) voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetSingleUse(Mandate.SingleUse singleUse) voidThe mandate status indicates whether or not you can use it to initiate a payment.voidThe type of the mandate.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Mandate
public Mandate()
-
-
Method Details
-
getPaymentMethod
Get ID of expandablepaymentMethodobject. -
setPaymentMethod
-
getPaymentMethodObject
Get expandedpaymentMethod. -
setPaymentMethodObject
-
list
Retrieves a list of Mandates for a given PaymentMethod.- Throws:
StripeException
-
list
public static MandateCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a list of Mandates for a given PaymentMethod.- Throws:
StripeException
-
list
Retrieves a list of Mandates for a given PaymentMethod.- Throws:
StripeException
-
list
public static MandateCollection list(MandateListParams params, RequestOptions options) throws StripeException Retrieves a list of Mandates for a given PaymentMethod.- Throws:
StripeException
-
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
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
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. -
getOnBehalfOf
The account (if any) that the mandate is intended for. -
getPaymentMethodDetails
-
getSingleUse
-
getStatus
The mandate status indicates whether or not you can use it 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. -
setOnBehalfOf
The account (if any) that the mandate is intended for. -
setPaymentMethodDetails
-
setSingleUse
-
setStatus
The mandate status indicates whether or not you can use it 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.
-