Amount

data class Amount(val minimum: Double?, val maximum: Double?) : PaymentConstraint

Indicates that there is a payment amount constraint. Multiple configurations are supported, meaning that this constraint can have only minimum, maximum or both values.

Parameters

minimum

if not null, minimum payment amount supported

maximum

if not null, maximum payment amount supported

Constructors

Link copied to clipboard
fun Amount(minimum: Double?, maximum: Double?)

Functions

Link copied to clipboard
fun check(amount: Double): Boolean

Function responsible for checking if the provided amount is between minimum and maximum

Properties

Link copied to clipboard
Link copied to clipboard