Class: Inttegro::PurchaseIntent::PriceInline

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/purchase_intent/price_inline.rb

Overview

Effective Buy-link offer price. For a bundle without an explicit override, this is the current catalog default.

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 the resolved price can be used

Required in the API payload. Wire name: active.

Returns:

  • (Boolean)


50
51
52
53
54
55
56
# File 'lib/inttegro/purchase_intent/price_inline.rb', line 50

class PriceInline < T::Struct
  const :active, T::Boolean
  const :id, T.nilable(String), default: nil
  const :label, T.nilable(String), default: nil
  const :nominal, Inttegro::Money::Amount
  const :original, T.nilable(Inttegro::PurchaseIntent::OriginalPrice), default: nil
end

#id ⇒ String? (readonly)

Catalog price ID when the offer price is not inline

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

Returns:

  • (String, nil)


50
51
52
53
54
55
56
# File 'lib/inttegro/purchase_intent/price_inline.rb', line 50

class PriceInline < T::Struct
  const :active, T::Boolean
  const :id, T.nilable(String), default: nil
  const :label, T.nilable(String), default: nil
  const :nominal, Inttegro::Money::Amount
  const :original, T.nilable(Inttegro::PurchaseIntent::OriginalPrice), default: nil
end

#label ⇒ String? (readonly)

Catalog price label when available

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

Returns:

  • (String, nil)


50
51
52
53
54
55
56
# File 'lib/inttegro/purchase_intent/price_inline.rb', line 50

class PriceInline < T::Struct
  const :active, T::Boolean
  const :id, T.nilable(String), default: nil
  const :label, T.nilable(String), default: nil
  const :nominal, Inttegro::Money::Amount
  const :original, T.nilable(Inttegro::PurchaseIntent::OriginalPrice), default: nil
end

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

Value of the nominal field in the Inttegro API payload.

Required in the API payload. Wire name: nominal.



50
51
52
53
54
55
56
# File 'lib/inttegro/purchase_intent/price_inline.rb', line 50

class PriceInline < T::Struct
  const :active, T::Boolean
  const :id, T.nilable(String), default: nil
  const :label, T.nilable(String), default: nil
  const :nominal, Inttegro::Money::Amount
  const :original, T.nilable(Inttegro::PurchaseIntent::OriginalPrice), default: nil
end

#original ⇒ Inttegro::PurchaseIntent::OriginalPrice? (readonly)

Value of the original field in the Inttegro API payload.

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



50
51
52
53
54
55
56
# File 'lib/inttegro/purchase_intent/price_inline.rb', line 50

class PriceInline < T::Struct
  const :active, T::Boolean
  const :id, T.nilable(String), default: nil
  const :label, T.nilable(String), default: nil
  const :nominal, Inttegro::Money::Amount
  const :original, T.nilable(Inttegro::PurchaseIntent::OriginalPrice), default: nil
end