Package com.adyen.model.checkout
Class PaymentCaptureResource
- java.lang.Object
-
- com.adyen.model.checkout.PaymentCaptureResource
-
public class PaymentCaptureResource extends Object
PaymentCaptureResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentCaptureResource.StatusEnumThe status of your request.
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_PAYMENT_PSP_REFERENCEstatic StringSERIALIZED_NAME_PSP_REFERENCEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SPLITSstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description PaymentCaptureResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentCaptureResourceaddLineItemsItem(LineItem lineItemsItem)PaymentCaptureResourceaddSplitsItem(Split splitsItem)PaymentCaptureResourceamount(Amount amount)booleanequals(Object o)AmountgetAmount()Get amountList<LineItem>getLineItems()Price and product information of the captured items, required for [partial captures](https://docs.adyen.com/online-payments/capture#partial-capture).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 capture.StringgetPspReference()Adyen's 16-character reference associated with the capture request.StringgetReference()Your reference for the capture request.List<Split>getSplits()An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms.PaymentCaptureResource.StatusEnumgetStatus()The status of your request.inthashCode()PaymentCaptureResourcelineItems(List<LineItem> lineItems)PaymentCaptureResourcemerchantAccount(String merchantAccount)PaymentCaptureResourcepaymentPspReference(String paymentPspReference)PaymentCaptureResourcepspReference(String pspReference)PaymentCaptureResourcereference(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(PaymentCaptureResource.StatusEnum status)PaymentCaptureResourcesplits(List<Split> splits)PaymentCaptureResourcestatus(PaymentCaptureResource.StatusEnum status)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_PAYMENT_PSP_REFERENCE
public static final String SERIALIZED_NAME_PAYMENT_PSP_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- 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
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public PaymentCaptureResource amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
lineItems
public PaymentCaptureResource lineItems(List<LineItem> lineItems)
-
addLineItemsItem
public PaymentCaptureResource addLineItemsItem(LineItem lineItemsItem)
-
getLineItems
public List<LineItem> getLineItems()
Price and product information of the captured items, required for [partial captures](https://docs.adyen.com/online-payments/capture#partial-capture). > This field is required for partial captures with 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Zip and Atome.- Returns:
- lineItems
-
merchantAccount
public PaymentCaptureResource 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 PaymentCaptureResource 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 capture.- Returns:
- paymentPspReference
-
setPaymentPspReference
public void setPaymentPspReference(String paymentPspReference)
-
pspReference
public PaymentCaptureResource pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the capture request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
reference
public PaymentCaptureResource reference(String reference)
-
getReference
public String getReference()
Your reference for the capture request.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
splits
public PaymentCaptureResource splits(List<Split> splits)
-
addSplitsItem
public PaymentCaptureResource 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 PaymentCaptureResource status(PaymentCaptureResource.StatusEnum status)
-
getStatus
public PaymentCaptureResource.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentCaptureResource.StatusEnum status)
-
-