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
Modifier and TypeOptional ElementDescriptionClass<?>[]
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 messageDefault 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<?>[] groupsValidation groups to which the constraint belongs.
- Returns:
- Validation groups to which the constraint belongs
- Default:
{}
-
payload
Class<? extends jakarta.validation.Payload>[] payloadCan 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:
{}
-