billimatic-client 0.5.1 → 0.6.0

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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: dc6b52717b66802906227e03513a315018278017
4
- data.tar.gz: d11d59dc65c2a516964a617de41d3b621c81cc6d
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Yjg0MzEzZjNmMjhlNTJjNDVjNmVjYjQzNDZhMGYzMjI0MDc0MDExNw==
5
+ data.tar.gz: !binary |-
6
+ N2YyNzYxMDViYmI5MTk1MTBkYmIwMjJiZGVmMjRkMTJhODZmYmM3Nw==
5
7
  SHA512:
6
- metadata.gz: d2f48af8741d05ce0025ec94423e311c03cd6c554a138807d0cb7339dbd96ad1c77d814531a60cd6de7cbf1a0d6ddeaa9edbafd2777c9558586e43a64f33c25e
7
- data.tar.gz: 087635c3a6417fab62a724ea539cb466b8c73b4148341d90ea418bf6acd01595b8f3e9044561a33dafcf847caa49f1815733530ac587c8e697e97b112e4dffa7
8
+ metadata.gz: !binary |-
9
+ NGQ2ODgxOGJiNzM2ODY3ZDQ0MzI5OGM1MjJjNDdlNTg3MTNjNTI5MmUzZTRi
10
+ ZjM0ZDg3Zjg4MzI3ZWJjZTVhNWY2ZWMxZTAyOGQ0ZGM0NTdiYzdhNDZiMWQ4
11
+ YzVkMTE0NjA1NmVlZGZiOWExMThjNzlmMjhmZDVhNWFkZTQzNzA=
12
+ data.tar.gz: !binary |-
13
+ ZmQ2YTMwMjA0YTg5Mzg2NDg0YzI3YTI3ODYyYmRkY2ExMTc3M2ZhNWYyYTZl
14
+ ZTdjY2Y4NGQxNzBmNjYxZjRlMDJmN2U0YzZiYTFlZTg3ZGE0NjdlYTg1M2E1
15
+ Y2U2MzZhMzQ5ZjcyNjYxYjBhNWJmN2UyMTlkN2FiYTQ0NGVlM2M=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- billimatic-client (0.5.1)
4
+ billimatic-client (0.6.0)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8)
7
7
  virtus (~> 1.0.5)
data/README.md CHANGED
@@ -47,14 +47,18 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
47
47
 
48
48
  ##### Now you have acess to every API endpoint:
49
49
 
50
- * [Companies API](https://app.billimatic.com.br/docs/api#!/companies) as `client.companies`
50
+ * [Organizations API](https://app.billimatic.com.br/docs/api#!/organizations) as `client.organizations`
51
51
  * [Plans API](https://app.billimatic.com.br/docs/api#!/plans) as `client.plans`
52
52
  * [Subscriptions API](https://app.billimatic.com.br/docs/api#!/subscriptions) as `client.subscriptions`
53
+ * [Contracts API](https://app.billimatic.com.br/docs/api#!/contracts) as `client.contracts`
54
+ * [Invoices API](https://app.billimatic.com.br/docs/api#!/invoices) as `client.invoices`
53
55
  * [Invoice Rules API](https://app.billimatic.com.br/docs/api#!/invoice_rules) as `client.invoice_rules`
56
+ * [Companies API](https://app.billimatic.com.br/docs/api#!/companies) as `client.companies`
57
+ * [Service Items API](https://app.billimatic.com.br/docs/api#!/service_items) as `client.service_items`
54
58
 
55
59
  ## Endpoints
56
60
 
57
- #### [Companies](https://app.billimatic.com.br/docs/api#!/companies)
61
+ #### [Organizations](https://app.billimatic.com.br/docs/api#!/organizations)
58
62
 
59
63
  <table>
60
64
  <tr>
@@ -65,45 +69,45 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
65
69
  <tr>
66
70
  <td><code>GET</code></td>
67
71
  <td>
68
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_search_get_0" target="_blank">
69
- /api/v1/companies/search?cnpj=:cnpj
72
+ <a href="https://app.billimatic.com.br/docs/api#!/organizations/API_V1_Organizations_search_get_0" target="_blank">
73
+ /api/v1/organizations/search?cnpj=:cnpj
70
74
  </a>
71
75
  </td>
72
76
  <td>
73
- <code>client.companies.search(cnpj)</code>
77
+ <code>client.organizations.search(cnpj: cnpj)</code>
74
78
  </td>
75
79
  </tr>
76
80
  <tr>
77
81
  <td><code>POST</code></td>
78
82
  <td>
79
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_create_post_1" target="_blank">
80
- /api/v1/companies
83
+ <a href="https://app.billimatic.com.br/docs/api#!/organizations/API_V1_Organizations_create_post_1" target="_blank">
84
+ /api/v1/organizations
81
85
  </a>
82
86
  </td>
83
87
  <td>
84
- <code>client.companies.create(attributes_hash)</code>
88
+ <code>client.organizations.create(attributes_hash)</code>
85
89
  </td>
86
90
  </tr>
87
91
  <tr>
88
92
  <td><code>PATCH</code></td>
89
93
  <td>
90
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_update_patch_2" target="_blank">
91
- /api/v1/companies/:id
94
+ <a href="https://app.billimatic.com.br/docs/api#!/organizations/API_V1_Organizations_update_patch_2" target="_blank">
95
+ /api/v1/organizations/:id
92
96
  </a>
93
97
  </td>
94
98
  <td>
95
- <code>client.companies.update(id, attributes_hash)</code>
99
+ <code>client.organizations.update(id, attributes_hash)</code>
96
100
  </td>
97
101
  </tr>
98
102
  <tr>
99
103
  <td><code>DELETE</code></td>
100
104
  <td>
101
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_destroy_delete_3" target="_blank">
102
- /api/v1/companies/:id
105
+ <a href="https://app.billimatic.com.br/docs/api#!/organizations/API_V1_Organizations_destroy_delete_3" target="_blank">
106
+ /api/v1/organizations/:id
103
107
  </a>
104
108
  </td>
105
109
  <td>
106
- <code>client.companies.destroy(id)</code>
110
+ <code>client.organizations.destroy(id)</code>
107
111
  </td>
108
112
  </tr>
109
113
  </table>
@@ -205,6 +209,114 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
205
209
  </tr>
206
210
  </table>
207
211
 
212
+ #### [Contracts](https://app.billimatic.com.br/docs/api#!/contracts)
213
+
214
+ <table>
215
+ <tr>
216
+ <th>HTTP method</th>
217
+ <th>Endpoint</th>
218
+ <th>Client method</th>
219
+ </tr>
220
+ <tr>
221
+ <td><code>GET</code></td>
222
+ <td>
223
+ <a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_search_get_0" target="_blank">
224
+ /api/v1/contracts/search?name=:name
225
+ </a>
226
+ </td>
227
+ <td>
228
+ <code>client.contracts.search(name: name)</code>
229
+ </td>
230
+ </tr>
231
+ <tr>
232
+ <td><code>POST</code></td>
233
+ <td>
234
+ <a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_create_post_1" target="_blank">
235
+ /api/v1/contracts
236
+ </a>
237
+ </td>
238
+ <td>
239
+ <code>client.contracts.create(attributes_hash)</code>
240
+ </td>
241
+ </tr>
242
+ <tr>
243
+ <td><code>PATCH</code></td>
244
+ <td>
245
+ <a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_update_patch_2" target="_blank">
246
+ /api/v1/contracts/:id
247
+ </a>
248
+ </td>
249
+ <td>
250
+ <code>client.contracts.update(id, attributes_hash)</code>
251
+ </td>
252
+ </tr>
253
+ <tr>
254
+ <td><code>DELETE</code></td>
255
+ <td>
256
+ <a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_destroy_delete_3" target="_blank">
257
+ /api/v1/contracts/:id
258
+ </a>
259
+ </td>
260
+ <td>
261
+ <code>client.contracts.destroy(id)</code>
262
+ </td>
263
+ </tr>
264
+ </table>
265
+
266
+ #### [Invoices](https://app.billimatic.com.br/docs/api#!/invoices)
267
+
268
+ <table>
269
+ <tr>
270
+ <th>HTTP method</th>
271
+ <th>Endpoint</th>
272
+ <th>Client method</th>
273
+ </tr>
274
+ <tr>
275
+ <td><code>GET</code></td>
276
+ <td>
277
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_search_get_0" target="_blank">
278
+ /api/v1/contracts/:contract_id/invoices/search?issue_date_from=:issue_date_from&issue_date_to=:issue_date_to
279
+ </a>
280
+ </td>
281
+ <td>
282
+ <code>client.invoices.search(contract_id: id, issue_date_from: 'dd-mm-yyyy', issue_date_to: 'dd-mm-yyyy')</code>
283
+ </td>
284
+ </tr>
285
+ <tr>
286
+ <td><code>POST</code></td>
287
+ <td>
288
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_create_post_1" target="_blank">
289
+ /api/v1/contracts/:contract_id/invoices
290
+ </a>
291
+ </td>
292
+ <td>
293
+ <code>client.invoices.create(attributes_hash, contract_id: id)</code>
294
+ </td>
295
+ </tr>
296
+ <tr>
297
+ <td><code>PATCH</code></td>
298
+ <td>
299
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_update_patch_2" target="_blank">
300
+ /api/v1/contracts/:contract_id/invoices/:id
301
+ </a>
302
+ </td>
303
+ <td>
304
+ <code>client.invoices.update(id, attributes_hash, contract_id: id)</code>
305
+ </td>
306
+ </tr>
307
+ <tr>
308
+ <td><code>DELETE</code></td>
309
+ <td>
310
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_destroy_delete_3" target="_blank">
311
+ /api/v1/contracts/:contract_id/invoices/:id
312
+ </a>
313
+ </td>
314
+ <td>
315
+ <code>client.invoices.destroy(id, contract_id: id)</code>
316
+ </td>
317
+ </tr>
318
+ </table>
319
+
208
320
  #### [Invoice Rules](https://app.billimatic.com.br/docs/api#!/invoice_rules)
209
321
 
210
322
  <table>
@@ -237,6 +349,114 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
237
349
  </tr>
238
350
  </table>
239
351
 
352
+ #### [Companies](https://app.billimatic.com.br/docs/api#!/companies)
353
+
354
+ <table>
355
+ <tr>
356
+ <th>HTTP method</th>
357
+ <th>Endpoint</th>
358
+ <th>Client method</th>
359
+ </tr>
360
+ <tr>
361
+ <td><code>GET</code></td>
362
+ <td>
363
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_search_get_0" target="_blank">
364
+ /api/v1/companies/search?cnpj=:cnpj
365
+ </a>
366
+ </td>
367
+ <td>
368
+ <code>client.companies.search(cnpj)</code>
369
+ </td>
370
+ </tr>
371
+ <tr>
372
+ <td><code>POST</code></td>
373
+ <td>
374
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_create_post_1" target="_blank">
375
+ /api/v1/companies
376
+ </a>
377
+ </td>
378
+ <td>
379
+ <code>client.companies.create(attributes_hash)</code>
380
+ </td>
381
+ </tr>
382
+ <tr>
383
+ <td><code>PATCH</code></td>
384
+ <td>
385
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_update_patch_2" target="_blank">
386
+ /api/v1/companies/:id
387
+ </a>
388
+ </td>
389
+ <td>
390
+ <code>client.companies.update(id, attributes_hash)</code>
391
+ </td>
392
+ </tr>
393
+ <tr>
394
+ <td><code>DELETE</code></td>
395
+ <td>
396
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_destroy_delete_3" target="_blank">
397
+ /api/v1/companies/:id
398
+ </a>
399
+ </td>
400
+ <td>
401
+ <code>client.companies.destroy(id)</code>
402
+ </td>
403
+ </tr>
404
+ </table>
405
+
406
+ #### [Service Items](https://app.billimatic.com.br/docs/api#!/service_items)
407
+
408
+ <table>
409
+ <tr>
410
+ <th>HTTP method</th>
411
+ <th>Endpoint</th>
412
+ <th>Client method</th>
413
+ </tr>
414
+ <tr>
415
+ <td><code>GET</code></td>
416
+ <td>
417
+ <a href="https://app.billimatic.com.br/docs/api#!/service_items/API_V1_ServiceItems_search_get_0" target="_blank">
418
+ /api/v1/service_items/search?name=:name
419
+ </a>
420
+ </td>
421
+ <td>
422
+ <code>client.service_items.search(name: name)</code>
423
+ </td>
424
+ </tr>
425
+ <tr>
426
+ <td><code>POST</code></td>
427
+ <td>
428
+ <a href="https://app.billimatic.com.br/docs/api#!/service_items/API_V1_ServiceItems_create_post_1" target="_blank">
429
+ /api/v1/service_items
430
+ </a>
431
+ </td>
432
+ <td>
433
+ <code>client.service_items.create(attributes_hash)</code>
434
+ </td>
435
+ </tr>
436
+ <tr>
437
+ <td><code>PATCH</code></td>
438
+ <td>
439
+ <a href="https://app.billimatic.com.br/docs/api#!/service_items/API_V1_ServiceItems_update_patch_2" target="_blank">
440
+ /api/v1/service_items/:id
441
+ </a>
442
+ </td>
443
+ <td>
444
+ <code>client.service_items.update(id, attributes_hash)</code>
445
+ </td>
446
+ </tr>
447
+ <tr>
448
+ <td><code>DELETE</code></td>
449
+ <td>
450
+ <a href="https://app.billimatic.com.br/docs/api#!/service_items/API_V1_ServiceItems_destroy_delete_3" target="_blank">
451
+ /api/v1/service_items/:id
452
+ </a>
453
+ </td>
454
+ <td>
455
+ <code>client.service_items.destroy(id)</code>
456
+ </td>
457
+ </tr>
458
+ </table>
459
+
240
460
  ## Url helpers
241
461
 
242
462
  Some url helpers are available:
@@ -39,9 +39,16 @@ module Billimatic
39
39
  Resources::Company.new(http)
40
40
  end
41
41
 
42
+ def organizations
43
+ Resources::Organization.new(http)
44
+ end
45
+
46
+ def service_items
47
+ Resources::ServiceItem.new(http)
48
+ end
49
+
42
50
  def webhooks
43
51
  Resources::Webhook.new(http)
44
52
  end
45
-
46
53
  end
47
54
  end
@@ -19,7 +19,6 @@ module Billimatic
19
19
  attribute :comments, String
20
20
  attribute :kind, String
21
21
  attribute :created_at, DateTime
22
- attribute :updated_at, DateTime
23
22
  end
24
23
  end
25
24
  end
@@ -10,7 +10,7 @@ module Billimatic
10
10
  attribute :customer_type, String
11
11
  attribute :supplier_id, Integer
12
12
  attribute :supplier_type, String
13
- attribute :state, Integer
13
+ attribute :state, String
14
14
  attribute :comments, String
15
15
  attribute :init_date, Date
16
16
  attribute :end_date, Date
@@ -2,7 +2,33 @@ module Billimatic
2
2
  module Entities
3
3
  class Invoice < Base
4
4
  attribute :id, Integer
5
- # TODO attributes
5
+ attribute :contract_id, Integer
6
+ attribute :issue_date, Date
7
+ attribute :gross_value, Decimal
8
+ attribute :payment_value, Decimal
9
+ attribute :description, String
10
+ attribute :state, String
11
+ attribute :nfe_service, String
12
+ attribute :nfe_verification, String
13
+ attribute :nfe_issue_date, DateTime
14
+ attribute :nfe_body, String
15
+ attribute :nfe_issued, Boolean
16
+ attribute :number, String
17
+ attribute :created_at, DateTime
18
+ attribute :accrual_date, Date
19
+ attribute :comments, String
20
+ attribute :customer_id, Integer
21
+ attribute :customer_type, String
22
+ attribute :emites_service_values_id, Integer
23
+ attribute :emites_service_value_name, String
24
+ attribute :finance_category, String
25
+ attribute :finance_revenue_center, String
26
+ attribute :finance_receive_via, String
27
+ attribute :cobrato_charge_config_id, Integer
28
+ attribute :cobrato_charge_config_name, String
29
+ attribute :receivables, [Receivable]
30
+ attribute :services, [Service]
31
+ attribute :attachments, [Hash]
6
32
  end
7
33
  end
8
34
  end
@@ -0,0 +1,11 @@
1
+ module Billimatic
2
+ module Entities
3
+ class Organization < Base
4
+ attribute :id, Integer
5
+ attribute :account_id, Integer
6
+ attribute :name, String
7
+ attribute :cnpj, String
8
+ attribute :created_at, DateTime
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,22 @@
1
+ module Billimatic
2
+ module Entities
3
+ class Receivable < Base
4
+ attribute :id, Integer
5
+ attribute :invoice_id, Integer
6
+ attribute :due_date, Date
7
+ attribute :value, Decimal
8
+ attribute :gross_value, Decimal
9
+ attribute :payment_value, Decimal
10
+ attribute :received_value, Decimal
11
+ attribute :received_at, Date
12
+ attribute :created_at, DateTime
13
+ attribute :state, String
14
+ attribute :payment_gateway_status, String
15
+ attribute :cobrato_charge_id, Integer
16
+ attribute :cobrato_errors, String
17
+ attribute :finance_receivable_id, Integer
18
+ attribute :finance_entity_id, Integer
19
+ attribute :finance_errors, String
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,12 @@
1
+ module Billimatic
2
+ module Entities
3
+ class ServiceItem < Base
4
+ attribute :id, Integer
5
+ attribute :account_id, Integer
6
+ attribute :name, String
7
+ attribute :description, String
8
+ attribute :value, Decimal
9
+ attribute :unit, String
10
+ end
11
+ end
12
+ end
@@ -1,10 +1,15 @@
1
1
  module Billimatic
2
2
  module Resources
3
3
  class Contract < Base
4
- crud :all
4
+ crud :create, :update, :destroy
5
5
 
6
- # TODO...
7
- # search
6
+ def search(name:)
7
+ http.get(
8
+ "#{resource_base_path}/search", params: { name: name }
9
+ ) do |response|
10
+ respond_with_collection response
11
+ end
12
+ end
8
13
  end
9
14
  end
10
15
  end
@@ -1,11 +1,22 @@
1
1
  module Billimatic
2
2
  module Resources
3
- class Invoice < Base
4
- crud :all
5
-
6
- # TODO...
7
- # search
3
+ class Invoice < InvoiceRule
4
+ def search(contract_id:, issue_date_from:, issue_date_to:)
5
+ http.get(
6
+ "/contracts/#{contract_id}#{resource_base_path}/search",
7
+ params: { issue_date_from: issue_date_from, issue_date_to: issue_date_to }
8
+ ) do |response|
9
+ respond_with_collection response
10
+ end
11
+ end
8
12
 
13
+ def destroy(id, contract_id:)
14
+ http.delete(
15
+ "/contracts/#{contract_id}#{resource_base_path}/#{id}"
16
+ ) do |response|
17
+ response.code == 204
18
+ end
19
+ end
9
20
  end
10
21
  end
11
22
  end
@@ -4,7 +4,7 @@ module Billimatic
4
4
  def create(params, contract_id:)
5
5
  http.post(
6
6
  "/contracts/#{contract_id}#{resource_base_path}",
7
- body: { invoice_rule: params }
7
+ body: { underscored_klass_name.to_sym => params }
8
8
  ) do |response|
9
9
  respond_with_entity(response)
10
10
  end
@@ -13,7 +13,7 @@ module Billimatic
13
13
  def update(id, params, contract_id:)
14
14
  http.put(
15
15
  "/contracts/#{contract_id}#{resource_base_path}/#{id}",
16
- body: { invoice_rule: params }
16
+ body: { underscored_klass_name.to_sym => params }
17
17
  ) do |response|
18
18
  respond_with_entity(response)
19
19
  end
@@ -0,0 +1,13 @@
1
+ module Billimatic
2
+ module Resources
3
+ class Organization < Base
4
+ crud :create, :update, :destroy
5
+
6
+ def search(cnpj:)
7
+ http.get("#{resource_base_path}/search", params: {cnpj: cnpj}) do |response|
8
+ respond_with_entity(response)
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ module Billimatic
2
+ module Resources
3
+ class ServiceItem < Base
4
+ crud :create, :update, :destroy
5
+
6
+ def search(name:)
7
+ http.get(
8
+ "#{resource_base_path}/search", params: { name: name }
9
+ ) do |response|
10
+ respond_with_entity response
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Billimatic
2
- VERSION = '0.5.1'
2
+ VERSION = '0.6.0'
3
3
  end
data/lib/billimatic.rb CHANGED
@@ -10,14 +10,17 @@ require 'billimatic/signature'
10
10
  require 'billimatic/url_helpers'
11
11
 
12
12
  require 'billimatic/entities/base'
13
+ require 'billimatic/entities/service_item'
13
14
  require 'billimatic/entities/entity_service_item'
14
15
  require 'billimatic/entities/product'
15
16
  require 'billimatic/entities/service'
17
+ require 'billimatic/entities/receivable'
16
18
  require 'billimatic/entities/plan_feature'
17
19
  require 'billimatic/entities/plan'
18
20
  require 'billimatic/entities/address_information'
19
21
  require 'billimatic/entities/customer'
20
22
  require 'billimatic/entities/company'
23
+ require 'billimatic/entities/organization'
21
24
  require 'billimatic/entities/contract'
22
25
  require 'billimatic/entities/invoice'
23
26
  require 'billimatic/entities/invoice_rule'
@@ -26,10 +29,12 @@ require 'billimatic/entities/webhook'
26
29
 
27
30
  require 'billimatic/resources/base'
28
31
  require 'billimatic/resources/company'
32
+ require 'billimatic/resources/organization'
29
33
  require 'billimatic/resources/contract'
30
- require 'billimatic/resources/invoice'
31
34
  require 'billimatic/resources/invoice_rule'
35
+ require 'billimatic/resources/invoice'
32
36
  require 'billimatic/resources/plan'
37
+ require 'billimatic/resources/service_item'
33
38
  require 'billimatic/resources/subscription'
34
39
  require 'billimatic/resources/webhook'
35
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billimatic-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Tassinari de Oliveira
@@ -10,188 +10,188 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-09-06 00:00:00.000000000 Z
13
+ date: 2016-09-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0.8'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0.8'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: multi_json
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ~>
34
34
  - !ruby/object:Gem::Version
35
35
  version: '1.11'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ~>
41
41
  - !ruby/object:Gem::Version
42
42
  version: '1.11'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: virtus
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
49
  version: 1.0.5
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
54
+ - - ~>
55
55
  - !ruby/object:Gem::Version
56
56
  version: 1.0.5
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: wisper
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
63
  version: 1.6.1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - "~>"
68
+ - - ~>
69
69
  - !ruby/object:Gem::Version
70
70
  version: 1.6.1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: bundler
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "~>"
75
+ - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: '1.11'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - "~>"
82
+ - - ~>
83
83
  - !ruby/object:Gem::Version
84
84
  version: '1.11'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: rake
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - "~>"
89
+ - - ~>
90
90
  - !ruby/object:Gem::Version
91
91
  version: '11.1'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - "~>"
96
+ - - ~>
97
97
  - !ruby/object:Gem::Version
98
98
  version: '11.1'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: vcr
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - "~>"
103
+ - - ~>
104
104
  - !ruby/object:Gem::Version
105
105
  version: '3.0'
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - "~>"
110
+ - - ~>
111
111
  - !ruby/object:Gem::Version
112
112
  version: '3.0'
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: pry-byebug
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - "~>"
117
+ - - ~>
118
118
  - !ruby/object:Gem::Version
119
119
  version: '3.3'
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - "~>"
124
+ - - ~>
125
125
  - !ruby/object:Gem::Version
126
126
  version: '3.3'
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: rspec
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - "~>"
131
+ - - ~>
132
132
  - !ruby/object:Gem::Version
133
133
  version: '3.4'
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - "~>"
138
+ - - ~>
139
139
  - !ruby/object:Gem::Version
140
140
  version: '3.4'
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: codeclimate-test-reporter
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - "~>"
145
+ - - ~>
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0.5'
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - "~>"
152
+ - - ~>
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0.5'
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: simplecov
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - "~>"
159
+ - - ~>
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0.11'
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - "~>"
166
+ - - ~>
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0.11'
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: guard-rspec
171
171
  requirement: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - "~>"
173
+ - - ~>
174
174
  - !ruby/object:Gem::Version
175
175
  version: '4.6'
176
176
  type: :development
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
- - - "~>"
180
+ - - ~>
181
181
  - !ruby/object:Gem::Version
182
182
  version: '4.6'
183
183
  - !ruby/object:Gem::Dependency
184
184
  name: test_notifier
185
185
  requirement: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - "~>"
187
+ - - ~>
188
188
  - !ruby/object:Gem::Version
189
189
  version: '2.0'
190
190
  type: :development
191
191
  prerelease: false
192
192
  version_requirements: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - "~>"
194
+ - - ~>
195
195
  - !ruby/object:Gem::Version
196
196
  version: '2.0'
197
197
  description: This is the official Ruby client for the Billimatic API. See http://www.billimatic.com.br
@@ -204,11 +204,11 @@ executables: []
204
204
  extensions: []
205
205
  extra_rdoc_files: []
206
206
  files:
207
- - ".codeclimate.yml"
208
- - ".gitignore"
209
- - ".rspec"
210
- - ".rubocop.yml"
211
- - ".travis.yml"
207
+ - .codeclimate.yml
208
+ - .gitignore
209
+ - .rspec
210
+ - .rubocop.yml
211
+ - .travis.yml
212
212
  - Gemfile
213
213
  - Gemfile.lock
214
214
  - Guardfile
@@ -229,10 +229,13 @@ files:
229
229
  - lib/billimatic/entities/entity_service_item.rb
230
230
  - lib/billimatic/entities/invoice.rb
231
231
  - lib/billimatic/entities/invoice_rule.rb
232
+ - lib/billimatic/entities/organization.rb
232
233
  - lib/billimatic/entities/plan.rb
233
234
  - lib/billimatic/entities/plan_feature.rb
234
235
  - lib/billimatic/entities/product.rb
236
+ - lib/billimatic/entities/receivable.rb
235
237
  - lib/billimatic/entities/service.rb
238
+ - lib/billimatic/entities/service_item.rb
236
239
  - lib/billimatic/entities/subscription.rb
237
240
  - lib/billimatic/entities/webhook.rb
238
241
  - lib/billimatic/exception.rb
@@ -244,7 +247,9 @@ files:
244
247
  - lib/billimatic/resources/hooks.rb
245
248
  - lib/billimatic/resources/invoice.rb
246
249
  - lib/billimatic/resources/invoice_rule.rb
250
+ - lib/billimatic/resources/organization.rb
247
251
  - lib/billimatic/resources/plan.rb
252
+ - lib/billimatic/resources/service_item.rb
248
253
  - lib/billimatic/resources/subscription.rb
249
254
  - lib/billimatic/resources/webhook.rb
250
255
  - lib/billimatic/response.rb
@@ -261,18 +266,19 @@ require_paths:
261
266
  - lib
262
267
  required_ruby_version: !ruby/object:Gem::Requirement
263
268
  requirements:
264
- - - ">="
269
+ - - ! '>='
265
270
  - !ruby/object:Gem::Version
266
271
  version: '0'
267
272
  required_rubygems_version: !ruby/object:Gem::Requirement
268
273
  requirements:
269
- - - ">="
274
+ - - ! '>='
270
275
  - !ruby/object:Gem::Version
271
276
  version: '0'
272
277
  requirements: []
273
278
  rubyforge_project:
274
- rubygems_version: 2.5.1
279
+ rubygems_version: 2.6.4
275
280
  signing_key:
276
281
  specification_version: 4
277
282
  summary: This is the official Ruby client for the Billimatic API.
278
283
  test_files: []
284
+ has_rdoc: