billimatic-client 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/Gemfile.lock +1 -1
- data/README.md +23 -12
- data/lib/billimatic/entities/company.rb +3 -0
- data/lib/billimatic/entities/invoice.rb +3 -0
- data/lib/billimatic/entities/invoice_rule.rb +2 -0
- data/lib/billimatic/entities/person.rb +2 -0
- data/lib/billimatic/entities/plan.rb +4 -0
- data/lib/billimatic/entities/receivable.rb +2 -1
- data/lib/billimatic/resources/contract.rb +7 -3
- data/lib/billimatic/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 056155cc282d5cb6fef2be63de1dcaf1a318419a
|
4
|
+
data.tar.gz: abb25e370bebffb61e8af158b95a29cd82f11975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 782f95e7a46752eef22932762b13857bd7f4d22addf82f6dac0120c4c17dc3bb916a5b5f13e4a5a3ffa9c08d164627d094c2d765ff7b2848ceae5ee04cd0c89d
|
7
|
+
data.tar.gz: 7afbe6853b3aaf78e17e224fede6cc0c0710f65b4b1220096b4b2ae5ca4569dd596a4ffdd9309ae6ef620ac61bfb9ae389f282aa5ad957569567cc5f5f3f760e
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,17 @@
|
|
2
2
|
|
3
3
|
## Next version
|
4
4
|
|
5
|
+
## v0.15.0
|
6
|
+
- Fixes README.md details for update endpoints, with correct HTTP method used.
|
7
|
+
- Adds `city_inscription`, `myfinance_customer_id` and `myfinance_errors` attributes on Company entity.
|
8
|
+
- Adds `myfinance_customer_id` and `myfinance_errors` attributes on Person entity.
|
9
|
+
- Adds `estimated_issue_date`, `myfinance_sale_account_id` and `myfinance_sale_account_name` attributes on Invoice entity.
|
10
|
+
- Adds `myfinance_sale_account_id` and `myfinance_sale_account_name` attributes on InvoiceRule entity.
|
11
|
+
- Adds `myfinance_billet_sale_account_id`, `myfinance_billet_sale_account_name`, `myfinance_payment_gateway_sale_account_id` and `myfinance_payment_gateway_sale_account_name` attributes on Plan entity.
|
12
|
+
- Adds `myfinance_sale_id` attribute and changes `finance_errors` attribute to `myfinance_errors` on Receivable entity.
|
13
|
+
- Adds Contract#show endpoint.
|
14
|
+
|
5
15
|
## v0.14.1
|
6
16
|
|
7
17
|
- Adds `cobrato_payment_gateway_charge_config_id` and `cobrato_payment_gateway_charge_config_name` attributes on Contract and Subscription entities.
|
8
|
-
- Adds `payment_information` attribute on Invoice and InvoiceRule entities, which represents an association to a PaymentInformation entity.
|
18
|
+
- Adds `payment_information` attribute on Invoice and InvoiceRule entities, which represents an association to a PaymentInformation entity.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -90,7 +90,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
90
90
|
</td>
|
91
91
|
</tr>
|
92
92
|
<tr>
|
93
|
-
<td><code>
|
93
|
+
<td><code>PUT</code></td>
|
94
94
|
<td>
|
95
95
|
<a href="https://app.billimatic.com.br/docs/api#!/organizations/API_V1_Organizations_update_patch_2" target="_blank">
|
96
96
|
/api/v1/organizations/:id
|
@@ -144,7 +144,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
144
144
|
</td>
|
145
145
|
</tr>
|
146
146
|
<tr>
|
147
|
-
<td><code>
|
147
|
+
<td><code>PUT</code></td>
|
148
148
|
<td>
|
149
149
|
<a href="https://app.billimatic.com.br/docs/api#!/plans/API_V1_Plans_update_patch_2" target="_blank">
|
150
150
|
/api/v1/organizations/:organization_id/plans/:id
|
@@ -269,7 +269,18 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
269
269
|
<tr>
|
270
270
|
<td><code>GET</code></td>
|
271
271
|
<td>
|
272
|
-
<a href="https://app.billimatic.com.br/docs/api#!/contracts/
|
272
|
+
<a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_show_get_1" target="_blank">
|
273
|
+
/api/v1/organizations/:organization_id/contracts/:id
|
274
|
+
</a>
|
275
|
+
</td>
|
276
|
+
<td>
|
277
|
+
<code>client.contracts.show(id, organization_id: id)</code>
|
278
|
+
</td>
|
279
|
+
</tr>
|
280
|
+
<tr>
|
281
|
+
<td><code>GET</code></td>
|
282
|
+
<td>
|
283
|
+
<a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_search_get_2" target="_blank">
|
273
284
|
/api/v1/contracts/search?name=:name
|
274
285
|
</a>
|
275
286
|
</td>
|
@@ -280,7 +291,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
280
291
|
<tr>
|
281
292
|
<td><code>POST</code></td>
|
282
293
|
<td>
|
283
|
-
<a href="https://app.billimatic.com.br/docs/api#!/contracts/
|
294
|
+
<a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_create_post_3" target="_blank">
|
284
295
|
/api/v1/contracts
|
285
296
|
</a>
|
286
297
|
</td>
|
@@ -289,9 +300,9 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
289
300
|
</td>
|
290
301
|
</tr>
|
291
302
|
<tr>
|
292
|
-
<td><code>
|
303
|
+
<td><code>PUT</code></td>
|
293
304
|
<td>
|
294
|
-
<a href="https://app.billimatic.com.br/docs/api#!/contracts/
|
305
|
+
<a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_update_patch_4" target="_blank">
|
295
306
|
/api/v1/contracts/:id
|
296
307
|
</a>
|
297
308
|
</td>
|
@@ -302,7 +313,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
302
313
|
<tr>
|
303
314
|
<td><code>DELETE</code></td>
|
304
315
|
<td>
|
305
|
-
<a href="https://app.billimatic.com.br/docs/api#!/contracts/
|
316
|
+
<a href="https://app.billimatic.com.br/docs/api#!/contracts/API_V1_Contracts_destroy_delete_5" target="_blank">
|
306
317
|
/api/v1/contracts/:id
|
307
318
|
</a>
|
308
319
|
</td>
|
@@ -387,7 +398,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
387
398
|
</td>
|
388
399
|
</tr>
|
389
400
|
<tr>
|
390
|
-
<td><code>
|
401
|
+
<td><code>PUT</code></td>
|
391
402
|
<td>
|
392
403
|
<a href="https://app.billimatic.com.br/docs/api#!/invoices/API_V1_Invoices_update_patch_6" target="_blank">
|
393
404
|
/api/v1/contracts/:contract_id/invoices/:id
|
@@ -430,7 +441,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
430
441
|
</td>
|
431
442
|
</tr>
|
432
443
|
<tr>
|
433
|
-
<td><code>
|
444
|
+
<td><code>PUT</code></td>
|
434
445
|
<td>
|
435
446
|
<a href="https://app.billimatic.com.br/docs/api#!/invoice_rules/API_V1_InvoiceRules_update_patch_1" target="_blank">
|
436
447
|
/api/v1/contracts/:contract_id/invoice_rules/:id
|
@@ -523,7 +534,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
523
534
|
</a>
|
524
535
|
</td>
|
525
536
|
<td>
|
526
|
-
<code>client.people.search(
|
537
|
+
<code>client.people.search(cpf: cpf)</code>
|
527
538
|
</td>
|
528
539
|
</tr>
|
529
540
|
<tr>
|
@@ -538,7 +549,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
538
549
|
</td>
|
539
550
|
</tr>
|
540
551
|
<tr>
|
541
|
-
<td><code>
|
552
|
+
<td><code>PUT</code></td>
|
542
553
|
<td>
|
543
554
|
<a href="https://app.billimatic.com.br/docs/api#!/people/API_V1_People_update_patch_2" target="_blank">
|
544
555
|
/api/v1/people/:id
|
@@ -592,7 +603,7 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
592
603
|
</td>
|
593
604
|
</tr>
|
594
605
|
<tr>
|
595
|
-
<td><code>
|
606
|
+
<td><code>PUT</code></td>
|
596
607
|
<td>
|
597
608
|
<a href="https://app.billimatic.com.br/docs/api#!/service_items/API_V1_ServiceItems_update_patch_2" target="_blank">
|
598
609
|
/api/v1/service_items/:id
|
@@ -7,6 +7,7 @@ module Billimatic
|
|
7
7
|
attribute :company_name, String
|
8
8
|
attribute :cnpj, String
|
9
9
|
attribute :state_inscription, String
|
10
|
+
attribute :city_inscription, String
|
10
11
|
attribute :address, String
|
11
12
|
attribute :number, String
|
12
13
|
attribute :zipcode, String
|
@@ -20,6 +21,8 @@ module Billimatic
|
|
20
21
|
attribute :comments, String
|
21
22
|
attribute :kind, String
|
22
23
|
attribute :client_since, Date
|
24
|
+
attribute :myfinance_customer_id, Integer
|
25
|
+
attribute :myfinance_errors, String
|
23
26
|
attribute :created_at, DateTime
|
24
27
|
end
|
25
28
|
end
|
@@ -4,6 +4,7 @@ module Billimatic
|
|
4
4
|
attribute :id, Integer
|
5
5
|
attribute :contract_id, Integer
|
6
6
|
attribute :issue_date, Date
|
7
|
+
attribute :estimated_issue_date, Date
|
7
8
|
attribute :gross_value, Decimal
|
8
9
|
attribute :payment_value, Decimal
|
9
10
|
attribute :description, String
|
@@ -25,6 +26,8 @@ module Billimatic
|
|
25
26
|
attribute :finance_category, String
|
26
27
|
attribute :finance_revenue_center, String
|
27
28
|
attribute :finance_receive_via, String
|
29
|
+
attribute :myfinance_sale_account_id, Integer
|
30
|
+
attribute :myfinance_sale_account_name, String
|
28
31
|
attribute :cobrato_charge_config_id, Integer
|
29
32
|
attribute :cobrato_charge_config_name, String
|
30
33
|
attribute :cobrato_charge_template_id, Integer
|
@@ -12,6 +12,8 @@ module Billimatic
|
|
12
12
|
attribute :finance_category, String
|
13
13
|
attribute :finance_revenue_center, String
|
14
14
|
attribute :finance_receive_via, String
|
15
|
+
attribute :myfinance_sale_account_id, Integer
|
16
|
+
attribute :myfinance_sale_account_name, String
|
15
17
|
attribute :cobrato_charge_config_id, Integer
|
16
18
|
attribute :cobrato_charge_config_name, String
|
17
19
|
attribute :cobrato_charge_template_id, Integer
|
@@ -27,6 +27,10 @@ module Billimatic
|
|
27
27
|
attribute :cobrato_payment_gateway_charge_config_name, String
|
28
28
|
attribute :finance_category, String
|
29
29
|
attribute :finance_revenue_center, String
|
30
|
+
attribute :myfinance_billet_sale_account_id, Integer
|
31
|
+
attribute :myfinance_billet_sale_account_name, String
|
32
|
+
attribute :myfinance_payment_gateway_sale_account_id, Integer
|
33
|
+
attribute :myfinance_payment_gateway_sale_account_name, String
|
30
34
|
attribute :created_at, DateTime
|
31
35
|
attribute :products, Array[Product]
|
32
36
|
attribute :allow_installments, Boolean
|
@@ -14,9 +14,10 @@ module Billimatic
|
|
14
14
|
attribute :payment_gateway_status, String
|
15
15
|
attribute :cobrato_charge_id, Integer
|
16
16
|
attribute :cobrato_errors, String
|
17
|
+
attribute :myfinance_sale_id, Integer
|
17
18
|
attribute :finance_receivable_id, Integer
|
18
19
|
attribute :finance_entity_id, Integer
|
19
|
-
attribute :
|
20
|
+
attribute :myfinance_errors, String
|
20
21
|
end
|
21
22
|
end
|
22
23
|
end
|
@@ -6,14 +6,18 @@ module Billimatic
|
|
6
6
|
def search(name:)
|
7
7
|
http.get(
|
8
8
|
"#{resource_base_path}/search", params: { name: name }
|
9
|
-
)
|
10
|
-
respond_with_collection response
|
11
|
-
end
|
9
|
+
) { |response| respond_with_collection response }
|
12
10
|
end
|
13
11
|
|
14
12
|
def list(organization_id:)
|
15
13
|
list_by_organization(organization_id)
|
16
14
|
end
|
15
|
+
|
16
|
+
def show(id, organization_id:)
|
17
|
+
http.get(
|
18
|
+
"/organizations/#{organization_id}#{resource_base_path}/#{id}"
|
19
|
+
) { |response| respond_with_entity response }
|
20
|
+
end
|
17
21
|
end
|
18
22
|
end
|
19
23
|
end
|
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.15.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:
|
14
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: typhoeus
|
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
282
|
version: '0'
|
283
283
|
requirements: []
|
284
284
|
rubyforge_project:
|
285
|
-
rubygems_version: 2.5.1
|
285
|
+
rubygems_version: 2.5.2.1
|
286
286
|
signing_key:
|
287
287
|
specification_version: 4
|
288
288
|
summary: This is the official Ruby client for the Billimatic API.
|