Sha256: b113dfd271fcc219c0ff39da51954ad350747c310c79d4f4338b4ddf90bd9388

Contents?: true

Size: 851 Bytes

Versions: 2

Compression:

Stored size: 851 Bytes

Contents

module Iyzi
  module Resources
    def api_test
      Requests::ApiTest.new.response
    end

    def checkout_form(options, &block)
      Requests::CheckoutForm.new(options).response(&block)
    end

    def checkout_form_auth(options, &block)
      Requests::CheckoutFormAuth.new(options).response(&block)
    end

    def payment_auth(options, &block)
      Requests::PaymentAuth.new(options).response(&block)
    end

    def register_card(options, &block)
      Requests::CardStorage.add(options).response(&block)
    end

    def list_cards(options, &block)
      Requests::CardStorage.list(options).response(&block)
    end

    def delete_card(options, &block)
      Requests::CardStorage.delete(options).response(&block)
    end

    def bin_control(options, &block)
      Requests::BinControl.new(options).response(&block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iyzi-0.1.0 lib/iyzi/resources.rb
iyzi-0.0.1 lib/iyzi/resources.rb