update path

This commit is contained in:
MSI\joaly 2026-01-13 22:39:01 -04:00
parent 54fff30bfe
commit 72b40dfe1c
2 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ import org.eclipse.microprofile.openapi.annotations.responses.APIResponses;
import java.util.Objects;
@Slf4j
@Path("/dom-legal-customer-product-directory")
@Path("/customer/accounts")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class LegalCustomerProductDirectoryResource {
@ -42,7 +42,7 @@ public class LegalCustomerProductDirectoryResource {
}
@GET
@Path("/retrieve/{customerIbsNumber : (?!retrieve$).*}")
@Path("/retrieve/{customerId : (?!retrieve$).*}")
@Operation(
summary = "Recuperar productos de cliente legal",
description = "Consulta masiva de cuentas por numero de cliente IBS"
@ -321,9 +321,9 @@ public class LegalCustomerProductDirectoryResource {
)
})
public Response retrieve(
@PathParam("customerIbsNumber")
@PathParam("customerId")
@Parameter(description = "Numero de cliente IBS (VCUSCUN)", example = "200053197")
String customerIbsNumber,
String customerId,
@QueryParam("customerReferenceFintechId")
@Parameter(description = "ID de la fintech", example = "pranical-test")
@ -373,12 +373,12 @@ public class LegalCustomerProductDirectoryResource {
@Parameter(description = "Indicador cash (VCASHEA). 'SI'=En tabla cashea, 'NO'=No en tabla cashea", example = "SI")
String casheaIndicator
) {
log.info("Iniciando consulta para cliente IBS: {}", customerIbsNumber);
log.info("Iniciando consulta para cliente IBS: {}", customerId);
try {
return Response.ok(useCase.execute(
LegalCustomerProductDirectoryRequest.builder()
.customerIbsNumber(Objects.toString(customerIbsNumber, ""))
.customerIbsNumber(Objects.toString(customerId, ""))
.customerReferenceFintechId(Objects.toString(customerReferenceFintechId, ""))
.appId(Objects.toString(appId, ""))
.bankNumber(Objects.toString(bankNumber, ""))