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 class
SourceMandateNotification.AcssDebitData
static class
SourceMandateNotification.BacsDebitData
static class
SourceMandateNotification.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 boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
SourceMandateNotification.AcssDebitData
getAcssDebit()
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.SourceMandateNotification.BacsDebitData
getBacsDebit()
java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getId()
Unique identifier for the object.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.lang.String
getObject()
String representing the object's type.java.lang.String
getReason()
The reason of the mandate notification.SourceMandateNotification.SepaDebitData
getSepaDebit()
Source
getSource()
Source
objects allow you to accept a variety of payment methods.java.lang.String
getStatus()
The status of the mandate notification.java.lang.String
getType()
The type of source this mandate notification is attached to.int
hashCode()
void
setAcssDebit(SourceMandateNotification.AcssDebitData acssDebit)
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.void
setBacsDebit(SourceMandateNotification.BacsDebitData bacsDebit)
void
setCreated(java.lang.Long created)
Time at which the object was created.void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setObject(java.lang.String object)
String representing the object's type.void
setReason(java.lang.String reason)
The reason of the mandate notification.void
setSepaDebit(SourceMandateNotification.SepaDebitData sepaDebit)
void
setSource(Source source)
Source
objects allow you to accept a variety of payment methods.void
setStatus(java.lang.String status)
The status of the mandate notification.void
setType(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 valuetrue
if the object exists in live mode or the valuefalse
if 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_confirmed
ordebit_initiated
.
-
getSepaDebit
public SourceMandateNotification.SepaDebitData getSepaDebit()
-
getSource
public Source getSource()
Source
objects 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 aCard
object: 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 arepending
orsubmitted
.
-
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 valuetrue
if the object exists in live mode or the valuefalse
if 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_confirmed
ordebit_initiated
.
-
setSepaDebit
public void setSepaDebit(SourceMandateNotification.SepaDebitData sepaDebit)
-
setSource
public void setSource(Source source)
Source
objects 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 aCard
object: 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 arepending
orsubmitted
.
-
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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-