From dd8d427e4620857bdaa0ffac6a1a94c7a109bd6a Mon Sep 17 00:00:00 2001 From: giomella Date: Mon, 22 Jul 2024 17:04:54 +0200 Subject: [PATCH 01/11] [PPANTT-36] added update maintenance API --- .../StationMaintenanceController.java | 29 +++++ .../apiconfig/core/exception/AppError.java | 1 + .../UpdateStationMaintenance.java | 56 +++++++++ .../service/StationMaintenanceService.java | 119 ++++++++++++++++-- 4 files changed, 195 insertions(+), 10 deletions(-) create mode 100644 src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java index 5381ce9dd..644ac4a18 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java @@ -11,6 +11,7 @@ import it.gov.pagopa.apiconfig.core.model.ProblemJson; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.service.StationMaintenanceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; @@ -19,6 +20,7 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -64,4 +66,31 @@ public ResponseEntity createStationMaintenance( .status(HttpStatus.CREATED) .body(this.stationMaintenanceService.createStationMaintenance(brokerCode, createStationMaintenance)); } + + @Operation(summary = "Update a maintenance for the specified station", + security = {@SecurityRequirement(name = "ApiKey"), @SecurityRequirement(name = "Authorization")}) + @ApiResponses( + value = { + @ApiResponse(responseCode = "200", description = "Created", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = StationMaintenanceResource.class))), + @ApiResponse(responseCode = "400", description = "Bad Request", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "409", description = "Conflict", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "429", description = "Too many requests", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "500", description = "Service unavailable", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))) + }) + @PutMapping(value = "/{brokercode}/station-maintenances/{maintenanceid}", produces = {MediaType.APPLICATION_JSON_VALUE}) + public ResponseEntity updateStationMaintenance( + @Parameter(description = "Broker's tax code") @PathVariable("brokercode") String brokerCode, + @Parameter(description = "Maintenance's id") @PathVariable("maintenanceid") Long maintenanceId, + @RequestBody @Valid @NotNull UpdateStationMaintenance updateStationMaintenance + ) { + return ResponseEntity + .status(HttpStatus.CREATED) + .body(this.stationMaintenanceService.updateStationMaintenance(brokerCode, maintenanceId, updateStationMaintenance)); + } } diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java b/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java index 6ca72e868..614844674 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java @@ -249,6 +249,7 @@ public enum AppError { MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID(HttpStatus.BAD_REQUEST, "Invalid station maintenance date time interval", "The provided maintenance interval is not valid: %s"), MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING(HttpStatus.CONFLICT, "Conflict on station maintenance date time interval", "There is an overlapping maintenance for the provided date time interval"), MAINTENANCE_SUMMARY_NOT_FOUND(HttpStatus.NOT_FOUND, "Maintenance summary not found", "The maintenance summary for the provided broker %s and year %s was not found"), + MAINTENANCE_NOT_FOUND(HttpStatus.NOT_FOUND, "Maintenance not found", "The maintenance with the provided id %s was not found"), UNKNOWN(null, null, null); diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java new file mode 100644 index 000000000..dce6c63df --- /dev/null +++ b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java @@ -0,0 +1,56 @@ +package it.gov.pagopa.apiconfig.core.model.stationmaintenance; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.datatype.jsr310.ser.OffsetDateTimeSerializer; +import io.swagger.v3.oas.annotations.media.Schema; +import it.gov.pagopa.apiconfig.core.util.Constants; +import it.gov.pagopa.apiconfig.core.util.OffsetDateTimeDeserializer; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.validation.constraints.NotNull; +import java.time.OffsetDateTime; + +/** + * Model class that define the input field for updating a station's maintenance + */ +@Getter +@Setter +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class UpdateStationMaintenance { + + @JsonProperty("start_date_time") + @JsonFormat(pattern = Constants.DateTimeFormat.DATE_TIME_FORMAT) + @JsonSerialize(using = OffsetDateTimeSerializer.class) + @JsonDeserialize(using = OffsetDateTimeDeserializer.class) + @Schema( + example = "2024-04-01T13:00:00.000Z", + description = "The start date time of the station maintenance") + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime startDateTime; + + @JsonProperty("end_date_time") + @NotNull + @JsonFormat(pattern = Constants.DateTimeFormat.DATE_TIME_FORMAT) + @JsonSerialize(using = OffsetDateTimeSerializer.class) + @JsonDeserialize(using = OffsetDateTimeDeserializer.class) + @Schema( + example = "2024-04-01T13:00:00.000Z", + required = true, + description = "The end date time of the station maintenance") + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime endDateTime; + + @JsonProperty("stand_in") + @Schema(description = "StandIn flag") + private Boolean standIn; +} \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java index 4fc0d399f..3c5ca0b54 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java @@ -4,6 +4,7 @@ import it.gov.pagopa.apiconfig.core.exception.AppException; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.repository.ExtendedStationMaintenanceRepository; import it.gov.pagopa.apiconfig.starter.entity.StationMaintenance; import it.gov.pagopa.apiconfig.starter.entity.StationMaintenanceSummaryId; @@ -66,16 +67,16 @@ public StationMaintenanceResource createStationMaintenance( OffsetDateTime startDateTime = createStationMaintenance.getStartDateTime().truncatedTo(ChronoUnit.MINUTES); OffsetDateTime endDateTime = createStationMaintenance.getEndDateTime().truncatedTo(ChronoUnit.MINUTES); - if (computeDateDifferenceInHours(now, startDateTime) < 72) { - throw new AppException(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID); - } if (isNotRoundedTo15Minutes(startDateTime) || isNotRoundedTo15Minutes(endDateTime)) { throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "Date time are not rounded to 15 minutes"); } + if (computeDateDifferenceInHours(now, startDateTime) < 72) { + throw new AppException(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID); + } if (startDateTime.isAfter(endDateTime) || startDateTime.isEqual(endDateTime)) { throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "Start date time must be before end date time"); } - if (hasOverlappingMaintenance(createStationMaintenance, startDateTime, endDateTime)) { + if (hasOverlappingMaintenance(createStationMaintenance.getStationCode(), startDateTime, endDateTime, null)) { throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING); } @@ -92,6 +93,99 @@ public StationMaintenanceResource createStationMaintenance( .build(); } + public StationMaintenanceResource updateStationMaintenance( + String brokerCode, + Long maintenanceId, + UpdateStationMaintenance updateStationMaintenance + ) { + StationMaintenance stationMaintenance = this.stationMaintenanceRepository.findById(maintenanceId) + .orElseThrow(() -> new AppException(AppError.MAINTENANCE_NOT_FOUND, maintenanceId)); + + OffsetDateTime now = OffsetDateTime.now().truncatedTo(ChronoUnit.MINUTES); + + StationMaintenance saved; + if (stationMaintenance.getStartDateTime().isBefore(now.plusMinutes(15))) { + saved = updateInProgressStationMaintenance(now, updateStationMaintenance, stationMaintenance); + } else { + saved = updateScheduledStationMaintenance(brokerCode, now, updateStationMaintenance, stationMaintenance); + } + + return StationMaintenanceResource.builder() + .maintenanceId(saved.getObjId()) + .brokerCode(brokerCode) + .startDateTime(saved.getStartDateTime()) + .endDateTime(saved.getEndDateTime()) + .standIn(saved.getStandIn()) + .stationCode(stationMaintenance.getStation().getIdStazione()) + .build(); + } + + private StationMaintenance updateScheduledStationMaintenance( + String brokerCode, + OffsetDateTime now, + UpdateStationMaintenance updateStationMaintenance, + StationMaintenance oldStationMaintenance + ) { + OffsetDateTime newStartDateTime = updateStationMaintenance.getStartDateTime().truncatedTo(ChronoUnit.MINUTES); + OffsetDateTime newEndDateTime = updateStationMaintenance.getEndDateTime().truncatedTo(ChronoUnit.MINUTES); + + if (isNotRoundedTo15Minutes(newStartDateTime) || isNotRoundedTo15Minutes(newEndDateTime)) { + throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "Date time are not rounded to 15 minutes"); + } + if (computeDateDifferenceInHours(now, newStartDateTime) < 72) { + throw new AppException(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID); + } + if (newStartDateTime.isAfter(newEndDateTime) || newStartDateTime.isEqual(newEndDateTime)) { + throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "Start date time must be before end date time"); + } + if (hasOverlappingMaintenance( + oldStationMaintenance.getStation().getIdStazione(), + newStartDateTime, + newEndDateTime, + oldStationMaintenance.getObjId() + )) { + throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING); + } + + boolean standIn = updateStationMaintenance.getStandIn(); + double oldScheduledHours = computeDateDifferenceInHours(oldStationMaintenance.getStartDateTime(), oldStationMaintenance.getEndDateTime()); + // force standIn flag to true when the used has already consumed all the available hours for this year + if (isAnnualHoursLimitExceededForUser(brokerCode, now, newStartDateTime, newEndDateTime, oldScheduledHours)) { + standIn = true; + } + + oldStationMaintenance.setStartDateTime(newStartDateTime); + oldStationMaintenance.setEndDateTime(newEndDateTime); + oldStationMaintenance.setStandIn(standIn); + return this.stationMaintenanceRepository.save(oldStationMaintenance); + } + + private StationMaintenance updateInProgressStationMaintenance( + OffsetDateTime now, + UpdateStationMaintenance updateStationMaintenance, + StationMaintenance oldStationMaintenance + ) { + OffsetDateTime newEndDateTime = updateStationMaintenance.getEndDateTime().truncatedTo(ChronoUnit.MINUTES); + if (isNotRoundedTo15Minutes(newEndDateTime)) { + throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "End date time is not rounded to 15 minutes"); + } + if (!newEndDateTime.isAfter(now)) { + throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, + "End date time of an in progress maintenance can not be before current timestamp"); + } + if (hasOverlappingMaintenance( + oldStationMaintenance.getStation().getIdStazione(), + oldStationMaintenance.getStartDateTime(), + newEndDateTime, + oldStationMaintenance.getObjId() + )) { + throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING); + } + + oldStationMaintenance.setEndDateTime(newEndDateTime); + return this.stationMaintenanceRepository.save(oldStationMaintenance); + } + private StationMaintenance buildStationMaintenance( String brokerCode, CreateStationMaintenance createStationMaintenance, @@ -101,7 +195,7 @@ private StationMaintenance buildStationMaintenance( ) { boolean standIn = createStationMaintenance.getStandIn(); // force standIn flag to true when the used has already consumed all the available hours for this year - if (isAnnualHoursLimitExceededForUser(brokerCode, now, startDateTime, endDateTime)) { + if (isAnnualHoursLimitExceededForUser(brokerCode, now, startDateTime, endDateTime, 0)) { standIn = true; } @@ -126,7 +220,8 @@ private boolean isAnnualHoursLimitExceededForUser( String brokerCode, OffsetDateTime now, OffsetDateTime startDateTime, - OffsetDateTime endDateTime + OffsetDateTime endDateTime, + double oldScheduledHours ) { StationMaintenanceSummaryView maintenanceSummary = this.summaryViewRepository.findById( StationMaintenanceSummaryId.builder() @@ -137,17 +232,21 @@ private boolean isAnnualHoursLimitExceededForUser( double consumedHours = maintenanceSummary.getUsedHours() + maintenanceSummary.getScheduledHours(); double newHoursToBeScheduled = computeDateDifferenceInHours(startDateTime, endDateTime); - return (consumedHours + newHoursToBeScheduled) > 36; + return (consumedHours - oldScheduledHours + newHoursToBeScheduled) > 36; } private boolean hasOverlappingMaintenance( - CreateStationMaintenance createStationMaintenance, + String stationCode, OffsetDateTime startDateTime, - OffsetDateTime endDateTime + OffsetDateTime endDateTime, + Long excludedMaintenance ) { return !this.stationMaintenanceRepository - .findOverlappingMaintenance(createStationMaintenance.getStationCode(), startDateTime, endDateTime) + .findOverlappingMaintenance(stationCode, startDateTime, endDateTime) + .parallelStream() + .filter(maintenance -> excludedMaintenance == null || !maintenance.getObjId().equals(excludedMaintenance)) + .toList() .isEmpty(); } From b20203e298cb016ae460db661d70476dbcf37e68 Mon Sep 17 00:00:00 2001 From: giomella Date: Mon, 22 Jul 2024 17:20:51 +0200 Subject: [PATCH 02/11] [PPANTT-36] added javadoc --- .../StationMaintenanceController.java | 7 +++-- .../service/StationMaintenanceService.java | 28 +++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java index 644ac4a18..e27a9e913 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java @@ -89,8 +89,9 @@ public ResponseEntity updateStationMaintenance( @Parameter(description = "Maintenance's id") @PathVariable("maintenanceid") Long maintenanceId, @RequestBody @Valid @NotNull UpdateStationMaintenance updateStationMaintenance ) { - return ResponseEntity - .status(HttpStatus.CREATED) - .body(this.stationMaintenanceService.updateStationMaintenance(brokerCode, maintenanceId, updateStationMaintenance)); + return ResponseEntity.ok( + this.stationMaintenanceService. + updateStationMaintenance(brokerCode, maintenanceId, updateStationMaintenance) + ); } } diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java index 3c5ca0b54..c7f90ec54 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java @@ -93,6 +93,34 @@ public StationMaintenanceResource createStationMaintenance( .build(); } + /** + * Update the station's maintenance with the specified maintenance id with the provided data. + *

+ * If the maintenance is already in progress, only the endDateTime field can be + * updated otherwise startDateTime, endDateTime and standIn fields can be updated. + * Before the update of the maintenance checks if all the requirements are matched, if it is an in progress maintenance + * perform the following checks: + *

    + *
  • endDateTime is valid only if it is rounded to a 15-minute interval (seconds and milliseconds are truncated) + *
  • current timestamp < endDateTime + *
  • there are no overlapping maintenance for the same station excluded the current maintenance + *
+ * Otherwise, perform the following checks: + *
    + *
  • the startDateTime is after 72h from the creation date time + *
  • startDateTime and endDateTime are valid only if they are rounded to a 15-minute interval + * (seconds and milliseconds are truncated) + *
  • startDateTime < endDateTime + *
  • there are no overlapping maintenance for the same station excluded the current maintenance + *
+ * Additionally, in case of scheduled maintenance it retrieves the count of maintenance hours for the specified broker, + * and if the annual limit has been reached, the StandIn flag is set to true. + * + * @param brokerCode broker's tax code + * @param maintenanceId maintenance's id + * @param updateStationMaintenance update info of the maintenance + * @return the updated maintenance + */ public StationMaintenanceResource updateStationMaintenance( String brokerCode, Long maintenanceId, From d274120ed11ed3654ec7f990fb1fa8409e9636d1 Mon Sep 17 00:00:00 2001 From: giomella Date: Tue, 23 Jul 2024 12:34:42 +0200 Subject: [PATCH 03/11] [PPANTT-36] added unit tests --- .../apiconfig/core/exception/AppError.java | 2 +- .../service/StationMaintenanceService.java | 17 +- .../StationMaintenanceControllerTest.java | 24 ++ .../StationMaintenanceServiceTest.java | 374 +++++++++++++++++- 4 files changed, 406 insertions(+), 11 deletions(-) diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java b/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java index 614844674..4bddfcd0d 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/exception/AppError.java @@ -245,7 +245,7 @@ public enum AppError { CBILL_BAD_REQUEST(HttpStatus.BAD_REQUEST, "CBILL massive loading bad request", "File is not valid: %s"), // Station Maintenance errors - MAINTENANCE_START_DATE_TIME_NOT_VALID(HttpStatus.BAD_REQUEST, "Invalid station maintenance start date time", "A new maintenance must start after 72h from the creation's date time"), + MAINTENANCE_START_DATE_TIME_NOT_VALID(HttpStatus.BAD_REQUEST, "Invalid station maintenance start date time", "A maintenance must start after 72h from the current date time"), MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID(HttpStatus.BAD_REQUEST, "Invalid station maintenance date time interval", "The provided maintenance interval is not valid: %s"), MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING(HttpStatus.CONFLICT, "Conflict on station maintenance date time interval", "There is an overlapping maintenance for the provided date time interval"), MAINTENANCE_SUMMARY_NOT_FOUND(HttpStatus.NOT_FOUND, "Maintenance summary not found", "The maintenance summary for the provided broker %s and year %s was not found"), diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java index c7f90ec54..042a50ccb 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java @@ -73,7 +73,7 @@ public StationMaintenanceResource createStationMaintenance( if (computeDateDifferenceInHours(now, startDateTime) < 72) { throw new AppException(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID); } - if (startDateTime.isAfter(endDateTime) || startDateTime.isEqual(endDateTime)) { + if (!endDateTime.isAfter(startDateTime)) { throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "Start date time must be before end date time"); } if (hasOverlappingMaintenance(createStationMaintenance.getStationCode(), startDateTime, endDateTime, null)) { @@ -128,11 +128,11 @@ public StationMaintenanceResource updateStationMaintenance( ) { StationMaintenance stationMaintenance = this.stationMaintenanceRepository.findById(maintenanceId) .orElseThrow(() -> new AppException(AppError.MAINTENANCE_NOT_FOUND, maintenanceId)); - OffsetDateTime now = OffsetDateTime.now().truncatedTo(ChronoUnit.MINUTES); StationMaintenance saved; - if (stationMaintenance.getStartDateTime().isBefore(now.plusMinutes(15))) { + boolean isMaintenanceInProgress = stationMaintenance.getStartDateTime().isBefore(now.plusMinutes(15)); + if (isMaintenanceInProgress) { saved = updateInProgressStationMaintenance(now, updateStationMaintenance, stationMaintenance); } else { saved = updateScheduledStationMaintenance(brokerCode, now, updateStationMaintenance, stationMaintenance); @@ -154,6 +154,10 @@ private StationMaintenance updateScheduledStationMaintenance( UpdateStationMaintenance updateStationMaintenance, StationMaintenance oldStationMaintenance ) { + if (updateStationMaintenance.getStartDateTime() == null) { + throw new AppException(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID); + } + OffsetDateTime newStartDateTime = updateStationMaintenance.getStartDateTime().truncatedTo(ChronoUnit.MINUTES); OffsetDateTime newEndDateTime = updateStationMaintenance.getEndDateTime().truncatedTo(ChronoUnit.MINUTES); @@ -163,7 +167,7 @@ private StationMaintenance updateScheduledStationMaintenance( if (computeDateDifferenceInHours(now, newStartDateTime) < 72) { throw new AppException(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID); } - if (newStartDateTime.isAfter(newEndDateTime) || newStartDateTime.isEqual(newEndDateTime)) { + if (!newEndDateTime.isAfter(newStartDateTime)) { throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "Start date time must be before end date time"); } if (hasOverlappingMaintenance( @@ -175,7 +179,9 @@ private StationMaintenance updateScheduledStationMaintenance( throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING); } - boolean standIn = updateStationMaintenance.getStandIn(); + boolean standIn = updateStationMaintenance.getStandIn() != null + ? updateStationMaintenance.getStandIn() + : oldStationMaintenance.getStandIn(); double oldScheduledHours = computeDateDifferenceInHours(oldStationMaintenance.getStartDateTime(), oldStationMaintenance.getEndDateTime()); // force standIn flag to true when the used has already consumed all the available hours for this year if (isAnnualHoursLimitExceededForUser(brokerCode, now, newStartDateTime, newEndDateTime, oldScheduledHours)) { @@ -194,6 +200,7 @@ private StationMaintenance updateInProgressStationMaintenance( StationMaintenance oldStationMaintenance ) { OffsetDateTime newEndDateTime = updateStationMaintenance.getEndDateTime().truncatedTo(ChronoUnit.MINUTES); + if (isNotRoundedTo15Minutes(newEndDateTime)) { throw new AppException(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID, "End date time is not rounded to 15 minutes"); } diff --git a/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java b/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java index dfd8e11a1..dee4ccc30 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java @@ -3,6 +3,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.service.StationMaintenanceService; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; @@ -15,9 +16,11 @@ import java.time.OffsetDateTime; import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @@ -27,6 +30,7 @@ class StationMaintenanceControllerTest { private static final String BROKER_CODE = "brokerCode"; private static final String STATION_CODE = "stationCode"; + private static final Long MAINTENANCE_ID = 123L; @MockBean private StationMaintenanceService stationMaintenanceService; @@ -48,6 +52,18 @@ void createStationMaintenanceTest() throws Exception { .andExpect(content().contentType(MediaType.APPLICATION_JSON)); } + @Test + void updateStationMaintenanceTest() throws Exception { + when(stationMaintenanceService.updateStationMaintenance(anyString(), anyLong(), any())) + .thenReturn(buildMaintenanceResource()); + + mockMvc.perform(put("/brokers/{brokercode}/station-maintenances/{maintenanceid}", BROKER_CODE, MAINTENANCE_ID) + .contentType(MediaType.APPLICATION_JSON_VALUE) + .content(objectMapper.writeValueAsString(buildUpdateStationMaintenance())) + ).andExpect(status().is2xxSuccessful()) + .andExpect(content().contentType(MediaType.APPLICATION_JSON)); + } + private StationMaintenanceResource buildMaintenanceResource() { return StationMaintenanceResource.builder() .maintenanceId(123L) @@ -67,4 +83,12 @@ private CreateStationMaintenance buildCreateStationMaintenance() { .standIn(true) .build(); } + + private UpdateStationMaintenance buildUpdateStationMaintenance() { + return UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now()) + .endDateTime(OffsetDateTime.now()) + .standIn(true) + .build(); + } } \ No newline at end of file diff --git a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java index fce0d1276..6bc9d6e8f 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java @@ -4,6 +4,7 @@ import it.gov.pagopa.apiconfig.core.exception.AppException; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.repository.ExtendedStationMaintenanceRepository; import it.gov.pagopa.apiconfig.starter.entity.StationMaintenance; import it.gov.pagopa.apiconfig.starter.entity.StationMaintenanceSummaryView; @@ -22,8 +23,14 @@ import java.util.Collections; import java.util.Optional; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; @@ -34,6 +41,7 @@ class StationMaintenanceServiceTest { private static final String BROKER_CODE = "brokerCode"; private static final String STATION_CODE = "stationCode"; + private static final Long MAINTENANCE_ID = 123L; @MockBean private ExtendedStationMaintenanceRepository stationMaintenanceRepository; @@ -51,7 +59,7 @@ class StationMaintenanceServiceTest { private StationMaintenanceService sut; @Test - void createStationMaintenanceSuccessWithNoStandInOverride() { + void createStationMaintenanceSuccessWithoutStandInOverride() { when(stationMaintenanceRepository.findOverlappingMaintenance(anyString(), any(), any())).thenReturn(Collections.emptyList()); when(summaryViewRepository.findById(any())).thenReturn(Optional.of(buildSummaryViewNotExtra())); when(stationRepository.findByIdStazione(STATION_CODE)).thenReturn(Optional.of(new Stazioni())); @@ -71,6 +79,8 @@ void createStationMaintenanceSuccessWithNoStandInOverride() { verify(stationMaintenanceRepository).save(stationMaintenanceCaptor.capture()); StationMaintenance savedMaintenance = stationMaintenanceCaptor.getValue(); assertEquals(createMaintenance.getStandIn(), savedMaintenance.getStandIn()); + assertEquals(createMaintenance.getStartDateTime(), savedMaintenance.getStartDateTime()); + assertEquals(createMaintenance.getEndDateTime(), savedMaintenance.getEndDateTime()); } @Test @@ -95,6 +105,8 @@ void createStationMaintenanceSuccessWithStandInOverride() { StationMaintenance savedMaintenance = stationMaintenanceCaptor.getValue(); assertNotEquals(createMaintenance.getStandIn(), savedMaintenance.getStandIn()); assertTrue(savedMaintenance.getStandIn()); + assertEquals(createMaintenance.getStartDateTime(), savedMaintenance.getStartDateTime()); + assertEquals(createMaintenance.getEndDateTime(), savedMaintenance.getEndDateTime()); } @Test @@ -127,7 +139,7 @@ void createStationMaintenanceSuccessWithIgnoredSecondsAndMilliseconds() { @Test void createStationMaintenanceFailInvalidStartDate() { CreateStationMaintenance createMaintenance = buildCreateStationMaintenance( - OffsetDateTime.now(), + OffsetDateTime.now().withMinute(0).truncatedTo(ChronoUnit.MINUTES), OffsetDateTime.now().plusDays(5).plusHours(2).withMinute(0).truncatedTo(ChronoUnit.MINUTES) ); @@ -240,6 +252,348 @@ void createStationMaintenanceFailHasOverlappingMaintenance() { verify(stationMaintenanceRepository, never()).save(any()); } + @Test + void updateStationMaintenanceSuccessScheduledMaintenanceWithoutStandInOverride() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + when(stationMaintenanceRepository.findOverlappingMaintenance(anyString(), any(), any())) + .thenReturn(Collections.singletonList(oldMaintenance)); + when(summaryViewRepository.findById(any())).thenReturn(Optional.of(buildSummaryViewNotExtra())); + when(stationMaintenanceRepository.save(any())).thenReturn(buildMaintenance()); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().plusDays(5).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().plusDays(5).plusHours(2).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .standIn(false) + .build(); + + StationMaintenanceResource result = assertDoesNotThrow(() -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(result); + assertEquals(BROKER_CODE, result.getBrokerCode()); + assertEquals(STATION_CODE, result.getStationCode()); + + verify(stationMaintenanceRepository).save(stationMaintenanceCaptor.capture()); + StationMaintenance savedMaintenance = stationMaintenanceCaptor.getValue(); + assertEquals(updateStationMaintenance.getStandIn(), savedMaintenance.getStandIn()); + assertEquals(updateStationMaintenance.getStartDateTime(), savedMaintenance.getStartDateTime()); + assertEquals(updateStationMaintenance.getEndDateTime(), savedMaintenance.getEndDateTime()); + } + + @Test + void updateStationMaintenanceSuccessScheduledMaintenanceWithStandInOverride() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + when(stationMaintenanceRepository.findOverlappingMaintenance(anyString(), any(), any())) + .thenReturn(Collections.singletonList(oldMaintenance)); + when(summaryViewRepository.findById(any())).thenReturn(Optional.of(buildSummaryViewExtra())); + when(stationMaintenanceRepository.save(any())).thenReturn(buildMaintenance()); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().plusDays(5).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().plusDays(5).plusHours(2).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .standIn(false) + .build(); + + StationMaintenanceResource result = assertDoesNotThrow(() -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(result); + assertEquals(BROKER_CODE, result.getBrokerCode()); + assertEquals(STATION_CODE, result.getStationCode()); + + verify(stationMaintenanceRepository).save(stationMaintenanceCaptor.capture()); + StationMaintenance savedMaintenance = stationMaintenanceCaptor.getValue(); + assertNotEquals(updateStationMaintenance.getStandIn(), savedMaintenance.getStandIn()); + assertTrue(savedMaintenance.getStandIn()); + assertEquals(updateStationMaintenance.getStartDateTime(), savedMaintenance.getStartDateTime()); + assertEquals(updateStationMaintenance.getEndDateTime(), savedMaintenance.getEndDateTime()); + } + + @Test + void updateStationMaintenanceSuccessScheduledMaintenanceWithoutChangeStandIn() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + when(stationMaintenanceRepository.findOverlappingMaintenance(anyString(), any(), any())) + .thenReturn(Collections.singletonList(oldMaintenance)); + when(summaryViewRepository.findById(any())).thenReturn(Optional.of(buildSummaryViewExtra())); + when(stationMaintenanceRepository.save(any())).thenReturn(buildMaintenance()); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().plusDays(5).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().plusDays(5).plusHours(2).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + StationMaintenanceResource result = assertDoesNotThrow(() -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(result); + assertEquals(BROKER_CODE, result.getBrokerCode()); + assertEquals(STATION_CODE, result.getStationCode()); + + verify(stationMaintenanceRepository).save(stationMaintenanceCaptor.capture()); + StationMaintenance savedMaintenance = stationMaintenanceCaptor.getValue(); + assertNotEquals(updateStationMaintenance.getStandIn(), savedMaintenance.getStandIn()); + assertEquals(oldMaintenance.getStandIn(), savedMaintenance.getStandIn()); + assertEquals(updateStationMaintenance.getStartDateTime(), savedMaintenance.getStartDateTime()); + assertEquals(updateStationMaintenance.getEndDateTime(), savedMaintenance.getEndDateTime()); + } + + @Test + void updateStationMaintenanceSuccessInProgressMaintenance() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().minusHours(1)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + when(stationMaintenanceRepository.findOverlappingMaintenance(anyString(), any(), any())) + .thenReturn(Collections.singletonList(oldMaintenance)); + when(stationMaintenanceRepository.save(any())).thenReturn(buildMaintenance()); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().plusDays(5).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().plusHours(5).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .standIn(true) + .build(); + + StationMaintenanceResource result = assertDoesNotThrow(() -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(result); + assertEquals(BROKER_CODE, result.getBrokerCode()); + assertEquals(STATION_CODE, result.getStationCode()); + + verify(stationMaintenanceRepository).save(stationMaintenanceCaptor.capture()); + StationMaintenance savedMaintenance = stationMaintenanceCaptor.getValue(); + assertNotEquals(updateStationMaintenance.getStandIn(), savedMaintenance.getStandIn()); + assertNotEquals(updateStationMaintenance.getStartDateTime(), savedMaintenance.getStartDateTime()); + assertEquals(updateStationMaintenance.getEndDateTime(), savedMaintenance.getEndDateTime()); + + verify(summaryViewRepository, never()).findById(any()); + } + + @Test + void updateStationMaintenanceFailScheduledMaintenanceInvalidStartDateNull() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder().build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID.title, e.getTitle()); + + verify(stationMaintenanceRepository, never()).findOverlappingMaintenance(anyString(), any(), any()); + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailScheduledMaintenanceInvalidStartDate() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_START_DATE_TIME_NOT_VALID.title, e.getTitle()); + + verify(stationMaintenanceRepository, never()).findOverlappingMaintenance(anyString(), any(), any()); + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailScheduledMaintenanceStartDateNotRoundedTo15Minutes() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().withMinute(12).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.title, e.getTitle()); + + verify(stationMaintenanceRepository, never()).findOverlappingMaintenance(anyString(), any(), any()); + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailScheduledMaintenanceEndDateNotRoundedTo15Minutes() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().withMinute(34).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.title, e.getTitle()); + + verify(stationMaintenanceRepository, never()).findOverlappingMaintenance(anyString(), any(), any()); + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailScheduledMaintenanceEndDateBeforeStartDate() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().plusDays(5).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.title, e.getTitle()); + + verify(stationMaintenanceRepository, never()).findOverlappingMaintenance(anyString(), any(), any()); + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailScheduledMaintenanceHasOverlappingMaintenance() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().plusDays(3)); + StationMaintenance overlapping = buildMaintenance(); + overlapping.setObjId(11111L); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + when(stationMaintenanceRepository.findOverlappingMaintenance(anyString(), any(), any())) + .thenReturn(Collections.singletonList(overlapping)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .startDateTime(OffsetDateTime.now().plusDays(5).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .endDateTime(OffsetDateTime.now().plusDays(6).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING.title, e.getTitle()); + + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailInProgressMaintenanceEndDateNotRoundedTo15Minutes() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().minusHours(1)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .endDateTime(OffsetDateTime.now().withMinute(34).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.title, e.getTitle()); + + verify(stationMaintenanceRepository, never()).findOverlappingMaintenance(anyString(), any(), any()); + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailInProgressMaintenanceEndDateBeforeCurrentTimestamp() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().minusHours(1)); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .endDateTime(OffsetDateTime.now().minusHours(1).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_NOT_VALID.title, e.getTitle()); + + verify(stationMaintenanceRepository, never()).findOverlappingMaintenance(anyString(), any(), any()); + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + + @Test + void updateStationMaintenanceFailInProgressMaintenanceHasOverlappingMaintenance() { + StationMaintenance oldMaintenance = buildMaintenanceParametrized(OffsetDateTime.now().minusHours(1)); + StationMaintenance overlapping = buildMaintenance(); + overlapping.setObjId(11111L); + + when(stationMaintenanceRepository.findById(anyLong())) + .thenReturn(Optional.of(oldMaintenance)); + when(stationMaintenanceRepository.findOverlappingMaintenance(anyString(), any(), any())) + .thenReturn(Collections.singletonList(overlapping)); + + UpdateStationMaintenance updateStationMaintenance = UpdateStationMaintenance.builder() + .endDateTime(OffsetDateTime.now().plusHours(1).withMinute(0).truncatedTo(ChronoUnit.MINUTES)) + .build(); + + AppException e = assertThrows(AppException.class, () -> + sut.updateStationMaintenance(BROKER_CODE, MAINTENANCE_ID, updateStationMaintenance)); + + assertNotNull(e); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING.httpStatus, e.getHttpStatus()); + assertEquals(AppError.MAINTENANCE_DATE_TIME_INTERVAL_HAS_OVERLAPPING.title, e.getTitle()); + + verify(summaryViewRepository, never()).findById(any()); + verify(stationMaintenanceRepository, never()).save(any()); + } + private StationMaintenanceSummaryView buildSummaryViewNotExtra() { return StationMaintenanceSummaryView.builder() .scheduledHours(10.0) @@ -254,10 +608,20 @@ private StationMaintenanceSummaryView buildSummaryViewExtra() { .build(); } + private StationMaintenance buildMaintenanceParametrized(OffsetDateTime startDateTime) { + return StationMaintenance.builder() + .objId(MAINTENANCE_ID) + .station(Stazioni.builder().idStazione(STATION_CODE).build()) + .startDateTime(startDateTime) + .endDateTime(startDateTime.plusHours(2)) + .standIn(false) + .build(); + } + private StationMaintenance buildMaintenance() { return StationMaintenance.builder() - .objId(123L) - .station(new Stazioni()) + .objId(MAINTENANCE_ID) + .station(Stazioni.builder().idStazione(STATION_CODE).build()) .startDateTime(OffsetDateTime.now()) .endDateTime(OffsetDateTime.now()) .standIn(false) From 2ecf695ce55839d4642cf4212bee8a65b0919fd6 Mon Sep 17 00:00:00 2001 From: giomella Date: Tue, 23 Jul 2024 12:41:02 +0200 Subject: [PATCH 04/11] [PPANTT-36] updated openapi --- openapi/openapi.json | 277 +++++++++++++++++++++++----- openapi/swagger.json | 416 ++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 624 insertions(+), 69 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index d40a68f4d..7686bd229 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1260,6 +1260,171 @@ } ] }, + "/brokers/{brokercode}/station-maintenances/{maintenanceid}": { + "put": { + "tags": [ + "Creditor Institutions" + ], + "summary": "Update a maintenance for the specified station", + "operationId": "updateStationMaintenance", + "parameters": [ + { + "name": "brokercode", + "in": "path", + "description": "Broker's tax code", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "maintenanceid", + "in": "path", + "description": "Maintenance's id", + "required": true, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateStationMaintenance" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StationMaintenanceResource" + } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + } + }, + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] + }, + "parameters": [ + { + "name": "X-Request-Id", + "in": "header", + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema": { + "type": "string" + } + } + ] + }, "/brokerspsp": { "get": { "tags": [ @@ -18344,7 +18509,7 @@ }, "config_description": { "type": "string", - "example": " default millisecondi validità token" + "example": " default millisecondi validità token" } } }, @@ -18653,6 +18818,72 @@ } } }, + "UpdateStationMaintenance": { + "required": [ + "end_date_time" + ], + "type": "object", + "properties": { + "start_date_time": { + "type": "string", + "description": "The start date time of the station maintenance", + "format": "date-time", + "example": "2024-04-01T13:00:00Z" + }, + "end_date_time": { + "type": "string", + "description": "The end date time of the station maintenance", + "format": "date-time", + "example": "2024-04-01T13:00:00Z" + }, + "stand_in": { + "type": "boolean", + "description": "StandIn flag" + } + } + }, + "StationMaintenanceResource": { + "required": [ + "broker_code", + "end_date_time", + "maintenance_id", + "stand_in", + "start_date_time", + "station_code" + ], + "type": "object", + "properties": { + "maintenance_id": { + "type": "integer", + "description": "Maintenance's id", + "format": "int64" + }, + "start_date_time": { + "type": "string", + "description": "The start date time of the station maintenance", + "format": "date-time", + "example": "2024-04-01T13:00:00Z" + }, + "end_date_time": { + "type": "string", + "description": "The end date time of the station maintenance", + "format": "date-time", + "example": "2024-04-01T13:00:00Z" + }, + "stand_in": { + "type": "boolean", + "description": "StandIn flag" + }, + "station_code": { + "type": "string", + "description": "Code of the station subject of the maintenance" + }, + "broker_code": { + "type": "string", + "description": "Code of the broker that owns the station" + } + } + }, "PspChannelCode": { "required": [ "channel_code", @@ -18843,7 +19074,7 @@ }, "config_description": { "type": "string", - "example": " default millisecondi validità token" + "example": " default millisecondi validità token" }, "config_category": { "type": "string", @@ -18886,48 +19117,6 @@ } } }, - "StationMaintenanceResource": { - "required": [ - "broker_code", - "end_date_time", - "maintenance_id", - "stand_in", - "start_date_time", - "station_code" - ], - "type": "object", - "properties": { - "maintenance_id": { - "type": "integer", - "description": "Maintenance's id", - "format": "int64" - }, - "start_date_time": { - "type": "string", - "description": "The start date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "end_date_time": { - "type": "string", - "description": "The end date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "stand_in": { - "type": "boolean", - "description": "StandIn flag" - }, - "station_code": { - "type": "string", - "description": "Code of the station subject of the maintenance" - }, - "broker_code": { - "type": "string", - "description": "Code of the broker that owns the station" - } - } - }, "PageInfo": { "required": [ "items_found", diff --git a/openapi/swagger.json b/openapi/swagger.json index 39d45a10e..a5f7527a6 100644 --- a/openapi/swagger.json +++ b/openapi/swagger.json @@ -838,6 +838,264 @@ "summary": "Update a broker" } }, + "/brokers/{brokercode}/station-maintenances": { + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "type": "string" + } + ], + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "description": "Broker's tax code", + "in": "path", + "name": "brokercode", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CreateStationMaintenance" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/StationMaintenanceResource" + } + }, + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/ProblemJson" + } + }, + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + } + }, + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + } + }, + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/ProblemJson" + } + }, + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + } + }, + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/ProblemJson" + } + } + }, + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ], + "tags": [ + "Creditor Institutions" + ], + "operationId": "createStationMaintenance", + "summary": "Create a maintenance for the specified station" + } + }, + "/brokers/{brokercode}/station-maintenances/{maintenanceid}": { + "parameters": [ + { + "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "in": "header", + "name": "X-Request-Id", + "type": "string" + } + ], + "put": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "description": "Broker's tax code", + "in": "path", + "name": "brokercode", + "required": true, + "type": "string" + }, + { + "description": "Maintenance's id", + "format": "int64", + "in": "path", + "name": "maintenanceid", + "required": true, + "type": "integer" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateStationMaintenance" + } + } + ], + "responses": { + "200": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/StationMaintenanceResource" + } + }, + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/ProblemJson" + } + }, + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + } + }, + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + } + }, + "409": { + "description": "Conflict", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/ProblemJson" + } + }, + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + } + }, + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/ProblemJson" + } + } + }, + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ], + "tags": [ + "Creditor Institutions" + ], + "operationId": "updateStationMaintenance", + "summary": "Update a maintenance for the specified station" + } + }, "/brokerspsp": { "parameters": [ { @@ -7228,40 +7486,29 @@ ], "parameters": [ { - "default": 50, - "description": "Number of elements on one page. Default = 50", - "format": "int32", + "description": "Filter by creditor institution's tax code", "in": "query", - "name": "limit", + "name": "code", "required": false, - "type": "integer" - }, - { - "description": "Page number. Page value starts from 0", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "page", - "required": true, - "type": "integer" + "type": "string" }, { - "description": "Filter by code", + "description": "Filter by creditor institution's business name", "in": "query", - "name": "code", + "name": "name", "required": false, "type": "string" }, { - "description": "Filter by name", + "description": "Filter by creditor institution's enabled", "in": "query", - "name": "name", + "name": "enabled", "required": false, - "type": "string" + "type": "boolean" }, { "default": "CODE", - "description": "Order by code or name", + "description": "Order by creditor institution's tax code or business name", "enum": [ "CODE", "NAME" @@ -7282,6 +7529,24 @@ "name": "ordering", "required": false, "type": "string" + }, + { + "default": 50, + "description": "Number of elements on one page", + "format": "int32", + "in": "query", + "name": "limit", + "required": false, + "type": "integer" + }, + { + "description": "Page number", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "page", + "required": true, + "type": "integer" } ], "responses": { @@ -14201,11 +14466,17 @@ }, "enabled": { "type": "boolean" + }, + "primitive_version": { + "description": "Primitive number version", + "format": "int32", + "type": "integer" } }, "required": [ "channel_code", - "enabled" + "enabled", + "primitive_version" ], "type": "object" }, @@ -14275,8 +14546,6 @@ "primitive_version": { "description": "Primitive number version", "format": "int32", - "maximum": 2, - "minimum": 1, "type": "integer" }, "protocol": { @@ -14498,7 +14767,7 @@ "type": "string" }, "config_description": { - "example": " default millisecondi validità token", + "example": " default millisecondi validità token", "type": "string" }, "config_key": { @@ -14520,7 +14789,7 @@ "ConfigurationKeyBase": { "properties": { "config_description": { - "example": " default millisecondi validità token", + "example": " default millisecondi validità token", "type": "string" }, "config_value": { @@ -14597,6 +14866,37 @@ ], "type": "object" }, + "CreateStationMaintenance": { + "properties": { + "end_date_time": { + "description": "The end date time of the station maintenance", + "example": "2024-04-01T13:00:00Z", + "format": "date-time", + "type": "string" + }, + "stand_in": { + "description": "StandIn flag", + "type": "boolean" + }, + "start_date_time": { + "description": "The start date time of the station maintenance", + "example": "2024-04-01T13:00:00Z", + "format": "date-time", + "type": "string" + }, + "station_code": { + "description": "Code of the station subject of the maintenance", + "type": "string" + } + }, + "required": [ + "end_date_time", + "stand_in", + "start_date_time", + "station_code" + ], + "type": "object" + }, "CreditorInstitution": { "properties": { "business_name": { @@ -16049,6 +16349,48 @@ ], "type": "object" }, + "StationMaintenanceResource": { + "properties": { + "broker_code": { + "description": "Code of the broker that owns the station", + "type": "string" + }, + "end_date_time": { + "description": "The end date time of the station maintenance", + "example": "2024-04-01T13:00:00Z", + "format": "date-time", + "type": "string" + }, + "maintenance_id": { + "description": "Maintenance's id", + "format": "int64", + "type": "integer" + }, + "stand_in": { + "description": "StandIn flag", + "type": "boolean" + }, + "start_date_time": { + "description": "The start date time of the station maintenance", + "example": "2024-04-01T13:00:00Z", + "format": "date-time", + "type": "string" + }, + "station_code": { + "description": "Code of the station subject of the maintenance", + "type": "string" + } + }, + "required": [ + "broker_code", + "end_date_time", + "maintenance_id", + "stand_in", + "start_date_time", + "station_code" + ], + "type": "object" + }, "Stations": { "properties": { "page_info": { @@ -16067,6 +16409,30 @@ ], "type": "object" }, + "UpdateStationMaintenance": { + "properties": { + "end_date_time": { + "description": "The end date time of the station maintenance", + "example": "2024-04-01T13:00:00Z", + "format": "date-time", + "type": "string" + }, + "stand_in": { + "description": "StandIn flag", + "type": "boolean" + }, + "start_date_time": { + "description": "The start date time of the station maintenance", + "example": "2024-04-01T13:00:00Z", + "format": "date-time", + "type": "string" + } + }, + "required": [ + "end_date_time" + ], + "type": "object" + }, "WfespPluginConf": { "properties": { "id_bean": { From 86d1dac3be963d4162349c23af291d14cbe4adcc Mon Sep 17 00:00:00 2001 From: giomella Date: Tue, 23 Jul 2024 16:46:18 +0200 Subject: [PATCH 05/11] [PPANTT-39] added list maintenance API and configured station maintenance mapper --- .../core/config/MappingsConfiguration.java | 6 +- .../StationMaintenanceController.java | 105 +++++++++++++----- ...intenanceToStationMaintenanceResource.java | 26 +++++ .../StationMaintenanceListResource.java | 37 ++++++ .../service/StationMaintenanceService.java | 62 ++++++++--- .../StationMaintenanceServiceTest.java | 18 ++- 6 files changed, 206 insertions(+), 48 deletions(-) create mode 100644 src/main/java/it/gov/pagopa/apiconfig/core/mapper/ConvertStationMaintenanceToStationMaintenanceResource.java create mode 100644 src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceListResource.java diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/config/MappingsConfiguration.java b/src/main/java/it/gov/pagopa/apiconfig/core/config/MappingsConfiguration.java index 080878c25..7a7d98c94 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/config/MappingsConfiguration.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/config/MappingsConfiguration.java @@ -1,6 +1,7 @@ package it.gov.pagopa.apiconfig.core.config; import it.gov.pagopa.apiconfig.core.mapper.*; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; import it.gov.pagopa.apiconfig.starter.entity.*; import org.modelmapper.Converter; import org.modelmapper.ModelMapper; @@ -268,7 +269,10 @@ ModelMapper modelMapper() { mapper.createTypeMap(Cache.class, it.gov.pagopa.apiconfig.core.model.configuration.Cache.class) .setConverter(convertCacheToCacheModel); - + + mapper.createTypeMap(StationMaintenance.class, StationMaintenanceResource.class) + .setConverter(new ConvertStationMaintenanceToStationMaintenanceResource()); + return mapper; } } diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java index e27a9e913..df3508494 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java @@ -10,23 +10,31 @@ import io.swagger.v3.oas.annotations.tags.Tag; import it.gov.pagopa.apiconfig.core.model.ProblemJson; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceListResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.service.StationMaintenanceService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.format.annotation.DateTimeFormat; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; +import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; +import javax.validation.constraints.Positive; +import javax.validation.constraints.PositiveOrZero; +import java.time.OffsetDateTime; @RestController @RequestMapping(path = "/brokers") @@ -41,22 +49,64 @@ public StationMaintenanceController(StationMaintenanceService stationMaintenance this.stationMaintenanceService = stationMaintenanceService; } + @Operation(summary = "Get a paginated list of station's maintenance of the specified broker", + security = {@SecurityRequirement(name = "ApiKey"), @SecurityRequirement(name = "Authorization")}) + @ApiResponses(value = { + @ApiResponse(responseCode = "200", description = "Created", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = StationMaintenanceListResource.class))), + @ApiResponse(responseCode = "400", description = "Bad Request", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "409", description = "Conflict", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "429", description = "Too many requests", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "500", description = "Service unavailable", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))) + }) + @GetMapping(value = "/{brokercode}/station-maintenances", produces = {MediaType.APPLICATION_JSON_VALUE}) + public ResponseEntity getStationMaintenances( + @Parameter(description = "Broker's tax code") @PathVariable("brokercode") String brokerCode, + @Parameter(description = "Station's code") @RequestParam(required = false) String stationCode, + @Parameter(description = "Start date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", example = "2024-04-01T10:00:00.000Z") + @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime startDateTimeBefore, + @Parameter(description = "Start date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", example = "2024-04-01T10:00:00.000Z") + @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime startDateTimeAfter, + @Parameter(description = "End date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", example = "2024-04-01T13:00:00.000Z") + @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime endDateTimeBefore, + @Parameter(description = "End date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", example = "2024-04-01T13:00:00.000Z") + @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime endDateTimeAfter, + @Parameter(description = "Number of items for page") @RequestParam(required = false, defaultValue = "50") @Positive Integer limit, + @Parameter(description = "Page number") @RequestParam(required = false, defaultValue = "0") @Min(0) @PositiveOrZero Integer page + ) { + return ResponseEntity.ok( + this.stationMaintenanceService.getStationMaintenances( + brokerCode, + stationCode, + startDateTimeBefore, + startDateTimeAfter, + endDateTimeBefore, + endDateTimeAfter, + limit, + page + )); + } + @Operation(summary = "Create a maintenance for the specified station", security = {@SecurityRequirement(name = "ApiKey"), @SecurityRequirement(name = "Authorization")}) - @ApiResponses( - value = { - @ApiResponse(responseCode = "201", description = "Created", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = StationMaintenanceResource.class))), - @ApiResponse(responseCode = "400", description = "Bad Request", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), - @ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content(schema = @Schema())), - @ApiResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema())), - @ApiResponse(responseCode = "409", description = "Conflict", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), - @ApiResponse(responseCode = "429", description = "Too many requests", content = @Content(schema = @Schema())), - @ApiResponse(responseCode = "500", description = "Service unavailable", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))) - }) + @ApiResponses(value = { + @ApiResponse(responseCode = "201", description = "Created", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = StationMaintenanceResource.class))), + @ApiResponse(responseCode = "400", description = "Bad Request", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "409", description = "Conflict", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "429", description = "Too many requests", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "500", description = "Service unavailable", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))) + }) @PostMapping(value = "/{brokercode}/station-maintenances", produces = {MediaType.APPLICATION_JSON_VALUE}) public ResponseEntity createStationMaintenance( @Parameter(description = "Broker's tax code") @PathVariable("brokercode") String brokerCode, @@ -69,20 +119,19 @@ public ResponseEntity createStationMaintenance( @Operation(summary = "Update a maintenance for the specified station", security = {@SecurityRequirement(name = "ApiKey"), @SecurityRequirement(name = "Authorization")}) - @ApiResponses( - value = { - @ApiResponse(responseCode = "200", description = "Created", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = StationMaintenanceResource.class))), - @ApiResponse(responseCode = "400", description = "Bad Request", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), - @ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content(schema = @Schema())), - @ApiResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema())), - @ApiResponse(responseCode = "409", description = "Conflict", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), - @ApiResponse(responseCode = "429", description = "Too many requests", content = @Content(schema = @Schema())), - @ApiResponse(responseCode = "500", description = "Service unavailable", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))) - }) + @ApiResponses(value = { + @ApiResponse(responseCode = "200", description = "Created", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = StationMaintenanceResource.class))), + @ApiResponse(responseCode = "400", description = "Bad Request", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "409", description = "Conflict", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), + @ApiResponse(responseCode = "429", description = "Too many requests", content = @Content(schema = @Schema())), + @ApiResponse(responseCode = "500", description = "Service unavailable", + content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))) + }) @PutMapping(value = "/{brokercode}/station-maintenances/{maintenanceid}", produces = {MediaType.APPLICATION_JSON_VALUE}) public ResponseEntity updateStationMaintenance( @Parameter(description = "Broker's tax code") @PathVariable("brokercode") String brokerCode, diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/mapper/ConvertStationMaintenanceToStationMaintenanceResource.java b/src/main/java/it/gov/pagopa/apiconfig/core/mapper/ConvertStationMaintenanceToStationMaintenanceResource.java new file mode 100644 index 000000000..54c8ed5e3 --- /dev/null +++ b/src/main/java/it/gov/pagopa/apiconfig/core/mapper/ConvertStationMaintenanceToStationMaintenanceResource.java @@ -0,0 +1,26 @@ +package it.gov.pagopa.apiconfig.core.mapper; + +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; +import it.gov.pagopa.apiconfig.starter.entity.StationMaintenance; +import org.modelmapper.Converter; +import org.modelmapper.spi.MappingContext; + +/** + * Converter class that specify how to convert a {@link StationMaintenance} instance to a {@link StationMaintenanceResource} instance + */ +public class ConvertStationMaintenanceToStationMaintenanceResource implements Converter { + + @Override + public StationMaintenanceResource convert(MappingContext context) { + StationMaintenance model = context.getSource(); + + return StationMaintenanceResource.builder() + .maintenanceId(model.getObjId()) + .brokerCode(model.getStation().getIntermediarioPa().getIdIntermediarioPa()) + .stationCode(model.getStation().getIdStazione()) + .startDateTime(model.getStartDateTime()) + .endDateTime(model.getEndDateTime()) + .standIn(model.getStandIn()) + .build(); + } +} \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceListResource.java b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceListResource.java new file mode 100644 index 000000000..409a294ab --- /dev/null +++ b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceListResource.java @@ -0,0 +1,37 @@ +package it.gov.pagopa.apiconfig.core.model.stationmaintenance; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.v3.oas.annotations.media.Schema; +import it.gov.pagopa.apiconfig.core.model.PageInfo; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.List; + +/** + * Model class the response for station's maintenance APIs + */ +@Getter +@Setter +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class StationMaintenanceListResource { + + @JsonProperty("station_maintenance_list") + @Schema(description = "List of station's maintenance", required = true) + @NotNull + @Valid + private List maintenanceList; + + @JsonProperty("page_info") + @Schema(required = true) + @NotNull + @Valid + private PageInfo pageInfo; +} \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java index 042a50ccb..3c6311ca9 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java @@ -2,7 +2,9 @@ import it.gov.pagopa.apiconfig.core.exception.AppError; import it.gov.pagopa.apiconfig.core.exception.AppException; +import it.gov.pagopa.apiconfig.core.model.PageInfo; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceListResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.repository.ExtendedStationMaintenanceRepository; @@ -12,13 +14,17 @@ import it.gov.pagopa.apiconfig.starter.entity.Stazioni; import it.gov.pagopa.apiconfig.starter.repository.StationMaintenanceSummaryViewRepository; import it.gov.pagopa.apiconfig.starter.repository.StazioniRepository; +import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.validation.annotation.Validated; import java.time.OffsetDateTime; import java.time.temporal.ChronoUnit; +import java.util.List; @Service @Validated @@ -28,16 +34,19 @@ public class StationMaintenanceService { private final ExtendedStationMaintenanceRepository stationMaintenanceRepository; private final StationMaintenanceSummaryViewRepository summaryViewRepository; private final StazioniRepository stationRepository; + private final ModelMapper mapper; @Autowired public StationMaintenanceService( ExtendedStationMaintenanceRepository stationMaintenanceRepository, StationMaintenanceSummaryViewRepository summaryViewRepository, - StazioniRepository stationRepository + StazioniRepository stationRepository, + ModelMapper mapper ) { this.stationMaintenanceRepository = stationMaintenanceRepository; this.summaryViewRepository = summaryViewRepository; this.stationRepository = stationRepository; + this.mapper = mapper; } /** @@ -83,14 +92,7 @@ public StationMaintenanceResource createStationMaintenance( StationMaintenance maintenance = buildStationMaintenance(brokerCode, createStationMaintenance, now, startDateTime, endDateTime); StationMaintenance saved = this.stationMaintenanceRepository.save(maintenance); - return StationMaintenanceResource.builder() - .maintenanceId(saved.getObjId()) - .brokerCode(brokerCode) - .startDateTime(saved.getStartDateTime()) - .endDateTime(saved.getEndDateTime()) - .standIn(saved.getStandIn()) - .stationCode(createStationMaintenance.getStationCode()) - .build(); + return this.mapper.map(saved, StationMaintenanceResource.class); } /** @@ -138,13 +140,41 @@ public StationMaintenanceResource updateStationMaintenance( saved = updateScheduledStationMaintenance(brokerCode, now, updateStationMaintenance, stationMaintenance); } - return StationMaintenanceResource.builder() - .maintenanceId(saved.getObjId()) - .brokerCode(brokerCode) - .startDateTime(saved.getStartDateTime()) - .endDateTime(saved.getEndDateTime()) - .standIn(saved.getStandIn()) - .stationCode(stationMaintenance.getStation().getIdStazione()) + return this.mapper.map(saved, StationMaintenanceResource.class); + } + + public StationMaintenanceListResource getStationMaintenances( + String brokerCode, + String stationCode, + OffsetDateTime startDateTimeBefore, + OffsetDateTime startDateTimeAfter, + OffsetDateTime endDateTimeBefore, + OffsetDateTime endDateTimeAfter, + Integer limit, + Integer page + ) { + Page response = this.stationMaintenanceRepository.findAllByFilters( + brokerCode, + stationCode, + startDateTimeBefore, + startDateTimeAfter, + endDateTimeBefore, + endDateTimeAfter, + PageRequest.of(page, limit) + ); + List maintenanceList = response.getContent().parallelStream() + .map(maintenance -> this.mapper.map(maintenance, StationMaintenanceResource.class)) + .toList(); + + return StationMaintenanceListResource.builder() + .maintenanceList(maintenanceList) + .pageInfo(PageInfo.builder() + .page(page) + .limit(limit) + .totalItems(response.getTotalElements()) + .totalPages(response.getTotalPages()) + .itemsFound(response.getNumberOfElements()) + .build()) .build(); } diff --git a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java index 6bc9d6e8f..c8eea8767 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java @@ -1,11 +1,13 @@ package it.gov.pagopa.apiconfig.core.service; +import it.gov.pagopa.apiconfig.core.config.MappingsConfiguration; import it.gov.pagopa.apiconfig.core.exception.AppError; import it.gov.pagopa.apiconfig.core.exception.AppException; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.repository.ExtendedStationMaintenanceRepository; +import it.gov.pagopa.apiconfig.starter.entity.IntermediariPa; import it.gov.pagopa.apiconfig.starter.entity.StationMaintenance; import it.gov.pagopa.apiconfig.starter.entity.StationMaintenanceSummaryView; import it.gov.pagopa.apiconfig.starter.entity.Stazioni; @@ -36,7 +38,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -@SpringBootTest(classes = StationMaintenanceService.class) +@SpringBootTest(classes = {StationMaintenanceService.class, MappingsConfiguration.class}) class StationMaintenanceServiceTest { private static final String BROKER_CODE = "brokerCode"; @@ -611,7 +613,12 @@ private StationMaintenanceSummaryView buildSummaryViewExtra() { private StationMaintenance buildMaintenanceParametrized(OffsetDateTime startDateTime) { return StationMaintenance.builder() .objId(MAINTENANCE_ID) - .station(Stazioni.builder().idStazione(STATION_CODE).build()) + .station(Stazioni.builder() + .idStazione(STATION_CODE) + .intermediarioPa(IntermediariPa.builder() + .idIntermediarioPa(BROKER_CODE) + .build()) + .build()) .startDateTime(startDateTime) .endDateTime(startDateTime.plusHours(2)) .standIn(false) @@ -621,7 +628,12 @@ private StationMaintenance buildMaintenanceParametrized(OffsetDateTime startDate private StationMaintenance buildMaintenance() { return StationMaintenance.builder() .objId(MAINTENANCE_ID) - .station(Stazioni.builder().idStazione(STATION_CODE).build()) + .station(Stazioni.builder() + .idStazione(STATION_CODE) + .intermediarioPa(IntermediariPa.builder() + .idIntermediarioPa(BROKER_CODE) + .build()) + .build()) .startDateTime(OffsetDateTime.now()) .endDateTime(OffsetDateTime.now()) .standIn(false) From ae1d4455f9c9617f71057fb8dfee03bd11260a2f Mon Sep 17 00:00:00 2001 From: giomella Date: Tue, 23 Jul 2024 16:58:58 +0200 Subject: [PATCH 06/11] [PPANTT-39] updated openapi and added javadoc --- openapi/openapi.json | 219 +++++++++++++++++- .../StationMaintenanceController.java | 2 - .../CreateStationMaintenance.java | 2 +- .../StationMaintenanceResource.java | 2 +- .../UpdateStationMaintenance.java | 2 +- .../service/StationMaintenanceService.java | 13 ++ 6 files changed, 231 insertions(+), 9 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 7686bd229..3b1411d2f 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1106,6 +1106,197 @@ ] }, "/brokers/{brokercode}/station-maintenances": { + "get": { + "tags": [ + "Creditor Institutions" + ], + "summary": "Get a paginated list of station's maintenance of the specified broker", + "operationId": "getStationMaintenances", + "parameters": [ + { + "name": "brokercode", + "in": "path", + "description": "Broker's tax code", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "stationCode", + "in": "query", + "description": "Station's code", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "startDateTimeBefore", + "in": "query", + "description": "Start date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "example": "2024-04-01T10:00:00.000Z" + }, + { + "name": "startDateTimeAfter", + "in": "query", + "description": "Start date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "example": "2024-04-01T10:00:00.000Z" + }, + { + "name": "endDateTimeBefore", + "in": "query", + "description": "End date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "example": "2024-04-01T13:00:00.000Z" + }, + { + "name": "endDateTimeAfter", + "in": "query", + "description": "End date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "example": "2024-04-01T13:00:00.000Z" + }, + { + "name": "limit", + "in": "query", + "description": "Number of items for page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "name": "page", + "in": "query", + "description": "Page number", + "required": false, + "schema": { + "minimum": 0, + "type": "integer", + "format": "int32", + "default": 0 + } + } + ], + "responses": { + "200": { + "description": "Created", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StationMaintenanceListResource" + } + } + } + }, + "400": { + "description": "Bad Request", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + }, + "401": { + "description": "Unauthorized", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "403": { + "description": "Forbidden", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "429": { + "description": "Too many requests", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + } + }, + "500": { + "description": "Service unavailable", + "headers": { + "X-Request-Id": { + "description": "This header identifies the call", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemJson" + } + } + } + } + }, + "security": [ + { + "ApiKey": [] + }, + { + "Authorization": [] + } + ] + }, "post": { "tags": [ "Creditor Institutions" @@ -18828,7 +19019,7 @@ "type": "string", "description": "The start date time of the station maintenance", "format": "date-time", - "example": "2024-04-01T13:00:00Z" + "example": "2024-04-01T10:00:00Z" }, "end_date_time": { "type": "string", @@ -18862,7 +19053,7 @@ "type": "string", "description": "The start date time of the station maintenance", "format": "date-time", - "example": "2024-04-01T13:00:00Z" + "example": "2024-04-01T10:00:00Z" }, "end_date_time": { "type": "string", @@ -18882,7 +19073,8 @@ "type": "string", "description": "Code of the broker that owns the station" } - } + }, + "description": "List of station's maintenance" }, "PspChannelCode": { "required": [ @@ -19099,7 +19291,7 @@ "type": "string", "description": "The start date time of the station maintenance", "format": "date-time", - "example": "2024-04-01T13:00:00Z" + "example": "2024-04-01T10:00:00Z" }, "end_date_time": { "type": "string", @@ -20261,6 +20453,25 @@ "$ref": "#/components/schemas/PageInfo" } } + }, + "StationMaintenanceListResource": { + "required": [ + "page_info", + "station_maintenance_list" + ], + "type": "object", + "properties": { + "station_maintenance_list": { + "type": "array", + "description": "List of station's maintenance", + "items": { + "$ref": "#/components/schemas/StationMaintenanceResource" + } + }, + "page_info": { + "$ref": "#/components/schemas/PageInfo" + } + } } }, "securitySchemes": { diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java index df3508494..b0fe47e53 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java @@ -58,8 +58,6 @@ public StationMaintenanceController(StationMaintenanceService stationMaintenance content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), @ApiResponse(responseCode = "401", description = "Unauthorized", content = @Content(schema = @Schema())), @ApiResponse(responseCode = "403", description = "Forbidden", content = @Content(schema = @Schema())), - @ApiResponse(responseCode = "409", description = "Conflict", - content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))), @ApiResponse(responseCode = "429", description = "Too many requests", content = @Content(schema = @Schema())), @ApiResponse(responseCode = "500", description = "Service unavailable", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = ProblemJson.class))) diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/CreateStationMaintenance.java b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/CreateStationMaintenance.java index 8cc1b7f5f..c677340c1 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/CreateStationMaintenance.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/CreateStationMaintenance.java @@ -34,7 +34,7 @@ public class CreateStationMaintenance { @JsonSerialize(using = OffsetDateTimeSerializer.class) @JsonDeserialize(using = OffsetDateTimeDeserializer.class) @Schema( - example = "2024-04-01T13:00:00.000Z", + example = "2024-04-01T10:00:00.000Z", required = true, description = "The start date time of the station maintenance") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceResource.java b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceResource.java index a4f717b5f..972c33ff6 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceResource.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/StationMaintenanceResource.java @@ -36,7 +36,7 @@ public class StationMaintenanceResource { @JsonFormat(pattern = Constants.DateTimeFormat.DATE_TIME_FORMAT) @JsonSerialize(using = OffsetDateTimeSerializer.class) @Schema( - example = "2024-04-01T13:00:00.000Z", + example = "2024-04-01T10:00:00.000Z", required = true, description = "The start date time of the station maintenance") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java index dce6c63df..fe0b391e8 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/model/stationmaintenance/UpdateStationMaintenance.java @@ -33,7 +33,7 @@ public class UpdateStationMaintenance { @JsonSerialize(using = OffsetDateTimeSerializer.class) @JsonDeserialize(using = OffsetDateTimeDeserializer.class) @Schema( - example = "2024-04-01T13:00:00.000Z", + example = "2024-04-01T10:00:00.000Z", description = "The start date time of the station maintenance") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime startDateTime; diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java index 3c6311ca9..ccd3b0b2e 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java @@ -143,6 +143,19 @@ public StationMaintenanceResource updateStationMaintenance( return this.mapper.map(saved, StationMaintenanceResource.class); } + /** + * Retrieve a paginated list of station maintenance for the specified broker with the specified filters. + * + * @param brokerCode broker's tax code + * @param stationCode station's code + * @param startDateTimeBefore used to filter out all maintenance that have the start date time before this date time + * @param startDateTimeAfter used to filter out all maintenance that have the start date time after this date time + * @param endDateTimeBefore used to filter out all maintenance that have the end date time before this date time + * @param endDateTimeAfter used to filter out all maintenance that have the end date time after this date time + * @param limit page size + * @param page page number + * @return the requested page of maintenances + */ public StationMaintenanceListResource getStationMaintenances( String brokerCode, String stationCode, From c9e6a0b2342616f00bd44539d957af19f1240d3f Mon Sep 17 00:00:00 2001 From: giomella Date: Tue, 23 Jul 2024 17:17:08 +0200 Subject: [PATCH 07/11] [PPANTT-39] added unit tests --- .../StationMaintenanceControllerTest.java | 36 +++++++++++++++++++ .../StationMaintenanceServiceTest.java | 33 +++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java b/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java index dee4ccc30..51e00e47c 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java @@ -1,7 +1,9 @@ package it.gov.pagopa.apiconfig.core.controller; import com.fasterxml.jackson.databind.ObjectMapper; +import it.gov.pagopa.apiconfig.core.model.PageInfo; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceListResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.service.StationMaintenanceService; @@ -14,11 +16,15 @@ import org.springframework.test.web.servlet.MockMvc; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.Collections; import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; @@ -64,6 +70,26 @@ void updateStationMaintenanceTest() throws Exception { .andExpect(content().contentType(MediaType.APPLICATION_JSON)); } + @Test + void getStationMaintenancesTest() throws Exception { + when(stationMaintenanceService.getStationMaintenances(anyString(), anyString(), any(), any(), any(), any(), anyInt(), anyInt())) + .thenReturn(StationMaintenanceListResource.builder() + .maintenanceList(Collections.singletonList(buildMaintenanceResource())) + .pageInfo(buildPageInfo()) + .build()); + + mockMvc.perform(get("/brokers/{brokercode}/station-maintenances", BROKER_CODE) + .param("stationCode", STATION_CODE) + .param("startDateTimeBefore", OffsetDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME)) + .param("startDateTimeAfter", OffsetDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME)) + .param("endDateTimeBefore", OffsetDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME)) + .param("endDateTimeAfter", OffsetDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME)) + .param("limit", "10") + .param("page", "0") + ).andExpect(status().is2xxSuccessful()) + .andExpect(content().contentType(MediaType.APPLICATION_JSON)); + } + private StationMaintenanceResource buildMaintenanceResource() { return StationMaintenanceResource.builder() .maintenanceId(123L) @@ -91,4 +117,14 @@ private UpdateStationMaintenance buildUpdateStationMaintenance() { .standIn(true) .build(); } + + private PageInfo buildPageInfo() { + return PageInfo.builder() + .totalPages(1) + .page(0) + .limit(10) + .totalItems(1L) + .itemsFound(1) + .build(); + } } \ No newline at end of file diff --git a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java index c8eea8767..4882f7ebf 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java @@ -4,6 +4,7 @@ import it.gov.pagopa.apiconfig.core.exception.AppError; import it.gov.pagopa.apiconfig.core.exception.AppException; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.CreateStationMaintenance; +import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceListResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.StationMaintenanceResource; import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.repository.ExtendedStationMaintenanceRepository; @@ -19,10 +20,12 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; +import org.springframework.data.domain.PageImpl; import java.time.OffsetDateTime; import java.time.temporal.ChronoUnit; import java.util.Collections; +import java.util.List; import java.util.Optional; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; @@ -596,6 +599,36 @@ void updateStationMaintenanceFailInProgressMaintenanceHasOverlappingMaintenance( verify(stationMaintenanceRepository, never()).save(any()); } + @Test + void getStationMaintenancesSuccess() { + List list = Collections.singletonList(buildMaintenance()); + when(stationMaintenanceRepository.findAllByFilters( + anyString(), + anyString(), + any(), + any(), + any(), + any(), + any() + )).thenReturn(new PageImpl<>(list)); + + + StationMaintenanceListResource result = assertDoesNotThrow(() -> + sut.getStationMaintenances( + BROKER_CODE, + STATION_CODE, + OffsetDateTime.now(), + OffsetDateTime.now(), + OffsetDateTime.now(), + OffsetDateTime.now(), + 10, + 0)); + + assertNotNull(result); + assertEquals(list.size(), result.getMaintenanceList().size()); + assertEquals(list.size(), result.getPageInfo().getItemsFound()); + } + private StationMaintenanceSummaryView buildSummaryViewNotExtra() { return StationMaintenanceSummaryView.builder() .scheduledHours(10.0) From ceafc255a52f474dc474bc4782a850405f23aa95 Mon Sep 17 00:00:00 2001 From: giomella Date: Wed, 24 Jul 2024 10:13:55 +0200 Subject: [PATCH 08/11] [PPANTT-39] fix openapi --- openapi/openapi.json | 2 +- .../apiconfig/core/controller/StationMaintenanceController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 3b1411d2f..6d012268a 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1110,7 +1110,7 @@ "tags": [ "Creditor Institutions" ], - "summary": "Get a paginated list of station's maintenance of the specified broker", + "summary": "Get a paginated list of station's maintenance for the specified broker", "operationId": "getStationMaintenances", "parameters": [ { diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java index b0fe47e53..1428b9b7d 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java @@ -49,7 +49,7 @@ public StationMaintenanceController(StationMaintenanceService stationMaintenance this.stationMaintenanceService = stationMaintenanceService; } - @Operation(summary = "Get a paginated list of station's maintenance of the specified broker", + @Operation(summary = "Get a paginated list of station's maintenance for the specified broker", security = {@SecurityRequirement(name = "ApiKey"), @SecurityRequirement(name = "Authorization")}) @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Created", From c5cf932de5811ab1351d8085afe242608bb4ab98 Mon Sep 17 00:00:00 2001 From: giomella Date: Wed, 24 Jul 2024 10:45:08 +0200 Subject: [PATCH 09/11] [PPANTT-39] fix code smell --- .../controller/StationMaintenanceController.java | 4 ++-- .../core/service/StationMaintenanceService.java | 14 ++++++-------- .../StationMaintenanceControllerTest.java | 2 +- .../service/StationMaintenanceServiceTest.java | 5 +++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java index 1428b9b7d..ea104c7e3 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceController.java @@ -15,6 +15,7 @@ import it.gov.pagopa.apiconfig.core.model.stationmaintenance.UpdateStationMaintenance; import it.gov.pagopa.apiconfig.core.service.StationMaintenanceService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.domain.PageRequest; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; @@ -85,8 +86,7 @@ public ResponseEntity getStationMaintenances( startDateTimeAfter, endDateTimeBefore, endDateTimeAfter, - limit, - page + PageRequest.of(page, limit) )); } diff --git a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java index ccd3b0b2e..76cd92706 100644 --- a/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java +++ b/src/main/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceService.java @@ -17,7 +17,7 @@ import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.validation.annotation.Validated; @@ -152,8 +152,7 @@ public StationMaintenanceResource updateStationMaintenance( * @param startDateTimeAfter used to filter out all maintenance that have the start date time after this date time * @param endDateTimeBefore used to filter out all maintenance that have the end date time before this date time * @param endDateTimeAfter used to filter out all maintenance that have the end date time after this date time - * @param limit page size - * @param page page number + * @param pageable contains info about the requested page * @return the requested page of maintenances */ public StationMaintenanceListResource getStationMaintenances( @@ -163,8 +162,7 @@ public StationMaintenanceListResource getStationMaintenances( OffsetDateTime startDateTimeAfter, OffsetDateTime endDateTimeBefore, OffsetDateTime endDateTimeAfter, - Integer limit, - Integer page + Pageable pageable ) { Page response = this.stationMaintenanceRepository.findAllByFilters( brokerCode, @@ -173,7 +171,7 @@ public StationMaintenanceListResource getStationMaintenances( startDateTimeAfter, endDateTimeBefore, endDateTimeAfter, - PageRequest.of(page, limit) + pageable ); List maintenanceList = response.getContent().parallelStream() .map(maintenance -> this.mapper.map(maintenance, StationMaintenanceResource.class)) @@ -182,8 +180,8 @@ public StationMaintenanceListResource getStationMaintenances( return StationMaintenanceListResource.builder() .maintenanceList(maintenanceList) .pageInfo(PageInfo.builder() - .page(page) - .limit(limit) + .page(pageable.getPageNumber()) + .limit(pageable.getPageSize()) .totalItems(response.getTotalElements()) .totalPages(response.getTotalPages()) .itemsFound(response.getNumberOfElements()) diff --git a/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java b/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java index 51e00e47c..021e544d1 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/core/controller/StationMaintenanceControllerTest.java @@ -72,7 +72,7 @@ void updateStationMaintenanceTest() throws Exception { @Test void getStationMaintenancesTest() throws Exception { - when(stationMaintenanceService.getStationMaintenances(anyString(), anyString(), any(), any(), any(), any(), anyInt(), anyInt())) + when(stationMaintenanceService.getStationMaintenances(anyString(), anyString(), any(), any(), any(), any(), any())) .thenReturn(StationMaintenanceListResource.builder() .maintenanceList(Collections.singletonList(buildMaintenanceResource())) .pageInfo(buildPageInfo()) diff --git a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java index 4882f7ebf..19e4d8280 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java +++ b/src/test/java/it/gov/pagopa/apiconfig/core/service/StationMaintenanceServiceTest.java @@ -21,6 +21,7 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.data.domain.PageImpl; +import org.springframework.data.domain.PageRequest; import java.time.OffsetDateTime; import java.time.temporal.ChronoUnit; @@ -621,8 +622,8 @@ void getStationMaintenancesSuccess() { OffsetDateTime.now(), OffsetDateTime.now(), OffsetDateTime.now(), - 10, - 0)); + PageRequest.of(0, 10) + )); assertNotNull(result); assertEquals(list.size(), result.getMaintenanceList().size()); From 223257953ffae6339d7f3ecde3b648d2b4191abf Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Fri, 26 Jul 2024 11:04:57 +0200 Subject: [PATCH 10/11] [PPANTT-39] feat: Updated pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7541693b3..2c9395882 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 42.5.5 8.6.6 1.17.6 - 1.21.0 + 1.21.2 From 0044383e352f37714d4671b377b14c5e03c8d9d0 Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Mon, 29 Jul 2024 12:44:46 +0200 Subject: [PATCH 11/11] [PPANTT-39] feat: updated openapi.json --- openapi/openapi.json | 28403 ++++++++++++++++++++--------------------- 1 file changed, 13582 insertions(+), 14821 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 1d77558e9..1c659fa8c 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,20299 +1,19060 @@ { - "openapi": "3.0.1", - "info": { - "title": "core", - "description": "Spring application exposes APIs to manage configuration for CI/PSP on the Nodo dei Pagamenti", - "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.59.6" + "openapi" : "3.0.1", + "info" : { + "title" : "core", + "description" : "@project.description@", + "termsOfService" : "https://www.pagopa.gov.it/", + "version" : "0.59.5" }, - "servers": [ - { - "url": "http://localhost:8080" - }, - { - "url": "https://{host}{basePath}", - "variables": { - "host": { - "default": "api.dev.platform.pagopa.it", - "enum": [ - "api.dev.platform.pagopa.it", - "api.uat.platform.pagopa.it", - "api.platform.pagopa.it" - ] - }, - "basePath": { - "default": "/apiconfig/auth/api/v1", - "enum": [ - "/apiconfig/auth/api/v1", - "/apiconfig/api/v1" - ] - } + "servers" : [ { + "url" : "http://localhost:8080" + }, { + "url" : "https://{host}{basePath}", + "variables" : { + "host" : { + "default" : "api.dev.platform.pagopa.it", + "enum" : [ "api.dev.platform.pagopa.it", "api.uat.platform.pagopa.it", "api.platform.pagopa.it" ] + }, + "basePath" : { + "default" : "/apiconfig/auth/api/v1", + "enum" : [ "/apiconfig/auth/api/v1", "/apiconfig/api/v1" ] } } - ], - "tags": [ - { - "name": "Payment Service Providers", - "description": "Everything about Payment Service Providers" - }, - { - "name": "Ibans", - "description": "Everything about Iban" - }, - { - "name": "Batch Operation", - "description": "Everything about Batch Operation" - }, - { - "name": "Creditor Institutions", - "description": "Everything about Creditor Institution" - }, - { - "name": "Configuration", - "description": "Everything about Configuration" - }, - { - "name": "Cache", - "description": "Everything about Cache" - }, - { - "name": "Utilities", - "description": "Everything about Utilities" - }, - { - "name": "Refresh Operation", - "description": "Refresh and trigger job for node configuration" - } - ], - "paths": { - "/batchoperation/creditorinstitution-station/loading": { - "post": { - "tags": [ - "Batch Operation" - ], - "summary": "Update a CSV file containing the relationship between Creditor Institution and Station", - "operationId": "manageCIStationRelationship", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "CSV file regarding CI-Station relationship to manage", - "format": "binary" + } ], + "tags" : [ { + "name" : "Payment Service Providers", + "description" : "Everything about Payment Service Providers" + }, { + "name" : "Ibans", + "description" : "Everything about Iban" + }, { + "name" : "Batch Operation", + "description" : "Everything about Batch Operation" + }, { + "name" : "Creditor Institutions", + "description" : "Everything about Creditor Institution" + }, { + "name" : "Configuration", + "description" : "Everything about Configuration" + }, { + "name" : "Cache", + "description" : "Everything about Cache" + }, { + "name" : "Utilities", + "description" : "Everything about Utilities" + }, { + "name" : "Refresh Operation", + "description" : "Refresh and trigger job for node configuration" + } ], + "paths" : { + "/batchoperation/creditorinstitution-station/loading" : { + "post" : { + "tags" : [ "Batch Operation" ], + "summary" : "Update a CSV file containing the relationship between Creditor Institution and Station", + "operationId" : "manageCIStationRelationship", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "CSV file regarding CI-Station relationship to manage", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/batchoperation/creditorinstitution-station/migration": { - "post": { - "tags": [ - "Batch Operation" - ], - "summary": "Massive migration of the Station-CI relations", - "operationId": "massiveMigration", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "CSV file regarding relations to migrate", - "format": "binary" + "/batchoperation/creditorinstitution-station/migration" : { + "post" : { + "tags" : [ "Batch Operation" ], + "summary" : "Massive migration of the Station-CI relations", + "operationId" : "massiveMigration", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "CSV file regarding relations to migrate", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokers": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get paginated list of creditor brokers", - "operationId": "getBrokers", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "code", - "in": "query", - "description": "Filter by code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "name", - "in": "query", - "description": "Filter by name", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "orderby", - "in": "query", - "description": "Order by code or name", - "required": false, - "schema": { - "type": "string", - "default": "CODE", - "enum": [ - "CODE", - "NAME" - ] - } - }, - { - "name": "ordering", - "in": "query", - "description": "Direction of ordering", - "required": false, - "schema": { - "type": "string", - "default": "DESC", - "enum": [ - "ASC", - "DESC" - ] - } + "/brokers" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get paginated list of creditor brokers", + "operationId" : "getBrokers", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "code", + "in" : "query", + "description" : "Filter by code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "name", + "in" : "query", + "description" : "Filter by name", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "orderby", + "in" : "query", + "description" : "Order by code or name", + "required" : false, + "schema" : { + "type" : "string", + "default" : "CODE", + "enum" : [ "CODE", "NAME" ] + } + }, { + "name" : "ordering", + "in" : "query", + "description" : "Direction of ordering", + "required" : false, + "schema" : { + "type" : "string", + "default" : "DESC", + "enum" : [ "ASC", "DESC" ] } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Brokers" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Brokers" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Create a broker", - "operationId": "createBroker", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerDetails" + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Create a broker", + "operationId" : "createBroker", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerDetails" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokers/{brokercode}": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get creditor broker details ", - "operationId": "getBroker", - "parameters": [ - { - "name": "brokercode", - "in": "path", - "description": "broker code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/brokers/{brokercode}" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get creditor broker details ", + "operationId" : "getBroker", + "parameters" : [ { + "name" : "brokercode", + "in" : "path", + "description" : "broker code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Update a broker", - "operationId": "updateBroker", - "parameters": [ - { - "name": "brokercode", - "in": "path", - "description": "broker code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "description": "The values to update of the broker", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerDetails" - } - } - }, - "required": true + "put" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Update a broker", + "operationId" : "updateBroker", + "parameters" : [ { + "name" : "brokercode", + "in" : "path", + "description" : "broker code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "description" : "The values to update of the broker", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerDetails" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Delete a broker", - "operationId": "deleteBroker", - "parameters": [ - { - "name": "brokercode", - "in": "path", - "description": "broker code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "delete" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Delete a broker", + "operationId" : "deleteBroker", + "parameters" : [ { + "name" : "brokercode", + "in" : "path", + "description" : "broker code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokers/{brokercode}/station-maintenances": { - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Create a maintenance for the specified station", - "operationId": "createStationMaintenance", - "parameters": [ - { - "name": "brokercode", - "in": "path", - "description": "Broker's tax code", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateStationMaintenance" - } - } - }, - "required": true + "/brokers/{brokercode}/station-maintenances" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get a paginated list of station's maintenance for the specified broker", + "operationId" : "getStationMaintenances", + "parameters" : [ { + "name" : "brokercode", + "in" : "path", + "description" : "Broker's tax code", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "stationCode", + "in" : "query", + "description" : "Station's code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "startDateTimeBefore", + "in" : "query", + "description" : "Start date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required" : false, + "schema" : { + "type" : "string", + "format" : "date-time" + }, + "example" : "2024-04-01T10:00:00.000Z" + }, { + "name" : "startDateTimeAfter", + "in" : "query", + "description" : "Start date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required" : false, + "schema" : { + "type" : "string", + "format" : "date-time" + }, + "example" : "2024-04-01T10:00:00.000Z" + }, { + "name" : "endDateTimeBefore", + "in" : "query", + "description" : "End date of maintenance, used to retrieve all maintenance that start before the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required" : false, + "schema" : { + "type" : "string", + "format" : "date-time" + }, + "example" : "2024-04-01T13:00:00.000Z" + }, { + "name" : "endDateTimeAfter", + "in" : "query", + "description" : "End date of maintenance, used to retrieve all maintenance that start after the provided date (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')", + "required" : false, + "schema" : { + "type" : "string", + "format" : "date-time" + }, + "example" : "2024-04-01T13:00:00.000Z" + }, { + "name" : "limit", + "in" : "query", + "description" : "Number of items for page", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number", + "required" : false, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 + } + } ], + "responses" : { + "200" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationMaintenanceListResource" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" + } + } + } + }, + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + } + }, + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + } + }, + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + } + }, + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" + } + } + } + } + }, + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] + }, + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Create a maintenance for the specified station", + "operationId" : "createStationMaintenance", + "parameters" : [ { + "name" : "brokercode", + "in" : "path", + "description" : "Broker's tax code", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateStationMaintenance" + } + } + }, + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationMaintenanceResource" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationMaintenanceResource" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokers/{brokercode}/station-maintenances/{maintenanceid}": { - "put": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Update a maintenance for the specified station", - "operationId": "updateStationMaintenance", - "parameters": [ - { - "name": "brokercode", - "in": "path", - "description": "Broker's tax code", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "maintenanceid", - "in": "path", - "description": "Maintenance's id", - "required": true, - "schema": { - "type": "integer", - "format": "int64" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateStationMaintenance" - } - } - }, - "required": true + "/brokers/{brokercode}/station-maintenances/{maintenanceid}" : { + "put" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Update a maintenance for the specified station", + "operationId" : "updateStationMaintenance", + "parameters" : [ { + "name" : "brokercode", + "in" : "path", + "description" : "Broker's tax code", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "maintenanceid", + "in" : "path", + "description" : "Maintenance's id", + "required" : true, + "schema" : { + "type" : "integer", + "format" : "int64" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateStationMaintenance" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationMaintenanceResource" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationMaintenanceResource" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokerspsp": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get paginated list of PSP brokers", - "operationId": "getBrokersPsp", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "code", - "in": "query", - "description": "Filter by code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "name", - "in": "query", - "description": "Filter by name", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "orderby", - "in": "query", - "description": "Order by code or name", - "required": false, - "schema": { - "type": "string", - "default": "CODE", - "enum": [ - "CODE", - "NAME" - ] - } - }, - { - "name": "ordering", - "in": "query", - "description": "Direction of ordering", - "required": false, - "schema": { - "type": "string", - "default": "DESC", - "enum": [ - "ASC", - "DESC" - ] - } + "/brokerspsp" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get paginated list of PSP brokers", + "operationId" : "getBrokersPsp", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "code", + "in" : "query", + "description" : "Filter by code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "name", + "in" : "query", + "description" : "Filter by name", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "orderby", + "in" : "query", + "description" : "Order by code or name", + "required" : false, + "schema" : { + "type" : "string", + "default" : "CODE", + "enum" : [ "CODE", "NAME" ] + } + }, { + "name" : "ordering", + "in" : "query", + "description" : "Direction of ordering", + "required" : false, + "schema" : { + "type" : "string", + "default" : "DESC", + "enum" : [ "ASC", "DESC" ] } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokersPsp" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokersPsp" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Create a PSP broker", - "operationId": "createBrokerPsp", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerPspDetails" + "post" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Create a PSP broker", + "operationId" : "createBrokerPsp", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerPspDetails" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerPspDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerPspDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokerspsp/{brokerpspcode}": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get PSP broker details", - "operationId": "getBrokerPsp", - "parameters": [ - { - "name": "brokerpspcode", - "in": "path", - "description": "Broker code of a PSP.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/brokerspsp/{brokerpspcode}" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get PSP broker details", + "operationId" : "getBrokerPsp", + "parameters" : [ { + "name" : "brokerpspcode", + "in" : "path", + "description" : "Broker code of a PSP.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerPspDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerPspDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Update a broker PSP", - "operationId": "updateBrokerPsp", - "parameters": [ - { - "name": "brokerpspcode", - "in": "path", - "description": "broker PSP code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "description": "The values to update of the broker PSP", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerPspDetails" - } - } - }, - "required": true + "put" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Update a broker PSP", + "operationId" : "updateBrokerPsp", + "parameters" : [ { + "name" : "brokerpspcode", + "in" : "path", + "description" : "broker PSP code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "description" : "The values to update of the broker PSP", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerPspDetails" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BrokerPspDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BrokerPspDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Delete a broker PSP", - "operationId": "deleteBrokerPsp", - "parameters": [ - { - "name": "brokerpspcode", - "in": "path", - "description": "broker PSP code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "delete" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Delete a broker PSP", + "operationId" : "deleteBrokerPsp", + "parameters" : [ { + "name" : "brokerpspcode", + "in" : "path", + "description" : "broker PSP code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/brokerspsp/{brokerpspcode}/paymentserviceproviders": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get the PSP list of a broker", - "operationId": "getPspBrokerPsp", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "brokerpspcode", - "in": "path", - "description": "Broker code of a PSP.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/brokerspsp/{brokerpspcode}/paymentserviceproviders" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get the PSP list of a broker", + "operationId" : "getPspBrokerPsp", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "brokerpspcode", + "in" : "path", + "description" : "Broker code of a PSP.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProviders" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProviders" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/cache/versions": { - "get": { - "tags": [ - "Cache" - ], - "summary": "Get cache versions", - "operationId": "getCacheVersions", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 3", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 3 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": false, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } + "/cache/versions" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get cache versions", + "operationId" : "getCacheVersions", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 3", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 3 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : false, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CacheVersions" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CacheVersions" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/cache/versions/{version}": { - "get": { - "tags": [ - "Cache" - ], - "summary": "Get cache by version", - "operationId": "getCacheByVersion", - "parameters": [ - { - "name": "version", - "in": "path", - "description": "Node version", - "required": true, - "schema": { - "type": "string" - } + "/cache/versions/{version}" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get cache by version", + "operationId" : "getCacheByVersion", + "parameters" : [ { + "name" : "version", + "in" : "path", + "description" : "Node version", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "binary" + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/octet-stream": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/octet-stream" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/cache/versions/{version}/id": { - "get": { - "tags": [ - "Cache" - ], - "summary": "Get cache id by version", - "operationId": "getCacheId", - "parameters": [ - { - "name": "version", - "in": "path", - "description": "Node version", - "required": true, - "schema": { - "type": "string" - } + "/cache/versions/{version}/id" : { + "get" : { + "tags" : [ "Cache" ], + "summary" : "Get cache id by version", + "operationId" : "getCacheId", + "parameters" : [ { + "name" : "version", + "in" : "path", + "description" : "Node version", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Cache" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Cache" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/cdis": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get paginated list of CDIs", - "operationId": "getCdis", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "idcdi", - "in": "query", - "description": "filter by Id CDI", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pspcode", - "in": "query", - "description": "filter by PSP", - "required": false, - "schema": { - "type": "string" - } + "/cdis" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get paginated list of CDIs", + "operationId" : "getCdis", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "idcdi", + "in" : "query", + "description" : "filter by Id CDI", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspcode", + "in" : "query", + "description" : "filter by PSP", + "required" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Cdis" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Cdis" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Update a XML file containing the details of an CDI", - "operationId": "createCdi", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "XML file regarding CDI to create", - "format": "binary" + "post" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Update a XML file containing the details of an CDI", + "operationId" : "createCdi", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "XML file regarding CDI to create", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "422": { - "description": "Unprocessable Content", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "422" : { + "description" : "Unprocessable Content", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/cdis/check": { - "post": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Verify a XML file containing the details of an CDI", - "operationId": "verifyCdi", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "XML file regarding CDI to check", - "format": "binary" + "/cdis/check" : { + "post" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Verify a XML file containing the details of an CDI", + "operationId" : "verifyCdi", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "XML file regarding CDI to check", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CheckItem" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CheckItem" } } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/cdis/history": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Sync CDI history", - "operationId": "uploadHistory_1", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/cdis/history" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Sync CDI history", + "operationId" : "uploadHistory_1", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/cdis/{idcdi}": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Download a XML file containing the details of a CDI", - "operationId": "getCdi", - "parameters": [ - { - "name": "idcdi", - "in": "path", - "description": "Id of a CDI", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "pspcode", - "in": "query", - "description": "PSP code", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } + "/cdis/{idcdi}" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Download a XML file containing the details of a CDI", + "operationId" : "getCdi", + "parameters" : [ { + "name" : "idcdi", + "in" : "path", + "description" : "Id of a CDI", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + }, { + "name" : "pspcode", + "in" : "query", + "description" : "PSP code", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/xml": { - "schema": { - "type": "string", - "format": "binary" + "content" : { + "application/xml" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/xml": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/xml" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Delete an CDI file", - "operationId": "deleteCdi", - "parameters": [ - { - "name": "idcdi", - "in": "path", - "description": "Id of a CDI", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "pspcode", - "in": "query", - "description": "PSP code", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } + "delete" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Delete an CDI file", + "operationId" : "deleteCdi", + "parameters" : [ { + "name" : "idcdi", + "in" : "path", + "description" : "Id of a CDI", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + }, { + "name" : "pspcode", + "in" : "query", + "description" : "PSP code", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/channels": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get paginated list of channels", - "operationId": "getChannels", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "brokercode", - "in": "query", - "description": "Filter by broker", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "brokerdescription", - "in": "query", - "description": "Filter by broker description", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "code", - "in": "query", - "description": "Filter by code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "ordering", - "in": "query", - "description": "Direction of ordering. Results are ordered by code", - "required": false, - "schema": { - "type": "string", - "default": "DESC", - "enum": [ - "ASC", - "DESC" - ] - } + "/channels" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get paginated list of channels", + "operationId" : "getChannels", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "brokercode", + "in" : "query", + "description" : "Filter by broker", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "brokerdescription", + "in" : "query", + "description" : "Filter by broker description", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "code", + "in" : "query", + "description" : "Filter by code", + "required" : false, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "ordering", + "in" : "query", + "description" : "Direction of ordering. Results are ordered by code", + "required" : false, + "schema" : { + "type" : "string", + "default" : "DESC", + "enum" : [ "ASC", "DESC" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Channels" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Channels" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Create a Channel", - "operationId": "createChannel", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelDetails" + "post" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Create a Channel", + "operationId" : "createChannel", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelDetails" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/channels/csv": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Download the list of channelss as CSV file", - "operationId": "getChannelsCSV", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/channels/csv" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Download the list of channelss as CSV file", + "operationId" : "getChannelsCSV", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "binary" + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/channels/{channelcode}": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get Channel details ", - "operationId": "getChannel", - "parameters": [ - { - "name": "channelcode", - "in": "path", - "description": "channel code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/channels/{channelcode}" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get Channel details ", + "operationId" : "getChannel", + "parameters" : [ { + "name" : "channelcode", + "in" : "path", + "description" : "channel code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Update a Channel", - "operationId": "updateChannel", - "parameters": [ - { - "name": "channelcode", - "in": "path", - "description": "Channel code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelDetails" - } - } - }, - "required": true + "put" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Update a Channel", + "operationId" : "updateChannel", + "parameters" : [ { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelDetails" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Delete a Channel", - "operationId": "deleteChannel", - "parameters": [ - { - "name": "channelcode", - "in": "path", - "description": "Channel code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "delete" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Delete a Channel", + "operationId" : "deleteChannel", + "parameters" : [ { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/channels/{channelcode}/paymentserviceproviders": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get the list of PSPs associated with the channel", - "operationId": "getChannelPaymentServiceProviders", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "channelcode", - "in": "path", - "description": "Channel code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "pspCode", - "in": "query", - "description": "Filter by psp code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pspName", - "in": "query", - "description": "Filter by psp name", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pspEnabled", - "in": "query", - "description": "Filter by psp enabled", - "required": false, - "schema": { - "type": "boolean" - } + "/channels/{channelcode}/paymentserviceproviders" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get the list of PSPs associated with the channel", + "operationId" : "getChannelPaymentServiceProviders", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + }, { + "name" : "pspCode", + "in" : "query", + "description" : "Filter by psp code", + "required" : false, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "pspName", + "in" : "query", + "description" : "Filter by psp name", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspEnabled", + "in" : "query", + "description" : "Filter by psp enabled", + "required" : false, + "schema" : { + "type" : "boolean" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChannelPspList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ChannelPspList" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/channels/{channelcode}/paymentserviceproviders/csv": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Download the list of PSPs as CSV file", - "operationId": "getChannelPaymentServiceProvidersCSV", - "parameters": [ - { - "name": "channelcode", - "in": "path", - "description": "Channel code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/channels/{channelcode}/paymentserviceproviders/csv" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Download the list of PSPs as CSV file", + "operationId" : "getChannelPaymentServiceProvidersCSV", + "parameters" : [ { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "binary" + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/channels/{channelcode}/paymenttypes": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get a payment types of a channel", - "operationId": "getChannelPaymentTypes", - "parameters": [ - { - "name": "channelcode", - "in": "path", - "description": "Channel code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/channels/{channelcode}/paymenttypes" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get a payment types of a channel", + "operationId" : "getChannelPaymentTypes", + "parameters" : [ { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelPaymentTypes" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelPaymentTypes" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Create a payment types of a channel", - "operationId": "createChannelPaymentType", - "parameters": [ - { - "name": "channelcode", - "in": "path", - "description": "Channel code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelPaymentTypes" - } - } - }, - "required": true + "post" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Create a payment types of a channel", + "operationId" : "createChannelPaymentType", + "parameters" : [ { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelPaymentTypes" + } + } + }, + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelPaymentTypes" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelPaymentTypes" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/channels/{channelcode}/paymenttypes/{paymenttypecode}": { - "delete": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Delete a payment types of a channel", - "operationId": "deleteChannelPaymentType", - "parameters": [ - { - "name": "channelcode", - "in": "path", - "description": "Channel code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "paymenttypecode", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "/channels/{channelcode}/paymenttypes/{paymenttypecode}" : { + "delete" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Delete a payment types of a channel", + "operationId" : "deleteChannelPaymentType", + "parameters" : [ { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "paymenttypecode", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/ftpservers": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get list of ftp server", - "operationId": "getFtpServers", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/configuration/ftpservers" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get list of ftp server", + "operationId" : "getFtpServers", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FtpServers" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FtpServers" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Configuration" - ], - "summary": "Create ftp server", - "operationId": "createFtpServer", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FtpServer" + "post" : { + "tags" : [ "Configuration" ], + "summary" : "Create ftp server", + "operationId" : "createFtpServer", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FtpServer" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FtpServer" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FtpServer" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/ftpservers/host/{host}/port/{port}/service/{service}": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get details of ftp server", - "operationId": "getFtpServer", - "parameters": [ - { - "name": "host", - "in": "path", - "description": "Host", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "port", - "in": "path", - "description": "Port", - "required": true, - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "service", - "in": "path", - "description": "Service", - "required": true, - "schema": { - "type": "string" - } + "/configuration/ftpservers/host/{host}/port/{port}/service/{service}" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get details of ftp server", + "operationId" : "getFtpServer", + "parameters" : [ { + "name" : "host", + "in" : "path", + "description" : "Host", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "port", + "in" : "path", + "description" : "Port", + "required" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "service", + "in" : "path", + "description" : "Service", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FtpServer" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FtpServer" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Configuration" - ], - "summary": "Update configuration key", - "operationId": "updateFtpServer", - "parameters": [ - { - "name": "host", - "in": "path", - "description": "Host", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "port", - "in": "path", - "description": "Port", - "required": true, - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "service", - "in": "path", - "description": "Service", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FtpServer" - } - } - }, - "required": true + "put" : { + "tags" : [ "Configuration" ], + "summary" : "Update configuration key", + "operationId" : "updateFtpServer", + "parameters" : [ { + "name" : "host", + "in" : "path", + "description" : "Host", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "port", + "in" : "path", + "description" : "Port", + "required" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "service", + "in" : "path", + "description" : "Service", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FtpServer" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FtpServer" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/FtpServer" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Configuration" - ], - "summary": "Delete configuration key", - "operationId": "deleteFtpServer", - "parameters": [ - { - "name": "host", - "in": "path", - "description": "Host", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "port", - "in": "path", - "description": "Port", - "required": true, - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "service", - "in": "path", - "description": "Service", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Configuration" ], + "summary" : "Delete configuration key", + "operationId" : "deleteFtpServer", + "parameters" : [ { + "name" : "host", + "in" : "path", + "description" : "Host", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "port", + "in" : "path", + "description" : "Port", + "required" : true, + "schema" : { + "type" : "integer", + "format" : "int32" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "service", + "in" : "path", + "description" : "Service", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/keys": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get list of configuration key", - "operationId": "getConfigurationKeys", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/configuration/keys" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get list of configuration key", + "operationId" : "getConfigurationKeys", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationKeys" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigurationKeys" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Configuration" - ], - "summary": "Create configuration key", - "operationId": "createConfigurationKey", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationKey" + "post" : { + "tags" : [ "Configuration" ], + "summary" : "Create configuration key", + "operationId" : "createConfigurationKey", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigurationKey" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationKey" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigurationKey" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/keys/category/{category}/key/{key}": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get details of configuration key", - "operationId": "getConfigurationKey", - "parameters": [ - { - "name": "category", - "in": "path", - "description": "Configuration category", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "key", - "in": "path", - "description": "Configuration key", - "required": true, - "schema": { - "type": "string" - } + "/configuration/keys/category/{category}/key/{key}" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get details of configuration key", + "operationId" : "getConfigurationKey", + "parameters" : [ { + "name" : "category", + "in" : "path", + "description" : "Configuration category", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "key", + "in" : "path", + "description" : "Configuration key", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationKey" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigurationKey" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Configuration" - ], - "summary": "Update configuration key", - "operationId": "updateConfigurationKey", - "parameters": [ - { - "name": "category", - "in": "path", - "description": "Configuration category", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "key", - "in": "path", - "description": "Configuration key", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationKeyBase" - } - } - }, - "required": true + "put" : { + "tags" : [ "Configuration" ], + "summary" : "Update configuration key", + "operationId" : "updateConfigurationKey", + "parameters" : [ { + "name" : "category", + "in" : "path", + "description" : "Configuration category", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "key", + "in" : "path", + "description" : "Configuration key", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigurationKeyBase" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfigurationKeyBase" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigurationKeyBase" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Configuration" - ], - "summary": "Delete configuration key", - "operationId": "deleteConfigurationKey", - "parameters": [ - { - "name": "category", - "in": "path", - "description": "Configuration category", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "key", - "in": "path", - "description": "Configuration key", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Configuration" ], + "summary" : "Delete configuration key", + "operationId" : "deleteConfigurationKey", + "parameters" : [ { + "name" : "category", + "in" : "path", + "description" : "Configuration category", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "key", + "in" : "path", + "description" : "Configuration key", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/paymenttypes": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get list of payment type", - "operationId": "getPaymentTypes", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/configuration/paymenttypes" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get list of payment type", + "operationId" : "getPaymentTypes", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentTypes" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentTypes" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Configuration" - ], - "summary": "Create payment type", - "operationId": "createPaymentType", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentType" + "post" : { + "tags" : [ "Configuration" ], + "summary" : "Create payment type", + "operationId" : "createPaymentType", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentType" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentType" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentType" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/paymenttypes/history": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Trigger to upload payment types history on AFM Marketplace", - "operationId": "uploadHistory", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/configuration/paymenttypes/history" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Trigger to upload payment types history on AFM Marketplace", + "operationId" : "uploadHistory", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/paymenttypes/{paymentTypeCode}": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get details of payment type", - "operationId": "getPaymentType", - "parameters": [ - { - "name": "paymentTypeCode", - "in": "path", - "description": "Payment type code", - "required": true, - "schema": { - "type": "string" - } + "/configuration/paymenttypes/{paymentTypeCode}" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get details of payment type", + "operationId" : "getPaymentType", + "parameters" : [ { + "name" : "paymentTypeCode", + "in" : "path", + "description" : "Payment type code", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentType" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentType" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Configuration" - ], - "summary": "Update payment type", - "operationId": "updatePaymentType", - "parameters": [ - { - "name": "paymentTypeCode", - "in": "path", - "description": "Payment type code", - "required": true, - "schema": { - "pattern": "[A-Z]*", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentTypeBase" - } - } - }, - "required": true + "put" : { + "tags" : [ "Configuration" ], + "summary" : "Update payment type", + "operationId" : "updatePaymentType", + "parameters" : [ { + "name" : "paymentTypeCode", + "in" : "path", + "description" : "Payment type code", + "required" : true, + "schema" : { + "pattern" : "[A-Z]*", + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentTypeBase" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentType" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentType" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Configuration" - ], - "summary": "Delete payment type", - "operationId": "deletePaymentType", - "parameters": [ - { - "name": "paymentTypeCode", - "in": "path", - "description": "Payment type code", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Configuration" ], + "summary" : "Delete payment type", + "operationId" : "deletePaymentType", + "parameters" : [ { + "name" : "paymentTypeCode", + "in" : "path", + "description" : "Payment type code", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/pdds": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get list of pdd", - "operationId": "getPdds", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/configuration/pdds" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get list of pdd", + "operationId" : "getPdds", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pdds" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Pdds" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Configuration" - ], - "summary": "Create pdd", - "operationId": "createPdd", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pdd" + "post" : { + "tags" : [ "Configuration" ], + "summary" : "Create pdd", + "operationId" : "createPdd", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Pdd" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pdd" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Pdd" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/pdds/{id_pdd}": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get details of a pdd", - "operationId": "getPdd", - "parameters": [ - { - "name": "id_pdd", - "in": "path", - "description": "Configuration identifier", - "required": true, - "schema": { - "type": "string" - } + "/configuration/pdds/{id_pdd}" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get details of a pdd", + "operationId" : "getPdd", + "parameters" : [ { + "name" : "id_pdd", + "in" : "path", + "description" : "Configuration identifier", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pdd" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Pdd" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Configuration" - ], - "summary": "Update pdd", - "operationId": "updatePdd", - "parameters": [ - { - "name": "id_pdd", - "in": "path", - "description": "Configuration identifier", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PddBase" - } - } - }, - "required": true + "put" : { + "tags" : [ "Configuration" ], + "summary" : "Update pdd", + "operationId" : "updatePdd", + "parameters" : [ { + "name" : "id_pdd", + "in" : "path", + "description" : "Configuration identifier", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PddBase" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PddBase" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PddBase" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Configuration" - ], - "summary": "Delete pdd", - "operationId": "deletePdd", - "parameters": [ - { - "name": "id_pdd", - "in": "path", - "description": "Configuration identifier", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Configuration" ], + "summary" : "Delete pdd", + "operationId" : "deletePdd", + "parameters" : [ { + "name" : "id_pdd", + "in" : "path", + "description" : "Configuration identifier", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/wfespplugins": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get list of WFESP Plugin configuration", - "operationId": "getWfespPlugins", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/configuration/wfespplugins" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get list of WFESP Plugin configuration", + "operationId" : "getWfespPlugins", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WfespPluginConfs" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WfespPluginConfs" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Configuration" - ], - "summary": "Create configuration key", - "operationId": "createWfespPlugin", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WfespPluginConf" + "post" : { + "tags" : [ "Configuration" ], + "summary" : "Create configuration key", + "operationId" : "createWfespPlugin", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WfespPluginConf" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WfespPluginConf" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WfespPluginConf" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/configuration/wfespplugins/{idServPlugin}": { - "get": { - "tags": [ - "Configuration" - ], - "summary": "Get details of a Wfesp plugin", - "operationId": "getWfespPlugin", - "parameters": [ - { - "name": "idServPlugin", - "in": "path", - "description": "idServPlugin", - "required": true, - "schema": { - "type": "string" - } + "/configuration/wfespplugins/{idServPlugin}" : { + "get" : { + "tags" : [ "Configuration" ], + "summary" : "Get details of a Wfesp plugin", + "operationId" : "getWfespPlugin", + "parameters" : [ { + "name" : "idServPlugin", + "in" : "path", + "description" : "idServPlugin", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WfespPluginConf" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WfespPluginConf" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Configuration" - ], - "summary": "Update Wfesp plugin configuration", - "operationId": "updateWfespPlugin", - "parameters": [ - { - "name": "idServPlugin", - "in": "path", - "description": "idServPlugin", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WfespPluginConfBase" - } - } - }, - "required": true + "put" : { + "tags" : [ "Configuration" ], + "summary" : "Update Wfesp plugin configuration", + "operationId" : "updateWfespPlugin", + "parameters" : [ { + "name" : "idServPlugin", + "in" : "path", + "description" : "idServPlugin", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WfespPluginConfBase" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WfespPluginConfBase" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WfespPluginConfBase" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Configuration" - ], - "summary": "Delete configuration key", - "operationId": "deleteWfespPlugin", - "parameters": [ - { - "name": "idServPlugin", - "in": "path", - "description": "idServPlugin", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Configuration" ], + "summary" : "Delete configuration key", + "operationId" : "deleteWfespPlugin", + "parameters" : [ { + "name" : "idServPlugin", + "in" : "path", + "description" : "idServPlugin", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/counterparttables": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get the counterparties table", - "operationId": "getCounterpartTables", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "idcounterparttable", - "in": "query", - "description": "filter by Id of counterpart table", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "query", - "description": "filter by Creditor Institution", - "required": false, - "schema": { - "type": "string" - } + "/counterparttables" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get the counterparties table", + "operationId" : "getCounterpartTables", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "idcounterparttable", + "in" : "query", + "description" : "filter by Id of counterpart table", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "creditorinstitutioncode", + "in" : "query", + "description" : "filter by Creditor Institution", + "required" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CounterpartTables" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CounterpartTables" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Upload a XML file containing the details of a Counterpart table", - "operationId": "createCounterpartTable", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "The file to upload", - "format": "binary" + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Upload a XML file containing the details of a Counterpart table", + "operationId" : "createCounterpartTable", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "The file to upload", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/counterparttables/{idcounterparttable}": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Download a XML file containing the details of a counterpart table", - "operationId": "getCounterpartTable", - "parameters": [ - { - "name": "idcounterparttable", - "in": "path", - "description": "Id counterpart table", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "query", - "description": "Creditor institution code", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/xml": { - "schema": { - "type": "string", - "format": "binary" + "/counterparttables/{idcounterparttable}" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Download a XML file containing the details of a counterpart table", + "operationId" : "getCounterpartTable", + "parameters" : [ { + "name" : "idcounterparttable", + "in" : "path", + "description" : "Id counterpart table", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "creditorinstitutioncode", + "in" : "query", + "description" : "Creditor institution code", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/xml" : { + "schema" : { + "type" : "string", + "format" : "binary" } }, - "application/json": { - "schema": { - "type": "string", - "format": "binary" + "application/json" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Delete a Counterpart table XML file ", - "operationId": "deleteCounterpartTable", - "parameters": [ - { - "name": "idcounterparttable", - "in": "path", - "description": "ID of a counterpart table", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "query", - "description": "Creditor institution code", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Delete a Counterpart table XML file ", + "operationId" : "deleteCounterpartTable", + "parameters" : [ { + "name" : "idcounterparttable", + "in" : "path", + "description" : "ID of a counterpart table", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "creditorinstitutioncode", + "in" : "query", + "description" : "Creditor institution code", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get paginated list of creditor institutions", - "operationId": "getCreditorInstitutions", - "parameters": [ - { - "name": "code", - "in": "query", - "description": "Filter by creditor institution's tax code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "name", - "in": "query", - "description": "Filter by creditor institution's business name", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "enabled", - "in": "query", - "description": "Filter by creditor institution's enabled", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "orderby", - "in": "query", - "description": "Order by creditor institution's tax code or business name", - "required": false, - "schema": { - "type": "string", - "default": "CODE", - "enum": [ - "CODE", - "NAME" - ] - } - }, - { - "name": "ordering", - "in": "query", - "description": "Direction of ordering", - "required": false, - "schema": { - "type": "string", - "default": "DESC", - "enum": [ - "ASC", - "DESC" - ] - } - }, - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } + "/creditorinstitutions" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get paginated list of creditor institutions", + "operationId" : "getCreditorInstitutions", + "parameters" : [ { + "name" : "code", + "in" : "query", + "description" : "Filter by creditor institution's tax code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "name", + "in" : "query", + "description" : "Filter by creditor institution's business name", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "enabled", + "in" : "query", + "description" : "Filter by creditor institution's enabled", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "orderby", + "in" : "query", + "description" : "Order by creditor institution's tax code or business name", + "required" : false, + "schema" : { + "type" : "string", + "default" : "CODE", + "enum" : [ "CODE", "NAME" ] + } + }, { + "name" : "ordering", + "in" : "query", + "description" : "Direction of ordering", + "required" : false, + "schema" : { + "type" : "string", + "default" : "DESC", + "enum" : [ "ASC", "DESC" ] + } + }, { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "page", + "in" : "query", + "description" : "Page number", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutions" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutions" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Create creditor institution", - "operationId": "createCreditorInstitution", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionDetails" + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Create creditor institution", + "operationId" : "createCreditorInstitution", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionDetails" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/cbill": { - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Upload a CSV file containing the cbill codes", - "operationId": "massiveUploadCbillCsv", - "parameters": [ - { - "name": "incremental", - "in": "query", - "description": "Loading mode (true = incremental|false = full): incremental sets only PA entry with no cbill code, full replace the cbill code for all the CI in the PA table", - "required": false, - "schema": { - "type": "boolean", - "default": true - } - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "CSV file regarding cbill codes to load", - "format": "binary" + "/creditorinstitutions/cbill" : { + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Upload a CSV file containing the cbill codes", + "operationId" : "massiveUploadCbillCsv", + "parameters" : [ { + "name" : "incremental", + "in" : "query", + "description" : "Loading mode (true = incremental|false = full): incremental sets only PA entry with no cbill code, full replace the cbill code for all the CI in the PA table", + "required" : false, + "schema" : { + "type" : "boolean", + "default" : true + } + } ], + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "CSV file regarding cbill codes to load", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/ibans": { - "post": { - "tags": [ - "Ibans" - ], - "summary": "Upload a zip file containing the details of multiple ibans to create", - "operationId": "massiveCreateIbans", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "Zip file containing IBANs to create", - "format": "binary" + "/creditorinstitutions/ibans" : { + "post" : { + "tags" : [ "Ibans" ], + "summary" : "Upload a zip file containing the details of multiple ibans to create", + "operationId" : "massiveCreateIbans", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "Zip file containing IBANs to create", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/ibans/csv": { - "post": { - "tags": [ - "Ibans" - ], - "summary": "Upload a CSV file containing the details of multiple ibans to create", - "operationId": "massiveCreateIbansCsv", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "CSV file regarding various Ibans actions", - "format": "binary" + "/creditorinstitutions/ibans/csv" : { + "post" : { + "tags" : [ "Ibans" ], + "summary" : "Upload a CSV file containing the details of multiple ibans to create", + "operationId" : "massiveCreateIbansCsv", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "CSV file regarding various Ibans actions", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/ibans/labels": { - "post": { - "tags": [ - "Ibans" - ], - "summary": "Create or update a label to be associated to IBANs", - "operationId": "upsertIbanLabel", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbanLabel" - } - } - }, - "required": true + "/creditorinstitutions/ibans/labels" : { + "post" : { + "tags" : [ "Ibans" ], + "summary" : "Create or update a label to be associated to IBANs", + "operationId" : "upsertIbanLabel", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbanLabel" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbanLabel" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbanLabel" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/view": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get view creditor institutions broker station", - "operationId": "getCreditorInstitutionsView", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "creditorInstitutionCode", - "in": "query", - "description": "Filter by creditor institution code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "paBrokerCode", - "in": "query", - "description": "Filter by pa broker code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "stationCode", - "in": "query", - "description": "Filter by station code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "enabled", - "in": "query", - "description": "Filter by enabled", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "auxDigit", - "in": "query", - "description": "Filter by aux digit", - "required": false, - "schema": { - "type": "integer", - "format": "int64" - } - }, - { - "name": "applicationCode", - "in": "query", - "description": "Filter by application code", - "required": false, - "schema": { - "type": "integer", - "format": "int64" - } - }, - { - "name": "segregationCode", - "in": "query", - "description": "Filter by segregation code", - "required": false, - "schema": { - "type": "integer", - "format": "int64" - } - }, - { - "name": "mod4", - "in": "query", - "description": "Filter by mod4", - "required": false, - "schema": { - "type": "boolean" - } - } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionsView" + "/creditorinstitutions/view" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get view creditor institutions broker station", + "operationId" : "getCreditorInstitutionsView", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "creditorInstitutionCode", + "in" : "query", + "description" : "Filter by creditor institution code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "paBrokerCode", + "in" : "query", + "description" : "Filter by pa broker code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "stationCode", + "in" : "query", + "description" : "Filter by station code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "enabled", + "in" : "query", + "description" : "Filter by enabled", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "auxDigit", + "in" : "query", + "description" : "Filter by aux digit", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int64" + } + }, { + "name" : "applicationCode", + "in" : "query", + "description" : "Filter by application code", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int64" + } + }, { + "name" : "segregationCode", + "in" : "query", + "description" : "Filter by segregation code", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int64" + } + }, { + "name" : "mod4", + "in" : "query", + "description" : "Filter by mod4", + "required" : false, + "schema" : { + "type" : "boolean" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionsView" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get creditor institution details", - "operationId": "getCreditorInstitution", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 1, - "type": "string" - } + "/creditorinstitutions/{creditorinstitutioncode}" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get creditor institution details", + "operationId" : "getCreditorInstitution", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 1, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Update creditor institution", - "operationId": "updateCreditorInstitution", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "The fiscal code of the Organization to update", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 1, - "type": "string" - } - } - ], - "requestBody": { - "description": "The values to update of the organization", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionDetails" - } - } - }, - "required": true + "put" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Update creditor institution", + "operationId" : "updateCreditorInstitution", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "The fiscal code of the Organization to update", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 1, + "type" : "string" + } + } ], + "requestBody" : { + "description" : "The values to update of the organization", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionDetails" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Delete creditor institution", - "operationId": "deleteCreditorInstitution", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 1, - "type": "string" - } + "delete" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Delete creditor institution", + "operationId" : "deleteCreditorInstitution", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 1, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/encodings": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get creditor institution encodings", - "operationId": "getCreditorInstitutionEncodings", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/creditorinstitutions/{creditorinstitutioncode}/encodings" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get creditor institution encodings", + "operationId" : "getCreditorInstitutionEncodings", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionEncodings" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionEncodings" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Create a creditor institution encoding", - "operationId": "createCreditorInstitutionEncoding", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Encoding" - } - } - }, - "required": true + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Create a creditor institution encoding", + "operationId" : "createCreditorInstitutionEncoding", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Encoding" + } + } + }, + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Encoding" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Encoding" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/encodings/{encodingcode}": { - "delete": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Delete a creditor institution encoding", - "operationId": "deleteCreditorInstitutionEncoding", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "encodingcode", - "in": "path", - "description": "Code of the Encoding", - "required": true, - "schema": { - "type": "string" - } + "/creditorinstitutions/{creditorinstitutioncode}/encodings/{encodingcode}" : { + "delete" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Delete a creditor institution encoding", + "operationId" : "deleteCreditorInstitutionEncoding", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "encodingcode", + "in" : "path", + "description" : "Code of the Encoding", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/ibans": { - "get": { - "tags": [ - "Ibans" - ], - "summary": "Get creditor institution ibans", - "operationId": "getCreditorInstitutionsIbans", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/creditorinstitutions/{creditorinstitutioncode}/ibans" : { + "get" : { + "tags" : [ "Ibans" ], + "summary" : "Get creditor institution ibans", + "operationId" : "getCreditorInstitutionsIbans", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Ibans" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Ibans" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Ibans" - ], - "summary": "Create creditor institution ibans", - "operationId": "createCreditorInstitutionsIbans", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbanEnhanced" - } - } - }, - "required": true + "post" : { + "tags" : [ "Ibans" ], + "summary" : "Create creditor institution ibans", + "operationId" : "createCreditorInstitutionsIbans", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbanEnhanced" + } + } + }, + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbanEnhanced" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbanEnhanced" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "422": { - "description": "Unprocessable Entity", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "422" : { + "description" : "Unprocessable Entity", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/ibans/list": { - "get": { - "tags": [ - "Ibans" - ], - "summary": "Get creditor institution ibans list", - "operationId": "getIbans", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32", - "default": 0 - } - }, - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "The fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "pattern": "\\d{11}", - "type": "string" - } - }, - { - "name": "label", - "in": "query", - "description": "Filter by label", - "required": false, - "schema": { - "type": "string" - } + "/creditorinstitutions/{creditorinstitutioncode}/ibans/list" : { + "get" : { + "tags" : [ "Ibans" ], + "summary" : "Get creditor institution ibans list", + "operationId" : "getIbans", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "The fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "pattern" : "\\d{11}", + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "label", + "in" : "query", + "description" : "Filter by label", + "required" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbansEnhanced" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbansEnhanced" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/ibans/{ibanId}": { - "put": { - "tags": [ - "Ibans" - ], - "summary": "Update creditor institution ibans", - "operationId": "updateCreditorInstitutionsIbans", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "ibanId", - "in": "path", - "description": "The IBAN identifier code, used to reference the object.", - "required": true, - "schema": { - "maxLength": 35, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbanEnhanced" - } - } - }, - "required": true + "/creditorinstitutions/{creditorinstitutioncode}/ibans/{ibanId}" : { + "put" : { + "tags" : [ "Ibans" ], + "summary" : "Update creditor institution ibans", + "operationId" : "updateCreditorInstitutionsIbans", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + }, { + "name" : "ibanId", + "in" : "path", + "description" : "The IBAN identifier code, used to reference the object.", + "required" : true, + "schema" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbanEnhanced" + } + } + }, + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IbanEnhanced" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IbanEnhanced" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "422": { - "description": "Unprocessable Entity", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "422" : { + "description" : "Unprocessable Entity", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/ibans/{ibanValue}": { - "delete": { - "tags": [ - "Ibans" - ], - "summary": "Delete a creditor institution iban", - "operationId": "deleteCreditorInstitutionsIban", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "ibanValue", - "in": "path", - "description": "Value of the Iban to be deleted", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/creditorinstitutions/{creditorinstitutioncode}/ibans/{ibanValue}" : { + "delete" : { + "tags" : [ "Ibans" ], + "summary" : "Delete a creditor institution iban", + "operationId" : "deleteCreditorInstitutionsIban", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + }, { + "name" : "ibanValue", + "in" : "path", + "description" : "Value of the Iban to be deleted", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "Ok", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "Ok", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string" + "content" : { + "application/json" : { + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/stations": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get station details and relation info with creditor institution", - "operationId": "getCreditorInstitutionStations", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/creditorinstitutions/{creditorinstitutioncode}/stations" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get station details and relation info with creditor institution", + "operationId" : "getCreditorInstitutionStations", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionStationList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionStationList" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Create station details and relation info with creditor institution", - "operationId": "createCreditorInstitutionStation", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionStationEdit" - } - } - }, - "required": true + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Create station details and relation info with creditor institution", + "operationId" : "createCreditorInstitutionStation", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionStationEdit" + } + } + }, + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionStationEdit" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionStationEdit" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/creditorinstitutions/{creditorinstitutioncode}/stations/{stationcode}": { - "put": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Update a relation between creditor institution and station", - "operationId": "updateCreditorInstitutionStation", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "The fiscal code of the Organization to update", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 1, - "type": "string" - } - }, - { - "name": "stationcode", - "in": "path", - "description": "station code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionStationEdit" - } - } - }, - "required": true + "/creditorinstitutions/{creditorinstitutioncode}/stations/{stationcode}" : { + "put" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Update a relation between creditor institution and station", + "operationId" : "updateCreditorInstitutionStation", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "The fiscal code of the Organization to update", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 1, + "type" : "string" + } + }, { + "name" : "stationcode", + "in" : "path", + "description" : "station code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionStationEdit" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionStationEdit" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionStationEdit" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Delete a relation between creditor institution and station", - "operationId": "deleteCreditorInstitutionStation", - "parameters": [ - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 1, - "type": "string" - } - }, - { - "name": "stationcode", - "in": "path", - "description": "station code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "delete" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Delete a relation between creditor institution and station", + "operationId" : "deleteCreditorInstitutionStation", + "parameters" : [ { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 1, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "stationcode", + "in" : "path", + "description" : "station code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/encodings/{encodingcode}": { - "get": { - "tags": [ - "Utilities" - ], - "summary": "Get creditor institutions by encoding", - "operationId": "getCreditorInstitutionByPostalEncoding", - "parameters": [ - { - "name": "encodingcode", - "in": "path", - "description": "Code of the Encoding", - "required": true, - "schema": { - "type": "string" - } + "/encodings/{encodingcode}" : { + "get" : { + "tags" : [ "Utilities" ], + "summary" : "Get creditor institutions by encoding", + "operationId" : "getCreditorInstitutionByPostalEncoding", + "parameters" : [ { + "name" : "encodingcode", + "in" : "path", + "description" : "Code of the Encoding", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionList" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/ibans/{iban}": { - "get": { - "tags": [ - "Utilities" - ], - "summary": "Get list of creditor institutions having IBAN", - "operationId": "getCreditorInstitutionsByIban", - "parameters": [ - { - "name": "iban", - "in": "path", - "description": "Iban to find", - "required": true, - "schema": { - "type": "string" - } + "/ibans/{iban}" : { + "get" : { + "tags" : [ "Utilities" ], + "summary" : "Get list of creditor institutions having IBAN", + "operationId" : "getCreditorInstitutionsByIban", + "parameters" : [ { + "name" : "iban", + "in" : "path", + "description" : "Iban to find", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreditorInstitutionList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreditorInstitutionList" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/icas": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get the list of ICAs", - "operationId": "getIcas", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "idica", - "in": "query", - "description": "filter by Id ICA", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "query", - "description": "filter by Creditor Institution", - "required": false, - "schema": { - "type": "string" - } + "/icas" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get the list of ICAs", + "operationId" : "getIcas", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "idica", + "in" : "query", + "description" : "filter by Id ICA", + "required" : false, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "creditorinstitutioncode", + "in" : "query", + "description" : "filter by Creditor Institution", + "required" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Icas" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Icas" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Upload a XML file containing the details of an ICA", - "operationId": "createIca", - "parameters": [ - { - "name": "force", - "in": "query", - "description": "Force upload ignoring the validity date", - "required": false, - "schema": { - "type": "boolean", - "default": false - } - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "XML file regarding ICA to create", - "format": "binary" + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Upload a XML file containing the details of an ICA", + "operationId" : "createIca", + "parameters" : [ { + "name" : "force", + "in" : "query", + "description" : "Force upload ignoring the validity date", + "required" : false, + "schema" : { + "type" : "boolean", + "default" : false + } + } ], + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "XML file regarding ICA to create", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/icas/check": { - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Validate XML file containing the details of an ICA", - "operationId": "verifyIca", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "XML file regarding ICA to check", - "format": "binary" + "/icas/check" : { + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Validate XML file containing the details of an ICA", + "operationId" : "verifyIca", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "XML file regarding ICA to check", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CheckItem" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CheckItem" } } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/icas/check/massive": { - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Massive validation of XML files containing the details of an ICA", - "operationId": "massiveVerifyIcas", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "Zip file containing ICA XMLs to check", - "format": "binary" + "/icas/check/massive" : { + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Massive validation of XML files containing the details of an ICA", + "operationId" : "massiveVerifyIcas", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "Zip file containing ICA XMLs to check", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MassiveCheck" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" + } + } + }, + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/MassiveCheck" } } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/icas/massive": { - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Upload a zip file containing the details of multiple ICAs", - "operationId": "massiveCreateIcas", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "Zip file containing ICAs to create", - "format": "binary" + "/icas/massive" : { + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Upload a zip file containing the details of multiple ICAs", + "operationId" : "massiveCreateIcas", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "Zip file containing ICAs to create", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/icas/xsd": { - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Validate XML against XSD", - "operationId": "checkXSD", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "required": [ - "file" - ], - "type": "object", - "properties": { - "file": { - "type": "string", - "description": "XML file regarding ICA to check", - "format": "binary" + "/icas/xsd" : { + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Validate XML against XSD", + "operationId" : "checkXSD", + "requestBody" : { + "content" : { + "multipart/form-data" : { + "schema" : { + "required" : [ "file" ], + "type" : "object", + "properties" : { + "file" : { + "type" : "string", + "description" : "XML file regarding ICA to check", + "format" : "binary" } } } } }, - "required": true + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/XSDValidation" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/XSDValidation" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/icas/{idica}": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Download a XML file containing the details of an ICA", - "operationId": "getIca", - "parameters": [ - { - "name": "idica", - "in": "path", - "description": "Id ICA", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "query", - "description": "Creditor institution code", - "required": true, - "schema": { - "type": "string" - } + "/icas/{idica}" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Download a XML file containing the details of an ICA", + "operationId" : "getIca", + "parameters" : [ { + "name" : "idica", + "in" : "path", + "description" : "Id ICA", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "creditorinstitutioncode", + "in" : "query", + "description" : "Creditor institution code", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/xml": { - "schema": { - "type": "string", - "format": "binary" + "content" : { + "application/xml" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Delete an ICA XML file", - "operationId": "deleteIca", - "parameters": [ - { - "name": "idica", - "in": "path", - "description": "Id ICA", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "query", - "description": "Creditor institution code", - "required": true, - "schema": { - "type": "string" - } + "delete" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Delete an ICA XML file", + "operationId" : "deleteIca", + "parameters" : [ { + "name" : "idica", + "in" : "path", + "description" : "Id ICA", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "creditorinstitutioncode", + "in" : "query", + "description" : "Creditor institution code", + "required" : true, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/info": { - "get": { - "tags": [ - "Home" - ], - "summary": "Return OK if application is started", - "operationId": "healthCheck", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/info" : { + "get" : { + "tags" : [ "Home" ], + "summary" : "Return OK if application is started", + "operationId" : "healthCheck", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppInfo" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfo" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/paymentserviceproviders": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get paginated list of Payment Service Providers", - "operationId": "getPaymentServiceProviders", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "code", - "in": "query", - "description": "Filter by code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "name", - "in": "query", - "description": "Filter by name", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "taxCode", - "in": "query", - "description": "Filter by tax code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "orderby", - "in": "query", - "description": "Order by code or name", - "required": false, - "schema": { - "type": "string", - "default": "CODE", - "enum": [ - "CODE", - "NAME" - ] - } - }, - { - "name": "ordering", - "in": "query", - "description": "Direction of ordering", - "required": false, - "schema": { - "type": "string", - "default": "DESC", - "enum": [ - "ASC", - "DESC" - ] - } + "/paymentserviceproviders" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get paginated list of Payment Service Providers", + "operationId" : "getPaymentServiceProviders", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "code", + "in" : "query", + "description" : "Filter by code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "name", + "in" : "query", + "description" : "Filter by name", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "taxCode", + "in" : "query", + "description" : "Filter by tax code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "orderby", + "in" : "query", + "description" : "Order by code or name", + "required" : false, + "schema" : { + "type" : "string", + "default" : "CODE", + "enum" : [ "CODE", "NAME" ] + } + }, { + "name" : "ordering", + "in" : "query", + "description" : "Direction of ordering", + "required" : false, + "schema" : { + "type" : "string", + "default" : "DESC", + "enum" : [ "ASC", "DESC" ] } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProviders" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProviders" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Create a payment service provider", - "operationId": "createPaymentServiceProvider", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProviderDetails" + "post" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Create a payment service provider", + "operationId" : "createPaymentServiceProvider", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProviderDetails" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProviderDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProviderDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/paymentserviceproviders/view": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get view Payment Service Providers channel broker", - "operationId": "getPaymentServiceProvidersView", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "pspCode", - "in": "query", - "description": "Filter by psp code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pspBrokerCode", - "in": "query", - "description": "Filter by psp broker code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "channelCode", - "in": "query", - "description": "Filter by channel code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "paymentType", - "in": "query", - "description": "Filter by payment type", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "paymentModel", - "in": "query", - "description": "Filter by payment model", - "required": false, - "schema": { - "type": "string" - } + "/paymentserviceproviders/view" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get view Payment Service Providers channel broker", + "operationId" : "getPaymentServiceProvidersView", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "pspCode", + "in" : "query", + "description" : "Filter by psp code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspBrokerCode", + "in" : "query", + "description" : "Filter by psp broker code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "channelCode", + "in" : "query", + "description" : "Filter by channel code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "paymentType", + "in" : "query", + "description" : "Filter by payment type", + "required" : false, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "paymentModel", + "in" : "query", + "description" : "Filter by payment model", + "required" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProvidersView" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProvidersView" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/paymentserviceproviders/{pspcode}": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get payment service provider details", - "operationId": "getPaymentServiceProvider", - "parameters": [ - { - "name": "pspcode", - "in": "path", - "description": "Code of the payment service provider", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } + "/paymentserviceproviders/{pspcode}" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get payment service provider details", + "operationId" : "getPaymentServiceProvider", + "parameters" : [ { + "name" : "pspcode", + "in" : "path", + "description" : "Code of the payment service provider", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProviderDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProviderDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Update a payment service provider", - "operationId": "updatePaymentServiceProvider", - "parameters": [ - { - "name": "pspcode", - "in": "path", - "description": "Code of the payment service provider", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProviderDetails" - } - } - }, - "required": true + "put" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Update a payment service provider", + "operationId" : "updatePaymentServiceProvider", + "parameters" : [ { + "name" : "pspcode", + "in" : "path", + "description" : "Code of the payment service provider", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProviderDetails" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PaymentServiceProviderDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentServiceProviderDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Delete a payment service provider", - "operationId": "deletePaymentServiceProvider", - "parameters": [ - { - "name": "pspcode", - "in": "path", - "description": "Code of the payment service provider", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } + "delete" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Delete a payment service provider", + "operationId" : "deletePaymentServiceProvider", + "parameters" : [ { + "name" : "pspcode", + "in" : "path", + "description" : "Code of the payment service provider", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/paymentserviceproviders/{pspcode}/channels": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get channels details and relation info with PSP", - "operationId": "getPaymentServiceProvidersChannels", - "parameters": [ - { - "name": "pspcode", - "in": "path", - "description": "Code of the payment service provider", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } + "/paymentserviceproviders/{pspcode}/channels" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get channels details and relation info with PSP", + "operationId" : "getPaymentServiceProvidersChannels", + "parameters" : [ { + "name" : "pspcode", + "in" : "path", + "description" : "Code of the payment service provider", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK.", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK.", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelList" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelList" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Create channel details and relation info with PSP", - "operationId": "createPaymentServiceProvidersChannels", - "parameters": [ - { - "name": "pspcode", - "in": "path", - "description": "Code of the payment service provider", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelCode" - } - } - }, - "required": true + "post" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Create channel details and relation info with PSP", + "operationId" : "createPaymentServiceProvidersChannels", + "parameters" : [ { + "name" : "pspcode", + "in" : "path", + "description" : "Code of the payment service provider", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelCode" + } + } + }, + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelCode" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelCode" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/paymentserviceproviders/{pspcode}/channels/{channelcode}": { - "put": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Update a relation between PSP and channel", - "operationId": "updatePaymentServiceProvidersChannels", - "parameters": [ - { - "name": "pspcode", - "in": "path", - "description": "Code of the payment service provider", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } - }, - { - "name": "channelcode", - "in": "path", - "description": "Channel code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelPaymentTypes" - } - } - }, - "required": true + "/paymentserviceproviders/{pspcode}/channels/{channelcode}" : { + "put" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Update a relation between PSP and channel", + "operationId" : "updatePaymentServiceProvidersChannels", + "parameters" : [ { + "name" : "pspcode", + "in" : "path", + "description" : "Code of the payment service provider", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" + } + }, { + "name" : "channelcode", + "in" : "path", + "description" : "Channel code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelPaymentTypes" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PspChannelPaymentTypes" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PspChannelPaymentTypes" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Delete a relation between a PSP and a channel", - "operationId": "deletePaymentServiceProvidersChannels", - "parameters": [ - { - "name": "pspcode", - "in": "path", - "description": "Code of the payment service provider", - "required": true, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } - }, - { - "name": "channelcode", - "in": "path", - "description": "Code of the channel", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "delete" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Delete a relation between a PSP and a channel", + "operationId" : "deletePaymentServiceProvidersChannels", + "parameters" : [ { + "name" : "pspcode", + "in" : "path", + "description" : "Code of the payment service provider", + "required" : true, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "channelcode", + "in" : "path", + "description" : "Code of the channel", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": {} + "content" : { + "application/json" : { } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/refresh/config": { - "get": { - "tags": [ - "Refresh Operation" - ], - "summary": "Global Refresh Configuration activation: for all domains", - "operationId": "getRefreshGlobalConfig", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/refresh/config" : { + "get" : { + "tags" : [ "Refresh Operation" ], + "summary" : "Global Refresh Configuration activation: for all domains", + "operationId" : "getRefreshGlobalConfig", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "text/plain": { - "schema": { - "type": "string" + "content" : { + "text/plain" : { + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/refresh/job/{jobtype}": { - "get": { - "tags": [ - "Refresh Operation" - ], - "summary": "Job trigger activation ", - "operationId": "getJobTrigger", - "parameters": [ - { - "name": "jobtype", - "in": "path", - "description": "Job Trigger", - "required": true, - "schema": { - "type": "string", - "enum": [ - "PA_INVIA_RT", - "PA_RETRY_PA_INVIA_RT_NEGATIVE", - "PA_INVIA_RT_RECOVERY", - "PA_SEND_RT", - "REFRESH_CONFIGURATION" - ] - } + "/refresh/job/{jobtype}" : { + "get" : { + "tags" : [ "Refresh Operation" ], + "summary" : "Job trigger activation ", + "operationId" : "getJobTrigger", + "parameters" : [ { + "name" : "jobtype", + "in" : "path", + "description" : "Job Trigger", + "required" : true, + "schema" : { + "type" : "string", + "enum" : [ "PA_INVIA_RT", "PA_RETRY_PA_INVIA_RT_NEGATIVE", "PA_INVIA_RT_RECOVERY", "PA_SEND_RT", "REFRESH_CONFIGURATION" ] } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "text/plain": { - "schema": { - "type": "string" + "content" : { + "text/plain" : { + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "504": { - "description": "Gateway Timeout", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "504" : { + "description" : "Gateway Timeout", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/services": { - "get": { - "tags": [ - "Payment Service Providers" - ], - "summary": "Get paginated list of services", - "operationId": "getServices", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "pspcode", - "in": "query", - "required": false, - "schema": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - } - }, - { - "name": "brokerpspcode", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "channelcode", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "paymentmethodchannel", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int64" - } - }, - { - "name": "paymenttypecode", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pspflagftamp", - "in": "query", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "channelapp", - "in": "query", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "onus", - "in": "query", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "flagio", - "in": "query", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "flowid", - "in": "query", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "minimumamount", - "in": "query", - "required": false, - "schema": { - "type": "number", - "format": "double" - } - }, - { - "name": "maximumamount", - "in": "query", - "required": false, - "schema": { - "type": "number", - "format": "double" - } - }, - { - "name": "languagecode", - "in": "query", - "required": false, - "schema": { - "type": "string", - "default": "IT", - "enum": [ - "IT", - "EN", - "FR", - "DE", - "SL" - ] - } - }, - { - "name": "conventionCode", - "in": "query", - "required": false, - "schema": { - "type": "string" - } + "/services" : { + "get" : { + "tags" : [ "Payment Service Providers" ], + "summary" : "Get paginated list of services", + "operationId" : "getServices", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "pspcode", + "in" : "query", + "required" : false, + "schema" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" + } + }, { + "name" : "brokerpspcode", + "in" : "query", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "channelcode", + "in" : "query", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "paymentmethodchannel", + "in" : "query", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int64" + } + }, { + "name" : "paymenttypecode", + "in" : "query", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "pspflagftamp", + "in" : "query", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "channelapp", + "in" : "query", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "onus", + "in" : "query", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "flagio", + "in" : "query", + "required" : false, + "schema" : { + "type" : "boolean" + } + }, { + "name" : "flowid", + "in" : "query", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "minimumamount", + "in" : "query", + "required" : false, + "schema" : { + "type" : "number", + "format" : "double" + } + }, { + "name" : "maximumamount", + "in" : "query", + "required" : false, + "schema" : { + "type" : "number", + "format" : "double" + } + }, { + "name" : "languagecode", + "in" : "query", + "required" : false, + "schema" : { + "type" : "string", + "default" : "IT", + "enum" : [ "IT", "EN", "FR", "DE", "SL" ] + } + }, { + "name" : "conventionCode", + "in" : "query", + "required" : false, + "schema" : { + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Services" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Services" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stations": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get paginated list of stations", - "operationId": "getStations", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "brokercode", - "in": "query", - "description": "Filter by broker", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "brokerdescription", - "in": "query", - "description": "Filter by broker description", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "query", - "description": "Filter by creditor institution", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "code", - "in": "query", - "description": "Filter by code", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "ordering", - "in": "query", - "description": "Direction of ordering. Results are ordered by code", - "required": false, - "schema": { - "type": "string", - "default": "DESC", - "enum": [ - "ASC", - "DESC" - ] - } + "/stations" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get paginated list of stations", + "operationId" : "getStations", + "parameters" : [ { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "brokercode", + "in" : "query", + "description" : "Filter by broker", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "brokerdescription", + "in" : "query", + "description" : "Filter by broker description", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "creditorinstitutioncode", + "in" : "query", + "description" : "Filter by creditor institution", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "code", + "in" : "query", + "description" : "Filter by code", + "required" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "ordering", + "in" : "query", + "description" : "Direction of ordering. Results are ordered by code", + "required" : false, + "schema" : { + "type" : "string", + "default" : "DESC", + "enum" : [ "ASC", "DESC" ] } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Stations" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/Stations" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "post": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Create a station", - "operationId": "createStation", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetails" + "post" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Create a station", + "operationId" : "createStation", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetails" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "description": "Created", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "409": { - "description": "Conflict", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "409" : { + "description" : "Conflict", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stations/csv": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Download a CSV with all the stations in the system", - "operationId": "getStationsCSV", - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "/stations/csv" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Download a CSV with all the stations in the system", + "operationId" : "getStationsCSV", + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "binary" + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stations/{stationcode}": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get station details", - "operationId": "getStation", - "parameters": [ - { - "name": "stationcode", - "in": "path", - "description": "station code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/stations/{stationcode}" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get station details", + "operationId" : "getStation", + "parameters" : [ { + "name" : "stationcode", + "in" : "path", + "description" : "station code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "put": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Update a station", - "operationId": "updateStation", - "parameters": [ - { - "name": "stationcode", - "in": "path", - "description": "station code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - } - ], - "requestBody": { - "description": "The values to update of the station", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetails" - } - } - }, - "required": true + "put" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Update a station", + "operationId" : "updateStation", + "parameters" : [ { + "name" : "stationcode", + "in" : "path", + "description" : "station code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + } ], + "requestBody" : { + "description" : "The values to update of the station", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetails" + } + } + }, + "required" : true }, - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationDetails" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationDetails" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "delete": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Delete a station", - "operationId": "deleteStation", - "parameters": [ - { - "name": "stationcode", - "in": "path", - "description": "station code", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "delete" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Delete a station", + "operationId" : "deleteStation", + "parameters" : [ { + "name" : "stationcode", + "in" : "path", + "description" : "station code", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stations/{stationcode}/creditorinstitutions": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get station creditor institution list", - "operationId": "getStationCreditorInstitutions", - "parameters": [ - { - "name": "stationcode", - "in": "path", - "description": "station code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "description": "Number of elements on one page. Default = 50", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "default": 50 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Page value starts from 0", - "required": true, - "schema": { - "minimum": 0, - "type": "integer", - "format": "int32" - } - }, - { - "name": "ciNameOrCF", - "in": "query", - "description": "Filter by name or tax code of the creditor institution", - "required": false, - "schema": { - "type": "string" - } + "/stations/{stationcode}/creditorinstitutions" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get station creditor institution list", + "operationId" : "getStationCreditorInstitutions", + "parameters" : [ { + "name" : "stationcode", + "in" : "path", + "description" : "station code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "Number of elements on one page. Default = 50", + "required" : false, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 50 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number. Page value starts from 0", + "required" : true, + "schema" : { + "minimum" : 0, + "type" : "integer", + "format" : "int32" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "ciNameOrCF", + "in" : "query", + "description" : "Filter by name or tax code of the creditor institution", + "required" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationCreditorInstitutions" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationCreditorInstitutions" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stations/{stationcode}/creditorinstitutions/csv": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Download a CSV with station creditor institution list", - "operationId": "getStationCreditorInstitutionsCSV", - "parameters": [ - { - "name": "stationcode", - "in": "path", - "description": "station code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } + "/stations/{stationcode}/creditorinstitutions/csv" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Download a CSV with station creditor institution list", + "operationId" : "getStationCreditorInstitutionsCSV", + "parameters" : [ { + "name" : "stationcode", + "in" : "path", + "description" : "station code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "binary" + "content" : { + "application/json" : { + "schema" : { + "type" : "string", + "format" : "binary" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] }, - "/stations/{stationcode}/creditorinstitutions/{creditorinstitutioncode}": { - "get": { - "tags": [ - "Creditor Institutions" - ], - "summary": "Get station creditor institution relation", - "operationId": "getStationCreditorInstitutionRelation", - "parameters": [ - { - "name": "stationcode", - "in": "path", - "description": "station code.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 0, - "type": "string" - } - }, - { - "name": "creditorinstitutioncode", - "in": "path", - "description": "Organization fiscal code, the fiscal code of the Organization.", - "required": true, - "schema": { - "maxLength": 50, - "minLength": 1, - "type": "string" - } + "/stations/{stationcode}/creditorinstitutions/{creditorinstitutioncode}" : { + "get" : { + "tags" : [ "Creditor Institutions" ], + "summary" : "Get station creditor institution relation", + "operationId" : "getStationCreditorInstitutionRelation", + "parameters" : [ { + "name" : "stationcode", + "in" : "path", + "description" : "station code.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 0, + "type" : "string" } - ], - "responses": { - "200": { - "description": "OK", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + }, { + "name" : "creditorinstitutioncode", + "in" : "path", + "description" : "Organization fiscal code, the fiscal code of the Organization.", + "required" : true, + "schema" : { + "maxLength" : 50, + "minLength" : 1, + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StationCreditorInstitutions" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/StationCreditorInstitutions" } } } }, - "400": { - "description": "Bad Request", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "400" : { + "description" : "Bad Request", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "401": { - "description": "Unauthorized", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "401" : { + "description" : "Unauthorized", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "403": { - "description": "Forbidden", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "403" : { + "description" : "Forbidden", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "404": { - "description": "Not Found", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "404" : { + "description" : "Not Found", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } }, - "429": { - "description": "Too many requests", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "429" : { + "description" : "Too many requests", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } } }, - "500": { - "description": "Service unavailable", - "headers": { - "X-Request-Id": { - "description": "This header identifies the call", - "schema": { - "type": "string" + "500" : { + "description" : "Service unavailable", + "headers" : { + "X-Request-Id" : { + "description" : "This header identifies the call", + "schema" : { + "type" : "string" } } }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemJson" + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemJson" } } } } }, - "security": [ - { - "ApiKey": [] - }, - { - "Authorization": [] - } - ] + "security" : [ { + "ApiKey" : [ ] + }, { + "Authorization" : [ ] + } ] }, - "parameters": [ - { - "name": "X-Request-Id", - "in": "header", - "description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", - "schema": { - "type": "string" - } + "parameters" : [ { + "name" : "X-Request-Id", + "in" : "header", + "description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", + "schema" : { + "type" : "string" } - ] + } ] } }, - "components": { - "schemas": { - "StationDetails": { - "required": [ - "broker_code", - "enabled", - "port", - "primitive_version", - "protocol", - "station_code", - "thread_number", - "timeout_a", - "timeout_b", - "timeout_c", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "station enabled", - "default": true - }, - "broker_description": { - "type": "string", - "description": "Broker description. Read only field", - "example": "Lorem ipsum dolor sit amet" - }, - "version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "number version", - "format": "int64" - }, - "is_connection_sync": { - "type": "boolean", - "description": "Describe the station connection's type, true synchronous, false asynchronous" - }, - "ip": { - "type": "string" - }, - "password": { - "type": "string" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "redirect_ip": { - "type": "string" - }, - "redirect_path": { - "type": "string" - }, - "redirect_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "redirect_query_string": { - "type": "string" - }, - "redirect_protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "service": { - "type": "string" - }, - "pof_service": { - "type": "string" - }, - "broker_code": { - "type": "string" - }, - "protocol_4mod": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip_4mod": { - "type": "string" - }, - "port_4mod": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "service_4mod": { - "type": "string" - }, - "proxy_enabled": { - "type": "boolean" - }, - "proxy_host": { - "type": "string" - }, - "proxy_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "proxy_username": { - "type": "string" - }, - "proxy_password": { - "type": "string" - }, - "thread_number": { - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "timeout_a": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "minimum": 0, - "type": "integer", - "format": "int64" + "components" : { + "schemas" : { + "StationDetails" : { + "required" : [ "broker_code", "enabled", "port", "primitive_version", "protocol", "station_code", "thread_number", "timeout_a", "timeout_b", "timeout_c", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "station enabled", + "default" : true + }, + "broker_description" : { + "type" : "string", + "description" : "Broker description. Read only field", + "example" : "Lorem ipsum dolor sit amet" + }, + "version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "number version", + "format" : "int64" + }, + "is_connection_sync" : { + "type" : "boolean", + "description" : "Describe the station connection's type, true synchronous, false asynchronous" + }, + "ip" : { + "type" : "string" + }, + "password" : { + "type" : "string" + }, + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "redirect_ip" : { + "type" : "string" + }, + "redirect_path" : { + "type" : "string" + }, + "redirect_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "redirect_query_string" : { + "type" : "string" + }, + "redirect_protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "service" : { + "type" : "string" + }, + "pof_service" : { + "type" : "string" + }, + "broker_code" : { + "type" : "string" + }, + "protocol_4mod" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "ip_4mod" : { + "type" : "string" + }, + "port_4mod" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "service_4mod" : { + "type" : "string" + }, + "proxy_enabled" : { + "type" : "boolean" + }, + "proxy_host" : { + "type" : "string" + }, + "proxy_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "proxy_username" : { + "type" : "string" + }, + "proxy_password" : { + "type" : "string" + }, + "thread_number" : { + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "timeout_a" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "flag_online" : { + "type" : "boolean" }, - "timeout_c": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "flag_online": { - "type": "boolean" + "invio_rt_istantaneo" : { + "type" : "boolean" }, - "invio_rt_istantaneo": { - "type": "boolean" - }, - "target_host": { - "type": "string" + "target_host" : { + "type" : "string" }, - "target_port": { - "type": "integer", - "format": "int64" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "target_path": { - "type": "string" + "target_path" : { + "type" : "string" }, - "target_host_pof": { - "type": "string" + "target_host_pof" : { + "type" : "string" }, - "target_port_pof": { - "type": "integer", - "format": "int64" + "target_port_pof" : { + "type" : "integer", + "format" : "int64" }, - "target_path_pof": { - "type": "string" + "target_path_pof" : { + "type" : "string" }, - "primitive_version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "Primitive number version", - "format": "int32" + "primitive_version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "Primitive number version", + "format" : "int32" } } }, - "ProblemJson": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" - }, - "status": { - "maximum": 600, - "minimum": 100, - "type": "integer", - "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", - "format": "int32", - "example": 200 - }, - "detail": { - "type": "string", - "description": "A human readable explanation specific to this occurrence of the problem.", - "example": "There was an error processing the request" + "ProblemJson" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string", + "description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable" + }, + "status" : { + "maximum" : 600, + "minimum" : 100, + "type" : "integer", + "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.", + "format" : "int32", + "example" : 200 + }, + "detail" : { + "type" : "string", + "description" : "A human readable explanation specific to this occurrence of the problem.", + "example" : "There was an error processing the request" } } }, - "PaymentServiceProviderDetails": { - "required": [ - "business_name", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" + "PaymentServiceProviderDetails" : { + "required" : [ "business_name", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" }, - "enabled": { - "type": "boolean" + "enabled" : { + "type" : "boolean" }, - "business_name": { - "type": "string" + "business_name" : { + "type" : "string" }, - "tax_code": { - "type": "string" + "tax_code" : { + "type" : "string" }, - "abi": { - "type": "string" + "abi" : { + "type" : "string" }, - "bic": { - "type": "string" + "bic" : { + "type" : "string" }, - "my_bank_code": { - "type": "string", - "description": "MyBank code" + "my_bank_code" : { + "type" : "string", + "description" : "MyBank code" }, - "stamp": { - "type": "boolean" + "stamp" : { + "type" : "boolean" }, - "agid_psp": { - "type": "boolean", - "description": "True if the PSP is internal" + "agid_psp" : { + "type" : "boolean", + "description" : "True if the PSP is internal" }, - "vat_number": { - "type": "string" + "vat_number" : { + "type" : "string" } } }, - "PspChannelPaymentTypes": { - "required": [ - "payment_types" - ], - "type": "object", - "properties": { - "payment_types": { - "type": "array", - "items": { - "type": "string" + "PspChannelPaymentTypes" : { + "required" : [ "payment_types" ], + "type" : "object", + "properties" : { + "payment_types" : { + "type" : "array", + "items" : { + "type" : "string" } } } }, - "CreditorInstitutionAddress": { - "type": "object", - "properties": { - "location": { - "type": "string", - "example": "Via delle vie 3" - }, - "city": { - "type": "string", - "example": "Lorem" - }, - "zip_code": { - "pattern": "^\\d{5}$|^$", - "type": "string", - "example": "00187" - }, - "country_code": { - "pattern": "^\\w{2}$|^$", - "type": "string", - "example": "RM" - }, - "tax_domicile": { - "type": "string" + "CreditorInstitutionAddress" : { + "type" : "object", + "properties" : { + "location" : { + "type" : "string", + "example" : "Via delle vie 3" + }, + "city" : { + "type" : "string", + "example" : "Lorem" + }, + "zip_code" : { + "pattern" : "^\\d{5}$|^$", + "type" : "string", + "example" : "00187" + }, + "country_code" : { + "pattern" : "^\\w{2}$|^$", + "type" : "string", + "example" : "RM" + }, + "tax_domicile" : { + "type" : "string" } } }, - "CreditorInstitutionDetails": { - "required": [ - "address", - "business_name", - "creditor_institution_code", - "enabled", - "psp_payment", - "reporting_ftp", - "reporting_zip" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "creditor institution enabled", - "default": true - }, - "business_name": { - "maxLength": 70, - "minLength": 0, - "type": "string", - "example": "Comune di Lorem Ipsum" - }, - "cbill_code": { - "type": "string", - "example": "1234567890100" - }, - "address": { - "$ref": "#/components/schemas/CreditorInstitutionAddress" - }, - "psp_payment": { - "type": "boolean", - "default": true - }, - "reporting_ftp": { - "type": "boolean", - "default": false - }, - "reporting_zip": { - "type": "boolean", - "default": false + "CreditorInstitutionDetails" : { + "required" : [ "address", "business_name", "creditor_institution_code", "enabled", "psp_payment", "reporting_ftp", "reporting_zip" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "creditor institution enabled", + "default" : true + }, + "business_name" : { + "maxLength" : 70, + "minLength" : 0, + "type" : "string", + "example" : "Comune di Lorem Ipsum" + }, + "cbill_code" : { + "type" : "string", + "example" : "1234567890100" + }, + "address" : { + "$ref" : "#/components/schemas/CreditorInstitutionAddress" + }, + "psp_payment" : { + "type" : "boolean", + "default" : true + }, + "reporting_ftp" : { + "type" : "boolean", + "default" : false + }, + "reporting_zip" : { + "type" : "boolean", + "default" : false } } }, - "CreditorInstitutionStationEdit": { - "required": [ - "station_code" - ], - "type": "object", - "properties": { - "station_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "aux_digit": { - "maximum": 3, - "minimum": 0, - "type": "integer", - "format": "int64", - "example": 1, - "enum": [ - 0, - 1, - 2, - 3 - ] - }, - "application_code": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "aca": { - "type": "boolean" - }, - "stand_in": { - "type": "boolean" + "CreditorInstitutionStationEdit" : { + "required" : [ "station_code" ], + "type" : "object", + "properties" : { + "station_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "aux_digit" : { + "maximum" : 3, + "minimum" : 0, + "type" : "integer", + "format" : "int64", + "example" : 1, + "enum" : [ 0, 1, 2, 3 ] + }, + "application_code" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "aca" : { + "type" : "boolean" + }, + "stand_in" : { + "type" : "boolean" } } }, - "IbanEnhanced": { - "required": [ - "ci_owner", - "due_date", - "iban", - "is_active", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "maxLength": 35, - "minLength": 0, - "pattern": "[a-zA-Z]{2}\\d{2}[a-zA-Z0-9]{1,30}", - "type": "string", - "description": "The iban code", - "example": "IT99C0222211111000000000000" - }, - "ci_owner": { - "maxLength": 11, - "minLength": 0, - "type": "string", - "description": "Fiscal code of the Creditor Institution who owns the iban", - "readOnly": true, - "example": "77777777777" - }, - "company_name": { - "maxLength": 100, - "minLength": 0, - "type": "string", - "description": "The Creditor Institution company name", - "readOnly": true, - "example": "Comune di Firenze" - }, - "description": { - "maxLength": 300, - "minLength": 0, - "type": "string", - "description": "The description the Creditor Institution gives to the iban about its usage", - "example": "Riscossione Tributi" - }, - "is_active": { - "type": "boolean", - "description": "True if the iban is active", - "example": true - }, - "validity_date": { - "type": "string", - "description": "The date the Creditor Institution wants the iban to be used for its payments", - "format": "date-time", - "example": "2023-04-01T13:49:19.897Z" - }, - "publication_date": { - "type": "string", - "description": "The date on which the iban has been inserted in the system", - "format": "date-time", - "readOnly": true, - "example": "2023-06-01T23:59:59.999Z" - }, - "due_date": { - "type": "string", - "description": "The date on which the iban will expire", - "format": "date-time", - "example": "2023-12-31T23:59:59.999Z" - }, - "labels": { - "type": "array", - "description": "The labels array associated with the iban", - "items": { - "$ref": "#/components/schemas/IbanLabel" + "IbanEnhanced" : { + "required" : [ "ci_owner", "due_date", "iban", "is_active", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "maxLength" : 35, + "minLength" : 0, + "pattern" : "[a-zA-Z]{2}\\d{2}[a-zA-Z0-9]{1,30}", + "type" : "string", + "description" : "The iban code", + "example" : "IT99C0222211111000000000000" + }, + "ci_owner" : { + "maxLength" : 11, + "minLength" : 0, + "type" : "string", + "description" : "Fiscal code of the Creditor Institution who owns the iban", + "readOnly" : true, + "example" : "77777777777" + }, + "company_name" : { + "maxLength" : 100, + "minLength" : 0, + "type" : "string", + "description" : "The Creditor Institution company name", + "readOnly" : true, + "example" : "Comune di Firenze" + }, + "description" : { + "maxLength" : 300, + "minLength" : 0, + "type" : "string", + "description" : "The description the Creditor Institution gives to the iban about its usage", + "example" : "Riscossione Tributi" + }, + "is_active" : { + "type" : "boolean", + "description" : "True if the iban is active", + "example" : true + }, + "validity_date" : { + "type" : "string", + "description" : "The date the Creditor Institution wants the iban to be used for its payments", + "format" : "date-time", + "example" : "2023-04-01T13:49:19.897Z" + }, + "publication_date" : { + "type" : "string", + "description" : "The date on which the iban has been inserted in the system", + "format" : "date-time", + "readOnly" : true, + "example" : "2023-06-01T23:59:59.999Z" + }, + "due_date" : { + "type" : "string", + "description" : "The date on which the iban will expire", + "format" : "date-time", + "example" : "2023-12-31T23:59:59.999Z" + }, + "labels" : { + "type" : "array", + "description" : "The labels array associated with the iban", + "items" : { + "$ref" : "#/components/schemas/IbanLabel" } } } }, - "IbanLabel": { - "required": [ - "description", - "name" - ], - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "CUP" - }, - "description": { - "type": "string", - "example": "The IBAN to use for CUP payments" + "IbanLabel" : { + "required" : [ "description", "name" ], + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "example" : "CUP" + }, + "description" : { + "type" : "string", + "example" : "The IBAN to use for CUP payments" } }, - "description": "The labels array associated with the iban" + "description" : "The labels array associated with the iban" }, - "WfespPluginConfBase": { - "required": [ - "id_bean", - "pag_const_string_profile", - "pag_rpt_xpath_profile", - "pag_soap_rule_profile" - ], - "type": "object", - "properties": { - "pag_const_string_profile": { - "maxLength": 150, - "minLength": 0, - "type": "string", - "example": "Lorem ipsum dolor sit amet" - }, - "pag_soap_rule_profile": { - "maxLength": 150, - "minLength": 0, - "type": "string", - "example": "IDVS=$buyerBank$" - }, - "pag_rpt_xpath_profile": { - "maxLength": 150, - "minLength": 0, - "type": "string", - "example": "Lorem ipsum dolor sit amet" - }, - "id_bean": { - "maxLength": 255, - "minLength": 0, - "type": "string", - "example": "defaultForwardProcessor" + "WfespPluginConfBase" : { + "required" : [ "id_bean", "pag_const_string_profile", "pag_rpt_xpath_profile", "pag_soap_rule_profile" ], + "type" : "object", + "properties" : { + "pag_const_string_profile" : { + "maxLength" : 150, + "minLength" : 0, + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" + }, + "pag_soap_rule_profile" : { + "maxLength" : 150, + "minLength" : 0, + "type" : "string", + "example" : "IDVS=$buyerBank$" + }, + "pag_rpt_xpath_profile" : { + "maxLength" : 150, + "minLength" : 0, + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" + }, + "id_bean" : { + "maxLength" : 255, + "minLength" : 0, + "type" : "string", + "example" : "defaultForwardProcessor" } } }, - "PddBase": { - "required": [ - "description", - "enabled", - "ip" - ], - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "example": false - }, - "description": { - "type": "string", - "example": "Lorem ipsum dolor sit amet" - }, - "ip": { - "type": "string", - "example": "localhost" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int32", - "example": 1234 + "PddBase" : { + "required" : [ "description", "enabled", "ip" ], + "type" : "object", + "properties" : { + "enabled" : { + "type" : "boolean", + "example" : false + }, + "description" : { + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" + }, + "ip" : { + "type" : "string", + "example" : "localhost" + }, + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int32", + "example" : 1234 } } }, - "PaymentTypeBase": { - "type": "object", - "properties": { - "description": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "Addebito diretto" + "PaymentTypeBase" : { + "type" : "object", + "properties" : { + "description" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "Addebito diretto" } } }, - "PaymentType": { - "required": [ - "payment_type" - ], - "type": "object", - "properties": { - "description": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "Addebito diretto" - }, - "payment_type": { - "maxLength": 15, - "minLength": 0, - "pattern": "[A-Z]*", - "type": "string", - "example": "AD" + "PaymentType" : { + "required" : [ "payment_type" ], + "type" : "object", + "properties" : { + "description" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "Addebito diretto" + }, + "payment_type" : { + "maxLength" : 15, + "minLength" : 0, + "pattern" : "[A-Z]*", + "type" : "string", + "example" : "AD" } } }, - "ConfigurationKeyBase": { - "required": [ - "config_value" - ], - "type": "object", - "properties": { - "config_value": { - "type": "string", - "example": "180000" - }, - "config_description": { - "type": "string", - "example": " default millisecondi validità token" + "ConfigurationKeyBase" : { + "required" : [ "config_value" ], + "type" : "object", + "properties" : { + "config_value" : { + "type" : "string", + "example" : "180000" + }, + "config_description" : { + "type" : "string", + "example" : " default millisecondi validità token" } } }, - "FtpServer": { - "required": [ - "enabled", - "host", - "password", - "port", - "root_path", - "service", - "type", - "username" - ], - "type": "object", - "properties": { - "host": { - "type": "string", - "example": "host.domain" - }, - "port": { - "type": "integer", - "format": "int32", - "example": 1234 - }, - "username": { - "type": "string", - "example": "username" - }, - "password": { - "type": "string", - "example": "pwdpwdpwd" - }, - "root_path": { - "type": "string", - "example": "/" - }, - "service": { - "type": "string", - "example": "service" - }, - "type": { - "type": "string", - "example": "out" - }, - "in_path": { - "type": "string", - "example": "/in/service" - }, - "out_path": { - "type": "string", - "example": "/out/service" - }, - "history_path": { - "type": "string", - "example": "/out/history/service" - }, - "enabled": { - "type": "boolean", - "default": true + "FtpServer" : { + "required" : [ "enabled", "host", "password", "port", "root_path", "service", "type", "username" ], + "type" : "object", + "properties" : { + "host" : { + "type" : "string", + "example" : "host.domain" + }, + "port" : { + "type" : "integer", + "format" : "int32", + "example" : 1234 + }, + "username" : { + "type" : "string", + "example" : "username" + }, + "password" : { + "type" : "string", + "example" : "pwdpwdpwd" + }, + "root_path" : { + "type" : "string", + "example" : "/" + }, + "service" : { + "type" : "string", + "example" : "service" + }, + "type" : { + "type" : "string", + "example" : "out" + }, + "in_path" : { + "type" : "string", + "example" : "/in/service" + }, + "out_path" : { + "type" : "string", + "example" : "/out/service" + }, + "history_path" : { + "type" : "string", + "example" : "/out/history/service" + }, + "enabled" : { + "type" : "boolean", + "default" : true } } }, - "ChannelDetails": { - "required": [ - "agid", - "broker_psp_code", - "card_chart", - "channel_code", - "digital_stamp_brand", - "enabled", - "flag_psp_cp", - "on_us", - "payment_model", - "port", - "primitive_version", - "protocol", - "recovery", - "rt_push", - "thread_number", - "timeout_a", - "timeout_b", - "timeout_c" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string", - "example": "223344556677889900" - }, - "enabled": { - "type": "boolean" - }, - "broker_description": { - "type": "string", - "description": "Broker description. Read only field", - "example": "Lorem ipsum dolor sit amet" - }, - "primitive_version": { - "type": "integer", - "description": "Primitive number version", - "format": "int32" - }, - "password": { - "type": "string" - }, - "protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] - }, - "ip": { - "type": "string" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "service": { - "type": "string" - }, - "broker_psp_code": { - "type": "string" - }, - "proxy_enabled": { - "type": "boolean" - }, - "proxy_host": { - "type": "string" - }, - "proxy_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "proxy_username": { - "type": "string" - }, - "proxy_password": { - "type": "string" - }, - "target_host": { - "type": "string" - }, - "target_port": { - "type": "integer", - "format": "int64" - }, - "target_path": { - "type": "string" - }, - "thread_number": { - "minimum": 1, - "type": "integer", - "format": "int64" - }, - "timeout_a": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_b": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "timeout_c": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "nmp_service": { - "type": "string" - }, - "new_fault_code": { - "type": "boolean" + "ChannelDetails" : { + "required" : [ "agid", "broker_psp_code", "card_chart", "channel_code", "digital_stamp_brand", "enabled", "flag_psp_cp", "on_us", "payment_model", "port", "primitive_version", "protocol", "recovery", "rt_push", "thread_number", "timeout_a", "timeout_b", "timeout_c" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string", + "example" : "223344556677889900" }, - "target_host_nmp": { - "type": "string" + "enabled" : { + "type" : "boolean" }, - "target_port_nmp": { - "type": "integer", - "format": "int64" + "broker_description" : { + "type" : "string", + "description" : "Broker description. Read only field", + "example" : "Lorem ipsum dolor sit amet" }, - "target_path_nmp": { - "type": "string" + "primitive_version" : { + "type" : "integer", + "description" : "Primitive number version", + "format" : "int32" }, - "redirect_ip": { - "type": "string" + "password" : { + "type" : "string" }, - "redirect_path": { - "type": "string" + "protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] }, - "redirect_port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int64" + "ip" : { + "type" : "string" }, - "redirect_query_string": { - "type": "string" + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" }, - "redirect_protocol": { - "type": "string", - "enum": [ - "HTTPS", - "HTTP" - ] + "service" : { + "type" : "string" }, - "payment_model": { - "type": "string", - "enum": [ - "IMMEDIATE", - "IMMEDIATE_MULTIBENEFICIARY", - "DEFERRED", - "ACTIVATED_AT_PSP" - ] + "broker_psp_code" : { + "type" : "string" }, - "serv_plugin": { - "type": "string" + "proxy_enabled" : { + "type" : "boolean" }, - "rt_push": { - "type": "boolean" + "proxy_host" : { + "type" : "string" }, - "on_us": { - "type": "boolean" + "proxy_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" }, - "card_chart": { - "type": "boolean" + "proxy_username" : { + "type" : "string" }, - "recovery": { - "type": "boolean" + "proxy_password" : { + "type" : "string" }, - "digital_stamp_brand": { - "type": "boolean" + "target_host" : { + "type" : "string" }, - "flag_io": { - "type": "boolean" + "target_port" : { + "type" : "integer", + "format" : "int64" }, - "agid": { - "type": "boolean" + "target_path" : { + "type" : "string" }, - "flag_psp_cp": { - "type": "boolean", - "description": "Represents the authorization to carry out the transfer of the information present in additional payment information in the tags relating to payment by card for the PA in V1" + "thread_number" : { + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "timeout_a" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_b" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "timeout_c" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "nmp_service" : { + "type" : "string" + }, + "new_fault_code" : { + "type" : "boolean" + }, + "target_host_nmp" : { + "type" : "string" + }, + "target_port_nmp" : { + "type" : "integer", + "format" : "int64" + }, + "target_path_nmp" : { + "type" : "string" + }, + "redirect_ip" : { + "type" : "string" + }, + "redirect_path" : { + "type" : "string" + }, + "redirect_port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int64" + }, + "redirect_query_string" : { + "type" : "string" + }, + "redirect_protocol" : { + "type" : "string", + "enum" : [ "HTTPS", "HTTP" ] + }, + "payment_model" : { + "type" : "string", + "enum" : [ "IMMEDIATE", "IMMEDIATE_MULTIBENEFICIARY", "DEFERRED", "ACTIVATED_AT_PSP" ] + }, + "serv_plugin" : { + "type" : "string" + }, + "rt_push" : { + "type" : "boolean" + }, + "on_us" : { + "type" : "boolean" + }, + "card_chart" : { + "type" : "boolean" + }, + "recovery" : { + "type" : "boolean" + }, + "digital_stamp_brand" : { + "type" : "boolean" + }, + "flag_io" : { + "type" : "boolean" + }, + "agid" : { + "type" : "boolean" + }, + "flag_psp_cp" : { + "type" : "boolean", + "description" : "Represents the authorization to carry out the transfer of the information present in additional payment information in the tags relating to payment by card for the PA in V1" } } }, - "BrokerPspDetails": { - "required": [ - "broker_psp_code", - "description", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "223344556677889900" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerPspDetails" : { + "required" : [ "broker_psp_code", "description", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "223344556677889900" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "BrokerDetails": { - "required": [ - "broker_code", - "description", - "enabled", - "extended_fault_bean" - ], - "type": "object", - "properties": { - "broker_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "223344556677889900" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "maxLength": 255, - "minLength": 0, - "type": "string", - "example": "Lorem ipsum dolor sit amet" - }, - "extended_fault_bean": { - "type": "boolean" + "BrokerDetails" : { + "required" : [ "broker_code", "description", "enabled", "extended_fault_bean" ], + "type" : "object", + "properties" : { + "broker_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "223344556677889900" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "maxLength" : 255, + "minLength" : 0, + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" + }, + "extended_fault_bean" : { + "type" : "boolean" } } }, - "UpdateStationMaintenance": { - "required": [ - "end_date_time" - ], - "type": "object", - "properties": { - "start_date_time": { - "type": "string", - "description": "The start date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "end_date_time": { - "type": "string", - "description": "The end date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "stand_in": { - "type": "boolean", - "description": "StandIn flag" + "UpdateStationMaintenance" : { + "required" : [ "end_date_time" ], + "type" : "object", + "properties" : { + "start_date_time" : { + "type" : "string", + "description" : "The start date time of the station maintenance", + "format" : "date-time", + "example" : "2024-04-01T10:00:00Z" + }, + "end_date_time" : { + "type" : "string", + "description" : "The end date time of the station maintenance", + "format" : "date-time", + "example" : "2024-04-01T13:00:00Z" + }, + "stand_in" : { + "type" : "boolean", + "description" : "StandIn flag" } } }, - "StationMaintenanceResource": { - "required": [ - "broker_code", - "end_date_time", - "maintenance_id", - "stand_in", - "start_date_time", - "station_code" - ], - "type": "object", - "properties": { - "maintenance_id": { - "type": "integer", - "description": "Maintenance's id", - "format": "int64" - }, - "start_date_time": { - "type": "string", - "description": "The start date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "end_date_time": { - "type": "string", - "description": "The end date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "stand_in": { - "type": "boolean", - "description": "StandIn flag" - }, - "station_code": { - "type": "string", - "description": "Code of the station subject of the maintenance" - }, - "broker_code": { - "type": "string", - "description": "Code of the broker that owns the station" + "StationMaintenanceResource" : { + "required" : [ "broker_code", "end_date_time", "maintenance_id", "stand_in", "start_date_time", "station_code" ], + "type" : "object", + "properties" : { + "maintenance_id" : { + "type" : "integer", + "description" : "Maintenance's id", + "format" : "int64" + }, + "start_date_time" : { + "type" : "string", + "description" : "The start date time of the station maintenance", + "format" : "date-time", + "example" : "2024-04-01T10:00:00Z" + }, + "end_date_time" : { + "type" : "string", + "description" : "The end date time of the station maintenance", + "format" : "date-time", + "example" : "2024-04-01T13:00:00Z" + }, + "stand_in" : { + "type" : "boolean", + "description" : "StandIn flag" + }, + "station_code" : { + "type" : "string", + "description" : "Code of the station subject of the maintenance" + }, + "broker_code" : { + "type" : "string", + "description" : "Code of the broker that owns the station" } - } + }, + "description" : "List of station's maintenance" }, - "PspChannelCode": { - "required": [ - "channel_code", - "payment_types" - ], - "type": "object", - "properties": { - "payment_types": { - "type": "array", - "items": { - "type": "string" - } - }, - "channel_code": { - "type": "string" + "PspChannelCode" : { + "required" : [ "channel_code", "payment_types" ], + "type" : "object", + "properties" : { + "payment_types" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "channel_code" : { + "type" : "string" } } }, - "XSDValidation": { - "required": [ - "detail", - "xsdCompliant", - "xsdSchema" - ], - "type": "object", - "properties": { - "xsdCompliant": { - "type": "boolean", - "example": false - }, - "xsdSchema": { - "type": "string", - "example": "https://raw.githubusercontent.com/pagopa/pagopa-api/master/general/InformativaContoAccredito_1_2_1.xsd" - }, - "detail": { - "type": "string", - "example": "Invalid content was found starting with element 'idBancaSeller'. One of '{ibanAccredito}' is expected. Error at lineNumber: 10" + "XSDValidation" : { + "required" : [ "detail", "xsdCompliant", "xsdSchema" ], + "type" : "object", + "properties" : { + "xsdCompliant" : { + "type" : "boolean", + "example" : false + }, + "xsdSchema" : { + "type" : "string", + "example" : "https://raw.githubusercontent.com/pagopa/pagopa-api/master/general/InformativaContoAccredito_1_2_1.xsd" + }, + "detail" : { + "type" : "string", + "example" : "Invalid content was found starting with element 'idBancaSeller'. One of '{ibanAccredito}' is expected. Error at lineNumber: 10" } } }, - "CheckItem": { - "type": "object", - "properties": { - "title": { - "type": "string" + "CheckItem" : { + "type" : "object", + "properties" : { + "title" : { + "type" : "string" }, - "value": { - "type": "string" + "value" : { + "type" : "string" }, - "valid": { - "type": "string", - "enum": [ - "VALID", - "NOT_VALID" - ] + "valid" : { + "type" : "string", + "enum" : [ "VALID", "NOT_VALID" ] }, - "note": { - "type": "string" + "note" : { + "type" : "string" }, - "action": { - "type": "string" + "action" : { + "type" : "string" } } }, - "MassiveCheck": { - "type": "object", - "properties": { - "fileName": { - "type": "string" + "MassiveCheck" : { + "type" : "object", + "properties" : { + "fileName" : { + "type" : "string" }, - "checkItems": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CheckItem" + "checkItems" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CheckItem" } } } }, - "Encoding": { - "required": [ - "code_type", - "encoding_code" - ], - "type": "object", - "properties": { - "code_type": { - "type": "string", - "description": "BARCODE_GS1_128 is deprecated and not allowed", - "enum": [ - "QR_CODE", - "BARCODE_128_AIM", - "BARCODE_GS1_128" - ] - }, - "encoding_code": { - "type": "string", - "example": "0000111" + "Encoding" : { + "required" : [ "code_type", "encoding_code" ], + "type" : "object", + "properties" : { + "code_type" : { + "type" : "string", + "description" : "BARCODE_GS1_128 is deprecated and not allowed", + "enum" : [ "QR_CODE", "BARCODE_128_AIM", "BARCODE_GS1_128" ] + }, + "encoding_code" : { + "type" : "string", + "example" : "0000111" } } }, - "WfespPluginConf": { - "required": [ - "id_bean", - "id_serv_plugin", - "pag_const_string_profile", - "pag_rpt_xpath_profile", - "pag_soap_rule_profile" - ], - "type": "object", - "properties": { - "pag_const_string_profile": { - "maxLength": 150, - "minLength": 0, - "type": "string", - "example": "Lorem ipsum dolor sit amet" - }, - "pag_soap_rule_profile": { - "maxLength": 150, - "minLength": 0, - "type": "string", - "example": "IDVS=$buyerBank$" - }, - "pag_rpt_xpath_profile": { - "maxLength": 150, - "minLength": 0, - "type": "string", - "example": "Lorem ipsum dolor sit amet" - }, - "id_bean": { - "maxLength": 255, - "minLength": 0, - "type": "string", - "example": "defaultForwardProcessor" - }, - "id_serv_plugin": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "idPsp1" + "WfespPluginConf" : { + "required" : [ "id_bean", "id_serv_plugin", "pag_const_string_profile", "pag_rpt_xpath_profile", "pag_soap_rule_profile" ], + "type" : "object", + "properties" : { + "pag_const_string_profile" : { + "maxLength" : 150, + "minLength" : 0, + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" + }, + "pag_soap_rule_profile" : { + "maxLength" : 150, + "minLength" : 0, + "type" : "string", + "example" : "IDVS=$buyerBank$" + }, + "pag_rpt_xpath_profile" : { + "maxLength" : 150, + "minLength" : 0, + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" + }, + "id_bean" : { + "maxLength" : 255, + "minLength" : 0, + "type" : "string", + "example" : "defaultForwardProcessor" + }, + "id_serv_plugin" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "idPsp1" } } }, - "Pdd": { - "required": [ - "description", - "enabled", - "id_pdd", - "ip" - ], - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "example": false - }, - "description": { - "type": "string", - "example": "Lorem ipsum dolor sit amet" - }, - "ip": { - "type": "string", - "example": "localhost" - }, - "port": { - "maximum": 65535, - "minimum": 1, - "type": "integer", - "format": "int32", - "example": 1234 - }, - "id_pdd": { - "type": "string", - "example": "localhost" + "Pdd" : { + "required" : [ "description", "enabled", "id_pdd", "ip" ], + "type" : "object", + "properties" : { + "enabled" : { + "type" : "boolean", + "example" : false + }, + "description" : { + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" + }, + "ip" : { + "type" : "string", + "example" : "localhost" + }, + "port" : { + "maximum" : 65535, + "minimum" : 1, + "type" : "integer", + "format" : "int32", + "example" : 1234 + }, + "id_pdd" : { + "type" : "string", + "example" : "localhost" } } }, - "ConfigurationKey": { - "required": [ - "config_category", - "config_key", - "config_value" - ], - "type": "object", - "properties": { - "config_value": { - "type": "string", - "example": "180000" - }, - "config_description": { - "type": "string", - "example": " default millisecondi validità token" - }, - "config_category": { - "type": "string", - "example": "GLOBAL" - }, - "config_key": { - "type": "string", - "example": "default_token_duration_validity_millis" + "ConfigurationKey" : { + "required" : [ "config_category", "config_key", "config_value" ], + "type" : "object", + "properties" : { + "config_value" : { + "type" : "string", + "example" : "180000" + }, + "config_description" : { + "type" : "string", + "example" : " default millisecondi validità token" + }, + "config_category" : { + "type" : "string", + "example" : "GLOBAL" + }, + "config_key" : { + "type" : "string", + "example" : "default_token_duration_validity_millis" } } }, - "CreateStationMaintenance": { - "required": [ - "end_date_time", - "stand_in", - "start_date_time", - "station_code" - ], - "type": "object", - "properties": { - "start_date_time": { - "type": "string", - "description": "The start date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "end_date_time": { - "type": "string", - "description": "The end date time of the station maintenance", - "format": "date-time", - "example": "2024-04-01T13:00:00Z" - }, - "stand_in": { - "type": "boolean", - "description": "StandIn flag" - }, - "station_code": { - "type": "string", - "description": "Code of the station subject of the maintenance" + "CreateStationMaintenance" : { + "required" : [ "end_date_time", "stand_in", "start_date_time", "station_code" ], + "type" : "object", + "properties" : { + "start_date_time" : { + "type" : "string", + "description" : "The start date time of the station maintenance", + "format" : "date-time", + "example" : "2024-04-01T10:00:00Z" + }, + "end_date_time" : { + "type" : "string", + "description" : "The end date time of the station maintenance", + "format" : "date-time", + "example" : "2024-04-01T13:00:00Z" + }, + "stand_in" : { + "type" : "boolean", + "description" : "StandIn flag" + }, + "station_code" : { + "type" : "string", + "description" : "Code of the station subject of the maintenance" } } }, - "PageInfo": { - "required": [ - "items_found", - "limit", - "page", - "total_items", - "total_pages" - ], - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "Page number", - "format": "int32" - }, - "limit": { - "type": "integer", - "description": "Required number of items per page", - "format": "int32" - }, - "items_found": { - "type": "integer", - "description": "Number of items found. (The last page may have fewer elements than required)", - "format": "int32" - }, - "total_pages": { - "type": "integer", - "description": "Total number of pages", - "format": "int32" - }, - "total_items": { - "type": "integer", - "description": "Total number of items for all pages", - "format": "int64" + "PageInfo" : { + "required" : [ "items_found", "limit", "page", "total_items", "total_pages" ], + "type" : "object", + "properties" : { + "page" : { + "type" : "integer", + "description" : "Page number", + "format" : "int32" + }, + "limit" : { + "type" : "integer", + "description" : "Required number of items per page", + "format" : "int32" + }, + "items_found" : { + "type" : "integer", + "description" : "Number of items found. (The last page may have fewer elements than required)", + "format" : "int32" + }, + "total_pages" : { + "type" : "integer", + "description" : "Total number of pages", + "format" : "int32" + }, + "total_items" : { + "type" : "integer", + "description" : "Total number of items for all pages", + "format" : "int64" } } }, - "Station": { - "required": [ - "enabled", - "station_code", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "station enabled", - "default": true - }, - "broker_description": { - "type": "string", - "description": "Broker description. Read only field", - "example": "Lorem ipsum dolor sit amet" - }, - "version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "number version", - "format": "int64" - }, - "is_connection_sync": { - "type": "boolean", - "description": "Describe the station connection's type, true synchronous, false asynchronous" + "Station" : { + "required" : [ "enabled", "station_code", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "station enabled", + "default" : true + }, + "broker_description" : { + "type" : "string", + "description" : "Broker description. Read only field", + "example" : "Lorem ipsum dolor sit amet" + }, + "version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "number version", + "format" : "int64" + }, + "is_connection_sync" : { + "type" : "boolean", + "description" : "Describe the station connection's type, true synchronous, false asynchronous" } } }, - "Stations": { - "required": [ - "page_info", - "stations" - ], - "type": "object", - "properties": { - "stations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Station" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "Stations" : { + "required" : [ "page_info", "stations" ], + "type" : "object", + "properties" : { + "stations" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Station" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "StationCreditorInstitution": { - "required": [ - "business_name", - "creditor_institution_code", - "enabled" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "creditor institution enabled", - "default": true - }, - "business_name": { - "maxLength": 70, - "minLength": 0, - "type": "string", - "example": "Comune di Lorem Ipsum" - }, - "application_code": { - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "aca": { - "type": "boolean" - }, - "stand_in": { - "type": "boolean" + "StationCreditorInstitution" : { + "required" : [ "business_name", "creditor_institution_code", "enabled" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "creditor institution enabled", + "default" : true + }, + "business_name" : { + "maxLength" : 70, + "minLength" : 0, + "type" : "string", + "example" : "Comune di Lorem Ipsum" + }, + "application_code" : { + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "aca" : { + "type" : "boolean" + }, + "stand_in" : { + "type" : "boolean" } } }, - "StationCreditorInstitutions": { - "required": [ - "creditor_institutions", - "page_info" - ], - "type": "object", - "properties": { - "creditor_institutions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StationCreditorInstitution" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "StationCreditorInstitutions" : { + "required" : [ "creditor_institutions", "page_info" ], + "type" : "object", + "properties" : { + "creditor_institutions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/StationCreditorInstitution" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "Service": { - "type": "object", - "properties": { - "psp_code": { - "maxLength": 35, - "minLength": 0, - "type": "string" - }, - "flow_id": { - "maxLength": 35, - "minLength": 0, - "type": "string" - }, - "psp_business_name": { - "type": "string" - }, - "psp_flag_stamp": { - "type": "boolean" - }, - "broker_psp_code": { - "maxLength": 35, - "minLength": 0, - "type": "string" - }, - "channel_code": { - "maxLength": 35, - "minLength": 0, - "type": "string" - }, - "service_name": { - "maxLength": 35, - "minLength": 0, - "type": "string" - }, - "payment_method_channel": { - "type": "integer", - "format": "int64" - }, - "payment_type_code": { - "type": "string" - }, - "language_code": { - "type": "string", - "enum": [ - "IT", - "EN", - "FR", - "DE", - "SL" - ] - }, - "service_description": { - "maxLength": 511, - "minLength": 0, - "type": "string" - }, - "service_availability": { - "maxLength": 511, - "minLength": 0, - "type": "string" - }, - "channel_url": { - "type": "string" - }, - "minimum_amount": { - "type": "number", - "format": "double" - }, - "maximum_amount": { - "type": "number", - "format": "double" - }, - "fixed_cost": { - "type": "number", - "format": "double" - }, - "timestamp_insertion": { - "type": "string", - "format": "date-time" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "logo_psp": { - "type": "string", - "format": "byte" - }, - "tags": { - "maxLength": 135, - "minLength": 0, - "type": "string" - }, - "logo_service": { - "type": "string", - "format": "byte" - }, - "channel_app": { - "type": "boolean" - }, - "on_us": { - "type": "boolean" - }, - "cart_card": { - "type": "boolean" - }, - "abi_code": { - "maxLength": 5, - "minLength": 0, - "type": "string" - }, - "mybank_code": { - "maxLength": 35, - "minLength": 0, - "type": "string" - }, - "convention_code": { - "maxLength": 35, - "minLength": 0, - "type": "string" - }, - "flag_io": { - "type": "boolean" + "Service" : { + "type" : "object", + "properties" : { + "psp_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + }, + "flow_id" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + }, + "psp_business_name" : { + "type" : "string" + }, + "psp_flag_stamp" : { + "type" : "boolean" + }, + "broker_psp_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + }, + "channel_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + }, + "service_name" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + }, + "payment_method_channel" : { + "type" : "integer", + "format" : "int64" + }, + "payment_type_code" : { + "type" : "string" + }, + "language_code" : { + "type" : "string", + "enum" : [ "IT", "EN", "FR", "DE", "SL" ] + }, + "service_description" : { + "maxLength" : 511, + "minLength" : 0, + "type" : "string" + }, + "service_availability" : { + "maxLength" : 511, + "minLength" : 0, + "type" : "string" + }, + "channel_url" : { + "type" : "string" + }, + "minimum_amount" : { + "type" : "number", + "format" : "double" + }, + "maximum_amount" : { + "type" : "number", + "format" : "double" + }, + "fixed_cost" : { + "type" : "number", + "format" : "double" + }, + "timestamp_insertion" : { + "type" : "string", + "format" : "date-time" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "logo_psp" : { + "type" : "string", + "format" : "byte" + }, + "tags" : { + "maxLength" : 135, + "minLength" : 0, + "type" : "string" + }, + "logo_service" : { + "type" : "string", + "format" : "byte" + }, + "channel_app" : { + "type" : "boolean" + }, + "on_us" : { + "type" : "boolean" + }, + "cart_card" : { + "type" : "boolean" + }, + "abi_code" : { + "maxLength" : 5, + "minLength" : 0, + "type" : "string" + }, + "mybank_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + }, + "convention_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string" + }, + "flag_io" : { + "type" : "boolean" } } }, - "Services": { - "required": [ - "page_info", - "services" - ], - "type": "object", - "properties": { - "services": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Service" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "Services" : { + "required" : [ "page_info", "services" ], + "type" : "object", + "properties" : { + "services" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Service" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "PaymentServiceProvider": { - "required": [ - "business_name", - "enabled", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "business_name": { - "type": "string" - }, - "tax_code": { - "type": "string" + "PaymentServiceProvider" : { + "required" : [ "business_name", "enabled", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "business_name" : { + "type" : "string" + }, + "tax_code" : { + "type" : "string" } } }, - "PaymentServiceProviders": { - "required": [ - "page_info", - "payment_service_providers" - ], - "type": "object", - "properties": { - "payment_service_providers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentServiceProvider" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "PaymentServiceProviders" : { + "required" : [ "page_info", "payment_service_providers" ], + "type" : "object", + "properties" : { + "payment_service_providers" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PaymentServiceProvider" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "PspChannel": { - "required": [ - "channel_code", - "enabled", - "payment_types" - ], - "type": "object", - "properties": { - "payment_types": { - "type": "array", - "items": { - "type": "string" - } - }, - "channel_code": { - "type": "string" - }, - "enabled": { - "type": "boolean" + "PspChannel" : { + "required" : [ "channel_code", "enabled", "payment_types" ], + "type" : "object", + "properties" : { + "payment_types" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "channel_code" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" } } }, - "PspChannelList": { - "required": [ - "channels" - ], - "type": "object", - "properties": { - "channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PspChannel" + "PspChannelList" : { + "required" : [ "channels" ], + "type" : "object", + "properties" : { + "channels" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PspChannel" } } } }, - "PaymentServiceProviderView": { - "required": [ - "broker_psp_code", - "channel_code", - "payment_method", - "payment_type", - "psp_code" - ], - "type": "object", - "properties": { - "psp_code": { - "pattern": "[A-Z0-9_]{6,14}", - "type": "string" - }, - "broker_psp_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "223344556677889900" - }, - "channel_code": { - "type": "string", - "example": "223344556677889900" - }, - "payment_type": { - "type": "string" - }, - "payment_method": { - "type": "string" + "PaymentServiceProviderView" : { + "required" : [ "broker_psp_code", "channel_code", "payment_method", "payment_type", "psp_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "pattern" : "[A-Z0-9_]{6,14}", + "type" : "string" + }, + "broker_psp_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "223344556677889900" + }, + "channel_code" : { + "type" : "string", + "example" : "223344556677889900" + }, + "payment_type" : { + "type" : "string" + }, + "payment_method" : { + "type" : "string" } } }, - "PaymentServiceProvidersView": { - "required": [ - "page_info", - "payment_service_providers" - ], - "type": "object", - "properties": { - "payment_service_providers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentServiceProviderView" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "PaymentServiceProvidersView" : { + "required" : [ "page_info", "payment_service_providers" ], + "type" : "object", + "properties" : { + "payment_service_providers" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PaymentServiceProviderView" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "AppInfo": { - "required": [ - "environment", - "name", - "version" - ], - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "environment": { - "type": "string" - }, - "dbConnection": { - "type": "string" + "AppInfo" : { + "required" : [ "environment", "name", "version" ], + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "version" : { + "type" : "string" + }, + "environment" : { + "type" : "string" + }, + "dbConnection" : { + "type" : "string" } } }, - "Ica": { - "required": [ - "business_name", - "creditor_institution_code", - "id_ica", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "id_ica": { - "type": "string", - "example": "123456789" - }, - "creditor_institution_code": { - "type": "string", - "example": "1234567890100" - }, - "business_name": { - "type": "string", - "example": "Comune di Lorem Ipsum" - }, - "validity_date": { - "type": "string", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "format": "date-time" + "Ica" : { + "required" : [ "business_name", "creditor_institution_code", "id_ica", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "id_ica" : { + "type" : "string", + "example" : "123456789" + }, + "creditor_institution_code" : { + "type" : "string", + "example" : "1234567890100" + }, + "business_name" : { + "type" : "string", + "example" : "Comune di Lorem Ipsum" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" } } }, - "Icas": { - "required": [ - "icas", - "page_info" - ], - "type": "object", - "properties": { - "icas": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Ica" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "Icas" : { + "required" : [ "icas", "page_info" ], + "type" : "object", + "properties" : { + "icas" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Ica" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CreditorInstitution": { - "required": [ - "business_name", - "creditor_institution_code", - "enabled" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "creditor institution enabled", - "default": true - }, - "business_name": { - "maxLength": 70, - "minLength": 0, - "type": "string", - "example": "Comune di Lorem Ipsum" + "CreditorInstitution" : { + "required" : [ "business_name", "creditor_institution_code", "enabled" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "creditor institution enabled", + "default" : true + }, + "business_name" : { + "maxLength" : 70, + "minLength" : 0, + "type" : "string", + "example" : "Comune di Lorem Ipsum" } } }, - "CreditorInstitutionList": { - "required": [ - "creditor_institutions" - ], - "type": "object", - "properties": { - "creditor_institutions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CreditorInstitution" + "CreditorInstitutionList" : { + "required" : [ "creditor_institutions" ], + "type" : "object", + "properties" : { + "creditor_institutions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CreditorInstitution" } } } }, - "CreditorInstitutions": { - "required": [ - "creditor_institutions", - "page_info" - ], - "type": "object", - "properties": { - "creditor_institutions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CreditorInstitution" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "CreditorInstitutions" : { + "required" : [ "creditor_institutions", "page_info" ], + "type" : "object", + "properties" : { + "creditor_institutions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CreditorInstitution" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CreditorInstitutionStation": { - "required": [ - "enabled", - "station_code", - "version" - ], - "type": "object", - "properties": { - "station_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "enabled": { - "type": "boolean", - "description": "station enabled", - "default": true - }, - "broker_description": { - "type": "string", - "description": "Broker description. Read only field", - "example": "Lorem ipsum dolor sit amet" - }, - "version": { - "maximum": 2, - "minimum": 1, - "type": "integer", - "description": "number version", - "format": "int64" - }, - "is_connection_sync": { - "type": "boolean", - "description": "Describe the station connection's type, true synchronous, false asynchronous" - }, - "application_code": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "broadcast": { - "type": "boolean" - }, - "aca": { - "type": "boolean" - }, - "stand_in": { - "type": "boolean" + "CreditorInstitutionStation" : { + "required" : [ "enabled", "station_code", "version" ], + "type" : "object", + "properties" : { + "station_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "enabled" : { + "type" : "boolean", + "description" : "station enabled", + "default" : true + }, + "broker_description" : { + "type" : "string", + "description" : "Broker description. Read only field", + "example" : "Lorem ipsum dolor sit amet" + }, + "version" : { + "maximum" : 2, + "minimum" : 1, + "type" : "integer", + "description" : "number version", + "format" : "int64" + }, + "is_connection_sync" : { + "type" : "boolean", + "description" : "Describe the station connection's type, true synchronous, false asynchronous" + }, + "application_code" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "broadcast" : { + "type" : "boolean" + }, + "aca" : { + "type" : "boolean" + }, + "stand_in" : { + "type" : "boolean" } } }, - "CreditorInstitutionStationList": { - "required": [ - "stations" - ], - "type": "object", - "properties": { - "stations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CreditorInstitutionStation" + "CreditorInstitutionStationList" : { + "required" : [ "stations" ], + "type" : "object", + "properties" : { + "stations" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CreditorInstitutionStation" } } } }, - "Iban": { - "required": [ - "iban", - "validity_date" - ], - "type": "object", - "properties": { - "iban": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "description": "The iban code value", - "example": "IT99C0222211111000000000000" - }, - "validity_date": { - "type": "string", - "description": "The date until which the iban is valid", - "format": "date-time" - }, - "publication_date": { - "type": "string", - "description": "The publication date of the iban", - "format": "date-time" + "Iban" : { + "required" : [ "iban", "validity_date" ], + "type" : "object", + "properties" : { + "iban" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "description" : "The iban code value", + "example" : "IT99C0222211111000000000000" + }, + "validity_date" : { + "type" : "string", + "description" : "The date until which the iban is valid", + "format" : "date-time" + }, + "publication_date" : { + "type" : "string", + "description" : "The publication date of the iban", + "format" : "date-time" } } }, - "Ibans": { - "required": [ - "ibans" - ], - "type": "object", - "properties": { - "ibans": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Iban" + "Ibans" : { + "required" : [ "ibans" ], + "type" : "object", + "properties" : { + "ibans" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Iban" } } } }, - "IbansEnhanced": { - "required": [ - "ibans_enhanced", - "page_info" - ], - "type": "object", - "properties": { - "ibans_enhanced": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IbanEnhanced" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "IbansEnhanced" : { + "required" : [ "ibans_enhanced", "page_info" ], + "type" : "object", + "properties" : { + "ibans_enhanced" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/IbanEnhanced" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CreditorInstitutionEncodings": { - "required": [ - "encodings" - ], - "type": "object", - "properties": { - "encodings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Encoding" + "CreditorInstitutionEncodings" : { + "required" : [ "encodings" ], + "type" : "object", + "properties" : { + "encodings" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Encoding" } } } }, - "CreditorInstitutionView": { - "required": [ - "broker_code", - "creditor_institution_code", - "station_code" - ], - "type": "object", - "properties": { - "creditor_institution_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "broker_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "223344556677889900" - }, - "station_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "aux_digit": { - "type": "integer", - "format": "int64" - }, - "application_code": { - "minimum": 0, - "type": "integer", - "format": "int64" - }, - "segregation_code": { - "type": "integer", - "format": "int64" - }, - "mod4": { - "type": "boolean" - }, - "station_enabled": { - "type": "boolean" + "CreditorInstitutionView" : { + "required" : [ "broker_code", "creditor_institution_code", "station_code" ], + "type" : "object", + "properties" : { + "creditor_institution_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "broker_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "223344556677889900" + }, + "station_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "aux_digit" : { + "type" : "integer", + "format" : "int64" + }, + "application_code" : { + "minimum" : 0, + "type" : "integer", + "format" : "int64" + }, + "segregation_code" : { + "type" : "integer", + "format" : "int64" + }, + "mod4" : { + "type" : "boolean" + }, + "station_enabled" : { + "type" : "boolean" } } }, - "CreditorInstitutionsView": { - "required": [ - "creditor_institutions", - "page_info" - ], - "type": "object", - "properties": { - "creditor_institutions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CreditorInstitutionView" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "CreditorInstitutionsView" : { + "required" : [ "creditor_institutions", "page_info" ], + "type" : "object", + "properties" : { + "creditor_institutions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CreditorInstitutionView" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CounterpartTable": { - "required": [ - "business_name", - "creditor_institution_code", - "id_counterpart_table", - "publication_date", - "validity_date" - ], - "type": "object", - "properties": { - "id_counterpart_table": { - "type": "string", - "example": "123456789" - }, - "business_name": { - "type": "string", - "example": "Comune di Lorem Ipsum" - }, - "creditor_institution_code": { - "type": "string", - "example": "1234567890100" - }, - "publication_date": { - "type": "string", - "format": "date-time" - }, - "validity_date": { - "type": "string", - "format": "date-time" + "CounterpartTable" : { + "required" : [ "business_name", "creditor_institution_code", "id_counterpart_table", "publication_date", "validity_date" ], + "type" : "object", + "properties" : { + "id_counterpart_table" : { + "type" : "string", + "example" : "123456789" + }, + "business_name" : { + "type" : "string", + "example" : "Comune di Lorem Ipsum" + }, + "creditor_institution_code" : { + "type" : "string", + "example" : "1234567890100" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time" } } }, - "CounterpartTables": { - "required": [ - "counterpart_tables", - "page_info" - ], - "type": "object", - "properties": { - "counterpart_tables": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CounterpartTable" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "CounterpartTables" : { + "required" : [ "counterpart_tables", "page_info" ], + "type" : "object", + "properties" : { + "counterpart_tables" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CounterpartTable" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "WfespPluginConfs": { - "required": [ - "wfesp_plugin_confs" - ], - "type": "object", - "properties": { - "wfesp_plugin_confs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WfespPluginConf" + "WfespPluginConfs" : { + "required" : [ "wfesp_plugin_confs" ], + "type" : "object", + "properties" : { + "wfesp_plugin_confs" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/WfespPluginConf" } } } }, - "Pdds": { - "required": [ - "pdds" - ], - "type": "object", - "properties": { - "pdds": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Pdd" + "Pdds" : { + "required" : [ "pdds" ], + "type" : "object", + "properties" : { + "pdds" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Pdd" } } } }, - "PaymentTypes": { - "required": [ - "payment_types" - ], - "type": "object", - "properties": { - "payment_types": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentType" + "PaymentTypes" : { + "required" : [ "payment_types" ], + "type" : "object", + "properties" : { + "payment_types" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PaymentType" } } } }, - "ConfigurationKeys": { - "required": [ - "configuration_keys" - ], - "type": "object", - "properties": { - "configuration_keys": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ConfigurationKey" + "ConfigurationKeys" : { + "required" : [ "configuration_keys" ], + "type" : "object", + "properties" : { + "configuration_keys" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ConfigurationKey" } } } }, - "FtpServers": { - "required": [ - "ftp_servers" - ], - "type": "object", - "properties": { - "ftp_servers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FtpServer" + "FtpServers" : { + "required" : [ "ftp_servers" ], + "type" : "object", + "properties" : { + "ftp_servers" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FtpServer" } } } }, - "Channel": { - "required": [ - "channel_code", - "enabled", - "primitive_version" - ], - "type": "object", - "properties": { - "channel_code": { - "type": "string", - "example": "223344556677889900" - }, - "enabled": { - "type": "boolean" - }, - "broker_description": { - "type": "string", - "description": "Broker description. Read only field", - "example": "Lorem ipsum dolor sit amet" - }, - "primitive_version": { - "type": "integer", - "description": "Primitive number version", - "format": "int32" + "Channel" : { + "required" : [ "channel_code", "enabled", "primitive_version" ], + "type" : "object", + "properties" : { + "channel_code" : { + "type" : "string", + "example" : "223344556677889900" + }, + "enabled" : { + "type" : "boolean" + }, + "broker_description" : { + "type" : "string", + "description" : "Broker description. Read only field", + "example" : "Lorem ipsum dolor sit amet" + }, + "primitive_version" : { + "type" : "integer", + "description" : "Primitive number version", + "format" : "int32" } } }, - "Channels": { - "required": [ - "channels", - "page_info" - ], - "type": "object", - "properties": { - "channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Channel" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "Channels" : { + "required" : [ "channels", "page_info" ], + "type" : "object", + "properties" : { + "channels" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Channel" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "ChannelPsp": { - "required": [ - "business_name", - "enabled", - "payment_types", - "psp_code", - "tax_code" - ], - "type": "object", - "properties": { - "psp_code": { - "type": "string" - }, - "business_name": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "payment_types": { - "type": "array", - "items": { - "type": "string" - } - }, - "tax_code": { - "type": "string" + "ChannelPsp" : { + "required" : [ "business_name", "enabled", "payment_types", "psp_code", "tax_code" ], + "type" : "object", + "properties" : { + "psp_code" : { + "type" : "string" + }, + "business_name" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" + }, + "payment_types" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "tax_code" : { + "type" : "string" } } }, - "ChannelPspList": { - "required": [ - "page_info", - "payment_service_providers" - ], - "type": "object", - "properties": { - "payment_service_providers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChannelPsp" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "ChannelPspList" : { + "required" : [ "page_info", "payment_service_providers" ], + "type" : "object", + "properties" : { + "payment_service_providers" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ChannelPsp" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "Cdi": { - "required": [ - "business_name", - "id_cdi", - "psp_code" - ], - "type": "object", - "properties": { - "id_cdi": { - "type": "string", - "example": "223344556677889900" - }, - "psp_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "1234567890100" - }, - "business_name": { - "type": "string", - "example": "Comune di Lorem Ipsum" - }, - "validity_date": { - "type": "string", - "format": "date-time", - "example": "2021-10-08T14:55:16.302Z" - }, - "publication_date": { - "type": "string", - "format": "date-time", - "example": "2021-10-08T14:55:16.302Z" + "Cdi" : { + "required" : [ "business_name", "id_cdi", "psp_code" ], + "type" : "object", + "properties" : { + "id_cdi" : { + "type" : "string", + "example" : "223344556677889900" + }, + "psp_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "1234567890100" + }, + "business_name" : { + "type" : "string", + "example" : "Comune di Lorem Ipsum" + }, + "validity_date" : { + "type" : "string", + "format" : "date-time", + "example" : "2021-10-08T14:55:16.302Z" + }, + "publication_date" : { + "type" : "string", + "format" : "date-time", + "example" : "2021-10-08T14:55:16.302Z" } } }, - "Cdis": { - "required": [ - "cdis", - "page_info" - ], - "type": "object", - "properties": { - "cdis": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Cdi" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "Cdis" : { + "required" : [ "cdis", "page_info" ], + "type" : "object", + "properties" : { + "cdis" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Cdi" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "Cache": { - "type": "object", - "properties": { - "id": { - "type": "string" + "Cache" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "version" : { + "type" : "string" }, - "version": { - "type": "string" + "time" : { + "type" : "string" + } + } + }, + "CacheVersions" : { + "required" : [ "page_info", "version_list" ], + "type" : "object", + "properties" : { + "version_list" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Cache" + } }, - "time": { - "type": "string" + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "CacheVersions": { - "required": [ - "page_info", - "version_list" - ], - "type": "object", - "properties": { - "version_list": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Cache" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "BrokerPsp" : { + "required" : [ "broker_psp_code", "description", "enabled" ], + "type" : "object", + "properties" : { + "broker_psp_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "223344556677889900" + }, + "description" : { + "type" : "string" + }, + "enabled" : { + "type" : "boolean" } } }, - "BrokerPsp": { - "required": [ - "broker_psp_code", - "description", - "enabled" - ], - "type": "object", - "properties": { - "broker_psp_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "223344556677889900" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" + "BrokersPsp" : { + "required" : [ "brokers_psp", "page_info" ], + "type" : "object", + "properties" : { + "brokers_psp" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/BrokerPsp" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "BrokersPsp": { - "required": [ - "brokers_psp", - "page_info" - ], - "type": "object", - "properties": { - "brokers_psp": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BrokerPsp" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "Broker" : { + "required" : [ "broker_code", "description", "enabled" ], + "type" : "object", + "properties" : { + "broker_code" : { + "maxLength" : 35, + "minLength" : 0, + "type" : "string", + "example" : "223344556677889900" + }, + "enabled" : { + "type" : "boolean" + }, + "description" : { + "maxLength" : 255, + "minLength" : 0, + "type" : "string", + "example" : "Lorem ipsum dolor sit amet" } } }, - "Broker": { - "required": [ - "broker_code", - "description", - "enabled" - ], - "type": "object", - "properties": { - "broker_code": { - "maxLength": 35, - "minLength": 0, - "type": "string", - "example": "223344556677889900" - }, - "enabled": { - "type": "boolean" - }, - "description": { - "maxLength": 255, - "minLength": 0, - "type": "string", - "example": "Lorem ipsum dolor sit amet" + "Brokers" : { + "required" : [ "brokers", "page_info" ], + "type" : "object", + "properties" : { + "brokers" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/Broker" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } }, - "Brokers": { - "required": [ - "brokers", - "page_info" - ], - "type": "object", - "properties": { - "brokers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Broker" - } - }, - "page_info": { - "$ref": "#/components/schemas/PageInfo" + "StationMaintenanceListResource" : { + "required" : [ "page_info", "station_maintenance_list" ], + "type" : "object", + "properties" : { + "station_maintenance_list" : { + "type" : "array", + "description" : "List of station's maintenance", + "items" : { + "$ref" : "#/components/schemas/StationMaintenanceResource" + } + }, + "page_info" : { + "$ref" : "#/components/schemas/PageInfo" } } } }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "The API key to access this function app.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" + "securitySchemes" : { + "ApiKey" : { + "type" : "apiKey", + "description" : "The API key to access this function app.", + "name" : "Ocp-Apim-Subscription-Key", + "in" : "header" }, - "Authorization": { - "type": "http", - "description": "JWT token get after Azure Login", - "scheme": "bearer", - "bearerFormat": "JWT" + "Authorization" : { + "type" : "http", + "description" : "JWT token get after Azure Login", + "scheme" : "bearer", + "bearerFormat" : "JWT" } } } -} +} \ No newline at end of file