co.saltpay.epos.models.request.PrintReceipt.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 co.saltpay.epos.models.common.PaymentType
import kotlinx.serialization.Serializable
/**
* Request type for printing a receipt for a previous payment.
*
* @property requestId see [RequestModel.requestId]
* @property paymentType type of the payment [PaymentType]
* @property paymentId id of the payment to print the receipt from
* @property receiptType type of receipt to be printed [ReceiptType]
*/
@Serializable
data class PrintReceipt(
override val requestId: String,
val paymentType: PaymentType,
val paymentId: String,
val receiptType: ReceiptType
): ForegroundRequest {
enum class ReceiptType {
MERCHANT, CUSTOMER
}
}