Class: Inttegro::Product::FixedPriceSummary

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/product/fixed_price_summary.rb

Overview

Typed representation of the fixed price summary 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

#active ⇒ Boolean (readonly)

Whether this price is active and usable in new flows

Required in the API payload. Wire name: active.

Returns:

  • (Boolean)


49
50
51
52
53
54
55
# File 'lib/inttegro/product/fixed_price_summary.rb', line 49

class FixedPriceSummary < T::Struct
  const :id, String
  const :active, T::Boolean
  const :label, T.nilable(String), default: nil
  const :type, Inttegro::Product::FixedPriceSummaryType
  const :fixed_amount, Inttegro::Money::Amount
end

#fixed_amount ⇒ Inttegro::Money::Amount (readonly)

Value of the fixed_amount field in the Inttegro API payload.

Required in the API payload. Wire name: fixed_amount.



49
50
51
52
53
54
55
# File 'lib/inttegro/product/fixed_price_summary.rb', line 49

class FixedPriceSummary < T::Struct
  const :id, String
  const :active, T::Boolean
  const :label, T.nilable(String), default: nil
  const :type, Inttegro::Product::FixedPriceSummaryType
  const :fixed_amount, Inttegro::Money::Amount
end

#id ⇒ String (readonly)

Unique price identifier with pr_ prefix

Required in the API payload. Wire name: id.

Returns:

  • (String)


49
50
51
52
53
54
55
# File 'lib/inttegro/product/fixed_price_summary.rb', line 49

class FixedPriceSummary < T::Struct
  const :id, String
  const :active, T::Boolean
  const :label, T.nilable(String), default: nil
  const :type, Inttegro::Product::FixedPriceSummaryType
  const :fixed_amount, Inttegro::Money::Amount
end

#label ⇒ String? (readonly)

Short label for this price

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

Returns:

  • (String, nil)


49
50
51
52
53
54
55
# File 'lib/inttegro/product/fixed_price_summary.rb', line 49

class FixedPriceSummary < T::Struct
  const :id, String
  const :active, T::Boolean
  const :label, T.nilable(String), default: nil
  const :type, Inttegro::Product::FixedPriceSummaryType
  const :fixed_amount, Inttegro::Money::Amount
end

#type ⇒ Inttegro::Product::FixedPriceSummaryType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



49
50
51
52
53
54
55
# File 'lib/inttegro/product/fixed_price_summary.rb', line 49

class FixedPriceSummary < T::Struct
  const :id, String
  const :active, T::Boolean
  const :label, T.nilable(String), default: nil
  const :type, Inttegro::Product::FixedPriceSummaryType
  const :fixed_amount, Inttegro::Money::Amount
end