Class: Inttegro::Order::DocumentDeliveryFailure

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/order/document_delivery_failure.rb

Overview

Chime delivery failure for one channel.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#channel ⇒ Inttegro::Shared::DeliveryChannel? (readonly)

Delivery channel.

Optional in the API payload; omitted values default to nil. Wire name: channel.



30
31
32
33
# File 'lib/inttegro/order/document_delivery_failure.rb', line 30

class DocumentDeliveryFailure < T::Struct
  const :channel, T.nilable(Inttegro::Shared::DeliveryChannel), default: nil
  const :error, T.nilable(String), default: nil
end

#error ⇒ String? (readonly)

Provider or Chime error for this channel.

Optional in the API payload; omitted values default to nil. Wire name: error.

Returns:

  • (String, nil)


30
31
32
33
# File 'lib/inttegro/order/document_delivery_failure.rb', line 30

class DocumentDeliveryFailure < T::Struct
  const :channel, T.nilable(Inttegro::Shared::DeliveryChannel), default: nil
  const :error, T.nilable(String), default: nil
end