Class BaCreateBillingAccountValidator

java.lang.Object
de.hybris.platform.billingaccounttmfwebservices.v2.validators.BaCreateBillingAccountValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class BaCreateBillingAccountValidator extends Object implements org.springframework.validation.Validator
Validator for POST /billingAccount API.
Since:
2208.
  • Constructor Details

    • BaCreateBillingAccountValidator

      public BaCreateBillingAccountValidator(TuaGenericService tuaGenericService)
  • Method Details

    • supports

      public boolean supports(Class<?> aClass)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      public void validate(Object o, org.springframework.validation.Errors errors)
      Checks that the BillingAccount has valid relatedParty
      Specified by:
      validate in interface org.springframework.validation.Validator
      Parameters:
      o - the billing account
      errors - the errors
    • getTuaGenericService

      protected TuaGenericService getTuaGenericService()