-
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
3ff2ed7
6273f18
6828c5b
cc4290a
45908a2
4228ab9
8cf94ab
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,142 @@ | ||
| 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 String aseguraMedAmbiente; | ||
| private String polizaMedAmbiente; | ||
| private String aseguraCarga; | ||
| private String polizaCarga; | ||
|
|
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal primaSeguro; | ||
|
|
||
| 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 String getAseguraMedAmbiente() { | ||
| return aseguraMedAmbiente; | ||
| } | ||
|
|
||
| public void setAseguraMedAmbiente(String aseguraMedAmbiente) { | ||
| this.aseguraMedAmbiente = aseguraMedAmbiente; | ||
| } | ||
|
|
||
| public String getPolizaMedAmbiente() { | ||
| return polizaMedAmbiente; | ||
| } | ||
|
|
||
| public void setPolizaMedAmbiente(String polizaMedAmbiente) { | ||
| this.polizaMedAmbiente = polizaMedAmbiente; | ||
| } | ||
|
|
||
| public String getAseguraCarga() { | ||
| return aseguraCarga; | ||
| } | ||
|
|
||
| public void setAseguraCarga(String aseguraCarga) { | ||
| this.aseguraCarga = aseguraCarga; | ||
| } | ||
|
|
||
| public String getPolizaCarga() { | ||
| return polizaCarga; | ||
| } | ||
|
|
||
| public void setPolizaCarga(String polizaCarga) { | ||
| this.polizaCarga = polizaCarga; | ||
| } | ||
|
|
||
| public BigDecimal getPrimaSeguro() { | ||
| return primaSeguro; | ||
| } | ||
|
|
||
| public void setPrimaSeguro(BigDecimal primaSeguro) { | ||
| this.primaSeguro = primaSeguro; | ||
| } | ||
|
|
||
| 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,58 @@ | ||
| 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 Carro { | ||
|
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. Inherit the standard DTO fields for this nested model.
♻️ Minimal shape of the change-public class Carro {
+public class Carro extends BaseDto {Add the corresponding As per coding guidelines: 🤖 Prompt for AI Agents |
||
| private String tipoCarroId; | ||
| private String matriculaCarro; | ||
| private String guiaCarro; | ||
|
|
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal toneladasNetasCarro; | ||
|
|
||
| private List<CarroContenedor> contenedores; | ||
|
|
||
| public String getTipoCarroId() { | ||
| return tipoCarroId; | ||
| } | ||
|
|
||
| public void setTipoCarroId(String tipoCarroId) { | ||
| this.tipoCarroId = tipoCarroId; | ||
| } | ||
|
|
||
| public String getMatriculaCarro() { | ||
| return matriculaCarro; | ||
| } | ||
|
|
||
| public void setMatriculaCarro(String matriculaCarro) { | ||
| this.matriculaCarro = matriculaCarro; | ||
| } | ||
|
|
||
| public String getGuiaCarro() { | ||
| return guiaCarro; | ||
| } | ||
|
|
||
| public void setGuiaCarro(String guiaCarro) { | ||
| this.guiaCarro = guiaCarro; | ||
| } | ||
|
|
||
| public BigDecimal getToneladasNetasCarro() { | ||
| return toneladasNetasCarro; | ||
| } | ||
|
|
||
| public void setToneladasNetasCarro(BigDecimal toneladasNetasCarro) { | ||
| this.toneladasNetasCarro = toneladasNetasCarro; | ||
| } | ||
|
|
||
| public List<CarroContenedor> getContenedores() { | ||
| return contenedores; | ||
| } | ||
|
|
||
| public void setContenedores(List<CarroContenedor> contenedores) { | ||
| this.contenedores = contenedores; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| package com.fiscalapi.models.invoicing.billOfLading; | ||
|
|
||
| import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
| import com.fiscalapi.serialization.BigDecimalSerializer; | ||
|
|
||
| import java.math.BigDecimal; | ||
|
|
||
| public class CarroContenedor { | ||
|
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. Extend the DTO hierarchy for the container DTO.
♻️ Minimal shape of the change-public class CarroContenedor {
+public class CarroContenedor extends BaseDto {Add the corresponding As per coding guidelines: 🤖 Prompt for AI Agents |
||
| private String tipoContenedorId; | ||
|
|
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal pesoContenedorVacio; | ||
|
|
||
| @JsonSerialize(using = BigDecimalSerializer.class) | ||
| private BigDecimal pesoNetoMercancia; | ||
|
|
||
| public String getTipoContenedorId() { | ||
| return tipoContenedorId; | ||
| } | ||
|
|
||
| public void setTipoContenedorId(String tipoContenedorId) { | ||
| this.tipoContenedorId = tipoContenedorId; | ||
| } | ||
|
|
||
| public BigDecimal getPesoContenedorVacio() { | ||
| return pesoContenedorVacio; | ||
| } | ||
|
|
||
| public void setPesoContenedorVacio(BigDecimal pesoContenedorVacio) { | ||
| this.pesoContenedorVacio = pesoContenedorVacio; | ||
| } | ||
|
|
||
| public BigDecimal getPesoNetoMercancia() { | ||
| return pesoNetoMercancia; | ||
| } | ||
|
|
||
| public void setPesoNetoMercancia(BigDecimal pesoNetoMercancia) { | ||
| this.pesoNetoMercancia = pesoNetoMercancia; | ||
| } | ||
| } | ||
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