Package com.stripe.model
Class SourceMandateNotification
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.SourceMandateNotification
-
- All Implemented Interfaces:
HasId,StripeObjectInterface
public class SourceMandateNotification extends StripeObject implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSourceMandateNotification.AcssDebitDatastatic classSourceMandateNotification.BacsDebitDatastatic classSourceMandateNotification.SepaDebitData
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description SourceMandateNotification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)SourceMandateNotification.AcssDebitDatagetAcssDebit()java.lang.LonggetAmount()A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount associated with the mandate notification.SourceMandateNotification.BacsDebitDatagetBacsDebit()java.lang.LonggetCreated()Time at which the object was created.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.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetReason()The reason of the mandate notification.SourceMandateNotification.SepaDebitDatagetSepaDebit()SourcegetSource()Sourceobjects allow you to accept a variety of payment methods.java.lang.StringgetStatus()The status of the mandate notification.java.lang.StringgetType()The type of source this mandate notification is attached to.inthashCode()voidsetAcssDebit(SourceMandateNotification.AcssDebitData acssDebit)voidsetAmount(java.lang.Long amount)A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount associated with the mandate notification.voidsetBacsDebit(SourceMandateNotification.BacsDebitData bacsDebit)voidsetCreated(java.lang.Long created)Time at which the object was created.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.voidsetObject(java.lang.String object)String representing the object's type.voidsetReason(java.lang.String reason)The reason of the mandate notification.voidsetSepaDebit(SourceMandateNotification.SepaDebitData sepaDebit)voidsetSource(Source source)Sourceobjects allow you to accept a variety of payment methods.voidsetStatus(java.lang.String status)The status of the mandate notification.voidsetType(java.lang.String type)The type of source this mandate notification is attached to.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getAcssDebit
public SourceMandateNotification.AcssDebitData getAcssDebit()
-
getAmount
public java.lang.Long getAmount()
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount associated with the mandate notification. The amount is expressed in the currency of the underlying source. Required if the notification type isdebit_initiated.
-
getBacsDebit
public SourceMandateNotification.BacsDebitData getBacsDebit()
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
source_mandate_notification.
-
getReason
public java.lang.String getReason()
The reason of the mandate notification. Valid reasons aremandate_confirmedordebit_initiated.
-
getSepaDebit
public SourceMandateNotification.SepaDebitData getSepaDebit()
-
getSource
public Source getSource()
Sourceobjects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like aCardobject: once chargeable, they can be charged, or can be attached to customers.Related guides: Sources API and Sources & Customers.
-
getStatus
public java.lang.String getStatus()
The status of the mandate notification. Valid statuses arependingorsubmitted.
-
getType
public java.lang.String getType()
The type of source this mandate notification is attached to. Should be the source type identifier code for the payment method, such asthree_d_secure.
-
setAcssDebit
public void setAcssDebit(SourceMandateNotification.AcssDebitData acssDebit)
-
setAmount
public void setAmount(java.lang.Long amount)
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount associated with the mandate notification. The amount is expressed in the currency of the underlying source. Required if the notification type isdebit_initiated.
-
setBacsDebit
public void setBacsDebit(SourceMandateNotification.BacsDebitData bacsDebit)
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
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.
-
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
source_mandate_notification.
-
setReason
public void setReason(java.lang.String reason)
The reason of the mandate notification. Valid reasons aremandate_confirmedordebit_initiated.
-
setSepaDebit
public void setSepaDebit(SourceMandateNotification.SepaDebitData sepaDebit)
-
setSource
public void setSource(Source source)
Sourceobjects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like aCardobject: once chargeable, they can be charged, or can be attached to customers.Related guides: Sources API and Sources & Customers.
-
setStatus
public void setStatus(java.lang.String status)
The status of the mandate notification. Valid statuses arependingorsubmitted.
-
setType
public void setType(java.lang.String type)
The type of source this mandate notification is attached to. Should be the source type identifier code for the payment method, such asthree_d_secure.
-
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
-
-