Package it.pagopa.swclient.mil.bean
Class CommonHeader
java.lang.Object
it.pagopa.swclient.mil.bean.CommonHeader
@MerchantIdNotNullForPos(message="[00000000B] If channel equals to POS, merchant ID must not be null")
public class CommonHeader
extends Object
Common header attributes.
- Author:
- Antonio Tarricone
-
Field Summary
Modifier and TypeFieldDescriptionprivate @NotNull(message="[000000005] Acquirer ID must not be null") @Pattern(regexp="^\\d{1,11}$",message="[000000006] Acquirer ID must match \"{regexp}\"") String
Acquirer ID assigned by PagoPA.private @NotNull(message="[000000007] Channel must not be null") @Pattern(regexp="^(ATM|POS|TOTEM|CASH_REGISTER|CSA)$") String
Channel originating the request.private @Pattern(regexp="^[0-9a-zA-Z]{1,15}$",message="[00000000C] Merchant ID must match \"{regexp}\"") String
Merchant ID originating the transaction.private @NotNull(message="[000000001] Request ID must not be null") String
Request ID.private @NotNull(message="[000000009] Terminal ID must not be null") @Pattern(regexp="^[0-9a-zA-Z]{1,8}$",message="[00000000A] Terminal ID must match \"{regexp}\"") String
ID of the terminal originating the transaction.private String
Version of the required API. -
Constructor Summary
-
Method Summary
-
Field Details
-
requestId
@HeaderParam("RequestId") @NotNull(message="[000000001] Request ID must not be null") private @NotNull(message="[000000001] Request ID must not be null") String requestIdRequest ID.
-
version
Version of the required API.
-
acquirerId
@HeaderParam("AcquirerId") @NotNull(message="[000000005] Acquirer ID must not be null") @Pattern(regexp="^\\d{1,11}$", message="[000000006] Acquirer ID must match \"{regexp}\"") private @NotNull(message="[000000005] Acquirer ID must not be null") @Pattern(regexp="^\\d{1,11}$",message="[000000006] Acquirer ID must match \"{regexp}\"") String acquirerIdAcquirer ID assigned by PagoPA.
-
channel
@HeaderParam("Channel") @NotNull(message="[000000007] Channel must not be null") @Pattern(regexp="^(ATM|POS|TOTEM|CASH_REGISTER|CSA)$") private @NotNull(message="[000000007] Channel must not be null") @Pattern(regexp="^(ATM|POS|TOTEM|CASH_REGISTER|CSA)$") String channelChannel originating the request.
-
merchantId
@HeaderParam("MerchantId") @Pattern(regexp="^[0-9a-zA-Z]{1,15}$", message="[00000000C] Merchant ID must match \"{regexp}\"") private @Pattern(regexp="^[0-9a-zA-Z]{1,15}$",message="[00000000C] Merchant ID must match \"{regexp}\"") String merchantIdMerchant ID originating the transaction. If Channel equals to POS, MerchantId must not be null.
-
terminalId
@HeaderParam("TerminalId") @NotNull(message="[000000009] Terminal ID must not be null") @Pattern(regexp="^[0-9a-zA-Z]{1,8}$", message="[00000000A] Terminal ID must match \"{regexp}\"") private @NotNull(message="[000000009] Terminal ID must not be null") @Pattern(regexp="^[0-9a-zA-Z]{1,8}$",message="[00000000A] Terminal ID must match \"{regexp}\"") String terminalIdID of the terminal originating the transaction. It must be unique per acquirer, channel and merchant if present.
-
-
Constructor Details
-
CommonHeader
public CommonHeader()
-