Skip to content

Commit 969844f

Browse files
feat: add LogsService for log management
Introduced LogsService to handle log entries with methods for retrieving and listing logs. Updated client and service initialization to include the new LogsService. Updated SDK manifest to reflect the addition of log-related methods.
1 parent f4f4850 commit 969844f

4 files changed

Lines changed: 33 additions & 1 deletion

File tree

lomi/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def __init__(
4343
self.customer_subscriptions = CustomerSubscriptionsService(self)
4444
self.discount_coupons = DiscountCouponsService(self)
4545
self.disputes = DisputesService(self)
46+
self.logs = LogsService(self)
4647
self.merchants = MerchantsService(self)
4748
self.meters = MetersService(self)
4849
self.organization = OrganizationService(self)

lomi/sdk_python_methods.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"generatedAt": "2026-06-30T10:04:38.745Z",
2+
"generatedAt": "2026-06-30T10:27:29.803Z",
33
"language": "python",
44
"naming": "ts_method_names_manifest_pep8_sdk_methods_are_snake_case_in_code",
55
"sdk": {
@@ -47,6 +47,10 @@
4747
"get",
4848
"list"
4949
],
50+
"logs": [
51+
"get",
52+
"list"
53+
],
5054
"merchants": [
5155
"get",
5256
"getArr",
@@ -195,6 +199,10 @@
195199
"get",
196200
"list"
197201
],
202+
"logs": [
203+
"get",
204+
"list"
205+
],
198206
"merchants": [
199207
"get",
200208
"get_arr",

lomi/services/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .customers import CustomersService
66
from .discount_coupons import DiscountCouponsService
77
from .disputes import DisputesService
8+
from .logs import LogsService
89
from .merchants import MerchantsService
910
from .meters import MetersService
1011
from .organization import OrganizationService

lomi/services/logs.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from __future__ import annotations
2+
3+
from typing import Any, Dict, Optional
4+
5+
from ..client_base import ClientBase
6+
7+
8+
class LogsService(ClientBase):
9+
"""Public merchant API — generated from OpenAPI allowlist."""
10+
11+
def get(self, type: str, id: str) -> Any:
12+
"""Get a log entry"""
13+
path = "/logs/{type}/{id}"
14+
path = path.replace("{type}", str(type))
15+
path = path.replace("{id}", str(id))
16+
return self._request("GET", path)
17+
18+
def list(self, params: Optional[Dict[str, Any]] = None) -> Any:
19+
"""List logs"""
20+
path = "/logs"
21+
return self._request("GET", path, params=params)
22+

0 commit comments

Comments
 (0)