Annotation Interface MerchantIdNotNullForPos


@Documented @Retention(RUNTIME) @Target(TYPE) @Constraint(validatedBy=MerchantIdNotNullForPosValidator.class) public @interface MerchantIdNotNullForPos

If Channel equals to POS, the MerchantId must not be null.

Author:
Antonio Tarricone
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Validation groups to which the constraint belongs.
    Default key for creating error messages in case the constraint is violated.
    Class<? extends jakarta.validation.Payload>[]
    Can be used by clients of the Bean Validation API to assign custom payload objects to a constraint.
  • Element Details

    • message

      String message

      Default key for creating error messages in case the constraint is violated.

      Returns:
      Default key for creating error messages in case the constraint is violated
      Default:
      ""
    • groups

      Class<?>[] groups

      Validation groups to which the constraint belongs.

      Returns:
      Validation groups to which the constraint belongs
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload

      Can be used by clients of the Bean Validation API to assign custom payload objects to a constraint.

      Returns:
      Custom payload objects to a constraint
      Default:
      {}