myfinance 1.6.5 → 1.6.6

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: 14b8c101b48dcaeaab81d8426d147581222fb9bc
4
- data.tar.gz: 415f58908c165ccace53db1613beb941dd8e7260
3
+ metadata.gz: 4f3b148965ed5f6faf627d5eab0ec21655ff970d
4
+ data.tar.gz: bad3d4d6661684a439110b5a4f0bfd640c1c14c3
5
5
  SHA512:
6
- metadata.gz: a5b363a886d3a42d922dcf50e202f8e760696ce73e964a194f3f2c02fb6497c231c7153c4fdb219e30b70b96961f1d3e01116afaca27c09c11bd2e8b15a9d23c
7
- data.tar.gz: 464d3f4f8568b3c236f39b8dc954f23c894d43a49a44e8b4adb1f1ef7e6b1a6ceba49d0269d06010aa17133ec4d5c843d425d75931a8bd8812afbd50ed45a5b2
6
+ metadata.gz: 35c0fe588ee18cfbe1475ed54fa3dcd3d07e98ec03a151b14cdd1b104587cc701e686cdb7a33d7649ac58330e7f3b8550e6f8d065cf1ff4ee64716758f258865
7
+ data.tar.gz: bc2db51d5f9efd4c1d3e0d4fabb59d2a752b44db597492287afd8b7a02f1904da46f6066fb0dd05ff1b9bd528c8bf3e3d660c04d2881854a6726cfca67313ad8
@@ -1,4 +1,18 @@
1
1
  # Changelog
2
+ ## v1.6.6
3
+ ### Added
4
+ - `Sale` now has the following new attributes:
5
+ * `amount_difference`
6
+ * `competency_month`
7
+ * `installments`
8
+ - `SaleAccount` now has the following new attribute:
9
+ * `expected_deposit_account_id`
10
+ - `FinancialAccount` now has the following new attributes:
11
+ * `sale_account_id`
12
+ * `sale_ids`
13
+ ### Removed
14
+ - `Sale` no longer has the followng new attributes:
15
+ * `api_related`
2
16
  ## v1.6.5
3
17
  ### Added
4
18
  - `Sale` now has the following new attributes:
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- myfinance (1.6.5)
4
+ myfinance (1.6.6)
5
5
  mime-types (>= 1.16, < 3.0)
6
6
  multi_json (~> 1.11)
7
7
  require_all (~> 1.4.0)
data/README.md CHANGED
@@ -1402,7 +1402,7 @@ $ curl -u $username https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credential
1402
1402
 
1403
1403
  Then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). Make sure you have publishing rights for the gem on RubyGems beforehand, though.
1404
1404
 
1405
- After publishing the new version, add a comment to each pull request that was included in this release like this:
1405
+ After publishing the new version, add a `released` label to each pull request included in the release and write a comment like this:
1406
1406
 
1407
1407
  ```
1408
1408
  :shipit: released on [version x.y.z](https://rubygems.org/gems/myfinance/versions/x.y.z)
@@ -2,7 +2,7 @@ module Myfinance
2
2
  module Entities
3
3
  class FinancialAccount < Base
4
4
  [:id, :entity_id, :status, :category_id, :person_id, :recurrence_id, :number_of_parcels,
5
- :current_parcel, :classification_center_id, :expected_deposit_account_id].each do |k|
5
+ :current_parcel, :classification_center_id, :expected_deposit_account_id, :sale_account_id].each do |k|
6
6
  attribute k, Integer
7
7
  end
8
8
 
@@ -22,6 +22,7 @@ module Myfinance
22
22
  end
23
23
  [:created_at, :updated_at].each { |k| attribute k, DateTime }
24
24
 
25
+ attribute :sale_ids, Array[Integer]
25
26
  attribute :tax_charges, Array[Hash]
26
27
  attribute :financial_account_taxes_attributes, Array[Hash]
27
28
  attribute :custom_classifications, Array[Hash]
@@ -1,11 +1,12 @@
1
1
  module Myfinance
2
2
  module Entities
3
3
  class Sale < Base
4
- attribute :api_related
4
+ attribute :amount_difference
5
5
  attribute :attachments
6
6
  attribute :attachments_count
7
7
  attribute :category_id
8
8
  attribute :classification_center_id
9
+ attribute :competency_month
9
10
  attribute :confirmed_at
10
11
  attribute :created_at
11
12
  attribute :custom_classifications
@@ -22,6 +23,7 @@ module Myfinance
22
23
  attribute :id
23
24
  attribute :installment_count
24
25
  attribute :installment_number
26
+ attribute :installments, Array[Hash]
25
27
  attribute :interest_amount
26
28
  attribute :issuer
27
29
  attribute :links
@@ -14,6 +14,7 @@ module Myfinance
14
14
  attribute :person_id
15
15
  attribute :provider
16
16
  attribute :updated_at
17
+ attribute :expected_deposit_account_id
17
18
  end
18
19
  end
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module Myfinance
2
- VERSION = "1.6.5".freeze
2
+ VERSION = "1.6.6".freeze
3
3
  end
@@ -9,6 +9,6 @@ describe Myfinance::Entities::PayableAccount do
9
9
  reminded_at income_tax_relevant category_id classification_center_id expected_deposit_account_id
10
10
  recurrence_id person_id recurrent parcelled recurrence_period number_of_parcels current_parcel
11
11
  competency_month financial_account_taxes_attributes tax_charges reconciliations
12
- links created_at updated_at custom_classifications
12
+ links created_at updated_at custom_classifications sale_account_id sale_ids
13
13
  ]
14
14
  end
@@ -9,6 +9,6 @@ describe Myfinance::Entities::ReceivableAccount do
9
9
  reminded_at income_tax_relevant category_id classification_center_id expected_deposit_account_id
10
10
  recurrence_id person_id recurrent parcelled recurrence_period number_of_parcels current_parcel
11
11
  competency_month financial_account_taxes_attributes tax_charges reconciliations
12
- links created_at updated_at custom_classifications
12
+ links created_at updated_at custom_classifications sale_account_id sale_ids
13
13
  ]
14
14
  end
@@ -9,6 +9,7 @@ describe Myfinance::Entities::SaleAccount do
9
9
  custom_classifications
10
10
  description
11
11
  entity_id
12
+ expected_deposit_account_id
12
13
  id
13
14
  name
14
15
  payment_methods
@@ -2,11 +2,12 @@ require "spec_helper"
2
2
 
3
3
  describe Myfinance::Entities::Sale do
4
4
  it_behaves_like "entity_attributes", %i[
5
- api_related
5
+ amount_difference
6
6
  attachments
7
7
  attachments_count
8
8
  category_id
9
9
  classification_center_id
10
+ competency_month
10
11
  confirmed_at
11
12
  created_at
12
13
  custom_classifications
@@ -23,13 +24,14 @@ describe Myfinance::Entities::Sale do
23
24
  id
24
25
  installment_count
25
26
  installment_number
27
+ installments
26
28
  interest_amount
27
29
  issuer
28
30
  links
29
31
  liquidated_at
30
32
  liquidation_weekday
31
- nominal_amount
32
33
  net_amount
34
+ nominal_amount
33
35
  observation
34
36
  occurred_at
35
37
  original_sale_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myfinance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Hertz
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-06-11 00:00:00.000000000 Z
15
+ date: 2018-06-25 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: typhoeus