Class: ModernTreasury::Models::HoldCreateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/hold_create_response.rb

Overview

Defined Under Namespace

Modules: Object, Status, TargetType

Instance Attribute Summary collapse

Class Method 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(id: , created_at: , object: , status: , target_id: , target_type: , updated_at: , live_mode: nil, metadata: nil, reason: nil, resolution: nil, resolved_at: nil) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::HoldCreateResponse for more details.

Parameters:

  • id (String) (defaults to: )
  • created_at (Time) (defaults to: )
  • object (Symbol, ModernTreasury::Models::HoldCreateResponse::Object) (defaults to: )

    The type of object

  • status (Symbol, ModernTreasury::Models::HoldCreateResponse::Status) (defaults to: )

    The status of the hold

  • target_id (String) (defaults to: )

    The ID of the target being held

  • target_type (Symbol, ModernTreasury::Models::HoldCreateResponse::TargetType) (defaults to: )

    The type of target being held

  • updated_at (Time) (defaults to: )
  • live_mode (Boolean) (defaults to: nil)

    This field will be true if this object exists in the live environment or false i

  • metadata (Hash{Symbol=>String}, nil) (defaults to: nil)

    Additional metadata for the hold

  • reason (String, nil) (defaults to: nil)

    The reason for the hold

  • resolution (String, nil) (defaults to: nil)

    The resolution of the hold

  • resolved_at (Time, nil) (defaults to: nil)

    When the hold was resolved



# File 'lib/modern_treasury/models/hold_create_response.rb', line 77


Instance Attribute Details

#created_atTime

Returns:

  • (Time)


15
# File 'lib/modern_treasury/models/hold_create_response.rb', line 15

required :created_at, Time

#idString

Returns:

  • (String)


10
# File 'lib/modern_treasury/models/hold_create_response.rb', line 10

required :id, String

#live_modeBoolean?

This field will be true if this object exists in the live environment or false if it exists in the test environment.

Returns:

  • (Boolean, nil)


51
# File 'lib/modern_treasury/models/hold_create_response.rb', line 51

optional :live_mode, ModernTreasury::Internal::Type::Boolean

#metadataHash{Symbol=>String}?

Additional metadata for the hold

Returns:

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


57
# File 'lib/modern_treasury/models/hold_create_response.rb', line 57

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

#objectSymbol, ModernTreasury::Models::HoldCreateResponse::Object

The type of object



21
# File 'lib/modern_treasury/models/hold_create_response.rb', line 21

required :object, enum: -> { ModernTreasury::Models::HoldCreateResponse::Object }

#reasonString?

The reason for the hold

Returns:

  • (String, nil)


63
# File 'lib/modern_treasury/models/hold_create_response.rb', line 63

optional :reason, String, nil?: true

#resolutionString?

The resolution of the hold

Returns:

  • (String, nil)


69
# File 'lib/modern_treasury/models/hold_create_response.rb', line 69

optional :resolution, String, nil?: true

#resolved_atTime?

When the hold was resolved

Returns:

  • (Time, nil)


75
# File 'lib/modern_treasury/models/hold_create_response.rb', line 75

optional :resolved_at, Time, nil?: true

#statusSymbol, ModernTreasury::Models::HoldCreateResponse::Status

The status of the hold



27
# File 'lib/modern_treasury/models/hold_create_response.rb', line 27

required :status, enum: -> { ModernTreasury::Models::HoldCreateResponse::Status }

#target_idString

The ID of the target being held

Returns:

  • (String)


33
# File 'lib/modern_treasury/models/hold_create_response.rb', line 33

required :target_id, String

#target_typeSymbol, ModernTreasury::Models::HoldCreateResponse::TargetType

The type of target being held



39
# File 'lib/modern_treasury/models/hold_create_response.rb', line 39

required :target_type, enum: -> { ModernTreasury::Models::HoldCreateResponse::TargetType }

#updated_atTime

Returns:

  • (Time)


44
# File 'lib/modern_treasury/models/hold_create_response.rb', line 44

required :updated_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/hold_create_response.rb', line 113