Package com.adyen.model.checkout
Class MasterpassDetails
- java.lang.Object
-
- com.adyen.model.checkout.MasterpassDetails
-
public class MasterpassDetails extends Object
MasterpassDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMasterpassDetails.CustomTypeAdapterFactorystatic classMasterpassDetails.FundingSourceEnumThe funding source that should be used when multiple sources are available.static classMasterpassDetails.TypeEnum**masterpass**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKOUT_ATTEMPT_IDstatic StringSERIALIZED_NAME_FUNDING_SOURCEstatic StringSERIALIZED_NAME_MASTERPASS_TRANSACTION_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description MasterpassDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MasterpassDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)static MasterpassDetailsfromJson(String jsonString)Create an instance of MasterpassDetails given an JSON stringMasterpassDetailsfundingSource(MasterpassDetails.FundingSourceEnum fundingSource)StringgetCheckoutAttemptId()The checkout attempt identifier.MasterpassDetails.FundingSourceEnumgetFundingSource()The funding source that should be used when multiple sources are available.StringgetMasterpassTransactionId()The Masterpass transaction ID.MasterpassDetails.TypeEnumgetType()**masterpass**inthashCode()MasterpassDetailsmasterpassTransactionId(String masterpassTransactionId)voidsetCheckoutAttemptId(String checkoutAttemptId)voidsetFundingSource(MasterpassDetails.FundingSourceEnum fundingSource)voidsetMasterpassTransactionId(String masterpassTransactionId)voidsetType(MasterpassDetails.TypeEnum type)StringtoJson()Convert an instance of MasterpassDetails to an JSON stringStringtoString()MasterpassDetailstype(MasterpassDetails.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
public static final String SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FUNDING_SOURCE
public static final String SERIALIZED_NAME_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MASTERPASS_TRANSACTION_ID
public static final String SERIALIZED_NAME_MASTERPASS_TRANSACTION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public MasterpassDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
-
fundingSource
public MasterpassDetails fundingSource(MasterpassDetails.FundingSourceEnum fundingSource)
-
getFundingSource
public MasterpassDetails.FundingSourceEnum getFundingSource()
The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.- Returns:
- fundingSource
-
setFundingSource
public void setFundingSource(MasterpassDetails.FundingSourceEnum fundingSource)
-
masterpassTransactionId
public MasterpassDetails masterpassTransactionId(String masterpassTransactionId)
-
getMasterpassTransactionId
public String getMasterpassTransactionId()
The Masterpass transaction ID.- Returns:
- masterpassTransactionId
-
setMasterpassTransactionId
public void setMasterpassTransactionId(String masterpassTransactionId)
-
type
public MasterpassDetails type(MasterpassDetails.TypeEnum type)
-
getType
public MasterpassDetails.TypeEnum getType()
**masterpass**- Returns:
- type
-
setType
public void setType(MasterpassDetails.TypeEnum type)
-
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 MasterpassDetails
-
fromJson
public static MasterpassDetails fromJson(String jsonString) throws IOException
Create an instance of MasterpassDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MasterpassDetails
- Throws:
IOException- if the JSON string is invalid with respect to MasterpassDetails
-
toJson
public String toJson()
Convert an instance of MasterpassDetails to an JSON string- Returns:
- JSON string
-
-