Class 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.
    • Constructor Detail

      • EnableServiceRequest

        public EnableServiceRequest()
    • Method Detail

      • transactionAction

        public EnableServiceRequest transactionAction​(TransactionAction transactionAction)
        transactionAction
        Parameters:
        transactionAction -
        Returns:
        the current EnableServiceRequest instance, 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 EnableServiceRequest instance, allowing for method chaining
      • 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 EnableServiceRequest instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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