diff --git a/src/main/java/it/pagopa/swclient/mil/bean/CommonHeader.java b/src/main/java/it/pagopa/swclient/mil/bean/CommonHeader.java index d5052eb..d37ddcb 100644 --- a/src/main/java/it/pagopa/swclient/mil/bean/CommonHeader.java +++ b/src/main/java/it/pagopa/swclient/mil/bean/CommonHeader.java @@ -18,7 +18,9 @@ import lombok.experimental.Accessors; /** - *
Common header attributes
+ *+ * Common header attributes. + *
* * @author Antonio Tarricone */ @@ -30,49 +32,62 @@ @Accessors(chain = true) @MerchantIdNotNullForPos(message = ErrorCode.MERCHANT_ID_MUST_NOT_BE_NULL_FOR_POS_MSG) public class CommonHeader { - /* - * Request ID + /** + *+ * Request ID. + *
*/ @HeaderParam(HeaderParamName.REQUEST_ID) @NotNull(message = ErrorCode.REQUEST_ID_MUST_NOT_BE_NULL_MSG) // It's verified by it.pagopa.swclient.mil.CommonHeadersValidatorFilter: - // @Pattern(regexp = ValidationPattern.REQUEST_ID, message = ErrorCode.REQUEST_ID_MUST_MATCH_REGEXP_MSG) + // @Pattern(regexp = ValidationPattern.REQUEST_ID, message = + // ErrorCode.REQUEST_ID_MUST_MATCH_REGEXP_MSG) private String requestId; - /* - * Version of the required API + /** + *+ * Version of the required API. + *
*/ @HeaderParam(HeaderParamName.VERSION) // It's verified by it.pagopa.swclient.mil.CommonHeadersValidatorFilter: // @Pattern(regexp = ValidationPattern.VERSION, message = ErrorCode.VERSION_MUST_MATCH_REGEXP_MSG) private String version; - /* - * Acquirer ID assigned by PagoPA + /** + *+ * Acquirer ID assigned by PagoPA. + *
*/ @HeaderParam(HeaderParamName.ACQUIRER_ID) @NotNull(message = ErrorCode.ACQUIRER_ID_MUST_NOT_BE_NULL_MSG) @Pattern(regexp = ValidationPattern.ACQUIRER_ID, message = ErrorCode.ACQUIRER_ID_MUST_MATCH_REGEXP_MSG) private String acquirerId; - /* - * Channel originating the request + /** + *+ * Channel originating the request. + *
*/ @HeaderParam(HeaderParamName.CHANNEL) @NotNull(message = ErrorCode.CHANNEL_MUST_NOT_BE_NULL_MSG) @Pattern(regexp = ValidationPattern.CHANNEL) private String channel; - /* + /** + ** Merchant ID originating the transaction. If Channel equals to POS, MerchantId must not be null. + *
*/ @HeaderParam(HeaderParamName.MERCHANT_ID) @Pattern(regexp = ValidationPattern.MERCHANT_ID, message = ErrorCode.MERCHANT_ID_MUST_MATCH_REGEXP_MSG) private String merchantId; - /* + /** + ** ID of the terminal originating the transaction. It must be unique per acquirer, channel and * merchant if present. + *
*/ @HeaderParam(HeaderParamName.TERMINAL_ID) @NotNull(message = ErrorCode.TERMINAL_ID_MUST_NOT_BE_NULL_MSG)