Class: Inttegro::PaymentMethod::TokenizeMobileMoneyRequest

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

Overview

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

#custom_data ⇒ Inttegro::CustomData? (readonly)

Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map.

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

Returns:



52
53
54
55
56
57
58
# File 'lib/inttegro/payment_method/tokenize_mobile_money_request.rb', line 52

class TokenizeMobileMoneyRequest < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestType
  const :mobile_money, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestMobileMoney
  const :owner, Inttegro::PaymentMethod::OwnerInput
end

#customer_id ⇒ String (readonly)

Existing customer in the authenticated application who will own the payment method.

Required in the API payload. Wire name: customer_id.

Returns:

  • (String)


52
53
54
55
56
57
58
# File 'lib/inttegro/payment_method/tokenize_mobile_money_request.rb', line 52

class TokenizeMobileMoneyRequest < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestType
  const :mobile_money, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestMobileMoney
  const :owner, Inttegro::PaymentMethod::OwnerInput
end

#mobile_money ⇒ Inttegro::PaymentMethod::TokenizeMobileMoneyRequestMobileMoney (readonly)

Value of the mobile_money field in the Inttegro API payload.

Required in the API payload. Wire name: mobile_money.



52
53
54
55
56
57
58
# File 'lib/inttegro/payment_method/tokenize_mobile_money_request.rb', line 52

class TokenizeMobileMoneyRequest < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestType
  const :mobile_money, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestMobileMoney
  const :owner, Inttegro::PaymentMethod::OwnerInput
end

#owner ⇒ Inttegro::PaymentMethod::OwnerInput (readonly)

Value of the owner field in the Inttegro API payload.

Required in the API payload. Wire name: owner.



52
53
54
55
56
57
58
# File 'lib/inttegro/payment_method/tokenize_mobile_money_request.rb', line 52

class TokenizeMobileMoneyRequest < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestType
  const :mobile_money, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestMobileMoney
  const :owner, Inttegro::PaymentMethod::OwnerInput
end

#type ⇒ Inttegro::PaymentMethod::TokenizeMobileMoneyRequestType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



52
53
54
55
56
57
58
# File 'lib/inttegro/payment_method/tokenize_mobile_money_request.rb', line 52

class TokenizeMobileMoneyRequest < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestType
  const :mobile_money, Inttegro::PaymentMethod::TokenizeMobileMoneyRequestMobileMoney
  const :owner, Inttegro::PaymentMethod::OwnerInput
end