Class: Stripe::TestHelpers::CustomerFundCashBalanceParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::CustomerFundCashBalanceParams
- Defined in:
- lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Amount to be used for this test cash balance transaction.
-
#currency ⇒ Object
Three-letter ISO currency code, in lowercase.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#reference ⇒ Object
A description of the test funding.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, expand: nil, reference: nil) ⇒ CustomerFundCashBalanceParams
constructor
A new instance of CustomerFundCashBalanceParams.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(amount: nil, currency: nil, expand: nil, reference: nil) ⇒ CustomerFundCashBalanceParams
Returns a new instance of CustomerFundCashBalanceParams.
16 17 18 19 20 21 |
# File 'lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb', line 16 def initialize(amount: nil, currency: nil, expand: nil, reference: nil) @amount = amount @currency = currency @expand = @reference = reference end |
Instance Attribute Details
#amount ⇒ Object
Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the smallest currency unit (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency).
8 9 10 |
# File 'lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb', line 8 def amount @amount end |
#currency ⇒ Object
Three-letter ISO currency code, in lowercase. Must be a supported currency.
10 11 12 |
# File 'lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb', line 10 def currency @currency end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
12 13 14 |
# File 'lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb', line 12 def @expand end |
#reference ⇒ Object
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 applies to different user inputs.
14 15 16 |
# File 'lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb', line 14 def reference @reference end |