generated from pagopa/template-payments-java-repository
-
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
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
.../activity/paymentsreporting/OrganizationPaymentsReportingPagoPaFileRetrieverActivity.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,22 @@ | ||
package it.gov.pagopa.payhub.activities.activity.paymentsreporting; | ||
|
||
import io.temporal.activity.ActivityInterface; | ||
import io.temporal.activity.ActivityMethod; | ||
import it.gov.pagopa.pu.pagopapayments.dto.generated.PaymentsReportingIdDTO; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Interface for retrieving the payments reporting files from PagoPA. | ||
*/ | ||
@ActivityInterface | ||
public interface OrganizationPaymentsReportingPagoPaFileRetrieverActivity { | ||
/** | ||
* Retrieves the payments reporting files from PagoPA. | ||
* | ||
* @param paymentsReportingIds the list of payments reporting IDs | ||
* @return a list of ingestion flow file IDs | ||
*/ | ||
@ActivityMethod | ||
List<Long> getPaymentsReportingFile(List<PaymentsReportingIdDTO> paymentsReportingIds); | ||
} |
15 changes: 15 additions & 0 deletions
15
...ivity/paymentsreporting/OrganizationPaymentsReportingPagoPaFileRetrieverActivityImpl.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.payhub.activities.activity.paymentsreporting; | ||
|
||
import it.gov.pagopa.pu.pagopapayments.dto.generated.PaymentsReportingIdDTO; | ||
|
||
import java.util.List; | ||
|
||
public class OrganizationPaymentsReportingPagoPaFileRetrieverActivityImpl implements OrganizationPaymentsReportingPagoPaFileRetrieverActivity { | ||
|
||
@Override | ||
public List<Long> getPaymentsReportingFile(List<PaymentsReportingIdDTO> paymentsReportingIds) { | ||
|
||
|
||
return List.of(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ivity/paymentsreporting/OrganizationPaymentsReportingPagoPaFileRetrieverActivityTest.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,28 @@ | ||
package it.gov.pagopa.payhub.activities.activity.paymentsreporting; | ||
|
||
import it.gov.pagopa.pu.pagopapayments.dto.generated.PaymentsReportingIdDTO; | ||
import org.junit.jupiter.api.AfterEach; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.List; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class OrganizationPaymentsReportingPagoPaFileRetrieverActivityTest { | ||
private OrganizationPaymentsReportingPagoPaFileRetrieverActivity activity; | ||
|
||
@BeforeEach | ||
void setUp() { | ||
activity = new OrganizationPaymentsReportingPagoPaFileRetrieverActivityImpl(); | ||
} | ||
|
||
@Test | ||
void getPaymentsReportingFile() { | ||
// Given | ||
List<PaymentsReportingIdDTO> paymentsReportingIds = List.of(); | ||
|
||
// When Then | ||
assertDoesNotThrow(() -> activity.getPaymentsReportingFile(paymentsReportingIds)); | ||
} | ||
} |