Package com.adyen.model.checkout
Class PaymentRefundResource
- java.lang.Object
-
- com.adyen.model.checkout.PaymentRefundResource
-
public class PaymentRefundResource extends Object
PaymentRefundResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentRefundResource.StatusEnumThe status of your request.
-
Constructor Summary
Constructors Constructor Description PaymentRefundResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentRefundResourceaddLineItemsItem(LineItem lineItemsItem)PaymentRefundResourceaddSplitsItem(Split splitsItem)PaymentRefundResourceamount(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.StringgetPaymentPspReference()The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to refund.StringgetPspReference()Adyen's 16-character reference associated with the refund request.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.PaymentRefundResource.StatusEnumgetStatus()The status of your request.inthashCode()PaymentRefundResourcelineItems(List<LineItem> lineItems)PaymentRefundResourcemerchantAccount(String merchantAccount)PaymentRefundResourcepaymentPspReference(String paymentPspReference)PaymentRefundResourcepspReference(String pspReference)PaymentRefundResourcereference(String reference)voidsetAmount(Amount amount)voidsetLineItems(List<LineItem> lineItems)voidsetMerchantAccount(String merchantAccount)voidsetPaymentPspReference(String paymentPspReference)voidsetPspReference(String pspReference)voidsetReference(String reference)voidsetSplits(List<Split> splits)voidsetStatus(PaymentRefundResource.StatusEnum status)PaymentRefundResourcesplits(List<Split> splits)PaymentRefundResourcestatus(PaymentRefundResource.StatusEnum status)StringtoString()
-
-
-
Method Detail
-
amount
public PaymentRefundResource amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
lineItems
public PaymentRefundResource lineItems(List<LineItem> lineItems)
-
addLineItemsItem
public PaymentRefundResource 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 PaymentRefundResource 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)
-
paymentPspReference
public PaymentRefundResource paymentPspReference(String paymentPspReference)
-
getPaymentPspReference
public String getPaymentPspReference()
The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to refund.- Returns:
- paymentPspReference
-
setPaymentPspReference
public void setPaymentPspReference(String paymentPspReference)
-
pspReference
public PaymentRefundResource pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the refund request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
reference
public PaymentRefundResource reference(String reference)
-
getReference
public String getReference()
Your reference for the refund request.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
splits
public PaymentRefundResource splits(List<Split> splits)
-
addSplitsItem
public PaymentRefundResource 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
-
status
public PaymentRefundResource status(PaymentRefundResource.StatusEnum status)
-
getStatus
public PaymentRefundResource.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentRefundResource.StatusEnum status)
-
-