Package com.adyen.model.management
Class StoreAndForward
- java.lang.Object
-
- com.adyen.model.management.StoreAndForward
-
public class StoreAndForward extends Object
StoreAndForward
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MAX_AMOUNTstatic StringJSON_PROPERTY_MAX_PAYMENTSstatic StringJSON_PROPERTY_SUPPORTED_CARD_TYPES
-
Constructor Summary
Constructors Constructor Description StoreAndForward()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreAndForwardaddMaxAmountItem(MinorUnitsMonetaryValue maxAmountItem)booleanequals(Object o)Return true if this StoreAndForward object is equal to o.static StoreAndForwardfromJson(String jsonString)Create an instance of StoreAndForward given an JSON stringList<MinorUnitsMonetaryValue>getMaxAmount()The maximum amount that the terminal accepts for a single store-and-forward payment.IntegergetMaxPayments()The maximum number of store-and-forward transactions per terminal that you can process while offline.SupportedCardTypesgetSupportedCardTypes()supportedCardTypesinthashCode()StoreAndForwardmaxAmount(List<MinorUnitsMonetaryValue> maxAmount)The maximum amount that the terminal accepts for a single store-and-forward payment.StoreAndForwardmaxPayments(Integer maxPayments)The maximum number of store-and-forward transactions per terminal that you can process while offline.voidsetMaxAmount(List<MinorUnitsMonetaryValue> maxAmount)The maximum amount that the terminal accepts for a single store-and-forward payment.voidsetMaxPayments(Integer maxPayments)The maximum number of store-and-forward transactions per terminal that you can process while offline.voidsetSupportedCardTypes(SupportedCardTypes supportedCardTypes)supportedCardTypesStoreAndForwardsupportedCardTypes(SupportedCardTypes supportedCardTypes)supportedCardTypesStringtoJson()Convert an instance of StoreAndForward to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MAX_AMOUNT
public static final String JSON_PROPERTY_MAX_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAX_PAYMENTS
public static final String JSON_PROPERTY_MAX_PAYMENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUPPORTED_CARD_TYPES
public static final String JSON_PROPERTY_SUPPORTED_CARD_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
maxAmount
public StoreAndForward maxAmount(List<MinorUnitsMonetaryValue> maxAmount)
The maximum amount that the terminal accepts for a single store-and-forward payment.- Parameters:
maxAmount-- Returns:
- the current
StoreAndForwardinstance, allowing for method chaining
-
addMaxAmountItem
public StoreAndForward addMaxAmountItem(MinorUnitsMonetaryValue maxAmountItem)
-
getMaxAmount
public List<MinorUnitsMonetaryValue> getMaxAmount()
The maximum amount that the terminal accepts for a single store-and-forward payment.- Returns:
- maxAmount
-
setMaxAmount
public void setMaxAmount(List<MinorUnitsMonetaryValue> maxAmount)
The maximum amount that the terminal accepts for a single store-and-forward payment.- Parameters:
maxAmount-
-
maxPayments
public StoreAndForward maxPayments(Integer maxPayments)
The maximum number of store-and-forward transactions per terminal that you can process while offline.- Parameters:
maxPayments-- Returns:
- the current
StoreAndForwardinstance, allowing for method chaining
-
getMaxPayments
public Integer getMaxPayments()
The maximum number of store-and-forward transactions per terminal that you can process while offline.- Returns:
- maxPayments
-
setMaxPayments
public void setMaxPayments(Integer maxPayments)
The maximum number of store-and-forward transactions per terminal that you can process while offline.- Parameters:
maxPayments-
-
supportedCardTypes
public StoreAndForward supportedCardTypes(SupportedCardTypes supportedCardTypes)
supportedCardTypes- Parameters:
supportedCardTypes-- Returns:
- the current
StoreAndForwardinstance, allowing for method chaining
-
getSupportedCardTypes
public SupportedCardTypes getSupportedCardTypes()
supportedCardTypes- Returns:
- supportedCardTypes
-
setSupportedCardTypes
public void setSupportedCardTypes(SupportedCardTypes supportedCardTypes)
supportedCardTypes- Parameters:
supportedCardTypes-
-
equals
public boolean equals(Object o)
Return true if this StoreAndForward object is equal to o.
-
fromJson
public static StoreAndForward fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoreAndForward given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoreAndForward
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoreAndForward
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoreAndForward to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-