Sha256: 978102cd617b7f6f2d3a5f91bdbdd58947cbcb3c939d4adc3c4327f345ecf399

Contents?: true

Size: 726 Bytes

Versions: 23

Compression:

Stored size: 726 Bytes

Contents

module Eco
  module API
    class MicroCases
      # @param entry [PersonEntry] the input entry with the data we should set on person.
      # @param person [Ecoportal::API::V1::Person] the person we want to update, carrying the changes to be done.
      # @param options [Hash] the options.
      def set_account(entry, person, options)
        return if options.dig(:exclude, :account)

        entry.set_account(person, exclude: micro.account_excluded(person, options))

        person.account.send_invites = options[:send_invites] if options.key?(:send_invites)
        micro.refresh_default_tag(entry, person, options)
        micro.fix_default_group(entry, person, options)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.20 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.19 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.18 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.17 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.16 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.15 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.14 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.13 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.12 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.11 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.10 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.9 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.8 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.7 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.6 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.5 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.4 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.3 lib/eco/api/microcases/set_account.rb
eco-helpers-3.0.2 lib/eco/api/microcases/set_account.rb