Skip to content
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

feat: P4ADEV-1528-Treasury-Temporal-Activity-added-inteface #21

Merged
merged 8 commits into from
Nov 28, 2024
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package it.gov.pagopa.payhub.activities.activity.treasury;

import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryOpiIngestionActivityResult;

/**
* Interface for the TreasuryOpiIngestionActivity.
* Defines methods for processing files based on an IngestionFlow ID.
*/
public interface TreasuryOpiIngestionActivity {

/**
* Processes a file based on the provided IngestionFlow ID.
*
* @param ingestionFlowId the unique identifier related to the file to process.
* @return {@link TreasuryOpiIngestionActivityResult} containing the list of IUFs and status.
*/
TreasuryOpiIngestionActivityResult processFile(String ingestionFlowId);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package it.gov.pagopa.payhub.activities.dto.treasury;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;

/**
* DTO for the TreasuryOpiIngestionActivityResult, representing the result of file processing.
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TreasuryOpiIngestionActivityResult {
/** List of extracted IUFs */
private List<String> iufs;
/** Success flag for the operation */
private boolean success;
}