Class: Inttegro::PurchaseIntent::Merchant

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

Overview

Current public merchant presentation resolved from the purchase intent's application. It is hydrated at lookup time and is not stored on the purchase intent.

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

#branding ⇒ Inttegro::PurchaseIntent::MerchantBranding (readonly)

Value of the branding field in the Inttegro API payload.

Required in the API payload. Wire name: branding.



32
33
34
35
# File 'lib/inttegro/purchase_intent/merchant.rb', line 32

class Merchant < T::Struct
  const :branding, Inttegro::PurchaseIntent::MerchantBranding
  const :profile, Inttegro::PurchaseIntent::MerchantProfile
end

#profile ⇒ Inttegro::PurchaseIntent::MerchantProfile (readonly)

Value of the profile field in the Inttegro API payload.

Required in the API payload. Wire name: profile.



32
33
34
35
# File 'lib/inttegro/purchase_intent/merchant.rb', line 32

class Merchant < T::Struct
  const :branding, Inttegro::PurchaseIntent::MerchantBranding
  const :profile, Inttegro::PurchaseIntent::MerchantProfile
end