bcash-ruby 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daeb7c603dfd1bc09a02c301f587097934d26e2a
4
- data.tar.gz: 0deb4aecd3f3e57e7e74bcc76b281f79b2fee496
3
+ metadata.gz: d07fef15fdd573b7185f87261e1914b81a094745
4
+ data.tar.gz: 9f23a2de144f9c1a194bbcc98d4a18700fda1900
5
5
  SHA512:
6
- metadata.gz: 37b58eb20d59392081b7dd113c9129f37e5e877c74fc432188826013e3858e37cfb0c3ce2226b57c85e498a52557e84c3a633584da1a4b24b91b0e0afa654dca
7
- data.tar.gz: 90bd55851e8f5eb49f4051f09dad6796f3a7bebce79fa42e8ee8a8b11f07d4d8de16ce15b89e90aea46485f8d8660d96437fb9fe9d856e3f8e636dfd10083879
6
+ metadata.gz: 0dc9084255e20704d8f1b2a01ed4c5cdd57655a56756f9f7c3bf6608d90003533c6684c1649e4c754d10638fb793577a69af8a819c5937c0a79f76d81ac64fea
7
+ data.tar.gz: b6e23257e25acade6c5500a581b516569cca56138d5267be2cbd66fffd4f9835cb8b9716ff0e4529dc3a8ef17466974e13f008e5098f1107ec7ad0f780f945c9
data/README.md CHANGED
@@ -29,7 +29,6 @@ transaction methods.
29
29
  This library aims to support and is [tested against][travis] the following Ruby
30
30
  implementations:
31
31
 
32
- * Ruby 1.8.7
33
32
  * Ruby 1.9.3
34
33
  * Ruby 2.0.0
35
34
  * Ruby 2.1.0
data/lib/bcash.rb CHANGED
@@ -10,5 +10,7 @@ module Bcash
10
10
  end
11
11
  end
12
12
 
13
- autoload :Client, "bcash/client"
13
+ autoload :Api, "bcash/api"
14
+ autoload :Client, "bcash/client"
15
+ autoload :Helpers, "bcash/helpers"
14
16
  end
data/lib/bcash/api.rb ADDED
@@ -0,0 +1,5 @@
1
+ module Bcash::Api
2
+ autoload :Accounts, 'bcash/api/accounts'
3
+ autoload :Response, 'bcash/api/response'
4
+ autoload :AccountResponse, 'bcash/api/account_response'
5
+ end
@@ -0,0 +1,15 @@
1
+ module Bcash::Api
2
+ class AccountResponse < Response
3
+ def accounts
4
+ body['accounts'] || []
5
+ end
6
+
7
+ def cpf
8
+ body['cpf']
9
+ end
10
+
11
+ def email
12
+ body['email']
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ module Bcash::Api
2
+ module Accounts
3
+ def search_account_by_cpf(cpf)
4
+ response = json_request :post, 'searchAccount', { cpf: cpf }
5
+ Bcash::Api::AccountResponse.new(response)
6
+ end
7
+
8
+ def create_account(data)
9
+ json_request :post, 'createAccount'
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,26 @@
1
+ module Bcash::Api
2
+ class Response
3
+ attr_accessor :body, :http_code
4
+
5
+ def initialize(response)
6
+ if response.success?
7
+ parse_body(response)
8
+ else
9
+ raise message
10
+ end
11
+ end
12
+
13
+ def code
14
+ body['code'].to_i
15
+ end
16
+
17
+ def message
18
+ body['message']
19
+ end
20
+
21
+ def parse_body(response)
22
+ @body = CGI::unescape(response.body)
23
+ @body = JSON::parse body
24
+ end
25
+ end
26
+ end
data/lib/bcash/client.rb CHANGED
@@ -1,39 +1,23 @@
1
1
  require 'base64'
2
+ require 'httparty'
2
3
 
3
4
  module Bcash
4
5
  class Client
5
6
  include HTTParty
6
-
7
- attr_reader :token, :key, :email
7
+ include Helpers::Request
8
+ include Api::Accounts
8
9
 
9
10
  base_uri "https://api.bcash.com.br/service"
10
11
  default_timeout 20
11
12
  format :json
12
13
 
14
+ attr_reader :token, :key, :email
15
+
13
16
  def initialize(opts={})
14
- opts.merge! token: Bcash.token, key: Bcash.key, email: Bcash.email
17
+ opts = { token: Bcash.token, key: Bcash.key, email: Bcash.email }.merge(opts)
15
18
  @token = opts[:token]
16
19
  @key = opts[:key]
17
20
  @email = opts[:email]
18
21
  end
19
-
20
- def search_account(cpf)
21
- json_request :get, 'searchAccount', body: { cpf: cpf }
22
- end
23
-
24
- def create_account(data)
25
- json_request :post, 'createAccount'
26
- end
27
-
28
- private
29
-
30
- def json_request(verb, method, options={}, &block)
31
- options[:headers]["Authorization"] = authorization_key
32
- self.class.send(verb, "/#{method}/json", options, block)
33
- end
34
-
35
- def authorization_key
36
- "Basic #{Base64.encode64("#{email}:#{token}")}"
37
- end
38
22
  end
39
23
  end
@@ -0,0 +1,3 @@
1
+ module Bcash::Helpers
2
+ autoload :Request, 'bcash/helpers/request'
3
+ end
@@ -0,0 +1,15 @@
1
+ module Bcash::Helpers::Request
2
+ private
3
+
4
+ def json_request(verb, method, data, options = {})
5
+ options.merge! headers: {
6
+ "Authorization" => authorization_key,
7
+ }, body: { data: data.to_json }
8
+
9
+ self.class.send(verb, "/#{method}/json", options)
10
+ end
11
+
12
+ def authorization_key
13
+ "Basic #{Base64.strict_encode64("#{email}:#{token}")}"
14
+ end
15
+ end
data/lib/bcash/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bcash
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,48 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bcash::Api::Accounts do
4
+ let(:email) { 'contato@minestore.com.br' }
5
+ let(:token) { 'AF3AISDkEF92ABCD820C37FEABCE1' }
6
+ let!(:client){ Bcash::Client.new(email: email, token: token) }
7
+
8
+ describe 'search_account' do
9
+ context 'when match one customer' do
10
+ it 'should be able to retrieve customer info' do
11
+ VCR.use_cassette('search_account_return_one') do
12
+ cpf = '07411111111'
13
+ response = client.search_account_by_cpf(cpf)
14
+ expect(response.code).to eq(1)
15
+ expect(response.message).to eq('Foi encontrado 1 registro para o CPF ou email informado!')
16
+ expect(response.cpf).to eq(cpf)
17
+ expect(response.accounts.size).to eq(1)
18
+ expect(response.accounts.first).to eq({"mail" => 'pessoa@hotmail.com', "token" => 'kx4F3mkZDlGUejQNKWdnP5Ttmk', "idClient" => '205' })
19
+ end
20
+ end
21
+ end
22
+
23
+ context 'when match more than one customer' do
24
+ it 'should be able to retrieve customer info from all customers' do
25
+ VCR.use_cassette('search_account_return_mutiple') do
26
+ cpf = '07822222222'
27
+ response = client.search_account_by_cpf(cpf)
28
+ expect(response.code).to eq(2)
29
+ expect(response.message).to eq('Foram encontrados 2 registros para o CPF ou email informado!')
30
+ expect(response.cpf).to eq(cpf)
31
+ expect(response.accounts.size).to eq(2)
32
+ end
33
+ end
34
+ end
35
+
36
+ context 'when no customer is found' do
37
+ it 'must return not found message' do
38
+ VCR.use_cassette('search_account_return_not_found') do
39
+ response = client.search_account_by_cpf '07800000000'
40
+ expect(response.code).to eq(3)
41
+ expect(response.message).to eq('Nenhum registro foi encontrado para o CPF ou email informado!')
42
+ expect(response.cpf).to eq('07800000000')
43
+ expect(response.accounts).to be_empty
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'coveralls'
2
2
  Coveralls.wear!
3
3
 
4
+ require 'pry'
4
5
  require 'vcr'
5
6
  require 'bcash'
6
7
 
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://contato%40minestore.com.br:AF3AISDkEF92ABCD820C37FEABCE1@api.bcash.com.br/service/searchAccount/json
6
+ body:
7
+ encoding: UTF-8
8
+ string: data=%7B%22cpf%22%3A%2207822222222%22%7D
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Accept-Charset:
16
+ - big5, big5-hkscs, compound_text, euc-jp, euc-kr, gb18030, gb2312, gbk, ibm-thai,
17
+ ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, ibm01145, ibm01146,
18
+ ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, ibm273, ibm277, ibm278,
19
+ ibm280, ibm284, ibm285, ibm297, ibm420, ibm424, ibm437, ibm500, ibm775, ibm850,
20
+ ibm852, ibm855, ibm857, ibm860, ibm861, ibm862, ibm863, ibm864, ibm865, ibm866,
21
+ ibm868, ibm869, ibm870, ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2,
22
+ iso-2022-kr, iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3,
23
+ iso-8859-4, iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201,
24
+ jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, utf-16be,
25
+ utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, windows-1251, windows-1252,
26
+ windows-1253, windows-1254, windows-1255, windows-1256, windows-1257, windows-1258,
27
+ windows-31j, x-big5-hkscs-2001, x-big5-solaris, x-euc-jp-linux, x-euc-tw,
28
+ x-eucjp-open, x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112,
29
+ x-ibm1122, x-ibm1123, x-ibm1124, x-ibm1381, x-ibm1383, x-ibm33722, x-ibm737,
30
+ x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, x-ibm921, x-ibm922, x-ibm930,
31
+ x-ibm933, x-ibm935, x-ibm937, x-ibm939, x-ibm942, x-ibm942c, x-ibm943, x-ibm943c,
32
+ x-ibm948, x-ibm949, x-ibm949c, x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns,
33
+ x-iso-2022-cn-gb, x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic,
34
+ x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek,
35
+ x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai,
36
+ x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp,
37
+ x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, x-utf-32le-bom,
38
+ x-windows-50220, x-windows-50221, x-windows-874, x-windows-949, x-windows-950,
39
+ x-windows-iso2022jp
40
+ Access-Control-Allow-Origin:
41
+ - "*"
42
+ Content-Type:
43
+ - text/plain;charset=UTF-8
44
+ Date:
45
+ - Mon, 08 Sep 2014 17:01:20 GMT
46
+ Server:
47
+ - Apache-Coyote/1.1
48
+ Set-Cookie:
49
+ - JSESSIONID=bYnKx3PzF94G6X3aaho4FJZ4.undefined; Path=/
50
+ Content-Length:
51
+ - '330'
52
+ Connection:
53
+ - keep-alive
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"code":"2","message":"Foram+encontrados+2+registros+para+o+CPF+ou+email+informado%21","cpf":"07822222222","email":"","accounts":[{"mail":"pessoa%40hotmail.com","token":"EGpmQNPpWX69UMM","idClient":"222"},{"mail":"contato%40empresa.com","token":"ENW6i7I6iOdEhLire","idClient":"635"}]}'
57
+ http_version:
58
+ recorded_at: Mon, 08 Sep 2014 17:03:35 GMT
59
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://contato%40minestore.com.br:AF3AISDkEF92ABCD820C37FEABCE1@api.bcash.com.br/service/searchAccount/json
6
+ body:
7
+ encoding: UTF-8
8
+ string: data=%7B%22cpf%22%3A%2207800000000%22%7D
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Accept-Charset:
16
+ - big5, big5-hkscs, compound_text, euc-jp, euc-kr, gb18030, gb2312, gbk, ibm-thai,
17
+ ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, ibm01145, ibm01146,
18
+ ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, ibm273, ibm277, ibm278,
19
+ ibm280, ibm284, ibm285, ibm297, ibm420, ibm424, ibm437, ibm500, ibm775, ibm850,
20
+ ibm852, ibm855, ibm857, ibm860, ibm861, ibm862, ibm863, ibm864, ibm865, ibm866,
21
+ ibm868, ibm869, ibm870, ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2,
22
+ iso-2022-kr, iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3,
23
+ iso-8859-4, iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201,
24
+ jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, utf-16be,
25
+ utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, windows-1251, windows-1252,
26
+ windows-1253, windows-1254, windows-1255, windows-1256, windows-1257, windows-1258,
27
+ windows-31j, x-big5-hkscs-2001, x-big5-solaris, x-euc-jp-linux, x-euc-tw,
28
+ x-eucjp-open, x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112,
29
+ x-ibm1122, x-ibm1123, x-ibm1124, x-ibm1381, x-ibm1383, x-ibm33722, x-ibm737,
30
+ x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, x-ibm921, x-ibm922, x-ibm930,
31
+ x-ibm933, x-ibm935, x-ibm937, x-ibm939, x-ibm942, x-ibm942c, x-ibm943, x-ibm943c,
32
+ x-ibm948, x-ibm949, x-ibm949c, x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns,
33
+ x-iso-2022-cn-gb, x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic,
34
+ x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek,
35
+ x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai,
36
+ x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp,
37
+ x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, x-utf-32le-bom,
38
+ x-windows-50220, x-windows-50221, x-windows-874, x-windows-949, x-windows-950,
39
+ x-windows-iso2022jp
40
+ Access-Control-Allow-Origin:
41
+ - "*"
42
+ Content-Type:
43
+ - text/plain;charset=UTF-8
44
+ Date:
45
+ - Mon, 08 Sep 2014 17:48:28 GMT
46
+ Server:
47
+ - Apache-Coyote/1.1
48
+ Set-Cookie:
49
+ - JSESSIONID=A5vVr5Lb9gs1vnMCOzPV1DHB.undefined; Path=/
50
+ Content-Length:
51
+ - '195'
52
+ Connection:
53
+ - keep-alive
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"code":"3","message":"Nenhum+registro+foi+encontrado+para+o+CPF+ou+email+informado%21","cpf":"07800000000","email":"","linkContract":"https%3A%2F%2Fwww.bcash.com.br%2Fcheckout%2Fpay%2Fcontrato"}'
57
+ http_version:
58
+ recorded_at: Mon, 08 Sep 2014 17:48:29 GMT
59
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://contato%40minestore.com.br:AF3AISDkEF92ABCD820C37FEABCE1@api.bcash.com.br/service/searchAccount/json
6
+ body:
7
+ encoding: UTF-8
8
+ string: data=%7B%22cpf%22%3A%2207411111111%22%7D
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Accept-Charset:
16
+ - big5, big5-hkscs, compound_text, euc-jp, euc-kr, gb18030, gb2312, gbk, ibm-thai,
17
+ ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, ibm01145, ibm01146,
18
+ ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, ibm273, ibm277, ibm278,
19
+ ibm280, ibm284, ibm285, ibm297, ibm420, ibm424, ibm437, ibm500, ibm775, ibm850,
20
+ ibm852, ibm855, ibm857, ibm860, ibm861, ibm862, ibm863, ibm864, ibm865, ibm866,
21
+ ibm868, ibm869, ibm870, ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2,
22
+ iso-2022-kr, iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3,
23
+ iso-8859-4, iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201,
24
+ jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, utf-16be,
25
+ utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, windows-1251, windows-1252,
26
+ windows-1253, windows-1254, windows-1255, windows-1256, windows-1257, windows-1258,
27
+ windows-31j, x-big5-hkscs-2001, x-big5-solaris, x-euc-jp-linux, x-euc-tw,
28
+ x-eucjp-open, x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112,
29
+ x-ibm1122, x-ibm1123, x-ibm1124, x-ibm1381, x-ibm1383, x-ibm33722, x-ibm737,
30
+ x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, x-ibm921, x-ibm922, x-ibm930,
31
+ x-ibm933, x-ibm935, x-ibm937, x-ibm939, x-ibm942, x-ibm942c, x-ibm943, x-ibm943c,
32
+ x-ibm948, x-ibm949, x-ibm949c, x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns,
33
+ x-iso-2022-cn-gb, x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic,
34
+ x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek,
35
+ x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai,
36
+ x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp,
37
+ x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, x-utf-32le-bom,
38
+ x-windows-50220, x-windows-50221, x-windows-874, x-windows-949, x-windows-950,
39
+ x-windows-iso2022jp
40
+ Access-Control-Allow-Origin:
41
+ - "*"
42
+ Content-Type:
43
+ - text/plain;charset=UTF-8
44
+ Date:
45
+ - Mon, 08 Sep 2014 17:16:51 GMT
46
+ Server:
47
+ - Apache-Coyote/1.1
48
+ Set-Cookie:
49
+ - JSESSIONID=OEkcwwY7F7qZQj5z-DdWtCg4.undefined; Path=/
50
+ Content-Length:
51
+ - '232'
52
+ Connection:
53
+ - keep-alive
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"code":"1","message":"Foi+encontrado+1+registro+para+o+CPF+ou+email+informado%21","cpf":"07411111111","email":"","accounts":[{"mail":"pessoa%40hotmail.com","token":"kx4F3mkZDlGUejQNKWdnP5Ttmk","idClient":"205"}]}'
57
+ http_version:
58
+ recorded_at: Mon, 08 Sep 2014 17:16:51 GMT
59
+ recorded_with: VCR 2.9.2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcash-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Costa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -169,10 +169,20 @@ files:
169
169
  - Rakefile
170
170
  - bcash-ruby.gemspec
171
171
  - lib/bcash.rb
172
+ - lib/bcash/api.rb
173
+ - lib/bcash/api/account_response.rb
174
+ - lib/bcash/api/accounts.rb
175
+ - lib/bcash/api/response.rb
172
176
  - lib/bcash/client.rb
177
+ - lib/bcash/helpers.rb
178
+ - lib/bcash/helpers/request.rb
173
179
  - lib/bcash/version.rb
180
+ - spec/cases/api_account_spec.rb
174
181
  - spec/cases/bcash_spec.rb
175
182
  - spec/spec_helper.rb
183
+ - spec/vcr_cassettes/search_account_return_mutiple.yml
184
+ - spec/vcr_cassettes/search_account_return_not_found.yml
185
+ - spec/vcr_cassettes/search_account_return_one.yml
176
186
  homepage: http://minestore.com.br
177
187
  licenses:
178
188
  - GNU V2
@@ -198,5 +208,9 @@ signing_key:
198
208
  specification_version: 4
199
209
  summary: Wrapper gem to handle BCash and account creation
200
210
  test_files:
211
+ - spec/cases/api_account_spec.rb
201
212
  - spec/cases/bcash_spec.rb
202
213
  - spec/spec_helper.rb
214
+ - spec/vcr_cassettes/search_account_return_mutiple.yml
215
+ - spec/vcr_cassettes/search_account_return_not_found.yml
216
+ - spec/vcr_cassettes/search_account_return_one.yml