Package-level declarations

Types

Link copied to clipboard
class Balance(val metadata: ResourceMetadata, val data: BalanceData, var signature: String? = null) : Resource

Balance is a protected resource used to communicate the available amount of each currency held by the PFI on behalf of its customer.

Link copied to clipboard
class BalanceData(val currencyCode: String, val available: String) : ResourceData

A data class implementing ResourceData, which represents the contents of a Balance.

Link copied to clipboard
class Close : Message

A class representing the Close message. Close implements the Message class and contains close specific data

Link copied to clipboard
class CloseData(val reason: String? = null, val success: Boolean? = null) : MessageData

A data class implementing MessageData that represents the contents of a Close.

Link copied to clipboard
class CreateRfqData(val offeringId: String, val payin: CreateSelectedPayinMethod, val payout: CreateSelectedPayoutMethod, val claims: List<String>)

Data contained in a RFQ message, including data which will be placed in Rfq.privateDAta. Used for creating an RFQ.

Link copied to clipboard
class CreateSelectedPayinMethod(val kind: String, val paymentDetails: Map<String, Any>? = null, val amount: String) : CreateSelectedPaymentMethod

A data class representing the payin method selected, including the cleartext payin details.

Link copied to clipboard
sealed class CreateSelectedPaymentMethod(val kind: String, val paymentDetails: Map<String, Any>? = null)

A data class representing the payment method selected, including the cleartext payment details. Used for creating an RFQ.

Link copied to clipboard
class CreateSelectedPayoutMethod(val kind: String, val paymentDetails: Map<String, Any>? = null) : CreateSelectedPaymentMethod

A data class representing the payin method selected, including the cleartext payout details.

Link copied to clipboard
sealed interface Data

An interface that represents the data content of any tbDEX object.

Link copied to clipboard
sealed class Message

An abstract class representing the structure and common functionality available on all Messages.

Link copied to clipboard
sealed interface MessageData : Data

An interface that represents the contents of a Message.

Link copied to clipboard

An enum representing all possible Message kinds.

Link copied to clipboard
class MessageMetadata(val from: String, val to: String, val kind: MessageKind, val id: String, val exchangeId: String, val externalId: String? = null, val createdAt: OffsetDateTime, val protocol: String) : Metadata

A data class representing the metadata present on every Message

Link copied to clipboard
sealed interface Metadata

An interface that represents the metadata of a tbDEX object.

Link copied to clipboard

A class representing the Offering resource. Offering implements the Resource class and contains Offering specific data

Link copied to clipboard
class OfferingData(val description: String, val payoutUnitsPerPayinUnit: String, val payin: PayinDetails, val payout: PayoutDetails, val requiredClaims: <Error class: unknown class>?) : ResourceData

A data class implementing ResourceData, which represents the contents of an Offering.

Link copied to clipboard
class Order : Message

A class representing the Order message. Order implements the Message class and contains close specific data

Link copied to clipboard

A data class implementing MessageData that represents the contents of an Order.

Link copied to clipboard

A class representing the OrderStatus message. OrderStatus implements the Message class and contains close specific data

Link copied to clipboard
class OrderStatusData(val orderStatus: String) : MessageData

A data class implementing MessageData that represents the contents of an OrderStatus.

Link copied to clipboard
class PayinDetails(val currencyCode: String, val min: String? = null, val max: String? = null, val methods: List<PayinMethod>) : PaymentDetails

A data class containing information pertaining to payin.

Link copied to clipboard
class PayinMethod(val kind: String, val name: String? = null, val description: String? = null, val group: String? = null, val requiredPaymentDetails: <Error class: unknown class>? = null, val fee: String? = null, val min: String? = null, val max: String? = null) : PaymentMethod

A data class containing information pertaining to payin method.

Link copied to clipboard
sealed class PaymentDetails(val currencyCode: String, val min: String? = null, val max: String? = null, val methods: List<PaymentMethod>)

A data class representing the structure and common functionality available on PayinDetails and PayoutDetails.

Link copied to clipboard
class PaymentInstruction(val link: String?, val instruction: String?)

Payment instruction

Link copied to clipboard
sealed class PaymentMethod(val kind: String, val name: String? = null, val description: String? = null, val group: String? = null, val requiredPaymentDetails: <Error class: unknown class>? = null, val fee: String? = null, val min: String? = null, val max: String? = null)

An abstract class representing the structure and common functionality available on all PaymentMethods.

Link copied to clipboard
class PayoutDetails(val currencyCode: String, val min: String? = null, val max: String? = null, val methods: List<PayoutMethod>) : PaymentDetails

A data class containing information pertaining to payout.

Link copied to clipboard
class PayoutMethod(val kind: String, val name: String? = null, val description: String? = null, val group: String? = null, val requiredPaymentDetails: <Error class: unknown class>? = null, val fee: String? = null, val min: String? = null, val max: String? = null, val estimatedSettlementTime: Int) : PaymentMethod

A data class containing information pertaining to payout method.

Link copied to clipboard
class PrivatePaymentDetails(val paymentDetails: Map<String, Any>? = null)

A container for the cleartext paymentDetails

Link copied to clipboard
class Quote : Message

A class representing the Quote message. Quote implements the Message class and contains close specific data

Link copied to clipboard
class QuoteData(val expiresAt: OffsetDateTime, val payin: QuoteDetails, val payout: QuoteDetails) : MessageData

A data class implementing MessageData that represents the contents of a Quote.

Link copied to clipboard
class QuoteDetails(val currencyCode: String, val amount: String, val fee: String? = null, val paymentInstruction: PaymentInstruction? = null)

A data class representing details for payin and payout amounts.

Link copied to clipboard
sealed class Resource

An abstract class representing the structure and common functionality available on all Resources.

Link copied to clipboard
sealed interface ResourceData : Data

An interface that represents the contents of a Resource.

Link copied to clipboard

An enum representing all possible Resource kinds.

Link copied to clipboard
class ResourceMetadata(val kind: ResourceKind, val from: String, val id: String, val protocol: String, val createdAt: OffsetDateTime, val updatedAt: OffsetDateTime?) : Metadata

A data class representing the metadata present on every Resource.

Link copied to clipboard
class Rfq : Message

A class representing the Rfq message. Rfq implements the Message class and contains close specific data

Link copied to clipboard
class RfqData(val offeringId: String, val payin: SelectedPayinMethod, val payout: SelectedPayoutMethod, var claimsHash: String? = null) : MessageData

A data class implementing MessageData that represents the contents of an Rfq. This includes salted hashes of fields in RfqPrivateData.

Link copied to clipboard
class RfqPrivateData(val salt: String, val payin: PrivatePaymentDetails? = null, val payout: PrivatePaymentDetails? = null, val claims: List<String>? = null)

Private data contained in a RFQ message, including data which will be placed in {@link RfqPrivateData}

Link copied to clipboard
class SelectedPayinMethod(val kind: String, var paymentDetailsHash: String? = null, val amount: String) : SelectedPaymentMethod

A data class representing the payin method selected.

Link copied to clipboard
sealed class SelectedPaymentMethod(val kind: String, var paymentDetailsHash: String? = null) : MessageData

A data class representing the payment method selected.

Link copied to clipboard
class SelectedPayoutMethod(val kind: String, var paymentDetailsHash: String? = null) : SelectedPaymentMethod

A data class representing the payout method selected.