rnfse 0.5.0 → 0.5.1
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/lib/rnfse/api/abrasf_1_0/definitions.json +2 -2
- data/lib/rnfse/api/iss_net_1_0.rb +12 -12
- data/lib/rnfse/version.rb +1 -1
- metadata +3 -4
- data/lib/rnfse/api/abrasf_1_0/#definitions.json# +0 -413
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fa851df5aa28aca8902ffa0b0a00c6abe1627b5
|
|
4
|
+
data.tar.gz: 976dbb1947a9f6ef0b64eadea5fc5f23b43821a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99c226c9ffd2626afab4091eff5d13a27524a3f2a74dc0a416e0678aa18fd14833a586f8d1f1700a98f5645e2e5e1b5f6ccb0b62da8a766d906bb833b42e94d3
|
|
7
|
+
data.tar.gz: 5cb276d117bd6cfcd333f299acdf81fb25b377c30d06966395f42909ee09a8c8d66a545beee0b34c595cf774f7ba574acb4f0c89316139022ff84d1234b790f0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Número da Nota Fiscal de Serviço Eletrônica, formado pelo ano com 04 (quatro) dígitos e um número seqüencial com 11 posições – Formato AAAANNNNNNNNNNN.",
|
|
4
4
|
"type": "integer",
|
|
5
5
|
"minimum": 190000000000000,
|
|
6
|
-
"maximum":
|
|
6
|
+
"maximum": 299999999999999
|
|
7
7
|
},
|
|
8
8
|
"codigoVerificacao": {
|
|
9
9
|
"description": "Código de verificação do número da nota",
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
"numero": { "$ref": "#/numeroNfse" },
|
|
406
406
|
"cnpj": { "$ref": "#/cnpj" },
|
|
407
407
|
"inscricaoMunicipal": { "$ref": "#/inscricaoMunicipal" },
|
|
408
|
-
"codigoMunicipio": { "$ref": "#/codigoMunicipioIbge" }
|
|
408
|
+
"codigoMunicipio": { "$ref": "#/codigoMunicipioIbge" }
|
|
409
409
|
},
|
|
410
410
|
"required": ["numero", "cnpj"],
|
|
411
411
|
"additionalProperties": false
|
|
@@ -12,18 +12,18 @@ module Rnfse::API::IssNet10
|
|
|
12
12
|
]
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
def recepcionar_lote_rps(hash = {})
|
|
16
|
+
validate_sign_options
|
|
17
|
+
validate_options(hash)
|
|
18
|
+
xml = xml_builder.build_recepcionar_lote_rps_xml(hash)
|
|
19
|
+
xml.sign!(certificate: File.read(self.certificate), key: File.read(self.key))
|
|
20
|
+
response = self.soap_client.call(
|
|
21
|
+
:recepcionar_lote_rps,
|
|
22
|
+
soap_action: 'RecepcionarLoteRps',
|
|
23
|
+
message_tag: 'RecepcionarLoteRps',
|
|
24
|
+
message: { :'xml!' => "<![CDATA[#{xml}]]>" })
|
|
25
|
+
parse_response(response)
|
|
26
|
+
end
|
|
27
27
|
|
|
28
28
|
def consultar_situacao_lote_rps(hash = {})
|
|
29
29
|
validate_options(hash)
|
data/lib/rnfse/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rnfse
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Renan Mendes Carvalho
|
|
@@ -196,14 +196,14 @@ dependencies:
|
|
|
196
196
|
name: codeclimate-test-reporter
|
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
|
198
198
|
requirements:
|
|
199
|
-
- - "
|
|
199
|
+
- - "~>"
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
201
|
version: '0'
|
|
202
202
|
type: :development
|
|
203
203
|
prerelease: false
|
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
|
206
|
-
- - "
|
|
206
|
+
- - "~>"
|
|
207
207
|
- !ruby/object:Gem::Version
|
|
208
208
|
version: '0'
|
|
209
209
|
- !ruby/object:Gem::Dependency
|
|
@@ -362,7 +362,6 @@ files:
|
|
|
362
362
|
- lib/rnfse.rb
|
|
363
363
|
- lib/rnfse/api.rb
|
|
364
364
|
- lib/rnfse/api/abrasf_1_0.rb
|
|
365
|
-
- lib/rnfse/api/abrasf_1_0/#definitions.json#
|
|
366
365
|
- lib/rnfse/api/abrasf_1_0/cancelar_nfse.json
|
|
367
366
|
- lib/rnfse/api/abrasf_1_0/consultar_lote_rps.json
|
|
368
367
|
- lib/rnfse/api/abrasf_1_0/consultar_nfse.json
|
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"numeroNfse": {
|
|
3
|
-
"description": "Número da Nota Fiscal de Serviço Eletrônica, formado pelo ano com 04 (quatro) dígitos e um número seqüencial com 11 posições – Formato AAAANNNNNNNNNNN.",
|
|
4
|
-
"type": "integer",
|
|
5
|
-
"minimum": 190000000000000,
|
|
6
|
-
"maximum": 220099999999999
|
|
7
|
-
},
|
|
8
|
-
"codigoVerificacao": {
|
|
9
|
-
"description": "Código de verificação do número da nota",
|
|
10
|
-
"type": "string",
|
|
11
|
-
"maxLength": 9
|
|
12
|
-
},
|
|
13
|
-
"statusRps": {
|
|
14
|
-
"description": "Código de status do RPS 1 – Normal ; 2 – Cancelado",
|
|
15
|
-
"type": "integer",
|
|
16
|
-
"minimum": 1,
|
|
17
|
-
"maximum": 2
|
|
18
|
-
},
|
|
19
|
-
"statusNfse": {
|
|
20
|
-
"description": "Código de status da NFS-e 1 – Normal ; 2 – Cancelado",
|
|
21
|
-
"type": "integer",
|
|
22
|
-
"minimum": 1,
|
|
23
|
-
"maximum": 2
|
|
24
|
-
},
|
|
25
|
-
"naturezaOperacao": {
|
|
26
|
-
"description": "Código de natureza da operação 1 – Tributação no município ; 2 - Tributação fora do município ; 3 - Isenção ; 4 - Imune ; 5 – Exigibilidade suspensa por decisão judicial ; 6 – Exigibilidade suspensa por procedimento administrativo ",
|
|
27
|
-
"type": "integer",
|
|
28
|
-
"minimum": 1,
|
|
29
|
-
"maximum": 6
|
|
30
|
-
},
|
|
31
|
-
"regimeEspecialTributacao": {
|
|
32
|
-
"description": "Código de natureza da operação 1 – Tributação no município ; 2 - Tributação fora do município ; 3 - Isenção ; 4 - Imune ; 5 – Exigibilidade suspensa por decisão judicial ; 6 – Exigibilidade suspensa por procedimento administrativo ",
|
|
33
|
-
"type": "integer",
|
|
34
|
-
"minimum": 1,
|
|
35
|
-
"maximum": 6
|
|
36
|
-
},
|
|
37
|
-
"simNao": {
|
|
38
|
-
"type": "boolean"
|
|
39
|
-
},
|
|
40
|
-
"quantidadeRps": {
|
|
41
|
-
"description": "Quantidade de RPS do Lote",
|
|
42
|
-
"type": "integer",
|
|
43
|
-
"minimum": 1,
|
|
44
|
-
"maximum": 9999
|
|
45
|
-
},
|
|
46
|
-
"numeroRps": {
|
|
47
|
-
"description": "Número do RPS",
|
|
48
|
-
"type": "integer",
|
|
49
|
-
"minimum": 0,
|
|
50
|
-
"maximum": 999999999999999
|
|
51
|
-
},
|
|
52
|
-
"serieRps": {
|
|
53
|
-
"description": "Número de série do RPS",
|
|
54
|
-
"type": "string",
|
|
55
|
-
"maxLength": 5
|
|
56
|
-
},
|
|
57
|
-
"tipoRps": {
|
|
58
|
-
"description": "Código de tipo de RPS 1 - RPS ; 2 – Nota Fiscal Conjugada (Mista) ; 3 – Cupom",
|
|
59
|
-
"type": "integer",
|
|
60
|
-
"minimum": 1,
|
|
61
|
-
"maximum": 3
|
|
62
|
-
},
|
|
63
|
-
"outrasInformacoes": {
|
|
64
|
-
"description": "Informações adicionais ao documento",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"maxLength": 255
|
|
67
|
-
},
|
|
68
|
-
"valor": {
|
|
69
|
-
"description": "Valor monetário. Formato: 0.00 (ponto separando casa decimal) Ex: 1.234,56 = 1234.56 ; 1.000,00 = 1000.00 ; 1.000,00 = 1000",
|
|
70
|
-
"type": "number",
|
|
71
|
-
"minimum": 0,
|
|
72
|
-
"maximum": 9999999999999.99
|
|
73
|
-
},
|
|
74
|
-
"itemListaServico": {
|
|
75
|
-
"description": "Código de item da lista de serviço",
|
|
76
|
-
"type": "string",
|
|
77
|
-
"maxLength": 5
|
|
78
|
-
},
|
|
79
|
-
"codigoCnae": {
|
|
80
|
-
"description": "Código CNAE. Formato: 0000-0/00",
|
|
81
|
-
"type": "string",
|
|
82
|
-
"pattern": "^[0-9]{4}-[0-9]{1}/[0-9]{2}$"
|
|
83
|
-
},
|
|
84
|
-
"codigoTributacao": {
|
|
85
|
-
"description": "Código de Tributação",
|
|
86
|
-
"type": "string",
|
|
87
|
-
"maxLength": 20
|
|
88
|
-
},
|
|
89
|
-
"aliquota": {
|
|
90
|
-
"description": "Alíquota. Valor percentual. Formato: 0.0000 Ex: 1% = 0.01 ; 25,5% = 0.255 ; 100% = 1.0000 ou 1",
|
|
91
|
-
"type": "numeric",
|
|
92
|
-
"minimum": 0,
|
|
93
|
-
"maximum": 1
|
|
94
|
-
},
|
|
95
|
-
"discriminacao": {
|
|
96
|
-
"description": "Discriminação do conteúdo da NFS-e",
|
|
97
|
-
"type": "string",
|
|
98
|
-
"maxLength": 2000
|
|
99
|
-
},
|
|
100
|
-
"codigoMunicipioIbge": {
|
|
101
|
-
"description": "Código de identificação do município conforme tabela do IBGE",
|
|
102
|
-
"type": "integer",
|
|
103
|
-
"minimum": 1,
|
|
104
|
-
"maximum": 9999999
|
|
105
|
-
},
|
|
106
|
-
"inscricaoMunicipal": {
|
|
107
|
-
"description": "Número de inscrição municipal",
|
|
108
|
-
"type": "string",
|
|
109
|
-
"maxLength": 15
|
|
110
|
-
},
|
|
111
|
-
"razaoSocial": {
|
|
112
|
-
"description": "Razão Social do contribuinte",
|
|
113
|
-
"type": "string",
|
|
114
|
-
"maxLength": 115
|
|
115
|
-
},
|
|
116
|
-
"nomeFantasia": {
|
|
117
|
-
"description": "Nome fantasia",
|
|
118
|
-
"type": "string",
|
|
119
|
-
"maxLength": 60
|
|
120
|
-
},
|
|
121
|
-
"cnpj": {
|
|
122
|
-
"description": "Número CNPJ. Formato: 00.000.000/0000-00",
|
|
123
|
-
"type": "string",
|
|
124
|
-
"pattern": "^[0-9]{2}\.[0-9]{3}\.[0-9]{3}/[0-9]{4}-[0-9]{2}$"
|
|
125
|
-
},
|
|
126
|
-
"endereco": {
|
|
127
|
-
"description": "Endereço",
|
|
128
|
-
"type": "string",
|
|
129
|
-
"maxLength": 125
|
|
130
|
-
},
|
|
131
|
-
"numeroEndereco": {
|
|
132
|
-
"description": "Número do endereço",
|
|
133
|
-
"type": "string",
|
|
134
|
-
"maxLength": 10
|
|
135
|
-
},
|
|
136
|
-
"complementoEndereco": {
|
|
137
|
-
"description": "Número do endereço",
|
|
138
|
-
"type": "string",
|
|
139
|
-
"maxLength": 60
|
|
140
|
-
},
|
|
141
|
-
"bairro": {
|
|
142
|
-
"description": "Bairro",
|
|
143
|
-
"type": "string",
|
|
144
|
-
"maxLength": 60
|
|
145
|
-
},
|
|
146
|
-
"uf": {
|
|
147
|
-
"description": "Sigla da unidade federativa",
|
|
148
|
-
"type": "string",
|
|
149
|
-
"enum": ["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]
|
|
150
|
-
},
|
|
151
|
-
"cep": {
|
|
152
|
-
"description": "Número do CEP. Formato: 00000-000",
|
|
153
|
-
"type": "string",
|
|
154
|
-
"pattern": "^[0-9]{5}-[0-9]{3}$"
|
|
155
|
-
},
|
|
156
|
-
"email": {
|
|
157
|
-
"description": "E-mail",
|
|
158
|
-
"type": "string",
|
|
159
|
-
"format": "email"
|
|
160
|
-
},
|
|
161
|
-
"telefone": {
|
|
162
|
-
"description": "Telefone",
|
|
163
|
-
"type": "string",
|
|
164
|
-
"maxLength": 11
|
|
165
|
-
},
|
|
166
|
-
"cpf": {
|
|
167
|
-
"description": "Número de CPF. Formato: 000.000.000-00",
|
|
168
|
-
"type": "string",
|
|
169
|
-
"pattern": "^[0-9]{3}\.[0-9]{3}\.[0-9]{3}-[0-9]{2}$"
|
|
170
|
-
},
|
|
171
|
-
"indicacaoCpfCnpj": {
|
|
172
|
-
"description": "Indicador de uso de CPF ou CNPJ 1 – CPF ; 2 – CNPJ ; 3 – Não Informado",
|
|
173
|
-
"type": "integer",
|
|
174
|
-
"minimum": 1,
|
|
175
|
-
"maximum": 3
|
|
176
|
-
},
|
|
177
|
-
"codigoObra": {
|
|
178
|
-
"description": "Código de Obra",
|
|
179
|
-
"type": "string",
|
|
180
|
-
"maxLength": 15
|
|
181
|
-
},
|
|
182
|
-
"art": {
|
|
183
|
-
"description": "Código ART",
|
|
184
|
-
"type": "string",
|
|
185
|
-
"maxLength": 15
|
|
186
|
-
},
|
|
187
|
-
"numeroLote": {
|
|
188
|
-
"description": "Número do Lote de RPS",
|
|
189
|
-
"type": "integer",
|
|
190
|
-
"minimum": 1,
|
|
191
|
-
"maximum": 999999999999999
|
|
192
|
-
},
|
|
193
|
-
"numeroProtocolo": {
|
|
194
|
-
"description": "Número do protocolo de recebimento do RPS",
|
|
195
|
-
"type": "string",
|
|
196
|
-
"maxLength": 50
|
|
197
|
-
},
|
|
198
|
-
"situacaoLoteRps": {
|
|
199
|
-
"description": "Código de situação de lote de RPS 1 – Não Recebido ; 2 – Não Processado ; 3 – Processado com Erro ; 4 – Processado com Sucesso",
|
|
200
|
-
"type": "integer",
|
|
201
|
-
"minimum": 1,
|
|
202
|
-
"maximum": 4
|
|
203
|
-
},
|
|
204
|
-
"codigoMensagemAlerta": {
|
|
205
|
-
"description": "Código de mensagem de retorno de serviço",
|
|
206
|
-
"type": "string",
|
|
207
|
-
"maxLength": 4
|
|
208
|
-
},
|
|
209
|
-
"descricaoMensagemAlerta": {
|
|
210
|
-
"description": "Descrição da mensagem de retorno de serviço",
|
|
211
|
-
"type": "string",
|
|
212
|
-
"maxLength": 200
|
|
213
|
-
},
|
|
214
|
-
"codigoCancelamentoNfse": {
|
|
215
|
-
"description": "Código de cancelamento com base na tabela de Erros e alertas",
|
|
216
|
-
"type": "string",
|
|
217
|
-
"maxLength": 4
|
|
218
|
-
},
|
|
219
|
-
"idTag": {
|
|
220
|
-
"description": "Atributo de identificação da tag a ser assinada no documento XML",
|
|
221
|
-
"type": "string",
|
|
222
|
-
"maxLength": 255
|
|
223
|
-
},
|
|
224
|
-
"identificacaoRps": {
|
|
225
|
-
"description": "Dados de identificação do RPS",
|
|
226
|
-
"type": "object",
|
|
227
|
-
"properties": {
|
|
228
|
-
"numero": { "$ref": "#/numeroRps" },
|
|
229
|
-
"serie": { "$ref": "#/serieRps" },
|
|
230
|
-
"tipo": { "$ref": "#/tipoRps" }
|
|
231
|
-
},
|
|
232
|
-
"required": ["numero", "serie", "tipo"],
|
|
233
|
-
"additionalProperties": false
|
|
234
|
-
},
|
|
235
|
-
"dadosServico": {
|
|
236
|
-
"description": "Representa dados que compõe o serviço prestado",
|
|
237
|
-
"type": "object",
|
|
238
|
-
"properties": {
|
|
239
|
-
"valores": {
|
|
240
|
-
"type": "object",
|
|
241
|
-
"properties": {
|
|
242
|
-
"valorServicos": { "$ref": "#/valor" },
|
|
243
|
-
"valorDeducoes": { "$ref": "#/valor" },
|
|
244
|
-
"valorPis": { "$ref": "#/valor" },
|
|
245
|
-
"valorCofins": { "$ref": "#/valor" },
|
|
246
|
-
"valorInss": { "$ref": "#/valor" },
|
|
247
|
-
"valorIr": { "$ref": "#/valor" },
|
|
248
|
-
"valorCsll": { "$ref": "#/valor" },
|
|
249
|
-
"issRetido": { "type": "boolean" },
|
|
250
|
-
"valorIss": { "$ref": "#/valor" },
|
|
251
|
-
"outrasRetencoes": { "$ref": "#/valor" },
|
|
252
|
-
"baseCalculo": {
|
|
253
|
-
"description": "(Valor dos serviços - Valor das deduções - descontos incondicionados)",
|
|
254
|
-
"$ref": "#/valor"
|
|
255
|
-
},
|
|
256
|
-
"aliquota": { "$ref": "#/aliquota" },
|
|
257
|
-
"valorLiquidoNfse": {
|
|
258
|
-
"description": "(ValorServicos - ValorPIS - ValorCOFINS - ValorINSS - ValorIR - ValorCSLL - OutrasRetençoes - ValorISSRetido - DescontoIncondicionado - DescontoCondicionado)",
|
|
259
|
-
"$ref": "#/valor"
|
|
260
|
-
},
|
|
261
|
-
"valorIssRetido": { "$ref": "#/valor" },
|
|
262
|
-
"descontoCondicionado": { "$ref": "#/valor" },
|
|
263
|
-
"descontoIncondicionado": { "$ref": "#/valor" }
|
|
264
|
-
},
|
|
265
|
-
"required": ["valorServicos", "issRetido", "baseCalculo"],
|
|
266
|
-
"additionalProperties": false
|
|
267
|
-
},
|
|
268
|
-
"itemListaServico": { "$ref": "#/itemListaServico" },
|
|
269
|
-
"codigoCnae": { "$ref": "#/codigoCnae" },
|
|
270
|
-
"codigoTributacaoMunicipio": { "$ref": "#/codigoTributacao" },
|
|
271
|
-
"discriminacao": { "$ref": "#/discriminacao" },
|
|
272
|
-
"codigoMunicipio": { "$ref": "#/codigoMunicipioIbge" }
|
|
273
|
-
},
|
|
274
|
-
"required": ["valores", "itemListaServico", "discriminacao", "codigoMunicipio"],
|
|
275
|
-
"additionalProperties": false
|
|
276
|
-
},
|
|
277
|
-
"identificacaoPrestador": {
|
|
278
|
-
"description": "Representa dados para identificação do prestador de serviço",
|
|
279
|
-
"oneOf": [
|
|
280
|
-
{
|
|
281
|
-
"type": "object",
|
|
282
|
-
"properties": {
|
|
283
|
-
"inscricaoMunicipal": { "$ref": "#/inscricaoMunicipal" },
|
|
284
|
-
"cnpj": { "$ref": "#/cnpj" }
|
|
285
|
-
},
|
|
286
|
-
"required": ["cnpj"],
|
|
287
|
-
"additionalProperties": false
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"type": "object",
|
|
291
|
-
"properties": {
|
|
292
|
-
"inscricaoMunicipal": { "$ref": "#/inscricaoMunicipal" },
|
|
293
|
-
"cpf": { "$ref": "#/cpf" }
|
|
294
|
-
},
|
|
295
|
-
"required": ["cpf"],
|
|
296
|
-
"additionalProperties": false
|
|
297
|
-
}
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
"dadosTomador": {
|
|
301
|
-
"description": "Representa dados do tomador de serviço",
|
|
302
|
-
"type": "object",
|
|
303
|
-
"properties": {
|
|
304
|
-
"identificacaoTomador": { "$ref": "#/identificacaoTomador" },
|
|
305
|
-
"razaoSocial": { "$ref": "#/razaoSocial" },
|
|
306
|
-
"endereco": { "$ref": "#/enderecoCompleto" },
|
|
307
|
-
"contato": { "$ref": "#/contato" }
|
|
308
|
-
},
|
|
309
|
-
"additionalProperties": false
|
|
310
|
-
},
|
|
311
|
-
"identificacaoTomador": {
|
|
312
|
-
"description": "Representa dados para identificação do tomador de serviço",
|
|
313
|
-
"oneOf": [
|
|
314
|
-
{
|
|
315
|
-
"type": "object",
|
|
316
|
-
"properties": {
|
|
317
|
-
"inscricaoMunicipal": { "$ref": "#/inscricaoMunicipal" },
|
|
318
|
-
"cnpj": { "$ref": "#/cnpj" }
|
|
319
|
-
},
|
|
320
|
-
"additionalProperties": false
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"type": "object",
|
|
324
|
-
"properties": {
|
|
325
|
-
"cpf": { "$ref": "#/cpf" }
|
|
326
|
-
},
|
|
327
|
-
"additionalProperties": false
|
|
328
|
-
}
|
|
329
|
-
]
|
|
330
|
-
},
|
|
331
|
-
"enderecoCompleto": {
|
|
332
|
-
"description": "Representação completa do endereço.",
|
|
333
|
-
"type": "object",
|
|
334
|
-
"properties": {
|
|
335
|
-
"endereco": { "$ref": "#/endereco" },
|
|
336
|
-
"numero": { "$ref": "#/numeroEndereco" },
|
|
337
|
-
"complemento": { "$ref": "#/complementoEndereco" },
|
|
338
|
-
"bairro": { "$ref": "#/bairro" },
|
|
339
|
-
"codigoMunicipio": { "$ref": "#/codigoMunicipioIbge" },
|
|
340
|
-
"uf": { "$ref": "#/uf" },
|
|
341
|
-
"cep": { "$ref": "#/cep" }
|
|
342
|
-
},
|
|
343
|
-
"required": [],
|
|
344
|
-
"additionalProperties": false
|
|
345
|
-
},
|
|
346
|
-
"contato": {
|
|
347
|
-
"description": "Representa forma de contato com a pessoa (física/jurídica)",
|
|
348
|
-
"type": "object",
|
|
349
|
-
"properties": {
|
|
350
|
-
"telefone": { "$ref": "#/telefone" },
|
|
351
|
-
"email": { "$ref": "#/email" }
|
|
352
|
-
},
|
|
353
|
-
"required": [],
|
|
354
|
-
"additionalProperties": false
|
|
355
|
-
},
|
|
356
|
-
"identificacaoIntermediarioServico": {
|
|
357
|
-
"description": "Representa dados para identificação de intermediário do serviço",
|
|
358
|
-
"oneOf": [
|
|
359
|
-
{
|
|
360
|
-
"type": "object",
|
|
361
|
-
"properties": {
|
|
362
|
-
"razaoSocial": { "$ref": "#/razaoSocial" },
|
|
363
|
-
"cnpj": { "$ref": "#/cnpj" },
|
|
364
|
-
"inscricaoMunicipal": { "$ref": "#/inscricaoMunicipal" }
|
|
365
|
-
},
|
|
366
|
-
"required": ["razaoSocial", "cnpj"],
|
|
367
|
-
"additionalProperties": false
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"type": "object",
|
|
371
|
-
"properties": {
|
|
372
|
-
"razaoSocial": { "$ref": "#/razaoSocial" },
|
|
373
|
-
"cpf": { "$ref": "#/cpf" },
|
|
374
|
-
"inscricaoMunicipal": { "$ref": "#/inscricaoMunicipal" }
|
|
375
|
-
},
|
|
376
|
-
"required": ["cpf"],
|
|
377
|
-
"additionalProperties": false
|
|
378
|
-
}
|
|
379
|
-
]
|
|
380
|
-
},
|
|
381
|
-
"dadosConstrucaoCivil": {
|
|
382
|
-
"description": "Representa dados para identificação de intermediário do serviço",
|
|
383
|
-
"type": "object",
|
|
384
|
-
"properties": {
|
|
385
|
-
"codigoObra": { "$ref": "#/codigoObra" },
|
|
386
|
-
"art": { "$ref": "#/art" }
|
|
387
|
-
},
|
|
388
|
-
"required": [],
|
|
389
|
-
"additionalProperties": false
|
|
390
|
-
},
|
|
391
|
-
"data": {
|
|
392
|
-
"description": "Data como representada no padrão RFC 3339 section 5.6",
|
|
393
|
-
"type": "string",
|
|
394
|
-
"format": "date-time"
|
|
395
|
-
},
|
|
396
|
-
"codigoCancelamentoNfse": {
|
|
397
|
-
"description": "Código de cancelamento com base na tabela de erros e alertas",
|
|
398
|
-
"type": "string",
|
|
399
|
-
"maxLength": 4
|
|
400
|
-
},
|
|
401
|
-
"identificacaoNfse": {
|
|
402
|
-
"description": "Representa dados que identificam uma Nota Fiscal de Serviços Eletrônica",
|
|
403
|
-
"type": "object",
|
|
404
|
-
"properties": {
|
|
405
|
-
"numero": { "$ref": "#/numeroNfse" },
|
|
406
|
-
"cnpj": { "$ref": "#/cnpj" },
|
|
407
|
-
"inscricaoMunicipal": { "$ref": "#/inscricaoMunicipal" },
|
|
408
|
-
"codigoMunicipio": { "$ref": "#/codigoMunicipioIbge" },
|
|
409
|
-
},
|
|
410
|
-
"required": ["numero", "cnpj"],
|
|
411
|
-
"additionalProperties": false
|
|
412
|
-
}
|
|
413
|
-
}
|