Sha256: 5a2d477af5fba4fb2c82ede78037acb2030e84a353edfcb8d899c546e69a63c4

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

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

    module Card

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

      class Direct < Resource
        include MangoPay::HTTPCalls::Create
        private
        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
        private
        def self.url(*)
          "/v2/#{MangoPay.configuration.client_id}/payins/preauthorized/direct"
        end
      end

    end

    module BankWire

      class Direct < Resource
        include MangoPay::HTTPCalls::Create
        private
        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.9 lib/mangopay/payin.rb
mangopay-3.0.8 lib/mangopay/payin.rb