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
Modifier and TypeClassDescriptionstatic class
static class
The customer accepts the mandate using the user agent of the browser.static class
static class
Mandate collection methodNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if 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 expandablepaymentMethod
object.Get expandedpaymentMethod
.The mandate status indicates whether or not you can use it to initiate a payment.getType()
The type of the mandate.int
hashCode()
static Mandate
Retrieves a Mandate object.static Mandate
retrieve
(String mandate, RequestOptions options) Retrieves a Mandate object.static Mandate
retrieve
(String mandate, MandateRetrieveParams params, RequestOptions options) Retrieves a Mandate object.static Mandate
Retrieves a Mandate object.void
setCustomerAcceptance
(Mandate.CustomerAcceptance customerAcceptance) void
Unique identifier for the object.void
setLivemode
(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
String representing the object's type.void
setOnBehalfOf
(String onBehalfOf) The account (if any) that the mandate is intended for.void
void
setPaymentMethodDetails
(Mandate.PaymentMethodDetails paymentMethodDetails) void
setPaymentMethodObject
(PaymentMethod expandableObject) void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setSingleUse
(Mandate.SingleUse singleUse) void
The mandate status indicates whether or not you can use it to initiate a payment.void
The type of the mandate.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Mandate
public Mandate()
-
-
Method Details
-
getPaymentMethod
Get ID of expandablepaymentMethod
object. -
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
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getCustomerAcceptance
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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.
-