svc-infra 0.1.584__py3-none-any.whl → 0.1.586__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of svc-infra might be problematic. Click here for more details.
- svc_infra/api/fastapi/apf_payments/router.py +10 -12
- {svc_infra-0.1.584.dist-info → svc_infra-0.1.586.dist-info}/METADATA +1 -1
- {svc_infra-0.1.584.dist-info → svc_infra-0.1.586.dist-info}/RECORD +5 -5
- {svc_infra-0.1.584.dist-info → svc_infra-0.1.586.dist-info}/WHEEL +0 -0
- {svc_infra-0.1.584.dist-info → svc_infra-0.1.586.dist-info}/entry_points.txt +0 -0
|
@@ -76,6 +76,7 @@ async def get_service(session: SqlSessionDep) -> PaymentsService:
|
|
|
76
76
|
def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
77
77
|
routers: list[DualAPIRouter] = []
|
|
78
78
|
|
|
79
|
+
pub = public_router(prefix=prefix)
|
|
79
80
|
user = user_router(prefix=prefix)
|
|
80
81
|
svc = service_router(prefix=prefix)
|
|
81
82
|
prot = protected_router(prefix=prefix)
|
|
@@ -198,9 +199,6 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
198
199
|
|
|
199
200
|
routers.append(prot)
|
|
200
201
|
|
|
201
|
-
# PUBLIC webhooks
|
|
202
|
-
pub = public_router(prefix=prefix, tags=["payments"])
|
|
203
|
-
|
|
204
202
|
@pub.post(
|
|
205
203
|
"/webhooks/{provider}",
|
|
206
204
|
name="payments_webhook",
|
|
@@ -435,7 +433,7 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
435
433
|
return await svc.get_intent(provider_intent_id)
|
|
436
434
|
|
|
437
435
|
# STATEMENTS (rollup)
|
|
438
|
-
@
|
|
436
|
+
@prot.get(
|
|
439
437
|
"/statements/daily",
|
|
440
438
|
response_model=list[StatementRow],
|
|
441
439
|
name="payments_daily_statements",
|
|
@@ -629,7 +627,7 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
629
627
|
return out
|
|
630
628
|
|
|
631
629
|
# ===== Disputes =====
|
|
632
|
-
@
|
|
630
|
+
@prot.get(
|
|
633
631
|
"/disputes",
|
|
634
632
|
name="payments_list_disputes",
|
|
635
633
|
response_model=Paginated[DisputeOut],
|
|
@@ -646,7 +644,7 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
646
644
|
)
|
|
647
645
|
return ctx.wrap(items, next_cursor=next_cursor)
|
|
648
646
|
|
|
649
|
-
@
|
|
647
|
+
@prot.get(
|
|
650
648
|
"/disputes/{provider_dispute_id}",
|
|
651
649
|
name="payments_get_dispute",
|
|
652
650
|
response_model=DisputeOut,
|
|
@@ -655,7 +653,7 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
655
653
|
async def get_dispute(provider_dispute_id: str, svc: PaymentsService = Depends(get_service)):
|
|
656
654
|
return await svc.get_dispute(provider_dispute_id)
|
|
657
655
|
|
|
658
|
-
@
|
|
656
|
+
@prot.post(
|
|
659
657
|
"/disputes/{provider_dispute_id}/submit_evidence",
|
|
660
658
|
name="payments_submit_dispute_evidence",
|
|
661
659
|
dependencies=[Depends(require_idempotency_key)],
|
|
@@ -672,13 +670,13 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
672
670
|
return out
|
|
673
671
|
|
|
674
672
|
# ===== Balance & Payouts =====
|
|
675
|
-
@
|
|
673
|
+
@prot.get(
|
|
676
674
|
"/balance", name="payments_get_balance", response_model=BalanceSnapshotOut, tags=["Balance"]
|
|
677
675
|
)
|
|
678
676
|
async def get_balance(svc: PaymentsService = Depends(get_service)):
|
|
679
677
|
return await svc.get_balance_snapshot()
|
|
680
678
|
|
|
681
|
-
@
|
|
679
|
+
@prot.get(
|
|
682
680
|
"/payouts",
|
|
683
681
|
name="payments_list_payouts",
|
|
684
682
|
response_model=Paginated[PayoutOut],
|
|
@@ -787,7 +785,7 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
787
785
|
):
|
|
788
786
|
return await svc.get_product(provider_product_id)
|
|
789
787
|
|
|
790
|
-
@
|
|
788
|
+
@prot.get(
|
|
791
789
|
"/products",
|
|
792
790
|
response_model=Paginated[ProductOut],
|
|
793
791
|
name="payments_list_products",
|
|
@@ -821,7 +819,7 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
821
819
|
return out
|
|
822
820
|
|
|
823
821
|
# ===== Prices: get/list/update (active toggle) =====
|
|
824
|
-
@
|
|
822
|
+
@prot.get(
|
|
825
823
|
"/prices/{provider_price_id}",
|
|
826
824
|
response_model=PriceOut,
|
|
827
825
|
name="payments_get_price",
|
|
@@ -832,7 +830,7 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
|
|
|
832
830
|
):
|
|
833
831
|
return await svc.get_price(provider_price_id)
|
|
834
832
|
|
|
835
|
-
@
|
|
833
|
+
@prot.get(
|
|
836
834
|
"/prices",
|
|
837
835
|
response_model=Paginated[PriceOut],
|
|
838
836
|
name="payments_list_prices",
|
|
@@ -12,7 +12,7 @@ svc_infra/apf_payments/settings.py,sha256=VnNQbajbv843buUisqa82xOQ-f5JA8JzHD8o01
|
|
|
12
12
|
svc_infra/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
svc_infra/api/fastapi/__init__.py,sha256=VVdQjak74_wTDqmvL05_C97vIFugQxPVU-3JQEFBgR8,747
|
|
14
14
|
svc_infra/api/fastapi/apf_payments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
svc_infra/api/fastapi/apf_payments/router.py,sha256=
|
|
15
|
+
svc_infra/api/fastapi/apf_payments/router.py,sha256=cee_MQ7VBlcsc9oMN1L9s-IjdNENvYgjLWwPIeoGPEM,34889
|
|
16
16
|
svc_infra/api/fastapi/apf_payments/setup.py,sha256=PX-LHDiyu2eDuaw2m98VPUkF6EmXXRkbjRqh_gL8Kls,2263
|
|
17
17
|
svc_infra/api/fastapi/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
svc_infra/api/fastapi/auth/_cookies.py,sha256=U4heUmMnLezHx8U6ksuUEpSZ6sNMJcIO0gdLpmZ5FXw,1367
|
|
@@ -228,7 +228,7 @@ svc_infra/obs/templates/sidecars/railway/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
|
|
|
228
228
|
svc_infra/obs/templates/sidecars/railway/agent.yaml,sha256=hYv35yG92XEP_4joMFmMcVTD-4fG_zHitmChjreUJh4,516
|
|
229
229
|
svc_infra/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
230
230
|
svc_infra/utils.py,sha256=VX1yjTx61-YvAymyRhGy18DhybiVdPddiYD_FlKTbJU,952
|
|
231
|
-
svc_infra-0.1.
|
|
232
|
-
svc_infra-0.1.
|
|
233
|
-
svc_infra-0.1.
|
|
234
|
-
svc_infra-0.1.
|
|
231
|
+
svc_infra-0.1.586.dist-info/METADATA,sha256=4SPlQZV0C5x9xvRO_yiUSII9AcRksY1L3Wg6JzfasHM,3487
|
|
232
|
+
svc_infra-0.1.586.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
233
|
+
svc_infra-0.1.586.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
|
|
234
|
+
svc_infra-0.1.586.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|