-
Notifications
You must be signed in to change notification settings - Fork 0
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
fe3aebe
commit 8c5059e
Showing
23 changed files
with
273 additions
and
107 deletions.
There are no files selected for viewing
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
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
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
15 changes: 3 additions & 12 deletions
15
src/main/java/it/gov/pagopa/atmlayer/service/model/dto/BpmnAssociationDto.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 |
---|---|---|
@@ -1,24 +1,15 @@ | ||
package it.gov.pagopa.atmlayer.service.model.dto; | ||
|
||
import it.gov.pagopa.atmlayer.service.model.model.AssociationMetadata; | ||
import it.gov.pagopa.atmlayer.service.model.constraint.BankKeyConstraint; | ||
import jakarta.validation.Valid; | ||
import jakarta.ws.rs.FormParam; | ||
import jakarta.ws.rs.core.MediaType; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.jboss.resteasy.reactive.PartType; | ||
|
||
import java.io.File; | ||
import java.util.List; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public class BpmnAssociationDto { | ||
@FormParam("file") | ||
@PartType(MediaType.APPLICATION_XML) | ||
private File file; | ||
|
||
@FormParam("metadata") | ||
@PartType(MediaType.APPLICATION_JSON) | ||
@Valid | ||
private AssociationMetadata associationMetadata; | ||
private List<@BankKeyConstraint @Valid BankKeyDto> bankKeyDtoList; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/it/gov/pagopa/atmlayer/service/model/dto/BranchDto.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,15 @@ | ||
package it.gov.pagopa.atmlayer.service.model.dto; | ||
|
||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public class BranchDto { | ||
|
||
private String branchId; | ||
|
||
private List<String> terminalId; | ||
} |
50 changes: 50 additions & 0 deletions
50
src/main/java/it/gov/pagopa/atmlayer/service/model/entity/BpmnBankConfig.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,50 @@ | ||
package it.gov.pagopa.atmlayer.service.model.entity; | ||
|
||
import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; | ||
import it.gov.pagopa.atmlayer.service.model.enumeration.FunctionEnum; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.EmbeddedId; | ||
import jakarta.persistence.Entity; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import org.hibernate.annotations.CreationTimestamp; | ||
import org.hibernate.annotations.UpdateTimestamp; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
import java.sql.Timestamp; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class BpmnBankConfig extends PanacheEntityBase implements Serializable { | ||
|
||
@Serial | ||
private static final long serialVersionUID = 2192727048075093200L; | ||
@EmbeddedId | ||
private BpmnBankConfigPK bpmnBankConfigPK; | ||
|
||
@Column(name = "function_type") | ||
private FunctionEnum functionType; | ||
|
||
@Column(name = "enabled", columnDefinition = "boolean default true") | ||
private Boolean enabled; | ||
|
||
@CreationTimestamp | ||
@Column(name = "created_at") | ||
private Timestamp createdAt; | ||
|
||
@UpdateTimestamp | ||
@Column(name = "last_updated_at") | ||
private Timestamp lastUpdatedAt; | ||
|
||
@Column(name = "created_by") | ||
private String createdBy; | ||
|
||
@Column(name = "last_updated_by") | ||
private String lastUpdatedBy; | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/it/gov/pagopa/atmlayer/service/model/entity/BpmnBankConfigPK.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,33 @@ | ||
package it.gov.pagopa.atmlayer.service.model.entity; | ||
|
||
import jakarta.persistence.Embeddable; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
import java.util.UUID; | ||
|
||
@Embeddable | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class BpmnBankConfigPK implements Serializable { | ||
@Serial | ||
private static final long serialVersionUID = -9140657073094910845L; | ||
|
||
@NotNull(message = "bpmn id cannot be null") | ||
private UUID bpmnId; | ||
|
||
@NotNull(message = "bpmn model version cannot be null") | ||
private int bpmnModelVersion; | ||
|
||
@NotNull(message = "acquirer id cannot be null") | ||
private String acquirerId; | ||
|
||
private String branchId; | ||
|
||
private String terminalId; | ||
} |
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
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
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
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
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
6 changes: 3 additions & 3 deletions
6
src/main/java/it/gov/pagopa/atmlayer/service/model/mapper/BpmnVersionMapper.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package it.gov.pagopa.atmlayer.service.model.mapper; | ||
|
||
import it.gov.pagopa.atmlayer.service.model.dto.BpmnCreationDto; | ||
import it.gov.pagopa.atmlayer.service.model.entity.BpmnVersion; | ||
import it.gov.pagopa.atmlayer.service.model.model.CreationMetadata; | ||
import it.gov.pagopa.atmlayer.service.model.dto.BpmnCreationDto; | ||
import org.mapstruct.Mapper; | ||
|
||
@Mapper | ||
public interface BpmnVersionMapper { | ||
|
||
BpmnCreationDto toDto (BpmnVersion bpmnVersion); | ||
BpmnCreationDto toDto(BpmnVersion bpmnVersion); | ||
|
||
CreationMetadata toEntity (BpmnCreationDto bpmnCreationDto); | ||
CreationMetadata toEntity(BpmnCreationDto bpmnCreationDto); | ||
} |
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
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
Oops, something went wrong.