Class PaymentMethodResponse


  • public class PaymentMethodResponse
    extends Object
    PaymentMethodResponse
    • Constructor Detail

      • PaymentMethodResponse

        public PaymentMethodResponse()
    • Method Detail

      • setLinks

        public void setLinks​(PaginationLinks links)
        links
        Parameters:
        links -
      • data

        public PaymentMethodResponse data​(List<PaymentMethod> data)
        The list of supported payment methods and their details.
        Parameters:
        data - The list of supported payment methods and their details.
        Returns:
        the current PaymentMethodResponse instance, allowing for method chaining
      • getData

        public List<PaymentMethod> getData()
        The list of supported payment methods and their details.
        Returns:
        data The list of supported payment methods and their details.
      • setData

        public void setData​(List<PaymentMethod> data)
        The list of supported payment methods and their details.
        Parameters:
        data - The list of supported payment methods and their details.
      • itemsTotal

        public PaymentMethodResponse itemsTotal​(Integer itemsTotal)
        Total number of items.
        Parameters:
        itemsTotal - Total number of items.
        Returns:
        the current PaymentMethodResponse instance, allowing for method chaining
      • getItemsTotal

        public Integer getItemsTotal()
        Total number of items.
        Returns:
        itemsTotal Total number of items.
      • setItemsTotal

        public void setItemsTotal​(Integer itemsTotal)
        Total number of items.
        Parameters:
        itemsTotal - Total number of items.
      • pagesTotal

        public PaymentMethodResponse pagesTotal​(Integer pagesTotal)
        Total number of pages.
        Parameters:
        pagesTotal - Total number of pages.
        Returns:
        the current PaymentMethodResponse instance, allowing for method chaining
      • getPagesTotal

        public Integer getPagesTotal()
        Total number of pages.
        Returns:
        pagesTotal Total number of pages.
      • setPagesTotal

        public void setPagesTotal​(Integer pagesTotal)
        Total number of pages.
        Parameters:
        pagesTotal - Total number of pages.
      • typesWithErrors

        public PaymentMethodResponse typesWithErrors​(List<PaymentMethodResponse.TypesWithErrorsEnum> typesWithErrors)
        The payment method types that were not successfully requested and their corresponding errors.
        Parameters:
        typesWithErrors - The payment method types that were not successfully requested and their corresponding errors.
        Returns:
        the current PaymentMethodResponse instance, allowing for method chaining
      • getTypesWithErrors

        public List<PaymentMethodResponse.TypesWithErrorsEnum> getTypesWithErrors()
        The payment method types that were not successfully requested and their corresponding errors.
        Returns:
        typesWithErrors The payment method types that were not successfully requested and their corresponding errors.
      • setTypesWithErrors

        public void setTypesWithErrors​(List<PaymentMethodResponse.TypesWithErrorsEnum> typesWithErrors)
        The payment method types that were not successfully requested and their corresponding errors.
        Parameters:
        typesWithErrors - The payment method types that were not successfully requested and their corresponding errors.
      • equals

        public boolean equals​(Object o)
        Return true if this PaymentMethodResponse object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static PaymentMethodResponse fromJson​(String jsonString)
                                              throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PaymentMethodResponse given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PaymentMethodResponse
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PaymentMethodResponse
      • toJson

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