Compare commits

..

No commits in common. "680f697bd0046d8074cf3e5411e927fdcfa60a78" and "72b40dfe1c5926b9e491c54cdd4d3620d36bbe5e" have entirely different histories.

5 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ public class LegalCustomerProductDirectoryService implements LegalCustomerProduc
public ApiResponse<LegalCustomerProductDirectoryResponse> execute(
LegalCustomerProductDirectoryRequest request
) {
log.info("Iniciando ejecucion para el cliente: {}", request.getCustomerId());
log.info("Iniciando ejecucion para el cliente: {}", request.getCustomerIbsNumber());
try {
return storeProcedure(request);
@ -50,7 +50,7 @@ public class LegalCustomerProductDirectoryService implements LegalCustomerProduc
private ApiResponse<LegalCustomerProductDirectoryResponse> storeProcedure(
LegalCustomerProductDirectoryRequest request
) {
log.info("Calling persistence repository for client: {}", request.getCustomerId());
log.info("Calling persistence repository for client: {}", request.getCustomerIbsNumber());
return new ApiResponse<>(
LegalCustomerProductDirectoryResponse.builder()

View File

@ -15,7 +15,7 @@ public class LegalCustomerProductDirectoryRequest {
@NonNull
private String appId; // Header obligatorio
@NonNull
private String customerId; // VCUSCUN - Obligatorio (Numero de cliente IBS)
private String customerIbsNumber; // VCUSCUN - Obligatorio (Numero de cliente IBS)
private String bankNumber; // VACMBNK - Numero de Banco (filtro)
private String currencyCode; // VACMCCY - Moneda (filtro)

View File

@ -126,7 +126,7 @@ public class AccountRepository {
) {
return "call " + dataSourceConfig.getSpName() +
"(" +
buildParam(request.getCustomerId()) + ", " +
buildParam(request.getCustomerIbsNumber()) + ", " +
buildParam(request.getBankNumber()) + ", " +
buildParam(request.getCurrencyCode()) + ", " +
buildParam(request.getAccountStatus()) + ", " +

View File

@ -24,7 +24,7 @@ import org.eclipse.microprofile.openapi.annotations.responses.APIResponses;
import java.util.Objects;
@Slf4j
@Path("/legal-customer-product-directory")
@Path("/customer/accounts")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class LegalCustomerProductDirectoryResource {
@ -219,7 +219,7 @@ public class LegalCustomerProductDirectoryResource {
"data": null,
"statusResponse": {
"statusCode": "VDE01",
"message": "El campo customerId es obligatorio"
"message": "El campo customerIbsNumber es obligatorio"
}
}
"""
@ -378,7 +378,7 @@ public class LegalCustomerProductDirectoryResource {
try {
return Response.ok(useCase.execute(
LegalCustomerProductDirectoryRequest.builder()
.customerId(Objects.toString(customerId, ""))
.customerIbsNumber(Objects.toString(customerId, ""))
.customerReferenceFintechId(Objects.toString(customerReferenceFintechId, ""))
.appId(Objects.toString(appId, ""))
.bankNumber(Objects.toString(bankNumber, ""))