-
Notifications
You must be signed in to change notification settings - Fork 0
Added lading support #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| package com.fiscalapi; | ||
| package com.fiscalapi.examples; | ||
|
|
||
| //package com.fiscalapi; | ||
| // | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| package com.fiscalapi.models.invoicing.billOfLading; | ||
|
|
||
| import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
| import com.fiscalapi.serialization.BigDecimalSerializer; | ||
|
|
||
| import java.math.BigDecimal; | ||
| import java.util.List; | ||
|
|
||
| public class Autotransporte { | ||
| private String permSCTId; | ||
| private String numPermisoSCT; | ||
| private String configVehicularId; | ||
|
|
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal pesoBrutoVehicular; | ||
|
|
||
| private String placaVM; | ||
| private int anioModeloVM; | ||
| private String aseguraRespCivil; | ||
| private String polizaRespCivil; | ||
| private List<Remolque> remolques; | ||
|
|
||
| public String getPermSCTId() { | ||
| return permSCTId; | ||
| } | ||
|
|
||
| public void setPermSCTId(String permSCTId) { | ||
| this.permSCTId = permSCTId; | ||
| } | ||
|
|
||
| public String getNumPermisoSCT() { | ||
| return numPermisoSCT; | ||
| } | ||
|
|
||
| public void setNumPermisoSCT(String numPermisoSCT) { | ||
| this.numPermisoSCT = numPermisoSCT; | ||
| } | ||
|
|
||
| public String getConfigVehicularId() { | ||
| return configVehicularId; | ||
| } | ||
|
|
||
| public void setConfigVehicularId(String configVehicularId) { | ||
| this.configVehicularId = configVehicularId; | ||
| } | ||
|
|
||
| public BigDecimal getPesoBrutoVehicular() { | ||
| return pesoBrutoVehicular; | ||
| } | ||
|
|
||
| public void setPesoBrutoVehicular(BigDecimal pesoBrutoVehicular) { | ||
| this.pesoBrutoVehicular = pesoBrutoVehicular; | ||
| } | ||
|
|
||
| public String getPlacaVM() { | ||
| return placaVM; | ||
| } | ||
|
|
||
| public void setPlacaVM(String placaVM) { | ||
| this.placaVM = placaVM; | ||
| } | ||
|
|
||
| public int getAnioModeloVM() { | ||
| return anioModeloVM; | ||
| } | ||
|
|
||
| public void setAnioModeloVM(int anioModeloVM) { | ||
| this.anioModeloVM = anioModeloVM; | ||
| } | ||
|
|
||
| public String getAseguraRespCivil() { | ||
| return aseguraRespCivil; | ||
| } | ||
|
|
||
| public void setAseguraRespCivil(String aseguraRespCivil) { | ||
| this.aseguraRespCivil = aseguraRespCivil; | ||
| } | ||
|
|
||
| public String getPolizaRespCivil() { | ||
| return polizaRespCivil; | ||
| } | ||
|
|
||
| public void setPolizaRespCivil(String polizaRespCivil) { | ||
| this.polizaRespCivil = polizaRespCivil; | ||
| } | ||
|
|
||
| public List<Remolque> getRemolques() { | ||
| return remolques; | ||
| } | ||
|
|
||
| public void setRemolques(List<Remolque> remolques) { | ||
| this.remolques = remolques; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| package com.fiscalapi.models.invoicing.billOfLading; | ||
|
|
||
| import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
| import com.fiscalapi.serialization.BigDecimalSerializer; | ||
|
|
||
| import java.math.BigDecimal; | ||
|
|
||
| public class CantidadTransporta { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Line 8 declares this DTO as a standalone POJO instead of extending the project DTO base chain. As per coding guidelines 🤖 Prompt for AI Agents |
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal cantidad; | ||
|
|
||
| private String idOrigen; | ||
| private String idDestino; | ||
| private String cvesTransporteId; | ||
|
|
||
| public BigDecimal getCantidad() { | ||
| return cantidad; | ||
| } | ||
|
|
||
| public void setCantidad(BigDecimal cantidad) { | ||
| this.cantidad = cantidad; | ||
| } | ||
|
|
||
| public String getIdOrigen() { | ||
| return idOrigen; | ||
| } | ||
|
|
||
| public void setIdOrigen(String idOrigen) { | ||
| this.idOrigen = idOrigen; | ||
| } | ||
|
|
||
| public String getIdDestino() { | ||
| return idDestino; | ||
| } | ||
|
|
||
| public void setIdDestino(String idDestino) { | ||
| this.idDestino = idDestino; | ||
| } | ||
|
|
||
| public String getCvesTransporteId() { | ||
| return cvesTransporteId; | ||
| } | ||
|
|
||
| public void setCvesTransporteId(String cvesTransporteId) { | ||
| this.cvesTransporteId = cvesTransporteId; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,186 @@ | ||
| package com.fiscalapi.models.invoicing.billOfLading; | ||
|
|
||
| import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
| import com.fiscalapi.serialization.BigDecimalSerializer; | ||
|
|
||
| import java.math.BigDecimal; | ||
| import java.util.List; | ||
|
|
||
| public class CartaPorte { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Line 9 defines the class without the required As per coding guidelines: " 🤖 Prompt for AI Agents |
||
| private String transpInternacId; | ||
| private String entradaSalidaMercId; | ||
| private String paisOrigenDestinoId; | ||
| private String viaEntradaSalidaId; | ||
|
|
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal totalDistRec; | ||
|
|
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal pesoNetoTotal; | ||
|
|
||
| private String registroISTMOId; | ||
| private String ubicacionPoloOrigenId; | ||
| private String ubicacionPoloDestinoId; | ||
| private String unidadPesoId; | ||
| private String logisticaInversaRecoleccionDevolucionId; | ||
| private List<RegimenAduanero> regimenAduaneros; | ||
| private List<Ubicacion> ubicaciones; | ||
| private List<Mercancia> mercancias; | ||
| private Autotransporte autotransporte; | ||
| private TransporteMaritimo transporteMaritimo; | ||
| private TransporteAereo transporteAereo; | ||
| private TransporteFerroviario transporteFerroviario; | ||
| private List<TipoFigura> tiposFigura; | ||
|
|
||
| public String getTranspInternacId() { | ||
| return transpInternacId; | ||
| } | ||
|
|
||
| public void setTranspInternacId(String transpInternacId) { | ||
| this.transpInternacId = transpInternacId; | ||
| } | ||
|
|
||
| public String getEntradaSalidaMercId() { | ||
| return entradaSalidaMercId; | ||
| } | ||
|
|
||
| public void setEntradaSalidaMercId(String entradaSalidaMercId) { | ||
| this.entradaSalidaMercId = entradaSalidaMercId; | ||
| } | ||
|
|
||
| public String getPaisOrigenDestinoId() { | ||
| return paisOrigenDestinoId; | ||
| } | ||
|
|
||
| public void setPaisOrigenDestinoId(String paisOrigenDestinoId) { | ||
| this.paisOrigenDestinoId = paisOrigenDestinoId; | ||
| } | ||
|
|
||
| public String getViaEntradaSalidaId() { | ||
| return viaEntradaSalidaId; | ||
| } | ||
|
|
||
| public void setViaEntradaSalidaId(String viaEntradaSalidaId) { | ||
| this.viaEntradaSalidaId = viaEntradaSalidaId; | ||
| } | ||
|
|
||
| public BigDecimal getTotalDistRec() { | ||
| return totalDistRec; | ||
| } | ||
|
|
||
| public void setTotalDistRec(BigDecimal totalDistRec) { | ||
| this.totalDistRec = totalDistRec; | ||
| } | ||
|
|
||
| public BigDecimal getPesoNetoTotal() { | ||
| return pesoNetoTotal; | ||
| } | ||
|
|
||
| public void setPesoNetoTotal(BigDecimal pesoNetoTotal) { | ||
| this.pesoNetoTotal = pesoNetoTotal; | ||
| } | ||
|
|
||
| public String getRegistroISTMOId() { | ||
| return registroISTMOId; | ||
| } | ||
|
|
||
| public void setRegistroISTMOId(String registroISTMOId) { | ||
| this.registroISTMOId = registroISTMOId; | ||
| } | ||
|
|
||
| public String getUbicacionPoloOrigenId() { | ||
| return ubicacionPoloOrigenId; | ||
| } | ||
|
|
||
| public void setUbicacionPoloOrigenId(String ubicacionPoloOrigenId) { | ||
| this.ubicacionPoloOrigenId = ubicacionPoloOrigenId; | ||
| } | ||
|
|
||
| public String getUbicacionPoloDestinoId() { | ||
| return ubicacionPoloDestinoId; | ||
| } | ||
|
|
||
| public void setUbicacionPoloDestinoId(String ubicacionPoloDestinoId) { | ||
| this.ubicacionPoloDestinoId = ubicacionPoloDestinoId; | ||
| } | ||
|
|
||
| public String getUnidadPesoId() { | ||
| return unidadPesoId; | ||
| } | ||
|
|
||
| public void setUnidadPesoId(String unidadPesoId) { | ||
| this.unidadPesoId = unidadPesoId; | ||
| } | ||
|
|
||
| public String getLogisticaInversaRecoleccionDevolucionId() { | ||
| return logisticaInversaRecoleccionDevolucionId; | ||
| } | ||
|
|
||
| public void setLogisticaInversaRecoleccionDevolucionId(String logisticaInversaRecoleccionDevolucionId) { | ||
| this.logisticaInversaRecoleccionDevolucionId = logisticaInversaRecoleccionDevolucionId; | ||
| } | ||
|
|
||
| public List<RegimenAduanero> getRegimenAduaneros() { | ||
| return regimenAduaneros; | ||
| } | ||
|
|
||
| public void setRegimenAduaneros(List<RegimenAduanero> regimenAduaneros) { | ||
| this.regimenAduaneros = regimenAduaneros; | ||
| } | ||
|
|
||
| public List<Ubicacion> getUbicaciones() { | ||
| return ubicaciones; | ||
| } | ||
|
|
||
| public void setUbicaciones(List<Ubicacion> ubicaciones) { | ||
| this.ubicaciones = ubicaciones; | ||
| } | ||
|
|
||
| public List<Mercancia> getMercancias() { | ||
| return mercancias; | ||
| } | ||
|
|
||
| public void setMercancias(List<Mercancia> mercancias) { | ||
| this.mercancias = mercancias; | ||
| } | ||
|
|
||
| public Autotransporte getAutotransporte() { | ||
| return autotransporte; | ||
| } | ||
|
|
||
| public void setAutotransporte(Autotransporte autotransporte) { | ||
| this.autotransporte = autotransporte; | ||
| } | ||
|
|
||
| public TransporteMaritimo getTransporteMaritimo() { | ||
| return transporteMaritimo; | ||
| } | ||
|
|
||
| public void setTransporteMaritimo(TransporteMaritimo transporteMaritimo) { | ||
| this.transporteMaritimo = transporteMaritimo; | ||
| } | ||
|
|
||
| public TransporteAereo getTransporteAereo() { | ||
| return transporteAereo; | ||
| } | ||
|
|
||
| public void setTransporteAereo(TransporteAereo transporteAereo) { | ||
| this.transporteAereo = transporteAereo; | ||
| } | ||
|
|
||
| public TransporteFerroviario getTransporteFerroviario() { | ||
| return transporteFerroviario; | ||
| } | ||
|
|
||
| public void setTransporteFerroviario(TransporteFerroviario transporteFerroviario) { | ||
| this.transporteFerroviario = transporteFerroviario; | ||
| } | ||
|
|
||
| public List<TipoFigura> getTiposFigura() { | ||
| return tiposFigura; | ||
| } | ||
|
|
||
| public void setTiposFigura(List<TipoFigura> tiposFigura) { | ||
| this.tiposFigura = tiposFigura; | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autotransportemust extend the project DTO base hierarchy.Line 9 defines a model DTO without inheriting from the required DTO chain.
As per coding guidelines
**/models/**/*.java: All DTOs must extend the DTO hierarchy:SerializableDto→AuditableDto(with createdAt, updatedAt fields) →BaseDto(with id field).🤖 Prompt for AI Agents