Package com.adyen.model.tapi
Class SaleData
- java.lang.Object
-
- com.adyen.model.tapi.SaleData
-
public class SaleData extends Object
Data associated with the Sale System, with a particular value during the processing of the payment by the POI, including the cards acquisition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSaleData.CustomerOrderReqEnumGets or Sets customerOrderReq
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CUSTOMER_ORDER_I_Dstatic StringJSON_PROPERTY_CUSTOMER_ORDER_REQstatic StringJSON_PROPERTY_OPERATOR_I_Dstatic StringJSON_PROPERTY_OPERATOR_LANGUAGEstatic StringJSON_PROPERTY_SALE_REFERENCE_I_Dstatic StringJSON_PROPERTY_SALE_TERMINAL_DATAstatic StringJSON_PROPERTY_SALE_TO_ACQUIRER_DATAstatic StringJSON_PROPERTY_SALE_TO_ISSUER_DATAstatic StringJSON_PROPERTY_SALE_TO_P_O_I_DATAstatic StringJSON_PROPERTY_SALE_TRANSACTION_I_Dstatic StringJSON_PROPERTY_SHIFT_NUMBERstatic StringJSON_PROPERTY_TOKEN_REQUESTED_TYPE
-
Constructor Summary
Constructors Constructor Description SaleData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SaleDataaddCustomerOrderReqItem(SaleData.CustomerOrderReqEnum customerOrderReqItem)SaleDatacustomerOrderID(String customerOrderID)Additional and optional identification of a customer order.SaleDatacustomerOrderReq(List<SaleData.CustomerOrderReqEnum> customerOrderReq)List of customer order open, closed or both to be sent in the response messages.booleanequals(Object o)Return true if this SaleData object is equal to o.static SaleDatafromJson(String jsonString)Create an instance of SaleData given an JSON stringStringgetCustomerOrderID()Additional and optional identification of a customer order.List<SaleData.CustomerOrderReqEnum>getCustomerOrderReq()List of customer order open, closed or both to be sent in the response messages.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.StringgetSaleReferenceID()Identification of a Sale global transaction for a sequence of related POI transactions.SaleTerminalDatagetSaleTerminalData()Get saleTerminalDataStringgetSaleToAcquirerData()Sale information intended for the Acquirer.SaleToIssuerDatagetSaleToIssuerData()Get saleToIssuerDataStringgetSaleToPOIData()Sale information intended for the POI.TransactionIDTypegetSaleTransactionID()Get saleTransactionIDStringgetShiftNumber()Shift number.TokenRequestedTypegetTokenRequestedType()Get tokenRequestedTypeinthashCode()SaleDataincludeNullValues(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.SaleDataoperatorID(String operatorID)Identification of the Cashier or Operator.SaleDataoperatorLanguage(String operatorLanguage)Language of the Cashier or Operator.SaleDatasaleReferenceID(String saleReferenceID)Identification of a Sale global transaction for a sequence of related POI transactions.SaleDatasaleTerminalData(SaleTerminalData saleTerminalData)saleTerminalDataSaleDatasaleToAcquirerData(String saleToAcquirerData)Sale information intended for the Acquirer.SaleDatasaleToIssuerData(SaleToIssuerData saleToIssuerData)saleToIssuerDataSaleDatasaleToPOIData(String saleToPOIData)Sale information intended for the POI.SaleDatasaleTransactionID(TransactionIDType saleTransactionID)saleTransactionIDvoidsetCustomerOrderID(String customerOrderID)Additional and optional identification of a customer order.voidsetCustomerOrderReq(List<SaleData.CustomerOrderReqEnum> customerOrderReq)List of customer order open, closed or both to be sent in the response messages.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.voidsetSaleReferenceID(String saleReferenceID)Identification of a Sale global transaction for a sequence of related POI transactions.voidsetSaleTerminalData(SaleTerminalData saleTerminalData)saleTerminalDatavoidsetSaleToAcquirerData(String saleToAcquirerData)Sale information intended for the Acquirer.voidsetSaleToIssuerData(SaleToIssuerData saleToIssuerData)saleToIssuerDatavoidsetSaleToPOIData(String saleToPOIData)Sale information intended for the POI.voidsetSaleTransactionID(TransactionIDType saleTransactionID)saleTransactionIDvoidsetShiftNumber(String shiftNumber)Shift number.voidsetTokenRequestedType(TokenRequestedType tokenRequestedType)tokenRequestedTypeSaleDatashiftNumber(String shiftNumber)Shift number.StringtoJson()Convert an instance of SaleData to an JSON stringSaleDatatokenRequestedType(TokenRequestedType tokenRequestedType)tokenRequestedTypeStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_OPERATOR_I_D
public static final String JSON_PROPERTY_OPERATOR_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPERATOR_LANGUAGE
public static final String JSON_PROPERTY_OPERATOR_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHIFT_NUMBER
public static final String JSON_PROPERTY_SHIFT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_TRANSACTION_I_D
public static final String JSON_PROPERTY_SALE_TRANSACTION_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_REFERENCE_I_D
public static final String JSON_PROPERTY_SALE_REFERENCE_I_D
- 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_TOKEN_REQUESTED_TYPE
public static final String JSON_PROPERTY_TOKEN_REQUESTED_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOMER_ORDER_I_D
public static final String JSON_PROPERTY_CUSTOMER_ORDER_I_D
- 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_SALE_TO_P_O_I_DATA
public static final String JSON_PROPERTY_SALE_TO_P_O_I_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_TO_ACQUIRER_DATA
public static final String JSON_PROPERTY_SALE_TO_ACQUIRER_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_TO_ISSUER_DATA
public static final String JSON_PROPERTY_SALE_TO_ISSUER_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
operatorID
public SaleData operatorID(String operatorID)
Identification of the Cashier or Operator.- Parameters:
operatorID- Identification of the Cashier or Operator.- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getOperatorID
public String getOperatorID()
Identification of the Cashier or Operator.- Returns:
- operatorID Identification of the Cashier or Operator.
-
setOperatorID
public void setOperatorID(String operatorID)
Identification of the Cashier or Operator.- Parameters:
operatorID- Identification of the Cashier or Operator.
-
operatorLanguage
public SaleData operatorLanguage(String operatorLanguage)
Language of the Cashier or Operator. If different from the Login.- Parameters:
operatorLanguage- Language of the Cashier or Operator. If different from the Login.- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getOperatorLanguage
public String getOperatorLanguage()
Language of the Cashier or Operator. If different from the Login.- Returns:
- operatorLanguage Language of the Cashier or Operator. If different from the Login.
-
setOperatorLanguage
public void setOperatorLanguage(String operatorLanguage)
Language of the Cashier or Operator. If different from the Login.- Parameters:
operatorLanguage- Language of the Cashier or Operator. If different from the Login.
-
shiftNumber
public SaleData shiftNumber(String shiftNumber)
Shift number. If different from the Login, see Login SaleData.- Parameters:
shiftNumber- Shift number. If different from the Login, see Login SaleData.- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getShiftNumber
public String getShiftNumber()
Shift number. If different from the Login, see Login SaleData.- Returns:
- shiftNumber Shift number. If different from the Login, see Login SaleData.
-
setShiftNumber
public void setShiftNumber(String shiftNumber)
Shift number. If different from the Login, see Login SaleData.- Parameters:
shiftNumber- Shift number. If different from the Login, see Login SaleData.
-
saleTransactionID
public SaleData saleTransactionID(TransactionIDType saleTransactionID)
saleTransactionID- Parameters:
saleTransactionID-- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getSaleTransactionID
public TransactionIDType getSaleTransactionID()
Get saleTransactionID- Returns:
- saleTransactionID
-
setSaleTransactionID
public void setSaleTransactionID(TransactionIDType saleTransactionID)
saleTransactionID- Parameters:
saleTransactionID-
-
saleReferenceID
public SaleData saleReferenceID(String saleReferenceID)
Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.- Parameters:
saleReferenceID- Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getSaleReferenceID
public String getSaleReferenceID()
Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.- Returns:
- saleReferenceID Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
-
setSaleReferenceID
public void setSaleReferenceID(String saleReferenceID)
Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.- Parameters:
saleReferenceID- Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
-
saleTerminalData
public SaleData saleTerminalData(SaleTerminalData saleTerminalData)
saleTerminalData- Parameters:
saleTerminalData-- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getSaleTerminalData
public SaleTerminalData getSaleTerminalData()
Get saleTerminalData- Returns:
- saleTerminalData
-
setSaleTerminalData
public void setSaleTerminalData(SaleTerminalData saleTerminalData)
saleTerminalData- Parameters:
saleTerminalData-
-
tokenRequestedType
public SaleData tokenRequestedType(TokenRequestedType tokenRequestedType)
tokenRequestedType- Parameters:
tokenRequestedType-- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getTokenRequestedType
public TokenRequestedType getTokenRequestedType()
Get tokenRequestedType- Returns:
- tokenRequestedType
-
setTokenRequestedType
public void setTokenRequestedType(TokenRequestedType tokenRequestedType)
tokenRequestedType- Parameters:
tokenRequestedType-
-
customerOrderID
public SaleData customerOrderID(String customerOrderID)
Additional and optional identification of a customer order.- Parameters:
customerOrderID- Additional and optional identification of a customer order.- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getCustomerOrderID
public String getCustomerOrderID()
Additional and optional identification of a customer order.- Returns:
- customerOrderID Additional and optional identification of a customer order.
-
setCustomerOrderID
public void setCustomerOrderID(String customerOrderID)
Additional and optional identification of a customer order.- Parameters:
customerOrderID- Additional and optional identification of a customer order.
-
customerOrderReq
public SaleData customerOrderReq(List<SaleData.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
SaleDatainstance, allowing for method chaining
-
addCustomerOrderReqItem
public SaleData addCustomerOrderReqItem(SaleData.CustomerOrderReqEnum customerOrderReqItem)
-
getCustomerOrderReq
public List<SaleData.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<SaleData.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**
-
saleToPOIData
public SaleData saleToPOIData(String saleToPOIData)
Sale information intended for the POI. Stored with the transaction.- Parameters:
saleToPOIData- Sale information intended for the POI. Stored with the transaction.- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getSaleToPOIData
public String getSaleToPOIData()
Sale information intended for the POI. Stored with the transaction.- Returns:
- saleToPOIData Sale information intended for the POI. Stored with the transaction.
-
setSaleToPOIData
public void setSaleToPOIData(String saleToPOIData)
Sale information intended for the POI. Stored with the transaction.- Parameters:
saleToPOIData- Sale information intended for the POI. Stored with the transaction.
-
saleToAcquirerData
public SaleData saleToAcquirerData(String saleToAcquirerData)
Sale information intended for the Acquirer. Send to the Acquirer if present.- Parameters:
saleToAcquirerData- Sale information intended for the Acquirer. Send to the Acquirer if present.- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getSaleToAcquirerData
public String getSaleToAcquirerData()
Sale information intended for the Acquirer. Send to the Acquirer if present.- Returns:
- saleToAcquirerData Sale information intended for the Acquirer. Send to the Acquirer if present.
-
setSaleToAcquirerData
public void setSaleToAcquirerData(String saleToAcquirerData)
Sale information intended for the Acquirer. Send to the Acquirer if present.- Parameters:
saleToAcquirerData- Sale information intended for the Acquirer. Send to the Acquirer if present.
-
saleToIssuerData
public SaleData saleToIssuerData(SaleToIssuerData saleToIssuerData)
saleToIssuerData- Parameters:
saleToIssuerData-- Returns:
- the current
SaleDatainstance, allowing for method chaining
-
getSaleToIssuerData
public SaleToIssuerData getSaleToIssuerData()
Get saleToIssuerData- Returns:
- saleToIssuerData
-
setSaleToIssuerData
public void setSaleToIssuerData(SaleToIssuerData saleToIssuerData)
saleToIssuerData- Parameters:
saleToIssuerData-
-
includeNullValues
public SaleData 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 SaleData 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 SaleData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SaleData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SaleData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SaleData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SaleData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-