Sha256: c93a815c0d7b9c03a0646b437d21ccdb5a0c76a14ee73b2374480768c39ce08f

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

module MangoPay
  class PayIn < Resource
    include MangoPay::HTTPCalls::Fetch
    include MangoPay::HTTPCalls::Refund

    module Card

      class Web < Resource
        include MangoPay::HTTPCalls::Create
        def self.url(*)
          "/v2/#{MangoPay.configuration.client_id}/payins/card/#{CGI.escape(class_name.downcase)}"
        end
      end

      class Direct < Resource
        include MangoPay::HTTPCalls::Create
        def self.url(*)
          "/v2/#{MangoPay.configuration.client_id}/payins/card/#{CGI.escape(class_name.downcase)}"
        end
      end

    end

    module PreAuthorized

      class Direct < Resource
        include MangoPay::HTTPCalls::Create
        def self.url(*)
          "/v2/#{MangoPay.configuration.client_id}/payins/preauthorized/direct"
        end
      end

    end

    module BankWire

      class Direct < Resource
        include MangoPay::HTTPCalls::Create
        def self.url(*)
          "/v2/#{MangoPay.configuration.client_id}/payins/bankwire/direct"
        end
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mangopay-3.0.11 lib/mangopay/payin.rb
mangopay-3.0.10 lib/mangopay/payin.rb