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 stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<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()Get supportedCardTypesinthashCode()StoreAndForwardincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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- The maximum amount that the terminal accepts for a single store-and-forward payment.- 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 The maximum amount that the terminal accepts for a single store-and-forward payment.
-
setMaxAmount
public void setMaxAmount(List<MinorUnitsMonetaryValue> maxAmount)
The maximum amount that the terminal accepts for a single store-and-forward payment.- Parameters:
maxAmount- The maximum amount that the terminal accepts for a single store-and-forward payment.
-
maxPayments
public StoreAndForward maxPayments(Integer maxPayments)
The maximum number of store-and-forward transactions per terminal that you can process while offline.- Parameters:
maxPayments- The maximum number of store-and-forward transactions per terminal that you can process while offline.- 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 The maximum number of store-and-forward transactions per terminal that you can process while offline.
-
setMaxPayments
public void setMaxPayments(Integer maxPayments)
The maximum number of store-and-forward transactions per terminal that you can process while offline.- Parameters:
maxPayments- The maximum number of store-and-forward transactions per terminal that you can process while offline.
-
supportedCardTypes
public StoreAndForward supportedCardTypes(SupportedCardTypes supportedCardTypes)
supportedCardTypes- Parameters:
supportedCardTypes-- Returns:
- the current
StoreAndForwardinstance, allowing for method chaining
-
getSupportedCardTypes
public SupportedCardTypes getSupportedCardTypes()
Get supportedCardTypes- Returns:
- supportedCardTypes
-
setSupportedCardTypes
public void setSupportedCardTypes(SupportedCardTypes supportedCardTypes)
supportedCardTypes- Parameters:
supportedCardTypes-
-
includeNullValues
public StoreAndForward includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this StoreAndForward object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-