Package com.adyen.model.checkout
Class PaymentCaptureResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentCaptureResponse
-
public class PaymentCaptureResponse extends Object
PaymentCaptureResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentCaptureResponse.StatusEnumThe status of your request.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_LINE_ITEMSstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PAYMENT_PSP_REFERENCEstatic StringJSON_PROPERTY_PLATFORM_CHARGEBACK_LOGICstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SPLITSstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_SUB_MERCHANTS
-
Constructor Summary
Constructors Constructor Description PaymentCaptureResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentCaptureResponseaddLineItemsItem(LineItem lineItemsItem)PaymentCaptureResponseaddSplitsItem(Split splitsItem)PaymentCaptureResponseaddSubMerchantsItem(SubMerchantInfo subMerchantsItem)PaymentCaptureResponseamount(Amount amount)booleanequals(Object o)Return true if this PaymentCaptureResponse object is equal to o.static PaymentCaptureResponsefromJson(String jsonString)Create an instance of PaymentCaptureResponse given an JSON stringAmountgetAmount()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 capture.PlatformChargebackLogicgetPlatformChargebackLogic()Get platformChargebackLogicStringgetPspReference()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.PaymentCaptureResponse.StatusEnumgetStatus()The status of your request.List<SubMerchantInfo>getSubMerchants()List of sub-merchants.inthashCode()PaymentCaptureResponselineItems(List<LineItem> lineItems)PaymentCaptureResponsemerchantAccount(String merchantAccount)PaymentCaptureResponsepaymentPspReference(String paymentPspReference)PaymentCaptureResponseplatformChargebackLogic(PlatformChargebackLogic platformChargebackLogic)PaymentCaptureResponsepspReference(String pspReference)PaymentCaptureResponsereference(String reference)voidsetAmount(Amount amount)amountvoidsetLineItems(List<LineItem> lineItems)Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment).voidsetMerchantAccount(String merchantAccount)The merchant account that is used to process the payment.voidsetPaymentPspReference(String paymentPspReference)The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to capture.voidsetPlatformChargebackLogic(PlatformChargebackLogic platformChargebackLogic)platformChargebackLogicvoidsetPspReference(String pspReference)Adyen's 16-character reference associated with the capture request.voidsetReference(String reference)Your reference for the capture request.voidsetSplits(List<Split> splits)An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms.voidsetStatus(PaymentCaptureResponse.StatusEnum status)The status of your request.voidsetSubMerchants(List<SubMerchantInfo> subMerchants)List of sub-merchants.PaymentCaptureResponsesplits(List<Split> splits)PaymentCaptureResponsestatus(PaymentCaptureResponse.StatusEnum status)PaymentCaptureResponsesubMerchants(List<SubMerchantInfo> subMerchants)StringtoJson()Convert an instance of PaymentCaptureResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE_ITEMS
public static final String JSON_PROPERTY_LINE_ITEMS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_PSP_REFERENCE
public static final String JSON_PROPERTY_PAYMENT_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC
public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLITS
public static final String JSON_PROPERTY_SPLITS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANTS
public static final String JSON_PROPERTY_SUB_MERCHANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public PaymentCaptureResponse amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
lineItems
public PaymentCaptureResponse lineItems(List<LineItem> lineItems)
-
addLineItemsItem
public PaymentCaptureResponse 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, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip.- Returns:
- lineItems
-
setLineItems
public void setLineItems(List<LineItem> lineItems)
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, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip.- Parameters:
lineItems-
-
merchantAccount
public PaymentCaptureResponse 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)
The merchant account that is used to process the payment.- Parameters:
merchantAccount-
-
paymentPspReference
public PaymentCaptureResponse 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)
The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to capture.- Parameters:
paymentPspReference-
-
platformChargebackLogic
public PaymentCaptureResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic)
-
getPlatformChargebackLogic
public PlatformChargebackLogic getPlatformChargebackLogic()
Get platformChargebackLogic- Returns:
- platformChargebackLogic
-
setPlatformChargebackLogic
public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebackLogic)
platformChargebackLogic- Parameters:
platformChargebackLogic-
-
pspReference
public PaymentCaptureResponse 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)
Adyen's 16-character reference associated with the capture request.- Parameters:
pspReference-
-
reference
public PaymentCaptureResponse reference(String reference)
-
getReference
public String getReference()
Your reference for the capture request.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the capture request.- Parameters:
reference-
-
splits
public PaymentCaptureResponse splits(List<Split> splits)
-
addSplitsItem
public PaymentCaptureResponse 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 more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/).- Returns:
- splits
-
setSplits
public void setSplits(List<Split> splits)
An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms](https://docs.adyen.com/platforms/online-payments/split-payments/).- Parameters:
splits-
-
status
public PaymentCaptureResponse status(PaymentCaptureResponse.StatusEnum status)
-
getStatus
public PaymentCaptureResponse.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentCaptureResponse.StatusEnum status)
The status of your request. This will always have the value **received**.- Parameters:
status-
-
subMerchants
public PaymentCaptureResponse subMerchants(List<SubMerchantInfo> subMerchants)
-
addSubMerchantsItem
public PaymentCaptureResponse addSubMerchantsItem(SubMerchantInfo subMerchantsItem)
-
getSubMerchants
public List<SubMerchantInfo> getSubMerchants()
List of sub-merchants.- Returns:
- subMerchants
-
setSubMerchants
public void setSubMerchants(List<SubMerchantInfo> subMerchants)
List of sub-merchants.- Parameters:
subMerchants-
-
equals
public boolean equals(Object o)
Return true if this PaymentCaptureResponse object is equal to o.
-
fromJson
public static PaymentCaptureResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentCaptureResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentCaptureResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentCaptureResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentCaptureResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-