Class: Inttegro::Price::Page

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/price/page.rb

Overview

Typed representation of the page 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

#number ⇒ Integer (readonly)

The page number returned

Required in the API payload. Wire name: number.

Returns:

  • (Integer)


37
38
39
40
41
# File 'lib/inttegro/price/page.rb', line 37

class Page < T::Struct
  const :number, Integer
  const :size, Integer
  const :prices, T::Array[T.any(Inttegro::Price::Fixed, Inttegro::Customer::SelectedCatalogPrice)]
end

#prices ⇒ Array<Inttegro::Price::Fixed, Inttegro::Customer::SelectedCatalogPrice> (readonly)

Value of the prices field in the Inttegro API payload.

Required in the API payload. Wire name: prices.



37
38
39
40
41
# File 'lib/inttegro/price/page.rb', line 37

class Page < T::Struct
  const :number, Integer
  const :size, Integer
  const :prices, T::Array[T.any(Inttegro::Price::Fixed, Inttegro::Customer::SelectedCatalogPrice)]
end

#size ⇒ Integer (readonly)

The number of prices in this page

Required in the API payload. Wire name: size.

Returns:

  • (Integer)


37
38
39
40
41
# File 'lib/inttegro/price/page.rb', line 37

class Page < T::Struct
  const :number, Integer
  const :size, Integer
  const :prices, T::Array[T.any(Inttegro::Price::Fixed, Inttegro::Customer::SelectedCatalogPrice)]
end