Sep31Fee Details Details
data class Sep31FeeDetailsDetails(val name: String, val amount: String, val description: String? = null)
Single line item within a SEP-31 fee breakdown.
Each instance describes one component of the total fee charged by the Receiving Anchor — for example an ACH fee, a service fee, or a country-specific conciliation fee. When Sep31FeeDetails.details is non-null the sum of every line item's amount equals Sep31FeeDetails.total.
The amount field is String (not numeric) because SEP-31 amounts must preserve decimal precision. Callers convert to a domain-specific numeric type (for example BigDecimal on JVM) at the application boundary.
Usage
val response = sep31Service.getTransaction(id = "tx-id", jwt = jwt)
for (line in response.feeDetails?.details.orEmpty()) {
println("${line.name}: ${line.amount} - ${line.description ?: "no description"}")
}Content copied to clipboard
See also
Properties
Link copied to clipboard
Amount of this fee component, in units of Sep31FeeDetails.asset. Preserve as String to avoid floating-point precision loss.
Link copied to clipboard
Optional longer description of the fee component.