Class: Stripe::V2::Core::AccountLink::UseCase::AccountOnboarding

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/v2/core/account_link.rb

Defined Under Namespace

Classes: CollectionOptions

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#collection_optionsObject (readonly)

Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.



31
32
33
# File 'lib/stripe/resources/v2/core/account_link.rb', line 31

def collection_options
  @collection_options
end

#configurationsObject (readonly)

Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s.



33
34
35
# File 'lib/stripe/resources/v2/core/account_link.rb', line 33

def configurations
  @configurations
end

#refresh_urlObject (readonly)

The URL the user will be redirected to if the AccountLink is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new AccountLink with the same parameters used to create the original AccountLink, then redirect the user to the new AccountLink’s URL so they can continue the flow. If a new AccountLink cannot be generated or the redirect fails you should display a useful error to the user. Please make sure to implement authentication before redirecting the user in case this URL is leaked to a third party.



35
36
37
# File 'lib/stripe/resources/v2/core/account_link.rb', line 35

def refresh_url
  @refresh_url
end

#return_urlObject (readonly)

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



37
38
39
# File 'lib/stripe/resources/v2/core/account_link.rb', line 37

def return_url
  @return_url
end

Class Method Details

.field_remappingsObject



43
44
45
# File 'lib/stripe/resources/v2/core/account_link.rb', line 43

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



39
40
41
# File 'lib/stripe/resources/v2/core/account_link.rb', line 39

def self.inner_class_types
  @inner_class_types = { collection_options: CollectionOptions }
end