Class: Inttegro::Order::InvoiceFormat

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

Overview

Typed representation of the invoice format object in the Inttegro API.

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

#pdf ⇒ Inttegro::Order::DocumentFormat (readonly)

Value of the pdf field in the Inttegro API payload.

Required in the API payload. Wire name: pdf.



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

class InvoiceFormat < T::Struct
  const :web, Inttegro::Order::DocumentFormat
  const :pdf, Inttegro::Order::DocumentFormat
  const :receipt, T.nilable(Inttegro::Order::ReceiptDocumentFormat), default: nil
end

#receipt ⇒ Inttegro::Order::ReceiptDocumentFormat? (readonly)

Value of the receipt field in the Inttegro API payload.

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



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

class InvoiceFormat < T::Struct
  const :web, Inttegro::Order::DocumentFormat
  const :pdf, Inttegro::Order::DocumentFormat
  const :receipt, T.nilable(Inttegro::Order::ReceiptDocumentFormat), default: nil
end

#web ⇒ Inttegro::Order::DocumentFormat (readonly)

Value of the web field in the Inttegro API payload.

Required in the API payload. Wire name: web.



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

class InvoiceFormat < T::Struct
  const :web, Inttegro::Order::DocumentFormat
  const :pdf, Inttegro::Order::DocumentFormat
  const :receipt, T.nilable(Inttegro::Order::ReceiptDocumentFormat), default: nil
end