Sha256: ba90f01b3eef43fe0a54b0be82da95f10b29b666fecc7bb3851ef6125cc1da61

Contents?: true

Size: 1.18 KB

Versions: 7

Compression:

Stored size: 1.18 KB

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

    def installment_info(options, &block)
      Requests::InstallmentInfo.new(options).response(&block)
    end

    def threeds_initialize(options, &block)
      Requests::ThreedsInitialize.new(options).response(&block)
    end

    def threeds_payment_create(options, &block)
      Requests::ThreedsPaymentCreate.new(options).response(&block)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iyzi-0.8.1 lib/iyzi/resources.rb
iyzi-0.8.0 lib/iyzi/resources.rb
iyzi-0.7.0 lib/iyzi/resources.rb
iyzi-0.6.0 lib/iyzi/resources.rb
iyzi-0.5.0 lib/iyzi/resources.rb
iyzi-0.4.0 lib/iyzi/resources.rb
iyzi-0.3.0 lib/iyzi/resources.rb