enotas_api 4.3.2 → 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 +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -2
- data/lib/enotas_api/v1/entities/nfs_servico.rb +3 -1
- data/lib/enotas_api/v1/entities/nfs_servico_ibs_cbs.rb +12 -0
- 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 +9 -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/).
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative '../../common/entity'
|
|
4
|
+
require_relative 'nfs_servico_ibs_cbs'
|
|
4
5
|
|
|
5
6
|
module EnotasApi
|
|
6
7
|
module V1
|
|
@@ -19,7 +20,8 @@ module EnotasApi
|
|
|
19
20
|
valorCsll: :decimal,
|
|
20
21
|
valorInss: :decimal,
|
|
21
22
|
valorIr: :decimal,
|
|
22
|
-
codigoInternoServicoMunicipal: :string
|
|
23
|
+
codigoInternoServicoMunicipal: :string,
|
|
24
|
+
ibsCbs: NfsServicoIbsCbs
|
|
23
25
|
end
|
|
24
26
|
end
|
|
25
27
|
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 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:
|
|
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:
|
|
@@ -69,6 +69,7 @@ files:
|
|
|
69
69
|
- lib/enotas_api/v1/entities/nfs_cliente_endereco.rb
|
|
70
70
|
- lib/enotas_api/v1/entities/nfs_dados_adicionais_email.rb
|
|
71
71
|
- lib/enotas_api/v1/entities/nfs_servico.rb
|
|
72
|
+
- lib/enotas_api/v1/entities/nfs_servico_ibs_cbs.rb
|
|
72
73
|
- lib/enotas_api/v1/habilitar_empresa.rb
|
|
73
74
|
- lib/enotas_api/v1/incluir_atualizar_empresa.rb
|
|
74
75
|
- lib/enotas_api/v1/listar_empresas.rb
|
|
@@ -92,7 +93,12 @@ files:
|
|
|
92
93
|
- lib/enotas_api/v2/entities/nfce.rb
|
|
93
94
|
- lib/enotas_api/v2/entities/nfce_cliente.rb
|
|
94
95
|
- lib/enotas_api/v2/entities/nfce_cliente_endereco.rb
|
|
96
|
+
- lib/enotas_api/v2/entities/nfce_imposto_cbs.rb
|
|
95
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
|
|
96
102
|
- lib/enotas_api/v2/entities/nfce_imposto_icms.rb
|
|
97
103
|
- lib/enotas_api/v2/entities/nfce_imposto_ipi.rb
|
|
98
104
|
- lib/enotas_api/v2/entities/nfce_imposto_percentual_aproximado_tributos.rb
|
|
@@ -151,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
151
157
|
- !ruby/object:Gem::Version
|
|
152
158
|
version: '0'
|
|
153
159
|
requirements: []
|
|
154
|
-
rubygems_version: 3.
|
|
160
|
+
rubygems_version: 3.3.27
|
|
155
161
|
signing_key:
|
|
156
162
|
specification_version: 4
|
|
157
163
|
summary: E-notas API client
|