Package com.stripe.model
Class CustomerCashBalanceTransaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.CustomerCashBalanceTransaction
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,StripeObjectInterface
public class CustomerCashBalanceTransaction
extends StripeObject
implements BalanceTransactionSource
Customers with certain payments enabled have a cash balance, representing funds that were paid by
the customer to a merchant, but have not yet been allocated to a payment. Cash Balance
Transactions represent when funds are moved into or out of this balance. This includes funding by
the customer, allocation to payments, and refunds to the customer.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
The full name of the sender, as supplied by the sending bank.static class
static class
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Time at which the object was created.Three-letter ISO currency code, in lowercase.Get ID of expandablecustomer
object.Get expandedcustomer
.The total available cash balance for the specified currency after this transaction was applied.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.The amount by which the cash balance changed, represented in the smallest currency unit.String representing the object's type.getType()
The type of the cash balance transaction.int
hashCode()
void
setAdjustedForOverdraft
(CustomerCashBalanceTransaction.AdjustedForOverdraft adjustedForOverdraft) void
setAppliedToPayment
(CustomerCashBalanceTransaction.AppliedToPayment appliedToPayment) void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setCustomer
(String id) void
setCustomerObject
(Customer expandableObject) void
setEndingBalance
(Long endingBalance) The total available cash balance for the specified currency after this transaction was applied.void
void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setNetAmount
(Long netAmount) The amount by which the cash balance changed, represented in the smallest currency unit.void
String representing the object's type.void
setRefundedFromPayment
(CustomerCashBalanceTransaction.RefundedFromPayment refundedFromPayment) void
setTransferredToBalance
(CustomerCashBalanceTransaction.TransferredToBalance transferredToBalance) void
The type of the cash balance transaction.void
setUnappliedFromPayment
(CustomerCashBalanceTransaction.UnappliedFromPayment unappliedFromPayment) Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, 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
-
Constructor Details
-
CustomerCashBalanceTransaction
public CustomerCashBalanceTransaction()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomer
object. -
setCustomer
-
getCustomerObject
Get expandedcustomer
. -
setCustomerObject
-
getAdjustedForOverdraft
-
getAppliedToPayment
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getEndingBalance
The total available cash balance for the specified currency after this transaction was applied. Represented in the smallest currency unit. -
getFunded
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getNetAmount
The amount by which the cash balance changed, represented in the smallest currency unit. A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
customer_cash_balance_transaction
. -
getRefundedFromPayment
-
getTransferredToBalance
-
getType
The type of the cash balance transaction. New types may be added in future. See Customer Balance to learn more about these types.One of
adjusted_for_overdraft
,applied_to_payment
,funded
,funding_reversed
,refunded_from_payment
,return_canceled
,return_initiated
,transferred_to_balance
, orunapplied_from_payment
. -
getUnappliedFromPayment
-
setAdjustedForOverdraft
public void setAdjustedForOverdraft(CustomerCashBalanceTransaction.AdjustedForOverdraft adjustedForOverdraft) -
setAppliedToPayment
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setEndingBalance
The total available cash balance for the specified currency after this transaction was applied. Represented in the smallest currency unit. -
setFunded
-
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setNetAmount
The amount by which the cash balance changed, represented in the smallest currency unit. A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
customer_cash_balance_transaction
. -
setRefundedFromPayment
public void setRefundedFromPayment(CustomerCashBalanceTransaction.RefundedFromPayment refundedFromPayment) -
setTransferredToBalance
public void setTransferredToBalance(CustomerCashBalanceTransaction.TransferredToBalance transferredToBalance) -
setType
The type of the cash balance transaction. New types may be added in future. See Customer Balance to learn more about these types.One of
adjusted_for_overdraft
,applied_to_payment
,funded
,funding_reversed
,refunded_from_payment
,return_canceled
,return_initiated
,transferred_to_balance
, orunapplied_from_payment
. -
setUnappliedFromPayment
public void setUnappliedFromPayment(CustomerCashBalanceTransaction.UnappliedFromPayment unappliedFromPayment) -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-