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
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about AdjustedForOverdraft, please refer to the API Reference.static classFor more details about AppliedToPayment, please refer to the API Reference.static classFor more details about Funded, please refer to the API Reference.static classFor more details about RefundedFromPayment, please refer to the API Reference.static classFor more details about TransferredToBalance, please refer to the API Reference.static classFor more details about UnappliedFromPayment, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTime at which the object was created.Three-letter ISO currency code, in lowercase.Get ID of expandablecustomerobject.Get expandedcustomer.The total available cash balance for the specified currency after this transaction was applied.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()voidsetAdjustedForOverdraft(CustomerCashBalanceTransaction.AdjustedForOverdraft adjustedForOverdraft) voidsetAppliedToPayment(CustomerCashBalanceTransaction.AppliedToPayment appliedToPayment) voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetCustomer(String id) voidsetCustomerAccount(String customerAccount) voidsetCustomerObject(Customer expandableObject) voidsetEndingBalance(Long endingBalance) The total available cash balance for the specified currency after this transaction was applied.voidvoidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetNetAmount(Long netAmount) The amount by which the cash balance changed, represented in the smallest currency unit.voidString representing the object's type.voidsetRefundedFromPayment(CustomerCashBalanceTransaction.RefundedFromPayment refundedFromPayment) voidsetTransferredToBalance(CustomerCashBalanceTransaction.TransferredToBalance transferredToBalance) voidThe type of the cash balance transaction.voidsetUnappliedFromPayment(CustomerCashBalanceTransaction.UnappliedFromPayment unappliedFromPayment) Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
CustomerCashBalanceTransaction
public CustomerCashBalanceTransaction()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomerobject. -
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. -
getCustomerAccount
-
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 valuetrueif the object exists in live mode or the valuefalseif 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. -
setCustomerAccount
-
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 valuetrueif the object exists in live mode or the valuefalseif 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.
-