Class: Stripe::PaymentMethodService::CreateParams::UsBankAccount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(account_holder_type: nil, account_number: nil, account_type: nil, financial_connections_account: nil, routing_number: nil) ⇒ UsBankAccount

Returns a new instance of UsBankAccount.



407
408
409
410
411
412
413
414
415
416
417
418
419
# File 'lib/stripe/services/payment_method_service.rb', line 407

def initialize(
  account_holder_type: nil,
  account_number: nil,
  account_type: nil,
  financial_connections_account: nil,
  routing_number: nil
)
  @account_holder_type = 
  @account_number = 
  @account_type = 
  @financial_connections_account = 
  @routing_number = routing_number
end

Instance Attribute Details

#account_holder_typeObject

Account holder type: individual or company.



397
398
399
# File 'lib/stripe/services/payment_method_service.rb', line 397

def 
  @account_holder_type
end

#account_numberObject

Account number of the bank account.



399
400
401
# File 'lib/stripe/services/payment_method_service.rb', line 399

def 
  @account_number
end

#account_typeObject

Account type: checkings or savings. Defaults to checking if omitted.



401
402
403
# File 'lib/stripe/services/payment_method_service.rb', line 401

def 
  @account_type
end

#financial_connections_accountObject

The ID of a Financial Connections Account to use as a payment method.



403
404
405
# File 'lib/stripe/services/payment_method_service.rb', line 403

def 
  @financial_connections_account
end

#routing_numberObject

Routing number of the bank account.



405
406
407
# File 'lib/stripe/services/payment_method_service.rb', line 405

def routing_number
  @routing_number
end