cobrato-client 0.23.0.beta5 → 0.23.0.beta6
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/cobrato/entities/payment.rb +42 -31
- data/lib/cobrato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e53c7bf0898a07e569aa2382a97a620943ecedfc
|
|
4
|
+
data.tar.gz: 79b481a578cb1a29d9777d9133b3d32baab278d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6f63dad02d1e73b278c65f06172be3e9d758b0e480c03f74204fd2cc4dc8cce5b46f8f57f8a6c48f99aecad90c40195ca9a94f5bede1448f09700384be10334
|
|
7
|
+
data.tar.gz: afb8b8308216f9297028876e978fda5e77e2d0c89314bae6e8410ed10de9b3c0e60e83fe8259689bb1c5a6e98ff49a25dc819ef453756eaa0144f35e4667e410
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -2,47 +2,58 @@ module Cobrato
|
|
|
2
2
|
module Entities
|
|
3
3
|
class Payment < Base
|
|
4
4
|
# Shared with all
|
|
5
|
-
attribute :id,
|
|
6
|
-
attribute :payment_config_id,
|
|
7
|
-
attribute :amount,
|
|
8
|
-
attribute :date,
|
|
9
|
-
attribute :our_number,
|
|
10
|
-
attribute :payment_method,
|
|
11
|
-
attribute :payment_type,
|
|
12
|
-
attribute :registration_status,
|
|
5
|
+
attribute :id, Integer
|
|
6
|
+
attribute :payment_config_id, Integer
|
|
7
|
+
attribute :amount, Decimal
|
|
8
|
+
attribute :date, Date
|
|
9
|
+
attribute :our_number, String
|
|
10
|
+
attribute :payment_method, String
|
|
11
|
+
attribute :payment_type, String
|
|
12
|
+
attribute :registration_status, String
|
|
13
13
|
|
|
14
14
|
# Shared with some
|
|
15
|
-
attribute :due_date,
|
|
15
|
+
attribute :due_date, Date
|
|
16
|
+
attribute :calculation_period, Date
|
|
17
|
+
attribute :receita_federal_code, String
|
|
18
|
+
attribute :mulct_amount, Decimal
|
|
19
|
+
attribute :interest_amount, Decimal
|
|
20
|
+
attribute :discount_amount, Decimal
|
|
21
|
+
attribute :competency_year, String
|
|
16
22
|
|
|
17
23
|
# Transfer specific
|
|
18
|
-
attribute :account,
|
|
19
|
-
attribute :account_digit,
|
|
20
|
-
attribute :agency,
|
|
21
|
-
attribute :bank_code,
|
|
22
|
-
attribute :payee_name,
|
|
23
|
-
attribute :payee_document_type,
|
|
24
|
-
attribute :payee_document,
|
|
25
|
-
attribute :doc_goal,
|
|
26
|
-
attribute :ted_goal,
|
|
24
|
+
attribute :account, String
|
|
25
|
+
attribute :account_digit, String
|
|
26
|
+
attribute :agency, String
|
|
27
|
+
attribute :bank_code, String
|
|
28
|
+
attribute :payee_name, String
|
|
29
|
+
attribute :payee_document_type, String
|
|
30
|
+
attribute :payee_document, String
|
|
31
|
+
attribute :doc_goal, String
|
|
32
|
+
attribute :ted_goal, String
|
|
27
33
|
|
|
28
34
|
# Billet specific
|
|
29
|
-
attribute :
|
|
30
|
-
attribute :
|
|
31
|
-
attribute :barcode, String
|
|
35
|
+
attribute :extra_amount, Decimal
|
|
36
|
+
attribute :barcode, String
|
|
32
37
|
|
|
33
38
|
# GPS specific
|
|
34
|
-
attribute :gps_payment_code,
|
|
35
|
-
attribute :competency_month,
|
|
36
|
-
attribute :
|
|
37
|
-
attribute :
|
|
38
|
-
attribute :monetary_update, Decimal
|
|
39
|
+
attribute :gps_payment_code, String
|
|
40
|
+
attribute :competency_month, String
|
|
41
|
+
attribute :other_entities_amount, Decimal
|
|
42
|
+
attribute :monetary_update, Decimal
|
|
39
43
|
|
|
40
44
|
# DARF specific
|
|
41
|
-
attribute :
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
attribute :
|
|
45
|
-
attribute :
|
|
45
|
+
attribute :reference_number, String
|
|
46
|
+
|
|
47
|
+
# DAS specific
|
|
48
|
+
attribute :gross_revenue, Decimal
|
|
49
|
+
attribute :gross_revenue_percentage, Decimal
|
|
50
|
+
|
|
51
|
+
# IPVA specific
|
|
52
|
+
attribute :city_code, Integer
|
|
53
|
+
attribute :license_plate, String
|
|
54
|
+
attribute :payment_option, String
|
|
55
|
+
attribute :renavam, String
|
|
56
|
+
attribute :uf, String
|
|
46
57
|
end
|
|
47
58
|
end
|
|
48
59
|
end
|
data/lib/cobrato/version.rb
CHANGED
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.23.0.beta6
|
|
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-01-
|
|
13
|
+
date: 2018-01-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: typhoeus
|