org.views.payment

Attributes

EMAIL_SUBJECTS

Classes

PaymentExportForm

A form providing a start/end date range.

Functions

ticket_by_link(→ onegov.ticket.Ticket | None)

send_ticket_notifications(→ None)

view_payments(→ onegov.core.types.RenderData)

export_payments(→ RenderData | Response)

run_export(→ Sequence[dict[str, Any]])

change_payment_amount(→ onegov.core.types.JSON_ro)

mark_as_paid(→ None)

mark_as_unpaid(→ None)

capture(→ None)

refund(→ None)

Module Contents

class org.views.payment.PaymentExportForm(formdata: MultiDict[str, Any] | None = None, obj: object | None = None, prefix: str = '', data: dict[str, Any] | None = None, meta: dict[str, Any] | None = None, *, extra_filters: Mapping[str, Sequence[Any]] | None = None, **kwargs: Any)[source]

Bases: onegov.org.forms.DateRangeForm, onegov.org.forms.ExportForm

A form providing a start/end date range.

org.views.payment.EMAIL_SUBJECTS[source]
org.views.payment.send_ticket_notifications(payment: onegov.pay.Payment, request: onegov.org.request.OrgRequest, change: str) None[source]
org.views.payment.view_payments(self: onegov.pay.PaymentCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.PaymentCollectionLayout | None = None) onegov.core.types.RenderData[source]
org.views.payment.export_payments(self: onegov.pay.PaymentCollection, request: onegov.org.request.OrgRequest, form: PaymentExportForm, layout: onegov.org.layout.PaymentCollectionLayout | None = None) RenderData | Response[source]
org.views.payment.run_export(session: sqlalchemy.orm.Session, start: datetime.datetime, end: datetime.datetime, nested: bool, formatter: Callable[[Any], object]) Sequence[dict[str, Any]][source]
org.views.payment.change_payment_amount(self: onegov.pay.Payment, request: onegov.org.request.OrgRequest) onegov.core.types.JSON_ro[source]
org.views.payment.mark_as_paid(self: onegov.pay.Payment, request: onegov.org.request.OrgRequest) None[source]
org.views.payment.mark_as_unpaid(self: onegov.pay.Payment, request: onegov.org.request.OrgRequest) None[source]
org.views.payment.capture(self: onegov.pay.Payment, request: onegov.org.request.OrgRequest) None[source]
org.views.payment.refund(self: onegov.pay.Payment, request: onegov.org.request.OrgRequest) None[source]