@@ -224,11 +224,6 @@ class RvDetalleEntry(RcvDetalleEntry):
224
224
RCV_KIND = RcvKind .VENTAS
225
225
RC_ESTADO_CONTABLE = None
226
226
227
- emisor_razon_social : Optional [str ] = dc_field ()
228
- """
229
- "Razón social" (legal name) of the "emisor" of the "documento".
230
- """
231
-
232
227
# TODO: docstring
233
228
# TODO: can it be None? What happens for those "tipo docto" that do not have a receptor?
234
229
receptor_razon_social : str = dc_field ()
@@ -244,11 +239,6 @@ class RvDetalleEntry(RcvDetalleEntry):
244
239
def __post_init__ (self ) -> None :
245
240
super ().__post_init__ ()
246
241
247
- if self .emisor_razon_social is not None :
248
- if not isinstance (self .emisor_razon_social , str ):
249
- raise TypeError ("Inappropriate type of 'emisor_razon_social'." )
250
- cl_sii .dte .data_models .validate_contribuyente_razon_social (self .emisor_razon_social )
251
-
252
242
if not isinstance (self .receptor_razon_social , str ):
253
243
raise TypeError ("Inappropriate type of 'receptor_razon_social'." )
254
244
cl_sii .dte .data_models .validate_contribuyente_razon_social (self .receptor_razon_social )
@@ -279,10 +269,6 @@ class RcRegistroDetalleEntry(RcvDetalleEntry):
279
269
"Razón social" (legal name) of the "emisor" of the "documento".
280
270
"""
281
271
282
- # TODO: docstring
283
- # TODO: can it be None? What happens for those "tipo docto" that do not have a receptor?
284
- receptor_razon_social : Optional [str ] = dc_field ()
285
-
286
272
# TODO: docstring
287
273
# note: must be timezone-aware.
288
274
fecha_acuse_dt : Optional [datetime ] = dc_field ()
@@ -294,11 +280,6 @@ def __post_init__(self) -> None:
294
280
raise TypeError ("Inappropriate type of 'emisor_razon_social'." )
295
281
cl_sii .dte .data_models .validate_contribuyente_razon_social (self .emisor_razon_social )
296
282
297
- if self .receptor_razon_social is not None :
298
- if not isinstance (self .receptor_razon_social , str ):
299
- raise TypeError ("Inappropriate type of 'receptor_razon_social'." )
300
- cl_sii .dte .data_models .validate_contribuyente_razon_social (self .receptor_razon_social )
301
-
302
283
if self .fecha_acuse_dt is not None :
303
284
if not isinstance (self .fecha_acuse_dt , datetime ):
304
285
raise TypeError ("Inappropriate type of 'fecha_acuse_dt'." )
@@ -331,10 +312,6 @@ class RcReclamadoDetalleEntry(RcvDetalleEntry):
331
312
"Razón social" (legal name) of the "emisor" of the "documento".
332
313
"""
333
314
334
- # TODO: docstring
335
- # TODO: can it be None? What happens for those "tipo docto" that do not have a receptor?
336
- receptor_razon_social : Optional [str ] = dc_field ()
337
-
338
315
# TODO: docstring
339
316
# note: must be timezone-aware.
340
317
fecha_reclamo_dt : Optional [datetime ] = dc_field ()
@@ -346,11 +323,6 @@ def __post_init__(self) -> None:
346
323
raise TypeError ("Inappropriate type of 'emisor_razon_social'." )
347
324
cl_sii .dte .data_models .validate_contribuyente_razon_social (self .emisor_razon_social )
348
325
349
- if self .receptor_razon_social is not None :
350
- if not isinstance (self .receptor_razon_social , str ):
351
- raise TypeError ("Inappropriate type of 'receptor_razon_social'." )
352
- cl_sii .dte .data_models .validate_contribuyente_razon_social (self .receptor_razon_social )
353
-
354
326
if self .fecha_reclamo_dt is not None :
355
327
if not isinstance (self .fecha_reclamo_dt , datetime ):
356
328
raise TypeError ("Inappropriate type of 'fecha_reclamo_dt'." )
@@ -372,18 +344,9 @@ class RcPendienteDetalleEntry(RcvDetalleEntry):
372
344
"Razón social" (legal name) of the "emisor" of the "documento".
373
345
"""
374
346
375
- # TODO: docstring
376
- # TODO: can it be None? What happens for those "tipo docto" that do not have a receptor?
377
- receptor_razon_social : Optional [str ] = dc_field ()
378
-
379
347
def __post_init__ (self ) -> None :
380
348
super ().__post_init__ ()
381
349
382
350
if not isinstance (self .emisor_razon_social , str ):
383
351
raise TypeError ("Inappropriate type of 'emisor_razon_social'." )
384
352
cl_sii .dte .data_models .validate_contribuyente_razon_social (self .emisor_razon_social )
385
-
386
- if self .receptor_razon_social is not None :
387
- if not isinstance (self .receptor_razon_social , str ):
388
- raise TypeError ("Inappropriate type of 'receptor_razon_social'." )
389
- cl_sii .dte .data_models .validate_contribuyente_razon_social (self .receptor_razon_social )
0 commit comments