basecomm_sdk 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8afd7b3fe8ef4b23d769c1fe94ff7d95bf37077f
4
- data.tar.gz: 1ca37570d8850f4c5265347d708c373a206a2a8d
3
+ metadata.gz: cd06ef7476c4ae5bd31583ba41b194e0ffebdf2e
4
+ data.tar.gz: 75a78fd86571e7ebe514e03fdf1a520f6dc64be9
5
5
  SHA512:
6
- metadata.gz: f3b0a5b7f7f0ea9c1e8086c6838412227fb4de81c32eab8426ac93586f6a8d6b1e500f553fcae4a864fe79d4cc15d6178ca97c353ee846efafdddcc077bef0d1
7
- data.tar.gz: 1f7a1f6f3b46e81d86e99ac49e3f9408f011747930811a8202ea1ec63659db96872133c448cde32efa2500ae81d1aba5a1c8049f0a80b56a41edf3743e37de2f
6
+ metadata.gz: dbed7bca8113b239ff8c951f34c12caaa785442c999659a2465057ba8bcf3a66284a1ec890c2da7990d9226e5e0bec6ebf1a60078659d5301a180341011ca7c0
7
+ data.tar.gz: 9b2ee34f908fc4aa208326d085c30af3e49da2116018c0c92af996fe9e71f58e4b9972802fc459b273379c64d551e3537c7df3dda6fc7ad75d9139fc3653046c
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *1.1.4* (March 25, 2015)
2
+
3
+ * Account for JSON format changes for failures
4
+
1
5
  *1.1.3* (March 24, 2015)
2
6
 
3
7
  * Truncate when setting account name and truncate to 32 chars
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Base Commerce SDK
2
2
 
3
- **Version: 1.1.3**
3
+ **Version: 1.1.4**
4
4
 
5
5
  A gem for interfacing with the [Base Commerce](http://www.basecommerce.com/) API. This gem was developed with their help and serves to provide a Gem wrapper around their own Ruby SDK. Please contact them for more information about the Ruby SDK.
6
6
 
@@ -30,7 +30,7 @@ module BasecommSdk
30
30
  :account_type, :routing_number, :account_number, :account_name,
31
31
  :return_code, :trace, :merchant_transaction_id, :bank_account_token,
32
32
  :micr_data, :amount, :effective_date, :settlement_date, :return_date,
33
- :recurring_indicator, :failed_reason
33
+ :recurring_indicator
34
34
 
35
35
  attr_accessor :custom_field1, :custom_field2, :custom_field3,
36
36
  :custom_field4, :custom_field5, :custom_field6, :custom_field7,
@@ -1,3 +1,3 @@
1
1
  module BasecommSdk
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -93,7 +93,9 @@ module BasecommSdk
93
93
  context '.failed?' do
94
94
  it 'has an associated failed_reason' do
95
95
  bat = described_class.from_json(bat_failed_json)
96
- expect(bat.failed_reason).to be_a(Hash)
96
+ expect(bat.messages).to be_a(Array)
97
+ expect(bat.messages.size).to eql(2)
98
+ expect(bat.messages.first).to be_a(Hash)
97
99
  end
98
100
 
99
101
  it 'returns true for a failure' do
@@ -29,7 +29,6 @@ shared_context 'bat_response_methods' do
29
29
  'bank_account_transaction_amount' => opts.fetch(:amount, 10.18),
30
30
  'bank_account_transaction_account_name' => 'Sample ACH Transaction',
31
31
  'bank_account_transaction_merchant_transaction_id' => '0',
32
- 'messages' => [],
33
32
  'bank_account_transaction_return_code' => opts.fetch(:return_code, nil),
34
33
  'bank_account_transaction_creation_date' => '02/19/2015 08:31:11',
35
34
  'bank_account_transaction_return_date' => '02/14/2015 01:31:17'
@@ -51,10 +50,11 @@ shared_context 'bat_response_methods' do
51
50
  status_description: 'Failed Transaction'
52
51
  )
53
52
 
54
- base['bank_account_transaction'].merge!(
55
- "bank_account_transaction_failed_reason" => {
56
- "bank_account_number" => "Account Number must be at least 5 digits"
57
- })
53
+ base.merge!(
54
+ "exception" => {
55
+ "bank_account_transaction_account_name" => "Account Name can not exceed a maximum length of 32",
56
+ "bank_account_number" => "Account Number must be at least 5 digits"
57
+ })
58
58
 
59
59
  base.to_json
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecomm_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Blackburn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-24 00:00:00.000000000 Z
12
+ date: 2015-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dotenv