Bank transfer: Allow customer to send latest invoice via email (Z#207218) (#3511)

Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
Mira
2023-08-09 18:23:45 +02:00
committed by GitHub
parent 6ada83df9a
commit 6250ab2165
6 changed files with 168 additions and 4 deletions

View File

@@ -19,13 +19,19 @@
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
# <https://www.gnu.org/licenses/>.
#
from django.urls import re_path
from django.urls import include, re_path
from pretix.api.urls import orga_router
from pretix.plugins.banktransfer.api import BankImportJobViewSet
from . import views
event_patterns = [
re_path(r'^banktransfer/', include([
re_path(r'^(?P<order>[^/][^w]+)/(?P<secret>[A-Za-z0-9]+)/mail-invoice/$', views.SendInvoiceMailView.as_view(), name='mail_invoice'),
])),
]
urlpatterns = [
re_path(r'^control/organizer/(?P<organizer>[^/]+)/banktransfer/import/',
views.OrganizerImportView.as_view(),