cobrato-client 1.1.2 → 1.1.3

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: e3d4b7c4b5c0de8d2294cb16427e618d5b9194a7
4
- data.tar.gz: 9dae9aadb5c9a70c5c4df7937108690ca0916f52
3
+ metadata.gz: 55adddfbda7379f5065a8bf12734d5db070e68ed
4
+ data.tar.gz: 9924f5fa5c943dc2f8f7d472831426701d31fa4d
5
5
  SHA512:
6
- metadata.gz: 45834565c6cd91b5fd9ac8ba70c98d6483c8d45918fff8167993ed04d9e694468b3eb7119443167a44324fab950508055bb852ba85621de454b4836869fd0083
7
- data.tar.gz: bee4c65e6d695200b72be20cf85a646dbbc75d163b53f5b4430c3b190dbd157c8c3e46044e8ea9fcce9662428c0089c4098fa455f78bdc851750eb7b2be1f458
6
+ metadata.gz: 91cdc555d6aa9ea997e126aa1578739cb40042443b49e61ab1335f207ab1d0677b620677de90fe15c91c3983e3386b05992850a4f9ff7f1c2c65efa6f5c01213
7
+ data.tar.gz: 04d6edea291057eb4a37a3e3f06b093cc3c8d7c2338cd20c4cf2236fe660deef8ce3037d845761a3449dce672936ba6ea3420b32392ef7443af5001241b47dea
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ - Add support for register error
6
+
5
7
  ## v1.1.2
6
8
 
7
9
  - Add `timezone` to charge config
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (1.1.2)
4
+ cobrato-client (1.1.3)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8.0)
7
7
  virtus (~> 1.0.5)
@@ -84,4 +84,4 @@ DEPENDENCIES
84
84
  vcr (~> 2.9)
85
85
 
86
86
  BUNDLED WITH
87
- 1.16.2
87
+ 1.16.6
data/README.md CHANGED
@@ -205,13 +205,18 @@ Now you have acess to every API endpoint:
205
205
 
206
206
  #### [Payment](http://docs.cobrato.com/#pagamento) **(BETA)**
207
207
 
208
- | HTTP method | Endpoint | Client method |
209
- | ----------- | ------------------------------------------------------------------------ | ----------------------- |
210
- | POST | [api/v1/payments](http://docs.cobrato.com/#cria-o-de-pagamento) | client.payments.create |
211
- | GET | [api/v1/payments](http://docs.cobrato.com/#lista-de-todos-os-pagamentos) | client.payments.list |
212
- | GET | [api/v1/payments/:id](http://docs.cobrato.com/#informa-es-do-pagamento) | client.payments.show |
213
- | PUT | [api/v1/payments/:id](http://docs.cobrato.com/#atualiza-o-de-pagamento) | client.payments.update |
214
- | DELETE | [api/v1/payments/:id](http://docs.cobrato.com/#exclus-o-de-pagamento) | client.payments.destroy |
208
+ | HTTP method | Endpoint | Client method |
209
+ | ----------- | --------------------------------------------------------------------------------------------------- | ------------------------------ |
210
+ | POST | [api/v1/payments](http://docs.cobrato.com/#cria-o-de-pagamento) | client.payments.create |
211
+ | GET | [api/v1/payments](http://docs.cobrato.com/#lista-de-todos-os-pagamentos) | client.payments.list |
212
+ | GET | [api/v1/payments/:id](http://docs.cobrato.com/#informa-es-do-pagamento) | client.payments.show |
213
+ | PUT | [api/v1/payments/:id](http://docs.cobrato.com/#atualiza-o-de-pagamento) | client.payments.update |
214
+ | DELETE | [api/v1/payments/:id](http://docs.cobrato.com/#exclus-o-de-pagamento) | client.payments.destroy |
215
+ | POST | [api/v1/payments/:id/cancel](http://docs.cobrato.com/#cancelamento-de-pagamento) | client.payments.cancel |
216
+ | GET | [api/v1/payments/schema](http://docs.cobrato.com/#schema-de-pagamento) | client.payments.schema |
217
+ | POST | [api/v1/payments/:id/unauthorize](http://docs.cobrato.com/#marcar-pagamento-como-n-o-autorizado) | client.payments.unauthorize |
218
+ | POST | [api/v1/payments/:id/register_error](http://docs.cobrato.com/#marcar-pagamento-como-n-o-autorizado) | client.payments.register_error |
219
+ | POST | [api/v1/payments/:id/reschedule](http://docs.cobrato.com/#reagendar-pagamento) | client.payments.reschedule |
215
220
 
216
221
 
217
222
  ## Payload signature check
@@ -21,6 +21,12 @@ module Cobrato
21
21
  end
22
22
  end
23
23
 
24
+ def reschedule(id, params)
25
+ http.post("#{resource_base_path}/#{id}/reschedule", params: params) do |response|
26
+ respond_with_entity response
27
+ end
28
+ end
29
+
24
30
  def register_error(id)
25
31
  http.post("#{resource_base_path}/#{id}/register_error") do |response|
26
32
  respond_with_entity response
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
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: 1.1.2
4
+ version: 1.1.3
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: 2018-08-30 00:00:00.000000000 Z
13
+ date: 2018-10-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  version: '0'
253
253
  requirements: []
254
254
  rubyforge_project:
255
- rubygems_version: 2.5.2.1
255
+ rubygems_version: 2.6.14.1
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: This is the official Ruby client for the Cobrato API.