Skip to content

Commit

Permalink
Merge pull request #6 from whitslar/master
Browse files Browse the repository at this point in the history
Delete appointment from trash after canceling
  • Loading branch information
salon-lofts-git authored Jun 19, 2017
2 parents 09fc640 + fd64fa7 commit 7a1db9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/zimbra/appointment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ def cancel(appointment, invite_id)
xml = invoke("n2:CancelAppointmentRequest") do |message|
Builder.cancel(message, appointment.id, invite_id)
end

xml = invoke("n2:ItemActionRequest") do |message|
message.add "action" do |action|
action.set_attr 'id', appointment.id
action.set_attr 'op', 'delete'
end
end
end

class Builder
Expand Down
2 changes: 1 addition & 1 deletion lib/zimbra/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Zimbra
VERSION = "0.0.10"
VERSION = "0.0.11"
end

0 comments on commit 7a1db9c

Please sign in to comment.