Class: Stripe::TopupCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TopupCreateParams
- Defined in:
- lib/stripe/params/topup_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
A positive integer representing how much to transfer.
-
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#description ⇒ Object
An arbitrary string attached to the object.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#source ⇒ Object
The ID of a source to transfer funds from.
-
#statement_descriptor ⇒ Object
Extra information about a top-up for the source’s bank statement.
-
#transfer_group ⇒ Object
A string that identifies this top-up as part of a group.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, description: nil, expand: nil, metadata: nil, source: nil, statement_descriptor: nil, transfer_group: nil) ⇒ TopupCreateParams
constructor
A new instance of TopupCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, currency: nil, description: nil, expand: nil, metadata: nil, source: nil, statement_descriptor: nil, transfer_group: nil) ⇒ TopupCreateParams
Returns a new instance of TopupCreateParams.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/stripe/params/topup_create_params.rb', line 23 def initialize( amount: nil, currency: nil, description: nil, expand: nil, metadata: nil, source: nil, statement_descriptor: nil, transfer_group: nil ) @amount = amount @currency = currency @description = description = = @source = source @statement_descriptor = statement_descriptor @transfer_group = transfer_group end |
Instance Attribute Details
#amount ⇒ Object
A positive integer representing how much to transfer.
7 8 9 |
# File 'lib/stripe/params/topup_create_params.rb', line 7 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).
9 10 11 |
# File 'lib/stripe/params/topup_create_params.rb', line 9 def currency @currency end |
#description ⇒ Object
An arbitrary string attached to the object. Often useful for displaying to users.
11 12 13 |
# File 'lib/stripe/params/topup_create_params.rb', line 11 def description @description end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
13 14 15 |
# File 'lib/stripe/params/topup_create_params.rb', line 13 def end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
15 16 17 |
# File 'lib/stripe/params/topup_create_params.rb', line 15 def end |
#source ⇒ Object
The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](stripe.com/docs/connect/testing#testing-top-ups)).
17 18 19 |
# File 'lib/stripe/params/topup_create_params.rb', line 17 def source @source end |
#statement_descriptor ⇒ Object
Extra information about a top-up for the source’s bank statement. Limited to 15 ASCII characters.
19 20 21 |
# File 'lib/stripe/params/topup_create_params.rb', line 19 def statement_descriptor @statement_descriptor end |
#transfer_group ⇒ Object
A string that identifies this top-up as part of a group.
21 22 23 |
# File 'lib/stripe/params/topup_create_params.rb', line 21 def transfer_group @transfer_group end |