Class: Inttegro::Order::DocumentDeliverySummary

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

Overview

Bounded aggregate of Chime-accepted sends for one generated order document.

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

#channels ⇒ Inttegro::Order::DocumentDeliverySummaryChannels (readonly)

Accepted send totals grouped by delivery channel. Channels with no accepted sends are omitted.

Required in the API payload. Wire name: channels.



37
38
39
40
41
# File 'lib/inttegro/order/document_delivery_summary.rb', line 37

class DocumentDeliverySummary < T::Struct
  const :channels, Inttegro::Order::DocumentDeliverySummaryChannels
  const :latest_sent_at, Time
  const :total_count, Integer
end

#latest_sent_at ⇒ Time (readonly)

Latest authoritative Chime acceptance time across all channels.

Required in the API payload. Wire name: latest_sent_at.

Returns:

  • (Time)


37
38
39
40
41
# File 'lib/inttegro/order/document_delivery_summary.rb', line 37

class DocumentDeliverySummary < T::Struct
  const :channels, Inttegro::Order::DocumentDeliverySummaryChannels
  const :latest_sent_at, Time
  const :total_count, Integer
end

#total_count ⇒ Integer (readonly)

Total channel deliveries accepted for this document.

Required in the API payload. Wire name: total_count.

Returns:

  • (Integer)


37
38
39
40
41
# File 'lib/inttegro/order/document_delivery_summary.rb', line 37

class DocumentDeliverySummary < T::Struct
  const :channels, Inttegro::Order::DocumentDeliverySummaryChannels
  const :latest_sent_at, Time
  const :total_count, Integer
end