Package-level declarations

Types

Link copied to clipboard
class Sep31BadRequestException(message: String, val statusCode: Int = 400, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor returns HTTP 400 Bad Request.

Link copied to clipboard

Exception thrown when SEP-31 service configuration is invalid before any HTTP call.

Link copied to clipboard
class Sep31CustomerInfoNeededException(val type: String?, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor needs additional SEP-12 KYC information.

Link copied to clipboard
open class Sep31Exception(message: String, cause: Throwable? = null) : Exception

Base exception class for SEP-31 Cross-Border Payments errors.

Link copied to clipboard
class Sep31ForbiddenException(message: String, val statusCode: Int = 403, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor returns HTTP 403 Forbidden.

Link copied to clipboard
class Sep31InvalidResponseException(message: String, val statusCode: Int = 200, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor returns a malformed response.

class Sep31TransactionCallbackNotSupportedException(message: String, val statusCode: Int = 404, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor returns HTTP 404 for callback registration.

Link copied to clipboard
class Sep31TransactionInfoNeededException(val fields: Map<String, Any?>?, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor reports missing per-transaction fields.

Link copied to clipboard
class Sep31TransactionNotFoundException(message: String, val statusCode: Int = 404, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor returns HTTP 404 for a transaction lookup.

Link copied to clipboard
class Sep31UnauthorizedException(message: String, val statusCode: Int = 401, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor returns HTTP 401 Unauthorized.

Link copied to clipboard
class Sep31UnknownResponseException(message: String, val statusCode: Int, val responseBody: String, val rawResponseBody: String? = null) : Sep31Exception

Exception thrown when the Receiving Anchor returns an unexpected HTTP status code.