Package com.adyen.model.tapi
Class EnableServiceRequest
- java.lang.Object
-
- com.adyen.model.tapi.EnableServiceRequest
-
public class EnableServiceRequest extends Object
It conveys the services that will be enabled for the POI Terminal without the request of the Sale System, and a possible invitation for the Customer to start the services. Content of the Enable Service Request message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnableServiceRequest.ServicesEnabledEnumGets or Sets servicesEnabled
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DISPLAY_OUTPUTstatic StringJSON_PROPERTY_SERVICES_ENABLEDstatic StringJSON_PROPERTY_TRANSACTION_ACTION
-
Constructor Summary
Constructors Constructor Description EnableServiceRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EnableServiceRequestaddServicesEnabledItem(EnableServiceRequest.ServicesEnabledEnum servicesEnabledItem)EnableServiceRequestdisplayOutput(DisplayOutput displayOutput)displayOutputbooleanequals(Object o)Return true if this EnableServiceRequest object is equal to o.static EnableServiceRequestfromJson(String jsonString)Create an instance of EnableServiceRequest given an JSON stringDisplayOutputgetDisplayOutput()Get displayOutputMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<EnableServiceRequest.ServicesEnabledEnum>getServicesEnabled()Services which are enabled before the start-up of a transaction.TransactionActiongetTransactionAction()Get transactionActioninthashCode()EnableServiceRequestincludeNullValues(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.EnableServiceRequestservicesEnabled(List<EnableServiceRequest.ServicesEnabledEnum> servicesEnabled)Services which are enabled before the start-up of a transaction.voidsetDisplayOutput(DisplayOutput displayOutput)displayOutputvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetServicesEnabled(List<EnableServiceRequest.ServicesEnabledEnum> servicesEnabled)Services which are enabled before the start-up of a transaction.voidsetTransactionAction(TransactionAction transactionAction)transactionActionStringtoJson()Convert an instance of EnableServiceRequest to an JSON stringStringtoString()EnableServiceRequesttransactionAction(TransactionAction transactionAction)transactionAction
-
-
-
Field Detail
-
JSON_PROPERTY_TRANSACTION_ACTION
public static final String JSON_PROPERTY_TRANSACTION_ACTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SERVICES_ENABLED
public static final String JSON_PROPERTY_SERVICES_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPLAY_OUTPUT
public static final String JSON_PROPERTY_DISPLAY_OUTPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
transactionAction
public EnableServiceRequest transactionAction(TransactionAction transactionAction)
transactionAction- Parameters:
transactionAction-- Returns:
- the current
EnableServiceRequestinstance, allowing for method chaining
-
getTransactionAction
public TransactionAction getTransactionAction()
Get transactionAction- Returns:
- transactionAction
-
setTransactionAction
public void setTransactionAction(TransactionAction transactionAction)
transactionAction- Parameters:
transactionAction-
-
servicesEnabled
public EnableServiceRequest servicesEnabled(List<EnableServiceRequest.ServicesEnabledEnum> servicesEnabled)
Services which are enabled before the start-up of a transaction. Mandatory if `TransactionAction` is `StartTransaction`, absent if not. Possible values: * **CardAcquisition** * **Loyalty** * **Payment**- Parameters:
servicesEnabled- Services which are enabled before the start-up of a transaction. Mandatory if `TransactionAction` is `StartTransaction`, absent if not. Possible values: * **CardAcquisition** * **Loyalty** * **Payment**- Returns:
- the current
EnableServiceRequestinstance, allowing for method chaining
-
addServicesEnabledItem
public EnableServiceRequest addServicesEnabledItem(EnableServiceRequest.ServicesEnabledEnum servicesEnabledItem)
-
getServicesEnabled
public List<EnableServiceRequest.ServicesEnabledEnum> getServicesEnabled()
Services which are enabled before the start-up of a transaction. Mandatory if `TransactionAction` is `StartTransaction`, absent if not. Possible values: * **CardAcquisition** * **Loyalty** * **Payment**- Returns:
- servicesEnabled Services which are enabled before the start-up of a transaction. Mandatory if `TransactionAction` is `StartTransaction`, absent if not. Possible values: * **CardAcquisition** * **Loyalty** * **Payment**
-
setServicesEnabled
public void setServicesEnabled(List<EnableServiceRequest.ServicesEnabledEnum> servicesEnabled)
Services which are enabled before the start-up of a transaction. Mandatory if `TransactionAction` is `StartTransaction`, absent if not. Possible values: * **CardAcquisition** * **Loyalty** * **Payment**- Parameters:
servicesEnabled- Services which are enabled before the start-up of a transaction. Mandatory if `TransactionAction` is `StartTransaction`, absent if not. Possible values: * **CardAcquisition** * **Loyalty** * **Payment**
-
displayOutput
public EnableServiceRequest displayOutput(DisplayOutput displayOutput)
displayOutput- Parameters:
displayOutput-- Returns:
- the current
EnableServiceRequestinstance, allowing for method chaining
-
getDisplayOutput
public DisplayOutput getDisplayOutput()
Get displayOutput- Returns:
- displayOutput
-
setDisplayOutput
public void setDisplayOutput(DisplayOutput displayOutput)
displayOutput- Parameters:
displayOutput-
-
includeNullValues
public EnableServiceRequest 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 EnableServiceRequest 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 EnableServiceRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of EnableServiceRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EnableServiceRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to EnableServiceRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of EnableServiceRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-