|
@ -170,10 +170,41 @@ public class RecipientDetailValidatorV3 { |
|
|
|
|
|
|
|
|
recipientInfo.setPaymentMethod(null); |
|
|
recipientInfo.setPaymentMethod(null); |
|
|
view.updateValueToWidgetSelectedPaymentMethod(null); |
|
|
view.updateValueToWidgetSelectedPaymentMethod(null); |
|
|
|
|
|
view.setSubmitButtonEnabled(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
view.showPaymentSelectionView(true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//By default we update native country same as selected Country |
|
|
|
|
|
view.updateValueToWidgetNativeCountry(selectedCountryServiceData.getCountryName()); |
|
|
|
|
|
view.showNativeCountryFlag(CountryFlagMapper.getFlagFromCountryCode(selectedCountryServiceData.getCountryCode())); |
|
|
|
|
|
recipientInfo.setNativeCountry(selectedCountryServiceData.getCountryName()); |
|
|
|
|
|
recipientInfo.setNativeCountryCode(selectedCountryServiceData.getCountryCode()); |
|
|
|
|
|
recipientInfo.setNativeCountryId(selectedCountryServiceData.getCountryId()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//TODO Need to refactored |
|
|
|
|
|
public void updateSelectedCountryWhileEditing(CountryServiceModel selectedCountryServiceData) { |
|
|
|
|
|
this.selectedCountryService = selectedCountryServiceData; |
|
|
|
|
|
|
|
|
|
|
|
recipientInfo.setCountryId(selectedCountryServiceData.getCountryId()); |
|
|
|
|
|
recipientInfo.setCountryCode(selectedCountryServiceData.getCountryCode()); |
|
|
|
|
|
recipientInfo.setCountry(selectedCountryServiceData.getCountryName()); |
|
|
|
|
|
|
|
|
|
|
|
view.updateValueToWidgetSelectedCountry(selectedCountryServiceData.getCountryName()); |
|
|
|
|
|
|
|
|
|
|
|
view.showSelectedCountryFlag(CountryFlagMapper.getFlagFromCountryCode(selectedCountryServiceData.getCountryCode())); |
|
|
|
|
|
|
|
|
|
|
|
// |
|
|
|
|
|
// recipientInfo.setPaymentMethod(null); |
|
|
|
|
|
// view.updateValueToWidgetSelectedPaymentMethod(null); |
|
|
|
|
|
// view.setSubmitButtonEnabled(false); |
|
|
|
|
|
// |
|
|
|
|
|
|
|
|
view.showPaymentSelectionView(true); |
|
|
view.showPaymentSelectionView(true); |
|
|
|
|
|
|
|
|
view.setSubmitButtonEnabled(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//By default we update native country same as selected Country |
|
|
//By default we update native country same as selected Country |
|
@ -201,6 +232,12 @@ public class RecipientDetailValidatorV3 { |
|
|
|
|
|
|
|
|
view.updateValueToWidgetBankName(null); |
|
|
view.updateValueToWidgetBankName(null); |
|
|
view.updateValueToWidgetBranchName(null); |
|
|
view.updateValueToWidgetBranchName(null); |
|
|
|
|
|
view.setSubmitButtonEnabled(false); |
|
|
|
|
|
|
|
|
|
|
|
ValidationRuleModel branchValidationRule = validationRuleModelMap.get(FIELD_BANK_NAME); |
|
|
|
|
|
if (branchValidationRule != null) { |
|
|
|
|
|
branchValidationRule.updateValidity(false); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|