Class: Courier::Models::AutomationRunStep

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/automation_run_step.rb,
sig/courier/models/automation_run_step.rbs

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(action:, status:, created_at: nil, message_id: nil, step_id: nil, updated_at: nil) ⇒ Object

Some parameter documentations has been truncated, see Courier::Models::AutomationRunStep for more details.

One executed step of an Automation run.

Parameters:

  • action (String)

    The kind of step that ran, e.g. send, delay, or update-profile.

  • status (String)

    The state of the step: the seven run statuses, plus SKIPPED and COMPUTING. N

  • created_at (String) (defaults to: nil)

    When the step started, as an ISO 8601 timestamp.

  • message_id (String) (defaults to: nil)

    The message this step produced, present on send steps. Pass it to `GET /messages

  • step_id (String) (defaults to: nil)

    A unique identifier representing the step.

  • updated_at (String) (defaults to: nil)

    When the step last changed state, as an ISO 8601 timestamp.



# File 'lib/courier/models/automation_run_step.rb', line 45

Instance Attribute Details

#actionString

The kind of step that ran, e.g. send, delay, or update-profile.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/courier/models/automation_run_step.rb', line 10

required :action, String

#created_atString?

When the step started, as an ISO 8601 timestamp.

Parameters:

  • (String)

Returns:

  • (String, nil)


23
# File 'lib/courier/models/automation_run_step.rb', line 23

optional :created_at, String

#message_idString?

The message this step produced, present on send steps. Pass it to GET /messages/{message_id} for delivery status. A send to a List or an Audience yields one id for the request, not one per recipient.

Parameters:

  • (String)

Returns:

  • (String, nil)


31
# File 'lib/courier/models/automation_run_step.rb', line 31

optional :message_id, String

#statusString

The state of the step: the seven run statuses, plus SKIPPED and COMPUTING. Not an enum — new values have been added before.

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/courier/models/automation_run_step.rb', line 17

required :status, String

#step_idString?

A unique identifier representing the step.

Parameters:

  • (String)

Returns:

  • (String, nil)


37
# File 'lib/courier/models/automation_run_step.rb', line 37

optional :step_id, String

#updated_atString?

When the step last changed state, as an ISO 8601 timestamp.

Parameters:

  • (String)

Returns:

  • (String, nil)


43
# File 'lib/courier/models/automation_run_step.rb', line 43

optional :updated_at, String

Instance Method Details

#to_hash{

Returns:

  • ({)


43
# File 'sig/courier/models/automation_run_step.rbs', line 43

def to_hash: -> {