diff --git a/lib/delhivery/services/package_service.rb b/lib/delhivery/services/package_service.rb index 46b392b..8cb8db0 100644 --- a/lib/delhivery/services/package_service.rb +++ b/lib/delhivery/services/package_service.rb @@ -19,7 +19,7 @@ def edit(params) end def cancel(*waybill_numbers) - connection.post(edit_path, {waybill: waybill_numbers.join(','), cancellation: true}) + connection.post(edit_path, {waybill: waybill_numbers.join(','), cancellation: "true"}) end private @@ -32,7 +32,7 @@ def track_path end def edit_path - "/api/p/edit/" + "/api/p/edit" end end end diff --git a/lib/delhivery/version.rb b/lib/delhivery/version.rb index 27cdb4d..a6278c6 100644 --- a/lib/delhivery/version.rb +++ b/lib/delhivery/version.rb @@ -1,3 +1,3 @@ module Delhivery - VERSION = "0.1.0" + VERSION = "0.1.1" end