Package com.adyen.model.checkout
Class CreatePaymentAmountUpdateRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreatePaymentAmountUpdateRequest
-
public class CreatePaymentAmountUpdateRequest extends Object
CreatePaymentAmountUpdateRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreatePaymentAmountUpdateRequest.CustomTypeAdapterFactorystatic classCreatePaymentAmountUpdateRequest.IndustryUsageEnumThe reason for the amount update.
-
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_REFERENCEstatic StringSERIALIZED_NAME_SPLITS
-
Constructor Summary
Constructors Constructor Description CreatePaymentAmountUpdateRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePaymentAmountUpdateRequestaddSplitsItem(Split splitsItem)CreatePaymentAmountUpdateRequestamount(Amount amount)booleanequals(Object o)static CreatePaymentAmountUpdateRequestfromJson(String jsonString)Create an instance of CreatePaymentAmountUpdateRequest given an JSON stringAmountgetAmount()Get amountCreatePaymentAmountUpdateRequest.IndustryUsageEnumgetIndustryUsage()The reason for the amount update.StringgetMerchantAccount()The merchant account that is used to process the payment.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.inthashCode()CreatePaymentAmountUpdateRequestindustryUsage(CreatePaymentAmountUpdateRequest.IndustryUsageEnum industryUsage)CreatePaymentAmountUpdateRequestmerchantAccount(String merchantAccount)CreatePaymentAmountUpdateRequestreference(String reference)voidsetAmount(Amount amount)voidsetIndustryUsage(CreatePaymentAmountUpdateRequest.IndustryUsageEnum industryUsage)voidsetMerchantAccount(String merchantAccount)voidsetReference(String reference)voidsetSplits(List<Split> splits)CreatePaymentAmountUpdateRequestsplits(List<Split> splits)StringtoJson()Convert an instance of CreatePaymentAmountUpdateRequest 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_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 CreatePaymentAmountUpdateRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
industryUsage
public CreatePaymentAmountUpdateRequest industryUsage(CreatePaymentAmountUpdateRequest.IndustryUsageEnum industryUsage)
-
getIndustryUsage
public CreatePaymentAmountUpdateRequest.IndustryUsageEnum getIndustryUsage()
The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment**- Returns:
- industryUsage
-
setIndustryUsage
public void setIndustryUsage(CreatePaymentAmountUpdateRequest.IndustryUsageEnum industryUsage)
-
merchantAccount
public CreatePaymentAmountUpdateRequest 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 CreatePaymentAmountUpdateRequest 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 CreatePaymentAmountUpdateRequest splits(List<Split> splits)
-
addSplitsItem
public CreatePaymentAmountUpdateRequest 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
-
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 CreatePaymentAmountUpdateRequest
-
fromJson
public static CreatePaymentAmountUpdateRequest fromJson(String jsonString) throws IOException
Create an instance of CreatePaymentAmountUpdateRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePaymentAmountUpdateRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreatePaymentAmountUpdateRequest
-
toJson
public String toJson()
Convert an instance of CreatePaymentAmountUpdateRequest to an JSON string- Returns:
- JSON string
-
-