-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5610163
commit b4e99b5
Showing
25 changed files
with
1,095 additions
and
41 deletions.
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
.../java/io/github/project/openubl/xbuilder/content/models/standard/guia/DespatchAdvice.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import io.github.project.openubl.xbuilder.content.models.common.Firmante; | ||
import io.github.project.openubl.xbuilder.content.models.common.Proveedor; | ||
import io.swagger.v3.oas.annotations.media.ArraySchema; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Singular; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
import java.time.LocalDate; | ||
import java.time.LocalTime; | ||
import java.util.List; | ||
|
||
@Jacksonized | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class DespatchAdvice { | ||
/** | ||
* Serie del comprobante | ||
*/ | ||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, minLength = 4, pattern = "^[T|t|V|v].*$") | ||
private String serie; | ||
|
||
/** | ||
* Número del comprobante | ||
*/ | ||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, minimum = "1", maximum = "99999999") | ||
private Integer numero; | ||
|
||
/** | ||
* Fecha de emisión del comprobante. Ejemplo 2022-12-25 (YYYY-MM-SS) | ||
*/ | ||
@Schema(description = "Format: \"YYYY-MM-SS\". Ejemplo: 2022-12-25", pattern = "^\\d{4}-\\d{2}-\\d{2}$") | ||
private LocalDate fechaEmision; | ||
|
||
/** | ||
* Hora de emisión del comprobante. Ejemplo 12:00:00 (HH:MM:SS) | ||
*/ | ||
@Schema(description = "Format: \"HH:MM:SS\". Ejemplo 12:00:00", pattern = "^\\d{2}:\\d{2}:\\d{2}$") | ||
private LocalTime horaEmision; | ||
|
||
@Schema(description = "Catalogo 01") | ||
private String tipoComprobante; | ||
|
||
private String observaciones; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
private DocumentoBaja documentoBaja; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
private DocumentoRelacionado documentoRelacionado; | ||
|
||
@Schema(description = "Persona que firma electrónicamente el comprobante. Si NULL los datos del proveedor son usados.") | ||
private Firmante firmante; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private Remitente remitente; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private Destinatario destinatario; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
private Proveedor proveedor; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private Envio envio; | ||
|
||
@Singular | ||
@ArraySchema(minItems = 1, schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED)) | ||
private List<DespatchAdviceItem> detalles; | ||
} |
39 changes: 39 additions & 0 deletions
39
...a/io/github/project/openubl/xbuilder/content/models/standard/guia/DespatchAdviceItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Jacksonized | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class DespatchAdviceItem { | ||
private String unidadMedida; | ||
private BigDecimal cantidad; | ||
|
||
private String descripcion; | ||
private String codigo; | ||
private String codigoSunat; | ||
} |
39 changes: 39 additions & 0 deletions
39
...in/java/io/github/project/openubl/xbuilder/content/models/standard/guia/Destinatario.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Destinatario { | ||
|
||
@Schema(description = "Catalogo 06", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String tipoDocumentoIdentidad; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String numeroDocumentoIdentidad; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String nombre; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...n/java/io/github/project/openubl/xbuilder/content/models/standard/guia/DocumentoBaja.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class DocumentoBaja { | ||
|
||
@Schema(description = "Catalog 01", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String tipoDocumento; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String serieNumero; | ||
} |
36 changes: 36 additions & 0 deletions
36
...io/github/project/openubl/xbuilder/content/models/standard/guia/DocumentoRelacionado.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class DocumentoRelacionado { | ||
|
||
@Schema(description = "Catalog 21", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String tipoDocumento; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String serieNumero; | ||
} |
64 changes: 64 additions & 0 deletions
64
.../src/main/java/io/github/project/openubl/xbuilder/content/models/standard/guia/Envio.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDate; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Envio { | ||
|
||
@Schema(description = "Catalog 20", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String tipoTraslado; | ||
private String motivoTraslado; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private BigDecimal pesoTotal; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String pesoTotalUnidadMedida; | ||
|
||
private Integer numeroDeBultos; | ||
private boolean transbordoProgramado; | ||
|
||
@Schema(description = "Catalog 18", requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String tipoModalidadTraslado; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private LocalDate fechaTraslado; | ||
|
||
private String numeroDeContenedor; | ||
private String codigoDePuerto; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
private Transportista transportista; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
private Partida partida; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
private Destino destino; | ||
} |
31 changes: 31 additions & 0 deletions
31
...rc/main/java/io/github/project/openubl/xbuilder/content/models/standard/guia/Partida.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Partida { | ||
private String ubigeo; | ||
private String direccion; | ||
} |
36 changes: 36 additions & 0 deletions
36
.../main/java/io/github/project/openubl/xbuilder/content/models/standard/guia/Proveedor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License - 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.github.project.openubl.xbuilder.content.models.standard.guia; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Proveedor { | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, minLength = 11, maxLength = 11, pattern = "[0-9]+") | ||
private String ruc; | ||
|
||
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
private String razonSocial; | ||
} |
Oops, something went wrong.