travel.wink.wise.partner.quote.api.AmountRequiredValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wise-java-sdk Show documentation
Show all versions of wise-java-sdk Show documentation
Spring Boot implementation to TransferWise
The newest version!
package travel.wink.wise.partner.quote.api;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
/**
* The type Amount required validator.
*/
public class AmountRequiredValidator implements ConstraintValidator {
@Override
public boolean isValid(final QuoteRequest quoteRequest, final ConstraintValidatorContext context) {
return quoteRequest.isAmountPresent();
}
}