taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit cc41294627c679cae99941b363ea743d236fd4d8
parent 5944e1af546ea050e18bbce70c7cf72dead17d55
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 21 Jul 2026 08:26:53 +0200

errorResponse (for Copy JSON)

Diffstat:
MTalerWallet1/Model/WalletModel.swift | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Model/WalletModel.swift b/TalerWallet1/Model/WalletModel.swift @@ -89,6 +89,15 @@ struct PaymentInsufficientBalanceDetails: Codable, Hashable { var perExchange: [String : InsufficientBalanceDetailsPerExchange] } // MARK: - +struct TalerErrorInfo: Codable, Hashable { + /// Numeric error code defined in the GANA gnu-taler-error-codes registry. + var code: Int + // all other fields are optional: + var when: Timestamp? + /// English description of the error code. + var hint: String? + var message: String? +} struct TalerErrorDetail: Codable, Hashable { /// Numeric error code defined in the GANA gnu-taler-error-codes registry. var code: Int @@ -105,6 +114,7 @@ struct TalerErrorDetail: Codable, Hashable { var requestMethod: String? var httpStatusCode: Int? var stack: String? + var errorResponse: TalerErrorInfo? var insufficientBalanceDetails: PaymentInsufficientBalanceDetails? }