basecomm_sdk 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +6 -0
- data/README.md +1 -1
- data/basecomm_sdk.gemspec +1 -1
- data/lib/basecomm_sdk/bank_account_transaction.rb +26 -0
- data/lib/basecomm_sdk/version.rb +1 -1
- data/spec/cassettes/BasecommSdk_Client/_add_bank_account/fails_when_passing_an_invalid_bank_account.yml +4 -4
- data/spec/cassettes/BasecommSdk_Client/_add_bank_account/returns_the_new_bank_account_instance.yml +5 -5
- data/spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_bat_transaction.yml +5 -5
- data/spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml +4 -4
- data/spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml +4 -4
- data/spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/returns_the_specified_bank_card_transaction.yml +4 -4
- data/spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/fails_when_passing_invalid_transaction.yml +6 -6
- data/spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/populates_messages_with_failure_reasons.yml +6 -6
- data/spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/returns_the_processed_bank_account_transaction.yml +6 -6
- data/spec/cassettes/BasecommSdk_Client/_process_bank_card_transaction/returns_the_processed_bank_account_transaction_for_auth.yml +6 -6
- data/spec/factories.rb +1 -1
- data/spec/lib/basecomm_sdk/bank_account_transaction_spec.rb +68 -1
- data/spec/lib/basecomm_sdk/base_spec.rb +12 -0
- data/spec/lib/basecomm_sdk/client_spec.rb +1 -2
- data/spec/spec_helper.rb +1 -0
- data/spec/support/shared_responses.rb +70 -0
- metadata +6 -10
- data/spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml +0 -34
- data/spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml +0 -34
- data/spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_transaction.yml +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ff6d17c3bf8d5e6e6234bbdf14165a0fea72c8a
|
4
|
+
data.tar.gz: 23da68d3a9cd18f7c0684518257654412cb18c51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c5e08aef05102244b76cd04c2511c7fe7909fcddaaa8714dfcc4398d1b884131deceef49a97d2cff6fcfc775b01d964aaa3fe31dd81753b9e43afa7b74ccd2d
|
7
|
+
data.tar.gz: 041adf511e8247b684d4adb783dfe3a3621bdf4ed5761f0cc4f6eaa7213abbe2edc3b1291f81c2ba68b2212d47c8320d1dfc6df1303decf9c94c5e8e7663e424
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Base Commerce SDK
|
2
2
|
|
3
|
-
**Version: 1.0.
|
3
|
+
**Version: 1.0.1**
|
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
|
|
data/basecomm_sdk.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_runtime_dependency 'json', '~> 1.8'
|
23
23
|
spec.add_runtime_dependency 'faraday', '~> 0.9'
|
24
24
|
spec.add_runtime_dependency 'excon', '~> 0.42'
|
25
|
-
spec.add_runtime_dependency 'midwire_common', '>= 0.1.
|
25
|
+
spec.add_runtime_dependency 'midwire_common', '>= 0.1.14'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
28
28
|
spec.add_development_dependency 'rake', '~> 10.0'
|
@@ -44,5 +44,31 @@ module BasecommSdk
|
|
44
44
|
def json_prefix
|
45
45
|
:bank_account_transaction
|
46
46
|
end
|
47
|
+
|
48
|
+
def correction?
|
49
|
+
return false if return_code.nil?
|
50
|
+
status_name == STATUS[:xs_bat_status_returned] && !return_code.match(/^C/).nil?
|
51
|
+
end
|
52
|
+
|
53
|
+
def returned?
|
54
|
+
return false if correction?
|
55
|
+
status_name == STATUS[:xs_bat_status_returned] && !return_code.match(/^R/).nil?
|
56
|
+
end
|
57
|
+
|
58
|
+
def settled?
|
59
|
+
status_name == STATUS[:xs_bat_status_settled] && !settlement_date.nil?
|
60
|
+
end
|
61
|
+
|
62
|
+
def failed?
|
63
|
+
status_name == STATUS[:xs_bat_status_failed] ? true : false
|
64
|
+
end
|
65
|
+
|
66
|
+
def status_date
|
67
|
+
if status_name == STATUS[:xs_bat_status_returned]
|
68
|
+
return_date
|
69
|
+
else
|
70
|
+
settlement_date
|
71
|
+
end
|
72
|
+
end
|
47
73
|
end
|
48
74
|
end
|
data/lib/basecomm_sdk/version.rb
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"dcd2610ecb6336d5a8badd095a00f38bf79afca91b6c7d20a42dcc046643307dbcee41ca8ec8807a50c00d49eafa3e315c31e6363aa504fcdcb5295dbe903e7cb824b357af0f841a3bcd2e8eab22ac7bb3b8b78c95cc7c95f6024aa3be41d533e44fc1deb7236dd29e94d2f44b6172f8"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:36 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=5AAE669FFBA40B7FC472F724E671622E; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: 2D8674762DD0A47D9E3F44DC9DF2195F88FB1409340D7AB9699E5A1B4104E56A279078757253F474591F435AB904BAB94BCC240437FCB95B59BA9E01C77120E188FB1409340D7AB9FC7EE17D97EF763E88FB1409340D7AB9E251BC948061A18C6F70473576BC292B8BA8A0E3F6B9CFAD1545F925415E65E9DD4D87D6EC59ACB4F0AFD44A6B2104A74119836A0D39082416DAEEAF89C9EAD5997B8362AA473FFF98EE752146EE13574C6A14DD272874813536725D98D8FB50B2CFD0AEEEA9102F8BA8A0E3F6B9CFAD927D7B83082F1549666ADB161A4190916350494E8F78AD559E653A7F5653464A00C2FE8D01E3D5EF5E5E91BE2F9EA2684157808C703956D1549E5D2C9A9F6E43CE3E7F0D34EF27A1A503EEC3B977B1D70C7AA5102C42EAB82E7ACDFBDA631732D204850FA7773FC84CF572F15FEA5E6FCCD66A933A6316A7E9C34EB8BFE8EAA188FB1409340D7AB9E367217E58ABFB15FA4BEE85A6E2F566E611975752FADC8A93E505D19204BCEB633421DDFA299C29319CF2ED48EE89BE104E615A86E2BAAF90436F0D0241BDCB672BAF2157CF0765D1D92C9B74689093F324051717E913BDB14E7AD68D91A571D2A3F8B0CA9BB1C97E9D821869D6E03DF3880CA86658CDDA134749C1488482A39E0EF0E873016FD05D4B2E4A88AFA460319CF2ED48EE89BE0758AF8605C5552DD89DA544403E3B838BA8A0E3F6B9CFADDD06EBE87B6D27E4BC9F186F52770F3B67B292C031F1C3C7
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:38 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
data/spec/cassettes/BasecommSdk_Client/_add_bank_account/returns_the_new_bank_account_instance.yml
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"dcd2610ecb6336d5a8badd095a00f38bf79afca91b6c7d20a42dcc046643307dbcee41ca8ec8807a50c00d49eafa3e3150c00d49eafa3e31dcb5295dbe903e7c9a9dd6ce8764722b4167da9ae8b8c0da00c2fe8d01e3d5ef6ed5898a0b3c55ac72118b3c7529a35cb441970f41d1587b63f7326cc458b8e7bc041c007f3ca9d7f7f8842ebf6ce01b1b5805e37dbbd5d2e04f15f797f861bd0e186c3ecf023480"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:36 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=82741FB79B2964D62FD3698B2D56B777; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: DCD2610ECB6336D5EB30B5FCE476B7C9DCD2610ECB6336D54B8E75D247B11C37FCEDDB9BD51BEA6D997B8362AA473FFF98EE752146EE1357B63A1EF23C050852ED253B03B40E61B32D2983E688B40563CCCBF0B94290985B68417F14A69DF07F2D3F8FC47EE08EBA961D4CC1175FE0E396B756BAF35F3D767131E9CE8D4A8232997B8362AA473FFF1E0F8042B6F9EBBB8F00758EA9FDFD2B5EC9B30D35E1216136A2E06BFB79F623BCEE41CA8EC8807A50C00D49EAFA3E31DFEE1EDE3FD3FA9EFDA20B9EEF9E3523BC041C007F3CA9D7707DA6A8C705A1B294B0F491AD8512703AFBD6DB5FBBB866481D7C8EF054DB27AD88A35E0691775D1E1A24A9E2E32312BC041C007F3CA9D7707DA6A8C705A1B2A8BADD095A00F38B58D3A9B4155B308D49E6E7D7EFDC476DC1183C4FB5D27EFACE3E7F0D34EF27A1A503EEC3B977B1D70C7AA5102C42EAB82E7ACDFBDA631732D204850FA7773FC84CF572F15FEA5E6FCCD66A933A6316A7E9C34EB8BFE8EAA188FB1409340D7AB9E367217E58ABFB15FA4BEE85A6E2F566E611975752FADC8A93E505D19204BCEB633421DDFA299C29319CF2ED48EE89BE104E615A86E2BAAF90436F0D0241BDCB672BAF2157CF0765D1D92C9B74689093F324051717E913BDB14E7AD68D91A571D2A3F8B0CA9BB1C97E9D821869D6E03DF3880CA86658CDDA134749C1488482A39E0EF0E873016FD05D4B2E4A88AFA460319CF2ED48EE89BE0758AF8605C5552DD89DA544403E3B838BA8A0E3F6B9CFAD07ABE3CA86B0FFAB393F6C833FFAA3902D3F8FC47EE08EBAFCECE7C4E43F0632A1F202BE14BE01D41B1D4C082AA5ACB45B2E0C8DB443288ED40C5B098A89C58D8CF4DFCF6BB199D7A1344DE8D68634A6211A72C10F7DD1BDEFBD48797747EB3BED96729BA9E1BB122D3F8FC47EE08EBA717227707DBFA110730009033F8F867120796254EB95D26C
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:37 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":99999}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:38 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=DA4802549AF2E9C8F849DD0FCD8C2544; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 2D8674762DD0A47D9E3F44DC9DF2195F88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB3113B0BCBD79F387EADAF08E85495538B2A02EC2A39026D24A923C76E2FC1F5FC0AD5E9EC7743B97B850239486B8E1A9A8B4E5CE2FACEF1800C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F694A6F5C44AAB09E2D3F8FC47EE08EBA7C6EE8935EA67DB44C63F27BFD73CBA0BA75DDFE17A18BC988FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBF440C4390B0BE0B12D22BCEE8213E79FE6E3B0AEF52A3A474A923C76E2FC1F5F784B81CCA49B8383BC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B34B178A1D1DF6DC9C99001F7284256E1274C9AEA46FA12354C0F4696CB3441F38550C00D49EAFA3E318167688C7267654D0E0BC18E6F760475B924C6BF8902ACDA88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBE67744942C5EBE2C7C6EE8935EA67DB4D891FC5241047425DEB2410D93A853C48BA8A0E3F6B9CFAD6CAE6602D7A6FB2028B24F1673A5A5BAA8BADD095A00F38B58D3A9B4155B308D8AFA1980D51BF885BBCA3200D2E68309F7FC3CD9B532495A
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:40 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":24571}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:38 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=96FB648E770EA60E9CFFC46E4DAFCA9D; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: DCD2610ECB6336D5F7F8842EBF6CE01B2D54B8865ECD0B34A87AD4A963370B1F8BA8A0E3F6B9CFAD6CAE6602D7A6FB20BA1176219862C5258BEF0B21FB550A02BA3AC248045A51811E9689A33EDEA9BF661B4868A2BCC788D827062094F83038B3B8B78C95CC7C955E42CEFC90140B8E32738F12C9AEB8EB8236FB3F134A8032408C2B5DF973B6A788FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBA2C8D2F67855C4CE6E62ABC0E152BED3E2839B4B09861E41FAF90FFF70AB702703AA68BF5714EFCDBC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B3422A7DE029DDBB81CDD06EBE87B6D27E448E16BC585B5056116DAEEAF89C9EAD5997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF7780741949DE029E33C0144D126CDCA682F21D5AA796463734DC7113673C42FB0CB8BA8A0E3F6B9CFAD6CAE6602D7A6FB2028B24F1673A5A5BAA8BADD095A00F38B58D3A9B4155B308DBCEE41CA8EC8807A50C00D49EAFA3E318167688C7267654D62C480FE18D94F89694A6F5C44AAB09E2D3F8FC47EE08EBA7C6EE8935EA67DB47716E11CBBB9C1EC0F7151B028C5BCBFF0AFD44A6B2104A70470DD38E26F4D419C6A69E9509FF7785E4D15BFB391A30F2D3F8FC47EE08EBA7C6EE8935EA67DB47716E11CBBB9C1EC7754678DF828B54FB0EDFBC72739E2ADBC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B34FCF749EBADD3F2B223D95300C4FB76DC9FCC8A57955F201427D9EBCFEC50045E2D3F8FC47EE08EBA7C6EE8935EA67DB4AE2DD9F8C9A8BE995E5E91BE2F9EA2680EBED60CF428491DB3B8B78C95CC7C955E42CEFC90140B8E4AB4452D22BDD713F51173E6E3CDB7F64EF6167467F14023F388522AC185B89D28FCE4D01C9773A447DE6B52CF885B6468417F14A69DF07F2D3F8FC47EE08EBA7C6EE8935EA67DB4AE2DD9F8C9A8BE995E5E91BE2F9EA2687754678DF828B54FE44FC1DEB7236DD2594CDB0F9E0A8A39B3B8B78C95CC7C955E42CEFC90140B8E37B2E4B8D621F497DDD6473698E69E5700C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F961D4CC1175FE0E3C0E9C858ACC5A9E8DAA22A8F708FA2D791D27C3D53734A969C6A69E9509FF7785E4D15BFB391A30F2D3F8FC47EE08EBA7C6EE8935EA67DB44C63F27BFD73CBA0CEBDCB1FDFF27E20ED988EF219558EAAB2CFD0AEEEA9102F8BA8A0E3F6B9CFAD6CAE6602D7A6FB202CCD1E32E63A2DF97F09EC6A5949A6E158D3A9B4155B308DE2693E7EDAFCA9202DB4D1A0843E106A2D3F8FC47EE08EBA7C6EE8935EA67DB4E897D931BFEF5D725974A7113CBFE868BA3AC248045A51811E9689A33EDEA9BF661B4868A2BCC788D827062094F83038B3B8B78C95CC7C955E42CEFC90140B8EDB8C66CD64E69DD90BD2395739E667C31B7EADF715E7E6B2BAD9BCDC1A4497E8997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF778F96429AB428B1342694A6F5C44AAB09E2D3F8FC47EE08EBA7C6EE8935EA67DB48791FC124A7CA2571E2C1BAA493A31FE64A8C294F95DCB060BDB7AA9D66BB9EC594C5F7C6705E94788FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBFE97FBD611055583C68921A5A57383B7A54D96B45937E84BB3B8B78C95CC7C955E42CEFC90140B8E0ADC60F15D504F5D9731CDD0318E57F52D54B8865ECD0B342CFF0E3117B8A08FBCEE41CA8EC8807A50C00D49EAFA3E318167688C7267654D870126B3670A3CC3D0107F33C7A2F5A9BB89321629FEC05D5CB59B443B6F1F3AAA9A16D0BB37366C7782D446BB63A2C8
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:40 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":99999}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:39 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=14725BE2E3026086E55B5D896895F0CF; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: 6F50AC65AB0165C440315668AD6CE209FA9689C384A4B1A005C0CB89D4F60683BBDF1A45DF89A48E4A923C76E2FC1F5FB7510527AE4BA648C19A2AD5148D70F4CBD2F1F05ACD2F24D8F4CA762F22F54006490A9081D7B7E6F81C2057F089805E1BE39E3D473993334C5FDDA885B23DB40C5DCA152E725ADCFCEDDB9BD51BEA6D1BE39E3D473993334C5FDDA885B23DB40C5DCA152E725ADCBF190F299A8B2E47A421B84395211E10FE74AF5C135D060013F1B9E00B6E537570EF59C3B15B47B81BE39E3D473993334C5FDDA885B23DB40C5DCA152E725ADC3607C566A68E60DEC00E759E03AAC5D870F5A5038B88157A2BC7A9536360AB747C6EE8935EA67DB48D9D10AB7B116C06CBADE01FEEFD5683B187C26A2FD09E19019AE053CE399761B6B62DF4BCCC7F96BCEE41CA8EC8807ABBDF1A45DF89A48E4A923C76E2FC1F5F7EF578036147A9585E42CEFC90140B8E8D2C4C12210E29650D306437CC7BD7412BC7A9536360AB747C6EE8935EA67DB499E6BA5EFD0C30D0B6D44FD0DCD9986965F163262D1166FA459666D7BE5708F99C6A69E9509FF778421BB554274DEA411C0584E4ACC785F57128FC3866F40A741BE39E3D473993334C5FDDA885B23DB4BA1176219862C525581BF640B4420764D797C44E1FF2263AB2C23A62FA9E820AB206FE4A18E48B2AAA7E0F3CD9B23B9C694A6F5C44AAB09E2D3F8FC47EE08EBA7C6EE8935EA67DB4D891FC5241047425AAAB5AE306011D81FCFD92CE4FB5AA162D54B8865ECD0B3440E0B80482975B573EB8212B21369A5F96DAF01296A3ECAE73B18D33B35D0534
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:41 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":65473}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:39 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=26DADFF7B7BDBFFDFA34A385A81DA8A4; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: 6F50AC65AB0165C440315668AD6CE209FA9689C384A4B1A005C0CB89D4F60683BBDF1A45DF89A48E4A923C76E2FC1F5F5B2301BF9F5332D85F76E1D7249C2134459666D7BE5708F99C6A69E9509FF7782247FB6EE18C7705694A6F5C44AAB09E459666D7BE5708F99C6A69E9509FF7782247FB6EE18C7705F3F34B60BF9D693B86B48BDB81837379B3364801ACD90A6E2D54B8865ECD0B340F3A8D2F18018DB4C0F1CB9743426B762D54B8865ECD0B34B178A1D1DF6DC9C99001F7284256E1271F9877E3A26450F7A0CE318F4A9289AF77B971A5B62D0ACE4DD6A13C3B00D94FEA7B374D962701A6FE030781CAF4960DBBDF1A45DF89A48E4A923C76E2FC1F5F0797FFABDEE6D944E2FA27177C0DA514FE0BAD8AEB4942E185F5C9FE77F216B34D4555C09E214299E435097C6FE45A39A239B06AB24EF716DB3C2815213B920FBE84DC512FE483D198C69A25F578AF0D8167688C7267654D626A8C6867EFB67019355A9855B7F00678B91AD627303862D2F41183B89328ACA2F5D7D59F6BE1D59676119047FF5347C0DCEC0A68E0FF3840315668AD6CE2092BF07A76743E9EEB9C324A0B71123126316EE106731F7323458DF2B083EF6D9048C3CEE4AD380E7E1BE39E3D473993334C5FDDA885B23DB45A49461D94E619CFC3824C3882706684CFE66D4966536A4064C762C8D95B648ACBD2F1F05ACD2F24D8F4CA762F22F540D8ECCDEE9BB8E2549C6A69E9509FF778669BB604D89BAF9A3D8408368CD8C756C0F1CB9743426B762D54B8865ECD0B34AE5D91E376C1DAE57A0C8C124A0EF442C0DCEC0A68E0FF3840315668AD6CE2092BF07A76743E9EEBB68B0F6576104870B5294C4B2DA6DBF4459666D7BE5708F99C6A69E9509FF77820EAB31AA675736897CA25D968E2812A8C4413B2B6602DCCC0DCEC0A68E0FF3840315668AD6CE2092BF07A76743E9EEBE67744942C5EBE2C7C6EE8935EA67DB4D891FC524104742536DDA1F008C7689EC0F1CB9743426B762D54B8865ECD0B34BC31FF07441D4C5C5932A08AD33B8ED1771A87201B58F2D96EC3975A974E7E6C34D49F30F5DC67711BE39E3D473993334C5FDDA885B23DB47D40A3B5BBB90195B63A552EFAA482FAE2BE247B160535EA98C69A25F578AF0D8167688C7267654D25864F9C1048CA9AB68B0F657610487034F6A57D7C1761C3BBDF1A45DF89A48E4A923C76E2FC1F5F0797FFABDEE6D9441080FD4F9A89FCFDD5B5C099FCB529F8C0F1CB9743426B762D54B8865ECD0B347F994197C62FBB3205C0CB89D4F60683BBDF1A45DF89A48E4A923C76E2FC1F5F9639B09A6C98FEB6A421B84395211E10C8A32DEC4625D5BC19355A9855B7F00625439CD36075CC87EB0F2E47C61F143A98C69A25F578AF0D8167688C7267654D62C480FE18D94F89717227707DBFA11088E092DB7CA7CC0CCBD2F1F05ACD2F24D8F4CA762F22F540DB8C66CD64E69DD90BD2395739E667C31B7EADF715E7E6B235FA5EA8F5C2F683C0DCEC0A68E0FF3840315668AD6CE2092BF07A76743E9EEB0AF1F9F0C3EBFF06327167A58564095186AD1D52E52AD56F2BC7A9536360AB747C6EE8935EA67DB4470557D2D9EEDB4A7CD40B5522B736DE34E856C62BEF5BCB
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:40 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_processBankAccountTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"dcd2610ecb6336d5f7f8842ebf6ce01b2d54b8865ecd0b347f994197c62fbb32a5e13bb954537a18bc041c007f3ca9d7f7f8842ebf6ce01b2d54b8865ecd0b3422a7de029ddbb81c96f9adf09e0bc8496c812edee9cf64d7bb19597eb2fcfc5cb3b8b78c95cc7c955e42cefc90140b8e6cb630e5986662208f00758ea9fdfd2b5ec9b30d35e1216136a2e06bfb79f623bcee41ca8ec8807a50c00d49eafa3e318167688c7267654dc904f2de88a243f9699e5a1b4104e56a809617099ea65952a18f9402f5018d17aceedd396c0dd56d2d3f8fc47ee08eba7c6ee8935ea67db4ae2dd9f8c9a8be99e8b3e4eee9a1119fac4a84021ededb3f50047da0bc65f6dfbcee41ca8ec8807a50c00d49eafa3e318167688c7267654d0e0bc18e6f760475eb9b73016e706ec9660b002655e5969250c00d49eafa3e318167688c7267654d870126b3670a3cc3d0107f33c7a2f5a9c7ff09ca237d863fd24be1f892a8b436f68b1884009e64d5184cc25396c7f69e"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:40 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=D94EC6227F30B2CAE1D1396154F60C02; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 2D8674762DD0A47D9E3F44DC9DF2195F88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB9C202F3AAD8393A4F4EF77A29FDE2782D465EC8710220B54FB14D7F4E865833428C659689FFA8A8988FB1409340D7AB9A249EAA2FA0100CBFA9689C384A4B1A005C0CB89D4F6068350C00D49EAFA3E318167688C7267654DEF832F4082F5F69A217884AD66F1A929DC1819E1CBD8CB7615E2F11FE47114D667BA5802A50021DFBC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B34D0071A91201405D2E8C9066B47C8125F10013868548D574ABB685568C70CEBA644DD3B587D9A78903727EE66696BAAFBB3B8B78C95CC7C955E42CEFC90140B8E4AB4452D22BDD713C75596088D68C41469B6D558468F8E459D96E1F76BF5BCDE68417F14A69DF07F2D3F8FC47EE08EBA7C6EE8935EA67DB42B0DD2A53B638B0E2D8EA5AEABDA968EF211B1329B4D208E5AD858DB7A20097268207BCA5BD0A3E22D3F8FC47EE08EBA7C6EE8935EA67DB4AE2DD9F8C9A8BE99EA1F8D761CA114DCA2B507CA2AABF25D633A2D98792B261935486CA4381792D6B3B8B78C95CC7C955E42CEFC90140B8EBE63D7ED29B8109E8A533A0ADA36FD7998151AC850BF5E6E997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF778F96429AB428B134254AD6C086DBF647C4FE778DACBF7E1AA4A923C76E2FC1F5FA33348AD3E28ED8A248D57879CAEB365B3B8B78C95CC7C955E42CEFC90140B8E4F3495859F35F12BF33308B59BF4156D8BA8A0E3F6B9CFAD6CAE6602D7A6FB20C4A7A5D7F6841BE079388FCAC453018A64A8C294F95DCB06190C29515F20AF4420A5F46017BCAE898BF84D95B4F1E8E38BA8A0E3F6B9CFAD6CAE6602D7A6FB20C4A7A5D7F6841BE0169DD461E6DBB0B63897BE51626BD6A4FFE0F860908B58E42D3F8FC47EE08EBA7C6EE8935EA67DB44C63F27BFD73CBA0BA75DDFE17A18BC988FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBF440C4390B0BE0B12D22BCEE8213E79FE6E3B0AEF52A3A474A923C76E2FC1F5F784B81CCA49B8383BC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B34B178A1D1DF6DC9C99001F7284256E1274C9AEA46FA12354C0F4696CB3441F38550C00D49EAFA3E318167688C7267654DC904F2DE88A243F96B6F6BC15C8D958F694A6F5C44AAB09E2D3F8FC47EE08EBA7C6EE8935EA67DB4AE2DD9F8C9A8BE995E5E91BE2F9EA2680F7151B028C5BCBFF0AFD44A6B2104A72BF7D2E19F8E8924A42DCC046643307DBCEE41CA8EC8807A50C00D49EAFA3E318167688C7267654DC904F2DE88A243F96B6F6BC15C8D958F717227707DBFA1102B2C787CA642B634FFE0F860908B58E42D3F8FC47EE08EBA7C6EE8935EA67DB41A2965DB2350DCDD72118B3C7529A35CB441970F41D1587B63F7326CC458B8E7BC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B34218EF0C0B3C5FC6F35DF65DD02F75E882BF07A76743E9EEB6F10D99B010BE0C7997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF7783FD78DDD121BE951877FCC87392E790F89D0711A2AD7808B59185CB343699AAF7D892E914B79368B73B18D33B35D0534
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:43 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_processBankAccountTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"dcd2610ecb6336d5f7f8842ebf6ce01b2d54b8865ecd0b3422a7de029ddbb81c96f9adf09e0bc8496c812edee9cf64d7bb19597eb2fcfc5cb3b8b78c95cc7c955e42cefc90140b8e6cb630e5986662208f00758ea9fdfd2b5ec9b30d35e1216136a2e06bfb79f623bcee41ca8ec8807a50c00d49eafa3e318167688c7267654dc904f2de88a243f90c89c83f147989512f9a4d8451eef9e6bf6154b340a2e6d8bc041c007f3ca9d7f7f8842ebf6ce01b2d54b8865ecd0b34d2970adb8d31234fd6e5368cdf2ddf8ef033db82d4260fb250c00d49eafa3e318167688c7267654d870126b3670a3cc3d0107f33c7a2f5a9c7ff09ca237d863fd24be1f892a8b436f68b1884009e64d5184cc25396c7f69e"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:41 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=86890C4AF8C0063AA65D0BF4750DD7F5; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 2D8674762DD0A47D9E3F44DC9DF2195F88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB0AB5FF6085F30E83A3C9C26A697D91D42D54B8865ECD0B342A26303984B1E32DBC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B347F885C8DE65531D3D40AFCCB8DAFD360FE87722D051072ADFA062FAAF28242E88098AC34DF2FD0E7997B8362AA473FFF5425FB12885FE781751BA5FC6B732B9121E73537F1F719D05E6E9DFA49815217B3114364255033CA997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF778D4C6BA07558CBE45B3B8B78C95CC7C955E42CEFC90140B8EA9F3F8B71B198E60476F3A90EC4439E50AA38B49DC3DA4FE845DE5A849D2E34221CEFAEE8E72FBF6ACEEDD396C0DD56D2D3F8FC47EE08EBA7C6EE8935EA67DB4D891FC5241047425AB9027BB631317C3E67744942C5EBE2C12BCFC2E19BEF431E2878241CC561A705B69E71E9896A93388FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB50C00D49EAFA3E311388612EE31ED177EDEE58F8F28893F1F2274F0E233A59598BA8A0E3F6B9CFAD6CAE6602D7A6FB2028B24F1673A5A5BA73E40901AEB25092ADEC3C69B28E8D9B88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB50C00D49EAFA3E31DCB5295DBE903E7CE40A4AF2BE145FF981417D5925BCFBC1E01C80F7B92C940AD8F54CA1DD557267657E4788D30455E0B3B8B78C95CC7C955E42CEFC90140B8EBE63D7ED29B8109E8A533A0ADA36FD7998151AC850BF5E6E997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF7785B57B26FADACBC5A1B0BEFFB7C5252C3F4854133FB0BF88D20B42DA7094F33E17C0689B251210C9400C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F448D91A92047D896CE55A695E00E4637FE87722D051072ADFA062FAAF28242E84C19EC9C7B4112274508CA15DAEA85CF50C00D49EAFA3E31D3C786BCAF2356D51B0BEFFB7C5252C345305E3741E23065BBC480DE8627AFC3168683F768501F6088FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB1F86007DD3EBB793DCD2610ECB6336D5F7F8842EBF6CE01B2D54B8865ECD0B34B178A1D1DF6DC9C9DD4D87D6EC59ACB4F0AFD44A6B2104A720A5F46017BCAE8912B672E949261EDD7A9A679139995F1DB3B8B78C95CC7C955E42CEFC90140B8E37B2E4B8D621F4974C6A14DD272874813536725D98D8FB50B2CFD0AEEEA9102F8BA8A0E3F6B9CFAD6CAE6602D7A6FB2028B24F1673A5A5BAF7F8842EBF6CE01BB34B74FFCD07583788FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB50C00D49EAFA3E3187530730A5952CE5ED253B03B40E61B3CC36C9A9DF814DD21641737CD3D3EBC098DFA9A17103B1FD8BA8A0E3F6B9CFAD6CAE6602D7A6FB2028B24F1673A5A5BAF7F8842EBF6CE01B169DD461E6DBB0B6702DFF74A678662015BA365D132D0F5088FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB5C31E6363AA504FCDCB5295DBE903E7CB824B357AF0F841A3BCD2E8EAB22AC7BB3B8B78C95CC7C955E42CEFC90140B8E0ADC60F15D504F5D9731CDD0318E57F52D54B8865ECD0B342CFF0E3117B8A08F21EC05D1EFE321DD2D3F8FC47EE08EBA7C6EE8935EA67DB4CEDE098652F9C74347D8CA5D5DEB17770AA38B49DC3DA4FE845DE5A849D2E342D860CCFAE1002B5CB4065E454E39972C
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:44 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_processBankAccountTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"dcd2610ecb6336d5f7f8842ebf6ce01b2d54b8865ecd0b347f994197c62fbb32a5e13bb954537a18bc041c007f3ca9d7f7f8842ebf6ce01b2d54b8865ecd0b347f885c8de65531d3aef446f0f54c96b7bc041c007f3ca9d7f7f8842ebf6ce01b2d54b8865ecd0b3422a7de029ddbb81c96f9adf09e0bc8496c812edee9cf64d7bb19597eb2fcfc5cb3b8b78c95cc7c955e42cefc90140b8e6cb630e5986662208f00758ea9fdfd2b5ec9b30d35e1216136a2e06bfb79f623bcee41ca8ec8807a50c00d49eafa3e318167688c7267654dc904f2de88a243f9699e5a1b4104e56a809617099ea65952a18f9402f5018d17aceedd396c0dd56d2d3f8fc47ee08eba7c6ee8935ea67db4ae2dd9f8c9a8be99e8b3e4eee9a1119fac4a84021ededb3f50047da0bc65f6dfbcee41ca8ec8807a50c00d49eafa3e318167688c7267654d0e0bc18e6f760475eb9b73016e706ec9660b002655e5969250c00d49eafa3e318167688c7267654d870126b3670a3cc3d0107f33c7a2f5a9c7ff09ca237d863fd24be1f892a8b436f68b1884009e64d5184cc25396c7f69e"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:39 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=A056CA3273FE82040C246D1F7DBC52CB; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: DCD2610ECB6336D5F7F8842EBF6CE01B2D54B8865ECD0B34A87AD4A963370B1F8BA8A0E3F6B9CFAD6CAE6602D7A6FB20BA1176219862C5258BEF0B21FB550A024FF41AFA333138157B39D62862A4917FD9F943E73B1D5582C18F15814529440EB3B8B78C95CC7C955E42CEFC90140B8E8D2C4C12210E2965EF070EC0C871ABED40836225C49002FC9A5EAC2BC332E691005F5B20C9814FF3EC14F03F763F5EA800C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F2D3F8FC47EE08EBA717227707DBFA11040B6D2853F0B81A96C5104AC4983E57188FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBB68B0F6576104870CFD524F53C85C02ABEB3EBA3A1C5C4A10880119837FF67E788FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB50C00D49EAFA3E31DCB5295DBE903E7CFD710E39609AAE58CED62A0E1C6625BB00C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F5EA356372CABACAF997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF7782D74296B1CA52D392D22BCEE8213E79F03CDD72E58377D089E0C0D9889AAFCA070EF59C3B15B47B8997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF77898BFD59E66C58BB49D1925C11E008687EE6267F71499F75C88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB50C00D49EAFA3E31B2414187C6EC0B6700C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F2D3F8FC47EE08EBA9639B09A6C98FEB6A421B84395211E10DA53F3742CC8E5EFA0D00D48F5A55EE46888EBB56F3FEE8F88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB50C00D49EAFA3E316FE5FD232E2818D54157808C703956D1056275498693929200C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F481DC4F7160B1D2905C0CB89D4F6068350C00D49EAFA3E318167688C7267654D88584CF46174B2FA861AAFDCD3FFF54DF388522AC185B89D71E65AB4625F9E1CD465EC8710220B54BDB74A7249C1806B88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBF061B1DBBFDF71E2E7B69E618AECAC6DD81CF04831A78AC9997B8362AA473FFF1F72A5209E2FC2DB9C6A69E9509FF778A5E0C56FD28E92F5DA4250330A3F2D3B23D95300C4FB76DC47BD2739710BE97B88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB9B1821AC6B04C46D98280B27631E456D683DE3A7AC54A126152F81CEE97E61EEB4FAC4153C30ED2E00C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F799DD8EA29D2E82605C0CB89D4F6068350C00D49EAFA3E318167688C7267654DCED4B21F9139B974698EA500335C2B74F388522AC185B89D351B6342D0E6F280B8B0E70DE3C3B02D8BA8A0E3F6B9CFAD6CAE6602D7A6FB20DB0DA0362400069EE45F7D86E89617ACB3B3F4245CACED35FFE0F860908B58E42D3F8FC47EE08EBA7C6EE8935EA67DB40990EDC372B2F88DC34C3372B65814329C6A69E9509FF7782DBC7DDED2F01849BCEE41CA8EC8807A50C00D49EAFA3E318167688C7267654D870126B3670A3CC3D0107F33C7A2F5A9C7FF09CA237D863FD24BE1F892A8B436F68B1884009E64D57782D446BB63A2C8
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:41 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_processBankCardTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"6f50ac65ab0165c440315668ad6ce2092bf07a76743e9eebf6d5201ff01ec0b47cd40b5522b736de397b2d63174a0356189be8836469fbe0aae4f6ca539fa56d3702009a70de293438153c9549274799a7fda9da90e30f404bb002fce56bd525319cf2ed48ee89be8495e2d7f187b7dac82789f2a551195e7e9d821869d6e03d527ea830b2cb359fad570b8c93e1044e9e0ef0e873016fd0d10f780753db243c0f856161c858ee04319cf2ed48ee89be62c1d0c146cf238a605ebde35d6795050f4696cb3441f385bbdf1a45df89a48e4a923c76e2fc1f5f1f058bf4935b3308c6543203281cb6752bc7a9536360ab747c6ee8935ea67db48bd6ef76065371a4f4fa77efe913f72bdc03c5a3ca572503e9463d490103ce8f6967ab918009723798c69a25f578af0d8167688c7267654d68465d4342eb3a44717227707dbfa1105fc5d1796c09b817b507d78c8eb77d06459666d7be5708f99c6a69e9509ff77820eab31aa675736897ca25d968e2812a8c4413b2b6602dccc0dcec0a68e0ff3840315668ad6ce2092bf07a76743e9eeb49b0c5506db882cf960f85bc63f41e9459f60f54c7ce0b151be39e3d473993334c5fdda885b23db4ba1176219862c525b6658c43b46d228165a589a2c7dcc1961be39e3d473993334c5fdda885b23db428b24f1673a5a5ba73e40901aeb2509273b18d33b35d0534"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Tue, 03 Mar 2015 21:53:43 GMT
|
23
23
|
Server:
|
24
24
|
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=E73CCE5299C505BD2243D626171DC71C; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 6F50AC65AB0165C440315668AD6CE209FA9689C384A4B1A005C0CB89D4F60683BBDF1A45DF89A48E4A923C76E2FC1F5FC57CFBAA4499D728FEE04615D77C7E4A459666D7BE5708F99C6A69E9509FF7782247FB6EE18C7705694A6F5C44AAB09E459666D7BE5708F99C6A69E9509FF7782247FB6EE18C7705F3F34B60BF9D693BB63FF9A597F76E672D1023C6C0C8B5BDFDCE97B8D2B542808C9AE1884022E268CBD2F1F05ACD2F24D8F4CA762F22F54037B2E4B8D621F4974C6A14DD2728748104EDB152AE887ED56A907159F81B0393E4539613D8532CB32035472E754DFE6B7DF2500EB4D98D34A1EE20EF9461AD3F1BE39E3D473993334C5FDDA885B23DB42CCD1E32E63A2DF9B5E2CB5F48A87792B8A7DDF462AAA39113C1F04625260FAC7A9A679139995F1DC0F1CB9743426B762D54B8865ECD0B34C19BC53B05454759B5E2CB5F48A877925F41CB5A6EF8AF79BCEE41CA8EC8807ABBDF1A45DF89A48E4A923C76E2FC1F5F6E3C2B83E9C09F2922E1EB0EF992D82464668FFA790C34C0E3800514ED6CD92EBEB3EBA3A1C5C4A10880119837FF67E72BC7A9536360AB747C6EE8935EA67DB48BD6EF76065371A4F4FA77EFE913F72BC468028ECC84DE8E65D875A8D98BE08B6967AB918009723798C69A25F578AF0D8167688C7267654DBEE05770C1E4797E98F93A432AA6BC96F3036056818B7863ED8758D38A18100EC0F1CB9743426B762D54B8865ECD0B34420CA8C9101945CBC23B1C3094E3C159B6D44FD0DCD998691B5DBA21E1BB7476CBD2F1F05ACD2F24D8F4CA762F22F5407BD323F4AD030F1D46AAB9D1E39AD3546FD07C406DD425F3CBD2F1F05ACD2F24D8F4CA762F22F540D8ECCDEE9BB8E2549C6A69E9509FF7788B93C6FCCCE8469003D445750B398707C0F1CB9743426B762D54B8865ECD0B34AE5D91E376C1DAE57A0C8C124A0EF442C0DCEC0A68E0FF3840315668AD6CE2092BF07A76743E9EEBB68B0F6576104870FE030781CAF4960DBBDF1A45DF89A48E4A923C76E2FC1F5F6E3C2B83E9C09F2998B1B8F8525A818E076F91E8F0A8C25465E9C77476D4904ADFADC31341F51489459666D7BE5708F99C6A69E9509FF77820EAB31AA675736897CA25D968E2812A8C4413B2B6602DCCC0DCEC0A68E0FF3840315668AD6CE2092BF07A76743E9EEBE67744942C5EBE2C7C6EE8935EA67DB4D891FC5241047425470589B985E81015A2F5D7D59F6BE1D578F39F2513F9106D90DC50632EC9423E6B25BC9DB51F867314BFACEFCA3A5371F74CDE65EDA10E2B08563F7D0E29909AB3C05533FBBE49716D1C3F0238D423B6D7AFCE1653F9E7A9F9E5128AA9BE2918E9F0ECB14FA23597E7E73DE7E0A8BCBEB516F081545A405978C30339839937095DBEC638BCAE82AB25E0842194D8081E476F3A90EC4439E5CF071E68D2EC59ADB83DDABDDA6A974CF8C3177721F12A0818E7D79016DD3AF102BFA0B2F9031561009CB20A36BD36B33EF780318BCCE0C615A266CC120E41A02E3C4C8FEBF0C9A2D0071A91201405D2E20CFBE08C64B53469F96B98DDA23DD452CE165F7298D9CAD5673B3DA322D036A2F5D7D59F6BE1D544CA23D7D56271195EC20F2726D05B4C3D870C499F9A4B478C763FAAD51679DDBEB3EBA3A1C5C4A10A110601484DB074AFEB00DC16AC2CDEABFAC0C361C8362BFBC2F580D0479C3B64DA2F2FF4F871D80F4696CB3441F385BBDF1A45DF89A48E4A923C76E2FC1F5F3E8CFCB26B146D6DEC4E3CE84CE9C7449CBE8BF4548A143B762E1F68162595284C34ED9C45515B052BC7A9536360AB747C6EE8935EA67DB499E6BA5EFD0C30D0B6D44FD0DCD9986965F163262D1166FA459666D7BE5708F99C6A69E9509FF778421BB554274DEA411C0584E4ACC785F54F639C620AE454781BE39E3D473993334C5FDDA885B23DB4A637C53809996E9A18BBA10E8AB15363EC848288C5CFA91CA7124BBBD810D763381063A5D02A1022D106710BB5FE8E6DBB8AB2D09B9B14839E0EF0E873016FD0DC5D392527DBBF157E9D821869D6E03D189BE8836469FBE0AAE4F6CA539FA56D3702009A70DE29341FD94E39DD49D56DCCD811908A2C342C3D9E0A59B9C6C79C1B6F221D6F510483DA5CD2C60C4C360F98EB418BF9824B4D7802FAF5E14928F5DC5DD937F8D1B170B2D0C5EC887C6E643C56555B01CD266A7C796BF4240988005B1DE074B66C7DB7C0F1CB9743426B762D54B8865ECD0B347F994197C62FBB3205C0CB89D4F60683BBDF1A45DF89A48E4A923C76E2FC1F5F9639B09A6C98FEB6A421B84395211E10C8A32DEC4625D5BC19355A9855B7F00645A6F36C84C18E751BE39E3D473993334C5FDDA885B23DB4C4A7A5D7F6841BE0169DD461E6DBB0B66FA8A7DCFCE53EDBCFC2B63578760753
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Tue, 03 Mar 2015 16:53:45 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
data/spec/factories.rb
CHANGED
@@ -2,8 +2,8 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module BasecommSdk
|
4
4
|
describe BankAccountTransaction, type: :lib do
|
5
|
-
|
6
5
|
include_context 'class_with_messages'
|
6
|
+
include_context 'bat_response_methods'
|
7
7
|
|
8
8
|
let(:instance) { create(:bank_account_transaction) }
|
9
9
|
let(:instance_json) { instance.to_json }
|
@@ -56,5 +56,72 @@ module BasecommSdk
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
context '.correction?' do
|
60
|
+
it 'returns true for a correction' do
|
61
|
+
bat = described_class.from_json(bat_correction_json)
|
62
|
+
expect(bat.correction?).to eq(true)
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'returns false if a return' do
|
66
|
+
bat = described_class.from_json(bat_returned_json)
|
67
|
+
expect(bat.correction?).to eq(false)
|
68
|
+
end
|
69
|
+
|
70
|
+
it 'returns false if a settled' do
|
71
|
+
bat = described_class.from_json(bat_settled_json)
|
72
|
+
expect(bat.correction?).to eq(false)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
context '.returned?' do
|
77
|
+
it 'returns false for a correction' do
|
78
|
+
bat = described_class.from_json(bat_correction_json)
|
79
|
+
expect(bat.returned?).to eq(false)
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'returns true if a return' do
|
83
|
+
bat = described_class.from_json(bat_returned_json)
|
84
|
+
expect(bat.returned?).to eq(true)
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'returns false if a settled' do
|
88
|
+
bat = described_class.from_json(bat_settled_json)
|
89
|
+
expect(bat.returned?).to eq(false)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
context '.settled?' do
|
94
|
+
it 'returns false for a correction' do
|
95
|
+
bat = described_class.from_json(bat_correction_json)
|
96
|
+
expect(bat.settled?).to eq(false)
|
97
|
+
end
|
98
|
+
|
99
|
+
it 'returns false if a return' do
|
100
|
+
bat = described_class.from_json(bat_returned_json)
|
101
|
+
expect(bat.settled?).to eq(false)
|
102
|
+
end
|
103
|
+
|
104
|
+
it 'returns true if a settled' do
|
105
|
+
bat = described_class.from_json(bat_settled_json)
|
106
|
+
expect(bat.settled?).to eq(true)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
context '.status_date' do
|
111
|
+
it 'returns settlement_date if settled' do
|
112
|
+
bat = described_class.from_json(bat_settled_json)
|
113
|
+
expect(bat.status_date).to eq(bat.settlement_date)
|
114
|
+
end
|
115
|
+
|
116
|
+
it 'returns return_date if returned' do
|
117
|
+
bat = described_class.from_json(bat_returned_json)
|
118
|
+
expect(bat.status_date).to eq(bat.return_date)
|
119
|
+
end
|
120
|
+
|
121
|
+
it 'returns settlement_date by default' do
|
122
|
+
bat = described_class.from_json(bat_initiated_json)
|
123
|
+
expect(bat.status_date).to eq(bat.settlement_date)
|
124
|
+
end
|
125
|
+
end
|
59
126
|
end
|
60
127
|
end
|
@@ -2,6 +2,18 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module BasecommSdk
|
4
4
|
describe Base, type: :lib do
|
5
|
+
context '#json_prefix' do
|
6
|
+
it 'returns the json_prefix' do
|
7
|
+
expect(BankAccount.json_prefix).to eq(:bank_account)
|
8
|
+
end
|
9
|
+
end
|
5
10
|
|
11
|
+
context '.status_description' do
|
12
|
+
include_context 'bat_response_methods'
|
13
|
+
it 'returns the status_description' do
|
14
|
+
bat = BankAccountTransaction.from_json(bat_returned_json)
|
15
|
+
expect(bat.status_description).to match(/returned/i)
|
16
|
+
end
|
17
|
+
end
|
6
18
|
end
|
7
19
|
end
|
@@ -73,7 +73,7 @@ module BasecommSdk
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
context '.add_bank_card'
|
76
|
+
context '.add_bank_card' do
|
77
77
|
it 'returns a valid new bank card instance' do
|
78
78
|
bank_card = create(:bank_card)
|
79
79
|
last_4 = bank_card.number.split(//).last(4).join
|
@@ -169,7 +169,6 @@ module BasecommSdk
|
|
169
169
|
returned_bat = instance.process_bank_account_transaction(bat)
|
170
170
|
expect(returned_bat.messages.empty?).to eq(false)
|
171
171
|
expect(returned_bat.messages.count).to eq(3)
|
172
|
-
binding.pry
|
173
172
|
end
|
174
173
|
end
|
175
174
|
|
data/spec/spec_helper.rb
CHANGED
@@ -0,0 +1,70 @@
|
|
1
|
+
# rubocop:disable all
|
2
|
+
shared_context 'bat_response_methods' do
|
3
|
+
def bat_hash(opts = {})
|
4
|
+
{
|
5
|
+
'bank_account_transaction' => {
|
6
|
+
'bank_account_transaction_routing_number' => opts.fetch(:routing_number, '021000021'),
|
7
|
+
'bank_account_transaction_status' => {
|
8
|
+
'bank_account_transaction_status_name' => opts.fetch(:status_name, 'SETTLED'),
|
9
|
+
'bank_account_transaction_status_description' => opts.fetch(:status_description, 'Settled Transaction')
|
10
|
+
},
|
11
|
+
'device_id' => 2,
|
12
|
+
'merchant_organization_id' => 3,
|
13
|
+
'bank_account_transaction_type' => {
|
14
|
+
'bank_account_transaction_type_name' => 'DEBIT',
|
15
|
+
'bank_account_transaction_type_description' => 'Debit Transaction'
|
16
|
+
},
|
17
|
+
'bank_account_transaction_account_type' => {
|
18
|
+
'bank_account_transaction_account_type_name' => 'CHECKING',
|
19
|
+
'bank_account_transaction_account_type_description' => 'Checking Account'
|
20
|
+
},
|
21
|
+
'bank_account_transaction_settlement_date' => '02/23/2015 12:00:00',
|
22
|
+
'bank_account_transaction_account_number' => '4*********4124',
|
23
|
+
'bank_account_transaction_method' => {
|
24
|
+
'bank_account_transaction_method_description' => 'ccd method',
|
25
|
+
'bank_account_transaction_method_name' => 'CCD'
|
26
|
+
},
|
27
|
+
'bank_account_transaction_effective_date' => '02/20/2015 01:31:10',
|
28
|
+
'bank_account_transaction_id' => opts.fetch(:transaction_id, 1348),
|
29
|
+
'bank_account_transaction_amount' => opts.fetch(:amount, 10.18),
|
30
|
+
'bank_account_transaction_account_name' => 'Sample ACH Transaction',
|
31
|
+
'bank_account_transaction_merchant_transaction_id' => '0',
|
32
|
+
'messages' => [],
|
33
|
+
'bank_account_transaction_return_code' => opts.fetch(:return_code, nil),
|
34
|
+
'bank_account_transaction_creation_date' => '02/19/2015 08:31:11',
|
35
|
+
'bank_account_transaction_return_date' => '02/14/2015 01:31:17'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
def bat_returned_json(opts = {})
|
41
|
+
bat_hash(
|
42
|
+
status_name: 'RETURNED',
|
43
|
+
status_description: 'Returned Transaction',
|
44
|
+
return_code: opts.fetch(:return_code, 'R01')
|
45
|
+
).to_json
|
46
|
+
end
|
47
|
+
|
48
|
+
def bat_settled_json(opts = {})
|
49
|
+
bat_hash(
|
50
|
+
status_name: 'SETTLED',
|
51
|
+
status_description: 'Settled Transaction',
|
52
|
+
).to_json
|
53
|
+
end
|
54
|
+
|
55
|
+
def bat_correction_json(opts = {})
|
56
|
+
bat_hash(
|
57
|
+
status_name: 'RETURNED',
|
58
|
+
status_description: 'Returned Transaction',
|
59
|
+
return_code: opts.fetch(:return_code, 'C01')
|
60
|
+
).to_json
|
61
|
+
end
|
62
|
+
|
63
|
+
def bat_initiated_json(opts = {})
|
64
|
+
bat_hash(
|
65
|
+
status_name: 'INITIATED',
|
66
|
+
status_description: 'Initiated Transaction'
|
67
|
+
).to_json
|
68
|
+
end
|
69
|
+
end
|
70
|
+
# rubocop:enable all
|
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.0.
|
4
|
+
version: 1.0.1
|
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-
|
12
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dotenv
|
@@ -73,14 +73,14 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.1.
|
76
|
+
version: 0.1.14
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.1.
|
83
|
+
version: 0.1.14
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: bundler
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -295,10 +295,7 @@ files:
|
|
295
295
|
- lib/basecomm_sdk/version.rb
|
296
296
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/fails_when_passing_an_invalid_bank_account.yml
|
297
297
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/returns_the_new_bank_account_instance.yml
|
298
|
-
- spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml
|
299
|
-
- spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml
|
300
298
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_bat_transaction.yml
|
301
|
-
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_transaction.yml
|
302
299
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml
|
303
300
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml
|
304
301
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/returns_the_specified_bank_card_transaction.yml
|
@@ -320,6 +317,7 @@ files:
|
|
320
317
|
- spec/lib/basecomm_sdk_spec.rb
|
321
318
|
- spec/spec_helper.rb
|
322
319
|
- spec/support/shared_class_with_messages.rb
|
320
|
+
- spec/support/shared_responses.rb
|
323
321
|
homepage: ''
|
324
322
|
licenses:
|
325
323
|
- MIT
|
@@ -347,10 +345,7 @@ summary: Ruby client gem for Base Commerce ACH provider
|
|
347
345
|
test_files:
|
348
346
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/fails_when_passing_an_invalid_bank_account.yml
|
349
347
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/returns_the_new_bank_account_instance.yml
|
350
|
-
- spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml
|
351
|
-
- spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml
|
352
348
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_bat_transaction.yml
|
353
|
-
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_transaction.yml
|
354
349
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml
|
355
350
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml
|
356
351
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/returns_the_specified_bank_card_transaction.yml
|
@@ -372,3 +367,4 @@ test_files:
|
|
372
367
|
- spec/lib/basecomm_sdk_spec.rb
|
373
368
|
- spec/spec_helper.rb
|
374
369
|
- spec/support/shared_class_with_messages.rb
|
370
|
+
- spec/support/shared_responses.rb
|
data/spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_addBankCardV4
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"6f50ac65ab0165c47b1896ccb2445caf2f9a4d8451eef9e6bf6154b340a2e6d8c0dcec0a68e0ff3894b8e636c8c06b60c4d37addd1d3d150fbedde7551b93fdcd4b6352c1aa94a97e842ab55d2abc9358140e36c26b87583d2e7309a9a8eb9def8a9f6c05b61142d2bc7a9536360ab74ddb97379b4d71d0f875610f9cec6b7332fdcb8c17c783b1c6aaa0da9a984f4c1fed074aad73380f5d266388c93cb905fb2235cfe4e194bcce26917adf05e9932725aacb238dc5eda7e9d821869d6e03d104a4efd062b372c69c88057da0b69c67c7cb3ffa58f3bab574686602be3a42cd504a1ad66d15bcb75ad7546f0026c87ae3afb34844917e9fcc0de46e4561e857e9d821869d6e03d96d88d9d947d41f1e4d6de1f7690fd9bffe0f860908b58e4fae0bfe9dc534fd5476f3a90ec4439e569c611c97b97de6decf8eefdce2d7d9751cc082edb58896c21ec05d1efe321ddfc8b7b7a24910a096d3a4a6d87517779ba3ac248045a51816f580c569ea1e3eef0298fcacc8a6939671ea480a6281fb1"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.0
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- "*/*"
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: ''
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Fri, 19 Dec 2014 23:19:21 GMT
|
23
|
-
Server:
|
24
|
-
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
|
-
Set-Cookie:
|
26
|
-
- JSESSIONID=2A0CABFD927D56013ACE9CFAAA1ED24E; Path=/; Secure
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
body:
|
30
|
-
encoding: UTF-8
|
31
|
-
string: 6F50AC65AB0165C4E20175BD2D80BA542BC7A9536360AB74481DC4F7160B1D2905C0CB89D4F606831DE0551E71D06A1CCEBDCB1FDFF27E2088D2BD4F01DB676C97D75E0C7C041E54BD287B92927086BDB63A1EF23C050852ED253B03B40E61B33055D4BBCF95A8A0D1DCC27B0004300FC0DCEC0A68E0FF389F913BAD3DA27830217884AD66F1A929DB12226A40FEB17B400CCB6DABF721A2FBFC3380D5098599C0DCEC0A68E0FF387B1896CCB2445CAF2F9A4D8451EEF9E6BF6154B340A2E6D8C0DCEC0A68E0FF3894B8E636C8C06B60C4D37ADDD1D3D150FBEDDE7551B93FDCD4B6352C1AA94A97E842AB55D2ABC9358140E36C26B87583D2E7309A9A8EB9DEF8A9F6C05B61142D2BC7A9536360AB746CDB74DB7E0F6BD739EAE4EF80E9E406D12E037AB049BF30324700FD89BC4F7528F42BE021C48088D24F5BFC7731E25425C84FBF6550C4F9E46B6E98370F684797A27C919B2D9F832E3C4C8FEBF0C9A24CAF2AEC07BC99E7BCEE41CA8EC8807A8B7512D30DBFB72868923A45FEB9F48224DFF54E6DFE52989E0EF0E873016FD05FA4A48F901689F68CE95293E0F7F982A4B639267C2AB2CE5CCC84115CBE5C7FD923D3974D0F426E75AD7546F0026C87717227707DBFA11042A4B0B65998E35E319CF2ED48EE89BE62C1D0C146CF238A605EBDE35D679505319CF2ED48EE89BE56011B98AEE0CEB6247EA649C1A2E0F268D70962CED45E6A992D313BD9DF01165F9484E6626DE89AC5FB60624A8CBA3919F9F63A3B1C18F5F3CFE8452019B29EEEF87601FE2CA716A1EE20EF9461AD3F1BE39E3D4739933333515AFCBE79069C1BD2C4A6FE7C603ACF076E48722E741DF8A9F6C05B61142D2BC7A9536360AB7486553895C35767388ADD2AF80238CA6EA0A367EC2CADDDE129E058DEDAB82DD9F795B1C7DCACBBEE346910AF76E1FA62A87AD4A963370B1F98C69A25F578AF0D8167688C7267654DB1A466CE89697E7C279078757253F474FA9E4C5C3F93346305E80916365E64F67782D446BB63A2C8
|
32
|
-
http_version:
|
33
|
-
recorded_at: Fri, 19 Dec 2014 23:19:01 GMT
|
34
|
-
recorded_with: VCR 2.9.3
|
data/spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_addBankCardV4
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":"6f50ac65ab0165c47b1896ccb2445caf2f9a4d8451eef9e6bf6154b340a2e6d8c0dcec0a68e0ff38581bf640b44207642800c7e3959762dde9463d490103ce8fc8c643d07137cb75cbd2f1f05acd2f2458b619c0d729ec1597ca25d968e2812a41ba961a27a8da41c0dcec0a68e0ff3894b8e636c8c06b6098f93a432aa6bc96f3036056818b7863f1090ad5d0544e2806d3d1470d32f40518bba10e8ab15363ec848288c5cfa91ca7124bbbd810d7639001f7284256e127218c86f787494ce87e9d821869d6e03da7f3d2ce81392b8ce9a630a17fb622eb49c6735c7a1162e875ad7546f0026c87180c152142737da01cfe1c17dbd6409e319cf2ed48ee89be0758af8605c5552d81c7967b0e240ac85fd305b2477f0377648f3533cb2a0fcd4859de0853ea1da175ad7546f0026c87586e107dccc471eea7377a0f845a1ba3c0dcec0a68e0ff389f913bad3da27830217884ad66f1a929db12226a40feb17be17dc2e8a7f675141ef2246b8c8b42cec0dcec0a68e0ff38d62ba363b7900d2cb3d541db4e97a8c0bb89321629fec05da2c0831c69be688b9b4cc8215e2258c8184cc25396c7f69e"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.0
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- "*/*"
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: ''
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Fri, 19 Dec 2014 22:48:39 GMT
|
23
|
-
Server:
|
24
|
-
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
|
-
Set-Cookie:
|
26
|
-
- JSESSIONID=B905597B5431580EB6C4738BF4B8A84B; Path=/; Secure
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
body:
|
30
|
-
encoding: UTF-8
|
31
|
-
string: 6F50AC65AB0165C4E20175BD2D80BA542BC7A9536360AB74481DC4F7160B1D2905C0CB89D4F606831DE0551E71D06A1CCEBDCB1FDFF27E206678E31E0E3DFC378A9FF3ABFF52F9F8BD287B92927086BDB63A1EF23C050852ED253B03B40E61B32D2983E688B4056327B6B78862E1C60FC0DCEC0A68E0FF389F913BAD3DA27830217884AD66F1A929DB12226A40FEB17BE17DC2E8A7F67514879BD8CE57A1C51CC0DCEC0A68E0FF387B1896CCB2445CAF2F9A4D8451EEF9E6BF6154B340A2E6D8C0DCEC0A68E0FF3894B8E636C8C06B60C4D37ADDD1D3D150FBEDDE7551B93FDCD4B6352C1AA94A97E842AB55D2ABC9358140E36C26B87583D2E7309A9A8EB9DEF8A9F6C05B61142D2BC7A9536360AB7495A7B1CDBBE73637D65B76865B8C8BE38620C1913C73F8C6473A16195174A3DD35ACF03BD9F47C026967AB918009723798C69A25F578AF0DDCB5295DBE903E7C194F1E18626071148CC6CFBB4C178B6A5E19448788A4D1E93E81BB82C600A566478599AC6EC9DADF486D2A712C1BF2919AF568B5103504189C8402B46B2F8184BB685568C70CEBA6F3458FC3D2E49BD427D9EBCFEC50045E9CCA154C65E7F4C73FB95BEE6719507B7F1C7C74EBA73F3775AD7546F0026C87D0AC53B865D0C635E303DE96DBF76C06D0CD4E71C9AA79AF93E505D19204BCEB733D5A0CFFC31CE3319CF2ED48EE89BE9001F7284256E127218C86F787494CE87E9D821869D6E03D96D88D9D947D41F1E4D6DE1F7690FD9B7E9D821869D6E03DF3880CA86658CDDAF4B7463D1491B4EEB5DFD67615C050C75A1E27FDFAC9AA7BA2D0AC7E391A691C5C95042E47C1683C1C7287BA7D416C52814B9757159010C686CF881AF57C4AC003AA68BF5714EFCDC0DCEC0A68E0FF3894B8E636C8C06B60C2513068021AF6FD6D21EA46893FA0B83FE739E9FCBB6169CBD2F1F05ACD2F24DA911BB5CB6BB09B34251C02883E1E8E7DCEC7D5654526E11953E061E8F84DABBCC6458BED487A6D1BE39E3D4739933390EC897109977C1A0AAEA445464871836207ACE7B40473822D5BE2C594D3D8C043830940F9197F591D75DAF653DFC6B0B173AE84B474C3AD1D09AE047190A8DAF8C28C33CA67D2469BF456031832502998C69A25F578AF0DB001EF72610A52FD9BAE2F63E7D18B69
|
32
|
-
http_version:
|
33
|
-
recorded_at: Fri, 19 Dec 2014 22:48:20 GMT
|
34
|
-
recorded_with: VCR 2.9.3
|
@@ -1,34 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_getBankAccountTransactionV4
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance1","gateway_password":"brxEY5SxdMjG","payload":99999}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.0
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- "*/*"
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: ''
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Fri, 19 Dec 2014 23:16:37 GMT
|
23
|
-
Server:
|
24
|
-
- Apache/2.4.10 (FreeBSD) OpenSSL/1.0.1j
|
25
|
-
Set-Cookie:
|
26
|
-
- JSESSIONID=F5B4DB7BB6476ADC95C595146445D34E; Path=/; Secure
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
body:
|
30
|
-
encoding: UTF-8
|
31
|
-
string: 2D8674762DD0A47D9E3F44DC9DF2195F88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEB3113B0BCBD79F387EADAF08E85495538B2A02EC2A39026D24A923C76E2FC1F5FC0AD5E9EC7743B97B850239486B8E1A9A8B4E5CE2FACEF1800C2FE8D01E3D5EF3C3E0715177E0C364A923C76E2FC1F5F694A6F5C44AAB09E2D3F8FC47EE08EBA7C6EE8935EA67DB44C63F27BFD73CBA0BA75DDFE17A18BC988FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBF440C4390B0BE0B12D22BCEE8213E79FE6E3B0AEF52A3A474A923C76E2FC1F5F784B81CCA49B8383BC041C007F3CA9D7F7F8842EBF6CE01B2D54B8865ECD0B34B178A1D1DF6DC9C99001F7284256E1274C9AEA46FA12354C0F4696CB3441F38550C00D49EAFA3E318167688C7267654D0E0BC18E6F760475B924C6BF8902ACDA88FB1409340D7AB9A249EAA2FA0100CB2BF07A76743E9EEBE67744942C5EBE2C7C6EE8935EA67DB4D891FC5241047425DA9B085001F4ECD4
|
32
|
-
http_version:
|
33
|
-
recorded_at: Fri, 19 Dec 2014 23:16:17 GMT
|
34
|
-
recorded_with: VCR 2.9.3
|