Package com.adyen.model.tapi
Class LoginRequest
- java.lang.Object
-
- com.adyen.model.tapi.LoginRequest
-
public class LoginRequest extends Object
It conveys information related to the session (period between a Login and the following Logout) to process. Content of the `LoginRequest` message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoginRequest.CustomerOrderReqEnumGets or Sets customerOrderReq
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CUSTOMER_ORDER_REQstatic StringJSON_PROPERTY_DATE_TIMEstatic StringJSON_PROPERTY_OPERATOR_I_Dstatic StringJSON_PROPERTY_OPERATOR_LANGUAGEstatic StringJSON_PROPERTY_PO_I_SERIAL_NUMBERstatic StringJSON_PROPERTY_SALE_SOFTWAREstatic StringJSON_PROPERTY_SALE_TERMINAL_DATAstatic StringJSON_PROPERTY_SHIFT_NUMBERstatic StringJSON_PROPERTY_TOKEN_REQUESTED_TYPEstatic StringJSON_PROPERTY_TRAINING_MODE_FLAG
-
Constructor Summary
Constructors Constructor Description LoginRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginRequestaddCustomerOrderReqItem(LoginRequest.CustomerOrderReqEnum customerOrderReqItem)LoginRequestcustomerOrderReq(List<LoginRequest.CustomerOrderReqEnum> customerOrderReq)List of customer order open, closed or both to be sent in the response messages.LoginRequestdateTime(OffsetDateTime dateTime)Date and Time.booleanequals(Object o)Return true if this LoginRequest object is equal to o.static LoginRequestfromJson(String jsonString)Create an instance of LoginRequest given an JSON stringList<LoginRequest.CustomerOrderReqEnum>getCustomerOrderReq()List of customer order open, closed or both to be sent in the response messages.OffsetDateTimegetDateTime()Date and Time.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetOperatorID()Identification of the Cashier or Operator.StringgetOperatorLanguage()Language of the Cashier or Operator.StringgetPoISerialNumber()Serial number of a POI Terminal.SaleSoftwaregetSaleSoftware()Get saleSoftwareSaleTerminalDatagetSaleTerminalData()Get saleTerminalDataStringgetShiftNumber()Shift number.TokenRequestedTypegetTokenRequestedType()Get tokenRequestedTypeBooleangetTrainingModeFlag()Training mode.inthashCode()LoginRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.LoginRequestoperatorID(String operatorID)Identification of the Cashier or Operator.LoginRequestoperatorLanguage(String operatorLanguage)Language of the Cashier or Operator.LoginRequestpoISerialNumber(String poISerialNumber)Serial number of a POI Terminal.LoginRequestsaleSoftware(SaleSoftware saleSoftware)saleSoftwareLoginRequestsaleTerminalData(SaleTerminalData saleTerminalData)saleTerminalDatavoidsetCustomerOrderReq(List<LoginRequest.CustomerOrderReqEnum> customerOrderReq)List of customer order open, closed or both to be sent in the response messages.voidsetDateTime(OffsetDateTime dateTime)Date and Time.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetOperatorID(String operatorID)Identification of the Cashier or Operator.voidsetOperatorLanguage(String operatorLanguage)Language of the Cashier or Operator.voidsetPoISerialNumber(String poISerialNumber)Serial number of a POI Terminal.voidsetSaleSoftware(SaleSoftware saleSoftware)saleSoftwarevoidsetSaleTerminalData(SaleTerminalData saleTerminalData)saleTerminalDatavoidsetShiftNumber(String shiftNumber)Shift number.voidsetTokenRequestedType(TokenRequestedType tokenRequestedType)tokenRequestedTypevoidsetTrainingModeFlag(Boolean trainingModeFlag)Training mode.LoginRequestshiftNumber(String shiftNumber)Shift number.StringtoJson()Convert an instance of LoginRequest to an JSON stringLoginRequesttokenRequestedType(TokenRequestedType tokenRequestedType)tokenRequestedTypeStringtoString()LoginRequesttrainingModeFlag(Boolean trainingModeFlag)Training mode.
-
-
-
Field Detail
-
JSON_PROPERTY_DATE_TIME
public static final String JSON_PROPERTY_DATE_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_SOFTWARE
public static final String JSON_PROPERTY_SALE_SOFTWARE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_TERMINAL_DATA
public static final String JSON_PROPERTY_SALE_TERMINAL_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRAINING_MODE_FLAG
public static final String JSON_PROPERTY_TRAINING_MODE_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPERATOR_LANGUAGE
public static final String JSON_PROPERTY_OPERATOR_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPERATOR_I_D
public static final String JSON_PROPERTY_OPERATOR_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHIFT_NUMBER
public static final String JSON_PROPERTY_SHIFT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_REQUESTED_TYPE
public static final String JSON_PROPERTY_TOKEN_REQUESTED_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOMER_ORDER_REQ
public static final String JSON_PROPERTY_CUSTOMER_ORDER_REQ
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PO_I_SERIAL_NUMBER
public static final String JSON_PROPERTY_PO_I_SERIAL_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
dateTime
public LoginRequest dateTime(OffsetDateTime dateTime)
Date and Time. In the Login request message, the Sale System gives its date and time to the POI System. In the Login response, the POI System gives its date and time to the Sale System.- Parameters:
dateTime- Date and Time. In the Login request message, the Sale System gives its date and time to the POI System. In the Login response, the POI System gives its date and time to the Sale System.- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getDateTime
public OffsetDateTime getDateTime()
Date and Time. In the Login request message, the Sale System gives its date and time to the POI System. In the Login response, the POI System gives its date and time to the Sale System.- Returns:
- dateTime Date and Time. In the Login request message, the Sale System gives its date and time to the POI System. In the Login response, the POI System gives its date and time to the Sale System.
-
setDateTime
public void setDateTime(OffsetDateTime dateTime)
Date and Time. In the Login request message, the Sale System gives its date and time to the POI System. In the Login response, the POI System gives its date and time to the Sale System.- Parameters:
dateTime- Date and Time. In the Login request message, the Sale System gives its date and time to the POI System. In the Login response, the POI System gives its date and time to the Sale System.
-
saleSoftware
public LoginRequest saleSoftware(SaleSoftware saleSoftware)
saleSoftware- Parameters:
saleSoftware-- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getSaleSoftware
public SaleSoftware getSaleSoftware()
Get saleSoftware- Returns:
- saleSoftware
-
setSaleSoftware
public void setSaleSoftware(SaleSoftware saleSoftware)
saleSoftware- Parameters:
saleSoftware-
-
saleTerminalData
public LoginRequest saleTerminalData(SaleTerminalData saleTerminalData)
saleTerminalData- Parameters:
saleTerminalData-- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getSaleTerminalData
public SaleTerminalData getSaleTerminalData()
Get saleTerminalData- Returns:
- saleTerminalData
-
setSaleTerminalData
public void setSaleTerminalData(SaleTerminalData saleTerminalData)
saleTerminalData- Parameters:
saleTerminalData-
-
trainingModeFlag
public LoginRequest trainingModeFlag(Boolean trainingModeFlag)
Training mode. This flag indicates to the POI that the entire session will be not used to make real transaction, but is used for test of system or operator training.- Parameters:
trainingModeFlag- Training mode. This flag indicates to the POI that the entire session will be not used to make real transaction, but is used for test of system or operator training.- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getTrainingModeFlag
public Boolean getTrainingModeFlag()
Training mode. This flag indicates to the POI that the entire session will be not used to make real transaction, but is used for test of system or operator training.- Returns:
- trainingModeFlag Training mode. This flag indicates to the POI that the entire session will be not used to make real transaction, but is used for test of system or operator training.
-
setTrainingModeFlag
public void setTrainingModeFlag(Boolean trainingModeFlag)
Training mode. This flag indicates to the POI that the entire session will be not used to make real transaction, but is used for test of system or operator training.- Parameters:
trainingModeFlag- Training mode. This flag indicates to the POI that the entire session will be not used to make real transaction, but is used for test of system or operator training.
-
operatorLanguage
public LoginRequest operatorLanguage(String operatorLanguage)
Language of the Cashier or Operator. Default value for Device type displays.- Parameters:
operatorLanguage- Language of the Cashier or Operator. Default value for Device type displays.- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getOperatorLanguage
public String getOperatorLanguage()
Language of the Cashier or Operator. Default value for Device type displays.- Returns:
- operatorLanguage Language of the Cashier or Operator. Default value for Device type displays.
-
setOperatorLanguage
public void setOperatorLanguage(String operatorLanguage)
Language of the Cashier or Operator. Default value for Device type displays.- Parameters:
operatorLanguage- Language of the Cashier or Operator. Default value for Device type displays.
-
operatorID
public LoginRequest operatorID(String operatorID)
Identification of the Cashier or Operator. Four conditions to send it: * The Sale System wants the POI to log it in the transaction log. * Because of reconciliation with total on OperatorID. * Because the POI needs it. * Acquirer or issuer need it.- Parameters:
operatorID- Identification of the Cashier or Operator. Four conditions to send it: * The Sale System wants the POI to log it in the transaction log. * Because of reconciliation with total on OperatorID. * Because the POI needs it. * Acquirer or issuer need it.- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getOperatorID
public String getOperatorID()
Identification of the Cashier or Operator. Four conditions to send it: * The Sale System wants the POI to log it in the transaction log. * Because of reconciliation with total on OperatorID. * Because the POI needs it. * Acquirer or issuer need it.- Returns:
- operatorID Identification of the Cashier or Operator. Four conditions to send it: * The Sale System wants the POI to log it in the transaction log. * Because of reconciliation with total on OperatorID. * Because the POI needs it. * Acquirer or issuer need it.
-
setOperatorID
public void setOperatorID(String operatorID)
Identification of the Cashier or Operator. Four conditions to send it: * The Sale System wants the POI to log it in the transaction log. * Because of reconciliation with total on OperatorID. * Because the POI needs it. * Acquirer or issuer need it.- Parameters:
operatorID- Identification of the Cashier or Operator. Four conditions to send it: * The Sale System wants the POI to log it in the transaction log. * Because of reconciliation with total on OperatorID. * Because the POI needs it. * Acquirer or issuer need it.
-
shiftNumber
public LoginRequest shiftNumber(String shiftNumber)
Shift number. Same as OperatorID.- Parameters:
shiftNumber- Shift number. Same as OperatorID.- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getShiftNumber
public String getShiftNumber()
Shift number. Same as OperatorID.- Returns:
- shiftNumber Shift number. Same as OperatorID.
-
setShiftNumber
public void setShiftNumber(String shiftNumber)
Shift number. Same as OperatorID.- Parameters:
shiftNumber- Shift number. Same as OperatorID.
-
tokenRequestedType
public LoginRequest tokenRequestedType(TokenRequestedType tokenRequestedType)
tokenRequestedType- Parameters:
tokenRequestedType-- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getTokenRequestedType
public TokenRequestedType getTokenRequestedType()
Get tokenRequestedType- Returns:
- tokenRequestedType
-
setTokenRequestedType
public void setTokenRequestedType(TokenRequestedType tokenRequestedType)
tokenRequestedType- Parameters:
tokenRequestedType-
-
customerOrderReq
public LoginRequest customerOrderReq(List<LoginRequest.CustomerOrderReqEnum> customerOrderReq)
List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**- Parameters:
customerOrderReq- List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
addCustomerOrderReqItem
public LoginRequest addCustomerOrderReqItem(LoginRequest.CustomerOrderReqEnum customerOrderReqItem)
-
getCustomerOrderReq
public List<LoginRequest.CustomerOrderReqEnum> getCustomerOrderReq()
List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**- Returns:
- customerOrderReq List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
-
setCustomerOrderReq
public void setCustomerOrderReq(List<LoginRequest.CustomerOrderReqEnum> customerOrderReq)
List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**- Parameters:
customerOrderReq- List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
-
poISerialNumber
public LoginRequest poISerialNumber(String poISerialNumber)
Serial number of a POI Terminal. If the login involve a POI Terminal and not the first Login to the POI System.- Parameters:
poISerialNumber- Serial number of a POI Terminal. If the login involve a POI Terminal and not the first Login to the POI System.- Returns:
- the current
LoginRequestinstance, allowing for method chaining
-
getPoISerialNumber
public String getPoISerialNumber()
Serial number of a POI Terminal. If the login involve a POI Terminal and not the first Login to the POI System.- Returns:
- poISerialNumber Serial number of a POI Terminal. If the login involve a POI Terminal and not the first Login to the POI System.
-
setPoISerialNumber
public void setPoISerialNumber(String poISerialNumber)
Serial number of a POI Terminal. If the login involve a POI Terminal and not the first Login to the POI System.- Parameters:
poISerialNumber- Serial number of a POI Terminal. If the login involve a POI Terminal and not the first Login to the POI System.
-
includeNullValues
public LoginRequest includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this LoginRequest object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static LoginRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LoginRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoginRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LoginRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LoginRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-