Class: Stripe::AccountLink::CreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/account_link.rb

Defined Under Namespace

Classes: CollectionOptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(account: nil, collect: nil, collection_options: nil, expand: nil, refresh_url: nil, return_url: nil, type: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/stripe/resources/account_link.rb', line 44

def initialize(
  account: nil,
  collect: nil,
  collection_options: nil,
  expand: nil,
  refresh_url: nil,
  return_url: nil,
  type: nil
)
  @account = 
  @collect = collect
  @collection_options = collection_options
  @expand = expand
  @refresh_url = refresh_url
  @return_url = return_url
  @type = type
end

Instance Attribute Details

#accountObject

The identifier of the account to create an account link for.



30
31
32
# File 'lib/stripe/resources/account_link.rb', line 30

def 
  @account
end

#collectObject

The collect parameter is deprecated. Use ‘collection_options` instead.



32
33
34
# File 'lib/stripe/resources/account_link.rb', line 32

def collect
  @collect
end

#collection_optionsObject

Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.



34
35
36
# File 'lib/stripe/resources/account_link.rb', line 34

def collection_options
  @collection_options
end

#expandObject

Specifies which fields in the response should be expanded.



36
37
38
# File 'lib/stripe/resources/account_link.rb', line 36

def expand
  @expand
end

#refresh_urlObject

The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link’s URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.



38
39
40
# File 'lib/stripe/resources/account_link.rb', line 38

def refresh_url
  @refresh_url
end

#return_urlObject

The URL that the user will be redirected to upon leaving or completing the linked flow.



40
41
42
# File 'lib/stripe/resources/account_link.rb', line 40

def return_url
  @return_url
end

#typeObject

The type of account link the user is requesting. Possible values are ‘account_onboarding` or `account_update`.



42
43
44
# File 'lib/stripe/resources/account_link.rb', line 42

def type
  @type
end