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.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 StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_FUNDING_SOURCEstatic StringJSON_PROPERTY_MASTERPASS_TRANSACTION_IDstatic StringJSON_PROPERTY_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)Return true if this MasterpassDetails object is equal to 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)The checkout attempt identifier.voidsetFundingSource(MasterpassDetails.FundingSourceEnum fundingSource)The funding source that should be used when multiple sources are available.voidsetMasterpassTransactionId(String masterpassTransactionId)The Masterpass transaction ID.voidsetType(MasterpassDetails.TypeEnum type)**masterpass**StringtoJson()Convert an instance of MasterpassDetails to an JSON stringStringtoString()MasterpassDetailstype(MasterpassDetails.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FUNDING_SOURCE
public static final String JSON_PROPERTY_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MASTERPASS_TRANSACTION_ID
public static final String JSON_PROPERTY_MASTERPASS_TRANSACTION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_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)
The checkout attempt identifier.- Parameters:
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)
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**.- Parameters:
fundingSource-
-
masterpassTransactionId
public MasterpassDetails masterpassTransactionId(String masterpassTransactionId)
-
getMasterpassTransactionId
public String getMasterpassTransactionId()
The Masterpass transaction ID.- Returns:
- masterpassTransactionId
-
setMasterpassTransactionId
public void setMasterpassTransactionId(String masterpassTransactionId)
The Masterpass transaction ID.- Parameters:
masterpassTransactionId-
-
type
public MasterpassDetails type(MasterpassDetails.TypeEnum type)
-
getType
public MasterpassDetails.TypeEnum getType()
**masterpass**- Returns:
- type
-
setType
public void setType(MasterpassDetails.TypeEnum type)
**masterpass**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this MasterpassDetails object is equal to o.
-
fromJson
public static MasterpassDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MasterpassDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MasterpassDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MasterpassDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MasterpassDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-