Sha256: cf3883f01d6e43a901d9aa0743e57f1b01c3ae824c332f0f03a6ac7cf2a93208
Contents?: true
Size: 922 Bytes
Versions: 5
Compression:
Stored size: 922 Bytes
Contents
module Cobrato module Resources class Payment < Base crud :all def cancel(id) http.post("#{resource_base_path}/#{id}/cancel") do |response| respond_with_entity response end end def schema(params) http.get("#{resource_base_path}/schema", params: params) do |response| parsed_body(response) end end def unauthorize(id) http.post("#{resource_base_path}/#{id}/unauthorize") do |response| respond_with_entity response end end def reschedule(id, params) http.post("#{resource_base_path}/#{id}/reschedule", params: params) do |response| respond_with_entity response end end def register_error(id) http.post("#{resource_base_path}/#{id}/register_error") do |response| respond_with_entity response end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems