Class: Stripe::AccountCapabilityUpdateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/account_capability_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of AccountCapabilityUpdateParams.



13
14
15
16
# File 'lib/stripe/params/account_capability_update_params.rb', line 13

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

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



7
8
9
# File 'lib/stripe/params/account_capability_update_params.rb', line 7

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.



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

def requested
  @requested
end