cobrato-client 0.11.0 → 0.12.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: 11b2939b388bf958abcdb84e5f3e6ef9b0c1aefa
4
- data.tar.gz: 0c559705dbc347038bad3c91a8662020b66f7055
3
+ metadata.gz: f7e523ee6e4dfefdaa40c18de8ff37f4b197bd61
4
+ data.tar.gz: ce2ae1431ba4cfb93f8f6d910af79631e39dd0cc
5
5
  SHA512:
6
- metadata.gz: af06979bdbe8c024a93cc5298b64e2fe7e4d5aa9624dcc56a3c98d65f4fe699d67250bd96e0fbf91086e3f5cc5277e1298a54c196d56868a06f2c03621ce0aaf
7
- data.tar.gz: 9085931dc099432c2de13b6428755e3674f7a82262f06ef2b60b9a77464c24e3222ac42f3e3ca08b5d538c7c22b7ce03ca01b59d400b10d20fb1e76656dc9b6e
6
+ metadata.gz: 209ab62ce87ecb55a4c5e6f0434e9056a6961827162f447db5678d708d57ede2d49fef85b2338b4f3ffb08bbe18d6382fb9cba3b61293e47cf63e5dcb2c3fd90
7
+ data.tar.gz: 9f08587ea1aac602b55450b5c229bf4be60d572657e14987756dc22e3820cd75f4a14754280ac07e85c7848398f613b7d212496626dcdb956792df8db786b382
data/CHANGELOG.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  ## Next version
4
4
 
5
- -
5
+ ## v0.12.0
6
+
7
+ - Add `Charge#payment_tax`
8
+ - Remove `Charge#received` # but still there as deprecated
9
+ - Rename `Charge#total_amount` to `Charge#charged_amount` # but still there as deprecated
10
+ - Rename `Charge#received_amount` to `Charge#paid_amount` # but still there as deprecated
11
+ - Rename `Charge#received_at` to `Charge#paid_at` # but still there as deprecated
6
12
 
7
13
  ## v0.11.0
8
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.11.0)
4
+ cobrato-client (0.12.0)
5
5
  multi_json (~> 1.11.1)
6
6
  typhoeus (~> 0.7.2)
7
7
  virtus (~> 1.0.5)
@@ -4,7 +4,7 @@ module Cobrato
4
4
  attribute :id, Integer
5
5
  attribute :type, String
6
6
  attribute :charge_config_id, Integer
7
- attribute :total_amount, Decimal
7
+ attribute :charged_amount, Decimal
8
8
  attribute :notification_emails, String
9
9
  attribute :payer_id, Integer
10
10
  attribute :payer_national_identifier_type, String
@@ -20,6 +20,13 @@ module Cobrato
20
20
  attribute :for_homologation, Boolean
21
21
  attribute :for_homologation, Boolean
22
22
  attribute :canceled_at, DateTime
23
+ attribute :paid_amount, Decimal
24
+ attribute :paid_at, Date
25
+
26
+ attribute :total_amount, Decimal # deprecated
27
+ attribute :received, Boolean # deprecated
28
+ attribute :received_amount, Decimal # deprecated
29
+ attribute :received_at, Date # deprecated
23
30
 
24
31
  # billet specifics
25
32
  attribute :due_date, Date
@@ -32,14 +39,12 @@ module Cobrato
32
39
  attribute :our_number_digit, String
33
40
  attribute :instructions, String
34
41
  attribute :demonstrative, String
35
- attribute :received, Boolean
36
- attribute :received_amount, Decimal
37
- attribute :received_at, Date
38
42
  attribute :registrable, Boolean
39
43
  attribute :registration_status, String
40
44
  attribute :interest_amount_per_month, Decimal
41
45
  attribute :mulct_type, String
42
46
  attribute :mulct_value, Decimal
47
+ attribute :payment_tax, Decimal
43
48
 
44
49
  # payment gateway specifics
45
50
  attribute :credit_card_id, Integer
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.11.0'
2
+ VERSION = '0.12.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobrato-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcio Ricardo Santos
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-09-26 00:00:00.000000000 Z
13
+ date: 2016-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus