2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2021-05-25 12:30:12 +00:00
|
|
|
class Sequencer
|
|
|
|
class Unit
|
|
|
|
module Import
|
|
|
|
module Freshdesk
|
|
|
|
class Request < Sequencer::Unit::Common::Provider::Attribute
|
|
|
|
class TimeEntry < Sequencer::Unit::Import::Freshdesk::Request::Generic
|
|
|
|
attr_reader :ticket
|
|
|
|
|
2021-07-06 07:52:22 +00:00
|
|
|
def initialize(...)
|
2021-05-25 12:30:12 +00:00
|
|
|
super
|
|
|
|
@ticket = request_params.delete(:ticket)
|
|
|
|
end
|
|
|
|
|
|
|
|
def api_path
|
|
|
|
"tickets/#{ticket['id']}/time_entries"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|