From f713564e650cda92c0fc1668addd0030668dbbdc Mon Sep 17 00:00:00 2001 From: aushaniU Date: Fri, 30 Nov 2018 15:19:11 +0530 Subject: [PATCH] [HUBDEV-2336] done changes according to the mentioned jira --- .../service/impl/payment/ValidatePaymentCharge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/oneapi-validation/src/main/java/com/wso2telco/dep/oneapivalidation/service/impl/payment/ValidatePaymentCharge.java b/components/oneapi-validation/src/main/java/com/wso2telco/dep/oneapivalidation/service/impl/payment/ValidatePaymentCharge.java index 35f02f6f0..287b067c9 100644 --- a/components/oneapi-validation/src/main/java/com/wso2telco/dep/oneapivalidation/service/impl/payment/ValidatePaymentCharge.java +++ b/components/oneapi-validation/src/main/java/com/wso2telco/dep/oneapivalidation/service/impl/payment/ValidatePaymentCharge.java @@ -141,7 +141,7 @@ public void validate(String json) throws CustomException { new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL, "originalServerReferenceCode", originalServerReferenceCode), new ValidationRule(ValidationRule.VALIDATION_TYPE_MANDATORY, "referenceCode", referenceCode), new ValidationRule(ValidationRule.VALIDATION_TYPE_MANDATORY, "description", description), - new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL, "currency", currency), + new ValidationRule(ValidationRule.VALIDATION_TYPE_MANDATORY, "currency", currency), new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL_DOUBLE_GT_ZERO, "amount", amount), new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL, "clientCorrelator", clientCorrelator), new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL, "onBehalfOf", onBehalfOf),