Class: ModernTreasury::Models::HoldCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/modern_treasury/models/hold_create_params.rb

Overview

Defined Under Namespace

Modules: Status, TargetType

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(status: , target_id: , target_type: , metadata: nil, reason: nil, request_options: {}) ⇒ Object

Parameters:



# File 'lib/modern_treasury/models/hold_create_params.rb', line 40

Instance Attribute Details

#metadataHash{Symbol=>String}?

Additional metadata for the hold

Returns:

  • (Hash{Symbol=>String}, nil)


32
# File 'lib/modern_treasury/models/hold_create_params.rb', line 32

optional :metadata, ModernTreasury::Internal::Type::HashOf[String], nil?: true

#reasonString?

The reason for the hold

Returns:

  • (String, nil)


38
# File 'lib/modern_treasury/models/hold_create_params.rb', line 38

optional :reason, String, nil?: true

#statusSymbol, ModernTreasury::Models::HoldCreateParams::Status

The status of the hold



14
# File 'lib/modern_treasury/models/hold_create_params.rb', line 14

required :status, enum: -> { ModernTreasury::HoldCreateParams::Status }

#target_idString

The ID of the target to hold

Returns:

  • (String)


20
# File 'lib/modern_treasury/models/hold_create_params.rb', line 20

required :target_id, String

#target_typeSymbol, ModernTreasury::Models::HoldCreateParams::TargetType

The type of target to hold



26
# File 'lib/modern_treasury/models/hold_create_params.rb', line 26

required :target_type, enum: -> { ModernTreasury::HoldCreateParams::TargetType }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/hold_create_params.rb', line 59