Class: ModernTreasury::Models::HoldCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModernTreasury::Models::HoldCreateParams
- 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
-
#metadata ⇒ Hash{Symbol=>String}?
Additional metadata for the hold.
-
#reason ⇒ String?
The reason for the hold.
-
#status ⇒ Symbol, ModernTreasury::Models::HoldCreateParams::Status
The status of the hold.
-
#target_id ⇒ String
The ID of the target to hold.
-
#target_type ⇒ Symbol, ModernTreasury::Models::HoldCreateParams::TargetType
The type of target to hold.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(status: , target_id: , target_type: , metadata: nil, reason: nil, request_options: {}) ⇒ Object constructor
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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
|
|
# File 'lib/modern_treasury/models/hold_create_params.rb', line 40
|
Instance Attribute Details
#metadata ⇒ Hash{Symbol=>String}?
Additional metadata for the hold
32 |
# File 'lib/modern_treasury/models/hold_create_params.rb', line 32 optional :metadata, ModernTreasury::Internal::Type::HashOf[String], nil?: true |
#reason ⇒ String?
The reason for the hold
38 |
# File 'lib/modern_treasury/models/hold_create_params.rb', line 38 optional :reason, String, nil?: true |
#status ⇒ Symbol, 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_id ⇒ String
The ID of the target to hold
20 |
# File 'lib/modern_treasury/models/hold_create_params.rb', line 20 required :target_id, String |
#target_type ⇒ Symbol, 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
.values ⇒ Array<Symbol>
|
|
# File 'lib/modern_treasury/models/hold_create_params.rb', line 59
|