Source code for org.constants

from onegov.org import _


from typing import TYPE_CHECKING
if TYPE_CHECKING:
    from onegov.pay.types import PaymentState
    from onegov.ticket.collection import ExtendedTicketState


[docs] TICKET_STATES: dict['ExtendedTicketState', str] = { 'open': _('Open'), 'pending': _('Pending'), 'closed': _('Closed'), 'archived': _('Archived'), 'all': _('All') }
[docs] PAYMENT_STATES: dict['PaymentState', str] = { 'open': TICKET_STATES['open'], 'paid': _('Paid'), 'failed': _('Failed'), 'cancelled': _('Refunded') }
[docs] PAYMENT_SOURCES = { 'manual': _('Manual'), 'stripe_connect': _('Stripe Connect') }