RefundPayment

public struct RefundPayment : Decodable, Sendable

Details about an individual refund payment.

Represents a single refund payment that was made back to the user, either on-chain via Stellar or off-chain through an external payment system.

See SEP-6 Transaction Object

  • id

    The payment ID that can be used to identify the refund payment. This is either a Stellar transaction hash or an off-chain payment identifier, such as a reference number provided to the user when the refund was initiated. This id is not guaranteed to be unique.

    Declaration

    Swift

    public let id: String
  • stellar or external.

    Declaration

    Swift

    public let idType: String
  • The amount sent back to the user for the payment identified by id, in units of amount_in_asset.

    Declaration

    Swift

    public let amount: String
  • fee

    The amount charged as a fee for processing the refund, in units of amount_in_asset.

    Declaration

    Swift

    public let fee: String
  • 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