basecomm_sdk 1.1.7 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/basecomm_sdk/client.rb +54 -32
- 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/_add_bank_card/fails_when_passing_an_invalid_bank_card.yml +6 -6
- data/spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml +6 -6
- data/spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/fails_when_passing_invalid_bat_transaction.yml +4 -4
- 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/_ping/can_not_ping_the_server.yml +41 -0
- data/spec/cassettes/BasecommSdk_Client/_ping/can_ping_the_server.yml +34 -0
- 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 +5 -5
- data/spec/lib/basecomm_sdk/client_spec.rb +11 -0
- 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: 7c68269c2821e168f7d391d0ca06d0604cab0b19
|
4
|
+
data.tar.gz: 1bc1094abed855e5b3cdfb723bafa178c42ba3a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7768bc51a058276f09e83694985baca276dbcd3d92ce5c1e364c9717ae1056d5585336f5828f47dc2771f2c9cb09b2fed3e2d4d7157ce4069c82ce1844519e94
|
7
|
+
data.tar.gz: 45ddef5662cef623f62483801d06bab96d4652d57b91f64cc73db2115c02c7fa61986eda2960afa5c94936409f2112092e6e862a5bb81af085c3b345703c0998
|
data/CHANGELOG
CHANGED
data/lib/basecomm_sdk/client.rb
CHANGED
@@ -5,14 +5,15 @@ module BasecommSdk
|
|
5
5
|
DEFAULT_BASE_URL = 'https://gateway.basecommerce.com'
|
6
6
|
DEFAULT_SANDBOX_URL = 'https://gateway.basecommercesandbox.com'
|
7
7
|
|
8
|
-
attr_reader :gateway_password, :gateway_username, :key, :sandbox
|
8
|
+
attr_reader :gateway_password, :gateway_username, :key, :sandbox
|
9
|
+
attr_accessor :url
|
9
10
|
|
10
11
|
def initialize(args)
|
11
12
|
@gateway_username = args[:gateway_username]
|
12
13
|
@gateway_password = args[:gateway_password]
|
13
|
-
@key
|
14
|
-
@sandbox
|
15
|
-
@url
|
14
|
+
@key = args[:key]
|
15
|
+
@sandbox = args[:sandbox]
|
16
|
+
@url = args.fetch(:url) do
|
16
17
|
@sandbox ? DEFAULT_SANDBOX_URL : DEFAULT_BASE_URL
|
17
18
|
end
|
18
19
|
end
|
@@ -20,8 +21,8 @@ module BasecommSdk
|
|
20
21
|
def get_bank_card_transaction(transaction_id)
|
21
22
|
response = do_request(api_endpoint(__method__), transaction_id)
|
22
23
|
decrypted_payload = decrypt_payload_to_json(
|
23
|
-
|
24
|
-
|
24
|
+
response.body,
|
25
|
+
:bank_card_transaction
|
25
26
|
)
|
26
27
|
BankCardTransaction.from_json(decrypted_payload)
|
27
28
|
end
|
@@ -29,20 +30,20 @@ module BasecommSdk
|
|
29
30
|
def get_bank_account_transaction(transaction_id)
|
30
31
|
response = do_request(api_endpoint(__method__), transaction_id)
|
31
32
|
decrypted_payload = decrypt_payload_to_json(
|
32
|
-
|
33
|
-
|
33
|
+
response.body,
|
34
|
+
:bank_account_transaction
|
34
35
|
)
|
35
36
|
BankAccountTransaction.from_json(decrypted_payload)
|
36
37
|
end
|
37
38
|
|
38
39
|
def add_bank_account(bank_account)
|
39
40
|
response = do_request(
|
40
|
-
|
41
|
-
|
41
|
+
api_endpoint(__method__),
|
42
|
+
encrypt_payload(bank_account.to_json)
|
42
43
|
)
|
43
44
|
decrypted_payload = decrypt_payload_to_json(
|
44
|
-
|
45
|
-
|
45
|
+
response.body,
|
46
|
+
:bank_account
|
46
47
|
)
|
47
48
|
BankAccount.from_json(decrypted_payload)
|
48
49
|
end
|
@@ -51,12 +52,12 @@ module BasecommSdk
|
|
51
52
|
json = bank_card.to_json
|
52
53
|
logger.debug("#{__method__}: #{json}")
|
53
54
|
response = do_request(
|
54
|
-
|
55
|
-
|
55
|
+
api_endpoint(__method__),
|
56
|
+
encrypt_payload(json)
|
56
57
|
)
|
57
58
|
decrypted_payload = decrypt_payload_to_json(
|
58
|
-
|
59
|
-
|
59
|
+
response.body,
|
60
|
+
:bank_card
|
60
61
|
)
|
61
62
|
BankCard.from_json(decrypted_payload)
|
62
63
|
end
|
@@ -65,12 +66,12 @@ module BasecommSdk
|
|
65
66
|
json = bat.to_json
|
66
67
|
logger.debug("#{__method__}: #{json}")
|
67
68
|
response = do_request(
|
68
|
-
|
69
|
-
|
69
|
+
api_endpoint(__method__),
|
70
|
+
encrypt_payload(json)
|
70
71
|
)
|
71
72
|
decrypted_payload = decrypt_payload_to_json(
|
72
|
-
|
73
|
-
|
73
|
+
response.body,
|
74
|
+
:bank_account_transaction
|
74
75
|
)
|
75
76
|
BankAccountTransaction.from_json(decrypted_payload)
|
76
77
|
end
|
@@ -79,26 +80,47 @@ module BasecommSdk
|
|
79
80
|
json = bct.to_json
|
80
81
|
logger.debug("#{__method__}: #{json}")
|
81
82
|
response = do_request(
|
82
|
-
|
83
|
-
|
83
|
+
api_endpoint(__method__),
|
84
|
+
encrypt_payload(json)
|
84
85
|
)
|
85
86
|
decrypted_payload = decrypt_payload_to_json(
|
86
|
-
|
87
|
-
|
87
|
+
response.body,
|
88
|
+
:bank_card_transaction
|
88
89
|
)
|
89
90
|
BankCardTransaction.from_json(decrypted_payload)
|
90
91
|
end
|
91
92
|
|
93
|
+
def ping
|
94
|
+
json = {'PING' => 'PING'}.to_json
|
95
|
+
endpoint = '/pcms/?f=API_PingPong'
|
96
|
+
|
97
|
+
begin
|
98
|
+
response = do_request(
|
99
|
+
endpoint,
|
100
|
+
encrypt_payload(json)
|
101
|
+
)
|
102
|
+
result = decrypt_payload_to_json(
|
103
|
+
response.body,
|
104
|
+
:success
|
105
|
+
)
|
106
|
+
parsed_result = JSON.parse(result)
|
107
|
+
parsed_result.fetch('success', 'failure') == 'success'
|
108
|
+
rescue
|
109
|
+
false
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
92
113
|
private
|
93
114
|
|
94
115
|
# rubocop:disable Style/SingleSpaceBeforeFirstArg
|
95
116
|
def connection
|
96
117
|
@connection ||= Faraday.new(url: @url) do |faraday|
|
97
|
-
faraday.request
|
98
|
-
faraday.response :logger
|
99
|
-
faraday.adapter
|
118
|
+
faraday.request :url_encoded # form-encode POST params
|
119
|
+
faraday.response :logger # log requests to STDOUT
|
120
|
+
faraday.adapter :excon
|
100
121
|
end
|
101
122
|
end
|
123
|
+
|
102
124
|
# rubocop:enable Style/SingleSpaceBeforeFirstArg
|
103
125
|
|
104
126
|
def decrypt_payload_to_json(data, root_key = nil)
|
@@ -109,7 +131,7 @@ module BasecommSdk
|
|
109
131
|
hash = JSON.parse(decrypted_data)
|
110
132
|
# Insert the root key if it is missing
|
111
133
|
unless hash.key?(root_key.to_s)
|
112
|
-
decrypted_data = {
|
134
|
+
decrypted_data = {root_key.to_sym => hash}.to_json
|
113
135
|
end
|
114
136
|
end
|
115
137
|
logger.debug("#{__method__} : Decrypted: #{decrypted_data}")
|
@@ -139,11 +161,11 @@ module BasecommSdk
|
|
139
161
|
def do_request(endpoint, payload)
|
140
162
|
connection.post(endpoint) do |req|
|
141
163
|
req.headers['Content-Type'] = 'application/json'
|
142
|
-
req.headers['Accept']
|
164
|
+
req.headers['Accept'] = '*/*'
|
143
165
|
req.body = {
|
144
|
-
|
145
|
-
|
146
|
-
|
166
|
+
gateway_username: gateway_username,
|
167
|
+
gateway_password: gateway_password,
|
168
|
+
payload: payload
|
147
169
|
}.to_json
|
148
170
|
end
|
149
171
|
end
|
data/lib/basecomm_sdk/version.rb
CHANGED
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:41 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=67437E4BE625877D1DD56F928F12DC6C; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737C2FCAA8200B04DE18C16ABEF59633B4D1E449510E6E49742470B4AB973B22A8E8CDA5F6E090669F1F3C015D027EDE737112FE80D1CC4B05CF3C015D027EDE737FC77C015C7243CA6AC191753207E8B3A7403AE3F0936A98F5B72F71B8B495B57077AE0FBE8418D674B6D80E9858DFB085755704D657DD310C44000A730011177F7C70C8DA7C7C24D47C43BB342055884C39A0984DDEF61624C67F84B4B521D4DC1B9CE2444211D6C7403AE3F0936A98F5804D5CD20EEBCE3D30728A2D0B24A85445FBAB8B0D3C5D9F8B1781CC01A3F0A0115149504C116AC83717D4A51C8307C49ABBAB1E0AFD9A1D8AEF1C1E7FE121336DC57AC29E3F0B063B196B469C81A6E8EDE47925B23DAC7DAACCCD0599C80C22915A8A4EFFFA9073A4E907E124CBC5A7457A04D4677537C629516FE9C3A2EFDF3C015D027EDE73765541624D86673EAD31F29243A3938940BB46AD568727EBC7ADD9494888B73E5325D01C367D6E421AFF84F36335ECC08EDF8149DD48F8C8F3A9B8BF7C0568FA8714E817BB1232AEECF97B3BF1EA60C975BCD9DA59403E67B8FFD01E5AA3CBD6FB8C6C97B39F63E050841BA9D982C54AE80E9FCB560BAB36D21E7C6DCFE6109DFE7D5973434742A402F598684C5E14151AFF84F36335ECC0862FE9F6CA4519E3CA5A86547059BCF8E7403AE3F0936A98FBA6FDD94C5D915D3A4468CC2873DD280F318561BCE749A0C
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:41 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
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:41 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=A2809EFC01C352A8DD47EA39E89AA3FD; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 407E45C162ACEC7C53D693D6CDD21AE7407E45C162ACEC7C3E433D6B983641D120261B67B082A398F7C70C8DA7C7C24D47C43BB3420558840CB75EDCC26941879CB8F110DCDFBB8967256B111FC74DAC7A30D6053F6C04535E757DA92B1A09370AF9F3261AF845AA014F3F157B7E0E23043E28CB77DA63A375AA227036DA2A45F7C70C8DA7C7C24D1AA2A56A2D2F54D7318D5E44D1FF9DE6A8E9E2C715684DD32888660736F3DD3E7C7E96CE41ADD92E0AAD1805A59531B30CE424EA7B85D6F36C266DFCB626A76BBAB67812BED71FA6E7D80E381D31FEE5A722EB2725DB1B13841CC716091042ABB6AFBC74B70EF467AC66571660F42BE1801EF5C9BB0E14C9BAB67812BED71FA6E7D80E381D31FEE5435F6E7DD07211256F37B52ACA40B5D46EB14FB91C4FD6E387002DFDAAA297019F40EEFB54D7FBEB60CD32D36D6A24ED8AAD113CA0D4BB5E14D7C0A790B9E1F1BE117E2526D101486B7BA065A3CED92706147506C125FF0D3ACB4E2E6E1F496BCF3CFCD2E2F4A6785BEA646BE9582279F79468582941414E7403AE3F0936A98FC514B97F205BC2E6EF486CFF1D185B0F8FB295AE34A1A71119E1CE2ACBBCDED0A099C257872610A33D72DA08035F68AF0928C6E593ED5D1CB8FA9DC9CDFBC8D4C7C6819C318D65C8A74C86E4250B6C90D01DCA45FB51B082DCCC21EF245B7EA196343FD2D2375ADBAFF84F36335ECC08EEF3AC987C4B305C58D118D649D9DFA51CC0D483EAB1D8163D02B59B2EE58D9E3D72DA08035F68AF31D187A72A48675C4426474DAA029BD974CE2E51E6E16EC0D8B6E5B7668ECEEE13BECD6978D3D2290AAD1805A59531B3A7AC458C114AB060C4287D314CEA97A301CFF8C66A093C87EC7D13076E6B1166C5AC8312F8F75ED5D3DB3D33856ADDFBDF9A2DDA3D9D3E2581147D898C719A4804A0A114E4850AB07C7E96CE41ADD92E0AAD1805A59531B3AEB2D44E1A780CBB841CC716091042ABC3D8B4D45E2F11EA
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:41 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
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_addBankCardV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"e4c564d5fe5d2fcfa15da5ab5aba30e3913c67d41bda6622143a6cf78b9098b312d0a5b2cd7d241728b7e7db30514c8822baf6c63df7bb8a1353d2ec5323ab3770ab30608d452cb14086a0e16679fb70d48bb9b5ece9f0a90b6804fd201310f77c73c0c8f1895df0d2e9f58d842836265f8e6d766b05e577fbf65778e09fbe795ddffc3805e5ee58c7c6819c318d65c8a74c86e4250b6c90d01dca45fb51b082e08459f50c6326181d6f71beda2fe0e168c6a2ad2c773b940841ba9d982c54aea78b54aa6920215a1fc67680fde3e6da2328655b338ce858779de034b351643c1fc691d9b6d0bf963d72da08035f68afee318fdaa9d88a990daa745b033788910841ba9d982c54aed51d7cab17a81c907aa1d539baabbade82a495ae4c6d6bc7120fba3f9ca36082456ecc620c2ff87a8ecce1ee0ffee8953c7c7323d5ac55accabef888e6684c1a60e6a0474e0d1db74835560f8129e6ca28e6538645b53fc80dea045662c62a8fc2c66d207c5d37823edfe779fd643ba6f0b14a6801d5b83c"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:42 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=A2408A29502542E90266A8BB2CC1DDFC; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: E4C564D5FE5D2FCF24C68C0BE45352CBD2E9F58D84283626DB7CE17D5109152F36AA8DE781817011BC37FB4E37936B2A64FD215C4194C117644D477D1972CBE6490ABAB3A5A76566356201924A4DF1B10CB75EDCC26941879CB8F110DCDFBB8925A7824E650EFB91B3FCAD899485546812D0A5B2CD7D241776B8090C14D2DA07C76D1D0A9398015887FADAAE435D8B79D92096C3EFCFCDC3F5B330A7466D090912D0A5B2CD7D2417A15DA5AB5ABA30E3913C67D41BDA6622143A6CF78B9098B312D0A5B2CD7D241728B7E7DB30514C8822BAF6C63DF7BB8A1353D2EC5323AB3770AB30608D452CB14086A0E16679FB70D48BB9B5ECE9F0A90B6804FD201310F77C73C0C8F1895DF0D2E9F58D842836266F02E14F6E05507C2F098B25C2813A72A8F9A835FFC6E6DE1C3B189EE5BC45921460233B0307A2315FFC0F91915ACEDCC16F35363CBA9D906F86ED4F46F7E8E5467048E3411AA2BA5890A5D4AAC786DCFED5D46082B3F8D97C7E96CE41ADD92E71F38580D9F561D27044498DBF74A72D837968BA3151A0A0E7D5973434742A40FE7E408D4BF22CF8D9F6EB0815A69C949A71ADE0FA75D68F19E1CE2ACBBCDED0B6C7709E270B307C3D72DA08035F68AF92FB5B9AB309ECE4E3F712F140CC1D06AFF84F36335ECC0859FEF8E4A619ABF51C6812E4D96AB9FBAFF84F36335ECC08EEF3AC987C4B305C8C26E398C7F30410F48AEDB7115A0FF3FE85272132D4426D7A6B5BEF280F96257D832380B3A3F2A34CE8476A5897109EA6DB0FF82D8609ADE7387387733E881D523B2561611BE625BFA56C97F08B67653342407A95ED98B0C6AB4D0727B036933CEC8AA9CFD4C25D7C73C0C8F1895DF0D2E9F58D8428362624422CD120A7E51124FAA495B818DA3D3503F7DA651E2D5D357949D9AE5FAC03D98987FE514A0A12E62AF40CA7E0BB46F817118978E3CAA102728ACC3DA31378A19A3F731E8F99732A9512C2DB2B6DAA8C16ABEF59633B4D093FC767067706C6C2A143FCA31F146B88C25FB9B4BF004C
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:42 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
data/spec/cassettes/BasecommSdk_Client/_add_bank_card/returns_a_valid_new_bank_card_instance.yml
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_addBankCardV4
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"e4c564d5fe5d2fcfa15da5ab5aba30e3913c67d41bda6622143a6cf78b9098b312d0a5b2cd7d2417eb06970f9e2e94c93524ac05b42d3a010f2fa74f9c4184917969d232b111918e4ec795e96f375e8d380680ad3520392d264b1528e46b02a1c3a1b1a4452f5cb312d0a5b2cd7d241728b7e7db30514c883acdab8d8ce7e9d4082073e839e1149208c9dd01b00f0dc76e30e11b72cfaba4e2a82185a6deaef184969695964490581cebf17f4b4d7f55c60588e0fa3cef89e9cd95dc9a44681a0841ba9d982c54ae7f0e5ac5c601ec20291d4e60cd465951eb6eab779ad8a31d3d72da08035f68afc9c52326868eb7926409660b3f1e535eaff84f36335ecc0862fe9f6ca4519e3cb7be60c9718763c6db1164b7d34158066db777bfe4f62ff9ef4cc1d330b855e33d72da08035f68afd44718c579e8c146569c2991ea5921ba12d0a5b2cd7d241776b8090c14d2da07c76d1d0a9398015887fadaae435d8b79ee9ad5efe2cf327d4bdd882b6005d0ed12d0a5b2cd7d24179bce38b4040d2adb4fcf6d0e057af0b28454a22354003f60a34e1619859f0cfc51daa07760fc74e3ca4ed3bc4182953f"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:41 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=E94FB51A48BF43BB06743270C8751FA8; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: E4C564D5FE5D2FCF24C68C0BE45352CBD2E9F58D84283626DB7CE17D5109152F36AA8DE781817011BC37FB4E37936B2A64FD215C4194C1175F367A685A404DF73DE55E4B16B67FE1356201924A4DF1B10CB75EDCC26941879CB8F110DCDFBB8967256B111FC74DACDE11DCF83EB3B7B012D0A5B2CD7D241776B8090C14D2DA07C76D1D0A9398015887FADAAE435D8B79D92096C3EFCFCDC368CF6406750A9E2112D0A5B2CD7D2417A15DA5AB5ABA30E3913C67D41BDA6622143A6CF78B9098B312D0A5B2CD7D241728B7E7DB30514C8822BAF6C63DF7BB8A1353D2EC5323AB3770AB30608D452CB14086A0E16679FB70D48BB9B5ECE9F0A90B6804FD201310F77C73C0C8F1895DF0D2E9F58D842836265E054D073FEDE28F4A7FB8BB3B3A4AD2B6A4034B12A879DFBE43417B6532E6DEFFA08659FABC0B6FF318D204CD8E12F302728ACC3DA313785A19D483E064AA93198F70A91A80B087E90D9B6C59D48DCB4B32544EE113E6D42458F01C021C9F21F3BC161FE1220CA71C3B189EE5BC45921460233B0307A2315FFC0F91915ACEDCC16F35363CBA9D906F86ED4F46F7E8E5467048E3411AA2BA5890A5D4AAC786DCFED5D46082B3F8D97C7E96CE41ADD92E71F38580D9F561D27044498DBF74A72D837968BA3151A0A0E7D5973434742A40FE7E408D4BF22CF8D9F6EB0815A69C949A71ADE0FA75D68F19E1CE2ACBBCDED0B6C7709E270B307C3D72DA08035F68AF92FB5B9AB309ECE4E3F712F140CC1D06AFF84F36335ECC0859FEF8E4A619ABF51C6812E4D96AB9FBAFF84F36335ECC08EEF3AC987C4B305C8C26E398C7F30410F48AEDB7115A0FF3FE85272132D4426D7A6B5BEF280F96257D832380B3A3F2A34CE8476A5897109EA6DB0FF82D8609ADE7387387733E881D523B2561611BE625BFA56C97F08B67653342407A95ED98B0C6AB4D0727B036933CEC8AA9CFD4C25D7C73C0C8F1895DF0D2E9F58D8428362624422CD120A7E51124FAA495B818DA3D3503F7DA651E2D5D357949D9AE5FAC03271C2CFC6E147CC14EC795E96F375E8DECF5A6DCE484AA82ECCDBD69478A61AB12523301340B162337C5EA26B9E306629B70A3D7F5A543E659B51257114C284CFDB51BFDC2B53762EBC54683D85D11A3A76F7B760F27E3A0BCBFFC036E8048143D065073245318224509FE6DC26710F5E1104B55154E5ECD
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:42 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:43 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=E28A1746E705B9BA6DE23B0FF0BC601C; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E5BDA22081C33F7EFF88F5F18017A5F4F6B329DC448365107FA209007487F193A91EF3170B3D2586B1BBC23FC7F4659191AFE1BB49587F82F0115149504C116AC48B52AFED60948E6FA209007487F193ADF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982D66276E52EB0DC70135B89846A9C37FAF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5EA6011C5B2569D0156C277DC5EFF01C4C878FAC11AC14DF73FA209007487F193AE85737D9875A35B0BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A57243AE132367247C60588E0FA3CEF89F7B41B22382E48931356694EA6EBDE1D0AAD1805A59531B3A19A3F731E8F99732EA2DC11D8385DB201AF8B85AA4A207AF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E82484AD1C8668C28D9AE725F9207F9821F170D072BCFD958D52096BB3C75CAE07403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9435F6E7DD07211256F37B52ACA40B5D4B695E7F29F3FD64DC81A18FD88E91CE6A28EF840A9E121B1
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:43 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:42 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=BD76D645CA82064526EE41C5359FA37E; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: 407E45C162ACEC7C925B52B4C5E3835F340E5B5FE126904AF817118978E3CAA17403AE3F0936A98F7D97AB452E8562D974A288DFE7CDB5F21A00B61498FAEE500DEA045662C62A8F162F0873B0AF1C806E7B631492E781034C0F3725A3120D8674CE2E51E6E16EC077C93452449DA1E932B26C135B3F481DA22EAE293C70870BD9CD3B4BAF8741EBF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E8A9B485D8ECE7822C3CEFF7A042055380E76E74D38C9EF7E0C2D7694EC004EADAD285BD4AC1A97F8BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F726BA6FDD94C5D915D379C37EABF96FD3E7C44000A730011177F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107F75FB024FC087399453A4C0A0A8FD70E239FF0E561F0FCE089F74A2679EDEDE97403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9435F6E7DD07211256F37B52ACA40B5D47C7E96CE41ADD92E0AAD1805A59531B3A19A3F731E8F997371456A478DBBAEF0DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA504CE3C196321FE8934B6D80E9858DFB0815090D710C17F592D3979D4FF593B1076625F903D11C17830AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA50540948FCBF126E7BC2F5CB0CCD0AB07EBAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904AB2C6C77B4200A0E3A918D5AC2261202D692C2C452A1287B354BC0B3573A88B9B0AF9F3261AF845AAD9AE725F9207F982AE1A6A630847DC5A83717D4A51C8307C5CB20C35BFFDC50874CE2E51E6E16EC077C93452449DA1E99E4DD767E86E186645F3632687F63AFE38F0AEBAC74B25654CB38C6B61B30C2D49CA333FBE13A1E58CD92638D1E89A5B5E757DA92B1A09370AF9F3261AF845AAD9AE725F9207F982AE1A6A630847DC5A83717D4A51C8307C540948FCBF126E7B2B3AA61687B22A410CB20088637EA2C074CE2E51E6E16EC077C93452449DA1E925FACF86A9EE619A02E72960A8BF92D00115149504C116AC48B52AFED60948E6FA209007487F193A014F3F157B7E0E232906F7EFF3244548B8600E92822039875783CCDADD531CABD3979D4FF593B1076625F903D11C17830AF9F3261AF845AAD9AE725F9207F982D66276E52EB0DC7064FD215C4194C11719C55F1DEB46923AC1B9CE2444211D6C7403AE3F0936A98F7D97AB452E8562D92310EB9FAD2F2DCA3C02DDCFC08041E46F37B52ACA40B5D44CC9656D6545D82042C5C80951A4B0690AF9F3261AF845AAD9AE725F9207F98295C7DE473162A5DE4CE101EC02F3411D0DEA045662C62A8F162F0873B0AF1C806E7B631492E781034C0F3725A3120D8674CE2E51E6E16EC077C93452449DA1E90B5ABD2846D60F1396A45C9FD7F0593982E444524A4936EEF2B630185A5DFEF5F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107B1E40E4A78203500DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982503DCA974FB8D05BBC56856ED69911BB3FA8DCEBA4B5907B205D606FB760E5185F33CFEC7EECD541F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E194CA23B82FE8C71EBDDDBA8DD1EB60D3A0B7D091190BD3E74CE2E51E6E16EC077C93452449DA1E91F6C9AF4DE33A7A2C6EA2B05D7E0D322340E5B5FE126904A5F41BABBBEE24F2D7C7E96CE41ADD92E0AAD1805A59531B3A19A3F731E8F9973BDF6C100C55968FD1B9A4CB93E3187919EDB1747D7CE44077AF1916F68FA882C8E29B31FE849D16588C25FB9B4BF004C
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:43 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:43 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=BD7E151A78643C0AE54CD446A1F7D306; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: E4C564D5FE5D2FCF7207001290A9FAEA93E23E18115F59E036AA8DE781817011CAC8E9A5DF3F1119FA209007487F193A808D228B025BF4BCACB779CC0FF8A6AD4EC795E96F375E8D8678D9391AC2339900231980981F8F9DF421CD11AE5C8DF4BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92D20261B67B082A398BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92DD05F85D8DAF53F775EF908245AC0D3CEACBB75AA05FFFE1EFE0EE89CCE8062E0361B355E0C7C83B3BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92DBC5FF4ACD4A1E4EC2856F78BA891531DC18F692416B4F358D2E9F58D84283626D9AE725F9207F98266912FB54E7A3C2AF1E4C1C157A040AA4F84918369B0FA32FA80D2EDBA826566A2798D41B906176B7C7E96CE41ADD92ECAC8E9A5DF3F1119FA209007487F193A8F959EBF980A2FBE77C93452449DA1E978801EBC6C927D36C2563E652638C43DD2E9F58D84283626D9AE725F9207F9824E2D8D9739F13CDE418232C8F1FEC18A9F4F66641EEA2FAF0CA385954B05F93ED3979D4FF593B1077485BBEF65F8E823535B5923478B2FE6B30C9F5CB4C1314CBFA56C97F08B67652B252A13E842D78274A288DFE7CDB5F2EB06970F9E2E94C94184A92071C8ADE9ABC75B5194135B4BBE4D720CF77AD4ABD342134B8AE59609DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F9821F170D072BCFD9585B1D00BB3F9A3204F38352AA0856289C340E5B5FE126904A66324842965404B29CCA4C40DB6210A503FA9473D1E6DBB4E1104B55154E5ECD
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:44 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:43 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=985024F8366978AD9F4FBC84384CB24E; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
31
|
string: E4C564D5FE5D2FCF7207001290A9FAEA93E23E18115F59E036AA8DE781817011CAC8E9A5DF3F1119FA209007487F193A3DE6708120F9272DE2B5D0D62EDF00210CA385954B05F93ED3979D4FF593B1078D7671301223C0F1DF65B5D7B4F646260CA385954B05F93ED3979D4FF593B1078D7671301223C0F117637C800E0ADD91723EA1775F765C81B26C409CDFE9173A55AC77BBAEC4536166447FEE460FA0DF4EC795E96F375E8D8678D9391AC2339925FACF86A9EE619AC39A0984DDEF6162CCB701F9F1F085A1B0592B460272845047531144A74465AD3C48F3F93E40CE8F777684499D2CF911523B2561611BE625BFA56C97F08B67652B252A13E842D7822310EB9FAD2F2DCA277F3F4F9BBE463197EBEE0721C9728D5B906C02F751632BD24F50A54B527872C397D25FD8757CB02867BFD4D5A9C11F81A1E61167BD7EC30CA385954B05F93ED3979D4FF593B10781312D8C67861940579E3CFC1EED995240C2C796E16E632A12D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5EFE1BB5C9A5C65DFA529EA0FC1685CB42C6E702D11471D76A3B577E2C53542E97239FF0E561F0FCE089F74A2679EDEDE902728ACC3DA31378A19A3F731E8F99732BA7B2DE82844BFF6F02E14F6E05507C014E011BB8C28041504BF84DED69B5A57195888F6E22AABD4C6A3322883C560E340E5B5FE126904AF0E700AEB7458A51B01B512F1ECBA1D11276E4C0B558E7C64A97DBDA9B5207330CA385954B05F93ED3979D4FF593B107BBF0D658C14BF53B777684499D2CF9115C0456F358A21792278FA756D6C86DBDD2E9F58D84283626D9AE725F9207F982B6ED3528847A72C3FA209007487F193A3DE6708120F9272DE2B5D0D62EDF00210CA385954B05F93ED3979D4FF593B107F75FB024FC08739975EFEA6D7EF9D7D64C6A3322883C560E340E5B5FE126904A52D99ED860241455BC60A0B11550F66812D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5EFE1BB5C9A5C65DFAC6AB4D0727B0369324C7E946DFFE5753A41FBEDF7FF73434A0E28288BB1143F9CAC8E9A5DF3F1119FA209007487F193AE8E7F2092F15251EC082DD64563469D65FBB220DFFA1A6C7BFA56C97F08B67652B252A13E842D782C740BFFFA647208EE3D3C442D9C6B414A19A3F731E8F99736FB4184EA2FF3772E90BF51431B5769BBFA56C97F08B67652B252A13E842D78274A288DFE7CDB5F21A00B61498FAEE500DEA045662C62A8FA3C747FD64499BFFDA656B932E2A2771FE09F3B7A3443C744C6A3322883C560E340E5B5FE126904A1EF789CBFF8018B0BC60A0B11550F66812D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5E97C821449EDA12E0BE6C15EE7662D9461081F96DC66EFD4BD2E9F58D84283626D9AE725F9207F982CB0FAC1ACE7A9D3B7044498DBF74A72D837968BA3151A0A0E7D5973434742A40FE7E408D4BF22CF8D9F6EB0815A69C949A71ADE0FA75D68F19E1CE2ACBBCDED0B6C7709E270B307C3D72DA08035F68AF92FB5B9AB309ECE4E3F712F140CC1D06AFF84F36335ECC0859FEF8E4A619ABF51C6812E4D96AB9FBAFF84F36335ECC08EEF3AC987C4B305C8C26E398C7F30410F48AEDB7115A0FF3FE85272132D4426D7A6B5BEF280F96257D832380B3A3F2A34CE8476A5897109EA6DB0FF82D8609AD1356694EA6EBDE1DCAC8E9A5DF3F1119FA209007487F193A7DA82BB44B54FCBABFA56C97F08B67652B252A13E842D78266F56E367152BA3FB43C3245E5F469803FA8DCEBA4B5907BC9E2775B7AAE3DB73E7E87B5266B0E978ED0BF10D344B429D2E9F58D84283626D9AE725F9207F982BE7C85DFD054CA50540948FCBF126E7BD68E9F25D7F0CE93BFA56C97F08B67652B252A13E842D78295DFEB2350F5E92D21D3E30B24EE36A4991014FA4F757E98616084E9947189A2
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:43 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://bogusurl.com/pcms/?f=API_PingPong
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"18f8eb3b7c0e573e501f83031824c25c"}'
|
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: 301
|
19
|
+
message: ''
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Fri, 15 May 2015 16:17:10 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
Location:
|
30
|
+
- http://localhost
|
31
|
+
Expires:
|
32
|
+
- Fri, 15 May 2015 16:17:09 GMT
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
38
|
+
bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"
|
39
|
+
http_version:
|
40
|
+
recorded_at: Fri, 15 May 2015 16:17:10 GMT
|
41
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.basecommercesandbox.com/pcms/?f=API_PingPong
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"18f8eb3b7c0e573e501f83031824c25c"}'
|
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
|
+
- Fri, 15 May 2015 16:04:56 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
|
+
Set-Cookie:
|
26
|
+
- JSESSIONID=C083F19CE54EFA86593A8E3C77E81679; Path=/; Secure
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: 46B25DC807E8CF52B7767B6D5AB913CAA023578FFC240F11
|
32
|
+
http_version:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:04:56 GMT
|
34
|
+
recorded_with: VCR 2.9.3
|
@@ -5,7 +5,7 @@ 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":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c925b52b4c5e3835f340e5b5fe126904a4191132f235354e75778ca9282fe58b8bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904a33d6e2f47310f726979b00b19c3110c19444c9a1864e1dc07263f24dc34cd0c774ce2e51e6e16ec077c93452449da1e9c0e46682f93aaf9c318d5e44d1ff9de6a8e9e2c715684dd32888660736f3dd3e7c7e96ce41add92e0aad1805a59531b3a19a3f731e8f9973c45c0e545e2171bdc2fcaa8200b04de18b489481abcbad43069f0fd8db65ad39adc64a6906709b4b0af9f3261af845aad9ae725f9207f982ae1a6a630847dc5aabf1b7d0bb08f621d3486557030daa5e01ce6ce0b67399197c7e96ce41add92e0aad1805a59531b3a19a3f731e8f99732ea2dc11d8385db20f69b5019e26807579ea82ff20851fd70aad1805a59531b3a19a3f731e8f9973bdf6c100c55968fd1b9a4cb93e3187918454a22354003f60a34e1619859f0cfc22ca60f458048cc0ca4ed3bc4182953f"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:45 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=1DF57B9D1DFF0594EFC14C49C89A5BC5; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5ED285AEAE27D6895E30927DEBD9CBD89B7E9321F2706AC08032FDA82103A979D4020BE8230303971EF3C015D027EDE737BE1AAED1A180E86E93E23E18115F59E036AA8DE7818170110AAD1805A59531B3A19A3F731E8F997371456A478DBBAEF0DF65B5D7B4F646260AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA504CE3C196321FE8934B6D80E9858DFB0815090D710C17F592D3979D4FF593B1076625F903D11C17830AF9F3261AF845AAD9AE725F9207F982BE7C85DFD054CA50540948FCBF126E7BC2F5CB0CCD0AB07EBAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F726979B00B19C3110C136AA8DE7818170110AAD1805A59531B3A19A3F731E8F9973C45C0E545E2171BDB589708D4ABD671017637C800E0ADD91F3634028C9534880DECBFBBF520A8EDD910F801BE312015ABAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F7266291394AF5E19B6AF3F876E1D3912E4A6C266DFCB626A76B1356694EA6EBDE1D0AAD1805A59531B3A19A3F731E8F9973EDC6A05BAD3C5DE2AC191753207E8B3A7403AE3F0936A98F7D97AB452E8562D995DFEB2350F5E92DD05F85D8DAF53F775EF908245AC0D3CEBBC1BAF11D215F7921523EE09C267ABFC7416D8D8857CA29F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B1078D7671301223C0F192FB5B9AB309ECE486244499F80EF5C5BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A02A04706EAF6AB01D30728A2D0B24A85445FBAB8B0D3C5D9F8B1781CC01A3F0A82484AD1C8668C28F421B38F87A61924A9BB61F5705C305B90B25EE15EEC315FF3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E0AAD1805A59531B3BEFC4FE38FBFEAAA2626E785F7A6F1B0D64CC262F08487E47403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9BAD1653A36B3F3E44F2AE585619504A87403AE3F0936A98F7D97AB452E8562D9C740BFFFA647208EE3D3C442D9C6B414A19A3F731E8F99736FB4184EA2FF37721F0E666411DF8E485BD03F4B8331E5EB2993E3F5614530B374CE2E51E6E16EC077C93452449DA1E99E4DD767E86E1866E81A3457119C417BA8E9E2C715684DD30E49AD0CAE0291FBC76927D67C06CBED7403AE3F0936A98F7D97AB452E8562D94E55E8AABC5A9800E76F094A6560497708F7DB79AB6D452327D4ED92883D2259A2B13998399728CB2E28AECAD24FD45E
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:46 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,7 +5,7 @@ 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":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c925b52b4c5e3835f340e5b5fe126904a33d6e2f47310f726979b00b19c3110c19444c9a1864e1dc07263f24dc34cd0c774ce2e51e6e16ec077c93452449da1e9c0e46682f93aaf9c318d5e44d1ff9de6a8e9e2c715684dd32888660736f3dd3e7c7e96ce41add92e0aad1805a59531b3a19a3f731e8f9973c45c0e545e2171bda93a11dd7bf841c1913c67d41bda6622143a6cf78b9098b3bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904ae26bf270c3cd06007c58201e2b10baa005f4ff824d72a9820aad1805a59531b3a19a3f731e8f9973bdf6c100c55968fd1b9a4cb93e3187918454a22354003f60a34e1619859f0cfc22ca60f458048cc0ca4ed3bc4182953f"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:46 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=D6C2DCD3B70535513D26E5197C0545EF; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 667B870011152EAE6D3A7CC4EBD4AB92F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5EFFC1F19162C75AF310A9FCEB49D6D0BC340E5B5FE126904A1EB2F05EC88685B2BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A378B88D6D43637DE4CAFB527D178E81B586C42CBA1ABBC3D21523EE09C267ABFD6B742616EF17335F7C70C8DA7C7C24DE81A3457119C417B6452CF261C8187C87F2BFDE8FC76006D2F25A5225C38501A163A9DE975AC2044F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B1079A7B11B0B59BEA7474CE2E51E6E16EC077C93452449DA1E99E4DD767E86E186645F3632687F63AFE08765A6F300B4C917403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9925B52B4C5E3835FB43C3245E5F469803FA8DCEBA4B5907B4662540B05612CB0175F1B7DCFA0674207E6F2567B1A954974CE2E51E6E16EC077C93452449DA1E99E4DD767E86E186645F3632687F63AFEF282BF7B84A01E739444C9A1864E1DC04F735411DA9995D67403AE3F0936A98F7D97AB452E8562D995DFEB2350F5E92D20261B67B082A398F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B1078D7671301223C0F117637C800E0ADD917B4E2CDEB94BFC07340E5B5FE126904AAFC781DBA1B4AFA9798DF363AA5C58650AF9F3261AF845AAD9AE725F9207F982D66276E52EB0DC7064FD215C4194C117644D477D1972CBE63A0B7D091190BD3E74CE2E51E6E16EC077C93452449DA1E9C0E46682F93AAF9C318D5E44D1FF9DE6A8E9E2C715684DD32888660736F3DD3E4A24479BA71E22270E76E74D38C9EF7E0C2D7694EC004EADAD285BD4AC1A97F8BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A33D6E2F47310F726BA6FDD94C5D915D36CBC6EF6313DECD8DFEDC9F137D6A2C0F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107F75FB024FC0873990D9752D1265FF8A8BAB67812BED71FA6925B52B4C5E3835F340E5B5FE126904A204643824BEF58E49FC57369D61DE2F8C3AE9CD8525A9C5EF5A3A86AB73343DD71285BF9D8101134FA1424FDEB29D7BAF7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B107B44D42066AEEA4A2157EF6810DF251384AEF28BF5FD760BE8805E1EB823C72DCF134396FE98F9697F3C015D027EDE737BE1AAED1A180E86EC3AE9CD8525A9C5E584DA70CB91B4DBDF0E45E7A482023C0555DEB86661BD2EC99D0515B9F39302563CD09C7D7B378AF
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:46 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -5,7 +5,7 @@ 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":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"
|
8
|
+
string: '{"gateway_username":"simplefinance3","gateway_password":"cgN2N7BLVHPGXaskxM3R","payload":"407e45c162acec7c925b52b4c5e3835f340e5b5fe126904a4191132f235354e75778ca9282fe58b8bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904a378b88d6d43637deb271be03d1a7c0b6bab67812bed71fa6925b52b4c5e3835f340e5b5fe126904a33d6e2f47310f726979b00b19c3110c19444c9a1864e1dc07263f24dc34cd0c774ce2e51e6e16ec077c93452449da1e9c0e46682f93aaf9c318d5e44d1ff9de6a8e9e2c715684dd32888660736f3dd3e7c7e96ce41add92e0aad1805a59531b3a19a3f731e8f9973c45c0e545e2171bdc2fcaa8200b04de18b489481abcbad43069f0fd8db65ad39adc64a6906709b4b0af9f3261af845aad9ae725f9207f982ae1a6a630847dc5aabf1b7d0bb08f621d3486557030daa5e01ce6ce0b67399197c7e96ce41add92e0aad1805a59531b3a19a3f731e8f99732ea2dc11d8385db20f69b5019e26807579ea82ff20851fd70aad1805a59531b3a19a3f731e8f9973bdf6c100c55968fd1b9a4cb93e3187918454a22354003f60a34e1619859f0cfc22ca60f458048cc0ca4ed3bc4182953f"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.1
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:44 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=935716BEB7B1A53247CB47A6F013A6E1; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: 407E45C162ACEC7C925B52B4C5E3835F340E5B5FE126904AF817118978E3CAA17403AE3F0936A98F7D97AB452E8562D974A288DFE7CDB5F21A00B61498FAEE500DEA045662C62A8FC2C66D207C5D378242996D1604019686D4B2E72E236B430674CE2E51E6E16EC077C93452449DA1E90644A1CE87E36326B7ABB28C67EC52BC5F41BABBBEE24F2D37F7CADDD7CC5ACB8CB9863505F67FF1D3B18A597037A991B6103DCF8F4631607C7E96CE41ADD92E0AAD1805A59531B3A19A3F731E8F99736FB4184EA2FF3772F35605C4BF222550E3D3C442D9C6B41460188787955E687E1F170D072BCFD958491D9558ED2567077403AE3F0936A98F7D97AB452E8562D90D85A0E61FC00DB9435F6E7DD07211255ED61D31312F11240AEA9C713F58C11B494D14217B94A027C397D25FD8757CB02867BFD4D5A9C11F81A1E61167BD7EC30AF9F3261AF845AAD9AE725F9207F982310ED0997377DEE219F9563C27474D64569E9C2728D6131D77FF1A02A27B1580E8642FB528A7E2600AF9F3261AF845AAD9AE725F9207F982AE1A6A630847DC5A4701F6A350FD5A1A201C84DA4FC932214A73566A32FC2B8DBE8E72A42B2FDB7574CE2E51E6E16EC077C93452449DA1E9AE8D577874C7531908765A6F300B4C917403AE3F0936A98F7D97AB452E8562D966F56E367152BA3FB43C3245E5F469803FA8DCEBA4B5907BD78E2287937BD0B69424FA681F409A09E61F4061DE53C4817403AE3F0936A98F7D97AB452E8562D966F56E367152BA3F4F78D74278C5411B3F0E761A55E2BF8582A495AE4C6D6BC70AF9F3261AF845AAD9AE725F9207F982AE1A6A630847DC5A83717D4A51C8307C5CB20C35BFFDC50874CE2E51E6E16EC077C93452449DA1E99E4DD767E86E186645F3632687F63AFE38F0AEBAC74B25654CB38C6B61B30C2D49CA333FBE13A1E58CD92638D1E89A5B5E757DA92B1A09370AF9F3261AF845AAD9AE725F9207F982AE1A6A630847DC5A83717D4A51C8307C540948FCBF126E7B2B3AA61687B22A410CB20088637EA2C074CE2E51E6E16EC077C93452449DA1E925FACF86A9EE619A02E72960A8BF92D00115149504C116AC48B52AFED60948E6FA209007487F193A014F3F157B7E0E232906F7EFF3244548D0DE627C607F2633FA41D0D6844852C7D3979D4FF593B1076625F903D11C17830AF9F3261AF845AAD9AE725F9207F982D66276E52EB0DC7064FD215C4194C1177DAA189728728B75C1B9CE2444211D6C7403AE3F0936A98F7D97AB452E8562D92310EB9FAD2F2DCA3C02DDCFC08041E46F37B52ACA40B5D44CC9656D6545D82042C5C80951A4B0690AF9F3261AF845AAD9AE725F9207F98295C7DE473162A5DE4CE101EC02F3411D0DEA045662C62A8F75BAD398EE3AA4CF877287BB6B3785E5EF5E68342F41B47D74CE2E51E6E16EC077C93452449DA1E91F6C9AF4DE33A7A2D027A7746E7B543E0115149504C116AC48B52AFED60948E6FA209007487F193A1D256F06B21D6C992906F7EFF3244548EA52F1481703DFA4122ED3BDE7675A5B7C7E96CE41ADD92E0AAD1805A59531B3A19A3F731E8F9973339F48E6E3515974693DF8BB0EEAC41E0BC7C64E2F4C1D97F7C70C8DA7C7C24DDD62FA145A7137DAD3979D4FF593B1073EBB250ED371594C7D97AB452E8562D9989C80F5D985EC6660802BE64C63100170AB30608D452CB10AF9F3261AF845AAD9AE725F9207F982923E6CF91181614EA7CA7B92F22980918ECCE1EE0FFEE89594372B2AEF4832E9D12806E4C48A6A0A347400E499825963
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:45 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -19,16 +19,16 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 15 May 2015 16:19:46 GMT
|
23
23
|
Server:
|
24
|
-
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.
|
24
|
+
- Apache/2.4.12 (FreeBSD) OpenSSL/1.0.2a
|
25
25
|
Set-Cookie:
|
26
|
-
- JSESSIONID=
|
26
|
+
- JSESSIONID=3D6F601C218E492F4B435D323BF1D3D6; Path=/; Secure
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
body:
|
30
30
|
encoding: UTF-8
|
31
|
-
string:
|
31
|
+
string: E4C564D5FE5D2FCF7207001290A9FAEA93E23E18115F59E036AA8DE781817011CAC8E9A5DF3F1119FA209007487F193A2D670A4E018BAE1011B2A47D7E30CCC40C6A9B87324CD36F6B277161060991F3AE9B1CEA75B7148827F12CEF88C104428659F1B4CD721EEB0873262AF901071112D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5E30B5EA6D974428D66C897D88EB7C2D6F2D65785A3EED0D4DBFA56C97F08B67652B252A13E842D78274A288DFE7CDB5F2EB06970F9E2E94C9E0B08FC8A75D8159E4757A1E097C14F7AD664B7558D4C96A4EC795E96F375E8D8678D9391AC233990644A1CE87E36326B7ABB28C67EC52BC5F41BABBBEE24F2D9CA5F75E8FEF35EA9140A26E3E2630FD04A35EE642B62CBBAC9DC41A082B7E3C7C7E96CE41ADD92ECAC8E9A5DF3F1119FA209007487F193A076A32CDF3470ECEC467F1C1C4EC04A07C7E96CE41ADD92ECAC8E9A5DF3F1119FA209007487F193AD9AE725F9207F9821F170D072BCFD95834423F9C7F6808DE4EC795E96F375E8D8678D9391AC2339900231980981F8F9D412CA003684905B6BFA56C97F08B67652B252A13E842D78266F56E367152BA3FBCBC3AC323F1475A374054C36161BDE702728ACC3DA31378A19A3F731E8F99739AA4109495CBCC3AD36B170E8546967DD62B15E142FF1929CD3A474CC80B92755B0D15271FDFBAC7D2E9F58D84283626D9AE725F9207F9823D0DE3CF402F3AC6ECCEEB7EDB1E9285E5B9AFB00A68476F68B3C003516F880A4C6A3322883C560E340E5B5FE126904AB14F28F57CA6AB329964496E967EBA9B98B99533DA0C64BEAFFF1D1E2F7074C567EAA8DADA797840BFA56C97F08B67652B252A13E842D78266F56E367152BA3FB8C488EA3E257948374054C36161BDE702728ACC3DA31378A19A3F731E8F997371456A478DBBAEF0DF65B5D7B4F646260CA385954B05F93ED3979D4FF593B107F026D380E659484D6C277DC5EFF01C4CB397B3AEE325D748D481FB2B9CA7EC158A78DF617FB94E8812D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5E84C3391E91BAECB2CCB701F9F1F085A182A495AE4C6D6BC70CA385954B05F93ED3979D4FF593B1078D7671301223C0F1DF65B5D7B4F646260CA385954B05F93ED3979D4FF593B1078D7671301223C0F117637C800E0ADD91723EA1775F765C81B26C409CDFE9173A55AC77BBAEC4536166447FEE460FA0DF4EC795E96F375E8D8678D9391AC2339925FACF86A9EE619AC39A0984DDEF6162CCB701F9F1F085A1B0592B460272845012D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5E97C821449EDA12E0CF91759288384D2B4E4F6C5CB84BF4B5159D134ECF1D746402728ACC3DA31378A19A3F731E8F99739AA4109495CBCC3AD36B170E8546967D88707BEB37D9C2A4E50DB44F23C1958612D0A5B2CD7D24177207001290A9FAEAC3AE9CD8525A9C5E4973D8545FFB64B9FFD19ADC4235D77AB6634003F40B9E2C12967DD567B64D2C6E49A9CC1A1156554EC795E96F375E8D8678D9391AC23399F7F4DBE68E74A189737FA87ED7B140B52EA2DC11D8385DB2E4C39C3FA41385307C7E96CE41ADD92ECAC8E9A5DF3F1119FA209007487F193A8F959EBF980A2FBE77C93452449DA1E978801EBC6C927D36530B6402CACD3684A9F0B7EF93F44FF6D607826681D0055808E32E5A30B23538C71AD3BEF50ABF30E52748175AB1CFC4F2AE181409B4A9267DACFD560C0BFBC34CDAB459F62EEA3C68368FD4AA8F30AE2DC5FECFD95F72340BD5D2B2428FBA151A00B61498FAEE50A90C20112B49CCBB3C68A4CB8DCDFD90292E319F67D04E69C449D155947AD252F6C9011E1E10B4B0EA2F41D95076E88C0586BF54E4D650E45890A5D4AAC786DC404EC824CA5B4BB1AA6A93237DA04A270C6A9B87324CD36F6B277161060991F3AE9B1CEA75B714882A3538801CD69E2928AD8373032AA0BCA3FAF884F76E0DCCF4A95936D573E23271285BF9D81011344489E14B6B188EBDDD0ED8D392BF97BC4232939C40FAC726CB5E14A889F5D65D239FF0E561F0FCE0B1F32C29FF0BCD90D2E9F58D84283626D9AE725F9207F98266912FB54E7A3C2A57730C4136A15B0B21A7DB9AD5AFCEE360E6A0474E0D1DB70CA385954B05F93ED3979D4FF593B107B9260C1A6180C36219C5A65DA0001050B132897B2DB2868BE08459F50C6326181D6F71BEDA2FE0E168C6A2AD2C773B940841BA9D982C54AE95635DFCD41CD2F75F8460D60FA7758508912A712CD395AC86AAA2F78F7AD2DDBECA0DB5725F733C1CC0D483EAB1D816B3394F944141FD2A3EA1154C0B285948DB1164B7D34158066DB777BFE4F62FF9EF4CC1D330B855E33D72DA08035F68AFC9C52326868EB7926409660B3F1E535EAFF84F36335ECC0862FE9F6CA4519E3C1D9F0FDEAB6CAA4FBFFF057D51B6651A
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Fri, 15 May 2015 16:19:46 GMT
|
34
34
|
recorded_with: VCR 2.9.3
|
@@ -199,5 +199,16 @@ module BasecommSdk
|
|
199
199
|
# end
|
200
200
|
end
|
201
201
|
|
202
|
+
context '.ping', :vcr do
|
203
|
+
it 'can ping the server' do
|
204
|
+
expect(instance.ping).to eql(true)
|
205
|
+
end
|
206
|
+
|
207
|
+
it 'can not ping the server' do
|
208
|
+
instance.url = 'http://bogusurl.com'
|
209
|
+
expect(instance.ping).to eql(false)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
202
213
|
end
|
203
214
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basecomm_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
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-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dotenv
|
@@ -315,6 +315,8 @@ files:
|
|
315
315
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml
|
316
316
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml
|
317
317
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/returns_the_specified_bank_card_transaction.yml
|
318
|
+
- spec/cassettes/BasecommSdk_Client/_ping/can_not_ping_the_server.yml
|
319
|
+
- spec/cassettes/BasecommSdk_Client/_ping/can_ping_the_server.yml
|
318
320
|
- spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/fails_when_passing_invalid_transaction.yml
|
319
321
|
- spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/populates_messages_with_failure_reasons.yml
|
320
322
|
- spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/returns_the_processed_bank_account_transaction.yml
|
@@ -367,6 +369,8 @@ test_files:
|
|
367
369
|
- spec/cassettes/BasecommSdk_Client/_get_bank_account_transaction/returns_the_specified_bank_account_transaction.yml
|
368
370
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/collects_proper_responses_for_missing_transactions.yml
|
369
371
|
- spec/cassettes/BasecommSdk_Client/_get_bank_card_transaction/returns_the_specified_bank_card_transaction.yml
|
372
|
+
- spec/cassettes/BasecommSdk_Client/_ping/can_not_ping_the_server.yml
|
373
|
+
- spec/cassettes/BasecommSdk_Client/_ping/can_ping_the_server.yml
|
370
374
|
- spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/fails_when_passing_invalid_transaction.yml
|
371
375
|
- spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/populates_messages_with_failure_reasons.yml
|
372
376
|
- spec/cassettes/BasecommSdk_Client/_process_bank_account_transaction/returns_the_processed_bank_account_transaction.yml
|