addresses and pricing
All checks were successful
Deploy App to Docker / deploy (push) Successful in 1m30s

This commit is contained in:
2025-04-07 16:08:18 -04:00
parent f59f0f350c
commit 9021151b74
7 changed files with 320 additions and 9 deletions

View File

@@ -317,18 +317,16 @@ async def update_cookies(
detail=f"Failed to update cookies: {str(e)}"
)
### DEPRECATED ###
class TCGPlayerOrderRequest(BaseModel):
order_ids: List[str]
@router.post("/processOrders", response_model=ProcessOrdersResponse)
@router.get("/processOrders", response_model=dict)
async def process_orders(
body: TCGPlayerOrderRequest,
tcgplayer_api_service: TCGPlayerAPIService = Depends(get_tcgplayer_api_service),
) -> ProcessOrdersResponse:
"""Process TCGPlayer orders."""
try:
orders = tcgplayer_api_service.process_orders(body.order_ids)
orders = tcgplayer_api_service.process_open_orders()
return ProcessOrdersResponse(
status_code=200,
success=True,
@@ -337,5 +335,3 @@ async def process_orders(
except Exception as e:
logger.error(f"Process orders failed: {str(e)}")
raise HTTPException(status_code=400, detail=str(e))
### END DEPRECATED ###