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.
  • Constructor Details

    • CustomerCashBalanceTransaction

      public CustomerCashBalanceTransaction()
  • Method Details

    • getCustomer

      public String getCustomer()
      Get ID of expandable customer object.
    • setCustomer

      public void setCustomer(String id)
    • getCustomerObject

      public Customer getCustomerObject()
      Get expanded customer.
    • setCustomerObject

      public void setCustomerObject(Customer expandableObject)
    • getAdjustedForOverdraft

      public CustomerCashBalanceTransaction.AdjustedForOverdraft getAdjustedForOverdraft()
    • getAppliedToPayment

    • getCreated

      public Long getCreated()
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • getEndingBalance

      public Long getEndingBalance()
      The total available cash balance for the specified currency after this transaction was applied. Represented in the smallest currency unit.
    • getFunded

    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getNetAmount

      public Long 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

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to customer_cash_balance_transaction.

    • getRefundedFromPayment

      public CustomerCashBalanceTransaction.RefundedFromPayment getRefundedFromPayment()
    • getTransferredToBalance

      public CustomerCashBalanceTransaction.TransferredToBalance getTransferredToBalance()
    • getType

      public String 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, or unapplied_from_payment.

    • getUnappliedFromPayment

      public CustomerCashBalanceTransaction.UnappliedFromPayment getUnappliedFromPayment()
    • setAdjustedForOverdraft

      public void setAdjustedForOverdraft(CustomerCashBalanceTransaction.AdjustedForOverdraft adjustedForOverdraft)
    • setAppliedToPayment

      public void setAppliedToPayment(CustomerCashBalanceTransaction.AppliedToPayment appliedToPayment)
    • setCreated

      public void setCreated(Long created)
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setEndingBalance

      public void setEndingBalance(Long endingBalance)
      The total available cash balance for the specified currency after this transaction was applied. Represented in the smallest currency unit.
    • setFunded

      public void setFunded(CustomerCashBalanceTransaction.Funded funded)
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setNetAmount

      public void setNetAmount(Long netAmount)
      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

      public void setObject(String object)
      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

      public void setType(String type)
      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, or unapplied_from_payment.

    • setUnappliedFromPayment

      public void setUnappliedFromPayment(CustomerCashBalanceTransaction.UnappliedFromPayment unappliedFromPayment)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId