Class: Inttegro::Order::SendReceiptResponseDelivery

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

Overview

Delivery result for one hosted order document link.

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

#deliveries ⇒ Array<Object> (readonly)

Value of the deliveries field in the Inttegro API payload.

Required in the API payload. Wire name: deliveries.

Returns:

  • (Array<Object>)


57
58
59
60
61
62
63
64
# File 'lib/inttegro/order/send_receipt_response_delivery.rb', line 57

class SendReceiptResponseDelivery < T::Struct
  const :deliveries, T::Array[Object]
  const :document_kind, Inttegro::Order::SendReceiptResponseDeliveryDocumentKind
  const :document_url, String
  const :failed_channels, T.nilable(T::Array[Inttegro::Shared::DeliveryChannel]), default: nil
  const :failures, T.nilable(T::Array[Inttegro::Order::DocumentDeliveryFailure]), default: nil
  const :sent_channels, T::Array[Object]
end

#document_kind ⇒ Inttegro::Order::SendReceiptResponseDeliveryDocumentKind (readonly)

Value of the document_kind field in the Inttegro API payload.

Required in the API payload. Wire name: document_kind.



57
58
59
60
61
62
63
64
# File 'lib/inttegro/order/send_receipt_response_delivery.rb', line 57

class SendReceiptResponseDelivery < T::Struct
  const :deliveries, T::Array[Object]
  const :document_kind, Inttegro::Order::SendReceiptResponseDeliveryDocumentKind
  const :document_url, String
  const :failed_channels, T.nilable(T::Array[Inttegro::Shared::DeliveryChannel]), default: nil
  const :failures, T.nilable(T::Array[Inttegro::Order::DocumentDeliveryFailure]), default: nil
  const :sent_channels, T::Array[Object]
end

#document_url ⇒ String (readonly)

Hosted invoice or receipt URL sent to the customer. Receipt URLs use the hosted receipt path, not the invoice PDF path.

Required in the API payload. Wire name: document_url.

Returns:

  • (String)


57
58
59
60
61
62
63
64
# File 'lib/inttegro/order/send_receipt_response_delivery.rb', line 57

class SendReceiptResponseDelivery < T::Struct
  const :deliveries, T::Array[Object]
  const :document_kind, Inttegro::Order::SendReceiptResponseDeliveryDocumentKind
  const :document_url, String
  const :failed_channels, T.nilable(T::Array[Inttegro::Shared::DeliveryChannel]), default: nil
  const :failures, T.nilable(T::Array[Inttegro::Order::DocumentDeliveryFailure]), default: nil
  const :sent_channels, T::Array[Object]
end

#failed_channels ⇒ Array<Inttegro::Shared::DeliveryChannel>? (readonly)

Channels that failed to send.

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

Returns:



57
58
59
60
61
62
63
64
# File 'lib/inttegro/order/send_receipt_response_delivery.rb', line 57

class SendReceiptResponseDelivery < T::Struct
  const :deliveries, T::Array[Object]
  const :document_kind, Inttegro::Order::SendReceiptResponseDeliveryDocumentKind
  const :document_url, String
  const :failed_channels, T.nilable(T::Array[Inttegro::Shared::DeliveryChannel]), default: nil
  const :failures, T.nilable(T::Array[Inttegro::Order::DocumentDeliveryFailure]), default: nil
  const :sent_channels, T::Array[Object]
end

#failures ⇒ Array<Inttegro::Order::DocumentDeliveryFailure>? (readonly)

Per-channel delivery failures.

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



57
58
59
60
61
62
63
64
# File 'lib/inttegro/order/send_receipt_response_delivery.rb', line 57

class SendReceiptResponseDelivery < T::Struct
  const :deliveries, T::Array[Object]
  const :document_kind, Inttegro::Order::SendReceiptResponseDeliveryDocumentKind
  const :document_url, String
  const :failed_channels, T.nilable(T::Array[Inttegro::Shared::DeliveryChannel]), default: nil
  const :failures, T.nilable(T::Array[Inttegro::Order::DocumentDeliveryFailure]), default: nil
  const :sent_channels, T::Array[Object]
end

#sent_channels ⇒ Array<Object> (readonly)

Value of the sent_channels field in the Inttegro API payload.

Required in the API payload. Wire name: sent_channels.

Returns:

  • (Array<Object>)


57
58
59
60
61
62
63
64
# File 'lib/inttegro/order/send_receipt_response_delivery.rb', line 57

class SendReceiptResponseDelivery < T::Struct
  const :deliveries, T::Array[Object]
  const :document_kind, Inttegro::Order::SendReceiptResponseDeliveryDocumentKind
  const :document_url, String
  const :failed_channels, T.nilable(T::Array[Inttegro::Shared::DeliveryChannel]), default: nil
  const :failures, T.nilable(T::Array[Inttegro::Order::DocumentDeliveryFailure]), default: nil
  const :sent_channels, T::Array[Object]
end