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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +30 -8
- data/lib/billimatic/resources/company.rb +1 -1
- data/lib/billimatic/resources/invoice.rb +6 -0
- data/lib/billimatic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d18d91314d19f6438fe32e72d37e276eaa41549e
|
|
4
|
+
data.tar.gz: 5474439a6bb671f99c7b44c6f44b144fbee67ef4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ced147db6819cb0ec734d38f58c1fcf616c63719b14fa1bc59f0b29287cad2c71eab31692bf385fa4837adb37e6ecffe19232dae7d0352a064061fc7b79835f
|
|
7
|
+
data.tar.gz: 6062ad3d98e07099c2d2615225f82f53202d6baa1f4a932a02df201c026a00b4833ef3b8750ebc317350f97a5f3969a9dc2c6a2d776844a5ddcf6a2ea8d7c1a1
|
data/Gemfile.lock
CHANGED
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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>
|
|
@@ -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}"
|
data/lib/billimatic/version.rb
CHANGED
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.
|
|
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
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: typhoeus
|