Package com.adyen.model.checkout
Class PaypalUpdateOrderRequest
- java.lang.Object
-
- com.adyen.model.checkout.PaypalUpdateOrderRequest
-
public class PaypalUpdateOrderRequest extends Object
PaypalUpdateOrderRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_DELIVERY_METHODSstatic StringJSON_PROPERTY_PAYMENT_DATAstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_SESSION_IDstatic StringJSON_PROPERTY_TAX_TOTAL
-
Constructor Summary
Constructors Constructor Description PaypalUpdateOrderRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaypalUpdateOrderRequestaddDeliveryMethodsItem(DeliveryMethod deliveryMethodsItem)PaypalUpdateOrderRequestamount(Amount amount)amountPaypalUpdateOrderRequestdeliveryMethods(List<DeliveryMethod> deliveryMethods)The list of new delivery methods and the cost of each.booleanequals(Object o)Return true if this PaypalUpdateOrderRequest object is equal to o.static PaypalUpdateOrderRequestfromJson(String jsonString)Create an instance of PaypalUpdateOrderRequest given an JSON stringAmountgetAmount()amountList<DeliveryMethod>getDeliveryMethods()The list of new delivery methods and the cost of each.StringgetPaymentData()The `paymentData` from the client side.StringgetPspReference()The original `pspReference` from the `/payments` response.StringgetSessionId()The original `sessionId` from the `/sessions` response.TaxTotalgetTaxTotal()taxTotalinthashCode()PaypalUpdateOrderRequestpaymentData(String paymentData)The `paymentData` from the client side.PaypalUpdateOrderRequestpspReference(String pspReference)The original `pspReference` from the `/payments` response.PaypalUpdateOrderRequestsessionId(String sessionId)The original `sessionId` from the `/sessions` response.voidsetAmount(Amount amount)amountvoidsetDeliveryMethods(List<DeliveryMethod> deliveryMethods)The list of new delivery methods and the cost of each.voidsetPaymentData(String paymentData)The `paymentData` from the client side.voidsetPspReference(String pspReference)The original `pspReference` from the `/payments` response.voidsetSessionId(String sessionId)The original `sessionId` from the `/sessions` response.voidsetTaxTotal(TaxTotal taxTotal)taxTotalPaypalUpdateOrderRequesttaxTotal(TaxTotal taxTotal)taxTotalStringtoJson()Convert an instance of PaypalUpdateOrderRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_METHODS
public static final String JSON_PROPERTY_DELIVERY_METHODS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_DATA
public static final String JSON_PROPERTY_PAYMENT_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SESSION_ID
public static final String JSON_PROPERTY_SESSION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_TOTAL
public static final String JSON_PROPERTY_TAX_TOTAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public PaypalUpdateOrderRequest amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
PaypalUpdateOrderRequestinstance, 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
PaypalUpdateOrderRequestinstance, allowing for method chaining
-
addDeliveryMethodsItem
public PaypalUpdateOrderRequest addDeliveryMethodsItem(DeliveryMethod deliveryMethodsItem)
-
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
PaypalUpdateOrderRequestinstance, 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
PaypalUpdateOrderRequestinstance, 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
PaypalUpdateOrderRequestinstance, 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
PaypalUpdateOrderRequestinstance, 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.
-
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
-
-