Merge modifications for more separate backend functions #69
| @@ -42,6 +42,7 @@ class Item(BaseModel): | |||||||
|     name: str |     name: str | ||||||
|     description: str |     description: str | ||||||
|     unit_price: float |     unit_price: float | ||||||
|  |     anyway_credits: int | ||||||
|  |  | ||||||
|  |  | ||||||
| def item_from_sql(item_id: str): | def item_from_sql(item_id: str): | ||||||
| @@ -59,7 +60,8 @@ def item_from_sql(item_id: str): | |||||||
|         id = '12345678', |         id = '12345678', | ||||||
|         name = 'test_item', |         name = 'test_item', | ||||||
|         description = 'lorem ipsum', |         description = 'lorem ipsum', | ||||||
|         unit_price = 420 |         unit_price = 420, | ||||||
|  |         anyway_credits = 99 | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -290,6 +292,9 @@ class PaypalHandler: | |||||||
|         # currency      : order_request.currency |         # currency      : order_request.currency | ||||||
|         # updated_at    : order_request.created_at |         # updated_at    : order_request.created_at | ||||||
|  |  | ||||||
|  |         # Now we can increment the supabase balance by so many credits as in the balance. | ||||||
|  |         #TODO still | ||||||
|  |  | ||||||
|         return order_response.json() |         return order_response.json() | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user