Sha256: 97d343e878569f2ab8f1dc47bf6454de4336f61ba383a8bf5ca31f8daa40491a

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

require_relative '../test_helper'

describe Ebanx::Command::GetMerchantSettlementExtract do
  it "can't run without arguments" do
    lambda { ebanx.do_get_merchant_settlement_extract }.must_raise ArgumentError
  end

  it 'performs a successful settlement extract' do
    params = {
        country_abbreviation: 'br',
        currency_code: 'USD',
        date_field: 'open_date',
        date: '2010-10-10',
        hour: '10:10'
    }

    response = ebanx.do_get_merchant_settlement_extract params
    response.http_code.must_equal 200
    response.response['status'].must_equal 'SUCCESS'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ebanx-1.3.5 test/ebanx/get_merchant_settlement_extract_command_test.rb
ebanx-1.3.4 test/ebanx/get_merchant_settlement_extract_command_test.rb
ebanx-1.3.3 test/ebanx/get_merchant_settlement_extract_command_test.rb
ebanx-1.3.2 test/ebanx/get_merchant_settlement_extract_command_test.rb