Package com.adyen.model.checkout
Class CreatePaymentCaptureRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreatePaymentCaptureRequest
-
public class CreatePaymentCaptureRequest extends Object
CreatePaymentCaptureRequest
-
-
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 CreatePaymentCaptureRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePaymentCaptureRequestaddLineItemsItem(LineItem lineItemsItem)CreatePaymentCaptureRequestaddSplitsItem(Split splitsItem)CreatePaymentCaptureRequestamount(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.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.inthashCode()CreatePaymentCaptureRequestlineItems(List<LineItem> lineItems)CreatePaymentCaptureRequestmerchantAccount(String merchantAccount)CreatePaymentCaptureRequestreference(String reference)voidsetAmount(Amount amount)voidsetLineItems(List<LineItem> lineItems)voidsetMerchantAccount(String merchantAccount)voidsetReference(String reference)voidsetSplits(List<Split> splits)CreatePaymentCaptureRequestsplits(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 CreatePaymentCaptureRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
lineItems
public CreatePaymentCaptureRequest lineItems(List<LineItem> lineItems)
-
addLineItemsItem
public CreatePaymentCaptureRequest 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 CreatePaymentCaptureRequest 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 CreatePaymentCaptureRequest reference(String reference)
-
getReference
public String getReference()
Your reference for the capture request. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
splits
public CreatePaymentCaptureRequest splits(List<Split> splits)
-
addSplitsItem
public CreatePaymentCaptureRequest 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
-
-