
Ola estou tentando chamar o cancelamento de plano porem estou tomando erro "A propriedade [id] informada não existe.:id",
java
public Boolean cancelarPlano(Long planoId) {
HashMap params = new HashMap();
params.put("id", String.valueOf(planoId));
try {
var plan = efiPay.call("deletePlan", params, new JSONObject());
return plan.getInt("code") == HttpStatus.OK.value();
} catch (EfiPayException e) {
log.error("Erro na requisicao do efipay/cancelar plano: {}", e.getErrorDescription());
throw new ServerValidationException(e.getErrorDescription(), e);
} catch (Exception e) {
log.error("Erro na requisicao do efipay/cancelar plano: {}", e.getMessage());
throw new ServerValidationException(e.getMessage(), e);
}
}
public Boolean cancelarPlano(Long planoId) {
HashMap params = new HashMap();
params.put("id", String.valueOf(planoId));
try {
var plan = efiPay.call("deletePlan", params, new JSONObject());
return plan.getInt("code") == HttpStatus.OK.value();
} catch (EfiPayException e) {
log.error("Erro na requisicao do efipay/cancelar plano: {}", e.getErrorDescription());
throw new ServerValidationException(e.getErrorDescription(), e);
} catch (Exception e) {
log.error("Erro na requisicao do efipay/cancelar plano: {}", e.getMessage());
throw new ServerValidationException(e.getMessage(), e);
}
}