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.

@@ -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
- @svc.get(
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
- @svc.get(
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
- @svc.get(
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
- @svc.post(
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
- @svc.get(
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
- @svc.get(
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
- @svc.get(
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
- @svc.get(
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
- @svc.get(
833
+ @prot.get(
836
834
  "/prices",
837
835
  response_model=Paginated[PriceOut],
838
836
  name="payments_list_prices",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: svc-infra
3
- Version: 0.1.584
3
+ Version: 0.1.586
4
4
  Summary: Infrastructure for building and deploying prod-ready services
5
5
  License: MIT
6
6
  Keywords: fastapi,sqlalchemy,alembic,auth,infra,async,pydantic
@@ -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=XiVaAI9YKopio_PGH-nOmd-DAMzBDOT5WlFnZoX57No,34922
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.584.dist-info/METADATA,sha256=ApSZxDMPQ2IFT3Ja4h5nvOP-rKkcusjDWCsSoRtnWus,3487
232
- svc_infra-0.1.584.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
233
- svc_infra-0.1.584.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
234
- svc_infra-0.1.584.dist-info/RECORD,,
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,,