bankserv 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,10 +29,10 @@ module Bankserv
29
29
  request_credits.each do |c|
30
30
  c.update_attributes!({
31
31
  status: 'error',
32
- response: {
33
- reason: rejection_reason_description,
34
- description: rejection_qualifier_description
35
- }
32
+ response: [{
33
+ code: rejection_reason_description,
34
+ message: rejection_qualifier_description
35
+ }]
36
36
  })
37
37
  end
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module Bankserv
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
@@ -231,7 +231,7 @@ describe Bankserv::OutputDocument do
231
231
  it "should mark the payment as failed" do
232
232
  Bankserv::Credit.all.each do |c|
233
233
  c.error?.should be_true
234
- c.response[:description].should == "TARGET ACCOUNT BRANCH INVALID"
234
+ c.response.first[:message].should == "TARGET ACCOUNT BRANCH INVALID"
235
235
  end
236
236
  end
237
237
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 7
9
- version: 0.6.7
8
+ - 8
9
+ version: 0.6.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeffrey van Aswegen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-07-21 00:00:00 +02:00
18
+ date: 2014-07-22 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency