Class: Inttegro::PaymentMethod::MobileMoney

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payment_method/mobile_money.rb

Overview

Masked mobile-money wallet details (present when type is mobile_money)

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)

Masked wallet number. The full account number is never returned.

Required in the API payload. Wire name: account_number.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/payment_method/mobile_money.rb', line 36

class MobileMoney < T::Struct
  const :account_number, String
  const :last4, String
  const :network, Inttegro::Shared::MobileMoneyNetwork
end

#last4 ⇒ String (readonly)

Last four numeric digits of the normalized wallet number.

Required in the API payload. Wire name: last4.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/payment_method/mobile_money.rb', line 36

class MobileMoney < T::Struct
  const :account_number, String
  const :last4, String
  const :network, Inttegro::Shared::MobileMoneyNetwork
end

#network ⇒ Inttegro::Shared::MobileMoneyNetwork (readonly)

Mobile network operator

Required in the API payload. Wire name: network.



36
37
38
39
40
# File 'lib/inttegro/payment_method/mobile_money.rb', line 36

class MobileMoney < T::Struct
  const :account_number, String
  const :last4, String
  const :network, Inttegro::Shared::MobileMoneyNetwork
end