Sha256: 941468124829a967b2c465d106862a2572a26fbae6761564921339a3cc3e3549

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cobrato-client-0.23.0.beta11 lib/cobrato/resources/payment.rb