Class: Inttegro::PaymentMethod::TokenizeBase

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

Overview

Typed representation of the tokenize base 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:



38
39
40
41
42
# File 'lib/inttegro/payment_method/tokenize_base.rb', line 38

class TokenizeBase < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeBaseType
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)


38
39
40
41
42
# File 'lib/inttegro/payment_method/tokenize_base.rb', line 38

class TokenizeBase < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeBaseType
end

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

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



38
39
40
41
42
# File 'lib/inttegro/payment_method/tokenize_base.rb', line 38

class TokenizeBase < T::Struct
  const :customer_id, String
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
  const :type, Inttegro::PaymentMethod::TokenizeBaseType
end