Class: Inttegro::PaymentMethod::TypeSetting
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PaymentMethod::TypeSetting
- Defined in:
- lib/inttegro/payment_method/type_setting.rb
Overview
Settings for a specific payment method type
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
-
#confirms_use ⇒ Boolean
readonly
Whether customers must explicitly agree before using.
-
#description ⇒ String?
readonly
Description of this payment method.
-
#enabled ⇒ Boolean
readonly
Whether this payment type can be used.
-
#name ⇒ String?
readonly
Human-readable name.
-
#type ⇒ Inttegro::PaymentMethod::Type?
readonly
Payment method type.
Instance Attribute Details
#confirms_use ⇒ Boolean (readonly)
Whether customers must explicitly agree before using
Required in the API payload. Wire name: confirms_use.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/payment_method/type_setting.rb', line 48 class TypeSetting < T::Struct const :type, T.nilable(Inttegro::PaymentMethod::Type), default: nil const :name, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :enabled, T::Boolean const :confirms_use, T::Boolean end |
#description ⇒ String? (readonly)
Description of this payment method
Optional in the API payload; omitted values default to nil. Wire name: description.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/payment_method/type_setting.rb', line 48 class TypeSetting < T::Struct const :type, T.nilable(Inttegro::PaymentMethod::Type), default: nil const :name, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :enabled, T::Boolean const :confirms_use, T::Boolean end |
#enabled ⇒ Boolean (readonly)
Whether this payment type can be used
Required in the API payload. Wire name: enabled.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/payment_method/type_setting.rb', line 48 class TypeSetting < T::Struct const :type, T.nilable(Inttegro::PaymentMethod::Type), default: nil const :name, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :enabled, T::Boolean const :confirms_use, T::Boolean end |
#name ⇒ String? (readonly)
Human-readable name
Optional in the API payload; omitted values default to nil. Wire name: name.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/payment_method/type_setting.rb', line 48 class TypeSetting < T::Struct const :type, T.nilable(Inttegro::PaymentMethod::Type), default: nil const :name, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :enabled, T::Boolean const :confirms_use, T::Boolean end |
#type ⇒ Inttegro::PaymentMethod::Type? (readonly)
Payment method type
Optional in the API payload; omitted values default to nil. Wire name: type.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/payment_method/type_setting.rb', line 48 class TypeSetting < T::Struct const :type, T.nilable(Inttegro::PaymentMethod::Type), default: nil const :name, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :enabled, T::Boolean const :confirms_use, T::Boolean end |