Skip to content

Commit 484edd7

Browse files
committed
refactor: Remove product categories and change field names
1 parent ecb0845 commit 484edd7

File tree

21 files changed

+38
-346
lines changed

21 files changed

+38
-346
lines changed

.env.dev

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ node_modules/
88
# python local
99
.dynamodb/
1010
.env
11+
.env.dev
1112

1213
# generated
1314
out/

be/api/v1/endpoints/cart/checkout/post.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PaymentModel(BaseModel):
2525

2626

2727
class PostCheckoutResponseModel(BaseModel):
28-
orderId: str
28+
id: str
2929
email: str
3030
items: list[OrderItem]
3131
price: PriceModel
@@ -59,28 +59,28 @@ async def post_checkout(req: CheckoutRequestBodyModel):
5959
description=f"SCSE Merch Purchase:\n{description}"
6060
)
6161

62-
orderID = uuid.uuid4().__str__()
63-
orderDateTime = datetime.now().__str__()
62+
id = uuid.uuid4().__str__()
63+
dateTime = datetime.now().__str__()
6464
customerEmail = req.email
6565
transactionID = payment_intent.id
6666
paymentPlatform = "stripe"
67-
orderItems = items_products
67+
items = items_products
6868
status = OrderStatus.PENDING_PAYMENT
6969

7070
order = Order(
71-
orderID = orderID,
72-
orderDateTime = orderDateTime,
71+
id = id,
72+
dateTime = dateTime,
7373
customerEmail = customerEmail,
7474
transactionID = transactionID,
7575
paymentGateway = paymentPlatform,
76-
orderItems = orderItems,
76+
items = items,
7777
status = status
7878
)
7979

8080
dal_create_order(order)
8181

8282
return {
83-
"orderId": orderID,
83+
"id": id,
8484
"items": items_products,
8585
"price": price,
8686
"payment": {

be/api/v1/endpoints/product_categories/__init__.py

Whitespace-only changes.

be/api/v1/endpoints/product_categories/conftest.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

be/api/v1/endpoints/product_categories/delete.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

be/api/v1/endpoints/product_categories/delete_test.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

be/api/v1/endpoints/product_categories/get.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

be/api/v1/endpoints/product_categories/get_test.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

be/api/v1/endpoints/product_categories/post.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)