|
12 | 12 | import lombok.extern.slf4j.Slf4j;
|
13 | 13 | import lombok.val;
|
14 | 14 | import org.cardanofoundation.lob.app.accounting_reporting_core.domain.core.TransactionType;
|
| 15 | +import org.cardanofoundation.lob.app.accounting_reporting_core.domain.entity.Rejection; |
| 16 | +import org.cardanofoundation.lob.app.accounting_reporting_core.domain.entity.RejectionCode; |
15 | 17 | import org.cardanofoundation.lob.app.accounting_reporting_core.resource.model.AccountingCorePresentationViewService;
|
16 | 18 | import org.cardanofoundation.lob.app.accounting_reporting_core.resource.model.AccountingCoreResourceService;
|
17 | 19 | import org.cardanofoundation.lob.app.accounting_reporting_core.resource.requests.BatchSearchRequest;
|
@@ -100,6 +102,18 @@ public ResponseEntity<?> transactionType() throws JSONException {
|
100 | 102 | return ResponseEntity.ok().body(jsonArray.toString());
|
101 | 103 | }
|
102 | 104 |
|
| 105 | + @Tag(name = "Transactions", description = "Transactions API") |
| 106 | + @Operation(description = "Rejection types", responses = { |
| 107 | + @ApiResponse(content = |
| 108 | + {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, array = @ArraySchema(schema = @Schema(implementation = RejectionCode.class)))} |
| 109 | + ) |
| 110 | + }) |
| 111 | + @GetMapping(value = "/rejection-types", produces = MediaType.APPLICATION_JSON_VALUE, name = "Rejection types") |
| 112 | + public ResponseEntity<?> rejectionTypes() { |
| 113 | + |
| 114 | + return ResponseEntity.ok().body(RejectionCode.values()); |
| 115 | + } |
| 116 | + |
103 | 117 | @Tag(name = "Transactions", description = "Transactions API")
|
104 | 118 | @PostMapping(value = "/extraction", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
|
105 | 119 | @Operation(description = "Trigger the extraction from the ERP system(s)", responses = {
|
|
0 commit comments