Class: Inttegro::Checkout::InvoiceViewFormat

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/invoice_view_format.rb

Overview

Typed representation of the invoice view 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::Checkout::InvoiceViewFormatPdf? (readonly)

Value of the pdf field in the Inttegro API payload.

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



38
39
40
41
42
# File 'lib/inttegro/checkout/invoice_view_format.rb', line 38

class InvoiceViewFormat < T::Struct
  const :web, T.nilable(Inttegro::Checkout::InvoiceViewFormatWeb), default: nil
  const :pdf, T.nilable(Inttegro::Checkout::InvoiceViewFormatPdf), default: nil
  const :receipt, T.nilable(Inttegro::Checkout::InvoiceViewFormatReceipt), default: nil
end

#receipt ⇒ Inttegro::Checkout::InvoiceViewFormatReceipt? (readonly)

Value of the receipt field in the Inttegro API payload.

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



38
39
40
41
42
# File 'lib/inttegro/checkout/invoice_view_format.rb', line 38

class InvoiceViewFormat < T::Struct
  const :web, T.nilable(Inttegro::Checkout::InvoiceViewFormatWeb), default: nil
  const :pdf, T.nilable(Inttegro::Checkout::InvoiceViewFormatPdf), default: nil
  const :receipt, T.nilable(Inttegro::Checkout::InvoiceViewFormatReceipt), default: nil
end

#web ⇒ Inttegro::Checkout::InvoiceViewFormatWeb? (readonly)

Value of the web field in the Inttegro API payload.

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



38
39
40
41
42
# File 'lib/inttegro/checkout/invoice_view_format.rb', line 38

class InvoiceViewFormat < T::Struct
  const :web, T.nilable(Inttegro::Checkout::InvoiceViewFormatWeb), default: nil
  const :pdf, T.nilable(Inttegro::Checkout::InvoiceViewFormatPdf), default: nil
  const :receipt, T.nilable(Inttegro::Checkout::InvoiceViewFormatReceipt), default: nil
end