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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c764f59013400347463940294b85b524dc7bab49
4
- data.tar.gz: 7853c75196cd9011ee5d003c02bda02df7ce16a6
3
+ metadata.gz: e7216fb3d6fe900e969637ea6aa7916fa7e8753c
4
+ data.tar.gz: e623af51e75b8aa84b4894ec0bcc387ed49c8d40
5
5
  SHA512:
6
- metadata.gz: 114b26dead0e6ec828730e3412f5eb1d45ca32eb99566fda8c66450c903d0288bbeb476908842088458d2006484a2b80da0c3a981295bc65b1cba23fce1081a5
7
- data.tar.gz: 787ff00fba5fe29bdbecb630e12fd8657273e8836ea5acda6d3549d625bdba6792d18430a25f73878952d53294d0149bf54fed8723356900ade32e0f72280836
6
+ metadata.gz: d295d4b3db65f98cac28c9c6ffbf4547da9dbcbcede9cca1e4bbb88f7e9ce88fe7c846ea17dca223259e3abbf09476fa7d35a083cec4376ebb3c31465c2b64e9
7
+ data.tar.gz: 63822c73847f449de0097d3ac6586fbbb23ee46561cdcb9ac6a8c6f99897865db1beb72be011f465b90f9b672a73908feb2332a3dde0d162e1fe7af86fd5a995
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v0.23.0.beta1
6
+
7
+ - Add PaymentConfig API suppport
8
+
5
9
  ## v0.22.0
6
10
 
7
11
  - Treat error at billet endpoint
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.22.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.14)
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.5)
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.13.7
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"
@@ -27,6 +27,10 @@ module Cobrato
27
27
  Resources::ChargeConfig.new(http)
28
28
  end
29
29
 
30
+ def payment_configs
31
+ Resources::PaymentConfig.new(http)
32
+ end
33
+
30
34
  def charges
31
35
  Resources::Charge.new(http)
32
36
  end
@@ -0,0 +1,9 @@
1
+ module Cobrato
2
+ module Entities
3
+ class PaymentConfig < Base
4
+ attribute :id, Integer
5
+ attribute :name, String
6
+ attribute :bank_account_id, Integer
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ module Cobrato
2
+ module Resources
3
+ class PaymentConfig < Base
4
+ crud :all
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.22.0'
2
+ VERSION = '0.23.0.beta1'
3
3
  end
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.22.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-03-27 00:00:00.000000000 Z
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: '0'
247
+ version: 1.3.1
246
248
  requirements: []
247
249
  rubyforge_project:
248
- rubygems_version: 2.5.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.