Class: Stripe::CustomerFundCashBalanceParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/customer_fund_cash_balance_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil, expand: nil, reference: nil) ⇒ CustomerFundCashBalanceParams

Returns a new instance of CustomerFundCashBalanceParams.



15
16
17
18
19
20
# File 'lib/stripe/params/customer_fund_cash_balance_params.rb', line 15

def initialize(amount: nil, currency: nil, expand: nil, reference: nil)
  @amount = amount
  @currency = currency
  @expand = expand
  @reference = reference
end

Instance Attribute Details

#amountObject

Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency).



7
8
9
# File 'lib/stripe/params/customer_fund_cash_balance_params.rb', line 7

def amount
  @amount
end

#currencyObject

Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).



9
10
11
# File 'lib/stripe/params/customer_fund_cash_balance_params.rb', line 9

def currency
  @currency
end

#expandObject

Specifies which fields in the response should be expanded.



11
12
13
# File 'lib/stripe/params/customer_fund_cash_balance_params.rb', line 11

def expand
  @expand
end

#referenceObject

A description of the test funding. This simulates free-text references supplied by customers when making bank transfers to their cash balance. You can use this to test how Stripe’s [reconciliation algorithm](stripe.com/docs/payments/customer-balance/reconciliation) applies to different user inputs.



13
14
15
# File 'lib/stripe/params/customer_fund_cash_balance_params.rb', line 13

def reference
  @reference
end