synapse_pay 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 434d6c13fdb20cb30332a1dfba43912f546de0dc
4
- data.tar.gz: 39df6223ca36d454c520f4a989a9c7f8fda989b4
3
+ metadata.gz: 58d826e28867b5183c158da1c49e8c9f3c5cde5a
4
+ data.tar.gz: 425eccf2346dc38e3c146644ea508a30e1e57393
5
5
  SHA512:
6
- metadata.gz: 15d2be0212dd1864126d7457df66922466d1aacd8c05d12f218eb275fa5f75fce625d8caaf5eac74f00cb2607e6c901de55700e515c03b1eff585cb5dbead73f
7
- data.tar.gz: a930e24b65efeb275a9ef168e58ce6ea2f4983879aec0e77d1101139f5552bc576554b17e08ce6a06c7e943b4ee4ff5fc22979d76516d012c751ec2047066d56
6
+ metadata.gz: 84e58c1ae20810ff996ea2c97f97b365a1c102dd514a01e9a3a163d0460488664dd79b16985c33bcc84f17af6fa0924f17be0f963dfae2695940ef1ec4895c66
7
+ data.tar.gz: 110c7222916a4a8cb5b0e33ba016f8e3a3694ee31bf56e5aab97c9aaba9e3fb44e46f87216062ac292955beb937c9c9d4c2164fadb494f2e9a3b46265082607d
data/README.md CHANGED
@@ -15,7 +15,7 @@ If you want to build & install the gem from source:
15
15
 
16
16
  ```bash
17
17
  gem build synapse_pay.gemspec
18
- gem install synapse_pay-0.0.7.gem
18
+ gem install synapse_pay-0.0.8.gem
19
19
  ```
20
20
 
21
21
  ## Documentation
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -9,7 +9,13 @@ module SynapsePay
9
9
  }, params)
10
10
  method = APIMethod.new(:post, "/bank/mfa", params, headers, self)
11
11
  json = @client.execute(method)
12
- APIList.new(:Bank, json[:banks], method, @client)
12
+ if(json[:is_mfa] && json[:response][:type] == "questions")
13
+ BankMfaQuestions.new(json[:response], method, @client)
14
+ elsif(json[:is_mfa] && json[:response][:type] == "device")
15
+ BankMfaDevice.new(json[:response], method, @client)
16
+ else
17
+ APIList.new(:Bank, json[:banks], method, @client)
18
+ end
13
19
  end
14
20
 
15
21
  end
@@ -9,7 +9,13 @@ module SynapsePay
9
9
  }, params)
10
10
  method = APIMethod.new(:post, "/bank/mfa", params, headers, self)
11
11
  json = @client.execute(method)
12
- APIList.new(:Bank, json[:banks], method, @client)
12
+ if(json[:is_mfa] && json[:response][:type] == "questions")
13
+ BankMfaQuestions.new(json[:response], method, @client)
14
+ elsif(json[:is_mfa] && json[:response][:type] == "device")
15
+ BankMfaDevice.new(json[:response], method, @client)
16
+ else
17
+ APIList.new(:Bank, json[:banks], method, @client)
18
+ end
13
19
  end
14
20
 
15
21
  end
@@ -16,7 +16,13 @@ module SynapsePay
16
16
  }, params)
17
17
  method = APIMethod.new(:post, "/bank/mfa", params, headers, self)
18
18
  json = @client.execute(method)
19
- APIList.new(:Bank, json[:banks], method, @client)
19
+ if(json[:is_mfa] && json[:response][:type] == "questions")
20
+ BankMfaQuestions.new(json[:response], method, @client)
21
+ elsif(json[:is_mfa] && json[:response][:type] == "device")
22
+ BankMfaDevice.new(json[:response], method, @client)
23
+ else
24
+ APIList.new(:Bank, json[:banks], method, @client)
25
+ end
20
26
  end
21
27
 
22
28
  # Everything below here is used behind the scenes.
@@ -14,7 +14,13 @@ module SynapsePay
14
14
  }, params)
15
15
  method = APIMethod.new(:post, "/bank/mfa", params, headers, self)
16
16
  json = @client.execute(method)
17
- APIList.new(:Bank, json[:banks], method, @client)
17
+ if(json[:is_mfa] && json[:response][:type] == "questions")
18
+ BankMfaQuestions.new(json[:response], method, @client)
19
+ elsif(json[:is_mfa] && json[:response][:type] == "device")
20
+ BankMfaDevice.new(json[:response], method, @client)
21
+ else
22
+ APIList.new(:Bank, json[:banks], method, @client)
23
+ end
18
24
  end
19
25
 
20
26
  # Everything below here is used behind the scenes.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apibits.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  requirements: []
207
207
  rubyforge_project:
208
- rubygems_version: 2.4.5
208
+ rubygems_version: 2.2.2
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Ruby bindings for SynapsePay API