Sha256: 34393be21f70674f1c3452670cef59804290557bb328444d9baaddb62503dda9

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

module MangoPay

  # See https://docs.mangopay.com/endpoints/v2.01/reporting
  class Report < Resource
    include HTTPCalls::Fetch

    class << self

      # +params+: hash; see https://docs.mangopay.com/endpoints/v2.01/reporting#e825_create-a-transaction-report
      def create(params, idempotency_key = nil)
        url = url() + '/transactions/'
        MangoPay.request(:post, url, params, {}, idempotency_key)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mangopay-3.0.27 lib/mangopay/report.rb
mangopay-3.0.26 lib/mangopay/report.rb
mangopay-3.0.25.pre.alpha.pre.20 lib/mangopay/report.rb