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

    Fields
    Modifier and Type
    Field
    Description
    private @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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 requestId

      Request ID.

    • version

      @HeaderParam("Version") private String 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 acquirerId

      Acquirer 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 channel

      Channel 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 merchantId

      Merchant 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 terminalId

      ID of the terminal originating the transaction. It must be unique per acquirer, channel and merchant if present.

  • Constructor Details

    • CommonHeader

      public CommonHeader()