Update channelOrigin as String
This commit is contained in:
parent
bef4bddfa6
commit
63d971880c
Binary file not shown.
@ -266,7 +266,7 @@ public class HttpClientService implements HttpClientUseCase {
|
||||
log.info("Metodo HTTP: {}", request.getMethod().name());
|
||||
|
||||
if(request.getBody() != null) {
|
||||
log.info("Cuerpo de la Peticion: {}", request.getBody());
|
||||
log.info("Peticion Cuerpo: {}", request.getBody());
|
||||
}
|
||||
|
||||
return switch (request.getMethod()) {
|
||||
|
||||
@ -12,5 +12,5 @@ import lombok.*;
|
||||
@RegisterForReflection
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class Instruction {
|
||||
private InstructionPurposeType instructionPurposeType; // Request JSON: "channelOrigin" (BOL)
|
||||
private String instructionPurposeType; // Request JSON: "channelOrigin" (BOL)
|
||||
}
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
package com.banesco.module.instruction.domain.model;
|
||||
|
||||
public enum InstructionPurposeType {
|
||||
BOL,
|
||||
}
|
||||
@ -77,8 +77,7 @@ public class PaymentInitiationRequestRequest {
|
||||
@JsonIgnore
|
||||
public String getChannelCode() {
|
||||
return procedureRequest
|
||||
.getInstructionPurposeType()
|
||||
.name();
|
||||
.getInstructionPurposeType();
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
@ -47,7 +47,7 @@ public class DomPaymentInitiationRequestClient implements DomainUseCase {
|
||||
);
|
||||
|
||||
try {
|
||||
ApiResponse<T> response = httpClientUseCase.execute(request);
|
||||
ApiResponse<T> response = httpClientUseCase.executeApiResponse(request);
|
||||
|
||||
log.info(
|
||||
"Solicitud del api de dominio exitoso: {}",
|
||||
|
||||
@ -92,20 +92,23 @@ public class SecurityTraceClient implements SecurityTraceUseCase {
|
||||
int statusHttp = apiResponse.getStatus();
|
||||
String payerId = apiRequest.getPayerId();
|
||||
String payeeId = apiRequest.getPayeeId();
|
||||
String codMon = (!StringUtil.isNullOrEmpty(apiRequest.getCurrency()))
|
||||
? apiRequest.getCurrency()
|
||||
: securityTraceConfig.getRequest().getCodMon();
|
||||
ApiResponse<?> apiResponseData = (ApiResponse<?>) apiResponse.getEntity();
|
||||
|
||||
return SecurityTraceRequest.builder()
|
||||
.sp(securityTraceConfig.getRequest().getSp())
|
||||
.codBan(securityTraceConfig.getRequest().getCodBan())
|
||||
.codMon(securityTraceConfig.getRequest().getCodMon())
|
||||
.codMon(codMon)
|
||||
.codEve(securityTraceConfig.getRequest().getCodEve())
|
||||
.codEve2(securityTraceConfig.getRequest().getCodEve2())
|
||||
.login(apiRequest.getChannelCode())
|
||||
.fecHor(new Date())
|
||||
.nacCli(payeeId.substring(0, 1).toUpperCase())
|
||||
.cedRifCli(getPartyIdNumber(payeeId.substring(1)))
|
||||
.nacBen(payerId.substring(0, 1).toUpperCase())
|
||||
.cedBen(getPartyIdNumber(payerId.substring(1)))
|
||||
.nacCli(payerId.substring(0, 1).toUpperCase())
|
||||
.cedRifCli(getPartyIdNumber(payerId.substring(1)))
|
||||
.nacBen(payeeId.substring(0, 1).toUpperCase())
|
||||
.cedBen(getPartyIdNumber(payeeId.substring(1)))
|
||||
.monto(apiRequest.getAmount())
|
||||
.desPago(apiRequest.getPurpose())
|
||||
.objeto(
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user