Merge modifications for more separate backend functions #69

Open
kscheidecker wants to merge 39 commits from backend/micro-services-restructuring into main
2 changed files with 4 additions and 3 deletions
Showing only changes of commit b4cac3a357 - Show all commits

View File

@@ -18,6 +18,7 @@ router = APIRouter()
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# TODO: add the return url in the API payload to redirect the user to the app.
@router.post("/orders/new") @router.post("/orders/new")
def create_order( def create_order(
user_id: str, user_id: str,

View File

@@ -49,18 +49,18 @@ order_data = {
"quantity": 1, "quantity": 1,
"unit_amount": { "unit_amount": {
"currency_code": "CHF", "currency_code": "CHF",
"value": "5.00" "value": "1.50"
} }
} }
], ],
"amount": { "amount": {
"currency_code": "CHF", "currency_code": "CHF",
"value": "5.00", "value": "1.50",
"breakdown": { "breakdown": {
"item_total": { "item_total": {
"currency_code": "CHF", "currency_code": "CHF",
"value": "5.00" "value": "1.50"
} }
} }
} }