Sep31Transaction Status
Enumeration of SEP-31 transaction lifecycle statuses defined by the spec.
Each constant carries the lowercase wire form (value) used by the Receiving Anchor in GET /transactions/:id responses. The SDK keeps Sep31TransactionResponse.status as a raw String so new spec statuses are accepted without an SDK release; use fromString when typed dispatch is preferred.
Usage
val response: Sep31TransactionResponse = sep31Service.getTransaction(id = "tx-id", jwt = jwt)
when (Sep31TransactionStatus.fromString(response.status)) {
Sep31TransactionStatus.PENDING_SENDER -> println("Awaiting Sending Anchor payment")
Sep31TransactionStatus.COMPLETED -> println("Delivered to Receiving Client")
null -> println("Unknown status: ${response.status}")
else -> println("Status: ${response.status}")
}See also
Entries
Awaiting payment from the Sending Anchor.
Stellar payment submitted by the Sending Anchor but not yet confirmed on-network.
Customer KYC information must be updated via SEP-12 before the transaction can advance.
Per-transaction fields require an update (legacy; superseded by SEP-12).
Payment is being processed by the Receiving Anchor.
Payment was submitted to an external (off-chain) network but is not yet confirmed.
Funds were refunded to the Sending Anchor; inspect Sep31TransactionResponse.refunds for details.
Catch-all for unspecified errors; inspect Sep31TransactionResponse.statusMessage for context.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.