11from typing import Optional
22
3+ from httpx import Response
4+
35from ...contracts import IssueDigitalCodeServiceAsyncInterface , IssueDigitalCodeServiceInterface
46from ...http_client import AsyncHttpClient , HttpClient
57from .endpoints import (
@@ -28,69 +30,69 @@ async def issue_digital_code(
2830 self ,
2931 query_params : Optional [dict ] = None ,
3032 body : Optional [IssueDigitalCodeEndpoint .RequestBody ] = None ,
31- ):
33+ ) -> Response :
3234 endpoint = IssueDigitalCodeEndpoint (body = body , query = query_params )
3335 return await self .client .request (endpoint = endpoint )
3436
3537 async def order_digital_code (
3638 self ,
3739 query_params : Optional [dict ] = None ,
3840 body : Optional [OrderDigitalCodeAsyncEndpoint .RequestBody ] = None ,
39- ):
41+ ) -> Response :
4042 endpoint = OrderDigitalCodeAsyncEndpoint (body = body , query = query_params )
4143 return await self .client .request (endpoint = endpoint )
4244
4345 async def check_digital_order (
4446 self ,
4547 query_params : Optional [dict ] = None ,
46- ):
48+ ) -> Response :
4749 endpoint = CheckDigitalOrderStatusAsyncEndpoint (query = query_params )
4850 return await self .client .request (endpoint = endpoint )
4951
5052 async def top_up_digital_code (
5153 self ,
5254 query_params : Optional [dict ] = None ,
5355 body : Optional [TopUpDigitalCodeEndpoint .RequestBody ] = None ,
54- ):
56+ ) -> Response :
5557 endpoint = TopUpDigitalCodeEndpoint (body = body , query = query_params )
5658 return await self .client .request (endpoint = endpoint )
5759
5860 async def cancel_digital_url (
5961 self ,
6062 query_params : Optional [dict ] = None ,
6163 body : Optional [CancelDigitalUrlEndpoint .RequestBody ] = None ,
62- ):
64+ ) -> Response :
6365 endpoint = CancelDigitalUrlEndpoint (body = body , query = query_params )
6466 return await self .client .request (endpoint = endpoint )
6567
6668 async def cancel_digital_code (
6769 self ,
6870 query_params : Optional [dict ] = None ,
6971 body : Optional [CancelDigitalCodeEndpoint .RequestBody ] = None ,
70- ):
72+ ) -> Response :
7173 endpoint = CancelDigitalCodeEndpoint (body = body , query = query_params )
7274 return await self .client .request (endpoint = endpoint )
7375
7476 async def check_balance (
7577 self ,
7678 query_params : Optional [dict ] = None ,
7779 body : Optional [CheckBalanceEndpoint .RequestBody ] = None ,
78- ):
80+ ) -> Response :
7981 endpoint = CheckBalanceEndpoint (body = body , query = query_params )
8082 return await self .client .request (endpoint = endpoint )
8183
8284 async def check_stock (
8385 self ,
8486 query_params : Optional [dict ] = None ,
85- ):
87+ ) -> Response :
8688 endpoint = CheckStockEndpoint (query = query_params )
8789 return await self .client .request (endpoint = endpoint )
8890
8991 async def reverse_digital_code (
9092 self ,
9193 query_params : Optional [dict ] = None ,
9294 body : Optional [ReverseDigitalCodeEndpoint .RequestBody ] = None ,
93- ):
95+ ) -> Response :
9496 endpoint = ReverseDigitalCodeEndpoint (body = body , query = query_params )
9597 return await self .client .request (endpoint = endpoint )
9698
@@ -108,68 +110,68 @@ def issue_digital_code(
108110 self ,
109111 query_params : Optional [dict ] = None ,
110112 body : Optional [IssueDigitalCodeEndpoint .RequestBody ] = None ,
111- ):
113+ ) -> Response :
112114 endpoint = IssueDigitalCodeEndpoint (body = body , query = query_params )
113115 return self .client .request (endpoint = endpoint )
114116
115117 def order_digital_code (
116118 self ,
117119 query_params : Optional [dict ] = None ,
118120 body : Optional [OrderDigitalCodeAsyncEndpoint .RequestBody ] = None ,
119- ):
121+ ) -> Response :
120122 endpoint = OrderDigitalCodeAsyncEndpoint (body = body , query = query_params )
121123 return self .client .request (endpoint = endpoint )
122124
123125 def check_digital_order (
124126 self ,
125127 query_params : Optional [dict ] = None ,
126- ):
128+ ) -> Response :
127129 endpoint = CheckDigitalOrderStatusAsyncEndpoint (query = query_params )
128130 return self .client .request (endpoint = endpoint )
129131
130132 def top_up_digital_code (
131133 self ,
132134 query_params : Optional [dict ] = None ,
133135 body : Optional [TopUpDigitalCodeEndpoint .RequestBody ] = None ,
134- ):
136+ ) -> Response :
135137 endpoint = TopUpDigitalCodeEndpoint (body = body , query = query_params )
136138 return self .client .request (endpoint = endpoint )
137139
138140 def cancel_digital_url (
139141 self ,
140142 query_params : Optional [dict ] = None ,
141143 body : Optional [CancelDigitalUrlEndpoint .RequestBody ] = None ,
142- ):
144+ ) -> Response :
143145 endpoint = CancelDigitalUrlEndpoint (body = body , query = query_params )
144146 return self .client .request (endpoint = endpoint )
145147
146148 def cancel_digital_code (
147149 self ,
148150 query_params : Optional [dict ] = None ,
149151 body : Optional [CancelDigitalCodeEndpoint .RequestBody ] = None ,
150- ):
152+ ) -> Response :
151153 endpoint = CancelDigitalCodeEndpoint (body = body , query = query_params )
152154 return self .client .request (endpoint = endpoint )
153155
154156 def reverse_digital_code (
155157 self ,
156158 query_params : Optional [dict ] = None ,
157159 body : Optional [ReverseDigitalCodeEndpoint .RequestBody ] = None ,
158- ):
160+ ) -> Response :
159161 endpoint = ReverseDigitalCodeEndpoint (body = body , query = query_params )
160162 return self .client .request (endpoint = endpoint )
161163
162164 def check_stock (
163165 self ,
164166 query_params : Optional [dict ] = None ,
165- ):
167+ ) -> Response :
166168 endpoint = CheckStockEndpoint (query = query_params )
167169 return self .client .request (endpoint = endpoint )
168170
169171 def check_balance (
170172 self ,
171173 query_params : Optional [dict ] = None ,
172174 body : Optional [CheckBalanceEndpoint .RequestBody ] = None ,
173- ):
175+ ) -> Response :
174176 endpoint = CheckBalanceEndpoint (body = body , query = query_params )
175177 return self .client .request (endpoint = endpoint )
0 commit comments