Package com.stripe.model.issuing
Class Transaction
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.issuing.Transaction
-
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<Transaction>
,StripeObjectInterface
public class Transaction extends ApiResource implements MetadataStore<Transaction>, BalanceTransactionSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Transaction.AmountDetails
static class
Transaction.PurchaseDetails
-
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 Transaction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Long
getAmount()
The transaction amount, which will be reflected in your balance.Transaction.AmountDetails
getAmountDetails()
Detailed breakdown of amount components.java.lang.String
getAuthorization()
Get ID of expandableauthorization
object.Authorization
getAuthorizationObject()
Get expandedauthorization
.java.lang.String
getBalanceTransaction()
Get ID of expandablebalanceTransaction
object.BalanceTransaction
getBalanceTransactionObject()
Get expandedbalanceTransaction
.java.lang.String
getCard()
Get ID of expandablecard
object.java.lang.String
getCardholder()
Get ID of expandablecardholder
object.Cardholder
getCardholderObject()
Get expandedcardholder
.Card
getCardObject()
Get expandedcard
.java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCurrency()
Three-letter ISO currency code, in lowercase.java.lang.String
getDispute()
Get ID of expandabledispute
object.Dispute
getDisputeObject()
Get expandeddispute
.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.Long
getMerchantAmount()
The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit.java.lang.String
getMerchantCurrency()
The currency with which the merchant is taking payment.Authorization.MerchantData
getMerchantData()
java.util.Map<java.lang.String,java.lang.String>
getMetadata()
Set of key-value pairs that you can attach to an object.java.lang.String
getObject()
String representing the object's type.Transaction.PurchaseDetails
getPurchaseDetails()
Additional purchase information that is optionally provided by the merchant.java.lang.String
getType()
The nature of the transaction.java.lang.String
getWallet()
The digital wallet used for this transaction.int
hashCode()
static TransactionCollection
list(TransactionListParams params)
Returns a list of IssuingTransaction
objects.static TransactionCollection
list(TransactionListParams params, RequestOptions options)
Returns a list of IssuingTransaction
objects.static TransactionCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of IssuingTransaction
objects.static TransactionCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list of IssuingTransaction
objects.static Transaction
retrieve(java.lang.String transaction)
Retrieves an IssuingTransaction
object.static Transaction
retrieve(java.lang.String transaction, RequestOptions options)
Retrieves an IssuingTransaction
object.static Transaction
retrieve(java.lang.String transaction, TransactionRetrieveParams params, RequestOptions options)
Retrieves an IssuingTransaction
object.static Transaction
retrieve(java.lang.String transaction, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves an IssuingTransaction
object.void
setAmount(java.lang.Long amount)
The transaction amount, which will be reflected in your balance.void
setAmountDetails(Transaction.AmountDetails amountDetails)
Detailed breakdown of amount components.void
setAuthorization(java.lang.String id)
void
setAuthorizationObject(Authorization expandableObject)
void
setBalanceTransaction(java.lang.String id)
void
setBalanceTransactionObject(BalanceTransaction expandableObject)
void
setCard(java.lang.String id)
void
setCardholder(java.lang.String id)
void
setCardholderObject(Cardholder expandableObject)
void
setCardObject(Card expandableObject)
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
setDispute(java.lang.String id)
void
setDisputeObject(Dispute expandableObject)
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
setMerchantAmount(java.lang.Long merchantAmount)
The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit.void
setMerchantCurrency(java.lang.String merchantCurrency)
The currency with which the merchant is taking payment.void
setMerchantData(Authorization.MerchantData merchantData)
void
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.void
setObject(java.lang.String object)
String representing the object's type.void
setPurchaseDetails(Transaction.PurchaseDetails purchaseDetails)
Additional purchase information that is optionally provided by the merchant.void
setType(java.lang.String type)
The nature of the transaction.void
setWallet(java.lang.String wallet)
The digital wallet used for this transaction.Transaction
update(TransactionUpdateParams params)
Updates the specified IssuingTransaction
object by setting the values of the parameters passed.Transaction
update(TransactionUpdateParams params, RequestOptions options)
Updates the specified IssuingTransaction
object by setting the values of the parameters passed.Transaction
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified IssuingTransaction
object by setting the values of the parameters passed.Transaction
update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Updates the specified IssuingTransaction
object by setting the values of the parameters passed.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
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.StripeObjectInterface
getLastResponse, setLastResponse
-
-
-
-
Method Detail
-
getAuthorization
public java.lang.String getAuthorization()
Get ID of expandableauthorization
object.
-
setAuthorization
public void setAuthorization(java.lang.String id)
-
getAuthorizationObject
public Authorization getAuthorizationObject()
Get expandedauthorization
.
-
setAuthorizationObject
public void setAuthorizationObject(Authorization expandableObject)
-
getBalanceTransaction
public java.lang.String getBalanceTransaction()
Get ID of expandablebalanceTransaction
object.
-
setBalanceTransaction
public void setBalanceTransaction(java.lang.String id)
-
getBalanceTransactionObject
public BalanceTransaction getBalanceTransactionObject()
Get expandedbalanceTransaction
.
-
setBalanceTransactionObject
public void setBalanceTransactionObject(BalanceTransaction expandableObject)
-
getCard
public java.lang.String getCard()
Get ID of expandablecard
object.
-
setCard
public void setCard(java.lang.String id)
-
getCardObject
public Card getCardObject()
Get expandedcard
.
-
setCardObject
public void setCardObject(Card expandableObject)
-
getCardholder
public java.lang.String getCardholder()
Get ID of expandablecardholder
object.
-
setCardholder
public void setCardholder(java.lang.String id)
-
getCardholderObject
public Cardholder getCardholderObject()
Get expandedcardholder
.
-
setCardholderObject
public void setCardholderObject(Cardholder expandableObject)
-
getDispute
public java.lang.String getDispute()
Get ID of expandabledispute
object.
-
setDispute
public void setDispute(java.lang.String id)
-
getDisputeObject
public Dispute getDisputeObject()
Get expandeddispute
.
-
setDisputeObject
public void setDisputeObject(Dispute expandableObject)
-
list
public static TransactionCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static TransactionCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static TransactionCollection list(TransactionListParams params) throws StripeException
Returns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static TransactionCollection list(TransactionListParams params, RequestOptions options) throws StripeException
Returns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(java.lang.String transaction) throws StripeException
Retrieves an IssuingTransaction
object.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(java.lang.String transaction, RequestOptions options) throws StripeException
Retrieves an IssuingTransaction
object.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(java.lang.String transaction, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves an IssuingTransaction
object.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(java.lang.String transaction, TransactionRetrieveParams params, RequestOptions options) throws StripeException
Retrieves an IssuingTransaction
object.- Throws:
StripeException
-
update
public Transaction update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Transaction>
- Throws:
StripeException
-
update
public Transaction update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Transaction>
- Throws:
StripeException
-
update
public Transaction update(TransactionUpdateParams params) throws StripeException
Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
public Transaction update(TransactionUpdateParams params, RequestOptions options) throws StripeException
Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
getAmount
public java.lang.Long getAmount()
The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit.
-
getAmountDetails
public Transaction.AmountDetails getAmountDetails()
Detailed breakdown of amount components. These amounts are denominated incurrency
and in the smallest currency unit.
-
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.
-
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.
-
getMerchantAmount
public java.lang.Long getMerchantAmount()
The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit. It will be different fromamount
if the merchant is taking payment in a different currency.
-
getMerchantCurrency
public java.lang.String getMerchantCurrency()
The currency with which the merchant is taking payment.
-
getMerchantData
public Authorization.MerchantData getMerchantData()
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.transaction
.
-
getPurchaseDetails
public Transaction.PurchaseDetails getPurchaseDetails()
Additional purchase information that is optionally provided by the merchant.
-
getType
public java.lang.String getType()
The nature of the transaction.One of
capture
, orrefund
.
-
getWallet
public java.lang.String getWallet()
The digital wallet used for this transaction. One ofapple_pay
,google_pay
, orsamsung_pay
.
-
setAmount
public void setAmount(java.lang.Long amount)
The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit.
-
setAmountDetails
public void setAmountDetails(Transaction.AmountDetails amountDetails)
Detailed breakdown of amount components. These amounts are denominated incurrency
and in the smallest currency unit.
-
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.
-
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.
-
setMerchantAmount
public void setMerchantAmount(java.lang.Long merchantAmount)
The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit. It will be different fromamount
if the merchant is taking payment in a different currency.
-
setMerchantCurrency
public void setMerchantCurrency(java.lang.String merchantCurrency)
The currency with which the merchant is taking payment.
-
setMerchantData
public void setMerchantData(Authorization.MerchantData merchantData)
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
-
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
issuing.transaction
.
-
setPurchaseDetails
public void setPurchaseDetails(Transaction.PurchaseDetails purchaseDetails)
Additional purchase information that is optionally provided by the merchant.
-
setType
public void setType(java.lang.String type)
The nature of the transaction.One of
capture
, orrefund
.
-
setWallet
public void setWallet(java.lang.String wallet)
The digital wallet used for this transaction. One ofapple_pay
,google_pay
, orsamsung_pay
.
-
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
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<Transaction>
-
-