feat: billing cancel

This commit is contained in:
2024-08-09 05:22:39 +03:00
parent 97f835ffde
commit 2c9ff3b373
5 changed files with 49 additions and 1 deletions

View File

@@ -37,6 +37,17 @@ async def create_deal_bill(
user: CurrentUserDependency
):
return await BillingService(session).create_deal_billing(user, request)
@billing_router.post(
'/cancel-deal-bill',
operation_id='cancel_deal_bill',
response_model=CancelDealBillResponse
)
async def create_deal_bill(
session: SessionDependency,
request: CancelDealBillRequest,
user: CurrentUserDependency
):
return await BillingService(session).cancel_deal_billing(user, request)
@billing_router.get(