Class: Stripe::FinancialConnections::SessionCreateParams::AccountHolder

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/financial_connections/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(account: nil, customer: nil, type: nil) ⇒ AccountHolder

Returns a new instance of AccountHolder.



15
16
17
18
19
# File 'lib/stripe/params/financial_connections/session_create_params.rb', line 15

def initialize(account: nil, customer: nil, type: nil)
  @account = 
  @customer = customer
  @type = type
end

Instance Attribute Details

#accountObject

The ID of the Stripe account whose accounts will be retrieved. Should only be present if ‘type` is `account`.



9
10
11
# File 'lib/stripe/params/financial_connections/session_create_params.rb', line 9

def 
  @account
end

#customerObject

The ID of the Stripe customer whose accounts will be retrieved. Should only be present if ‘type` is `customer`.



11
12
13
# File 'lib/stripe/params/financial_connections/session_create_params.rb', line 11

def customer
  @customer
end

#typeObject

Type of account holder to collect accounts for.



13
14
15
# File 'lib/stripe/params/financial_connections/session_create_params.rb', line 13

def type
  @type
end