billimatic-client 0.13.0 → 0.14.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,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60f909a97c2ae050bb780b3725b8d643956adfdb
4
- data.tar.gz: dba5e598bd26d8d08037e2da8794286645a50500
3
+ metadata.gz: d18d91314d19f6438fe32e72d37e276eaa41549e
4
+ data.tar.gz: 5474439a6bb671f99c7b44c6f44b144fbee67ef4
5
5
  SHA512:
6
- metadata.gz: 79746ce11fc916c1e7ef1a22ccab3e6caa3c022170b11fd67069f8a542556bc3949762d2d27eeff5733acc6949bcf02c079a1762b87eb607a3ff88a0f6040297
7
- data.tar.gz: e36f6b227fd20dbe79b1b9f3c6907203788331b2162a7fa7603afdf7589f5f13b11af70c89013c22dc50349907513473b738d80e9f484e098d39e8e503336ce1
6
+ metadata.gz: 4ced147db6819cb0ec734d38f58c1fcf616c63719b14fa1bc59f0b29287cad2c71eab31692bf385fa4837adb37e6ecffe19232dae7d0352a064061fc7b79835f
7
+ data.tar.gz: 6062ad3d98e07099c2d2615225f82f53202d6baa1f4a932a02df201c026a00b4833ef3b8750ebc317350f97a5f3969a9dc2c6a2d776844a5ddcf6a2ea8d7c1a1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- billimatic-client (0.13.0)
4
+ billimatic-client (0.14.0)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8)
7
7
  virtus (~> 1.0.5)
data/README.md CHANGED
@@ -331,10 +331,21 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
331
331
  <code>client.invoices.search(contract_id: id, issue_date_from: 'dd-mm-yyyy', issue_date_to: 'dd-mm-yyyy')</code>
332
332
  </td>
333
333
  </tr>
334
+ <tr>
335
+ <td><code>GET</code></td>
336
+ <td>
337
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_late_get_1" target="_blank">
338
+ /api/v1/contracts/:contract_id/invoices/late
339
+ </a>
340
+ </td>
341
+ <td>
342
+ <code>client.invoices.late(contract_id: id)</code>
343
+ </td>
344
+ </tr>
334
345
  <tr>
335
346
  <td><code>PATCH</code></td>
336
347
  <td>
337
- <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_block_patch_1" target="_blank">
348
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_block_patch_2" target="_blank">
338
349
  /api/v1/contracts/:contract_id/invoices/:id/block
339
350
  </a>
340
351
  </td>
@@ -345,7 +356,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
345
356
  <tr>
346
357
  <td><code>PATCH</code></td>
347
358
  <td>
348
- <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_approve_patch_2" target="_blank">
359
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_approve_patch_3" target="_blank">
349
360
  /api/v1/contracts/:contract_id/invoices/:id/approve
350
361
  </a>
351
362
  </td>
@@ -356,7 +367,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
356
367
  <tr>
357
368
  <td><code>POST</code></td>
358
369
  <td>
359
- <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_create_post_3" target="_blank">
370
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_create_post_4" target="_blank">
360
371
  /api/v1/contracts/:contract_id/invoices
361
372
  </a>
362
373
  </td>
@@ -367,7 +378,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
367
378
  <tr>
368
379
  <td><code>GET</code></td>
369
380
  <td>
370
- <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_show_get_4" target="_blank">
381
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_show_get_5" target="_blank">
371
382
  /api/v1/contracts/:contract_id/invoices/:id
372
383
  </a>
373
384
  </td>
@@ -378,7 +389,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
378
389
  <tr>
379
390
  <td><code>PATCH</code></td>
380
391
  <td>
381
- <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_update_patch_5" target="_blank">
392
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_update_patch_6" target="_blank">
382
393
  /api/v1/contracts/:contract_id/invoices/:id
383
394
  </a>
384
395
  </td>
@@ -389,7 +400,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
389
400
  <tr>
390
401
  <td><code>DELETE</code></td>
391
402
  <td>
392
- <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_destroy_delete_6" target="_blank">
403
+ <a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_destroy_delete_7" target="_blank">
393
404
  /api/v1/contracts/:contract_id/invoices/:id
394
405
  </a>
395
406
  </td>
@@ -461,10 +472,21 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
461
472
  <code>client.companies.create(attributes_hash)</code>
462
473
  </td>
463
474
  </tr>
475
+ <tr>
476
+ <td><code>GET</code></td>
477
+ <td>
478
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_show_get_2" target="_blank">
479
+ /api/v1/companies/:id
480
+ </a>
481
+ </td>
482
+ <td>
483
+ <code>client.companies.show(id)</code>
484
+ </td>
485
+ </tr>
464
486
  <tr>
465
487
  <td><code>PATCH</code></td>
466
488
  <td>
467
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_update_patch_2" target="_blank">
489
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_update_patch_3" target="_blank">
468
490
  /api/v1/companies/:id
469
491
  </a>
470
492
  </td>
@@ -475,7 +497,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
475
497
  <tr>
476
498
  <td><code>DELETE</code></td>
477
499
  <td>
478
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_destroy_delete_3" target="_blank">
500
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_destroy_delete_4" target="_blank">
479
501
  /api/v1/companies/:id
480
502
  </a>
481
503
  </td>
@@ -1,7 +1,7 @@
1
1
  module Billimatic
2
2
  module Resources
3
3
  class Company < Base
4
- crud :create, :destroy
4
+ crud :show, :create, :destroy
5
5
 
6
6
  def initialize(http)
7
7
  @collection_name = 'companies'
@@ -10,6 +10,12 @@ module Billimatic
10
10
  end
11
11
  end
12
12
 
13
+ def late(contract_id:)
14
+ http.get("/contracts/#{contract_id}#{resource_base_path}/late") do |response|
15
+ respond_with_collection response
16
+ end
17
+ end
18
+
13
19
  def show(id, contract_id:)
14
20
  http.get(
15
21
  "/contracts/#{contract_id}#{resource_base_path}/#{id}"
@@ -1,3 +1,3 @@
1
1
  module Billimatic
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0'
3
3
  end
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.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Tassinari de Oliveira
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2017-06-14 00:00:00.000000000 Z
14
+ date: 2017-06-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: typhoeus