Class CardAcquisitionResponse


  • public class CardAcquisitionResponse
    extends Object
    It conveys Information related to the payment and loyalty cards read and processed by the POI System and entered by the Customer. Content of the Card Acquisition Response message.
    • Constructor Detail

      • CardAcquisitionResponse

        public CardAcquisitionResponse()
    • Method Detail

      • response

        public CardAcquisitionResponse response​(Response response)
        response
        Parameters:
        response -
        Returns:
        the current CardAcquisitionResponse instance, allowing for method chaining
      • getResponse

        public Response getResponse()
        Get response
        Returns:
        response
      • setResponse

        public void setResponse​(Response response)
        response
        Parameters:
        response -
      • saleData

        public CardAcquisitionResponse saleData​(SaleData saleData)
        saleData
        Parameters:
        saleData -
        Returns:
        the current CardAcquisitionResponse instance, allowing for method chaining
      • getSaleData

        public SaleData getSaleData()
        Get saleData
        Returns:
        saleData
      • setSaleData

        public void setSaleData​(SaleData saleData)
        saleData
        Parameters:
        saleData -
      • poiData

        public CardAcquisitionResponse poiData​(POIData poiData)
        poiData
        Parameters:
        poiData -
        Returns:
        the current CardAcquisitionResponse instance, allowing for method chaining
      • getPoiData

        public POIData getPoiData()
        Get poiData
        Returns:
        poiData
      • setPoiData

        public void setPoiData​(POIData poiData)
        poiData
        Parameters:
        poiData -
      • paymentBrand

        public CardAcquisitionResponse paymentBrand​(List<String> paymentBrand)
        Type of payment card. Brands available for payment by the card and not chosen by the Customer.
        Parameters:
        paymentBrand - Type of payment card. Brands available for payment by the card and not chosen by the Customer.
        Returns:
        the current CardAcquisitionResponse instance, allowing for method chaining
      • getPaymentBrand

        public List<String> getPaymentBrand()
        Type of payment card. Brands available for payment by the card and not chosen by the Customer.
        Returns:
        paymentBrand Type of payment card. Brands available for payment by the card and not chosen by the Customer.
      • setPaymentBrand

        public void setPaymentBrand​(List<String> paymentBrand)
        Type of payment card. Brands available for payment by the card and not chosen by the Customer.
        Parameters:
        paymentBrand - Type of payment card. Brands available for payment by the card and not chosen by the Customer.
      • paymentInstrumentData

        public CardAcquisitionResponse paymentInstrumentData​(PaymentInstrumentData paymentInstrumentData)
        paymentInstrumentData
        Parameters:
        paymentInstrumentData -
        Returns:
        the current CardAcquisitionResponse instance, allowing for method chaining
      • getPaymentInstrumentData

        public PaymentInstrumentData getPaymentInstrumentData()
        Get paymentInstrumentData
        Returns:
        paymentInstrumentData
      • setPaymentInstrumentData

        public void setPaymentInstrumentData​(PaymentInstrumentData paymentInstrumentData)
        paymentInstrumentData
        Parameters:
        paymentInstrumentData -
      • loyaltyAccount

        public CardAcquisitionResponse loyaltyAccount​(List<LoyaltyAccount> loyaltyAccount)
        Data related to the loyalty System.
        Parameters:
        loyaltyAccount - Data related to the loyalty System.
        Returns:
        the current CardAcquisitionResponse instance, allowing for method chaining
      • getLoyaltyAccount

        public List<LoyaltyAccount> getLoyaltyAccount()
        Data related to the loyalty System.
        Returns:
        loyaltyAccount Data related to the loyalty System.
      • setLoyaltyAccount

        public void setLoyaltyAccount​(List<LoyaltyAccount> loyaltyAccount)
        Data related to the loyalty System.
        Parameters:
        loyaltyAccount - Data related to the loyalty System.
      • includeNullValues

        public CardAcquisitionResponse 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 CardAcquisitionResponse 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 CardAcquisitionResponse fromJson​(String jsonString)
                                                throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CardAcquisitionResponse given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CardAcquisitionResponse
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CardAcquisitionResponse
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CardAcquisitionResponse to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException