lib/invofox/resources/document.rb in invofox-api-ruby-0.1.0 vs lib/invofox/resources/document.rb in invofox-api-ruby-0.1.1

- old
+ new

@@ -61,7 +61,20 @@ params: payload ) do |response_body| response_body['result'] end end + + def update_type(id:, type:) + Invofox.api_call( + clazz: self, + method: :put, + path: "/documents/#{id}/type", + params: { + type: type + } + ) do |response_body| + response_body['result'] + end + end end end