zulip/corporate
Mateusz Mandera c3caa3ecc8 stripe: Rename @error_handler decorator.
This decorator, among other things, transforms the "event" argument
passed when calling the decorated functions into actually passing
event.content_object.

So e.g. despite having a (before the decorator is applied) signature:

```
def handle_invoice_paid_event(stripe_invoice: stripe.Invoice, invoice: Invoice) -> None:
```

these are called passing an `Event` in the second arg when calling
`handle_invoice_paid_event`:

```
handle_invoice_paid_event(stripe_invoice, event)
```

I found that kind of confusing because the @error_handler decorator
didn't sound like something that would intervene in the arguments like
that. So it feels helpful to rename it something with a less modest
name, that makes it sound like it does more than just pure
error-handling.
2024-03-28 09:10:09 -07:00
..
lib stripe: Rename @error_handler decorator. 2024-03-28 09:10:09 -07:00
management
migrations corporate: Fix invoicing of plans on free-trial with changed schedule. 2024-03-01 10:47:55 -08:00
tests remote-support: Include billing entity name in internal billing notice. 2024-03-20 11:58:15 -07:00
views stripe: Redirect to /plans if plans downgraded on /billing page visit. 2024-03-19 09:25:07 -07:00
__init__.py
models.py upgrade: Fix allowed free trails for ended legacy plans on server. 2024-03-15 08:38:46 -07:00
urls.py portico: Add Semsee case study. 2024-02-22 10:33:31 -08:00