Class ResponsePaymentMethod


  • public class ResponsePaymentMethod
    extends Object
    ResponsePaymentMethod
    • Constructor Detail

      • ResponsePaymentMethod

        public ResponsePaymentMethod()
    • Method Detail

      • brand

        public ResponsePaymentMethod brand​(String brand)
        The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.
        Parameters:
        brand -
        Returns:
        the current ResponsePaymentMethod instance, allowing for method chaining
      • getBrand

        public String getBrand()
        The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.
        Returns:
        brand
      • setBrand

        public void setBrand​(String brand)
        The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.
        Parameters:
        brand -
      • type

        public ResponsePaymentMethod type​(String type)
        The `paymentMethod.type` value used in the request.
        Parameters:
        type -
        Returns:
        the current ResponsePaymentMethod instance, allowing for method chaining
      • getType

        public String getType()
        The `paymentMethod.type` value used in the request.
        Returns:
        type
      • setType

        public void setType​(String type)
        The `paymentMethod.type` value used in the request.
        Parameters:
        type -
      • equals

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

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

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

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