Sha256: bc27c79a68f05bba576c383a389bf1ea8058e6c12b38cc9e76f7bc65535afa8c

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

# coding: utf-8

require_relative 'spec_helper'

RSpec.describe 'Iyzipay' do
  before :all do
    @options = Iyzipay::Options.new
    @options.api_key = 'your api key'
    @options.secret_key = 'your secret key'
    @options.base_url = 'https://api.iyzipay.com'
  end

  it 'should retrieve payout completed transactions' do
    request = {
        locale: 'tr',
        conversationId: '123456789',
        date: '2016-01-22 19:13:00'
    }
    refund = Iyzipay::Model::PayoutCompletedTransactionList.new.retrieve(request, @options)
    begin
      $stderr.puts refund.inspect
    rescue
      $stderr.puts 'oops'
      raise
    end
  end

  it 'should retrieve bounced bank transfers' do
    request = {
        locale: 'tr',
        conversationId: '123456789',
        date: '2016-01-22 19:13:00'
    }
    refund = Iyzipay::Model::BouncedBankTransferList.new.retrieve(request, @options)
    begin
      $stderr.puts refund.inspect
    rescue
      $stderr.puts 'oops'
      raise
    end
  end

  after :each do
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iyzipay-1.0.31 spec/retrieve_transactions_spec.rb
iyzipay-1.0.29 spec/retrieve_transactions_spec.rb