generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PRDP-349] feat: Rework TransactionList API (#38)
* [PRDP-358] Added entities' models and moved classes * [PRDP-358] Added collections repo interfaces and container name envs * [PRDP-356] updated openapi definition as defined in documentation * [PRDP-358] Added get biz-events-view-cart filtered by fiscal code * [PRDP-358] Reworked transaction service getTransactionDetails and added errors * [PRDP-358] Updated partially tests * [PRDP-358] Completed unit test for transaction details * [PRDP-358] Changed entity annotation * [PRDP-358] Added id autogeneration to view entities * [PRDP-349] Changed view user query to sliced * [PRDP-358] Changed fiscalCode to taxCode * [PRDP-349] Reworked Transactionlist API * [PRDP-349] Updated unit test * [PRDP-349] Cleaned unused import * [PRDP-349] Handled continuation token in response * [PRDP-349] Updated unit tests * [PRDP-349] Changed query method for BizEventsViewGeneral and entity * [PRDP-349] Fixed AppError in case no view user * [PRDP-349] cleaned * [PRDP-349] Merge fix --------- Co-authored-by: giomella <gioele.mella@emeal.nttdata.com>
- Loading branch information
Showing
16 changed files
with
224 additions
and
208 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
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
13 changes: 13 additions & 0 deletions
13
...va/it/gov/pagopa/bizeventsservice/model/response/transaction/TransactionListResponse.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,13 @@ | ||
package it.gov.pagopa.bizeventsservice.model.response.transaction; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
@Getter | ||
public class TransactionListResponse { | ||
private List<TransactionListItem> transactionList; | ||
private String continuationToken; | ||
} |
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
9 changes: 1 addition & 8 deletions
9
src/main/java/it/gov/pagopa/bizeventsservice/repository/BizEventsViewGeneralRepository.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,18 +1,11 @@ | ||
package it.gov.pagopa.bizeventsservice.repository; | ||
|
||
import com.azure.spring.data.cosmos.repository.CosmosRepository; | ||
import com.azure.spring.data.cosmos.repository.Query; | ||
import it.gov.pagopa.bizeventsservice.entity.view.BizEventsViewGeneral; | ||
import org.springframework.data.repository.query.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Repository interface for biz-events-view-general collection | ||
*/ | ||
@Repository | ||
public interface BizEventsViewGeneralRepository extends CosmosRepository<BizEventsViewGeneral, String> { | ||
@Query("select * from c where c.transactionId = @transactionId") | ||
List<BizEventsViewGeneral> getBizEventsViewGeneralByTransactionId(@Param("transactionId") String transactionId); | ||
} | ||
public interface BizEventsViewGeneralRepository extends CosmosRepository<BizEventsViewGeneral, String> { } |
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.