cobrato-client 0.23.0 → 0.24.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: a35e918b56525d066ce216eb0d92b8865d57790d
4
- data.tar.gz: 871494e19e1f41d459efd791fa7c176160ce1516
3
+ metadata.gz: 0fb1d0d5dc08643935df189784eba5e12274184c
4
+ data.tar.gz: 48e931bf88e6e4ba492036f16b263a77bfd44ad3
5
5
  SHA512:
6
- metadata.gz: 71f9d5396b6e47e2ae4bd396fb7834b3edb662bbaf3151a822808bd0112f0902055c50170ba16a98150ed8b1e01a4045ea98400b77640fc6acb2ab08b733d701
7
- data.tar.gz: 2ff1f21ecdb20e6529480c1d90d89173d2dbb73ce347b649d4f3d0c8b8febacdccb13f143fcef5161ccf668bd39398ce0f13b0bac0c33f3eea9249ec194d84c4
6
+ metadata.gz: 28aebe760c662048f0c88d19867f7a1a7f14b1aa54e1c3653f7241c7d042bc609809b61ef68774e47d9d42d305d979fb902f0852cad55e16bb231093adbc095b
7
+ data.tar.gz: a1d19dcf8056a5f2b7d8c2b97248c26d2ae344e54463bdb53bef982c8c987ff41415a8dbdfcc0dbc80461767de09cce9db87d0172594aea44fe78dc5390744b4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v0.24.0
6
+
7
+ - Add new attributes for payment gateway config from PJBank
8
+ - Add new attributes for billet Charge from payment gateway
9
+
5
10
  ## v0.23.0
6
11
 
7
12
  - All good for Payment feature
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.23.0)
4
+ cobrato-client (0.24.0)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8.0)
7
7
  virtus (~> 1.0.5)
@@ -5,7 +5,8 @@ module Cobrato
5
5
  attribute :type, String
6
6
  attribute :charge_config_id, Integer
7
7
  attribute :charged_amount, Decimal
8
- attribute :notification_emails, String
8
+ attribute :charge_template_id, Integer
9
+ attribute :notification_emails, Array
9
10
  attribute :payer_id, Integer
10
11
  attribute :payer_national_identifier_type, String
11
12
  attribute :payer_national_identifier, String
@@ -18,20 +19,37 @@ module Cobrato
18
19
  attribute :payer_city, String
19
20
  attribute :payer_state, String
20
21
  attribute :for_homologation, Boolean
21
- attribute :for_homologation, Boolean
22
22
  attribute :canceled_at, DateTime
23
23
  attribute :paid_amount, Decimal
24
24
  attribute :paid_at, Date
25
+ attribute :due_date, Date
25
26
 
26
27
  attribute :total_amount, Decimal # deprecated
27
28
  attribute :received, Boolean # deprecated
28
29
  attribute :received_amount, Decimal # deprecated
29
30
  attribute :received_at, Date # deprecated
30
31
 
31
- # billet specifics
32
- attribute :due_date, Date
33
- attribute :processing_date, Date
32
+ # credit card specifics
33
+ attribute :credit_card_id, Integer
34
+ attribute :description, String
35
+ attribute :soft_descriptor, String
36
+ attribute :payment_method, String
37
+ attribute :installments, Integer
38
+ attribute :payment_gateway_status, String
39
+ attribute :payment_gateway_message, String
40
+
41
+ # billet shared
42
+ attribute :interest_amount_per_month, Decimal
43
+ attribute :mulct_value, Decimal
44
+ attribute :available_billet, Boolean
45
+ attribute :auto_send_billet, Boolean
46
+ attribute :email_sender_name, String
47
+ attribute :email_subject, String
48
+ attribute :email_text, String
34
49
  attribute :document_kind, String
50
+
51
+ # bank billet specifics
52
+ attribute :processing_date, Date
35
53
  attribute :document_date, Date
36
54
  attribute :document_number, String
37
55
  attribute :custom_our_number, Boolean
@@ -41,29 +59,15 @@ module Cobrato
41
59
  attribute :demonstrative, String
42
60
  attribute :registrable, Boolean
43
61
  attribute :registration_status, String
44
- attribute :interest_amount_per_month, Decimal
45
62
  attribute :mulct_type, String
46
- attribute :mulct_value, Decimal
47
63
  attribute :payment_tax, Decimal
48
- attribute :auto_send_billet, Boolean
49
- attribute :email_sender_name, String
50
- attribute :email_subject, String
51
- attribute :email_text, String
52
- attribute :charge_template_id, Integer
53
64
  attribute :paid_discount, Decimal
54
65
  attribute :paid_additions, Decimal
55
66
  attribute :paid_rebate, Decimal
56
67
  attribute :paid_difference, Decimal
57
- attribute :available_billet, Boolean
58
68
 
59
- # payment gateway specifics
60
- attribute :credit_card_id, Integer
61
- attribute :description, String
62
- attribute :soft_descriptor, String
63
- attribute :payment_method, String
64
- attribute :installments, Integer
65
- attribute :payment_gateway_status, String
66
- attribute :payment_gateway_message, String
69
+ # gateway billet specifics
70
+ attribute :discount_amount, Decimal
67
71
  end
68
72
  end
69
73
  end
@@ -6,6 +6,7 @@ module Cobrato
6
6
  attribute :type, String
7
7
  attribute :status, String
8
8
  attribute :payee_id, String
9
+ attribute :available_charge_types, Array
9
10
 
10
11
  # billet specifics
11
12
  attribute :bank_account_id, Integer
@@ -28,6 +29,9 @@ module Cobrato
28
29
  attribute :gateway_name, String
29
30
  attribute :gateway_id, String
30
31
  attribute :gateway_key, String
32
+ attribute :billet_gateway_id, String
33
+ attribute :billet_gateway_key, String
34
+ attribute :account_holder, Boolean
31
35
  attribute :use_avs, Boolean
32
36
  end
33
37
  end
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.23.0'
2
+ VERSION = '0.24.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.23.0
4
+ version: 0.24.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: 2018-04-04 00:00:00.000000000 Z
13
+ date: 2018-04-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus