cobrato-client 0.22.0 → 0.23.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +4 -4
- data/README.md +10 -0
- data/lib/cobrato.rb +2 -0
- data/lib/cobrato/client.rb +4 -0
- data/lib/cobrato/entities/payment_config.rb +9 -0
- data/lib/cobrato/resources/payment_config.rb +7 -0
- data/lib/cobrato/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7216fb3d6fe900e969637ea6aa7916fa7e8753c
|
4
|
+
data.tar.gz: e623af51e75b8aa84b4894ec0bcc387ed49c8d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d295d4b3db65f98cac28c9c6ffbf4547da9dbcbcede9cca1e4bbb88f7e9ce88fe7c846ea17dca223259e3abbf09476fa7d35a083cec4376ebb3c31465c2b64e9
|
7
|
+
data.tar.gz: 63822c73847f449de0097d3ac6586fbbb23ee46561cdcb9ac6a8c6f99897865db1beb72be011f465b90f9b672a73908feb2332a3dde0d162e1fe7af86fd5a995
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cobrato-client (0.
|
4
|
+
cobrato-client (0.23.0.beta1)
|
5
5
|
multi_json (~> 1.11.2)
|
6
6
|
typhoeus (~> 0.8.0)
|
7
7
|
virtus (~> 1.0.5)
|
@@ -27,7 +27,7 @@ GEM
|
|
27
27
|
equalizer (0.0.11)
|
28
28
|
ethon (0.10.1)
|
29
29
|
ffi (>= 1.3.0)
|
30
|
-
ffi (1.9.
|
30
|
+
ffi (1.9.18)
|
31
31
|
ice_nine (0.11.2)
|
32
32
|
json (2.0.2)
|
33
33
|
method_source (0.8.2)
|
@@ -59,7 +59,7 @@ GEM
|
|
59
59
|
simplecov-html (~> 0.10.0)
|
60
60
|
simplecov-html (0.10.0)
|
61
61
|
slop (3.6.0)
|
62
|
-
thread_safe (0.3.
|
62
|
+
thread_safe (0.3.6)
|
63
63
|
typhoeus (0.8.0)
|
64
64
|
ethon (>= 0.8.0)
|
65
65
|
vcr (2.9.3)
|
@@ -84,4 +84,4 @@ DEPENDENCIES
|
|
84
84
|
vcr (~> 2.9)
|
85
85
|
|
86
86
|
BUNDLED WITH
|
87
|
-
1.
|
87
|
+
1.15.4
|
data/README.md
CHANGED
@@ -174,6 +174,16 @@ Now you have acess to every API endpoint:
|
|
174
174
|
| PUT | [api/v1/charge_templates/:id](http://docs.cobrato.com/#atualiza-o-de-modelo-de-cobran-a) | client.charge_templates.update |
|
175
175
|
| DELETE | [api/v1/charge_templates/:id](http://docs.cobrato.com/#exclus-o-de-modelo-de-cobran-a) | client.charge_templates.destroy |
|
176
176
|
|
177
|
+
#### [Payment Config](http://docs.cobrato.com/#configura-o-de-pagamento) **(BETA)**
|
178
|
+
|
179
|
+
| HTTP method | Endpoint | Client method |
|
180
|
+
| ----------- | ---------------------------------------------------------------------------------------------- | ------------------------------ |
|
181
|
+
| POST | [api/v1/payment_configs](http://docs.cobrato.com/#cria-o-de-configura-o-de-pagamento) | client.payment_configs.create |
|
182
|
+
| GET | [api/v1/payment_configs](http://docs.cobrato.com/#lista-de-todas-as-configura-es-de-pagamento) | client.payment_configs.list |
|
183
|
+
| GET | [api/v1/payment_configs/:id](http://docs.cobrato.com/#informa-es-da-configura-o-de-pagamento) | client.payment_configs.show |
|
184
|
+
| PUT | [api/v1/payment_configs/:id](http://docs.cobrato.com/#atualiza-o-de-configura-o-de-pagamento) | client.payment_configs.update |
|
185
|
+
| DELETE | [api/v1/payment_configs/:id](http://docs.cobrato.com/#exclus-o-de-configura-o-de-pagamento) | client.payment_configs.destroy |
|
186
|
+
|
177
187
|
|
178
188
|
## Payload signature check
|
179
189
|
|
data/lib/cobrato.rb
CHANGED
@@ -13,6 +13,7 @@ require "cobrato/entities/payee"
|
|
13
13
|
require "cobrato/entities/payer"
|
14
14
|
require "cobrato/entities/bank_account"
|
15
15
|
require "cobrato/entities/charge_config"
|
16
|
+
require "cobrato/entities/payment_config"
|
16
17
|
require "cobrato/entities/charge"
|
17
18
|
require "cobrato/entities/webhook"
|
18
19
|
require "cobrato/entities/bank_billet"
|
@@ -26,6 +27,7 @@ require "cobrato/resources/payee"
|
|
26
27
|
require "cobrato/resources/payer"
|
27
28
|
require "cobrato/resources/bank_account"
|
28
29
|
require "cobrato/resources/charge_config"
|
30
|
+
require "cobrato/resources/payment_config"
|
29
31
|
require "cobrato/resources/charge"
|
30
32
|
require "cobrato/resources/webhook"
|
31
33
|
require "cobrato/resources/charging_type"
|
data/lib/cobrato/client.rb
CHANGED
data/lib/cobrato/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cobrato-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcio Ricardo Santos
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -203,6 +203,7 @@ files:
|
|
203
203
|
- lib/cobrato/entities/credit_card.rb
|
204
204
|
- lib/cobrato/entities/payee.rb
|
205
205
|
- lib/cobrato/entities/payer.rb
|
206
|
+
- lib/cobrato/entities/payment_config.rb
|
206
207
|
- lib/cobrato/entities/regress_cnab.rb
|
207
208
|
- lib/cobrato/entities/remittance_cnab.rb
|
208
209
|
- lib/cobrato/entities/webhook.rb
|
@@ -219,6 +220,7 @@ files:
|
|
219
220
|
- lib/cobrato/resources/hooks.rb
|
220
221
|
- lib/cobrato/resources/payee.rb
|
221
222
|
- lib/cobrato/resources/payer.rb
|
223
|
+
- lib/cobrato/resources/payment_config.rb
|
222
224
|
- lib/cobrato/resources/regress_cnab.rb
|
223
225
|
- lib/cobrato/resources/remittance_cnab.rb
|
224
226
|
- lib/cobrato/resources/webhook.rb
|
@@ -240,12 +242,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
240
242
|
version: '0'
|
241
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
244
|
requirements:
|
243
|
-
- - "
|
245
|
+
- - ">"
|
244
246
|
- !ruby/object:Gem::Version
|
245
|
-
version:
|
247
|
+
version: 1.3.1
|
246
248
|
requirements: []
|
247
249
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.
|
250
|
+
rubygems_version: 2.6.13
|
249
251
|
signing_key:
|
250
252
|
specification_version: 4
|
251
253
|
summary: This is the official Ruby client for the Cobrato API.
|