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()Get amountList<DeliveryMethod>getDeliveryMethods()The list of new delivery methods and the cost of each.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPaymentData()The `paymentData` from the client side.StringgetPspReference()The original `pspReference` from the `/payments` response.StringgetSessionId()The original `sessionId` from the `/sessions` response.TaxTotalgetTaxTotal()Get taxTotalinthashCode()PaypalUpdateOrderRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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()
Get 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- The list of new delivery methods and the cost of each.- 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 The list of new delivery methods and the cost of each.
-
setDeliveryMethods
public void setDeliveryMethods(List<DeliveryMethod> deliveryMethods)
The list of new delivery methods and the cost of each.- Parameters:
deliveryMethods- The list of new delivery methods and the cost of each.
-
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- The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request.- 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 The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request.
-
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- The `paymentData` from the client side. This value changes every time you make a `/paypal/updateOrder` request.
-
pspReference
public PaypalUpdateOrderRequest pspReference(String pspReference)
The original `pspReference` from the `/payments` response.- Parameters:
pspReference- The original `pspReference` from the `/payments` response.- Returns:
- the current
PaypalUpdateOrderRequestinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
The original `pspReference` from the `/payments` response.- Returns:
- pspReference The original `pspReference` from the `/payments` response.
-
setPspReference
public void setPspReference(String pspReference)
The original `pspReference` from the `/payments` response.- Parameters:
pspReference- The original `pspReference` from the `/payments` response.
-
sessionId
public PaypalUpdateOrderRequest sessionId(String sessionId)
The original `sessionId` from the `/sessions` response.- Parameters:
sessionId- The original `sessionId` from the `/sessions` response.- Returns:
- the current
PaypalUpdateOrderRequestinstance, allowing for method chaining
-
getSessionId
public String getSessionId()
The original `sessionId` from the `/sessions` response.- Returns:
- sessionId The original `sessionId` from the `/sessions` response.
-
setSessionId
public void setSessionId(String sessionId)
The original `sessionId` from the `/sessions` response.- Parameters:
sessionId- The original `sessionId` from the `/sessions` response.
-
taxTotal
public PaypalUpdateOrderRequest taxTotal(TaxTotal taxTotal)
taxTotal- Parameters:
taxTotal-- Returns:
- the current
PaypalUpdateOrderRequestinstance, allowing for method chaining
-
getTaxTotal
public TaxTotal getTaxTotal()
Get taxTotal- Returns:
- taxTotal
-
setTaxTotal
public void setTaxTotal(TaxTotal taxTotal)
taxTotal- Parameters:
taxTotal-
-
includeNullValues
public PaypalUpdateOrderRequest includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaypalUpdateOrderRequest object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-