Class: Straddle::Models::CapabilityRequestCreateParams::Businesses

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/capability_request_create_params.rb,
sig/straddle/models/capability_request_create_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



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.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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 }

Returns:

  • ({ enable: bool })


107
# File 'sig/straddle/models/capability_request_create_params.rbs', line 107

def to_hash: -> { enable: bool }