inttegro.async_resources.apps
Generated public typing surface. Do not edit by hand.
1# Generated by scripts/generate_async_resources.py; do not edit by hand. 2"""Apps resource for managing the authenticated Inttegro application.""" 3from __future__ import annotations 4from ..async_http_client import AsyncHttpClient 5from inttegro.app.capabilities import Capabilities 6 7class AsyncApps: 8 """Application creation, lookup, and update operations. 9 10 Access this service as ``AsyncInttegroClient.apps``. Methods use the client's shared transport and return the typed resource shapes documented below. 11 """ 12 13 def __init__(self, http: AsyncHttpClient): 14 self.http = http 15 16 async def create(self, payload: dict): 17 """Create a Inttegro application. 18 19 API endpoint: ``/apps/create``. 20 21 Args: 22 payload (dict): Typed request object or equivalent request mapping for this operation. 23 24 Returns: 25 ``App`` decoded from the documented response shape. 26 27 Raises: 28 APIError: The API rejected the request or could not complete it. 29 NetworkError: The request could not reach the Inttegro API. 30 TimeoutError: The configured request deadline elapsed. 31 """ 32 return await self.http.post('/apps/create', payload) 33 34 async def lookup(self): 35 """Retrieve the application associated with the configured API key. 36 37 API endpoint: ``/apps/lookup``. 38 39 Returns: 40 ``App`` decoded from the documented response shape. 41 42 Raises: 43 APIError: The API rejected the request or could not complete it. 44 NetworkError: The request could not reach the Inttegro API. 45 TimeoutError: The configured request deadline elapsed. 46 """ 47 return await self.http.post('/apps/lookup', {}) 48 49 async def capabilities(self) -> Capabilities: 50 """Return the authenticated application's payment and payout capabilities.""" 51 return await self.http.post('/apps/capabilities', {}) 52 53 async def update(self, payload: dict): 54 """Update one or more attributes of the configured API key's application. 55 56 API endpoint: ``/apps/update``. 57 58 Args: 59 payload (dict): Typed request object or equivalent request mapping for this operation. 60 61 Returns: 62 ``App`` decoded from the documented response shape. 63 64 Raises: 65 APIError: The API rejected the request or could not complete it. 66 NetworkError: The request could not reach the Inttegro API. 67 TimeoutError: The configured request deadline elapsed. 68 """ 69 return await self.http.post('/apps/update', payload)
class
AsyncApps:
8class AsyncApps: 9 """Application creation, lookup, and update operations. 10 11 Access this service as ``AsyncInttegroClient.apps``. Methods use the client's shared transport and return the typed resource shapes documented below. 12 """ 13 14 def __init__(self, http: AsyncHttpClient): 15 self.http = http 16 17 async def create(self, payload: dict): 18 """Create a Inttegro application. 19 20 API endpoint: ``/apps/create``. 21 22 Args: 23 payload (dict): Typed request object or equivalent request mapping for this operation. 24 25 Returns: 26 ``App`` decoded from the documented response shape. 27 28 Raises: 29 APIError: The API rejected the request or could not complete it. 30 NetworkError: The request could not reach the Inttegro API. 31 TimeoutError: The configured request deadline elapsed. 32 """ 33 return await self.http.post('/apps/create', payload) 34 35 async def lookup(self): 36 """Retrieve the application associated with the configured API key. 37 38 API endpoint: ``/apps/lookup``. 39 40 Returns: 41 ``App`` decoded from the documented response shape. 42 43 Raises: 44 APIError: The API rejected the request or could not complete it. 45 NetworkError: The request could not reach the Inttegro API. 46 TimeoutError: The configured request deadline elapsed. 47 """ 48 return await self.http.post('/apps/lookup', {}) 49 50 async def capabilities(self) -> Capabilities: 51 """Return the authenticated application's payment and payout capabilities.""" 52 return await self.http.post('/apps/capabilities', {}) 53 54 async def update(self, payload: dict): 55 """Update one or more attributes of the configured API key's application. 56 57 API endpoint: ``/apps/update``. 58 59 Args: 60 payload (dict): Typed request object or equivalent request mapping for this operation. 61 62 Returns: 63 ``App`` decoded from the documented response shape. 64 65 Raises: 66 APIError: The API rejected the request or could not complete it. 67 NetworkError: The request could not reach the Inttegro API. 68 TimeoutError: The configured request deadline elapsed. 69 """ 70 return await self.http.post('/apps/update', payload)
Application creation, lookup, and update operations.
Access this service as AsyncInttegroClient.apps. Methods use the client's shared transport and return the typed resource shapes documented below.
17 async def create(self, payload: dict): 18 """Create a Inttegro application. 19 20 API endpoint: ``/apps/create``. 21 22 Args: 23 payload (dict): Typed request object or equivalent request mapping for this operation. 24 25 Returns: 26 ``App`` decoded from the documented response shape. 27 28 Raises: 29 APIError: The API rejected the request or could not complete it. 30 NetworkError: The request could not reach the Inttegro API. 31 TimeoutError: The configured request deadline elapsed. 32 """ 33 return await self.http.post('/apps/create', payload)
Create a Inttegro application.
API endpoint: /apps/create.
Arguments:
- payload (dict): Typed request object or equivalent request mapping for this operation.
Returns:
Appdecoded from the documented response shape.
Raises:
- APIError: The API rejected the request or could not complete it.
- NetworkError: The request could not reach the Inttegro API.
- TimeoutError: The configured request deadline elapsed.
35 async def lookup(self): 36 """Retrieve the application associated with the configured API key. 37 38 API endpoint: ``/apps/lookup``. 39 40 Returns: 41 ``App`` decoded from the documented response shape. 42 43 Raises: 44 APIError: The API rejected the request or could not complete it. 45 NetworkError: The request could not reach the Inttegro API. 46 TimeoutError: The configured request deadline elapsed. 47 """ 48 return await self.http.post('/apps/lookup', {})
Retrieve the application associated with the configured API key.
API endpoint: /apps/lookup.
Returns:
Appdecoded from the documented response shape.
Raises:
- APIError: The API rejected the request or could not complete it.
- NetworkError: The request could not reach the Inttegro API.
- TimeoutError: The configured request deadline elapsed.
50 async def capabilities(self) -> Capabilities: 51 """Return the authenticated application's payment and payout capabilities.""" 52 return await self.http.post('/apps/capabilities', {})
Return the authenticated application's payment and payout capabilities.
54 async def update(self, payload: dict): 55 """Update one or more attributes of the configured API key's application. 56 57 API endpoint: ``/apps/update``. 58 59 Args: 60 payload (dict): Typed request object or equivalent request mapping for this operation. 61 62 Returns: 63 ``App`` decoded from the documented response shape. 64 65 Raises: 66 APIError: The API rejected the request or could not complete it. 67 NetworkError: The request could not reach the Inttegro API. 68 TimeoutError: The configured request deadline elapsed. 69 """ 70 return await self.http.post('/apps/update', payload)
Update one or more attributes of the configured API key's application.
API endpoint: /apps/update.
Arguments:
- payload (dict): Typed request object or equivalent request mapping for this operation.
Returns:
Appdecoded from the documented response shape.
Raises:
- APIError: The API rejected the request or could not complete it.
- NetworkError: The request could not reach the Inttegro API.
- TimeoutError: The configured request deadline elapsed.