Class: Inttegro::Checkout::MobileMoneyData

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

Overview

Typed representation of the mobile money data 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

#account_number ⇒ String (readonly)

Value of the account_number field in the Inttegro API payload.

Required in the API payload. Wire name: account_number.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/checkout/mobile_money_data.rb', line 36

class MobileMoneyData < T::Struct
  const :reference, T.nilable(String), default: nil
  const :network, Inttegro::Checkout::MobileMoneyDataNetwork
  const :account_number, String
end

#network ⇒ Inttegro::Checkout::MobileMoneyDataNetwork (readonly)

Value of the network field in the Inttegro API payload.

Required in the API payload. Wire name: network.



36
37
38
39
40
# File 'lib/inttegro/checkout/mobile_money_data.rb', line 36

class MobileMoneyData < T::Struct
  const :reference, T.nilable(String), default: nil
  const :network, Inttegro::Checkout::MobileMoneyDataNetwork
  const :account_number, String
end

#reference ⇒ String? (readonly)

Value of the reference field in the Inttegro API payload.

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

Returns:

  • (String, nil)


36
37
38
39
40
# File 'lib/inttegro/checkout/mobile_money_data.rb', line 36

class MobileMoneyData < T::Struct
  const :reference, T.nilable(String), default: nil
  const :network, Inttegro::Checkout::MobileMoneyDataNetwork
  const :account_number, String
end