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