cobrato-client 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +1 -1
- data/README.md +7 -0
- data/lib/cobrato.rb +2 -0
- data/lib/cobrato/entities/payment_method.rb +9 -0
- data/lib/cobrato/resources/base.rb +0 -1
- data/lib/cobrato/resources/payment_method.rb +8 -0
- data/lib/cobrato/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29fdf154aa5a24f615d2d98b85c853a08afab6fd
|
4
|
+
data.tar.gz: aa5fb8ef28e17ae49bc7cdb6984a66cfed71aad7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae8049afe0378e15f758a5e95a22701899e0a144537ac84e16fd9a6dbd671abdbd807301e50fe7b5eb316f6b22a1355186814a83ec891e4d224f0aacd5e4fc9
|
7
|
+
data.tar.gz: b26647b4c8588d533784549b8e67bd11bd4d78f623858547f16a1ef3b8c304a06becc727c40c0c83cf52b9778387e11173c7f4b0b5fb6bbfa0b8e7938a9b1c80
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -219,6 +219,13 @@ Now you have acess to every API endpoint:
|
|
219
219
|
| POST | [api/v1/payments/:id/reschedule](http://docs.cobrato.com/#reagendar-pagamento) | client.payments.reschedule |
|
220
220
|
|
221
221
|
|
222
|
+
#### [PaymentMethod](http://docs.cobrato.com/#m-todo-de-pagamento)
|
223
|
+
|
224
|
+
| HTTP method | Endpoint | Client method |
|
225
|
+
| ----------- | --------------------------------------------------------------------------------------------------- | ------------------------------ |
|
226
|
+
| GET | [api/v1/payment_methods](http://docs.cobrato.com/#lista-de-todos-os-m-todos-de-pagamento) | client.payment_methods.list |
|
227
|
+
|
228
|
+
|
222
229
|
## Payload signature check
|
223
230
|
|
224
231
|
You can check the [Cobrato signature](http://docs.cobrato.com/#assinatura-do-payload) on the payload request:
|
data/lib/cobrato.rb
CHANGED
@@ -16,6 +16,7 @@ require "cobrato/entities/person"
|
|
16
16
|
require "cobrato/entities/bank_account"
|
17
17
|
require "cobrato/entities/charge_config"
|
18
18
|
require "cobrato/entities/payment_config"
|
19
|
+
require "cobrato/entities/payment_method"
|
19
20
|
require "cobrato/entities/payment"
|
20
21
|
require "cobrato/entities/charge"
|
21
22
|
require "cobrato/entities/webhook"
|
@@ -33,6 +34,7 @@ require "cobrato/resources/bank_account"
|
|
33
34
|
require "cobrato/resources/charge_config"
|
34
35
|
require "cobrato/resources/payment_config"
|
35
36
|
require "cobrato/resources/payment"
|
37
|
+
require "cobrato/resources/payment_method"
|
36
38
|
require "cobrato/resources/charge"
|
37
39
|
require "cobrato/resources/webhook"
|
38
40
|
require "cobrato/resources/charging_type"
|
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.4
|
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-11-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- lib/cobrato/entities/payer.rb
|
207
207
|
- lib/cobrato/entities/payment.rb
|
208
208
|
- lib/cobrato/entities/payment_config.rb
|
209
|
+
- lib/cobrato/entities/payment_method.rb
|
209
210
|
- lib/cobrato/entities/person.rb
|
210
211
|
- lib/cobrato/entities/regress_cnab.rb
|
211
212
|
- lib/cobrato/entities/remittance_cnab.rb
|
@@ -225,6 +226,7 @@ files:
|
|
225
226
|
- lib/cobrato/resources/payer.rb
|
226
227
|
- lib/cobrato/resources/payment.rb
|
227
228
|
- lib/cobrato/resources/payment_config.rb
|
229
|
+
- lib/cobrato/resources/payment_method.rb
|
228
230
|
- lib/cobrato/resources/person.rb
|
229
231
|
- lib/cobrato/resources/regress_cnab.rb
|
230
232
|
- lib/cobrato/resources/remittance_cnab.rb
|