basecomm_sdk 1.1.3 → 1.1.4
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd06ef7476c4ae5bd31583ba41b194e0ffebdf2e
|
|
4
|
+
data.tar.gz: 75a78fd86571e7ebe514e03fdf1a520f6dc64be9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbed7bca8113b239ff8c951f34c12caaa785442c999659a2465057ba8bcf3a66284a1ec890c2da7990d9226e5e0bec6ebf1a60078659d5301a180341011ca7c0
|
|
7
|
+
data.tar.gz: 9b2ee34f908fc4aa208326d085c30af3e49da2116018c0c92af996fe9e71f58e4b9972802fc459b273379c64d551e3537c7df3dda6fc7ad75d9139fc3653046c
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Base Commerce SDK
|
|
2
2
|
|
|
3
|
-
**Version: 1.1.
|
|
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
|
|
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,
|
data/lib/basecomm_sdk/version.rb
CHANGED
|
@@ -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.
|
|
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
|
|
55
|
-
|
|
56
|
-
|
|
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.
|
|
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-
|
|
12
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: dotenv
|