Class: Stripe::AccountExternalAccountService::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::AccountExternalAccountService::CreateParams
- Defined in:
- lib/stripe/services/account_external_account_service.rb
Defined Under Namespace
Classes: BankAccount, Card, CardToken
Instance Attribute Summary collapse
-
#default_for_currency ⇒ Object
When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#external_account ⇒ Object
A token, like the ones returned by [Stripe.js](stripe.com/docs/js) or a dictionary containing a user’s external account details (with the options shown below).
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
Instance Method Summary collapse
-
#initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
247 248 249 250 251 252 |
# File 'lib/stripe/services/account_external_account_service.rb', line 247 def initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil) @default_for_currency = default_for_currency @expand = @external_account = external_account @metadata = end |
Instance Attribute Details
#default_for_currency ⇒ Object
When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
239 240 241 |
# File 'lib/stripe/services/account_external_account_service.rb', line 239 def default_for_currency @default_for_currency end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
241 242 243 |
# File 'lib/stripe/services/account_external_account_service.rb', line 241 def @expand end |
#external_account ⇒ Object
A token, like the ones returned by [Stripe.js](stripe.com/docs/js) or a dictionary containing a user’s external account details (with the options shown below). Please refer to full [documentation](stripe.com/docs/api/external_accounts) instead.
243 244 245 |
# File 'lib/stripe/services/account_external_account_service.rb', line 243 def external_account @external_account 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`.
245 246 247 |
# File 'lib/stripe/services/account_external_account_service.rb', line 245 def @metadata end |