Class: Stripe::AccountLink::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::AccountLink::CreateParams
- Defined in:
- lib/stripe/resources/account_link.rb
Defined Under Namespace
Classes: CollectionOptions
Instance Attribute Summary collapse
-
#account ⇒ Object
The identifier of the account to create an account link for.
-
#collect ⇒ Object
The collect parameter is deprecated.
-
#collection_options ⇒ Object
Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#refresh_url ⇒ Object
The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid.
-
#return_url ⇒ Object
The URL that the user will be redirected to upon leaving or completing the linked flow.
-
#type ⇒ Object
The type of account link the user is requesting.
Instance Method Summary collapse
-
#initialize(account: nil, collect: nil, collection_options: nil, expand: nil, refresh_url: nil, return_url: nil, type: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
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 = account @collect = collect @collection_options = @expand = @refresh_url = refresh_url @return_url = return_url @type = type end |
Instance Attribute Details
#account ⇒ Object
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 @account end |
#collect ⇒ Object
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_options ⇒ Object
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 end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
36 37 38 |
# File 'lib/stripe/resources/account_link.rb', line 36 def @expand end |
#refresh_url ⇒ Object
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_url ⇒ Object
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 |
#type ⇒ Object
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 |