Sha256: b6ae8840b46bd7a28caa255594676f3028a458a90e0a5514ed149e621214f20b

Contents?: true

Size: 474 Bytes

Versions: 18

Compression:

Stored size: 474 Bytes

Contents

module Iyzipay
  module Model
    class BinNumber < IyzipayResource

      def retrieve(request = {}, options)
        pki_string = to_pki_string(request)
        HttpClient.post("#{options.base_url}/payment/bin/check", get_http_header(pki_string, options), request.to_json)
      end

      def to_pki_string(request)
        PkiBuilder.new.append_super(super).
            append(:binNumber, request[:binNumber]).
            get_request_string
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
iyzipay-subscription-payments-1.0.2 lib/iyzipay/model/bin_number.rb
iyzipay-subscription-payments-1.0.1 lib/iyzipay/model/bin_number.rb
iyzipay-subscriptions-1.0.1 lib/iyzipay/model/bin_number.rb
iyzipay-subscriptions-1.0.0 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.45 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.44 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.43 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.42 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.39 lib/iyzipay/model/bin_number.rb
erdem-iyzipay-1.1.0 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.36 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.35 lib/iyzipay/model/bin_number.rb
iyzipay-zebramo-1.0.36 lib/iyzipay/model/bin_number.rb
iyzipay-zebramo-1.0.35 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.34 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.32 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.31 lib/iyzipay/model/bin_number.rb
iyzipay-1.0.29 lib/iyzipay/model/bin_number.rb