Class DeliveryMethod


  • public class DeliveryMethod
    extends Object
    DeliveryMethod
    • Constructor Detail

      • DeliveryMethod

        public DeliveryMethod()
    • Method Detail

      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • 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 -
      • 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 -
      • 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 -
      • 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