bs2_api 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.example +3 -0
- data/.gitignore +4 -0
- data/Gemfile +6 -1
- data/Gemfile.lock +49 -7
- data/Makefile +2 -0
- data/README.md +126 -17
- data/bin/setup +1 -3
- data/bs2_api.gemspec +6 -1
- data/lib/bs2_api.rb +61 -3
- data/lib/bs2_api/configuration.rb +15 -0
- data/lib/bs2_api/entities/account.rb +59 -0
- data/lib/bs2_api/entities/bank.rb +40 -0
- data/lib/bs2_api/entities/customer.rb +51 -0
- data/lib/bs2_api/entities/payment.rb +38 -0
- data/lib/bs2_api/entities/pix_key.rb +40 -0
- data/lib/bs2_api/errors/bad_request.rb +7 -0
- data/lib/bs2_api/errors/base.rb +7 -0
- data/lib/bs2_api/errors/invalid_customer.rb +7 -0
- data/lib/bs2_api/errors/invalid_pix_key.rb +7 -0
- data/lib/bs2_api/errors/missing_configuration.rb +7 -0
- data/lib/bs2_api/errors/server_error.rb +7 -0
- data/lib/bs2_api/errors/unauthorized.rb +7 -0
- data/lib/bs2_api/initializers/hash.rb +9 -0
- data/lib/bs2_api/initializers/object.rb +11 -0
- data/lib/bs2_api/payment/base.rb +45 -0
- data/lib/bs2_api/payment/key.rb +22 -0
- data/lib/bs2_api/payment/manual.rb +22 -0
- data/lib/bs2_api/request/auth.rb +51 -0
- data/lib/bs2_api/util/bank_service.rb +20 -0
- data/lib/bs2_api/util/banks.yml +393 -0
- data/lib/bs2_api/version.rb +1 -1
- metadata +95 -4
data/lib/bs2_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bs2_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kim Pastro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -24,20 +24,88 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: webmock
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.13'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.13'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: vcr
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '6.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '6.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.7'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 2.7.6
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2.7'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 2.7.6
|
27
75
|
- !ruby/object:Gem::Dependency
|
28
76
|
name: http
|
29
77
|
requirement: !ruby/object:Gem::Requirement
|
30
78
|
requirements:
|
31
79
|
- - "~>"
|
32
80
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
81
|
+
version: '4.4'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '4.4'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: activesupport
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '6.1'
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 6.1.3.2
|
34
99
|
type: :runtime
|
35
100
|
prerelease: false
|
36
101
|
version_requirements: !ruby/object:Gem::Requirement
|
37
102
|
requirements:
|
38
103
|
- - "~>"
|
39
104
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
105
|
+
version: '6.1'
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 6.1.3.2
|
41
109
|
description: Criar pagamentos PIX
|
42
110
|
email:
|
43
111
|
- kimpastro@gmail.com
|
@@ -45,6 +113,7 @@ executables: []
|
|
45
113
|
extensions: []
|
46
114
|
extra_rdoc_files: []
|
47
115
|
files:
|
116
|
+
- ".env.example"
|
48
117
|
- ".gitignore"
|
49
118
|
- ".rspec"
|
50
119
|
- ".ruby-version"
|
@@ -52,12 +121,34 @@ files:
|
|
52
121
|
- Gemfile
|
53
122
|
- Gemfile.lock
|
54
123
|
- LICENSE
|
124
|
+
- Makefile
|
55
125
|
- README.md
|
56
126
|
- Rakefile
|
57
127
|
- bin/console
|
58
128
|
- bin/setup
|
59
129
|
- bs2_api.gemspec
|
60
130
|
- lib/bs2_api.rb
|
131
|
+
- lib/bs2_api/configuration.rb
|
132
|
+
- lib/bs2_api/entities/account.rb
|
133
|
+
- lib/bs2_api/entities/bank.rb
|
134
|
+
- lib/bs2_api/entities/customer.rb
|
135
|
+
- lib/bs2_api/entities/payment.rb
|
136
|
+
- lib/bs2_api/entities/pix_key.rb
|
137
|
+
- lib/bs2_api/errors/bad_request.rb
|
138
|
+
- lib/bs2_api/errors/base.rb
|
139
|
+
- lib/bs2_api/errors/invalid_customer.rb
|
140
|
+
- lib/bs2_api/errors/invalid_pix_key.rb
|
141
|
+
- lib/bs2_api/errors/missing_configuration.rb
|
142
|
+
- lib/bs2_api/errors/server_error.rb
|
143
|
+
- lib/bs2_api/errors/unauthorized.rb
|
144
|
+
- lib/bs2_api/initializers/hash.rb
|
145
|
+
- lib/bs2_api/initializers/object.rb
|
146
|
+
- lib/bs2_api/payment/base.rb
|
147
|
+
- lib/bs2_api/payment/key.rb
|
148
|
+
- lib/bs2_api/payment/manual.rb
|
149
|
+
- lib/bs2_api/request/auth.rb
|
150
|
+
- lib/bs2_api/util/bank_service.rb
|
151
|
+
- lib/bs2_api/util/banks.yml
|
61
152
|
- lib/bs2_api/version.rb
|
62
153
|
homepage: https://github.com/kimpastro/bs2_api
|
63
154
|
licenses: []
|