Sha256: ff1411d02845abc3afb7ca58ecf9d76bc47adfd247cea47fae077dd484093362

Contents?: true

Size: 744 Bytes

Versions: 110

Compression:

Stored size: 744 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)
        unless 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
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
eco-helpers-2.3.3 lib/eco/api/microcases/set_account.rb
eco-helpers-2.3.2 lib/eco/api/microcases/set_account.rb
eco-helpers-2.2.5 lib/eco/api/microcases/set_account.rb
eco-helpers-2.2.4 lib/eco/api/microcases/set_account.rb
eco-helpers-2.2.3 lib/eco/api/microcases/set_account.rb
eco-helpers-2.2.2 lib/eco/api/microcases/set_account.rb
eco-helpers-2.2.1 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.12 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.11 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.10 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.9 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.8 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.7 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.6 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.5 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.4 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.3 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.2 lib/eco/api/microcases/set_account.rb
eco-helpers-2.1.1 lib/eco/api/microcases/set_account.rb
eco-helpers-2.0.68 lib/eco/api/microcases/set_account.rb