We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Admin sales shift API should also return total_paid_revenue
### Is your feature request related to a problem? Please describe.
The current admin sales shift api route only gives the total_revenue for a shift, but this might contain unpaid orders. We don't want those in certain scoreboards, like for the rag week.

### Describe the solution you'd like
Add `total_paid_revenue`

### Motivation

### Describe alternatives you've considered

### Additional context


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `website/sales/api/v2/admin/serializers/shift.py`
Content:
```
1 from rest_framework import serializers
2 
3 from sales.models.product import ProductListItem
4 from sales.models.shift import Shift
5 
6 
7 class ProductListItemSerializer(serializers.ModelSerializer):
8     """Serializer for product list items."""
9 
10     class Meta:
11         model = ProductListItem
12         fields = ("name", "price", "age_restricted")
13         read_only_fields = ("name", "price", "age_restricted")
14 
15     name = serializers.SerializerMethodField("_name")
16     age_restricted = serializers.SerializerMethodField("_age_restricted")
17 
18     def _name(self, instance):
19         return instance.product.name
20 
21     def _age_restricted(self, instance):
22         return instance.product.age_restricted
23 
24 
25 class ShiftSerializer(serializers.ModelSerializer):
26     """Serializer for shifts."""
27 
28     class Meta:
29         model = Shift
30         fields = (
31             "pk",
32             "title",
33             "locked",
34             "active",
35             "start",
36             "end",
37             "products",
38             "total_revenue",
39             "num_orders",
40             "product_sales",
41         )
42 
43     total_revenue = serializers.DecimalField(
44         max_digits=10, decimal_places=2, min_value=0, read_only=True
45     )
46 
47     products = ProductListItemSerializer(
48         source="product_list.product_items", many=True, read_only=True
49     )
50 
51     title = serializers.SerializerMethodField("_get_title")
52 
53     def _get_title(self, instance):
54         return instance.title
55 
56     product_sales = serializers.JSONField()
57
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/website/sales/api/v2/admin/serializers/shift.py b/website/sales/api/v2/admin/serializers/shift.py
--- a/website/sales/api/v2/admin/serializers/shift.py
+++ b/website/sales/api/v2/admin/serializers/shift.py
@@ -1,5 +1,6 @@
 from rest_framework import serializers
 
+from payments.api.v2.serializers.payment_amount import PaymentAmountSerializer
 from sales.models.product import ProductListItem
 from sales.models.shift import Shift
 
@@ -36,13 +37,13 @@
             "end",
             "products",
             "total_revenue",
+            "total_revenue_paid",
             "num_orders",
             "product_sales",
         )
 
-    total_revenue = serializers.DecimalField(
-        max_digits=10, decimal_places=2, min_value=0, read_only=True
-    )
+    total_revenue = PaymentAmountSerializer(min_value=0, read_only=True)
+    total_revenue_paid = PaymentAmountSerializer(min_value=0, read_only=True)
 
     products = ProductListItemSerializer(
         source="product_list.product_items", many=True, read_only=True

{"golden_diff": "diff --git a/website/sales/api/v2/admin/serializers/shift.py b/website/sales/api/v2/admin/serializers/shift.py\n--- a/website/sales/api/v2/admin/serializers/shift.py\n+++ b/website/sales/api/v2/admin/serializers/shift.py\n@@ -1,5 +1,6 @@\n from rest_framework import serializers\n \n+from payments.api.v2.serializers.payment_amount import PaymentAmountSerializer\n from sales.models.product import ProductListItem\n from sales.models.shift import Shift\n \n@@ -36,13 +37,13 @@\n             \"end\",\n             \"products\",\n             \"total_revenue\",\n+            \"total_revenue_paid\",\n             \"num_orders\",\n             \"product_sales\",\n         )\n \n-    total_revenue = serializers.DecimalField(\n-        max_digits=10, decimal_places=2, min_value=0, read_only=True\n-    )\n+    total_revenue = PaymentAmountSerializer(min_value=0, read_only=True)\n+    total_revenue_paid = PaymentAmountSerializer(min_value=0, read_only=True)\n \n     products = ProductListItemSerializer(\n         source=\"product_list.product_items\", many=True, read_only=True\n", "issue": "Admin sales shift API should also return total_paid_revenue\n### Is your feature request related to a problem? Please describe.\r\nThe current admin sales shift api route only gives the total_revenue for a shift, but this might contain unpaid orders. We don't want those in certain scoreboards, like for the rag week.\r\n\r\n### Describe the solution you'd like\r\nAdd `total_paid_revenue`\r\n\r\n### Motivation\r\n\r\n### Describe alternatives you've considered\r\n\r\n### Additional context\r\n\n", "before_files": [{"content": "from rest_framework import serializers\n\nfrom sales.models.product import ProductListItem\nfrom sales.models.shift import Shift\n\n\nclass ProductListItemSerializer(serializers.ModelSerializer):\n    \"\"\"Serializer for product list items.\"\"\"\n\n    class Meta:\n        model = ProductListItem\n        fields = (\"name\", \"price\", \"age_restricted\")\n        read_only_fields = (\"name\", \"price\", \"age_restricted\")\n\n    name = serializers.SerializerMethodField(\"_name\")\n    age_restricted = serializers.SerializerMethodField(\"_age_restricted\")\n\n    def _name(self, instance):\n        return instance.product.name\n\n    def _age_restricted(self, instance):\n        return instance.product.age_restricted\n\n\nclass ShiftSerializer(serializers.ModelSerializer):\n    \"\"\"Serializer for shifts.\"\"\"\n\n    class Meta:\n        model = Shift\n        fields = (\n            \"pk\",\n            \"title\",\n            \"locked\",\n            \"active\",\n            \"start\",\n            \"end\",\n            \"products\",\n            \"total_revenue\",\n            \"num_orders\",\n            \"product_sales\",\n        )\n\n    total_revenue = serializers.DecimalField(\n        max_digits=10, decimal_places=2, min_value=0, read_only=True\n    )\n\n    products = ProductListItemSerializer(\n        source=\"product_list.product_items\", many=True, read_only=True\n    )\n\n    title = serializers.SerializerMethodField(\"_get_title\")\n\n    def _get_title(self, instance):\n        return instance.title\n\n    product_sales = serializers.JSONField()\n", "path": "website/sales/api/v2/admin/serializers/shift.py"}], "after_files": [{"content": "from rest_framework import serializers\n\nfrom payments.api.v2.serializers.payment_amount import PaymentAmountSerializer\nfrom sales.models.product import ProductListItem\nfrom sales.models.shift import Shift\n\n\nclass ProductListItemSerializer(serializers.ModelSerializer):\n    \"\"\"Serializer for product list items.\"\"\"\n\n    class Meta:\n        model = ProductListItem\n        fields = (\"name\", \"price\", \"age_restricted\")\n        read_only_fields = (\"name\", \"price\", \"age_restricted\")\n\n    name = serializers.SerializerMethodField(\"_name\")\n    age_restricted = serializers.SerializerMethodField(\"_age_restricted\")\n\n    def _name(self, instance):\n        return instance.product.name\n\n    def _age_restricted(self, instance):\n        return instance.product.age_restricted\n\n\nclass ShiftSerializer(serializers.ModelSerializer):\n    \"\"\"Serializer for shifts.\"\"\"\n\n    class Meta:\n        model = Shift\n        fields = (\n            \"pk\",\n            \"title\",\n            \"locked\",\n            \"active\",\n            \"start\",\n            \"end\",\n            \"products\",\n            \"total_revenue\",\n            \"total_revenue_paid\",\n            \"num_orders\",\n            \"product_sales\",\n        )\n\n    total_revenue = PaymentAmountSerializer(min_value=0, read_only=True)\n    total_revenue_paid = PaymentAmountSerializer(min_value=0, read_only=True)\n\n    products = ProductListItemSerializer(\n        source=\"product_list.product_items\", many=True, read_only=True\n    )\n\n    title = serializers.SerializerMethodField(\"_get_title\")\n\n    def _get_title(self, instance):\n        return instance.title\n\n    product_sales = serializers.JSONField()\n", "path": "website/sales/api/v2/admin/serializers/shift.py"}]}