svc-infra 0.1.591__py3-none-any.whl → 0.1.592__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.

@@ -797,10 +797,3 @@ class PaymentsService:
797
797
 
798
798
  async def get_usage_record(self, usage_record_id: str) -> UsageRecordOut:
799
799
  return await self._get_adapter().get_usage_record(usage_record_id)
800
-
801
- async def delete_invoice_line_item(
802
- self, provider_invoice_id: str, provider_line_item_id: str
803
- ) -> InvoiceOut:
804
- return await self._get_adapter().delete_invoice_line_item(
805
- provider_invoice_id, provider_line_item_id
806
- )
@@ -985,28 +985,6 @@ def build_payments_routers(prefix: str = "/payments") -> list[DualAPIRouter]:
985
985
  ):
986
986
  return await svc.get_usage_record(usage_record_id)
987
987
 
988
- # --- Invoices: delete line item ---
989
- @prot.delete(
990
- "/invoices/{provider_invoice_id}/lines/{provider_line_item_id}",
991
- name="payments_delete_invoice_line_item",
992
- summary="Delete Invoice Line Item (draft invoices only)",
993
- response_model=InvoiceOut,
994
- dependencies=[Depends(require_idempotency_key)],
995
- tags=["Invoices"],
996
- )
997
- async def delete_invoice_line_item_endpoint(
998
- provider_invoice_id: str,
999
- provider_line_item_id: str,
1000
- svc: PaymentsService = Depends(get_service),
1001
- ):
1002
- """
1003
- Removes a line item from a DRAFT invoice only. For finalized invoices,
1004
- use `void` or `credit` flows instead.
1005
- """
1006
- out = await svc.delete_invoice_line_item(provider_invoice_id, provider_line_item_id)
1007
- await svc.session.flush()
1008
- return out
1009
-
1010
988
  # --- Canonical: remove local alias/association (non-destructive) ---
1011
989
  @prot.delete(
1012
990
  "/method_aliases/{alias_id}",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: svc-infra
3
- Version: 0.1.591
3
+ Version: 0.1.592
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
@@ -7,12 +7,12 @@ svc_infra/apf_payments/provider/base.py,sha256=1t5znglpGFhjt4zdbuzE5VlHvGarFwzH2
7
7
  svc_infra/apf_payments/provider/registry.py,sha256=NZ4pUkFcbXNtqWEpFeI3NwoKRYGWe9fVQakmlrVLTKE,878
8
8
  svc_infra/apf_payments/provider/stripe.py,sha256=Xb_UjdobbBzK-an9cO1jRWiP6OHvki5MDp6JnS6a1-I,34392
9
9
  svc_infra/apf_payments/schemas.py,sha256=1fdGnrXrm8Rmk9nwDsbcvrVIyPL2o8HwbZ7-KY9-yZo,8561
10
- svc_infra/apf_payments/service.py,sha256=bn3BTOTdfkJ4b0Z9cHuFHvlMcv9B1b2n0v-unveUplA,31060
10
+ svc_infra/apf_payments/service.py,sha256=YjSjR7xB51_Xvq_gxibBCaXwTP2UwsF2gUAANN_OJOs,30799
11
11
  svc_infra/apf_payments/settings.py,sha256=VnNQbajbv843buUisqa82xOQ-f5JA8JzHD8o01-yhPQ,1239
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=_9bqyZ9ZZsX43_b2LCghipPLkkHIEcswpR0yJxry-1U,34919
15
+ svc_infra/api/fastapi/apf_payments/router.py,sha256=zZM5gioXOHK4AfTGSmmqrsMNgqZ0AFBPxnN_at-DhNo,34071
16
16
  svc_infra/api/fastapi/apf_payments/setup.py,sha256=tTUEcsT4FE5hxKvdl-R1S8JwJEJ-7cjQfw3RyzdZRs8,2501
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.591.dist-info/METADATA,sha256=cCJ81CBhhMMND7aL8Kx9O3YBsC2oS2G42bZspnRIiPI,3487
232
- svc_infra-0.1.591.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
233
- svc_infra-0.1.591.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
234
- svc_infra-0.1.591.dist-info/RECORD,,
231
+ svc_infra-0.1.592.dist-info/METADATA,sha256=By-L5-w6xxikPaJ4DI1aZSLkDVgE-mBm2aNbZI6VO9c,3487
232
+ svc_infra-0.1.592.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
233
+ svc_infra-0.1.592.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
234
+ svc_infra-0.1.592.dist-info/RECORD,,