co.saltpay.epos.models.request.ReverseLastPayment.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epos-core-models Show documentation
Show all versions of epos-core-models Show documentation
Internal lib to handle epos requests.
package co.saltpay.epos.models.request
import kotlinx.serialization.Serializable
/**
* DEPRECATION NOTES:
* - payment app will return [co.saltpay.epos.models.response.EposDisabledResponse]:
* - use [RefundPayment] passing in the last received saleId instead.
* - will be deleted in a future version.
*
* Request type for making a reversal of the previous payment.
*
* @property requestId see [RequestModel.requestId]
* @property askForManagerPIN whether the payment app should request for the manager PIN
* to authorize the user to refund the payment
*/
@Deprecated("Reverse is deprecated. Issue a refund via RefundPayment instead!")
@Serializable
data class ReverseLastPayment(
override val requestId: String,
val askForManagerPIN: Boolean
) : ForegroundRequest