Class: Stripe::TestHelpers::CustomerService::FundCashBalanceParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::CustomerService::FundCashBalanceParams
- Defined in:
- lib/stripe/services/test_helpers/customer_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Amount to be used for this test cash balance transaction.
-
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), 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) ⇒ FundCashBalanceParams
constructor
A new instance of FundCashBalanceParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, currency: nil, expand: nil, reference: nil) ⇒ FundCashBalanceParams
Returns a new instance of FundCashBalanceParams.
17 18 19 20 21 22 |
# File 'lib/stripe/services/test_helpers/customer_service.rb', line 17 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](stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency).
9 10 11 |
# File 'lib/stripe/services/test_helpers/customer_service.rb', line 9 def amount @amount end |
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
11 12 13 |
# File 'lib/stripe/services/test_helpers/customer_service.rb', line 11 def currency @currency end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
13 14 15 |
# File 'lib/stripe/services/test_helpers/customer_service.rb', line 13 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](stripe.com/docs/payments/customer-balance/reconciliation) applies to different user inputs.
15 16 17 |
# File 'lib/stripe/services/test_helpers/customer_service.rb', line 15 def reference @reference end |