All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.saltpay.epos.models.request.PrintReceipt.kt Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy