basecomm_sdk 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -0
- data/README.md +1 -1
- data/lib/basecomm_sdk/bank_account_transaction.rb +3 -1
- data/lib/basecomm_sdk/version.rb +1 -1
- data/spec/cassettes/BasecommSdk_Client/_add_bank_account/fails_when_passing_an_invalid_bank_account.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_add_bank_account/returns_the_new_bank_account_instance.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml +34 -0
- data/spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml +34 -0
- data/spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_bat_transaction.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/returns_the_specified_bank_card_transaction.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/fails_when_passing_invalid_transaction.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/populates_messages_with_failure_reasons.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/returns_the_processed_bank_account_transaction.yml +7 -7
- data/spec/cassettes/BasecommSdk_Client/_process_bank_card_transaction/returns_the_processed_bank_account_transaction_for_auth.yml +7 -7
- data/spec/lib/basecomm_sdk/bank_account_transaction_spec.rb +8 -2
- data/spec/lib/basecomm_sdk/client_spec.rb +16 -16
- data/spec/lib/basecomm_sdk/triple_des_service_spec.rb +3 -2
- data/spec/spec_helper.rb +2 -2
- data/spec/support/shared_responses.rb +29 -27
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1da749fdf2e66ef1f44866609d0182c62febad8b
|
4
|
+
data.tar.gz: ce7cd92b9fa957e5fe20dc5b5117ec2e5347c7d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3294d41146a580dcbe15fba9f067d7a0272aa06ff3fdcbf28477b7b7d1125da17adddc1db9d739a04c7c1dce6e442e87a7a422bd0c64061d7f5603ceb3555b3c
|
7
|
+
data.tar.gz: 478feceb7116b6b19c269229b80043d523519f71b19c702a9f1ea4ed3e3f0603489de1176164f87c5aea27987c713fcfeaa940ca0f25b3b3376f6a6c22883bf5
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
*1.1.6* (March 30, 2015)
|
2
|
+
|
3
|
+
* Status date returns creation date if status is created
|
4
|
+
* Fixed an issue where status date sometimes returned a string instead of a date
|
5
|
+
|
1
6
|
*1.1.5* (March 25, 2015)
|
2
7
|
|
3
8
|
* Status date defaults to current time and set status date correctly for initiated.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Base Commerce SDK
|
2
2
|
|
3
|
-
**Version: 1.1.
|
3
|
+
**Version: 1.1.6**
|
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, :creation_date
|
34
34
|
|
35
35
|
attr_accessor :custom_field1, :custom_field2, :custom_field3,
|
36
36
|
:custom_field4, :custom_field5, :custom_field6, :custom_field7,
|
@@ -65,6 +65,8 @@ module BasecommSdk
|
|
65
65
|
|
66
66
|
def status_date
|
67
67
|
case status_name
|
68
|
+
when STATUS[:xs_bat_status_created]
|
69
|
+
creation_date
|
68
70
|
when STATUS[:xs_bat_status_returned]
|
69
71
|
return_date
|
70
72
|
when STATUS[:xs_bat_status_settled]
|
data/lib/basecomm_sdk/version.rb
CHANGED
@@ -5,30 +5,30 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_addBankAccountV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c435f6e7dd072112516e2076fd461ce6a3d0f0013734da77b7c7e96ce41add92e0aad1805a59531b30867e3e71600c6b95a19d483e064aa9397a085b79f6fded842cac7fb7c64f89274ce2e51e6e16ec0c7adc809c1a3bcc52b3aa61687b22a410b26be79b0d63dc9"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 19:41:22 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=F18F8F65AAC1DEF4ED7CB92E488D6995; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737C2FCAA8200B04DE18C16ABEF59633B4D1E449510E6E49742470B4AB973B22A8E8CDA5F6E090669F1F3C015D027EDE737112FE80D1CC4B05CF3C015D027EDE737FC77C015C7243CA6AC191753207E8B3A7403AE3F0936A98F5B72F71B8B495B57077AE0FBE8418D674B6D80E9858DFB085755704D657DD310C44000A730011177F7C70C8DA7C7C24D47C43BB342055884C39A0984DDEF61624C67F84B4B521D4DC1B9CE2444211D6C7403AE3F0936A98F5804D5CD20EEBCE3D30728A2D0B24A85445FBAB8B0D3C5D9F8B1781CC01A3F0A0115149504C116AC83717D4A51C8307C49ABBAB1E0AFD9A1D8AEF1C1E7FE121336DC57AC29E3F0B063B196B469C81A6E8EDE47925B23DAC7DAACCCD0599C80C22915A8A4EFFFA9073A4E907E124CBC5A7457A04D4677537C629516FE9C3A2EFDF3C015D027EDE73765541624D86673EAD31F29243A3938940BB46AD568727EBC7ADD9494888B73E5325D01C367D6E421AFF84F36335ECC08EDF8149DD48F8C8F3A9B8BF7C0568FA8714E817BB1232AEECF97B3BF1EA60C975BCD9DA59403E67B8FFD01E5AA3CBD6FB8C6C97B39F63E050841BA9D982C54AE80E9FCB560BAB36D21E7C6DCFE6109DFE7D5973434742A402F598684C5E14151AFF84F36335ECC0862FE9F6CA4519E3CA5A86547059BCF8E7403AE3F0936A98FBA6FDD94C5D915D3A4468CC2873DD280F318561BCE749A0C
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:41:22 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
@@ -5,30 +5,30 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_addBankAccountV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c435f6e7dd072112516e2076fd461ce6a3d0f0013734da77b7c7e96ce41add92e0aad1805a59531b30aad1805a59531b35a19d483e064aa933ce1e4a52078fc1434de9ef2141432fe0115149504c116acbffc3f10c68e2f5e743ceb2e134566230fd4cc6f9edf9ef3613728e13ae41e19bab67812bed71fa6925b52b4c5e3835fe9636853c279627a91d7dae36846e42dbfff057d51b6651a"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 19:41:21 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=3F1D56F10B07253A7CE982661C3A6CEA; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 407E45C162ACEC7C53D693D6CDD21AE7407E45C162ACEC7C3E433D6B983641D120261B67B082A398F7C70C8DA7C7C24D47C43BB3420558840CB75EDCC26941879CB8F110DCDFBB8967256B111FC74DAC7A30D6053F6C04535E757DA92B1A09370AF9F3261AF845AA014F3F157B7E0E23043E28CB77DA63A375AA227036DA2A45F7C70C8DA7C7C24D1AA2A56A2D2F54D7318D5E44D1FF9DE6A8E9E2C715684DD32888660736F3DD3E7C7E96CE41ADD92E0AAD1805A59531B30CE424EA7B85D6F36C266DFCB626A76BBAB67812BED71FA6E7D80E381D31FEE5A722EB2725DB1B13841CC716091042ABB6AFBC74B70EF467AC66571660F42BE1801EF5C9BB0E14C9BAB67812BED71FA6E7D80E381D31FEE5435F6E7DD07211256F37B52ACA40B5D46EB14FB91C4FD6E387002DFDAAA297019F40EEFB54D7FBEB60CD32D36D6A24ED8AAD113CA0D4BB5E14D7C0A790B9E1F1BE117E2526D101486B7BA065A3CED92706147506C125FF0D3ACB4E2E6E1F496BCF3CFCD2E2F4A6785BEA646BE9582279F79468582941414E7403AE3F0936A98FC514B97F205BC2E6EF486CFF1D185B0F8FB295AE34A1A71119E1CE2ACBBCDED0A099C257872610A33D72DA08035F68AF0928C6E593ED5D1CB8FA9DC9CDFBC8D4C7C6819C318D65C8A74C86E4250B6C90D01DCA45FB51B082DCCC21EF245B7EA196343FD2D2375ADBAFF84F36335ECC08EEF3AC987C4B305C58D118D649D9DFA51CC0D483EAB1D8163D02B59B2EE58D9E3D72DA08035F68AF31D187A72A48675C4426474DAA029BD974CE2E51E6E16EC0FD47C3D264ABC5A4A0E28288BB1143F90AAD1805A59531B3A7AC458C114AB0603B8A8774822A8C29348FCC387E32AF6BD6D02AD92B87B7CC4848FF701DD3A6D11AE17372F9807A75472FAE5D04891836617ACA52675C0061D7BCF39AA5EFE8FE7C7E96CE41ADD92E0AAD1805A59531B3AEB2D44E1A780CBB841CC716091042ABC3D8B4D45E2F11EA
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:41:22 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
data/spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml
ADDED
@@ -0,0 +1,34 @@
|
|
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":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"e4c564d5fe5d2fcfa15da5ab5aba30e3913c67d41bda6622143a6cf78b9098b312d0a5b2cd7d241728b7e7db30514c8822baf6c63df7bb8a1353d2ec5323ab3770ab30608d452cb14086a0e16679fb70d48bb9b5ece9f0a90b6804fd201310f77c73c0c8f1895df0d2e9f58d842836265f8e6d766b05e577fbf65778e09fbe795ddffc3805e5ee58c7c6819c318d65c8a74c86e4250b6c90d01dca45fb51b082e08459f50c6326181d6f71beda2fe0e168c6a2ad2c773b940841ba9d982c54aea78b54aa6920215a1fc67680fde3e6da2328655b338ce858779de034b351643c1fc691d9b6d0bf963d72da08035f68afee318fdaa9d88a990daa745b033788910841ba9d982c54aed51d7cab17a81c907aa1d539baabbade82a495ae4c6d6bc7120fba3f9ca36082456ecc620c2ff87af81a984187beb5f26dec246f4f27f4accabef888e6684c1a60e6a0474e0d1db74835560f8129e6ca28e6538645b53fc80dea045662c62a8f53de042238f840f53edfe779fd643ba6f0b14a6801d5b83c"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ''
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Sun, 29 Mar 2015 19:51:14 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
|
+
Set-Cookie:
|
26
|
+
- JSESSIONID=FA2451C17E849F75B5C186D0B6F1E8D6; Path=/; Secure
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: E4C564D5FE5D2FCF24C68C0BE45352CBD2E9F58D84283626DB7CE17D5109152F36AA8DE781817011BC37FB4E37936B2A64FD215C4194C117644D477D1972CBE6490ABAB3A5A76566356201924A4DF1B10CB75EDCC26941879CB8F110DCDFBB8925A7824E650EFB91B3FCAD899485546812D0A5B2CD7D241776B8090C14D2DA07C76D1D0A93980158540C2A5741E5F840F8F90D0806175D9EF5B330A7466D090912D0A5B2CD7D2417A15DA5AB5ABA30E3913C67D41BDA6622143A6CF78B9098B312D0A5B2CD7D241728B7E7DB30514C8822BAF6C63DF7BB8A1353D2EC5323AB3770AB30608D452CB14086A0E16679FB70D48BB9B5ECE9F0A90B6804FD201310F77C73C0C8F1895DF0D2E9F58D842836266F02E14F6E05507C2F098B25C2813A72A8F9A835FFC6E6DE1C3B189EE5BC45921460233B0307A2315FFC0F91915ACEDCC16F35363CBA9D906F86ED4F46F7E8E5467048E3411AA2BA5890A5D4AAC786DCFED5D46082B3F8D97C7E96CE41ADD92E71F38580D9F561D27044498DBF74A72D837968BA3151A0A0E7D5973434742A40FE7E408D4BF22CF8D9F6EB0815A69C949A71ADE0FA75D68F19E1CE2ACBBCDED0B6C7709E270B307C3D72DA08035F68AF92FB5B9AB309ECE4E3F712F140CC1D06AFF84F36335ECC0859FEF8E4A619ABF51C6812E4D96AB9FBAFF84F36335ECC08EEF3AC987C4B305C8C26E398C7F30410F48AEDB7115A0FF3FE85272132D4426D7A6B5BEF280F96257D832380B3A3F2A34CE8476A5897109EA6DB0FF82D8609ADE7387387733E881D523B2561611BE625BFA56C97F08B67653342407A95ED98B0C6AB4D0727B036933CEC8AA9CFD4C25D7C73C0C8F1895DF0D2E9F58D8428362624422CD120A7E51124FAA495B818DA3D0112D66EE643EC10357949D9AE5FAC03D98987FE514A0A12E62AF40CA7E0BB46F817118978E3CAA102728ACC3DA31378A19A3F731E8F99732A9512C2DB2B6DAA8C16ABEF59633B4D093FC767067706C6C2A143FCA31F146B88C25FB9B4BF004C
|
32
|
+
http_version:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:51:15 GMT
|
34
|
+
recorded_with: VCR 2.9.3
|
data/spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml
ADDED
@@ -0,0 +1,34 @@
|
|
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":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"e4c564d5fe5d2fcfa15da5ab5aba30e3913c67d41bda6622143a6cf78b9098b312d0a5b2cd7d2417eb06970f9e2e94c93524ac05b42d3a010f2fa74f9c4184917969d232b111918e4ec795e96f375e8d380680ad3520392d264b1528e46b02a1c3a1b1a4452f5cb312d0a5b2cd7d241728b7e7db30514c883acdab8d8ce7e9d4082073e839e1149208c9dd01b00f0dc76e30e11b72cfaba4e2a82185a6deaef184969695964490581cebf17f4b4d7f55c60588e0fa3cef89e9cd95dc9a44681a0841ba9d982c54ae7f0e5ac5c601ec20291d4e60cd465951eb6eab779ad8a31d3d72da08035f68afc9c52326868eb7926409660b3f1e535eaff84f36335ecc0862fe9f6ca4519e3cb7be60c9718763c6db1164b7d34158066db777bfe4f62ff9ef4cc1d330b855e33d72da08035f68afd44718c579e8c146569c2991ea5921ba12d0a5b2cd7d241776b8090c14d2da07c76d1d0a93980158540c2a5741e5f840e2fd44a288c5f6ce4bdd882b6005d0ed12d0a5b2cd7d24179bce38b4040d2adb4fcf6d0e057af0b2ed7281f60fb2a66e9275f9125af9656951daa07760fc74e3ca4ed3bc4182953f"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ''
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Sun, 29 Mar 2015 19:51:13 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
|
+
Set-Cookie:
|
26
|
+
- JSESSIONID=05F6AE063FEE0BE45F3B5714265B272B; Path=/; Secure
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: E4C564D5FE5D2FCF24C68C0BE45352CBD2E9F58D84283626DB7CE17D5109152F36AA8DE781817011BC37FB4E37936B2A64FD215C4194C1175F367A685A404DF73DE55E4B16B67FE1356201924A4DF1B10CB75EDCC26941879CB8F110DCDFBB8967256B111FC74DACDE11DCF83EB3B7B012D0A5B2CD7D241776B8090C14D2DA07C76D1D0A93980158540C2A5741E5F840E2FD44A288C5F6CE0DB67D6CD43CAACB12D0A5B2CD7D2417A15DA5AB5ABA30E3913C67D41BDA6622143A6CF78B9098B312D0A5B2CD7D241728B7E7DB30514C8822BAF6C63DF7BB8A1353D2EC5323AB3770AB30608D452CB14086A0E16679FB70D48BB9B5ECE9F0A90B6804FD201310F77C73C0C8F1895DF0D2E9F58D842836265E054D073FEDE28F4A7FB8BB3B3A4AD2B6A4034B12A879DFBE43417B6532E6DEFFA08659FABC0B6FF318D204CD8E12F302728ACC3DA313785A19D483E064AA93198F70A91A80B087E90D9B6C59D48DCB4B32544EE113E6D42458F01C021C9F21F3BC161FE1220CA71C3B189EE5BC45921460233B0307A2315FFC0F91915ACEDCC16F35363CBA9D906F86ED4F46F7E8E5467048E3411AA2BA5890A5D4AAC786DCFED5D46082B3F8D97C7E96CE41ADD92E71F38580D9F561D27044498DBF74A72D837968BA3151A0A0E7D5973434742A40FE7E408D4BF22CF8D9F6EB0815A69C949A71ADE0FA75D68F19E1CE2ACBBCDED0B6C7709E270B307C3D72DA08035F68AF92FB5B9AB309ECE4E3F712F140CC1D06AFF84F36335ECC0859FEF8E4A619ABF51C6812E4D96AB9FBAFF84F36335ECC08EEF3AC987C4B305C8C26E398C7F30410F48AEDB7115A0FF3FE85272132D4426D7A6B5BEF280F96257D832380B3A3F2A34CE8476A5897109EA6DB0FF82D8609ADE7387387733E881D523B2561611BE625BFA56C97F08B67653342407A95ED98B0C6AB4D0727B036933CEC8AA9CFD4C25D7C73C0C8F1895DF0D2E9F58D8428362624422CD120A7E51124FAA495B818DA3D0112D66EE643EC10357949D9AE5FAC03271C2CFC6E147CC14EC795E96F375E8DECF5A6DCE484AA822E74F1257243B6E8F3A72FFB24BF2679B05714154B53EE3FEC8ED02E70C62CEB826C78FCA8C34194B92A927997B5A5F6F5AE300EE7A7C8D0D094434ADCCFE2D536FAFB6EAA07DF2F3D06507324531822FC3BA95EC394E8A1E1104B55154E5ECD
|
32
|
+
http_version:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:51:14 GMT
|
34
|
+
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_getBankAccountTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":99999}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 20:02:24 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=E5583D848239E130A7F8C574CAF61C7E; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E5BDA22081C33F7EFF88F5F18017A5F4F6B329DC448365107FA209007487F193A91EF3170B3D2586B1BBC23FC7F4659191AFE1BB49587F82F0115149504C116AC48B52AFED60948E6FA209007487F193ADF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982D66276E52EB0DC70135B89846A9C37FAF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5EA6011C5B2569D0156C277DC5EFF01C4C878FAC11AC14DF73FA209007487F193AE85737D9875A35B0BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A57243AE132367247C60588E0FA3CEF89F7B41B22382E48931356694EA6EBDE1D0AAD1805A59531B3A19A3F731E8F99732EA2DC11D8385DB201AF8B85AA4A207AF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E82484AD1C8668C28D9AE725F9207F9821F170D072BCFD958D52096BB3C75CAE07403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9435F6E7DD07211256F37B52ACA40B5D4B695E7F29F3FD64DC81A18FD88E91CE6A28EF840A9E121B1
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 20:02:24 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_getBankAccountTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":30930}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 19:59:38 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=2B2B2CCAF236D4FD9767774EE838B3B1; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 407E45C162ACEC7C925B52B4C5E3835F340E5B5FE126904AF817118978E3CAA17403AE3F0936A98F7D97AB452E8562D974A288DFE7CDB5F21A00B61498FAEE500DEA045662C62A8F162F0873B0AF1C806E7B631492E781034C0F3725A3120D8674CE2E51E6E16EC077C93452449DA1E932B26C135B3F481DA22EAE293C70870BD9CD3B4BAF8741EBF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E8A9B485D8ECE7822C3CEFF7A042055380E76E74D38C9EF7E0C2D7694EC004EADAD285BD4AC1A97F8BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F726BA6FDD94C5D915D379C37EABF96FD3E7C44000A730011177F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107F75FB024FC087399453A4C0A0A8FD70E239FF0E561F0FCE089F74A2679EDEDE97403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9435F6E7DD07211256F37B52ACA40B5D47C7E96CE41ADD92E0AAD1805A59531B3A19A3F731E8F997371456A478DBBAEF0DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA504CE3C196321FE8934B6D80E9858DFB0815090D710C17F592D3979D4FF593B1076625F903D11C17830AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA50540948FCBF126E7BC2F5CB0CCD0AB07EBAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904AB2C6C77B4200A0E3A918D5AC2261202D692C2C452A1287B354BC0B3573A88B9B0AF9F3261AF845AAD9AE725F9207F982AE1A6A630847DC5A83717D4A51C8307C5CB20C35BFFDC50874CE2E51E6E16EC077C93452449DA1E99E4DD767E86E186645F3632687F63AFE38F0AEBAC74B25654CB38C6B61B30C2D49CA333FBE13A1E58CD92638D1E89A5B5E757DA92B1A09370AF9F3261AF845AAD9AE725F9207F982AE1A6A630847DC5A83717D4A51C8307C540948FCBF126E7B2B3AA61687B22A410CB20088637EA2C074CE2E51E6E16EC077C93452449DA1E925FACF86A9EE619A02E72960A8BF92D00115149504C116AC48B52AFED60948E6FA209007487F193A014F3F157B7E0E232906F7EFF3244548B8600E92822039875783CCDADD531CABD3979D4FF593B1076625F903D11C17830AF9F3261AF845AAD9AE725F9207F982D66276E52EB0DC7064FD215C4194C11719C55F1DEB46923AC1B9CE2444211D6C7403AE3F0936A98F7D97AB452E8562D92310EB9FAD2F2DCA3C02DDCFC08041E46F37B52ACA40B5D44CC9656D6545D82042C5C80951A4B0690AF9F3261AF845AAD9AE725F9207F98295C7DE473162A5DE4CE101EC02F3411D0DEA045662C62A8F162F0873B0AF1C806E7B631492E781034C0F3725A3120D8674CE2E51E6E16EC077C93452449DA1E90B5ABD2846D60F1396A45C9FD7F0593982E444524A4936EEF2B630185A5DFEF5F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107B1E40E4A78203500DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982503DCA974FB8D05BBC56856ED69911BB3FA8DCEBA4B5907B205D606FB760E5185F33CFEC7EECD541F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E194CA23B82FE8C71EBDDDBA8DD1EB60D3A0B7D091190BD3E74CE2E51E6E16EC077C93452449DA1E91F6C9AF4DE33A7A2C6EA2B05D7E0D322340E5B5FE126904A5F41BABBBEE24F2D7C7E96CE41ADD92E0AAD1805A59531B3A19A3F731E8F9973BDF6C100C55968FD1B9A4CB93E3187919EDB1747D7CE44077AF1916F68FA882C8E29B31FE849D16588C25FB9B4BF004C
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:59:38 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_getBankCardTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":99999}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 20:05:53 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=D038011EB3C26C2997B470E7B2D460B9; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: E4C564D5FE5D2FCF7207001290A9FAEA93E23E18115F59E036AA8DE781817011CAC8E9A5DF3F1119FA209007487F193A808D228B025BF4BCACB779CC0FF8A6AD4EC795E96F375E8D8678D9391AC2339900231980981F8F9DF421CD11AE5C8DF4BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92D20261B67B082A398BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92DD05F85D8DAF53F775EF908245AC0D3CEACBB75AA05FFFE1EFE0EE89CCE8062E0361B355E0C7C83B3BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92DBC5FF4ACD4A1E4EC2856F78BA891531DC18F692416B4F358D2E9F58D84283626D9AE725F9207F98266912FB54E7A3C2AF1E4C1C157A040AA4F84918369B0FA32FA80D2EDBA826566A2798D41B906176B7C7E96CE41ADD92ECAC8E9A5DF3F1119FA209007487F193A8F959EBF980A2FBE77C93452449DA1E978801EBC6C927D36C2563E652638C43DD2E9F58D84283626D9AE725F9207F9824E2D8D9739F13CDE418232C8F1FEC18A9F4F66641EEA2FAF0CA385954B05F93ED3979D4FF593B1077485BBEF65F8E823535B5923478B2FE6B30C9F5CB4C1314CBFA56C97F08B67652B252A13E842D78274A288DFE7CDB5F2EB06970F9E2E94C94184A92071C8ADE9ABC75B5194135B4BBE4D720CF77AD4ABD342134B8AE59609DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F9821F170D072BCFD9585B1D00BB3F9A3204F38352AA0856289C340E5B5FE126904A66324842965404B29CCA4C40DB6210A503FA9473D1E6DBB4E1104B55154E5ECD
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 20:05:53 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_getBankCardTransactionV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":77237}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 20:05:38 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=07E59C4439AA22BA269D0FD3D029711D; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: E4C564D5FE5D2FCF7207001290A9FAEA93E23E18115F59E036AA8DE781817011CAC8E9A5DF3F1119FA209007487F193A3DE6708120F9272DE2B5D0D62EDF00210CA385954B05F93ED3979D4FF593B1078D7671301223C0F1DF65B5D7B4F646260CA385954B05F93ED3979D4FF593B1078D7671301223C0F117637C800E0ADD91723EA1775F765C81B26C409CDFE9173A55AC77BBAEC4536166447FEE460FA0DF4EC795E96F375E8D8678D9391AC2339925FACF86A9EE619AC39A0984DDEF6162CCB701F9F1F085A1B0592B460272845047531144A74465AD3C48F3F93E40CE8F777684499D2CF911523B2561611BE625BFA56C97F08B67652B252A13E842D7822310EB9FAD2F2DCA277F3F4F9BBE463197EBEE0721C9728D5B906C02F751632BD24F50A54B527872C397D25FD8757CB02867BFD4D5A9C11F81A1E61167BD7EC30CA385954B05F93ED3979D4FF593B10781312D8C67861940579E3CFC1EED995240C2C796E16E632A12D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5EFE1BB5C9A5C65DFA529EA0FC1685CB42C6E702D11471D76A3B577E2C53542E97239FF0E561F0FCE089F74A2679EDEDE902728ACC3DA31378A19A3F731E8F99732BA7B2DE82844BFF6F02E14F6E05507C014E011BB8C28041504BF84DED69B5A57195888F6E22AABD4C6A3322883C560E340E5B5FE126904AF0E700AEB7458A51B01B512F1ECBA1D11276E4C0B558E7C64A97DBDA9B5207330CA385954B05F93ED3979D4FF593B107BBF0D658C14BF53B777684499D2CF9115C0456F358A21792278FA756D6C86DBDD2E9F58D84283626D9AE725F9207F982B6ED3528847A72C3FA209007487F193A3DE6708120F9272DE2B5D0D62EDF00210CA385954B05F93ED3979D4FF593B107F75FB024FC08739975EFEA6D7EF9D7D64C6A3322883C560E340E5B5FE126904A52D99ED860241455BC60A0B11550F66812D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5EFE1BB5C9A5C65DFAC6AB4D0727B0369324C7E946DFFE5753A41FBEDF7FF73434A0E28288BB1143F9CAC8E9A5DF3F1119FA209007487F193AE8E7F2092F15251EC082DD64563469D65FBB220DFFA1A6C7BFA56C97F08B67652B252A13E842D782C740BFFFA647208EE3D3C442D9C6B414A19A3F731E8F99736FB4184EA2FF3772E90BF51431B5769BBFA56C97F08B67652B252A13E842D78274A288DFE7CDB5F21A00B61498FAEE500DEA045662C62A8FA3C747FD64499BFFDA656B932E2A2771FE09F3B7A3443C744C6A3322883C560E340E5B5FE126904A1EF789CBFF8018B0BC60A0B11550F66812D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5E97C821449EDA12E0BE6C15EE7662D9461081F96DC66EFD4BD2E9F58D84283626D9AE725F9207F982CB0FAC1ACE7A9D3B7044498DBF74A72D837968BA3151A0A0E7D5973434742A40FE7E408D4BF22CF8D9F6EB0815A69C949A71ADE0FA75D68F19E1CE2ACBBCDED0B6C7709E270B307C3D72DA08035F68AF92FB5B9AB309ECE4E3F712F140CC1D06AFF84F36335ECC0859FEF8E4A619ABF51C6812E4D96AB9FBAFF84F36335ECC08EEF3AC987C4B305C8C26E398C7F30410F48AEDB7115A0FF3FE85272132D4426D7A6B5BEF280F96257D832380B3A3F2A34CE8476A5897109EA6DB0FF82D8609AD1356694EA6EBDE1DCAC8E9A5DF3F1119FA209007487F193A7DA82BB44B54FCBABFA56C97F08B67652B252A13E842D78266F56E367152BA3FB43C3245E5F469803FA8DCEBA4B5907BC9E2775B7AAE3DB73E7E87B5266B0E978ED0BF10D344B429D2E9F58D84283626D9AE725F9207F982BE7C85DFD054CA50540948FCBF126E7BD68E9F25D7F0CE93BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92D21D3E30B24EE36A4991014FA4F757E98616084E9947189A2
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 20:05:39 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ 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":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c925b52b4c5e3835f340e5b5fe126904a4191132f235354e75778ca9282fe58b8bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904a33d6e2f47310f726979b00b19c3110c19444c9a1864e1dc07263f24dc34cd0c774ce2e51e6e16ec077c93452449da1e9c0e46682f93aaf9c318d5e44d1ff9de6a8e9e2c715684dd32888660736f3dd3e7c7e96ce41add92e0aad1805a59531b3a19a3f731e8f9973c45c0e545e2171bdc2fcaa8200b04de18b489481abcbad43069f0fd8db65ad39adc64a6906709b4b0af9f3261af845aad9ae725f9207f982ae1a6a630847dc5aabf1b7d0bb08f621d3486557030daa5e01ce6ce0b67399197c7e96ce41add92e0aad1805a59531b3a19a3f731e8f99732ea2dc11d8385db20f69b5019e26807579ea82ff20851fd70aad1805a59531b3a19a3f731e8f9973bdf6c100c55968fd1b9a4cb93e318791ed7281f60fb2a66e9275f9125af9656961aca611f0687990ca4ed3bc4182953f"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 19:41:26 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=C1E34EA6D9D6574706B136BBA70FB1C7; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5ED285AEAE27D6895E30927DEBD9CBD89B7E9321F2706AC08032FDA82103A979D4020BE8230303971EF3C015D027EDE737BE1AAED1A180E86E93E23E18115F59E036AA8DE7818170110AAD1805A59531B3A19A3F731E8F997371456A478DBBAEF0DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA504CE3C196321FE8934B6D80E9858DFB0815090D710C17F592D3979D4FF593B1076625F903D11C17830AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA50540948FCBF126E7BC2F5CB0CCD0AB07EBAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F726979B00B19C3110C136AA8DE7818170110AAD1805A59531B3A19A3F731E8F9973C45C0E545E2171BDB589708D4ABD671017637C800E0ADD91F3634028C9534880DECBFBBF520A8EDD910F801BE312015ABAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F7266291394AF5E19B6AF3F876E1D3912E4A6C266DFCB626A76B1356694EA6EBDE1D0AAD1805A59531B3A19A3F731E8F9973EDC6A05BAD3C5DE2AC191753207E8B3A7403AE3F0936A98F7D97AB452E8562D995DFEB2350F5E92DD05F85D8DAF53F775EF908245AC0D3CEBBC1BAF11D215F7921523EE09C267ABFC7416D8D8857CA29F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B1078D7671301223C0F192FB5B9AB309ECE486244499F80EF5C5BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A02A04706EAF6AB01D30728A2D0B24A85445FBAB8B0D3C5D9F8B1781CC01A3F0A82484AD1C8668C28F421B38F87A61924A9BB61F5705C305B90B25EE15EEC315FF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E0AAD1805A59531B3BEFC4FE38FBFEAAA2626E785F7A6F1B0D64CC262F08487E47403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9BAD1653A36B3F3E44F2AE585619504A87403AE3F0936A98F7D97AB452E8562D9C740BFFFA647208EE3D3C442D9C6B414A19A3F731E8F99736FB4184EA2FF37721F0E666411DF8E485BD03F4B8331E5EB2993E3F5614530B374CE2E51E6E16EC077C93452449DA1E99E4DD767E86E1866E81A3457119C417BA8E9E2C715684DD30E49AD0CAE0291FBC76927D67C06CBED7403AE3F0936A98F7D97AB452E8562D94E55E8AABC5A9800E76F094A6560497708F7DB79AB6D4523D82BCBBA4F24A250A2B13998399728CB2E28AECAD24FD45E
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:41:27 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ 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":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c925b52b4c5e3835f340e5b5fe126904a33d6e2f47310f726979b00b19c3110c19444c9a1864e1dc07263f24dc34cd0c774ce2e51e6e16ec077c93452449da1e9c0e46682f93aaf9c318d5e44d1ff9de6a8e9e2c715684dd32888660736f3dd3e7c7e96ce41add92e0aad1805a59531b3a19a3f731e8f9973c45c0e545e2171bda93a11dd7bf841c1913c67d41bda6622143a6cf78b9098b3bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904ae26bf270c3cd06007c58201e2b10baa005f4ff824d72a9820aad1805a59531b3a19a3f731e8f9973bdf6c100c55968fd1b9a4cb93e318791ed7281f60fb2a66e9275f9125af9656961aca611f0687990ca4ed3bc4182953f"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 19:41:27 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=8D7328B722268C76C9B798D1750EF0E2; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5EFFC1F19162C75AF310A9FCEB49D6D0BC340E5B5FE126904A1EB2F05EC88685B2BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A378B88D6D43637DE4CAFB527D178E81B586C42CBA1ABBC3D21523EE09C267ABFD6B742616EF17335F7C70C8DA7C7C24DE81A3457119C417B6452CF261C8187C87F2BFDE8FC76006D2F25A5225C38501A163A9DE975AC2044F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B1079A7B11B0B59BEA7474CE2E51E6E16EC077C93452449DA1E99E4DD767E86E186645F3632687F63AFE08765A6F300B4C917403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9925B52B4C5E3835FB43C3245E5F469803FA8DCEBA4B5907B4662540B05612CB0175F1B7DCFA0674207E6F2567B1A954974CE2E51E6E16EC077C93452449DA1E99E4DD767E86E186645F3632687F63AFEF282BF7B84A01E739444C9A1864E1DC04F735411DA9995D67403AE3F0936A98F7D97AB452E8562D995DFEB2350F5E92D20261B67B082A398F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B1078D7671301223C0F117637C800E0ADD917B4E2CDEB94BFC07340E5B5FE126904AAFC781DBA1B4AFA9798DF363AA5C58650AF9F3261AF845AAD9AE725F9207F982D66276E52EB0DC7064FD215C4194C117644D477D1972CBE63A0B7D091190BD3E74CE2E51E6E16EC077C93452449DA1E9C0E46682F93AAF9C318D5E44D1FF9DE6A8E9E2C715684DD32888660736F3DD3E4A24479BA71E22270E76E74D38C9EF7E0C2D7694EC004EADAD285BD4AC1A97F8BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F726BA6FDD94C5D915D36CBC6EF6313DECD8DFEDC9F137D6A2C0F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107F75FB024FC0873990D9752D1265FF8A8BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A204643824BEF58E49FC57369D61DE2F8C3AE9CD8525A9C5EF5A3A86AB73343DD71285BF9D8101134FA1424FDEB29D7BAF7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107B44D42066AEEA4A2157EF6810DF251384AEF28BF5FD760BE8805E1EB823C72DCF134396FE98F9697F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E584DA70CB91B4DBDF0E45E7A482023C0735643D0B958C10699D0515B9F39302563CD09C7D7B378AF
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:41:27 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ 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":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c925b52b4c5e3835f340e5b5fe126904a4191132f235354e75778ca9282fe58b8bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904a378b88d6d43637deb271be03d1a7c0b6bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904a33d6e2f47310f726979b00b19c3110c19444c9a1864e1dc07263f24dc34cd0c774ce2e51e6e16ec077c93452449da1e9c0e46682f93aaf9c318d5e44d1ff9de6a8e9e2c715684dd32888660736f3dd3e7c7e96ce41add92e0aad1805a59531b3a19a3f731e8f9973c45c0e545e2171bdc2fcaa8200b04de18b489481abcbad43069f0fd8db65ad39adc64a6906709b4b0af9f3261af845aad9ae725f9207f982ae1a6a630847dc5aabf1b7d0bb08f621d3486557030daa5e01ce6ce0b67399197c7e96ce41add92e0aad1805a59531b3a19a3f731e8f99732ea2dc11d8385db20f69b5019e26807579ea82ff20851fd70aad1805a59531b3a19a3f731e8f9973bdf6c100c55968fd1b9a4cb93e318791ed7281f60fb2a66e9275f9125af9656961aca611f0687990ca4ed3bc4182953f"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 19:41:24 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=D8408826F60CC7E64071CCFAF90B345D; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 407E45C162ACEC7C925B52B4C5E3835F340E5B5FE126904AF817118978E3CAA17403AE3F0936A98F7D97AB452E8562D974A288DFE7CDB5F21A00B61498FAEE500DEA045662C62A8F53DE042238F840F59281D372F83A8EF742CAC7FB7C64F89274CE2E51E6E16EC077C93452449DA1E978801EBC6C927D3604A6FA1B70E6361DBADA84DC6BB4FA85D90275D69A93EEDEF5FCAE6B57709CCA307C4E003C20F9890115149504C116AC48B52AFED60948E6FA209007487F193A0AF9F3261AF845AA92FB5B9AB309ECE4E058373DA4F3414E1D496C7CCA3868979F40EEFB54D7FBEB60CD32D36D6A24EDD192DA330F3074AA7403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9BAD1653A36B3F3E4EC1E6AA71DF0CC19239FF0E561F0FCE089F74A2679EDEDE97403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9435F6E7DD07211256F37B52ACA40B5D46EB14FB91C4FD6E3FA3798C65AFE910CF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E9B90C391C50C95B70115149504C116AC48B52AFED60948E6FA209007487F193AE19188E9E9D885F95EF908245AC0D3CE7038FD7F1D5CF5B7AAC6CDA415A1338966447FEE460FA0DF0115149504C116AC48B52AFED60948E6FA209007487F193AC0CE3FD1A1CCC0D5A17D92F8748D521A97FF8101582A8A047403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9925B52B4C5E3835FCB327633FF2F2F94F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E0AAD1805A59531B355BAA08D6526845D9CB8F110DCDFBB8955EEC980C919C26C474A6A06C98AF8418D0B35F4DDA4186B7403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9925B52B4C5E3835F4F78D74278C5411B74836FEDAFDD88BE50A1BF350F25A5A3F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5EB36DAEFF44AF4FE6407E45C162ACEC7C925B52B4C5E3835F340E5B5FE126904A57243AE132367247077AE0FBE8418D674B6D80E9858DFB085F5DF12E0426596F9424FA681F409A09E61F4061DE53C4817403AE3F0936A98F7D97AB452E8562D995DFEB2350F5E92DBC5FF4ACD4A1E4EC9F557F72CEB07D23E1ACF09FE0F3013B0115149504C116AC48B52AFED60948E6FA209007487F193A67C3655003BC7C446F02E14F6E05507C301DA224DE3A4905136802E1824A9D497403AE3F0936A98F7D97AB452E8562D995DFEB2350F5E92D21D3E30B24EE36A40B7F2CF05FEC8180F9A1295B529BF31499D0515B9F39302513E3B7DD6AC7583AF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5ED285AEAE27D6895E407E45C162ACEC7C925B52B4C5E3835F340E5B5FE126904A378B88D6D43637DE2221AF0D3E354FF04B6D80E9858DFB08D62AD075A8EFEF8B93FBCEE4F628798774CE2E51E6E16EC077C93452449DA1E91F6C9AF4DE33A7A2C6A96F133024A5871ACFDA7A4CCE1DF81356694EA6EBDE1D0AAD1805A59531B3A19A3F731E8F99733F10D634404154BEF87AF9DD981BFCD4FA209007487F193A166C71F36AF76085BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A6999CDF56A7CF1C86A92E5B3D322AF38FC1E6000207A7FF38CA6122F0E298600F5B330A7466D09094DCE410E3EA0B557
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:41:26 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,30 +5,30 @@ 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":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"e4c564d5fe5d2fcf7207001290a9faeac3ae9cd8525a9c5e13b987e6ce1764bbcc4cb0af4cc969daf043c16c06cff9c7f6527b70104731ca5256dbb141922074a31d2bf4129462dc85b12a9ce4812c144c68b0cc5ef7a3c7a77b71cf7fe7eb88aff84f36335ecc0881d1edc527c4c94d66ae3af6533124520841ba9d982c54ae1f96d74b89685a9e6607c03bd3ac4165e7d5973434742a4005fbfaad350fe2e87075ee5d7c33a79aaff84f36335ecc0859fef8e4a619abf51c6812e4d96ab9fb1356694ea6ebde1dcac8e9a5df3f1119fa209007487f193a1963c9b30ec97551ef6ead72d4a4a600d2e9f58d84283626d9ae725f9207f98290bca1b41cbbc56b7cdfa5251d1cb771c44c663f65d3e5d30f2fa74f9c418491f318d204cd8e12f302728acc3da31378a19a3f731e8f99732ba7b2de82844bff92fb5b9ab309ece4bbb84ac699a5a81e2bcfc632d44f20740ca385954b05f93ed3979d4ff593b107ec3faf746c04a614264b1528e46b02a1b1d563789b320e5912d0a5b2cd7d24177207001290a9faeac3ae9cd8525a9c5e30b5ea6d974428d66c897d88eb7c2d6f2d65785a3eed0d4dbfa56c97f08b67652b252a13e842d78274a288dfe7cdb5f212ada44a4d81839158939e6022b8e944bfa56c97f08b67652b252a13e842d7820d85a0e61fc00db99b2aee657afcec54e1104b55154e5ecd"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- '*/*'
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Sun, 29 Mar 2015 19:41:27 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.1l-freebsd
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=ACE3E2C43BD8CDCD6B8751B8FA0383FF; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: E4C564D5FE5D2FCF7207001290A9FAEA93E23E18115F59E036AA8DE781817011CAC8E9A5DF3F1119FA209007487F193A23B81224B6766442FA38AA018407F6830CA385954B05F93ED3979D4FF593B1078D7671301223C0F1DF65B5D7B4F646260CA385954B05F93ED3979D4FF593B1078D7671301223C0F117637C800E0ADD91723EA1775F765C81B26C409CDFE9173A55AC77BBAEC4536166447FEE460FA0DF4EC795E96F375E8D8678D9391AC2339925FACF86A9EE619AC39A0984DDEF6162CCB701F9F1F085A1B0592B460272845047531144A74465AD3C48F3F93E40CE8F777684499D2CF911523B2561611BE625BFA56C97F08B67652B252A13E842D7822310EB9FAD2F2DCA277F3F4F9BBE463197EBEE0721C9728D5B906C02F751632BD24F50A54B527872C397D25FD8757CB02867BFD4D5A9C11F81A1E61167BD7EC30CA385954B05F93ED3979D4FF593B10781312D8C67861940579E3CFC1EED995240C2C796E16E632A12D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5EFE1BB5C9A5C65DFA529EA0FC1685CB42DD8C6C16D53BD6A51B6395BD732E22EF239FF0E561F0FCE089F74A2679EDEDE902728ACC3DA31378A19A3F731E8F99732BA7B2DE82844BFF6F02E14F6E05507C014E011BB8C28041504BF84DED69B5A57195888F6E22AABD4C6A3322883C560E340E5B5FE126904AF0E700AEB7458A51B01B512F1ECBA1D11276E4C0B558E7C64A97DBDA9B5207330CA385954B05F93ED3979D4FF593B107BBF0D658C14BF53B777684499D2CF9115C0456F358A21792278FA756D6C86DBDD2E9F58D84283626D9AE725F9207F98290BCA1B41CBBC56BAFE8FB50C189F9F587ED098363474419D2E9F58D84283626D9AE725F9207F982B6ED3528847A72C3FA209007487F193A23B81224B6766442FA38AA018407F6830CA385954B05F93ED3979D4FF593B107C477B01983BA71F2F421CD11AE5C8DF4BFA56C97F08B67652B252A13E842D7820D85A0E61FC00DB99B2AEE657AFCEC5412D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5EFE1BB5C9A5C65DFAC6AB4D0727B0369324C7E946DFFE575353B7AA049A6A549C2D38C5C28CDF1243CAC8E9A5DF3F1119FA209007487F193AE8E7F2092F15251EC082DD64563469D65FBB220DFFA1A6C7BFA56C97F08B67652B252A13E842D782C740BFFFA647208EE3D3C442D9C6B414A19A3F731E8F99736FB4184EA2FF37720FBF42F2000F842BE96399934F89F9F0E476BA6B44168EB1D8297DFB12088256FE0AAE516C8DEA76F69FADABF700E77E7C07DBF4AB1961680DD5C6E408E5ADF66556314E7003EDD55E688FF989DF2342B0A3415CF83200C048FA6C7EFC443649C6AB4D0727B03693DB4F8F1278C007E1F8655FFDB8E70530104BC33C95949B9E09D04660EEDD3380F4442454EF335DC40F4DD0BF7BD42F32FCA374A89BF9486E0C6A9B87324CD36F6B277161060991F3AE9B1CEA75B714882A3538801CD69E2928AD8373032AA0BCA3FAF884F76E0DCCF4A95936D573E23271285BF9D81011344489E14B6B188EBDDD0ED8D392BF97BC6DCB67F1683A4198CB5E14A889F5D65D239FF0E561F0FCE0B1F32C29FF0BCD90D2E9F58D84283626D9AE725F9207F9823629FD49EA54A389C6AB4D0727B03693ED7281F60FB2A66E9275F9125AF96569665C22A45DCAD2137C7E96CE41ADD92ECAC8E9A5DF3F1119FA209007487F193A5697D9179B637199ACB779CC0FF8A6AD4EC795E96F375E8D8678D9391AC2339932B26C135B3F481D579E3CFC1EED995201794D9F34A3BE7DEF5E68342F41B47D4C6A3322883C560E340E5B5FE126904AD9BFFAA104A2A834EF486CFF1D185B0F8FB295AE34A1A71119E1CE2ACBBCDED06F8A9F64537E366CDC26C0720374056FD18BD8A8737D8BF585B12A9CE4812C14AAC52CDC2215B6BE3D21AC31CDC28A0BD0EB0076A04F62F668C4CD7879280F18E7D5973434742A405C29CC49C016DD014C06399487183A4AE7D5973434742A4005FBFAAD350FE2E87075EE5D7C33A79AAFF84F36335ECC0881D1EDC527C4C94D66AE3AF6533124520841BA9D982C54AE1F96D74B89685A9E51A786B38AE2A6B0BFA56C97F08B67652B252A13E842D78266F56E367152BA3FCB327633FF2F2F94D2E9F58D84283626D9AE725F9207F982BE7C85DFD054CA504CE3C196321FE8934B6D80E9858DFB083621E42058F21A2F166AAA59C0CB11C9EB0957C0FDA95DB04C6A3322883C560E340E5B5FE126904A4993C7B8A8FE89CF043E28CB77DA63A33A3E4361EB56EA0E
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sun, 29 Mar 2015 19:41:28 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -127,7 +127,7 @@ module BasecommSdk
|
|
127
127
|
expect(bat.status_date).to eq(bat.settlement_date)
|
128
128
|
end
|
129
129
|
|
130
|
-
it 'returns return_date if returned' do
|
130
|
+
it 'returns return_date if returned (or corrected)' do
|
131
131
|
bat = described_class.from_json(bat_returned_json)
|
132
132
|
expect(bat.status_date).to eq(bat.return_date)
|
133
133
|
end
|
@@ -138,9 +138,15 @@ module BasecommSdk
|
|
138
138
|
expect(bat.status_date).to eq(bat.effective_date)
|
139
139
|
end
|
140
140
|
|
141
|
-
it 'returns
|
141
|
+
it 'returns created_date for created' do
|
142
142
|
Timecop.freeze(Time.now)
|
143
143
|
bat = described_class.from_json(bat_created_json)
|
144
|
+
expect(bat.status_date).to eq(bat.creation_date)
|
145
|
+
end
|
146
|
+
|
147
|
+
it 'returns now by default' do
|
148
|
+
Timecop.freeze(Time.now)
|
149
|
+
bat = described_class.from_json(bat_failed_json)
|
144
150
|
expect(bat.status_date).to eq(Time.now.strftime('%m/%d/%Y %H:%M:%S'))
|
145
151
|
end
|
146
152
|
end
|
@@ -73,7 +73,7 @@ module BasecommSdk
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
context '.add_bank_card' do
|
76
|
+
context '.add_bank_card', :vcr 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
|
@@ -106,9 +106,9 @@ module BasecommSdk
|
|
106
106
|
|
107
107
|
context '.get_bank_account_transaction', :vcr do
|
108
108
|
it 'returns the specified bank account transaction' do
|
109
|
-
bat = instance.get_bank_account_transaction(
|
110
|
-
expect(bat.id).to eq(
|
111
|
-
expect(bat.trace).to eq('
|
109
|
+
bat = instance.get_bank_account_transaction(30930)
|
110
|
+
expect(bat.id).to eq(30930)
|
111
|
+
expect(bat.trace).to eq('11100002581401')
|
112
112
|
expect(bat.account_name).to eq('test account')
|
113
113
|
expect(
|
114
114
|
bat.status[:bank_account_transaction_status_name]
|
@@ -124,16 +124,16 @@ module BasecommSdk
|
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
-
context '.get_bank_card_transaction' do
|
128
|
-
it 'returns the specified bank card transaction'
|
129
|
-
bct = instance.get_bank_card_transaction(
|
127
|
+
context '.get_bank_card_transaction', :vcr do
|
128
|
+
it 'returns the specified bank card transaction' do
|
129
|
+
bct = instance.get_bank_card_transaction(77237)
|
130
130
|
expect(bct).to be_a(BankCardTransaction)
|
131
|
-
expect(bct.amount).to eq(
|
132
|
-
expect(bct.authorization_code).to eq('
|
131
|
+
expect(bct.amount).to eq(1)
|
132
|
+
expect(bct.authorization_code).to eq('166483')
|
133
133
|
expect(bct.card_number).to eq('4***********1111')
|
134
134
|
end
|
135
135
|
|
136
|
-
it 'collects proper responses for missing transactions'
|
136
|
+
it 'collects proper responses for missing transactions' do
|
137
137
|
bct = instance.get_bank_card_transaction(99_999)
|
138
138
|
expect(bct.card_number).to eq('NO CARD NUMBER')
|
139
139
|
expect(bct.response_code).to eq('9000')
|
@@ -145,8 +145,8 @@ module BasecommSdk
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
-
context '.process_bank_account_transaction' do
|
149
|
-
it 'returns the processed bank account transaction'
|
148
|
+
context '.process_bank_account_transaction', :vcr do
|
149
|
+
it 'returns the processed bank account transaction' do
|
150
150
|
bat = create(:bank_account_transaction, :checking, :debit, :ccd)
|
151
151
|
returned_bat = instance.process_bank_account_transaction(bat)
|
152
152
|
expect(returned_bat.status_name).to eq('CREATED')
|
@@ -155,7 +155,7 @@ module BasecommSdk
|
|
155
155
|
).to eq('CREATED')
|
156
156
|
end
|
157
157
|
|
158
|
-
it 'fails when passing invalid transaction'
|
158
|
+
it 'fails when passing invalid transaction' do
|
159
159
|
bat = create(:bank_account_transaction, :checking, :debit)
|
160
160
|
returned_bat = instance.process_bank_account_transaction(bat)
|
161
161
|
expect(returned_bat.status_name).to eq('FAILED')
|
@@ -164,7 +164,7 @@ module BasecommSdk
|
|
164
164
|
).to eq('FAILED')
|
165
165
|
end
|
166
166
|
|
167
|
-
it 'populates @messages with failure reasons'
|
167
|
+
it 'populates @messages with failure reasons' do
|
168
168
|
bat = create(:bank_account_transaction, :checking, account_number: nil)
|
169
169
|
returned_bat = instance.process_bank_account_transaction(bat)
|
170
170
|
expect(returned_bat.messages.empty?).to eq(false)
|
@@ -172,8 +172,8 @@ module BasecommSdk
|
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
175
|
-
context '.process_bank_card_transaction' do
|
176
|
-
it 'returns the processed bank account transaction for auth'
|
175
|
+
context '.process_bank_card_transaction', :vcr do
|
176
|
+
it 'returns the processed bank account transaction for auth' do
|
177
177
|
bct = create(:bank_card_transaction, :auth)
|
178
178
|
returned_bct = instance.process_bank_card_transaction(bct)
|
179
179
|
expect(returned_bct.status_name).to eq('AUTHORIZED')
|
@@ -4,7 +4,8 @@ require 'spec_helper'
|
|
4
4
|
module BasecommSdk
|
5
5
|
describe TripleDesService, type: :lib do
|
6
6
|
|
7
|
-
let(:
|
7
|
+
let(:basecomm_key){'041C165EAD987CB5739DFB7CE3F21926155401BC8F8F233E'}
|
8
|
+
let(:instance) { TripleDesService.new(basecomm_key) }
|
8
9
|
let(:decrypted_data) { '{"name":"We are great!","type":"the_best"}' }
|
9
10
|
let(:encrypted_data) do
|
10
11
|
'5ebd0e6d9053db8a4b073c42994015a947623672ad014885b8dcba1c92400a064e30aa86ff1b4bed184cc25396c7f69e'
|
@@ -18,7 +19,7 @@ module BasecommSdk
|
|
18
19
|
|
19
20
|
context '.initialize' do
|
20
21
|
it 'accepts and exposes encoded key' do
|
21
|
-
expect(instance.key).to eq(
|
22
|
+
expect(instance.key).to eq(basecomm_key)
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
data/spec/spec_helper.rb
CHANGED
@@ -27,9 +27,9 @@ require 'vcr'
|
|
27
27
|
VCR.configure do |c|
|
28
28
|
c.cassette_library_dir = 'spec/cassettes'
|
29
29
|
c.hook_into :webmock
|
30
|
-
|
30
|
+
# Re-record every 7 days
|
31
|
+
c.default_cassette_options = { re_record_interval: 604800 }
|
31
32
|
c.configure_rspec_metadata!
|
32
|
-
c.allow_http_connections_when_no_cassette = true
|
33
33
|
end
|
34
34
|
|
35
35
|
require 'factory_girl'
|
@@ -1,28 +1,27 @@
|
|
1
1
|
# rubocop:disable all
|
2
2
|
shared_context 'bat_response_methods' do
|
3
3
|
def bat_hash(opts = {})
|
4
|
-
{
|
5
|
-
'bank_account_transaction' => {
|
4
|
+
{'bank_account_transaction' => {
|
6
5
|
'bank_account_transaction_routing_number' => opts.fetch(:routing_number, '021000021'),
|
7
6
|
'bank_account_transaction_status' => {
|
8
|
-
|
9
|
-
|
7
|
+
'bank_account_transaction_status_name' => opts.fetch(:status_name, 'SETTLED'),
|
8
|
+
'bank_account_transaction_status_description' => opts.fetch(:status_description, 'Settled Transaction')
|
10
9
|
},
|
11
10
|
'device_id' => 2,
|
12
11
|
'merchant_organization_id' => 3,
|
13
12
|
'bank_account_transaction_type' => {
|
14
|
-
|
15
|
-
|
13
|
+
'bank_account_transaction_type_name' => 'DEBIT',
|
14
|
+
'bank_account_transaction_type_description' => 'Debit Transaction'
|
16
15
|
},
|
17
16
|
'bank_account_transaction_account_type' => {
|
18
|
-
|
19
|
-
|
17
|
+
'bank_account_transaction_account_type_name' => 'CHECKING',
|
18
|
+
'bank_account_transaction_account_type_description' => 'Checking Account'
|
20
19
|
},
|
21
20
|
'bank_account_transaction_settlement_date' => '02/23/2015 12:00:00',
|
22
21
|
'bank_account_transaction_account_number' => '4*********4124',
|
23
22
|
'bank_account_transaction_method' => {
|
24
|
-
|
25
|
-
|
23
|
+
'bank_account_transaction_method_description' => 'ccd method',
|
24
|
+
'bank_account_transaction_method_name' => 'CCD'
|
26
25
|
},
|
27
26
|
'bank_account_transaction_effective_date' => '02/20/2015 01:31:10',
|
28
27
|
'bank_account_transaction_id' => opts.fetch(:transaction_id, 1348),
|
@@ -32,60 +31,63 @@ shared_context 'bat_response_methods' do
|
|
32
31
|
'bank_account_transaction_return_code' => opts.fetch(:return_code, nil),
|
33
32
|
'bank_account_transaction_creation_date' => '02/19/2015 08:31:11',
|
34
33
|
'bank_account_transaction_return_date' => '02/14/2015 01:31:17'
|
35
|
-
|
34
|
+
}
|
36
35
|
}
|
37
36
|
end
|
38
37
|
|
39
38
|
def bat_returned_json(opts = {})
|
40
39
|
bat_hash(
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
status_name: 'RETURNED',
|
41
|
+
status_description: 'Returned Transaction',
|
42
|
+
return_code: opts.fetch(:return_code, 'R01')
|
44
43
|
).to_json
|
45
44
|
end
|
46
45
|
|
47
46
|
def bat_failed_json(opts = {})
|
48
47
|
base = bat_hash(
|
49
|
-
|
50
|
-
|
48
|
+
status_name: 'FAILED',
|
49
|
+
status_description: 'Failed Transaction'
|
51
50
|
)
|
52
51
|
|
53
52
|
base.merge!(
|
54
|
-
|
53
|
+
"exception" => {
|
55
54
|
"bank_account_transaction_account_name" => "Account Name can not exceed a maximum length of 32",
|
56
55
|
"bank_account_number" => "Account Number must be at least 5 digits"
|
57
|
-
|
56
|
+
})
|
58
57
|
|
59
58
|
base.to_json
|
60
59
|
end
|
61
60
|
|
62
61
|
def bat_settled_json(opts = {})
|
63
62
|
bat_hash(
|
64
|
-
|
65
|
-
|
63
|
+
status_name: 'SETTLED',
|
64
|
+
status_description: 'Settled Transaction',
|
66
65
|
).to_json
|
67
66
|
end
|
68
67
|
|
69
68
|
def bat_correction_json(opts = {})
|
70
69
|
bat_hash(
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
status_name: 'RETURNED',
|
71
|
+
status_description: 'Returned Transaction',
|
72
|
+
return_code: opts.fetch(:return_code, 'C01')
|
74
73
|
).to_json
|
75
74
|
end
|
76
75
|
|
77
76
|
def bat_initiated_json(opts = {})
|
78
77
|
bat_hash(
|
79
|
-
|
80
|
-
|
78
|
+
status_name: 'INITIATED',
|
79
|
+
status_description: 'Initiated Transaction'
|
81
80
|
).to_json
|
82
81
|
end
|
83
82
|
|
84
83
|
def bat_created_json(opts = {})
|
85
|
-
bat_hash(
|
84
|
+
base = bat_hash(
|
86
85
|
status_name: 'CREATED',
|
87
86
|
status_description: 'Created Transaction'
|
88
|
-
)
|
87
|
+
)
|
88
|
+
|
89
|
+
base.merge!('bank_account_transaction_creation_date' => Time.now.strftime('%m/%d/%Y %H:%M:%S'))
|
90
|
+
base.to_json
|
89
91
|
end
|
90
92
|
end
|
91
93
|
# 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.1.
|
4
|
+
version: 1.1.6
|
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-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dotenv
|
@@ -309,6 +309,8 @@ files:
|
|
309
309
|
- lib/basecomm_sdk/version.rb
|
310
310
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/fails_when_passing_an_invalid_bank_account.yml
|
311
311
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/returns_the_new_bank_account_instance.yml
|
312
|
+
- spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml
|
313
|
+
- spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml
|
312
314
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_bat_transaction.yml
|
313
315
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml
|
314
316
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml
|
@@ -359,6 +361,8 @@ summary: Ruby client gem for Base Commerce ACH provider
|
|
359
361
|
test_files:
|
360
362
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/fails_when_passing_an_invalid_bank_account.yml
|
361
363
|
- spec/cassettes/BasecommSdk_Client/_add_bank_account/returns_the_new_bank_account_instance.yml
|
364
|
+
- spec/cassettes/BasecommSdk_Client/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml
|
365
|
+
- spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml
|
362
366
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_bat_transaction.yml
|
363
367
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml
|
364
368
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml
|