Class: Inttegro::PaymentMethod::TokenizeBase
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PaymentMethod::TokenizeBase
- 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
-
#custom_data ⇒ Inttegro::CustomData?
readonly
Merchant-defined string values attached to a resource.
-
#customer_id ⇒ String
readonly
Existing customer in the authenticated application who will own the payment method.
-
#type ⇒ Inttegro::PaymentMethod::TokenizeBaseType
readonly
Value of the
typefield in the Inttegro API payload.
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.
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.
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 |