Package com.adyen.model.management
Class SupportedCardTypes
- java.lang.Object
-
- com.adyen.model.management.SupportedCardTypes
-
public class SupportedCardTypes extends Object
SupportedCardTypes
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CREDITstatic StringJSON_PROPERTY_DEBITstatic StringJSON_PROPERTY_DEFERRED_DEBITstatic StringJSON_PROPERTY_PREPAIDstatic StringJSON_PROPERTY_UNKNOWN
-
Constructor Summary
Constructors Constructor Description SupportedCardTypes()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportedCardTypescredit(Boolean credit)Set to **true** to accept credit cards.SupportedCardTypesdebit(Boolean debit)Set to **true** to accept debit cards.SupportedCardTypesdeferredDebit(Boolean deferredDebit)Set to **true** to accept cards that allow deferred debit.booleanequals(Object o)Return true if this SupportedCardTypes object is equal to o.static SupportedCardTypesfromJson(String jsonString)Create an instance of SupportedCardTypes given an JSON stringBooleangetCredit()Set to **true** to accept credit cards.BooleangetDebit()Set to **true** to accept debit cards.BooleangetDeferredDebit()Set to **true** to accept cards that allow deferred debit.BooleangetPrepaid()Set to **true** to accept prepaid cards.BooleangetUnknown()Set to **true** to accept card types for which the terminal can't determine the funding source while offline.inthashCode()SupportedCardTypesprepaid(Boolean prepaid)Set to **true** to accept prepaid cards.voidsetCredit(Boolean credit)Set to **true** to accept credit cards.voidsetDebit(Boolean debit)Set to **true** to accept debit cards.voidsetDeferredDebit(Boolean deferredDebit)Set to **true** to accept cards that allow deferred debit.voidsetPrepaid(Boolean prepaid)Set to **true** to accept prepaid cards.voidsetUnknown(Boolean unknown)Set to **true** to accept card types for which the terminal can't determine the funding source while offline.StringtoJson()Convert an instance of SupportedCardTypes to an JSON stringStringtoString()SupportedCardTypesunknown(Boolean unknown)Set to **true** to accept card types for which the terminal can't determine the funding source while offline.
-
-
-
Field Detail
-
JSON_PROPERTY_CREDIT
public static final String JSON_PROPERTY_CREDIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEBIT
public static final String JSON_PROPERTY_DEBIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEFERRED_DEBIT
public static final String JSON_PROPERTY_DEFERRED_DEBIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PREPAID
public static final String JSON_PROPERTY_PREPAID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UNKNOWN
public static final String JSON_PROPERTY_UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
credit
public SupportedCardTypes credit(Boolean credit)
Set to **true** to accept credit cards.- Parameters:
credit-- Returns:
- the current
SupportedCardTypesinstance, allowing for method chaining
-
getCredit
public Boolean getCredit()
Set to **true** to accept credit cards.- Returns:
- credit
-
setCredit
public void setCredit(Boolean credit)
Set to **true** to accept credit cards.- Parameters:
credit-
-
debit
public SupportedCardTypes debit(Boolean debit)
Set to **true** to accept debit cards.- Parameters:
debit-- Returns:
- the current
SupportedCardTypesinstance, allowing for method chaining
-
getDebit
public Boolean getDebit()
Set to **true** to accept debit cards.- Returns:
- debit
-
setDebit
public void setDebit(Boolean debit)
Set to **true** to accept debit cards.- Parameters:
debit-
-
deferredDebit
public SupportedCardTypes deferredDebit(Boolean deferredDebit)
Set to **true** to accept cards that allow deferred debit.- Parameters:
deferredDebit-- Returns:
- the current
SupportedCardTypesinstance, allowing for method chaining
-
getDeferredDebit
public Boolean getDeferredDebit()
Set to **true** to accept cards that allow deferred debit.- Returns:
- deferredDebit
-
setDeferredDebit
public void setDeferredDebit(Boolean deferredDebit)
Set to **true** to accept cards that allow deferred debit.- Parameters:
deferredDebit-
-
prepaid
public SupportedCardTypes prepaid(Boolean prepaid)
Set to **true** to accept prepaid cards.- Parameters:
prepaid-- Returns:
- the current
SupportedCardTypesinstance, allowing for method chaining
-
getPrepaid
public Boolean getPrepaid()
Set to **true** to accept prepaid cards.- Returns:
- prepaid
-
setPrepaid
public void setPrepaid(Boolean prepaid)
Set to **true** to accept prepaid cards.- Parameters:
prepaid-
-
unknown
public SupportedCardTypes unknown(Boolean unknown)
Set to **true** to accept card types for which the terminal can't determine the funding source while offline.- Parameters:
unknown-- Returns:
- the current
SupportedCardTypesinstance, allowing for method chaining
-
getUnknown
public Boolean getUnknown()
Set to **true** to accept card types for which the terminal can't determine the funding source while offline.- Returns:
- unknown
-
setUnknown
public void setUnknown(Boolean unknown)
Set to **true** to accept card types for which the terminal can't determine the funding source while offline.- Parameters:
unknown-
-
equals
public boolean equals(Object o)
Return true if this SupportedCardTypes object is equal to o.
-
fromJson
public static SupportedCardTypes fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SupportedCardTypes given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SupportedCardTypes
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SupportedCardTypes
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SupportedCardTypes to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-