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.CustomTypeAdapterFactorystatic classPaymentAmountUpdateResource.IndustryUsageEnumThe reason for the amount update.static classPaymentAmountUpdateResource.StatusEnumThe status of your request.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_INDUSTRY_USAGEstatic 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 PaymentAmountUpdateResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentAmountUpdateResourceaddSplitsItem(Split splitsItem)PaymentAmountUpdateResourceamount(Amount amount)booleanequals(Object o)static PaymentAmountUpdateResourcefromJson(String jsonString)Create an instance of PaymentAmountUpdateResource given an JSON stringAmountgetAmount()Get amountPaymentAmountUpdateResource.IndustryUsageEnumgetIndustryUsage()The reason for the amount update.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.PaymentAmountUpdateResource.StatusEnumgetStatus()The status of your request.inthashCode()PaymentAmountUpdateResourceindustryUsage(PaymentAmountUpdateResource.IndustryUsageEnum industryUsage)PaymentAmountUpdateResourcemerchantAccount(String merchantAccount)PaymentAmountUpdateResourcepaymentPspReference(String paymentPspReference)PaymentAmountUpdateResourcepspReference(String pspReference)PaymentAmountUpdateResourcereference(String reference)voidsetAmount(Amount amount)voidsetIndustryUsage(PaymentAmountUpdateResource.IndustryUsageEnum industryUsage)voidsetMerchantAccount(String merchantAccount)voidsetPaymentPspReference(String paymentPspReference)voidsetPspReference(String pspReference)voidsetReference(String reference)voidsetSplits(List<Split> splits)voidsetStatus(PaymentAmountUpdateResource.StatusEnum status)PaymentAmountUpdateResourcesplits(List<Split> splits)PaymentAmountUpdateResourcestatus(PaymentAmountUpdateResource.StatusEnum status)StringtoJson()Convert an instance of PaymentAmountUpdateResource to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INDUSTRY_USAGE
public static final String SERIALIZED_NAME_INDUSTRY_USAGE
- 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 PaymentAmountUpdateResource amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
industryUsage
public PaymentAmountUpdateResource industryUsage(PaymentAmountUpdateResource.IndustryUsageEnum industryUsage)
-
getIndustryUsage
public PaymentAmountUpdateResource.IndustryUsageEnum getIndustryUsage()
The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment**- Returns:
- industryUsage
-
setIndustryUsage
public void setIndustryUsage(PaymentAmountUpdateResource.IndustryUsageEnum industryUsage)
-
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)
-
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/marketplaces-and-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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to PaymentAmountUpdateResource
-
fromJson
public static PaymentAmountUpdateResource fromJson(String jsonString) throws IOException
Create an instance of PaymentAmountUpdateResource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentAmountUpdateResource
- Throws:
IOException- if the JSON string is invalid with respect to PaymentAmountUpdateResource
-
toJson
public String toJson()
Convert an instance of PaymentAmountUpdateResource to an JSON string- Returns:
- JSON string
-
-