Class: Stripe::AccountExternalAccountService::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/account_external_account_service.rb

Defined Under Namespace

Classes: BankAccount, Card, CardToken

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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 = expand
  @external_account = 
  @metadata = 
end

Instance Attribute Details

#default_for_currencyObject

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

#expandObject

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
  @expand
end

#external_accountObject

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
end

#metadataObject

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