Package-level declarations

Types

Link copied to clipboard
@ObjCName(name = "TeyaPaymentCancellationResult", exact = true)
enum CancellationResult : Enum<CancellationResult>

Enum representing the result of the cancellation attempt.

Link copied to clipboard
@ObjCName(name = "TeyaPaymentCancellationResultInfo", exact = true)
data class CancellationResultInfo(val result: CancellationResult, val debugErrorMessage: String?)

Represents the result of a payment cancellation attempt.

Link copied to clipboard
@ObjCName(name = "TeyaInProgressState", exact = true)
enum InProgressState : Enum<InProgressState>

Enum representing the sub-state for PaymentState.InProgress of the payment. It provides more information about the current in progress payment and what is happening in the Teya payment application.

Link copied to clipboard
@ObjCName(name = "TeyaPaymentState", exact = true)
enum PaymentState : Enum<PaymentState>

Enum representing the main state of the payment.

Link copied to clipboard
@ObjCName(name = "TeyaPaymentStateDetails", exact = true)
data class PaymentStateDetails(val eposTransactionId: String, val amount: Int, val tip: Int?, val currency: String, val state: PaymentState, val inProgressState: InProgressState?, val gatewayTransactionId: GatewayTransactionId? = null, val reason: PaymentStateReason? = null, val debugErrorMessage: String? = null, val metadata: PaymentStateDetails.Metadata? = null, val transactionTimestamp: Long? = null, val wasUnsubscribed: Boolean = false)

Class holding all information about the state of the payment.

Link copied to clipboard
@ObjCName(name = "TeyaPaymentStateReason", exact = true)
enum PaymentStateReason : Enum<PaymentStateReason>

Enum representing the reason for the current payment state.

Link copied to clipboard
@ObjCName(name = "TeyaPrintStateDetails", exact = true)
data class PrintStateDetails(val receiptId: String?, val status: PrintStateDetails.PrintStatus, val printFailure: PrintStateDetails.PrintFailure?, val errorMessage: String?)

Class holding all information about the state of the printing action.

Link copied to clipboard
@ObjCName(name = "TeyaRefundResult", exact = true)
enum RefundResult : Enum<RefundResult>

Enum representing the final result of the refund.

Link copied to clipboard
@ObjCName(name = "TeyaRefundResultDetails", exact = true)
data class RefundResultDetails(val gatewayRefundId: GatewayRefundId?, val result: RefundResult, val debugErrorMessage: String? = null)

Details about the refund result.