Class PaypalUpdateOrderRequest


  • public class PaypalUpdateOrderRequest
    extends Object
    PaypalUpdateOrderRequest
    • Constructor Detail

      • PaypalUpdateOrderRequest

        public PaypalUpdateOrderRequest()
    • Method Detail

      • amount

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

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

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

        public PaypalUpdateOrderRequest deliveryMethods​(List<DeliveryMethod> deliveryMethods)
        The list of new delivery methods and the cost of each.
        Parameters:
        deliveryMethods -
        Returns:
        the current PaypalUpdateOrderRequest instance, allowing for method chaining
      • getDeliveryMethods

        public List<DeliveryMethod> getDeliveryMethods()
        The list of new delivery methods and the cost of each.
        Returns:
        deliveryMethods
      • setDeliveryMethods

        public void setDeliveryMethods​(List<DeliveryMethod> deliveryMethods)
        The list of new delivery methods and the cost of each.
        Parameters:
        deliveryMethods -
      • paymentData

        public PaypalUpdateOrderRequest paymentData​(String paymentData)
        The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request.
        Parameters:
        paymentData -
        Returns:
        the current PaypalUpdateOrderRequest instance, allowing for method chaining
      • getPaymentData

        public String getPaymentData()
        The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request.
        Returns:
        paymentData
      • setPaymentData

        public void setPaymentData​(String paymentData)
        The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request.
        Parameters:
        paymentData -
      • pspReference

        public PaypalUpdateOrderRequest pspReference​(String pspReference)
        The original `pspReference` from the `/payments` response.
        Parameters:
        pspReference -
        Returns:
        the current PaypalUpdateOrderRequest instance, allowing for method chaining
      • getPspReference

        public String getPspReference()
        The original `pspReference` from the `/payments` response.
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
        The original `pspReference` from the `/payments` response.
        Parameters:
        pspReference -
      • sessionId

        public PaypalUpdateOrderRequest sessionId​(String sessionId)
        The original `sessionId` from the `/sessions` response.
        Parameters:
        sessionId -
        Returns:
        the current PaypalUpdateOrderRequest instance, allowing for method chaining
      • getSessionId

        public String getSessionId()
        The original `sessionId` from the `/sessions` response.
        Returns:
        sessionId
      • setSessionId

        public void setSessionId​(String sessionId)
        The original `sessionId` from the `/sessions` response.
        Parameters:
        sessionId -
      • taxTotal

        public PaypalUpdateOrderRequest taxTotal​(TaxTotal taxTotal)
        taxTotal
        Parameters:
        taxTotal -
        Returns:
        the current PaypalUpdateOrderRequest instance, allowing for method chaining
      • getTaxTotal

        public TaxTotal getTaxTotal()
        taxTotal
        Returns:
        taxTotal
      • setTaxTotal

        public void setTaxTotal​(TaxTotal taxTotal)
        taxTotal
        Parameters:
        taxTotal -
      • equals

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

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

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

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