enotas_api 4.3.3 → 4.3.4
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/.github/workflows/check.yml +1 -5
- data/CHANGELOG.md +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -2
- data/lib/enotas_api/v2/entities/nfce_imposto_cbs.rb +13 -0
- data/lib/enotas_api/v2/entities/nfce_imposto_ibs.rb +14 -0
- data/lib/enotas_api/v2/entities/nfce_imposto_ibs_cbs.rb +16 -0
- data/lib/enotas_api/v2/entities/nfce_imposto_ibs_municipio.rb +11 -0
- data/lib/enotas_api/v2/entities/nfce_imposto_ibs_uf.rb +13 -0
- data/lib/enotas_api/v2/entities/nfce_item_impostos.rb +3 -1
- data/lib/enotas_api/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94e6936e9bc2adcb9483b2ba5257280237d0b51a22ddc495c1936cde8d51721a
|
|
4
|
+
data.tar.gz: fcd127e525deef906c44aa7291b988340fc622511a620336bcf3ec8e19e9a2c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80cf477d312cfde49d107fa2dd72f9d3ccf125265fe59d029a5ae55df80ce9c0949030d68ac5257625e8dd36c2f7400a8f5755d84139ed56f0997ee07a3853d6
|
|
7
|
+
data.tar.gz: 19c53a6a93f51179fbe619526146d31ef2875ea1a4fb99719aa6fd18473169383183e7a18250a372b7783510b757417f4dc334051a3b30ba6f674448ad645429
|
data/.github/workflows/check.yml
CHANGED
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
runs-on: ubuntu-latest
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
22
|
- name: Set up Ruby 3.2
|
|
23
23
|
uses: ruby/setup-ruby@v1
|
|
24
24
|
with:
|
|
@@ -28,7 +28,3 @@ jobs:
|
|
|
28
28
|
run: bundle install
|
|
29
29
|
- name: Run tests
|
|
30
30
|
run: bundle exec rake
|
|
31
|
-
- name: Publish Coverage
|
|
32
|
-
uses: paambaati/codeclimate-action@v5.0.0
|
|
33
|
-
env:
|
|
34
|
-
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
[](https://badge.fury.io/rb/enotas_api)
|
|
2
|
-
[](https://codeclimate.com/github/bempapp/enotas_api/maintainability)
|
|
3
|
-
[](https://codeclimate.com/github/bempapp/enotas_api/test_coverage)
|
|
4
2
|
|
|
5
3
|
# EnotasApi
|
|
6
4
|
*enotas_api* é um cliente ruby para a [API](https://docs.enotasgw.com.br/reference) do [e-notas](https://enotas.com.br/).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative '../../common/entity'
|
|
4
|
+
|
|
5
|
+
module EnotasApi
|
|
6
|
+
module V2
|
|
7
|
+
class NfceImpostoCbs < EnotasApi::Entity
|
|
8
|
+
attributes aliquota: :decimal,
|
|
9
|
+
percentualDiferimento: :decimal,
|
|
10
|
+
percentualReducaoAliquota: :decimal
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative '../../common/entity'
|
|
4
|
+
require_relative 'nfce_imposto_ibs_uf'
|
|
5
|
+
require_relative 'nfce_imposto_ibs_municipio'
|
|
6
|
+
|
|
7
|
+
module EnotasApi
|
|
8
|
+
module V2
|
|
9
|
+
class NfceImpostoIbs < EnotasApi::Entity
|
|
10
|
+
attributes uf: NfceImpostoIbsUf,
|
|
11
|
+
municipio: NfceImpostoIbsMunicipio
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative '../../common/entity'
|
|
4
|
+
require_relative 'nfce_imposto_ibs'
|
|
5
|
+
require_relative 'nfce_imposto_cbs'
|
|
6
|
+
|
|
7
|
+
module EnotasApi
|
|
8
|
+
module V2
|
|
9
|
+
class NfceImpostoIbsCbs < EnotasApi::Entity
|
|
10
|
+
attributes situacaoTributaria: :string,
|
|
11
|
+
classificacaoTributaria: :string,
|
|
12
|
+
ibs: NfceImpostoIbs,
|
|
13
|
+
cbs: NfceImpostoCbs
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative '../../common/entity'
|
|
4
|
+
|
|
5
|
+
module EnotasApi
|
|
6
|
+
module V2
|
|
7
|
+
class NfceImpostoIbsUf < EnotasApi::Entity
|
|
8
|
+
attributes aliquota: :decimal,
|
|
9
|
+
percentualDiferimento: :decimal,
|
|
10
|
+
percentualReducaoAliquota: :decimal
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -6,6 +6,7 @@ require_relative 'nfce_imposto_icms'
|
|
|
6
6
|
require_relative 'nfce_imposto_pis'
|
|
7
7
|
require_relative 'nfce_imposto_cofins'
|
|
8
8
|
require_relative 'nfce_imposto_ipi'
|
|
9
|
+
require_relative 'nfce_imposto_ibs_cbs'
|
|
9
10
|
|
|
10
11
|
module EnotasApi
|
|
11
12
|
module V2
|
|
@@ -14,7 +15,8 @@ module EnotasApi
|
|
|
14
15
|
icms: NfceImpostoIcms,
|
|
15
16
|
pis: NfceImpostoPis,
|
|
16
17
|
cofins: NfceImpostoCofins,
|
|
17
|
-
ipi: NfceImpostoIpi
|
|
18
|
+
ipi: NfceImpostoIpi,
|
|
19
|
+
ibsCbs: NfceImpostoIbsCbs
|
|
18
20
|
end
|
|
19
21
|
end
|
|
20
22
|
end
|
data/lib/enotas_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: enotas_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.3.
|
|
4
|
+
version: 4.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eduardo Bohrer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Non oficial, well supported, e-notas ruby api client
|
|
14
14
|
email:
|
|
@@ -93,7 +93,12 @@ files:
|
|
|
93
93
|
- lib/enotas_api/v2/entities/nfce.rb
|
|
94
94
|
- lib/enotas_api/v2/entities/nfce_cliente.rb
|
|
95
95
|
- lib/enotas_api/v2/entities/nfce_cliente_endereco.rb
|
|
96
|
+
- lib/enotas_api/v2/entities/nfce_imposto_cbs.rb
|
|
96
97
|
- lib/enotas_api/v2/entities/nfce_imposto_cofins.rb
|
|
98
|
+
- lib/enotas_api/v2/entities/nfce_imposto_ibs.rb
|
|
99
|
+
- lib/enotas_api/v2/entities/nfce_imposto_ibs_cbs.rb
|
|
100
|
+
- lib/enotas_api/v2/entities/nfce_imposto_ibs_municipio.rb
|
|
101
|
+
- lib/enotas_api/v2/entities/nfce_imposto_ibs_uf.rb
|
|
97
102
|
- lib/enotas_api/v2/entities/nfce_imposto_icms.rb
|
|
98
103
|
- lib/enotas_api/v2/entities/nfce_imposto_ipi.rb
|
|
99
104
|
- lib/enotas_api/v2/entities/nfce_imposto_percentual_aproximado_tributos.rb
|
|
@@ -152,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
157
|
- !ruby/object:Gem::Version
|
|
153
158
|
version: '0'
|
|
154
159
|
requirements: []
|
|
155
|
-
rubygems_version: 3.
|
|
160
|
+
rubygems_version: 3.3.27
|
|
156
161
|
signing_key:
|
|
157
162
|
specification_version: 4
|
|
158
163
|
summary: E-notas API client
|