RefundOutcome.kt (1161B)
1 /* 2 * This file is part of GNU Taler 3 * (C) 2026 Taler Systems S.A. 4 * 5 * GNU Taler is free software; you can redistribute it and/or modify it under the 6 * terms of the GNU General Public License as published by the Free Software 7 * Foundation; either version 3, or (at your option) any later version. 8 * 9 * GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY 10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 * A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License along with 14 * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 17 package net.taler.merchantpos.paymentoptions 18 19 sealed interface RefundOutcome 20 { 21 /** The provider confirmed that the refund was issued. */ 22 data object Success : RefundOutcome 23 24 /** This option cannot issue refunds through the POS. */ 25 data object NotSupported : RefundOutcome 26 27 /** The provider did not confirm the refund; [message] describes the error. */ 28 data class Failed( 29 val message: String, 30 ) : RefundOutcome 31 }