Fix null paymentMomentId
This commit is contained in:
parent
3d387e451b
commit
17f52cd914
Binary file not shown.
@ -215,9 +215,14 @@ public class ABTProductsPUTGenerator {
|
|||||||
}
|
}
|
||||||
case "paymentMoment" -> {
|
case "paymentMoment" -> {
|
||||||
LOGGER.info("Rewriting paymentMoment to paymentMomentId...");
|
LOGGER.info("Rewriting paymentMoment to paymentMomentId...");
|
||||||
|
if (jsonField.getValue().get("paymentMomentId").isNull()) {
|
||||||
|
LOGGER.info("Rewriting null paymentMomentId...");
|
||||||
|
((ObjectNode)newJsonNode).putRawValue("paymentMomentId", null);
|
||||||
|
} else {
|
||||||
Long paymentMomentId = jsonField.getValue().get("paymentMomentId").asLong();
|
Long paymentMomentId = jsonField.getValue().get("paymentMomentId").asLong();
|
||||||
((ObjectNode)newJsonNode).put("paymentMomentId", paymentMomentId);
|
((ObjectNode)newJsonNode).put("paymentMomentId", paymentMomentId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
case "requiredCustomerLevel" -> {
|
case "requiredCustomerLevel" -> {
|
||||||
LOGGER.info("Rewriting requiredCustomerLevel to requiredCustomerLevelId...");
|
LOGGER.info("Rewriting requiredCustomerLevel to requiredCustomerLevelId...");
|
||||||
Long requiredCustomerLevelId = jsonField.getValue().get("requiredCustomerLevelId").asLong();
|
Long requiredCustomerLevelId = jsonField.getValue().get("requiredCustomerLevelId").asLong();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user