Package com.stripe.model
Class CustomerCashBalanceTransaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.CustomerCashBalanceTransaction
- All Implemented Interfaces:
HasId,StripeObjectInterface
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 classstatic classstatic classThe full name of the sender, as supplied by the sending bank.static class -
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()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) 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) voidThe type of the cash balance transaction.voidsetUnappliedFromPayment(CustomerCashBalanceTransaction.UnappliedFromPayment unappliedFromPayment) Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CustomerCashBalanceTransaction
public CustomerCashBalanceTransaction()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomerobject. -
setCustomer
-
getCustomerObject
Get expandedcustomer. -
setCustomerObject
-
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 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
-
getType
The type of the cash balance transaction. One ofapplied_to_payment,unapplied_from_payment,refunded_from_payment,funded,return_initiated, orreturn_canceled. New types may be added in future. See Customer Balance to learn more about these types. -
getUnappliedFromPayment
-
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 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) -
setType
The type of the cash balance transaction. One ofapplied_to_payment,unapplied_from_payment,refunded_from_payment,funded,return_initiated, orreturn_canceled. New types may be added in future. See Customer Balance to learn more about these types. -
setUnappliedFromPayment
public void setUnappliedFromPayment(CustomerCashBalanceTransaction.UnappliedFromPayment unappliedFromPayment) -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-