Refunds

public struct Refunds : Decodable, Sendable

Information about refunds associated with a transaction.

Describes any on or off-chain refunds that have been issued for the transaction, including the total refunded amount and individual refund payments.

See SEP-6 Transaction Object

  • The total amount refunded to the user, in units of amount_in_asset. If a full refund was issued, this amount should match amount_in.

    Declaration

    Swift

    public let amountRefunded: String
  • The total amount charged in fees for processing all refund payments, in units of amount_in_asset. The sum of all fee values in the payments object list should equal this value.

    Declaration

    Swift

    public let amountFee: String
  • A list of objects containing information on the individual payments made back to the user as refunds.

    Declaration

    Swift

    public let payments: [RefundPayment]?
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data