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 classTransaction.AmountDetailsstatic classTransaction.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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetAmount()The transaction amount, which will be reflected in your balance.Transaction.AmountDetailsgetAmountDetails()Detailed breakdown of amount components.java.lang.StringgetAuthorization()Get ID of expandableauthorizationobject.AuthorizationgetAuthorizationObject()Get expandedauthorization.java.lang.StringgetBalanceTransaction()Get ID of expandablebalanceTransactionobject.BalanceTransactiongetBalanceTransactionObject()Get expandedbalanceTransaction.java.lang.StringgetCard()Get ID of expandablecardobject.java.lang.StringgetCardholder()Get ID of expandablecardholderobject.CardholdergetCardholderObject()Get expandedcardholder.CardgetCardObject()Get expandedcard.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCurrency()Three-letter ISO currency code, in lowercase.java.lang.StringgetDispute()Get ID of expandabledisputeobject.DisputegetDisputeObject()Get expandeddispute.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.LonggetMerchantAmount()The amount that the merchant will receive, denominated inmerchant_currencyand in the smallest currency unit.java.lang.StringgetMerchantCurrency()The currency with which the merchant is taking payment.Authorization.MerchantDatagetMerchantData()java.util.Map<java.lang.String,java.lang.String>getMetadata()Set of key-value pairs that you can attach to an object.java.lang.StringgetObject()String representing the object's type.Transaction.PurchaseDetailsgetPurchaseDetails()Additional purchase information that is optionally provided by the merchant.java.lang.StringgetType()The nature of the transaction.inthashCode()static TransactionCollectionlist(TransactionListParams params)Returns a list of IssuingTransactionobjects.static TransactionCollectionlist(TransactionListParams params, RequestOptions options)Returns a list of IssuingTransactionobjects.static TransactionCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of IssuingTransactionobjects.static TransactionCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list of IssuingTransactionobjects.static Transactionretrieve(java.lang.String transaction)Retrieves an IssuingTransactionobject.static Transactionretrieve(java.lang.String transaction, RequestOptions options)Retrieves an IssuingTransactionobject.static Transactionretrieve(java.lang.String transaction, TransactionRetrieveParams params, RequestOptions options)Retrieves an IssuingTransactionobject.static Transactionretrieve(java.lang.String transaction, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves an IssuingTransactionobject.voidsetAmount(java.lang.Long amount)The transaction amount, which will be reflected in your balance.voidsetAmountDetails(Transaction.AmountDetails amountDetails)Detailed breakdown of amount components.voidsetAuthorization(java.lang.String id)voidsetAuthorizationObject(Authorization expandableObject)voidsetBalanceTransaction(java.lang.String id)voidsetBalanceTransactionObject(BalanceTransaction expandableObject)voidsetCard(java.lang.String id)voidsetCardholder(java.lang.String id)voidsetCardholderObject(Cardholder expandableObject)voidsetCardObject(Card expandableObject)voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCurrency(java.lang.String currency)Three-letter ISO currency code, in lowercase.voidsetDispute(java.lang.String id)voidsetDisputeObject(Dispute expandableObject)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.voidsetMerchantAmount(java.lang.Long merchantAmount)The amount that the merchant will receive, denominated inmerchant_currencyand in the smallest currency unit.voidsetMerchantCurrency(java.lang.String merchantCurrency)The currency with which the merchant is taking payment.voidsetMerchantData(Authorization.MerchantData merchantData)voidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.voidsetObject(java.lang.String object)String representing the object's type.voidsetPurchaseDetails(Transaction.PurchaseDetails purchaseDetails)Additional purchase information that is optionally provided by the merchant.voidsetType(java.lang.String type)The nature of the transaction.Transactionupdate(TransactionUpdateParams params)Updates the specified IssuingTransactionobject by setting the values of the parameters passed.Transactionupdate(TransactionUpdateParams params, RequestOptions options)Updates the specified IssuingTransactionobject by setting the values of the parameters passed.Transactionupdate(java.util.Map<java.lang.String,java.lang.Object> params)Updates the specified IssuingTransactionobject by setting the values of the parameters passed.Transactionupdate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Updates the specified IssuingTransactionobject 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, 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 expandableauthorizationobject.
-
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 expandablebalanceTransactionobject.
-
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 expandablecardobject.
-
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 expandablecardholderobject.
-
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 expandabledisputeobject.
-
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 IssuingTransactionobjects. 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 IssuingTransactionobjects. 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 IssuingTransactionobjects. 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 IssuingTransactionobjects. 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 IssuingTransactionobject.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(java.lang.String transaction, RequestOptions options) throws StripeException
Retrieves an IssuingTransactionobject.- 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 IssuingTransactionobject.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(java.lang.String transaction, TransactionRetrieveParams params, RequestOptions options) throws StripeException
Retrieves an IssuingTransactionobject.- Throws:
StripeException
-
update
public Transaction update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates the specified IssuingTransactionobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein 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 IssuingTransactionobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Transaction>- Throws:
StripeException
-
update
public Transaction update(TransactionUpdateParams params) throws StripeException
Updates the specified IssuingTransactionobject 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 IssuingTransactionobject 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 incurrencyand 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
getMerchantAmount
public java.lang.Long getMerchantAmount()
The amount that the merchant will receive, denominated inmerchant_currencyand in the smallest currency unit. It will be different fromamountif 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.
-
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 incurrencyand 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
setMerchantAmount
public void setMerchantAmount(java.lang.Long merchantAmount)
The amount that the merchant will receive, denominated inmerchant_currencyand in the smallest currency unit. It will be different fromamountif 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.
-
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
-
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:
getMetadatain interfaceMetadataStore<Transaction>
-
-