Class DeliveryMethod


  • public class DeliveryMethod
    extends Object
    DeliveryMethod
    • Constructor Detail

      • DeliveryMethod

        public DeliveryMethod()
    • Method Detail

      • amount

        public DeliveryMethod amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current DeliveryMethod instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • description

        public DeliveryMethod description​(String description)
        The name of the delivery method as shown to the shopper.
        Parameters:
        description -
        Returns:
        the current DeliveryMethod instance, allowing for method chaining
      • getDescription

        public String getDescription()
        The name of the delivery method as shown to the shopper.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        The name of the delivery method as shown to the shopper.
        Parameters:
        description -
      • reference

        public DeliveryMethod reference​(String reference)
        The reference of the delivery method.
        Parameters:
        reference -
        Returns:
        the current DeliveryMethod instance, allowing for method chaining
      • getReference

        public String getReference()
        The reference of the delivery method.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
        The reference of the delivery method.
        Parameters:
        reference -
      • selected

        public DeliveryMethod selected​(Boolean selected)
        If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time.
        Parameters:
        selected -
        Returns:
        the current DeliveryMethod instance, allowing for method chaining
      • getSelected

        public Boolean getSelected()
        If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time.
        Returns:
        selected
      • setSelected

        public void setSelected​(Boolean selected)
        If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time.
        Parameters:
        selected -
      • type

        public DeliveryMethod type​(DeliveryMethod.TypeEnum type)
        The type of the delivery method.
        Parameters:
        type -
        Returns:
        the current DeliveryMethod instance, allowing for method chaining
      • setType

        public void setType​(DeliveryMethod.TypeEnum type)
        The type of the delivery method.
        Parameters:
        type -
      • equals

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

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

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

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