1616 InvoiceItem ,
1717 ItemTax ,
1818)
19- from fiscalapi .models .bill_of_lading_models import (
20- LadingComplement ,
19+ from fiscalapi .models .carta_porte_models import (
20+ CartaPorteComplement ,
2121 Ubicacion ,
2222 UbicacionDomicilio ,
2323 TipoFiguraDomicilio ,
@@ -124,7 +124,7 @@ def create_factura_autotransporte_nacional():
124124 )
125125 ],
126126 complement = InvoiceComplement (
127- lading = LadingComplement (
127+ carta_porte = CartaPorteComplement (
128128 transp_internac_id = "No" ,
129129 total_dist_rec = Decimal ("1" ),
130130 registro_istmo_id = "Sí" ,
@@ -241,7 +241,7 @@ def create_factura_autotransporte_nacional_con_impuestos():
241241 )
242242 ],
243243 complement = InvoiceComplement (
244- lading = LadingComplement (
244+ carta_porte = CartaPorteComplement (
245245 transp_internac_id = "No" ,
246246 total_dist_rec = Decimal ("1" ),
247247 registro_istmo_id = "Sí" ,
@@ -366,7 +366,7 @@ def create_factura_autotransporte_extranjero():
366366 )
367367 ],
368368 complement = InvoiceComplement (
369- lading = LadingComplement (
369+ carta_porte = CartaPorteComplement (
370370 transp_internac_id = "Sí" ,
371371 entrada_salida_merc_id = "Salida" ,
372372 pais_origen_destino_id = "USA" ,
@@ -475,7 +475,7 @@ def create_factura_autotransporte_internacional_aduanero():
475475 )
476476 ],
477477 complement = InvoiceComplement (
478- lading = LadingComplement (
478+ carta_porte = CartaPorteComplement (
479479 transp_internac_id = "Sí" ,
480480 entrada_salida_merc_id = "Entrada" ,
481481 pais_origen_destino_id = "USA" ,
@@ -629,7 +629,7 @@ def create_factura_ferroviario_nacional():
629629 )
630630 ],
631631 complement = InvoiceComplement (
632- lading = LadingComplement (
632+ carta_porte = CartaPorteComplement (
633633 transp_internac_id = "No" ,
634634 total_dist_rec = Decimal ("500" ),
635635 registro_istmo_id = "Sí" ,
@@ -788,7 +788,7 @@ def create_factura_ferroviario_extranjero():
788788 )
789789 ],
790790 complement = InvoiceComplement (
791- lading = LadingComplement (
791+ carta_porte = CartaPorteComplement (
792792 transp_internac_id = "Sí" ,
793793 entrada_salida_merc_id = "Salida" ,
794794 pais_origen_destino_id = "USA" ,
@@ -950,7 +950,7 @@ def create_factura_ferroviario_internacional_aduanero():
950950 )
951951 ],
952952 complement = InvoiceComplement (
953- lading = LadingComplement (
953+ carta_porte = CartaPorteComplement (
954954 transp_internac_id = "Sí" ,
955955 entrada_salida_merc_id = "Entrada" ,
956956 pais_origen_destino_id = "AFG" ,
@@ -1119,7 +1119,7 @@ def create_factura_aereo_nacional():
11191119 )
11201120 ],
11211121 complement = InvoiceComplement (
1122- lading = LadingComplement (
1122+ carta_porte = CartaPorteComplement (
11231123 transp_internac_id = "No" ,
11241124 peso_neto_total = Decimal ("10" ),
11251125 unidad_peso_id = "XBX" ,
@@ -1301,7 +1301,7 @@ def create_factura_aereo_extranjero():
13011301 )
13021302 ],
13031303 complement = InvoiceComplement (
1304- lading = LadingComplement (
1304+ carta_porte = CartaPorteComplement (
13051305 transp_internac_id = "Sí" ,
13061306 entrada_salida_merc_id = "Salida" ,
13071307 pais_origen_destino_id = "USA" ,
@@ -1444,7 +1444,7 @@ def create_factura_aereo_internacional_aduanero():
14441444 )
14451445 ],
14461446 complement = InvoiceComplement (
1447- lading = LadingComplement (
1447+ carta_porte = CartaPorteComplement (
14481448 transp_internac_id = "Sí" ,
14491449 entrada_salida_merc_id = "Entrada" ,
14501450 pais_origen_destino_id = "AFG" ,
@@ -1595,7 +1595,7 @@ def create_factura_maritimo_nacional():
15951595 )
15961596 ],
15971597 complement = InvoiceComplement (
1598- lading = LadingComplement (
1598+ carta_porte = CartaPorteComplement (
15991599 transp_internac_id = "No" ,
16001600 unidad_peso_id = "XBX" ,
16011601 peso_neto_total = Decimal ("1" ),
@@ -1724,7 +1724,7 @@ def create_factura_maritimo_extranjero():
17241724 )
17251725 ],
17261726 complement = InvoiceComplement (
1727- lading = LadingComplement (
1727+ carta_porte = CartaPorteComplement (
17281728 transp_internac_id = "Sí" ,
17291729 entrada_salida_merc_id = "Salida" ,
17301730 pais_origen_destino_id = "USA" ,
@@ -1858,7 +1858,7 @@ def create_factura_maritimo_internacional_aduanero():
18581858 )
18591859 ],
18601860 complement = InvoiceComplement (
1861- lading = LadingComplement (
1861+ carta_porte = CartaPorteComplement (
18621862 transp_internac_id = "Sí" ,
18631863 entrada_salida_merc_id = "Entrada" ,
18641864 pais_origen_destino_id = "AFG" ,
@@ -2074,7 +2074,7 @@ def create_factura_traslado_autotransporte_nacional():
20742074 )
20752075 ],
20762076 complement = InvoiceComplement (
2077- lading = LadingComplement (
2077+ carta_porte = CartaPorteComplement (
20782078 transp_internac_id = "No" ,
20792079 total_dist_rec = Decimal ("1" ),
20802080 registro_istmo_id = "Sí" ,
@@ -2207,7 +2207,7 @@ def create_factura_traslado_autotransporte_extranjero():
22072207 )
22082208 ],
22092209 complement = InvoiceComplement (
2210- lading = LadingComplement (
2210+ carta_porte = CartaPorteComplement (
22112211 transp_internac_id = "Sí" ,
22122212 entrada_salida_merc_id = "Salida" ,
22132213 pais_origen_destino_id = "USA" ,
@@ -2339,7 +2339,7 @@ def create_factura_traslado_autotransporte_internacional_aduanero():
23392339 )
23402340 ],
23412341 complement = InvoiceComplement (
2342- lading = LadingComplement (
2342+ carta_porte = CartaPorteComplement (
23432343 transp_internac_id = "Sí" ,
23442344 entrada_salida_merc_id = "Entrada" ,
23452345 pais_origen_destino_id = "USA" ,
@@ -2550,7 +2550,7 @@ def _figura_traslado_ferroviario() -> TipoFigura:
25502550 )
25512551
25522552
2553- def _invoice_traslado_ferroviario_base (lading : LadingComplement ) -> Invoice :
2553+ def _invoice_traslado_ferroviario_base (carta_porte : CartaPorteComplement ) -> Invoice :
25542554 return Invoice (
25552555 version_code = "4.0" ,
25562556 currency_code = "XXX" ,
@@ -2575,7 +2575,7 @@ def _invoice_traslado_ferroviario_base(lading: LadingComplement) -> Invoice:
25752575 item_taxes = [],
25762576 )
25772577 ],
2578- complement = InvoiceComplement (lading = lading ),
2578+ complement = InvoiceComplement (carta_porte = carta_porte ),
25792579 )
25802580
25812581
@@ -2607,7 +2607,7 @@ def create_factura_traslado_ferroviario_nacional():
26072607 ),
26082608 )
26092609
2610- lading = LadingComplement (
2610+ carta_porte = CartaPorteComplement (
26112611 transp_internac_id = "No" ,
26122612 total_dist_rec = Decimal ("500" ),
26132613 registro_istmo_id = "Sí" ,
@@ -2639,7 +2639,7 @@ def create_factura_traslado_ferroviario_nacional():
26392639 tipos_figura = [_figura_traslado_ferroviario ()],
26402640 )
26412641
2642- invoice = _invoice_traslado_ferroviario_base (lading )
2642+ invoice = _invoice_traslado_ferroviario_base (carta_porte )
26432643 response = client .invoices .create (invoice )
26442644 if response .succeeded :
26452645 print (response .data )
@@ -2675,7 +2675,7 @@ def create_factura_traslado_ferroviario_extranjero():
26752675 ),
26762676 )
26772677
2678- lading = LadingComplement (
2678+ carta_porte = CartaPorteComplement (
26792679 transp_internac_id = "Sí" ,
26802680 entrada_salida_merc_id = "Salida" ,
26812681 pais_origen_destino_id = "USA" ,
@@ -2713,7 +2713,7 @@ def create_factura_traslado_ferroviario_extranjero():
27132713 tipos_figura = [_figura_traslado_ferroviario ()],
27142714 )
27152715
2716- invoice = _invoice_traslado_ferroviario_base (lading )
2716+ invoice = _invoice_traslado_ferroviario_base (carta_porte )
27172717 response = client .invoices .create (invoice )
27182718 if response .succeeded :
27192719 print (response .data )
@@ -2750,7 +2750,7 @@ def create_factura_traslado_ferroviario_internacional_aduanero():
27502750 ),
27512751 )
27522752
2753- lading = LadingComplement (
2753+ carta_porte = CartaPorteComplement (
27542754 transp_internac_id = "Sí" ,
27552755 entrada_salida_merc_id = "Entrada" ,
27562756 pais_origen_destino_id = "AFG" ,
@@ -2795,7 +2795,7 @@ def create_factura_traslado_ferroviario_internacional_aduanero():
27952795 tipos_figura = [_figura_traslado_ferroviario ()],
27962796 )
27972797
2798- invoice = _invoice_traslado_ferroviario_base (lading )
2798+ invoice = _invoice_traslado_ferroviario_base (carta_porte )
27992799 response = client .invoices .create (invoice )
28002800 if response .succeeded :
28012801 print (response .data )
@@ -2833,7 +2833,7 @@ def create_factura_traslado_aereo_nacional():
28332833 )
28342834 ],
28352835 complement = InvoiceComplement (
2836- lading = LadingComplement (
2836+ carta_porte = CartaPorteComplement (
28372837 transp_internac_id = "No" ,
28382838 unidad_peso_id = "XBX" ,
28392839 peso_neto_total = Decimal ("10" ),
@@ -2958,7 +2958,7 @@ def _transporte_aereo_base() -> TransporteAereo:
29582958 )
29592959
29602960
2961- def _invoice_traslado_base (lading : LadingComplement ) -> Invoice :
2961+ def _invoice_traslado_base (carta_porte : CartaPorteComplement ) -> Invoice :
29622962 return Invoice (
29632963 version_code = "4.0" ,
29642964 currency_code = "XXX" ,
@@ -2983,7 +2983,7 @@ def _invoice_traslado_base(lading: LadingComplement) -> Invoice:
29832983 item_taxes = [],
29842984 )
29852985 ],
2986- complement = InvoiceComplement (lading = lading ),
2986+ complement = InvoiceComplement (carta_porte = carta_porte ),
29872987 )
29882988
29892989
@@ -2992,7 +2992,7 @@ def _invoice_traslado_base(lading: LadingComplement) -> Invoice:
29922992# ============================================================================
29932993def create_factura_traslado_aereo_extranjero ():
29942994 invoice = _invoice_traslado_base (
2995- LadingComplement (
2995+ CartaPorteComplement (
29962996 transp_internac_id = "Sí" ,
29972997 entrada_salida_merc_id = "Salida" ,
29982998 pais_origen_destino_id = "USA" ,
@@ -3093,7 +3093,7 @@ def create_factura_traslado_aereo_extranjero():
30933093# ============================================================================
30943094def create_factura_traslado_aereo_internacional_aduanero ():
30953095 invoice = _invoice_traslado_base (
3096- LadingComplement (
3096+ CartaPorteComplement (
30973097 transp_internac_id = "Sí" ,
30983098 entrada_salida_merc_id = "Entrada" ,
30993099 pais_origen_destino_id = "AFG" ,
@@ -3288,7 +3288,7 @@ def _mercancia_maritimo_traslado(documentacion_aduanera=None, tipo_materia_id=No
32883288# ============================================================================
32893289def create_factura_traslado_maritimo_nacional ():
32903290 invoice = _invoice_traslado_base (
3291- LadingComplement (
3291+ CartaPorteComplement (
32923292 transp_internac_id = "No" ,
32933293 unidad_peso_id = "XBX" ,
32943294 peso_neto_total = Decimal ("1" ),
@@ -3360,7 +3360,7 @@ def create_factura_traslado_maritimo_extranjero():
33603360 ]
33613361
33623362 invoice = _invoice_traslado_base (
3363- LadingComplement (
3363+ CartaPorteComplement (
33643364 transp_internac_id = "Sí" ,
33653365 entrada_salida_merc_id = "Salida" ,
33663366 pais_origen_destino_id = "USA" ,
@@ -3388,7 +3388,7 @@ def create_factura_traslado_maritimo_extranjero():
33883388# ============================================================================
33893389def create_factura_traslado_maritimo_internacional_aduanero ():
33903390 invoice = _invoice_traslado_base (
3391- LadingComplement (
3391+ CartaPorteComplement (
33923392 transp_internac_id = "Sí" ,
33933393 entrada_salida_merc_id = "Entrada" ,
33943394 pais_origen_destino_id = "AFG" ,
0 commit comments