cobrato-client 1.0.0 → 1.0.1

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: 2263cdf726f38ce7e5f73b601dc1530a7c0eecdc
4
- data.tar.gz: 011c09bc5708cc65f7878c538a8641b2f6d60630
3
+ metadata.gz: 195f6657f4a3ea8de6225b0399f5ec341a422aff
4
+ data.tar.gz: 46fb1e12a60ebcd6bfab15929c46e8dc84fea410
5
5
  SHA512:
6
- metadata.gz: c92a7cec02eb57bd0034561235cebaff92bddefdfcba1720e9cdd72f0cdac024bb052deb7c3b3a76873dad3fc30050604b9a02b3d3307d96429b80a4006a049e
7
- data.tar.gz: 15cf76c72af63d9ee719ef0060fc02f29f5f051619345316bbd5c9e4677de36682631cd3c8b4186d5e422edcaa60cd89644018a14ce07cedfeb717e8d1d1ee04
6
+ metadata.gz: de0c392bb0bb88567192950020c44142b46392ee18a30b9a7ce6d849d1763099773d004075fdbb039382f60fd441860369d53b51e4ea96ab1cc0907ab5cf0c22
7
+ data.tar.gz: e0ad2ec52cb86a94eab4a6c92756645aaf7ad3ff3e5cddf3bdc90794d646c325462ffb7d648295920094edc3a6d2253f2b19f196c63d4513e18be0f77fb0870f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v1.1.0
6
+
7
+ - Add `charge_configs#deactivate` endpoint
8
+ - Add compatibilty to README.md
9
+
5
10
  ## v1.0.0
6
11
 
7
12
  - Remove `payee_name`, `payee_document` and `payee_document_type` from transfer and billet payments
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (1.0.0)
4
+ cobrato-client (1.0.1)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8.0)
7
7
  virtus (~> 1.0.5)
data/README.md CHANGED
@@ -8,6 +8,10 @@ This is the official Ruby client for the [Cobrato](https://app.cobrato.com) API.
8
8
  [![Code Climate Grade](https://codeclimate.com/github/myfreecomm/cobrato-client-ruby/badges/gpa.svg)](https://codeclimate.com/github/myfreecomm/cobrato-client-ruby)
9
9
  [![Inline docs](http://inch-ci.org/github/myfreecomm/cobrato-client-ruby.svg?branch=master)](http://inch-ci.org/github/myfreecomm/cobrato-client-ruby)
10
10
 
11
+ ## Compatibility
12
+
13
+ The Cobrato Ruby Client is compatible with Ruby 2.4.3 or higher.
14
+
11
15
  ## Installation
12
16
 
13
17
  Add this line to your application's Gemfile:
@@ -106,13 +110,15 @@ Now you have acess to every API endpoint:
106
110
 
107
111
  #### [Charge Configs](http://docs.cobrato.com/#configura-o-de-cobran-a)
108
112
 
109
- | HTTP method | Endpoint | Client method |
110
- | ----------- | -------------------------------------------------------------------------------------------- | ------------------------------ |
111
- | POST | [api/v1/charge_configs](http://docs.cobrato.com/#cria-o-de-configura-o-de-cobran-a) | client.charge_configs.create |
112
- | GET | [api/v1/charge_configs](http://docs.cobrato.com/#lista-de-todas-as-configura-es-de-cobran-a) | client.charge_configs.list |
113
- | GET | [api/v1/charge_configs/:id](http://docs.cobrato.com/#informa-es-de-configura-o-de-cobran-a) | client.charge_configs.show |
114
- | PUT | [api/v1/charge_configs/:id](http://docs.cobrato.com/#atualiza-o-de-configura-o-de-cobran-a) | client.charge_configs.update |
115
- | DELETE | [api/v1/charge_configs/:id](http://docs.cobrato.com/#exclus-o-de-configura-o-de-cobran-a) | client.charge_configs.destroy |
113
+ | HTTP method | Endpoint | Client method |
114
+ | ----------- | ------------------------------------------------------------------------------------------------------ | -------------------------------- |
115
+ | POST | [api/v1/charge_configs](http://docs.cobrato.com/#cria-o-de-configura-o-de-cobran-a) | client.charge_configs.create |
116
+ | GET | [api/v1/charge_configs](http://docs.cobrato.com/#lista-de-todas-as-configura-es-de-cobran-a) | client.charge_configs.list |
117
+ | GET | [api/v1/charge_configs/:id](http://docs.cobrato.com/#informa-es-de-configura-o-de-cobran-a) | client.charge_configs.show |
118
+ | PUT | [api/v1/charge_configs/:id](http://docs.cobrato.com/#atualiza-o-de-configura-o-de-cobran-a) | client.charge_configs.update |
119
+ | DELETE | [api/v1/charge_configs/:id](http://docs.cobrato.com/#exclus-o-de-configura-o-de-cobran-a) | client.charge_configs.destroy |
120
+ | POST | [api/v1/charge_configs/:id/deactivate](http://docs.cobrato.com/#desativa-o-de-configura-o-de-cobran-a) | client.charge_configs.deactivate |
121
+
116
122
 
117
123
  #### [Charges](http://docs.cobrato.com/#cobran-a)
118
124
 
@@ -7,6 +7,7 @@ module Cobrato
7
7
  attribute :status, String
8
8
  attribute :payee_id, String
9
9
  attribute :available_charge_types, Array
10
+ attribute :deactivated_at, DateTime
10
11
 
11
12
  # billet specifics
12
13
  attribute :bank_account_id, Integer
@@ -2,6 +2,12 @@ module Cobrato
2
2
  module Resources
3
3
  class ChargeConfig < Base
4
4
  crud :all
5
+
6
+ def deactivate(id)
7
+ http.post("#{resource_base_path}/#{id}/deactivate") do |response|
8
+ respond_with_entity response
9
+ end
10
+ end
5
11
  end
6
12
  end
7
13
  end
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
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.0.0
4
+ version: 1.0.1
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-06-15 00:00:00.000000000 Z
13
+ date: 2018-06-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus