time_entries.rb 528 B

1234567891011121314151617181920212223
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Freshdesk::Ticket::TimeEntries < Sequencer::Unit::Import::Freshdesk::SubSequence::Generic
  3. prepend ::Sequencer::Unit::Import::Common::Model::Mixin::Skip::Action
  4. skip_action :skipped, :failed
  5. uses :resource
  6. def object
  7. 'TimeEntry'
  8. end
  9. def sequence_name
  10. 'Sequencer::Sequence::Import::Freshdesk::TimeEntries'.freeze
  11. end
  12. def request_params
  13. super.merge(
  14. ticket: resource,
  15. )
  16. end
  17. end