Class: Stripe::AccountCapabilityService::UpdateParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(expand: nil, requested: nil) ⇒ UpdateParams

Returns a new instance of UpdateParams.



32
33
34
35
# File 'lib/stripe/services/account_capability_service.rb', line 32

def initialize(expand: nil, requested: nil)
  @expand = expand
  @requested = requested
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



26
27
28
# File 'lib/stripe/services/account_capability_service.rb', line 26

def expand
  @expand
end

#requestedObject

To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the ‘requirements` arrays.

If a capability isn’t permanent, you can remove it from the account by passing false. Some capabilities are permanent after they’ve been requested. Attempting to remove a permanent capability returns an error.



30
31
32
# File 'lib/stripe/services/account_capability_service.rb', line 30

def requested
  @requested
end