Skip to content

Commit

Permalink
Removed stripe from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivntsng committed Dec 4, 2024
1 parent 10ff8bf commit fe89ee1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions www/app/routers/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CreateRefundsRequest(BaseModel):
amount: int


@router.put("/refunds/{order_id}", response_model=Order)
@router.put("/refunds/{order_id}", response_model=Order, include_in_schema=False)
async def refund_payment_intent(
order_id: str,
refund_request: CreateRefundsRequest,
Expand Down Expand Up @@ -117,7 +117,7 @@ async def refund_payment_intent(
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e))


@router.post("/webhook")
@router.post("/webhook", include_in_schema=False)
async def stripe_webhook(request: Request, crud: Crud = Depends(Crud.get)) -> dict[str, str]:
payload = await request.body()
sig_header = request.headers.get("stripe-signature")
Expand All @@ -140,7 +140,7 @@ async def stripe_webhook(request: Request, crud: Crud = Depends(Crud.get)) -> di
raise HTTPException(status_code=500, detail=str(e))


@router.post("/connect/webhook")
@router.post("/connect/webhook", include_in_schema=False)
async def stripe_connect_webhook(request: Request, crud: Crud = Depends(Crud.get)) -> dict[str, str]:
payload = await request.body()
sig_header = request.headers.get("stripe-signature")
Expand Down Expand Up @@ -303,7 +303,7 @@ class CreateCheckoutSessionResponse(BaseModel):
stripe_connect_account_id: str


@router.post("/checkout-session", response_model=CreateCheckoutSessionResponse)
@router.post("/checkout-session", response_model=CreateCheckoutSessionResponse, include_in_schema=False)
async def create_checkout_session(
request: CreateCheckoutSessionRequest,
user: Annotated[User, Depends(get_session_user_with_read_permission)],
Expand Down Expand Up @@ -463,7 +463,7 @@ class ProductResponse(BaseModel):
active: bool


@router.get("/get-product/{product_id}", response_model=ProductResponse)
@router.get("/get-product/{product_id}", response_model=ProductResponse, include_in_schema=False)
async def get_product(product_id: str, crud: Annotated[Crud, Depends(Crud.get)]) -> ProductResponse:
try:
listing = await crud.get_listing_by_stripe_product_id(product_id)
Expand Down Expand Up @@ -497,7 +497,7 @@ class CreateConnectAccountResponse(BaseModel):
account_id: str


@router.post("/connect/account", response_model=CreateConnectAccountResponse)
@router.post("/connect/account", response_model=CreateConnectAccountResponse, include_in_schema=False)
async def create_connect_account(
user: Annotated[User, Depends(get_session_user_with_write_permission)],
crud: Annotated[Crud, Depends(Crud.get)],
Expand Down Expand Up @@ -537,7 +537,7 @@ async def create_connect_account(
raise HTTPException(status_code=400, detail=str(e))


@router.post("/connect/account/session")
@router.post("/connect/account/session", include_in_schema=False)
async def create_connect_account_session(
user: Annotated[User, Depends(get_session_user_with_read_permission)],
account_id: str = Body(..., embed=True),
Expand Down Expand Up @@ -577,7 +577,7 @@ class DeleteTestAccountsResponse(BaseModel):
count: int


@router.post("/connect/delete/accounts", response_model=DeleteTestAccountsResponse)
@router.post("/connect/delete/accounts", response_model=DeleteTestAccountsResponse, include_in_schema=False)
async def delete_test_accounts(
user: Annotated[User, Depends(get_session_user_with_read_permission)],
crud: Annotated[Crud, Depends(Crud.get)],
Expand Down Expand Up @@ -681,7 +681,7 @@ class ProcessPreorderResponse(BaseModel):
checkout_session: dict[str, Any]


@router.post("/process/preorder/{order_id}", response_model=ProcessPreorderResponse)
@router.post("/process/preorder/{order_id}", response_model=ProcessPreorderResponse, include_in_schema=False)
async def process_preorder(
order_id: str,
crud: Annotated[Crud, Depends(Crud.get)],
Expand Down

0 comments on commit fe89ee1

Please sign in to comment.