Class: Inttegro::PaymentMethod::TypeSetting

Inherits:
T::Struct
  • Object
show all
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

Instance Attribute Details

#confirms_use ⇒ Boolean (readonly)

Whether customers must explicitly agree before using

Required in the API payload. Wire name: confirms_use.

Returns:

  • (Boolean)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (String, nil)


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