public class BalanceTransaction extends ApiResource implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
BalanceTransaction.Fee |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
BalanceTransaction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Gross amount of the transaction, in %s.
|
java.lang.Long |
getAvailableOn()
The date the transaction's net funds will become available in the Stripe balance.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.math.BigDecimal |
getExchangeRate() |
java.lang.Long |
getFee()
Fees (in %s) paid for this transaction.
|
java.util.List<BalanceTransaction.Fee> |
getFeeDetails()
Detailed breakdown of fees (in %s) paid for this transaction.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Long |
getNet()
Net amount of the transaction, in %s.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getSource()
Get id of expandable `source` object.
|
BalanceTransactionSource |
getSourceObject()
Get expanded `source`.
|
java.lang.String |
getStatus()
If the transaction's net funds are available in the Stripe balance yet.
|
java.lang.String |
getType()
Transaction type: `adjustment`, `advance`, `advance_funding`, `application_fee`,
`application_fee_refund`, `charge`, `connect_collection_transfer`,
`issuing_authorization_hold`, `issuing_authorization_release`, `issuing_transaction`,
`payment`, `payment_failure_refund`, `payment_refund`, `payout`, `payout_cancel`,
`payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`,
`stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`,
`transfer_cancel`, `transfer_failure`, or `transfer_refund`.
|
int |
hashCode() |
static BalanceTransactionCollection |
list(BalanceTransactionListParams params)
Returns a list of transactions that have contributed to the Stripe account balance (e.g.,
charges, transfers, and so forth).
|
static BalanceTransactionCollection |
list(BalanceTransactionListParams params,
RequestOptions options)
Returns a list of transactions that have contributed to the Stripe account balance (e.g.,
charges, transfers, and so forth).
|
static BalanceTransactionCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of transactions that have contributed to the Stripe account balance (e.g.,
charges, transfers, and so forth).
|
static BalanceTransactionCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of transactions that have contributed to the Stripe account balance (e.g.,
charges, transfers, and so forth).
|
static BalanceTransaction |
retrieve(java.lang.String id)
Retrieves the balance transaction with the given ID.
|
static BalanceTransaction |
retrieve(java.lang.String id,
BalanceTransactionRetrieveParams params,
RequestOptions options)
Retrieves the balance transaction with the given ID.
|
static BalanceTransaction |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the balance transaction with the given ID.
|
static BalanceTransaction |
retrieve(java.lang.String id,
RequestOptions options)
Retrieves the balance transaction with the given ID.
|
void |
setAmount(java.lang.Long amount)
Gross amount of the transaction, in %s.
|
void |
setAvailableOn(java.lang.Long availableOn)
The date the transaction's net funds will become available in the Stripe balance.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setExchangeRate(java.math.BigDecimal exchangeRate) |
void |
setFee(java.lang.Long fee)
Fees (in %s) paid for this transaction.
|
void |
setFeeDetails(java.util.List<BalanceTransaction.Fee> feeDetails)
Detailed breakdown of fees (in %s) paid for this transaction.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setNet(java.lang.Long net)
Net amount of the transaction, in %s.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setSource(java.lang.String id) |
void |
setSourceObject(BalanceTransactionSource expandableObject) |
void |
setStatus(java.lang.String status)
If the transaction's net funds are available in the Stripe balance yet.
|
void |
setType(java.lang.String type)
Transaction type: `adjustment`, `advance`, `advance_funding`, `application_fee`,
`application_fee_refund`, `charge`, `connect_collection_transfer`,
`issuing_authorization_hold`, `issuing_authorization_release`, `issuing_transaction`,
`payment`, `payment_failure_refund`, `payment_refund`, `payout`, `payout_cancel`,
`payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`,
`stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`,
`transfer_cancel`, `transfer_failure`, or `transfer_refund`.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getSource()
public void setSource(java.lang.String id)
public BalanceTransactionSource getSourceObject()
public void setSourceObject(BalanceTransactionSource expandableObject)
public static BalanceTransactionCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.
StripeException
public static BalanceTransactionCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.
StripeException
public static BalanceTransactionCollection list(BalanceTransactionListParams params) throws StripeException
Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.
StripeException
public static BalanceTransactionCollection list(BalanceTransactionListParams params, RequestOptions options) throws StripeException
Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.
StripeException
public static BalanceTransaction retrieve(java.lang.String id) throws StripeException
Note that this endpoint previously used the path /v1/balance/history/:id
.
StripeException
public static BalanceTransaction retrieve(java.lang.String id, RequestOptions options) throws StripeException
Note that this endpoint previously used the path /v1/balance/history/:id
.
StripeException
public static BalanceTransaction retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Note that this endpoint previously used the path /v1/balance/history/:id
.
StripeException
public static BalanceTransaction retrieve(java.lang.String id, BalanceTransactionRetrieveParams params, RequestOptions options) throws StripeException
Note that this endpoint previously used the path /v1/balance/history/:id
.
StripeException
public java.lang.Long getAmount()
public java.lang.Long getAvailableOn()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.math.BigDecimal getExchangeRate()
public java.lang.Long getFee()
public java.util.List<BalanceTransaction.Fee> getFeeDetails()
public java.lang.Long getNet()
public java.lang.String getObject()
public java.lang.String getStatus()
public java.lang.String getType()
public void setAmount(java.lang.Long amount)
public void setAvailableOn(java.lang.Long availableOn)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
public void setExchangeRate(java.math.BigDecimal exchangeRate)
public void setFee(java.lang.Long fee)
public void setFeeDetails(java.util.List<BalanceTransaction.Fee> feeDetails)
public void setId(java.lang.String id)
public void setNet(java.lang.Long net)
public void setObject(java.lang.String object)
public void setStatus(java.lang.String status)
public void setType(java.lang.String type)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object