Package com.stripe.model
Class SourceTransaction
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.SourceTransaction
-
- All Implemented Interfaces:
HasId
,StripeObjectInterface
public class SourceTransaction extends StripeObject implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SourceTransaction.AchCreditTransferData
static class
SourceTransaction.ChfCreditTransferData
static class
SourceTransaction.GbpCreditTransferData
static class
SourceTransaction.PaperCheckData
static class
SourceTransaction.SepaCreditTransferData
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description SourceTransaction()
-
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)
SourceTransaction.AchCreditTransferData
getAchCreditTransfer()
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 your customer has pushed to the receiver.SourceTransaction.ChfCreditTransferData
getChfCreditTransfer()
java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCurrency()
Three-letter ISO currency code, in lowercase.SourceTransaction.GbpCreditTransferData
getGbpCreditTransfer()
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.SourceTransaction.PaperCheckData
getPaperCheck()
SourceTransaction.SepaCreditTransferData
getSepaCreditTransfer()
java.lang.String
getSource()
The ID of the source this transaction is attached to.java.lang.String
getStatus()
The status of the transaction, one ofsucceeded
,pending
, orfailed
.java.lang.String
getType()
The type of source this transaction is attached to.int
hashCode()
void
setAchCreditTransfer(SourceTransaction.AchCreditTransferData achCreditTransfer)
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 your customer has pushed to the receiver.void
setChfCreditTransfer(SourceTransaction.ChfCreditTransferData chfCreditTransfer)
void
setCreated(java.lang.Long created)
Time at which the object was created.void
setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase.void
setGbpCreditTransfer(SourceTransaction.GbpCreditTransferData gbpCreditTransfer)
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
setPaperCheck(SourceTransaction.PaperCheckData paperCheck)
void
setSepaCreditTransfer(SourceTransaction.SepaCreditTransferData sepaCreditTransfer)
void
setSource(java.lang.String source)
The ID of the source this transaction is attached to.void
setStatus(java.lang.String status)
The status of the transaction, one ofsucceeded
,pending
, orfailed
.void
setType(java.lang.String type)
The type of source this transaction is attached to.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getAchCreditTransfer
public SourceTransaction.AchCreditTransferData getAchCreditTransfer()
-
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 your customer has pushed to the receiver.
-
getChfCreditTransfer
public SourceTransaction.ChfCreditTransferData getChfCreditTransfer()
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getGbpCreditTransfer
public SourceTransaction.GbpCreditTransferData getGbpCreditTransfer()
-
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_transaction
.
-
getPaperCheck
public SourceTransaction.PaperCheckData getPaperCheck()
-
getSepaCreditTransfer
public SourceTransaction.SepaCreditTransferData getSepaCreditTransfer()
-
getSource
public java.lang.String getSource()
The ID of the source this transaction is attached to.
-
getStatus
public java.lang.String getStatus()
The status of the transaction, one ofsucceeded
,pending
, orfailed
.
-
getType
public java.lang.String getType()
The type of source this transaction is attached to.One of
ach_credit_transfer
,ach_debit
,alipay
,bancontact
,card
,card_present
,eps
,giropay
,ideal
,klarna
,multibanco
,p24
,sepa_debit
,sofort
,three_d_secure
, orwechat
.
-
setAchCreditTransfer
public void setAchCreditTransfer(SourceTransaction.AchCreditTransferData achCreditTransfer)
-
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 your customer has pushed to the receiver.
-
setChfCreditTransfer
public void setChfCreditTransfer(SourceTransaction.ChfCreditTransferData chfCreditTransfer)
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setGbpCreditTransfer
public void setGbpCreditTransfer(SourceTransaction.GbpCreditTransferData gbpCreditTransfer)
-
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_transaction
.
-
setPaperCheck
public void setPaperCheck(SourceTransaction.PaperCheckData paperCheck)
-
setSepaCreditTransfer
public void setSepaCreditTransfer(SourceTransaction.SepaCreditTransferData sepaCreditTransfer)
-
setSource
public void setSource(java.lang.String source)
The ID of the source this transaction is attached to.
-
setStatus
public void setStatus(java.lang.String status)
The status of the transaction, one ofsucceeded
,pending
, orfailed
.
-
setType
public void setType(java.lang.String type)
The type of source this transaction is attached to.One of
ach_credit_transfer
,ach_debit
,alipay
,bancontact
,card
,card_present
,eps
,giropay
,ideal
,klarna
,multibanco
,p24
,sepa_debit
,sofort
,three_d_secure
, orwechat
.
-
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
-
-