crypticorn 2.11.9__py3-none-any.whl → 2.12.0__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.
Files changed (29) hide show
  1. crypticorn/common/errors.py +4 -4
  2. crypticorn/common/exceptions.py +10 -0
  3. crypticorn/hive/client/__init__.py +1 -0
  4. crypticorn/hive/client/models/__init__.py +1 -0
  5. crypticorn/hive/client/models/api_error_identifier.py +2 -0
  6. crypticorn/hive/client/models/coin_info.py +106 -0
  7. crypticorn/hive/client/models/data_info.py +17 -6
  8. crypticorn/hive/client/models/target_info.py +20 -6
  9. crypticorn/pay/client/__init__.py +5 -3
  10. crypticorn/pay/client/api/admin_api.py +35 -33
  11. crypticorn/pay/client/api/now_payments_api.py +476 -5
  12. crypticorn/pay/client/api/payments_api.py +43 -264
  13. crypticorn/pay/client/api/products_api.py +16 -16
  14. crypticorn/pay/client/models/__init__.py +5 -3
  15. crypticorn/pay/client/models/api_error_identifier.py +117 -0
  16. crypticorn/pay/client/models/api_error_level.py +37 -0
  17. crypticorn/pay/client/models/api_error_type.py +37 -0
  18. crypticorn/pay/client/models/exception_detail.py +7 -4
  19. crypticorn/pay/client/models/{product_read.py → product.py} +4 -4
  20. crypticorn/pay/client/models/product_create.py +1 -1
  21. crypticorn/pay/client/models/scope.py +1 -0
  22. crypticorn/pay/client/models/{product_sub_read.py → subscription.py} +5 -5
  23. {crypticorn-2.11.9.dist-info → crypticorn-2.12.0.dist-info}/METADATA +1 -1
  24. {crypticorn-2.11.9.dist-info → crypticorn-2.12.0.dist-info}/RECORD +28 -25
  25. {crypticorn-2.11.9.dist-info → crypticorn-2.12.0.dist-info}/WHEEL +1 -1
  26. crypticorn/pay/client/models/response_getuptime.py +0 -159
  27. {crypticorn-2.11.9.dist-info → crypticorn-2.12.0.dist-info}/entry_points.txt +0 -0
  28. {crypticorn-2.11.9.dist-info → crypticorn-2.12.0.dist-info}/licenses/LICENSE +0 -0
  29. {crypticorn-2.11.9.dist-info → crypticorn-2.12.0.dist-info}/top_level.txt +0 -0
@@ -16,11 +16,11 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictInt, StrictStr
19
+ from pydantic import Field, StrictInt, StrictStr, field_validator
20
20
  from typing import List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from crypticorn.pay.client.models.payment import Payment
23
- from crypticorn.pay.client.models.product_sub_read import ProductSubRead
23
+ from crypticorn.pay.client.models.subscription import Subscription
24
24
 
25
25
  from crypticorn.pay.client.api_client import ApiClient, RequestSerialized
26
26
  from crypticorn.pay.client.api_response import ApiResponse
@@ -39,259 +39,6 @@ class PaymentsApi:
39
39
  api_client = ApiClient.get_default()
40
40
  self.api_client = api_client
41
41
 
42
- @validate_call
43
- async def get_latest_payment_from_invoice(
44
- self,
45
- invoice_id: Annotated[
46
- StrictStr,
47
- Field(description="The invoice ID to get the latest payment from"),
48
- ],
49
- _request_timeout: Union[
50
- None,
51
- Annotated[StrictFloat, Field(gt=0)],
52
- Tuple[
53
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
54
- ],
55
- ] = None,
56
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
- _content_type: Optional[StrictStr] = None,
58
- _headers: Optional[Dict[StrictStr, Any]] = None,
59
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
- ) -> Payment:
61
- """Get Latest Payment From Invoice
62
-
63
- Get the latest payment by a user from an invoice
64
-
65
- :param invoice_id: The invoice ID to get the latest payment from (required)
66
- :type invoice_id: str
67
- :param _request_timeout: timeout setting for this request. If one
68
- number provided, it will be total request
69
- timeout. It can also be a pair (tuple) of
70
- (connection, read) timeouts.
71
- :type _request_timeout: int, tuple(int, int), optional
72
- :param _request_auth: set to override the auth_settings for an a single
73
- request; this effectively ignores the
74
- authentication in the spec for a single request.
75
- :type _request_auth: dict, optional
76
- :param _content_type: force content-type for the request.
77
- :type _content_type: str, Optional
78
- :param _headers: set to override the headers for a single
79
- request; this effectively ignores the headers
80
- in the spec for a single request.
81
- :type _headers: dict, optional
82
- :param _host_index: set to override the host_index for a single
83
- request; this effectively ignores the host_index
84
- in the spec for a single request.
85
- :type _host_index: int, optional
86
- :return: Returns the result object.
87
- """ # noqa: E501
88
-
89
- _param = self._get_latest_payment_from_invoice_serialize(
90
- invoice_id=invoice_id,
91
- _request_auth=_request_auth,
92
- _content_type=_content_type,
93
- _headers=_headers,
94
- _host_index=_host_index,
95
- )
96
-
97
- _response_types_map: Dict[str, Optional[str]] = {
98
- "200": "Payment",
99
- }
100
- response_data = await self.api_client.call_api(
101
- *_param, _request_timeout=_request_timeout
102
- )
103
- await response_data.read()
104
- return self.api_client.response_deserialize(
105
- response_data=response_data,
106
- response_types_map=_response_types_map,
107
- ).data
108
-
109
- @validate_call
110
- async def get_latest_payment_from_invoice_with_http_info(
111
- self,
112
- invoice_id: Annotated[
113
- StrictStr,
114
- Field(description="The invoice ID to get the latest payment from"),
115
- ],
116
- _request_timeout: Union[
117
- None,
118
- Annotated[StrictFloat, Field(gt=0)],
119
- Tuple[
120
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
121
- ],
122
- ] = None,
123
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
- _content_type: Optional[StrictStr] = None,
125
- _headers: Optional[Dict[StrictStr, Any]] = None,
126
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
- ) -> ApiResponse[Payment]:
128
- """Get Latest Payment From Invoice
129
-
130
- Get the latest payment by a user from an invoice
131
-
132
- :param invoice_id: The invoice ID to get the latest payment from (required)
133
- :type invoice_id: str
134
- :param _request_timeout: timeout setting for this request. If one
135
- number provided, it will be total request
136
- timeout. It can also be a pair (tuple) of
137
- (connection, read) timeouts.
138
- :type _request_timeout: int, tuple(int, int), optional
139
- :param _request_auth: set to override the auth_settings for an a single
140
- request; this effectively ignores the
141
- authentication in the spec for a single request.
142
- :type _request_auth: dict, optional
143
- :param _content_type: force content-type for the request.
144
- :type _content_type: str, Optional
145
- :param _headers: set to override the headers for a single
146
- request; this effectively ignores the headers
147
- in the spec for a single request.
148
- :type _headers: dict, optional
149
- :param _host_index: set to override the host_index for a single
150
- request; this effectively ignores the host_index
151
- in the spec for a single request.
152
- :type _host_index: int, optional
153
- :return: Returns the result object.
154
- """ # noqa: E501
155
-
156
- _param = self._get_latest_payment_from_invoice_serialize(
157
- invoice_id=invoice_id,
158
- _request_auth=_request_auth,
159
- _content_type=_content_type,
160
- _headers=_headers,
161
- _host_index=_host_index,
162
- )
163
-
164
- _response_types_map: Dict[str, Optional[str]] = {
165
- "200": "Payment",
166
- }
167
- response_data = await self.api_client.call_api(
168
- *_param, _request_timeout=_request_timeout
169
- )
170
- await response_data.read()
171
- return self.api_client.response_deserialize(
172
- response_data=response_data,
173
- response_types_map=_response_types_map,
174
- )
175
-
176
- @validate_call
177
- async def get_latest_payment_from_invoice_without_preload_content(
178
- self,
179
- invoice_id: Annotated[
180
- StrictStr,
181
- Field(description="The invoice ID to get the latest payment from"),
182
- ],
183
- _request_timeout: Union[
184
- None,
185
- Annotated[StrictFloat, Field(gt=0)],
186
- Tuple[
187
- Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
188
- ],
189
- ] = None,
190
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
191
- _content_type: Optional[StrictStr] = None,
192
- _headers: Optional[Dict[StrictStr, Any]] = None,
193
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
194
- ) -> RESTResponseType:
195
- """Get Latest Payment From Invoice
196
-
197
- Get the latest payment by a user from an invoice
198
-
199
- :param invoice_id: The invoice ID to get the latest payment from (required)
200
- :type invoice_id: str
201
- :param _request_timeout: timeout setting for this request. If one
202
- number provided, it will be total request
203
- timeout. It can also be a pair (tuple) of
204
- (connection, read) timeouts.
205
- :type _request_timeout: int, tuple(int, int), optional
206
- :param _request_auth: set to override the auth_settings for an a single
207
- request; this effectively ignores the
208
- authentication in the spec for a single request.
209
- :type _request_auth: dict, optional
210
- :param _content_type: force content-type for the request.
211
- :type _content_type: str, Optional
212
- :param _headers: set to override the headers for a single
213
- request; this effectively ignores the headers
214
- in the spec for a single request.
215
- :type _headers: dict, optional
216
- :param _host_index: set to override the host_index for a single
217
- request; this effectively ignores the host_index
218
- in the spec for a single request.
219
- :type _host_index: int, optional
220
- :return: Returns the result object.
221
- """ # noqa: E501
222
-
223
- _param = self._get_latest_payment_from_invoice_serialize(
224
- invoice_id=invoice_id,
225
- _request_auth=_request_auth,
226
- _content_type=_content_type,
227
- _headers=_headers,
228
- _host_index=_host_index,
229
- )
230
-
231
- _response_types_map: Dict[str, Optional[str]] = {
232
- "200": "Payment",
233
- }
234
- response_data = await self.api_client.call_api(
235
- *_param, _request_timeout=_request_timeout
236
- )
237
- return response_data.response
238
-
239
- def _get_latest_payment_from_invoice_serialize(
240
- self,
241
- invoice_id,
242
- _request_auth,
243
- _content_type,
244
- _headers,
245
- _host_index,
246
- ) -> RequestSerialized:
247
-
248
- _host = None
249
-
250
- _collection_formats: Dict[str, str] = {}
251
-
252
- _path_params: Dict[str, str] = {}
253
- _query_params: List[Tuple[str, str]] = []
254
- _header_params: Dict[str, Optional[str]] = _headers or {}
255
- _form_params: List[Tuple[str, str]] = []
256
- _files: Dict[
257
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
258
- ] = {}
259
- _body_params: Optional[bytes] = None
260
-
261
- # process the path parameters
262
- # process the query parameters
263
- if invoice_id is not None:
264
-
265
- _query_params.append(("invoice_id", invoice_id))
266
-
267
- # process the header parameters
268
- # process the form parameters
269
- # process the body parameter
270
-
271
- # set the HTTP header `Accept`
272
- if "Accept" not in _header_params:
273
- _header_params["Accept"] = self.api_client.select_header_accept(
274
- ["application/json"]
275
- )
276
-
277
- # authentication setting
278
- _auth_settings: List[str] = ["HTTPBearer"]
279
-
280
- return self.api_client.param_serialize(
281
- method="GET",
282
- resource_path="/payments",
283
- path_params=_path_params,
284
- query_params=_query_params,
285
- header_params=_header_params,
286
- body=_body_params,
287
- post_params=_form_params,
288
- files=_files,
289
- auth_settings=_auth_settings,
290
- collection_formats=_collection_formats,
291
- _host=_host,
292
- _request_auth=_request_auth,
293
- )
294
-
295
42
  @validate_call
296
43
  async def get_payment_history(
297
44
  self,
@@ -319,7 +66,7 @@ class PaymentsApi:
319
66
  _headers: Optional[Dict[StrictStr, Any]] = None,
320
67
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
321
68
  ) -> List[Payment]:
322
- """Get Payments
69
+ """Get Payment History
323
70
 
324
71
  Get the combined payment history for a user across all payment services.
325
72
 
@@ -397,7 +144,7 @@ class PaymentsApi:
397
144
  _headers: Optional[Dict[StrictStr, Any]] = None,
398
145
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
399
146
  ) -> ApiResponse[List[Payment]]:
400
- """Get Payments
147
+ """Get Payment History
401
148
 
402
149
  Get the combined payment history for a user across all payment services.
403
150
 
@@ -475,7 +222,7 @@ class PaymentsApi:
475
222
  _headers: Optional[Dict[StrictStr, Any]] = None,
476
223
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
477
224
  ) -> RESTResponseType:
478
- """Get Payments
225
+ """Get Payment History
479
226
 
480
227
  Get the combined payment history for a user across all payment services.
481
228
 
@@ -566,7 +313,7 @@ class PaymentsApi:
566
313
  )
567
314
 
568
315
  # authentication setting
569
- _auth_settings: List[str] = ["HTTPBearer"]
316
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
570
317
 
571
318
  return self.api_client.param_serialize(
572
319
  method="GET",
@@ -592,6 +339,12 @@ class PaymentsApi:
592
339
  description="The user ID to get subscriptions for. Defaults to the authenticated user."
593
340
  ),
594
341
  ] = None,
342
+ state: Annotated[
343
+ Optional[StrictStr],
344
+ Field(
345
+ description="The state of the subscriptions to get. Defaults to all states."
346
+ ),
347
+ ] = None,
595
348
  _request_timeout: Union[
596
349
  None,
597
350
  Annotated[StrictFloat, Field(gt=0)],
@@ -603,13 +356,15 @@ class PaymentsApi:
603
356
  _content_type: Optional[StrictStr] = None,
604
357
  _headers: Optional[Dict[StrictStr, Any]] = None,
605
358
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
606
- ) -> List[ProductSubRead]:
359
+ ) -> List[Subscription]:
607
360
  """Get Subscriptions
608
361
 
609
362
  Get all subscriptions for a user. Subscriptions are the products a user has subscribed to. Returns both active and inactive subscriptions.
610
363
 
611
364
  :param user_id: The user ID to get subscriptions for. Defaults to the authenticated user.
612
365
  :type user_id: str
366
+ :param state: The state of the subscriptions to get. Defaults to all states.
367
+ :type state: str
613
368
  :param _request_timeout: timeout setting for this request. If one
614
369
  number provided, it will be total request
615
370
  timeout. It can also be a pair (tuple) of
@@ -634,6 +389,7 @@ class PaymentsApi:
634
389
 
635
390
  _param = self._get_subscriptions_serialize(
636
391
  user_id=user_id,
392
+ state=state,
637
393
  _request_auth=_request_auth,
638
394
  _content_type=_content_type,
639
395
  _headers=_headers,
@@ -641,7 +397,7 @@ class PaymentsApi:
641
397
  )
642
398
 
643
399
  _response_types_map: Dict[str, Optional[str]] = {
644
- "200": "List[ProductSubRead]",
400
+ "200": "List[Subscription]",
645
401
  }
646
402
  response_data = await self.api_client.call_api(
647
403
  *_param, _request_timeout=_request_timeout
@@ -661,6 +417,12 @@ class PaymentsApi:
661
417
  description="The user ID to get subscriptions for. Defaults to the authenticated user."
662
418
  ),
663
419
  ] = None,
420
+ state: Annotated[
421
+ Optional[StrictStr],
422
+ Field(
423
+ description="The state of the subscriptions to get. Defaults to all states."
424
+ ),
425
+ ] = None,
664
426
  _request_timeout: Union[
665
427
  None,
666
428
  Annotated[StrictFloat, Field(gt=0)],
@@ -672,13 +434,15 @@ class PaymentsApi:
672
434
  _content_type: Optional[StrictStr] = None,
673
435
  _headers: Optional[Dict[StrictStr, Any]] = None,
674
436
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
675
- ) -> ApiResponse[List[ProductSubRead]]:
437
+ ) -> ApiResponse[List[Subscription]]:
676
438
  """Get Subscriptions
677
439
 
678
440
  Get all subscriptions for a user. Subscriptions are the products a user has subscribed to. Returns both active and inactive subscriptions.
679
441
 
680
442
  :param user_id: The user ID to get subscriptions for. Defaults to the authenticated user.
681
443
  :type user_id: str
444
+ :param state: The state of the subscriptions to get. Defaults to all states.
445
+ :type state: str
682
446
  :param _request_timeout: timeout setting for this request. If one
683
447
  number provided, it will be total request
684
448
  timeout. It can also be a pair (tuple) of
@@ -703,6 +467,7 @@ class PaymentsApi:
703
467
 
704
468
  _param = self._get_subscriptions_serialize(
705
469
  user_id=user_id,
470
+ state=state,
706
471
  _request_auth=_request_auth,
707
472
  _content_type=_content_type,
708
473
  _headers=_headers,
@@ -710,7 +475,7 @@ class PaymentsApi:
710
475
  )
711
476
 
712
477
  _response_types_map: Dict[str, Optional[str]] = {
713
- "200": "List[ProductSubRead]",
478
+ "200": "List[Subscription]",
714
479
  }
715
480
  response_data = await self.api_client.call_api(
716
481
  *_param, _request_timeout=_request_timeout
@@ -730,6 +495,12 @@ class PaymentsApi:
730
495
  description="The user ID to get subscriptions for. Defaults to the authenticated user."
731
496
  ),
732
497
  ] = None,
498
+ state: Annotated[
499
+ Optional[StrictStr],
500
+ Field(
501
+ description="The state of the subscriptions to get. Defaults to all states."
502
+ ),
503
+ ] = None,
733
504
  _request_timeout: Union[
734
505
  None,
735
506
  Annotated[StrictFloat, Field(gt=0)],
@@ -748,6 +519,8 @@ class PaymentsApi:
748
519
 
749
520
  :param user_id: The user ID to get subscriptions for. Defaults to the authenticated user.
750
521
  :type user_id: str
522
+ :param state: The state of the subscriptions to get. Defaults to all states.
523
+ :type state: str
751
524
  :param _request_timeout: timeout setting for this request. If one
752
525
  number provided, it will be total request
753
526
  timeout. It can also be a pair (tuple) of
@@ -772,6 +545,7 @@ class PaymentsApi:
772
545
 
773
546
  _param = self._get_subscriptions_serialize(
774
547
  user_id=user_id,
548
+ state=state,
775
549
  _request_auth=_request_auth,
776
550
  _content_type=_content_type,
777
551
  _headers=_headers,
@@ -779,7 +553,7 @@ class PaymentsApi:
779
553
  )
780
554
 
781
555
  _response_types_map: Dict[str, Optional[str]] = {
782
- "200": "List[ProductSubRead]",
556
+ "200": "List[Subscription]",
783
557
  }
784
558
  response_data = await self.api_client.call_api(
785
559
  *_param, _request_timeout=_request_timeout
@@ -789,6 +563,7 @@ class PaymentsApi:
789
563
  def _get_subscriptions_serialize(
790
564
  self,
791
565
  user_id,
566
+ state,
792
567
  _request_auth,
793
568
  _content_type,
794
569
  _headers,
@@ -814,6 +589,10 @@ class PaymentsApi:
814
589
 
815
590
  _query_params.append(("user_id", user_id))
816
591
 
592
+ if state is not None:
593
+
594
+ _query_params.append(("state", state))
595
+
817
596
  # process the header parameters
818
597
  # process the form parameters
819
598
  # process the body parameter
@@ -19,8 +19,8 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictInt, StrictStr
20
20
  from typing import List, Optional
21
21
  from typing_extensions import Annotated
22
+ from crypticorn.pay.client.models.product import Product
22
23
  from crypticorn.pay.client.models.product_create import ProductCreate
23
- from crypticorn.pay.client.models.product_read import ProductRead
24
24
  from crypticorn.pay.client.models.product_update import ProductUpdate
25
25
 
26
26
  from crypticorn.pay.client.api_client import ApiClient, RequestSerialized
@@ -55,7 +55,7 @@ class ProductsApi:
55
55
  _content_type: Optional[StrictStr] = None,
56
56
  _headers: Optional[Dict[StrictStr, Any]] = None,
57
57
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
- ) -> ProductRead:
58
+ ) -> Product:
59
59
  """Create Product
60
60
 
61
61
  Create a new product
@@ -93,7 +93,7 @@ class ProductsApi:
93
93
  )
94
94
 
95
95
  _response_types_map: Dict[str, Optional[str]] = {
96
- "201": "ProductRead",
96
+ "201": "Product",
97
97
  }
98
98
  response_data = await self.api_client.call_api(
99
99
  *_param, _request_timeout=_request_timeout
@@ -119,7 +119,7 @@ class ProductsApi:
119
119
  _content_type: Optional[StrictStr] = None,
120
120
  _headers: Optional[Dict[StrictStr, Any]] = None,
121
121
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
122
- ) -> ApiResponse[ProductRead]:
122
+ ) -> ApiResponse[Product]:
123
123
  """Create Product
124
124
 
125
125
  Create a new product
@@ -157,7 +157,7 @@ class ProductsApi:
157
157
  )
158
158
 
159
159
  _response_types_map: Dict[str, Optional[str]] = {
160
- "201": "ProductRead",
160
+ "201": "Product",
161
161
  }
162
162
  response_data = await self.api_client.call_api(
163
163
  *_param, _request_timeout=_request_timeout
@@ -221,7 +221,7 @@ class ProductsApi:
221
221
  )
222
222
 
223
223
  _response_types_map: Dict[str, Optional[str]] = {
224
- "201": "ProductRead",
224
+ "201": "Product",
225
225
  }
226
226
  response_data = await self.api_client.call_api(
227
227
  *_param, _request_timeout=_request_timeout
@@ -318,7 +318,7 @@ class ProductsApi:
318
318
  _content_type: Optional[StrictStr] = None,
319
319
  _headers: Optional[Dict[StrictStr, Any]] = None,
320
320
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
321
- ) -> List[ProductRead]:
321
+ ) -> List[Product]:
322
322
  """Get Products
323
323
 
324
324
  Get all software products from Crypticorn
@@ -359,7 +359,7 @@ class ProductsApi:
359
359
  )
360
360
 
361
361
  _response_types_map: Dict[str, Optional[str]] = {
362
- "200": "List[ProductRead]",
362
+ "200": "List[Product]",
363
363
  }
364
364
  response_data = await self.api_client.call_api(
365
365
  *_param, _request_timeout=_request_timeout
@@ -396,7 +396,7 @@ class ProductsApi:
396
396
  _content_type: Optional[StrictStr] = None,
397
397
  _headers: Optional[Dict[StrictStr, Any]] = None,
398
398
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
399
- ) -> ApiResponse[List[ProductRead]]:
399
+ ) -> ApiResponse[List[Product]]:
400
400
  """Get Products
401
401
 
402
402
  Get all software products from Crypticorn
@@ -437,7 +437,7 @@ class ProductsApi:
437
437
  )
438
438
 
439
439
  _response_types_map: Dict[str, Optional[str]] = {
440
- "200": "List[ProductRead]",
440
+ "200": "List[Product]",
441
441
  }
442
442
  response_data = await self.api_client.call_api(
443
443
  *_param, _request_timeout=_request_timeout
@@ -515,7 +515,7 @@ class ProductsApi:
515
515
  )
516
516
 
517
517
  _response_types_map: Dict[str, Optional[str]] = {
518
- "200": "List[ProductRead]",
518
+ "200": "List[Product]",
519
519
  }
520
520
  response_data = await self.api_client.call_api(
521
521
  *_param, _request_timeout=_request_timeout
@@ -599,7 +599,7 @@ class ProductsApi:
599
599
  _content_type: Optional[StrictStr] = None,
600
600
  _headers: Optional[Dict[StrictStr, Any]] = None,
601
601
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
602
- ) -> ProductRead:
602
+ ) -> Product:
603
603
  """Update Product
604
604
 
605
605
  Update an existing product
@@ -640,7 +640,7 @@ class ProductsApi:
640
640
  )
641
641
 
642
642
  _response_types_map: Dict[str, Optional[str]] = {
643
- "200": "ProductRead",
643
+ "200": "Product",
644
644
  }
645
645
  response_data = await self.api_client.call_api(
646
646
  *_param, _request_timeout=_request_timeout
@@ -667,7 +667,7 @@ class ProductsApi:
667
667
  _content_type: Optional[StrictStr] = None,
668
668
  _headers: Optional[Dict[StrictStr, Any]] = None,
669
669
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
670
- ) -> ApiResponse[ProductRead]:
670
+ ) -> ApiResponse[Product]:
671
671
  """Update Product
672
672
 
673
673
  Update an existing product
@@ -708,7 +708,7 @@ class ProductsApi:
708
708
  )
709
709
 
710
710
  _response_types_map: Dict[str, Optional[str]] = {
711
- "200": "ProductRead",
711
+ "200": "Product",
712
712
  }
713
713
  response_data = await self.api_client.call_api(
714
714
  *_param, _request_timeout=_request_timeout
@@ -776,7 +776,7 @@ class ProductsApi:
776
776
  )
777
777
 
778
778
  _response_types_map: Dict[str, Optional[str]] = {
779
- "200": "ProductRead",
779
+ "200": "Product",
780
780
  }
781
781
  response_data = await self.api_client.call_api(
782
782
  *_param, _request_timeout=_request_timeout
@@ -14,16 +14,18 @@ Do not edit the class manually.
14
14
 
15
15
 
16
16
  # import models into model package
17
+ from crypticorn.pay.client.models.api_error_identifier import ApiErrorIdentifier
18
+ from crypticorn.pay.client.models.api_error_level import ApiErrorLevel
19
+ from crypticorn.pay.client.models.api_error_type import ApiErrorType
17
20
  from crypticorn.pay.client.models.exception_detail import ExceptionDetail
18
21
  from crypticorn.pay.client.models.log_level import LogLevel
19
22
  from crypticorn.pay.client.models.now_create_invoice_req import NowCreateInvoiceReq
20
23
  from crypticorn.pay.client.models.now_create_invoice_res import NowCreateInvoiceRes
21
24
  from crypticorn.pay.client.models.payment import Payment
22
25
  from crypticorn.pay.client.models.payment_status import PaymentStatus
26
+ from crypticorn.pay.client.models.product import Product
23
27
  from crypticorn.pay.client.models.product_create import ProductCreate
24
- from crypticorn.pay.client.models.product_read import ProductRead
25
- from crypticorn.pay.client.models.product_sub_read import ProductSubRead
26
28
  from crypticorn.pay.client.models.product_update import ProductUpdate
27
29
  from crypticorn.pay.client.models.provider import Provider
28
- from crypticorn.pay.client.models.response_getuptime import ResponseGetuptime
29
30
  from crypticorn.pay.client.models.scope import Scope
31
+ from crypticorn.pay.client.models.subscription import Subscription