Package com.adyen.model.checkout
Class CreatePaymentRefundRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreatePaymentRefundRequest
-
public class CreatePaymentRefundRequest extends Object
CreatePaymentRefundRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SPLITS
-
Constructor Summary
Constructors Constructor Description CreatePaymentRefundRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePaymentRefundRequestaddLineItemsItem(LineItem lineItemsItem)CreatePaymentRefundRequestaddSplitsItem(Split splitsItem)CreatePaymentRefundRequestamount(Amount amount)booleanequals(Object o)AmountgetAmount()Get amountList<LineItem>getLineItems()Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment).StringgetMerchantAccount()The merchant account that is used to process the payment.StringgetReference()Your reference for the refund request.List<Split>getSplits()An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms.inthashCode()CreatePaymentRefundRequestmerchantAccount(String merchantAccount)CreatePaymentRefundRequestreference(String reference)voidsetAmount(Amount amount)voidsetLineItems(List<LineItem> lineItems)voidsetMerchantAccount(String merchantAccount)voidsetReference(String reference)voidsetSplits(List<Split> splits)CreatePaymentRefundRequestsplits(List<Split> splits)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SPLITS
public static final String SERIALIZED_NAME_SPLITS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CreatePaymentRefundRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
addLineItemsItem
public CreatePaymentRefundRequest addLineItemsItem(LineItem lineItemsItem)
-
getLineItems
public List<LineItem> getLineItems()
Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Zip and Atome.- Returns:
- lineItems
-
merchantAccount
public CreatePaymentRefundRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account that is used to process the payment.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
reference
public CreatePaymentRefundRequest reference(String reference)
-
getReference
public String getReference()
Your reference for the refund request. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
splits
public CreatePaymentRefundRequest splits(List<Split> splits)
-
addSplitsItem
public CreatePaymentRefundRequest addSplitsItem(Split splitsItem)
-
getSplits
public List<Split> getSplits()
An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information).- Returns:
- splits
-
-