cobrato-client 1.1.2 → 1.1.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 +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile.lock +2 -2
- data/README.md +12 -7
- data/lib/cobrato/resources/payment.rb +6 -0
- data/lib/cobrato/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55adddfbda7379f5065a8bf12734d5db070e68ed
|
|
4
|
+
data.tar.gz: 9924f5fa5c943dc2f8f7d472831426701d31fa4d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91cdc555d6aa9ea997e126aa1578739cb40042443b49e61ab1335f207ab1d0677b620677de90fe15c91c3983e3386b05992850a4f9ff7f1c2c65efa6f5c01213
|
|
7
|
+
data.tar.gz: 04d6edea291057eb4a37a3e3f06b093cc3c8d7c2338cd20c4cf2236fe660deef8ce3037d845761a3449dce672936ba6ea3420b32392ef7443af5001241b47dea
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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
|
|
209
|
-
| ----------- |
|
|
210
|
-
| POST | [api/v1/payments](http://docs.cobrato.com/#cria-o-de-pagamento)
|
|
211
|
-
| GET | [api/v1/payments](http://docs.cobrato.com/#lista-de-todos-os-pagamentos)
|
|
212
|
-
| GET | [api/v1/payments/:id](http://docs.cobrato.com/#informa-es-do-pagamento)
|
|
213
|
-
| PUT | [api/v1/payments/:id](http://docs.cobrato.com/#atualiza-o-de-pagamento)
|
|
214
|
-
| DELETE | [api/v1/payments/:id](http://docs.cobrato.com/#exclus-o-de-pagamento)
|
|
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
|
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: 1.1.
|
|
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-
|
|
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.
|
|
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.
|