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 classMandate.AuBecsDebitstatic classMandate.BacsDebitstatic classMandate.CustomerAcceptancestatic classMandate.MultiUseThe user agent of the browser from which the Mandate was accepted by the customer.static classMandate.PaymentMethodDetailsstatic classMandate.SingleUseThe 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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)Mandate.CustomerAcceptancegetCustomerAcceptance()java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Mandate.MultiUsegetMultiUse()java.lang.StringgetObject()String representing the object's type.java.lang.StringgetPaymentMethod()Get ID of expandablepaymentMethodobject.Mandate.PaymentMethodDetailsgetPaymentMethodDetails()PaymentMethodgetPaymentMethodObject()Get expandedpaymentMethod.Mandate.SingleUsegetSingleUse()java.lang.StringgetStatus()The status of the mandate, which indicates whether it can be used to initiate a payment.java.lang.StringgetType()The type of the mandate.inthashCode()static Mandateretrieve(java.lang.String mandate)Retrieves a Mandate object.static Mandateretrieve(java.lang.String mandate, RequestOptions options)Retrieves a Mandate object.static Mandateretrieve(java.lang.String mandate, MandateRetrieveParams params, RequestOptions options)Retrieves a Mandate object.static Mandateretrieve(java.lang.String mandate, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves a Mandate object.voidsetCustomerAcceptance(Mandate.CustomerAcceptance customerAcceptance)voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMultiUse(Mandate.MultiUse multiUse)voidsetObject(java.lang.String object)String representing the object's type.voidsetPaymentMethod(java.lang.String id)voidsetPaymentMethodDetails(Mandate.PaymentMethodDetails paymentMethodDetails)voidsetPaymentMethodObject(PaymentMethod expandableObject)voidsetSingleUse(Mandate.SingleUse singleUse)voidsetStatus(java.lang.String status)The status of the mandate, which indicates whether it can be used to initiate a payment.voidsetType(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, 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 expandablepaymentMethodobject.
-
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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-