Class: Inttegro::Payout::SettingsMutation

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payout/settings_mutation.rb

Overview

Payout settings fields returned after a mutation

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

#destinations ⇒ Inttegro::Payout::Destinations? (readonly)

Supported currency-to-financial-account destination assignments.

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



43
44
45
46
47
48
# File 'lib/inttegro/payout/settings_mutation.rb', line 43

class SettingsMutation < T::Struct
  const :destinations, T.nilable(Inttegro::Payout::Destinations), default: nil
  const :fx_enabled, T.nilable(T::Boolean), default: nil
  const :id, T.nilable(String), default: nil
  const :schedule, T.nilable(Inttegro::Payout::SettingsMutationSchedule), default: nil
end

#fx_enabled ⇒ Boolean? (readonly)

Updated foreign-exchange setting, returned by FX mutations.

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

Returns:

  • (Boolean, nil)


43
44
45
46
47
48
# File 'lib/inttegro/payout/settings_mutation.rb', line 43

class SettingsMutation < T::Struct
  const :destinations, T.nilable(Inttegro::Payout::Destinations), default: nil
  const :fx_enabled, T.nilable(T::Boolean), default: nil
  const :id, T.nilable(String), default: nil
  const :schedule, T.nilable(Inttegro::Payout::SettingsMutationSchedule), default: nil
end

#id ⇒ String? (readonly)

Payout settings identifier

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

Returns:

  • (String, nil)


43
44
45
46
47
48
# File 'lib/inttegro/payout/settings_mutation.rb', line 43

class SettingsMutation < T::Struct
  const :destinations, T.nilable(Inttegro::Payout::Destinations), default: nil
  const :fx_enabled, T.nilable(T::Boolean), default: nil
  const :id, T.nilable(String), default: nil
  const :schedule, T.nilable(Inttegro::Payout::SettingsMutationSchedule), default: nil
end

#schedule ⇒ Inttegro::Payout::SettingsMutationSchedule? (readonly)

Updated payout schedule returned after a settings mutation.

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



43
44
45
46
47
48
# File 'lib/inttegro/payout/settings_mutation.rb', line 43

class SettingsMutation < T::Struct
  const :destinations, T.nilable(Inttegro::Payout::Destinations), default: nil
  const :fx_enabled, T.nilable(T::Boolean), default: nil
  const :id, T.nilable(String), default: nil
  const :schedule, T.nilable(Inttegro::Payout::SettingsMutationSchedule), default: nil
end