Class: Straddle::Models::CapabilityRequestCreateParams::Businesses
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::CapabilityRequestCreateParams::Businesses
- Defined in:
- lib/straddle/models/capability_request_create_params.rb,
sig/straddle/models/capability_request_create_params.rbs
Instance Attribute Summary collapse
-
#enable ⇒ Boolean
Whether the request enables or disables the capability.
Instance Method Summary collapse
-
#initialize(account_id:, businesses: nil, charges: nil, individuals: nil, internet: nil, payouts: nil, signed_agreement: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {}) ⇒ Businesses
constructor
A new instance of Businesses.
- #to_hash ⇒ { enable: bool }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(account_id:, businesses: nil, charges: nil, individuals: nil, internet: nil, payouts: nil, signed_agreement: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {}) ⇒ Businesses
Returns a new instance of Businesses.
92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/straddle/models/capability_request_create_params.rb', line 92 class Businesses < Straddle::Internal::Type::BaseModel # @!attribute enable # Whether the request enables or disables the capability. # # @return [Boolean] required :enable, Straddle::Internal::Type::Boolean # @!method initialize(enable:) # Request to enable or disable payments from businesses. # # @param enable [Boolean] Whether the request enables or disables the capability. end |
Instance Attribute Details
#enable ⇒ Boolean
Whether the request enables or disables the capability.
97 |
# File 'lib/straddle/models/capability_request_create_params.rb', line 97 required :enable, Straddle::Internal::Type::Boolean |
Instance Method Details
#to_hash ⇒ { enable: bool }
107 |
# File 'sig/straddle/models/capability_request_create_params.rbs', line 107
def to_hash: -> { enable: bool }
|