Package com.adyen.model.checkout
Class PaymentAmountUpdateResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentAmountUpdateResponse
-
public class PaymentAmountUpdateResponse extends Object
PaymentAmountUpdateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentAmountUpdateResponse.IndustryUsageEnumThe reason for the amount update.static classPaymentAmountUpdateResponse.StatusEnumThe status of your request.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_INDUSTRY_USAGEstatic StringJSON_PROPERTY_LINE_ITEMSstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PAYMENT_PSP_REFERENCEstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SPLITSstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description PaymentAmountUpdateResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentAmountUpdateResponseaddLineItemsItem(LineItem lineItemsItem)PaymentAmountUpdateResponseaddSplitsItem(Split splitsItem)PaymentAmountUpdateResponseamount(Amount amount)amountbooleanequals(Object o)Return true if this PaymentAmountUpdateResponse object is equal to o.static PaymentAmountUpdateResponsefromJson(String jsonString)Create an instance of PaymentAmountUpdateResponse given an JSON stringAmountgetAmount()amountPaymentAmountUpdateResponse.IndustryUsageEnumgetIndustryUsage()The reason for the amount update.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).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 update.StringgetPspReference()Adyen's 16-character reference associated with the amount update request.StringgetReference()Your reference for the amount update request.List<Split>getSplits()An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms.PaymentAmountUpdateResponse.StatusEnumgetStatus()The status of your request.inthashCode()PaymentAmountUpdateResponseindustryUsage(PaymentAmountUpdateResponse.IndustryUsageEnum industryUsage)The reason for the amount update.PaymentAmountUpdateResponselineItems(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).PaymentAmountUpdateResponsemerchantAccount(String merchantAccount)The merchant account that is used to process the payment.PaymentAmountUpdateResponsepaymentPspReference(String paymentPspReference)The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to update.PaymentAmountUpdateResponsepspReference(String pspReference)Adyen's 16-character reference associated with the amount update request.PaymentAmountUpdateResponsereference(String reference)Your reference for the amount update request.voidsetAmount(Amount amount)amountvoidsetIndustryUsage(PaymentAmountUpdateResponse.IndustryUsageEnum industryUsage)The reason for the amount update.voidsetLineItems(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 update.voidsetPspReference(String pspReference)Adyen's 16-character reference associated with the amount update request.voidsetReference(String reference)Your reference for the amount update request.voidsetSplits(List<Split> splits)An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms.voidsetStatus(PaymentAmountUpdateResponse.StatusEnum status)The status of your request.PaymentAmountUpdateResponsesplits(List<Split> splits)An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms.PaymentAmountUpdateResponsestatus(PaymentAmountUpdateResponse.StatusEnum status)The status of your request.StringtoJson()Convert an instance of PaymentAmountUpdateResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INDUSTRY_USAGE
public static final String JSON_PROPERTY_INDUSTRY_USAGE
- 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_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
-
-
Method Detail
-
amount
public PaymentAmountUpdateResponse amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
industryUsage
public PaymentAmountUpdateResponse industryUsage(PaymentAmountUpdateResponse.IndustryUsageEnum industryUsage)
The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment**- Parameters:
industryUsage-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
getIndustryUsage
public PaymentAmountUpdateResponse.IndustryUsageEnum getIndustryUsage()
The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment**- Returns:
- industryUsage
-
setIndustryUsage
public void setIndustryUsage(PaymentAmountUpdateResponse.IndustryUsageEnum industryUsage)
The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment**- Parameters:
industryUsage-
-
lineItems
public PaymentAmountUpdateResponse lineItems(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-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
addLineItemsItem
public PaymentAmountUpdateResponse 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 PaymentAmountUpdateResponse merchantAccount(String merchantAccount)
The merchant account that is used to process the payment.- Parameters:
merchantAccount-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
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 PaymentAmountUpdateResponse paymentPspReference(String paymentPspReference)
The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to update.- Parameters:
paymentPspReference-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
getPaymentPspReference
public String getPaymentPspReference()
The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to update.- 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 update.- Parameters:
paymentPspReference-
-
pspReference
public PaymentAmountUpdateResponse pspReference(String pspReference)
Adyen's 16-character reference associated with the amount update request.- Parameters:
pspReference-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the amount update request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
Adyen's 16-character reference associated with the amount update request.- Parameters:
pspReference-
-
reference
public PaymentAmountUpdateResponse reference(String reference)
Your reference for the amount update request. Maximum length: 80 characters.- Parameters:
reference-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
getReference
public String getReference()
Your reference for the amount update request. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the amount update request. Maximum length: 80 characters.- Parameters:
reference-
-
splits
public PaymentAmountUpdateResponse splits(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/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments).- Parameters:
splits-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
addSplitsItem
public PaymentAmountUpdateResponse 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/process-payments) or [platforms](https://docs.adyen.com/platforms/process-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/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments).- Parameters:
splits-
-
status
public PaymentAmountUpdateResponse status(PaymentAmountUpdateResponse.StatusEnum status)
The status of your request. This will always have the value **received**.- Parameters:
status-- Returns:
- the current
PaymentAmountUpdateResponseinstance, allowing for method chaining
-
getStatus
public PaymentAmountUpdateResponse.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentAmountUpdateResponse.StatusEnum status)
The status of your request. This will always have the value **received**.- Parameters:
status-
-
equals
public boolean equals(Object o)
Return true if this PaymentAmountUpdateResponse object is equal to o.
-
fromJson
public static PaymentAmountUpdateResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentAmountUpdateResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentAmountUpdateResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentAmountUpdateResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentAmountUpdateResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-