billimatic-client 0.18.1 → 0.19.0

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: bbb76aef7b4a418bd9ee84bdf5d976aae8a978a8
4
- data.tar.gz: 11f1f178421db041797923e77422331285356acf
3
+ metadata.gz: 1ded6965b8ef309ab84255b882107a6968792f10
4
+ data.tar.gz: 54216a37c467e0f9e318e3b1686dee14a61a80df
5
5
  SHA512:
6
- metadata.gz: 3457425a999457b1883016b159f842e784c538d50753b0fe140cfb482019ed563510bf98b789fae36cfae7851328200faf8fb4be0e58a05c1dd1907f7a4c2a05
7
- data.tar.gz: b488f62711b2a6afc1ee5f978bc37c821f500d17901694df87ed85a828786587c2382b08f1463b358e91bb79f27dbe085807ca384d060f34b46f6251a77b49c5
6
+ metadata.gz: 69c63b420f826df5f262ca69389ab8db420d262fdfd0efea3bfafbb08992b847c158c28c5dd08b1796f929791dca69e4a15c607e0310e8523bfa1d2c07d726cc
7
+ data.tar.gz: ef5a72ac05d4105da70f481754d7dfe043e55904bfa960de2f302cd6694b5ee0be0ceddd8d80791a44279f9a86f4cf67b84c0c3d374c3b032e6d48ece6c5b0da
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v0.19.0
6
+ - Adds Company#list endpoint.
7
+ - Adds Person#list endpoint.
8
+ - Adds `notification_ruler_id` attribute on Invoice entity.
9
+ - Adds `notification_ruler_id` attribute on InvoiceRule entity.
10
+ - Adds `billet_notification_ruler_id` and `payment_gateway_notification_ruler_id` attributes on Plan entity.
11
+
12
+ ## v0.18.2
13
+ - Adds `notify_customer` attribute on InvoiceRule entity.
14
+
5
15
  ## v0.18.1
6
16
  - Adds `company_name`, `address`, `number`, `complement`, `zipcode`, `district`, `city` and `state` attributes on Organization entity.
7
17
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- billimatic-client (0.18.1)
4
+ billimatic-client (0.19.0)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8)
7
7
  virtus (~> 1.0.5)
data/README.md CHANGED
@@ -494,10 +494,21 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
494
494
  <code>client.companies.search(cnpj)</code>
495
495
  </td>
496
496
  </tr>
497
+ <tr>
498
+ <td><code>GET</code></td>
499
+ <td>
500
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_index_get_1" target="_blank">
501
+ /api/v1/companies
502
+ </a>
503
+ </td>
504
+ <td>
505
+ <code>client.companies.list</code>
506
+ </td>
507
+ </tr>
497
508
  <tr>
498
509
  <td><code>POST</code></td>
499
510
  <td>
500
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_create_post_1" target="_blank">
511
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_create_post_2" target="_blank">
501
512
  /api/v1/companies
502
513
  </a>
503
514
  </td>
@@ -508,7 +519,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
508
519
  <tr>
509
520
  <td><code>GET</code></td>
510
521
  <td>
511
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_show_get_2" target="_blank">
522
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_show_get_3" target="_blank">
512
523
  /api/v1/companies/:id
513
524
  </a>
514
525
  </td>
@@ -519,7 +530,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
519
530
  <tr>
520
531
  <td><code>PATCH</code></td>
521
532
  <td>
522
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_update_patch_3" target="_blank">
533
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_update_patch_4" target="_blank">
523
534
  /api/v1/companies/:id
524
535
  </a>
525
536
  </td>
@@ -530,7 +541,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
530
541
  <tr>
531
542
  <td><code>DELETE</code></td>
532
543
  <td>
533
- <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_destroy_delete_4" target="_blank">
544
+ <a href="https://app.billimatic.com.br/docs/api#!/companies/API_V1_Companies_destroy_delete_5" target="_blank">
534
545
  /api/v1/companies/:id
535
546
  </a>
536
547
  </td>
@@ -551,29 +562,29 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
551
562
  <tr>
552
563
  <td><code>GET</code></td>
553
564
  <td>
554
- <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_show_get_2" target="_blank">
555
- /api/v1/people/:id
565
+ <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_search_get_0" target="_blank">
566
+ /api/v1/people/search?cpf=:cpf
556
567
  </a>
557
568
  </td>
558
569
  <td>
559
- <code>client.people.show(id)</code>
570
+ <code>client.people.search(cpf: cpf)</code>
560
571
  </td>
561
572
  </tr>
562
573
  <tr>
563
574
  <td><code>GET</code></td>
564
575
  <td>
565
- <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_search_get_0" target="_blank">
566
- /api/v1/people/search?cpf=:cpf
576
+ <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_index_get_1" target="_blank">
577
+ /api/v1/people
567
578
  </a>
568
579
  </td>
569
580
  <td>
570
- <code>client.people.search(cpf: cpf)</code>
581
+ <code>client.people.list</code>
571
582
  </td>
572
583
  </tr>
573
584
  <tr>
574
585
  <td><code>POST</code></td>
575
586
  <td>
576
- <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_create_post_1" target="_blank">
587
+ <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_create_post_2" target="_blank">
577
588
  /api/v1/people
578
589
  </a>
579
590
  </td>
@@ -581,10 +592,21 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
581
592
  <code>client.people.create(attributes_hash)</code>
582
593
  </td>
583
594
  </tr>
595
+ <tr>
596
+ <td><code>GET</code></td>
597
+ <td>
598
+ <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_show_get_3" target="_blank">
599
+ /api/v1/people/:id
600
+ </a>
601
+ </td>
602
+ <td>
603
+ <code>client.people.show(id)</code>
604
+ </td>
605
+ </tr>
584
606
  <tr>
585
607
  <td><code>PUT</code></td>
586
608
  <td>
587
- <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_update_patch_2" target="_blank">
609
+ <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_update_patch_4" target="_blank">
588
610
  /api/v1/people/:id
589
611
  </a>
590
612
  </td>
@@ -595,7 +617,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
595
617
  <tr>
596
618
  <td><code>DELETE</code></td>
597
619
  <td>
598
- <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_destroy_delete_3" target="_blank">
620
+ <a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_destroy_delete_5" target="_blank">
599
621
  /api/v1/people/:id
600
622
  </a>
601
623
  </td>
@@ -36,6 +36,7 @@ module Billimatic
36
36
  attribute :days_until_automatic_nfe_emission, Integer
37
37
  attribute :automatic_nfe_issue_date, Date
38
38
  attribute :automatic_email_template_id, Integer
39
+ attribute :notification_ruler_id, Integer
39
40
  attribute :receivables, [Receivable]
40
41
  attribute :services, [Service]
41
42
  attribute :payment_information, PaymentInformation
@@ -23,6 +23,8 @@ module Billimatic
23
23
  attribute :days_until_automatic_nfe_emission, Integer
24
24
  attribute :automatic_nfe_issue_date, Date
25
25
  attribute :automatic_email_template_id, Integer
26
+ attribute :notification_ruler_id, Integer
27
+ attribute :notify_customer, Boolean
26
28
  attribute :services, Array[Service]
27
29
  attribute :additional_information, Hash
28
30
  attribute :scheduled_updates, Array[Hash]
@@ -17,6 +17,8 @@ module Billimatic
17
17
  attribute :readjustment_month_quantity, Integer
18
18
  attribute :price_index, String
19
19
  attribute :readjustment_days_until_update, Integer
20
+ attribute :billet_notification_ruler_id, Integer
21
+ attribute :payment_gateway_notification_ruler_id, Integer
20
22
  attribute :emites_service_values_id, Integer
21
23
  attribute :emites_service_value_name, String
22
24
  attribute :cobrato_billet_charge_config_id, Integer
@@ -1,7 +1,7 @@
1
1
  module Billimatic
2
2
  module Resources
3
3
  class Company < Base
4
- crud :show, :create, :destroy
4
+ crud :list, :show, :create, :destroy
5
5
 
6
6
  def initialize(http)
7
7
  @collection_name = 'companies'
@@ -1,7 +1,7 @@
1
1
  module Billimatic
2
2
  module Resources
3
3
  class Person < Base
4
- crud :show, :create, :update, :destroy
4
+ crud :list, :show, :create, :update, :destroy
5
5
 
6
6
  def initialize(http)
7
7
  @collection_name = 'people'
@@ -1,3 +1,3 @@
1
1
  module Billimatic
2
- VERSION = '0.18.1'
2
+ VERSION = '0.19.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.18.1
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Tassinari de Oliveira
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2018-08-14 00:00:00.000000000 Z
15
+ date: 2018-09-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: typhoeus