Class: MetronomeSDK::Models::V1::ContractCreateResponse::Data::Contract::Transition

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/contract_create_response.rb

Defined Under Namespace

Modules: Type

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(from_contract_id:, to_contract_id:, type:) ⇒ Object

Parameters:



273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/metronome_sdk/models/v1/contract_create_response.rb', line 273

class Transition < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute from_contract_id
  #
  #   @return [String]
  required :from_contract_id, String

  # @!attribute to_contract_id
  #
  #   @return [String]
  required :to_contract_id, String

  # @!attribute type
  #
  #   @return [Symbol, MetronomeSDK::Models::V1::ContractCreateResponse::Data::Contract::Transition::Type]
  required :type,
           enum: -> { MetronomeSDK::Models::V1::ContractCreateResponse::Data::Contract::Transition::Type }

  # @!method initialize(from_contract_id:, to_contract_id:, type:)
  #   @param from_contract_id [String]
  #   @param to_contract_id [String]
  #   @param type [Symbol, MetronomeSDK::Models::V1::ContractCreateResponse::Data::Contract::Transition::Type]

  # @see MetronomeSDK::Models::V1::ContractCreateResponse::Data::Contract::Transition#type
  module Type
    extend MetronomeSDK::Internal::Type::Enum

    SUPERSEDE = :SUPERSEDE
    RENEWAL = :RENEWAL

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#from_contract_idString

Returns:

  • (String)


277
# File 'lib/metronome_sdk/models/v1/contract_create_response.rb', line 277

required :from_contract_id, String

#to_contract_idString

Returns:

  • (String)


282
# File 'lib/metronome_sdk/models/v1/contract_create_response.rb', line 282

required :to_contract_id, String

#typeSymbol, MetronomeSDK::Models::V1::ContractCreateResponse::Data::Contract::Transition::Type



287
288
# File 'lib/metronome_sdk/models/v1/contract_create_response.rb', line 287

required :type,
enum: -> { MetronomeSDK::Models::V1::ContractCreateResponse::Data::Contract::Transition::Type }