Class: Stripe::AccountCapabilityService::UpdateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::AccountCapabilityService::UpdateParams
- Defined in:
- lib/stripe/services/account_capability_service.rb
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#requested ⇒ Object
To request a new capability for an account, pass true.
Instance Method Summary collapse
-
#initialize(expand: nil, requested: nil) ⇒ UpdateParams
constructor
A new instance of UpdateParams.
Methods inherited from RequestParams
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 = @requested = requested end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
26 27 28 |
# File 'lib/stripe/services/account_capability_service.rb', line 26 def @expand end |
#requested ⇒ Object
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 |