cobrato-client 0.4.1 → 0.4.2
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/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/payer.rb +17 -0
- data/lib/cobrato/resources/payer.rb +7 -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: ef626611fea4ae1542372e69ff59db2e15ce7082
|
4
|
+
data.tar.gz: fe12d0f9d2414e4785a548647c0ab050cff282cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e978dd83ae5a2addcae90c3cf68c20a8065c578f4d10bd65c0807b8880056c2aaa5298383971cd653b44e5b2d14b4df74daec7be8114358e5c59cd4f2f7e44
|
7
|
+
data.tar.gz: 6d0daa8bfa6c4e923fa3dbfd0ef2a33323faad5494a873b5c3ca7c4df7a59ec42ccab22725eb46c0fe610386dec1d9ffce0028db910aea5d893071d2b65f9949
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cobrato-client (0.4.
|
4
|
+
cobrato-client (0.4.2)
|
5
5
|
multi_json (~> 1.11.1)
|
6
6
|
typhoeus (~> 0.7.2)
|
7
7
|
virtus (~> 1.0.5)
|
@@ -27,13 +27,13 @@ GEM
|
|
27
27
|
diff-lcs (1.2.5)
|
28
28
|
docile (1.1.5)
|
29
29
|
equalizer (0.0.11)
|
30
|
-
ethon (0.
|
30
|
+
ethon (0.9.0)
|
31
31
|
ffi (>= 1.3.0)
|
32
32
|
ffi (1.9.10)
|
33
|
-
ice_nine (0.11.
|
33
|
+
ice_nine (0.11.2)
|
34
34
|
json (1.8.3)
|
35
35
|
method_source (0.8.2)
|
36
|
-
multi_json (1.11.
|
36
|
+
multi_json (1.11.3)
|
37
37
|
pry (0.10.3)
|
38
38
|
coderay (~> 1.1.0)
|
39
39
|
method_source (~> 0.8.1)
|
data/README.md
CHANGED
@@ -49,6 +49,7 @@ end
|
|
49
49
|
|
50
50
|
* [Payees API](http://docs.cobrato.com/#beneficiário)
|
51
51
|
* [Bank Accounts API](http://docs.cobrato.com/#conta-bancária)
|
52
|
+
* [Payers API](http://docs.cobrato.com/#pagador)
|
52
53
|
* [Charge Configs API](http://docs.cobrato.com/#configuração-de-cobrança)
|
53
54
|
* [Charges API](http://docs.cobrato.com/#cobrança)
|
54
55
|
* [Regress Cnab](http://docs.cobrato.com/#cnab-de-retorno)
|
@@ -78,6 +79,15 @@ end
|
|
78
79
|
| DELETE | [api/v1/bank_accounts/:id](http://docs.cobrato.com/#exclusão-de-conta-bancária) | client.bank_accounts.destroy |
|
79
80
|
| GET | [api/v1/bank_accounts/portfolio_codes](http://docs.cobrato.com/#carteiras-disponíveis) | client.bank_accounts.portfolio_codes |
|
80
81
|
|
82
|
+
#### [Payers](http://docs.cobrato.com/#pagador)
|
83
|
+
|
84
|
+
| HTTP method | Endpoint | Client method |
|
85
|
+
| ----------- | --------------------------------------------------------------------- | --------------------- |
|
86
|
+
| POST | [api/v1/payers](http://docs.cobrato.com/#cria-o-de-pagador) | client.payers.create |
|
87
|
+
| GET | [api/v1/payers](http://docs.cobrato.com/#lista-de-todos-os-pagadores) | client.payers.list |
|
88
|
+
| GET | [api/v1/payers/:id](http://docs.cobrato.com/#informa-es-do-pagador) | client.payers.show |
|
89
|
+
| PUT | [api/v1/payers/:id](http://docs.cobrato.com/#atualiza-o-de-pagador) | client.payers.update |
|
90
|
+
|
81
91
|
#### [Charge Configs](http://docs.cobrato.com/#configuração-de-cobrança)
|
82
92
|
|
83
93
|
| HTTP method | Endpoint | Client method |
|
data/lib/cobrato.rb
CHANGED
@@ -10,6 +10,7 @@ require "cobrato/signature"
|
|
10
10
|
|
11
11
|
require "cobrato/entities/base"
|
12
12
|
require "cobrato/entities/payee"
|
13
|
+
require "cobrato/entities/payer"
|
13
14
|
require "cobrato/entities/bank_account"
|
14
15
|
require "cobrato/entities/charge_config"
|
15
16
|
require "cobrato/entities/charge"
|
@@ -21,6 +22,7 @@ require "cobrato/entities/credit_card"
|
|
21
22
|
|
22
23
|
require "cobrato/resources/base"
|
23
24
|
require "cobrato/resources/payee"
|
25
|
+
require "cobrato/resources/payer"
|
24
26
|
require "cobrato/resources/bank_account"
|
25
27
|
require "cobrato/resources/charge_config"
|
26
28
|
require "cobrato/resources/charge"
|
data/lib/cobrato/client.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
module Cobrato
|
2
|
+
module Entities
|
3
|
+
class Payer < Base
|
4
|
+
attribute :id, Integer
|
5
|
+
attribute :national_identifier_type, String
|
6
|
+
attribute :national_identifier, String
|
7
|
+
attribute :name, String
|
8
|
+
attribute :zipcode, String
|
9
|
+
attribute :city, String
|
10
|
+
attribute :state, String
|
11
|
+
attribute :neighbourhood, String
|
12
|
+
attribute :number, String
|
13
|
+
attribute :complement, String
|
14
|
+
attribute :street, String
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
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.
|
4
|
+
version: 0.4.2
|
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: 2016-06-
|
13
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- lib/cobrato/entities/charge_config.rb
|
200
200
|
- lib/cobrato/entities/credit_card.rb
|
201
201
|
- lib/cobrato/entities/payee.rb
|
202
|
+
- lib/cobrato/entities/payer.rb
|
202
203
|
- lib/cobrato/entities/regress_cnab.rb
|
203
204
|
- lib/cobrato/entities/remittance_cnab.rb
|
204
205
|
- lib/cobrato/entities/webhook.rb
|
@@ -213,6 +214,7 @@ files:
|
|
213
214
|
- lib/cobrato/resources/credit_card.rb
|
214
215
|
- lib/cobrato/resources/hooks.rb
|
215
216
|
- lib/cobrato/resources/payee.rb
|
217
|
+
- lib/cobrato/resources/payer.rb
|
216
218
|
- lib/cobrato/resources/regress_cnab.rb
|
217
219
|
- lib/cobrato/resources/remittance_cnab.rb
|
218
220
|
- lib/cobrato/resources/webhook.rb
|