Skip to content

Commit ce700d7

Browse files
chaged endPoints
1 parent 62b91cf commit ce700d7

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/main/java/it/gov/pagopa/idpay/transactions/controller/ReportController.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package it.gov.pagopa.idpay.transactions.controller;
22

3+
import it.gov.pagopa.idpay.transactions.dto.PatchReportRequest;
34
import it.gov.pagopa.idpay.transactions.dto.ReportDTO;
45
import it.gov.pagopa.idpay.transactions.dto.ReportListDTO;
56
import it.gov.pagopa.idpay.transactions.dto.ReportRequest;
@@ -25,4 +26,10 @@ Mono<ReportDTO> generateReport(@RequestHeader("x-merchant-id") String merchantId
2526
@RequestHeader(value = "x-organization-role", required = false) String organizationRole,
2627
@PathVariable("initiativeId") String initiativeId,
2728
@RequestBody @Valid ReportRequest request);
29+
30+
31+
@PatchMapping("/initiatives/{initiativeId}/reports/{reportId}")
32+
Mono<ReportDTO> patchReport(@PathVariable("initiativeId") String initiativeId,
33+
@PathVariable("reportId") String reportId,
34+
@RequestBody PatchReportRequest request);
2835
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package it.gov.pagopa.idpay.transactions.dto;
2+
3+
import it.gov.pagopa.idpay.transactions.enums.ReportStatus;
4+
import lombok.AllArgsConstructor;
5+
import lombok.Builder;
6+
import lombok.Data;
7+
import lombok.NoArgsConstructor;
8+
9+
10+
@Data
11+
@AllArgsConstructor
12+
@NoArgsConstructor
13+
@Builder
14+
public class PatchReportRequest {
15+
16+
private ReportStatus reportStatus;
17+
18+
}
19+

0 commit comments

Comments
 (0)