Package com.adyen.model.checkout
Class PaymentAmountUpdateResource
- java.lang.Object
-
- com.adyen.model.checkout.PaymentAmountUpdateResource
-
public class PaymentAmountUpdateResource extends Object
PaymentAmountUpdateResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentAmountUpdateResource.ReasonEnumThe reason for the amount update.static classPaymentAmountUpdateResource.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_REASONstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SPLITSstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description PaymentAmountUpdateResource()
-
Method Summary
-
-
-
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_REASON
public static final String SERIALIZED_NAME_REASON
- 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 PaymentAmountUpdateResource amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
merchantAccount
public PaymentAmountUpdateResource 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 PaymentAmountUpdateResource 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 update.- Returns:
- paymentPspReference
-
setPaymentPspReference
public void setPaymentPspReference(String paymentPspReference)
-
pspReference
public PaymentAmountUpdateResource pspReference(String pspReference)
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the amount update request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
reason
public PaymentAmountUpdateResource reason(PaymentAmountUpdateResource.ReasonEnum reason)
-
getReason
public PaymentAmountUpdateResource.ReasonEnum getReason()
The reason for the amount update. Possible values: * **DelayedCharge** * **NoShow**- Returns:
- reason
-
setReason
public void setReason(PaymentAmountUpdateResource.ReasonEnum reason)
-
reference
public PaymentAmountUpdateResource reference(String reference)
-
getReference
public String getReference()
Your reference for the amount update request. Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
splits
public PaymentAmountUpdateResource splits(List<Split> splits)
-
addSplitsItem
public PaymentAmountUpdateResource 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 PaymentAmountUpdateResource status(PaymentAmountUpdateResource.StatusEnum status)
-
getStatus
public PaymentAmountUpdateResource.StatusEnum getStatus()
The status of your request. This will always have the value **received**.- Returns:
- status
-
setStatus
public void setStatus(PaymentAmountUpdateResource.StatusEnum status)
-
-