Module: Courier::Models::CancelJourneyResponse

Extended by:
Internal::Type::Union
Defined in:
lib/courier/models/cancel_journey_response.rb,
sig/courier/models/cancel_journey_response.rbs

Overview

202 Accepted body for POST /journeys/cancel, returning the submitted identifier. When called with cancelation_token, returns { cancelation_token }; when called with run_id, returns { run_id, status }.

See Also:

  • Courier::Resources::Journeys#cancel

Defined Under Namespace

Classes: RunIDBranch, TokenBranch

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(cancelation_token:) ⇒ Object

Parameters:

  • cancelation_token (String)


# File 'lib/courier/models/cancel_journey_response.rb', line 24

#self?.variants::Array[Courier::Models::cancel_journey_response]

Returns:

  • (::Array[Courier::Models::cancel_journey_response])


32
# File 'sig/courier/models/cancel_journey_response.rbs', line 32

def self?.variants: -> ::Array[Courier::Models::cancel_journey_response]