crypticorn 2.1.3__py3-none-any.whl → 2.1.5__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 (32) hide show
  1. crypticorn/common/errors.py +215 -252
  2. crypticorn/common/sorter.py +38 -0
  3. crypticorn/pay/client/__init__.py +1 -0
  4. crypticorn/pay/client/api/now_payments_api.py +3 -16
  5. crypticorn/pay/client/api/payments_api.py +0 -42
  6. crypticorn/pay/client/api/products_api.py +3 -42
  7. crypticorn/pay/client/configuration.py +2 -1
  8. crypticorn/pay/client/models/__init__.py +1 -0
  9. crypticorn/pay/client/models/body_create_now_invoice.py +98 -0
  10. crypticorn/{trade/client/models/update_notification.py → pay/client/models/body_create_product.py} +20 -17
  11. crypticorn/pay/client/models/body_get_products.py +87 -0
  12. crypticorn/pay/client/models/body_handle_now_webhook.py +98 -0
  13. crypticorn/pay/client/models/body_update_product.py +98 -0
  14. crypticorn/pay/client/models/product_model.py +9 -0
  15. crypticorn/pay/client/models/scope.py +56 -0
  16. crypticorn/trade/client/api/api_keys_api.py +5 -70
  17. crypticorn/trade/client/api/bots_api.py +4 -56
  18. crypticorn/trade/client/api/exchanges_api.py +2 -19
  19. crypticorn/trade/client/api/futures_trading_panel_api.py +21 -89
  20. crypticorn/trade/client/api/notifications_api.py +6 -87
  21. crypticorn/trade/client/api/orders_api.py +2 -15
  22. crypticorn/trade/client/api/strategies_api.py +4 -56
  23. crypticorn/trade/client/api/trading_actions_api.py +1 -14
  24. crypticorn/trade/client/configuration.py +2 -1
  25. crypticorn/trade/client/models/api_error_identifier.py +49 -43
  26. crypticorn/trade/client/models/api_error_level.py +2 -2
  27. {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/METADATA +3 -3
  28. {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/RECORD +30 -26
  29. crypticorn/trade/client/models/notification_type.py +0 -37
  30. crypticorn/trade/client/models/strategy_model.py +0 -158
  31. {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/WHEEL +0 -0
  32. {crypticorn-2.1.3.dist-info → crypticorn-2.1.5.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import Field, StrictStr
20
- from typing import Any, Optional
20
+ from typing import Any
21
21
  from typing_extensions import Annotated
22
22
  from crypticorn.pay.client.models.now_api_status_res import NowAPIStatusRes
23
23
  from crypticorn.pay.client.models.now_create_invoice_req import NowCreateInvoiceReq
@@ -45,7 +45,6 @@ class NOWPaymentsApi:
45
45
  async def create_now_invoice(
46
46
  self,
47
47
  now_create_invoice_req: NowCreateInvoiceReq,
48
- access_token: Optional[StrictStr] = None,
49
48
  _request_timeout: Union[
50
49
  None,
51
50
  Annotated[StrictFloat, Field(gt=0)],
@@ -64,8 +63,6 @@ class NOWPaymentsApi:
64
63
 
65
64
  :param now_create_invoice_req: (required)
66
65
  :type now_create_invoice_req: NowCreateInvoiceReq
67
- :param access_token:
68
- :type access_token: str
69
66
  :param _request_timeout: timeout setting for this request. If one
70
67
  number provided, it will be total request
71
68
  timeout. It can also be a pair (tuple) of
@@ -90,7 +87,6 @@ class NOWPaymentsApi:
90
87
 
91
88
  _param = self._create_now_invoice_serialize(
92
89
  now_create_invoice_req=now_create_invoice_req,
93
- access_token=access_token,
94
90
  _request_auth=_request_auth,
95
91
  _content_type=_content_type,
96
92
  _headers=_headers,
@@ -114,7 +110,6 @@ class NOWPaymentsApi:
114
110
  async def create_now_invoice_with_http_info(
115
111
  self,
116
112
  now_create_invoice_req: NowCreateInvoiceReq,
117
- access_token: Optional[StrictStr] = None,
118
113
  _request_timeout: Union[
119
114
  None,
120
115
  Annotated[StrictFloat, Field(gt=0)],
@@ -133,8 +128,6 @@ class NOWPaymentsApi:
133
128
 
134
129
  :param now_create_invoice_req: (required)
135
130
  :type now_create_invoice_req: NowCreateInvoiceReq
136
- :param access_token:
137
- :type access_token: str
138
131
  :param _request_timeout: timeout setting for this request. If one
139
132
  number provided, it will be total request
140
133
  timeout. It can also be a pair (tuple) of
@@ -159,7 +152,6 @@ class NOWPaymentsApi:
159
152
 
160
153
  _param = self._create_now_invoice_serialize(
161
154
  now_create_invoice_req=now_create_invoice_req,
162
- access_token=access_token,
163
155
  _request_auth=_request_auth,
164
156
  _content_type=_content_type,
165
157
  _headers=_headers,
@@ -183,7 +175,6 @@ class NOWPaymentsApi:
183
175
  async def create_now_invoice_without_preload_content(
184
176
  self,
185
177
  now_create_invoice_req: NowCreateInvoiceReq,
186
- access_token: Optional[StrictStr] = None,
187
178
  _request_timeout: Union[
188
179
  None,
189
180
  Annotated[StrictFloat, Field(gt=0)],
@@ -202,8 +193,6 @@ class NOWPaymentsApi:
202
193
 
203
194
  :param now_create_invoice_req: (required)
204
195
  :type now_create_invoice_req: NowCreateInvoiceReq
205
- :param access_token:
206
- :type access_token: str
207
196
  :param _request_timeout: timeout setting for this request. If one
208
197
  number provided, it will be total request
209
198
  timeout. It can also be a pair (tuple) of
@@ -228,7 +217,6 @@ class NOWPaymentsApi:
228
217
 
229
218
  _param = self._create_now_invoice_serialize(
230
219
  now_create_invoice_req=now_create_invoice_req,
231
- access_token=access_token,
232
220
  _request_auth=_request_auth,
233
221
  _content_type=_content_type,
234
222
  _headers=_headers,
@@ -247,7 +235,6 @@ class NOWPaymentsApi:
247
235
  def _create_now_invoice_serialize(
248
236
  self,
249
237
  now_create_invoice_req,
250
- access_token,
251
238
  _request_auth,
252
239
  _content_type,
253
240
  _headers,
@@ -519,7 +506,7 @@ class NOWPaymentsApi:
519
506
  )
520
507
 
521
508
  # authentication setting
522
- _auth_settings: List[str] = []
509
+ _auth_settings: List[str] = ["HTTPBearer"]
523
510
 
524
511
  return self.api_client.param_serialize(
525
512
  method="GET",
@@ -795,7 +782,7 @@ class NOWPaymentsApi:
795
782
  _header_params["Content-Type"] = _default_content_type
796
783
 
797
784
  # authentication setting
798
- _auth_settings: List[str] = []
785
+ _auth_settings: List[str] = ["HTTPBearer"]
799
786
 
800
787
  return self.api_client.param_serialize(
801
788
  method="POST",
@@ -42,7 +42,6 @@ class PaymentsApi:
42
42
  async def get_latest_payment_from_invoice(
43
43
  self,
44
44
  invoice_id: StrictStr,
45
- access_token: Optional[StrictStr] = None,
46
45
  _request_timeout: Union[
47
46
  None,
48
47
  Annotated[StrictFloat, Field(gt=0)],
@@ -61,8 +60,6 @@ class PaymentsApi:
61
60
 
62
61
  :param invoice_id: (required)
63
62
  :type invoice_id: str
64
- :param access_token:
65
- :type access_token: str
66
63
  :param _request_timeout: timeout setting for this request. If one
67
64
  number provided, it will be total request
68
65
  timeout. It can also be a pair (tuple) of
@@ -87,7 +84,6 @@ class PaymentsApi:
87
84
 
88
85
  _param = self._get_latest_payment_from_invoice_serialize(
89
86
  invoice_id=invoice_id,
90
- access_token=access_token,
91
87
  _request_auth=_request_auth,
92
88
  _content_type=_content_type,
93
89
  _headers=_headers,
@@ -111,7 +107,6 @@ class PaymentsApi:
111
107
  async def get_latest_payment_from_invoice_with_http_info(
112
108
  self,
113
109
  invoice_id: StrictStr,
114
- access_token: Optional[StrictStr] = None,
115
110
  _request_timeout: Union[
116
111
  None,
117
112
  Annotated[StrictFloat, Field(gt=0)],
@@ -130,8 +125,6 @@ class PaymentsApi:
130
125
 
131
126
  :param invoice_id: (required)
132
127
  :type invoice_id: str
133
- :param access_token:
134
- :type access_token: str
135
128
  :param _request_timeout: timeout setting for this request. If one
136
129
  number provided, it will be total request
137
130
  timeout. It can also be a pair (tuple) of
@@ -156,7 +149,6 @@ class PaymentsApi:
156
149
 
157
150
  _param = self._get_latest_payment_from_invoice_serialize(
158
151
  invoice_id=invoice_id,
159
- access_token=access_token,
160
152
  _request_auth=_request_auth,
161
153
  _content_type=_content_type,
162
154
  _headers=_headers,
@@ -180,7 +172,6 @@ class PaymentsApi:
180
172
  async def get_latest_payment_from_invoice_without_preload_content(
181
173
  self,
182
174
  invoice_id: StrictStr,
183
- access_token: Optional[StrictStr] = None,
184
175
  _request_timeout: Union[
185
176
  None,
186
177
  Annotated[StrictFloat, Field(gt=0)],
@@ -199,8 +190,6 @@ class PaymentsApi:
199
190
 
200
191
  :param invoice_id: (required)
201
192
  :type invoice_id: str
202
- :param access_token:
203
- :type access_token: str
204
193
  :param _request_timeout: timeout setting for this request. If one
205
194
  number provided, it will be total request
206
195
  timeout. It can also be a pair (tuple) of
@@ -225,7 +214,6 @@ class PaymentsApi:
225
214
 
226
215
  _param = self._get_latest_payment_from_invoice_serialize(
227
216
  invoice_id=invoice_id,
228
- access_token=access_token,
229
217
  _request_auth=_request_auth,
230
218
  _content_type=_content_type,
231
219
  _headers=_headers,
@@ -244,7 +232,6 @@ class PaymentsApi:
244
232
  def _get_latest_payment_from_invoice_serialize(
245
233
  self,
246
234
  invoice_id,
247
- access_token,
248
235
  _request_auth,
249
236
  _content_type,
250
237
  _headers,
@@ -301,7 +288,6 @@ class PaymentsApi:
301
288
  @validate_call
302
289
  async def get_payment_history(
303
290
  self,
304
- access_token: Optional[StrictStr] = None,
305
291
  _request_timeout: Union[
306
292
  None,
307
293
  Annotated[StrictFloat, Field(gt=0)],
@@ -318,8 +304,6 @@ class PaymentsApi:
318
304
 
319
305
  Get combined payment history for a user across all payment services.
320
306
 
321
- :param access_token:
322
- :type access_token: str
323
307
  :param _request_timeout: timeout setting for this request. If one
324
308
  number provided, it will be total request
325
309
  timeout. It can also be a pair (tuple) of
@@ -343,7 +327,6 @@ class PaymentsApi:
343
327
  """ # noqa: E501
344
328
 
345
329
  _param = self._get_payment_history_serialize(
346
- access_token=access_token,
347
330
  _request_auth=_request_auth,
348
331
  _content_type=_content_type,
349
332
  _headers=_headers,
@@ -352,7 +335,6 @@ class PaymentsApi:
352
335
 
353
336
  _response_types_map: Dict[str, Optional[str]] = {
354
337
  "200": "List[UnifiedPaymentModel]",
355
- "422": "HTTPValidationError",
356
338
  }
357
339
  response_data = await self.api_client.call_api(
358
340
  *_param, _request_timeout=_request_timeout
@@ -366,7 +348,6 @@ class PaymentsApi:
366
348
  @validate_call
367
349
  async def get_payment_history_with_http_info(
368
350
  self,
369
- access_token: Optional[StrictStr] = None,
370
351
  _request_timeout: Union[
371
352
  None,
372
353
  Annotated[StrictFloat, Field(gt=0)],
@@ -383,8 +364,6 @@ class PaymentsApi:
383
364
 
384
365
  Get combined payment history for a user across all payment services.
385
366
 
386
- :param access_token:
387
- :type access_token: str
388
367
  :param _request_timeout: timeout setting for this request. If one
389
368
  number provided, it will be total request
390
369
  timeout. It can also be a pair (tuple) of
@@ -408,7 +387,6 @@ class PaymentsApi:
408
387
  """ # noqa: E501
409
388
 
410
389
  _param = self._get_payment_history_serialize(
411
- access_token=access_token,
412
390
  _request_auth=_request_auth,
413
391
  _content_type=_content_type,
414
392
  _headers=_headers,
@@ -417,7 +395,6 @@ class PaymentsApi:
417
395
 
418
396
  _response_types_map: Dict[str, Optional[str]] = {
419
397
  "200": "List[UnifiedPaymentModel]",
420
- "422": "HTTPValidationError",
421
398
  }
422
399
  response_data = await self.api_client.call_api(
423
400
  *_param, _request_timeout=_request_timeout
@@ -431,7 +408,6 @@ class PaymentsApi:
431
408
  @validate_call
432
409
  async def get_payment_history_without_preload_content(
433
410
  self,
434
- access_token: Optional[StrictStr] = None,
435
411
  _request_timeout: Union[
436
412
  None,
437
413
  Annotated[StrictFloat, Field(gt=0)],
@@ -448,8 +424,6 @@ class PaymentsApi:
448
424
 
449
425
  Get combined payment history for a user across all payment services.
450
426
 
451
- :param access_token:
452
- :type access_token: str
453
427
  :param _request_timeout: timeout setting for this request. If one
454
428
  number provided, it will be total request
455
429
  timeout. It can also be a pair (tuple) of
@@ -473,7 +447,6 @@ class PaymentsApi:
473
447
  """ # noqa: E501
474
448
 
475
449
  _param = self._get_payment_history_serialize(
476
- access_token=access_token,
477
450
  _request_auth=_request_auth,
478
451
  _content_type=_content_type,
479
452
  _headers=_headers,
@@ -482,7 +455,6 @@ class PaymentsApi:
482
455
 
483
456
  _response_types_map: Dict[str, Optional[str]] = {
484
457
  "200": "List[UnifiedPaymentModel]",
485
- "422": "HTTPValidationError",
486
458
  }
487
459
  response_data = await self.api_client.call_api(
488
460
  *_param, _request_timeout=_request_timeout
@@ -491,7 +463,6 @@ class PaymentsApi:
491
463
 
492
464
  def _get_payment_history_serialize(
493
465
  self,
494
- access_token,
495
466
  _request_auth,
496
467
  _content_type,
497
468
  _headers,
@@ -545,7 +516,6 @@ class PaymentsApi:
545
516
  async def get_subscriptions(
546
517
  self,
547
518
  user_id: Optional[StrictStr] = None,
548
- access_token: Optional[StrictStr] = None,
549
519
  _request_timeout: Union[
550
520
  None,
551
521
  Annotated[StrictFloat, Field(gt=0)],
@@ -563,8 +533,6 @@ class PaymentsApi:
563
533
 
564
534
  :param user_id:
565
535
  :type user_id: str
566
- :param access_token:
567
- :type access_token: str
568
536
  :param _request_timeout: timeout setting for this request. If one
569
537
  number provided, it will be total request
570
538
  timeout. It can also be a pair (tuple) of
@@ -589,7 +557,6 @@ class PaymentsApi:
589
557
 
590
558
  _param = self._get_subscriptions_serialize(
591
559
  user_id=user_id,
592
- access_token=access_token,
593
560
  _request_auth=_request_auth,
594
561
  _content_type=_content_type,
595
562
  _headers=_headers,
@@ -613,7 +580,6 @@ class PaymentsApi:
613
580
  async def get_subscriptions_with_http_info(
614
581
  self,
615
582
  user_id: Optional[StrictStr] = None,
616
- access_token: Optional[StrictStr] = None,
617
583
  _request_timeout: Union[
618
584
  None,
619
585
  Annotated[StrictFloat, Field(gt=0)],
@@ -631,8 +597,6 @@ class PaymentsApi:
631
597
 
632
598
  :param user_id:
633
599
  :type user_id: str
634
- :param access_token:
635
- :type access_token: str
636
600
  :param _request_timeout: timeout setting for this request. If one
637
601
  number provided, it will be total request
638
602
  timeout. It can also be a pair (tuple) of
@@ -657,7 +621,6 @@ class PaymentsApi:
657
621
 
658
622
  _param = self._get_subscriptions_serialize(
659
623
  user_id=user_id,
660
- access_token=access_token,
661
624
  _request_auth=_request_auth,
662
625
  _content_type=_content_type,
663
626
  _headers=_headers,
@@ -681,7 +644,6 @@ class PaymentsApi:
681
644
  async def get_subscriptions_without_preload_content(
682
645
  self,
683
646
  user_id: Optional[StrictStr] = None,
684
- access_token: Optional[StrictStr] = None,
685
647
  _request_timeout: Union[
686
648
  None,
687
649
  Annotated[StrictFloat, Field(gt=0)],
@@ -699,8 +661,6 @@ class PaymentsApi:
699
661
 
700
662
  :param user_id:
701
663
  :type user_id: str
702
- :param access_token:
703
- :type access_token: str
704
664
  :param _request_timeout: timeout setting for this request. If one
705
665
  number provided, it will be total request
706
666
  timeout. It can also be a pair (tuple) of
@@ -725,7 +685,6 @@ class PaymentsApi:
725
685
 
726
686
  _param = self._get_subscriptions_serialize(
727
687
  user_id=user_id,
728
- access_token=access_token,
729
688
  _request_auth=_request_auth,
730
689
  _content_type=_content_type,
731
690
  _headers=_headers,
@@ -744,7 +703,6 @@ class PaymentsApi:
744
703
  def _get_subscriptions_serialize(
745
704
  self,
746
705
  user_id,
747
- access_token,
748
706
  _request_auth,
749
707
  _content_type,
750
708
  _headers,
@@ -41,7 +41,6 @@ class ProductsApi:
41
41
  async def create_product(
42
42
  self,
43
43
  product_model: ProductModel,
44
- access_token: Optional[StrictStr] = None,
45
44
  _request_timeout: Union[
46
45
  None,
47
46
  Annotated[StrictFloat, Field(gt=0)],
@@ -60,8 +59,6 @@ class ProductsApi:
60
59
 
61
60
  :param product_model: (required)
62
61
  :type product_model: ProductModel
63
- :param access_token:
64
- :type access_token: str
65
62
  :param _request_timeout: timeout setting for this request. If one
66
63
  number provided, it will be total request
67
64
  timeout. It can also be a pair (tuple) of
@@ -86,7 +83,6 @@ class ProductsApi:
86
83
 
87
84
  _param = self._create_product_serialize(
88
85
  product_model=product_model,
89
- access_token=access_token,
90
86
  _request_auth=_request_auth,
91
87
  _content_type=_content_type,
92
88
  _headers=_headers,
@@ -110,7 +106,6 @@ class ProductsApi:
110
106
  async def create_product_with_http_info(
111
107
  self,
112
108
  product_model: ProductModel,
113
- access_token: Optional[StrictStr] = None,
114
109
  _request_timeout: Union[
115
110
  None,
116
111
  Annotated[StrictFloat, Field(gt=0)],
@@ -129,8 +124,6 @@ class ProductsApi:
129
124
 
130
125
  :param product_model: (required)
131
126
  :type product_model: ProductModel
132
- :param access_token:
133
- :type access_token: str
134
127
  :param _request_timeout: timeout setting for this request. If one
135
128
  number provided, it will be total request
136
129
  timeout. It can also be a pair (tuple) of
@@ -155,7 +148,6 @@ class ProductsApi:
155
148
 
156
149
  _param = self._create_product_serialize(
157
150
  product_model=product_model,
158
- access_token=access_token,
159
151
  _request_auth=_request_auth,
160
152
  _content_type=_content_type,
161
153
  _headers=_headers,
@@ -179,7 +171,6 @@ class ProductsApi:
179
171
  async def create_product_without_preload_content(
180
172
  self,
181
173
  product_model: ProductModel,
182
- access_token: Optional[StrictStr] = None,
183
174
  _request_timeout: Union[
184
175
  None,
185
176
  Annotated[StrictFloat, Field(gt=0)],
@@ -198,8 +189,6 @@ class ProductsApi:
198
189
 
199
190
  :param product_model: (required)
200
191
  :type product_model: ProductModel
201
- :param access_token:
202
- :type access_token: str
203
192
  :param _request_timeout: timeout setting for this request. If one
204
193
  number provided, it will be total request
205
194
  timeout. It can also be a pair (tuple) of
@@ -224,7 +213,6 @@ class ProductsApi:
224
213
 
225
214
  _param = self._create_product_serialize(
226
215
  product_model=product_model,
227
- access_token=access_token,
228
216
  _request_auth=_request_auth,
229
217
  _content_type=_content_type,
230
218
  _headers=_headers,
@@ -243,7 +231,6 @@ class ProductsApi:
243
231
  def _create_product_serialize(
244
232
  self,
245
233
  product_model,
246
- access_token,
247
234
  _request_auth,
248
235
  _content_type,
249
236
  _headers,
@@ -288,7 +275,7 @@ class ProductsApi:
288
275
  _header_params["Content-Type"] = _default_content_type
289
276
 
290
277
  # authentication setting
291
- _auth_settings: List[str] = ["HTTPBearer"]
278
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
292
279
 
293
280
  return self.api_client.param_serialize(
294
281
  method="POST",
@@ -310,7 +297,6 @@ class ProductsApi:
310
297
  self,
311
298
  limit: Optional[StrictInt] = None,
312
299
  offset: Optional[StrictInt] = None,
313
- access_token: Optional[StrictStr] = None,
314
300
  body: Optional[Dict[str, Any]] = None,
315
301
  _request_timeout: Union[
316
302
  None,
@@ -332,8 +318,6 @@ class ProductsApi:
332
318
  :type limit: int
333
319
  :param offset:
334
320
  :type offset: int
335
- :param access_token:
336
- :type access_token: str
337
321
  :param body:
338
322
  :type body: object
339
323
  :param _request_timeout: timeout setting for this request. If one
@@ -361,7 +345,6 @@ class ProductsApi:
361
345
  _param = self._get_products_serialize(
362
346
  limit=limit,
363
347
  offset=offset,
364
- access_token=access_token,
365
348
  body=body,
366
349
  _request_auth=_request_auth,
367
350
  _content_type=_content_type,
@@ -387,7 +370,6 @@ class ProductsApi:
387
370
  self,
388
371
  limit: Optional[StrictInt] = None,
389
372
  offset: Optional[StrictInt] = None,
390
- access_token: Optional[StrictStr] = None,
391
373
  body: Optional[Dict[str, Any]] = None,
392
374
  _request_timeout: Union[
393
375
  None,
@@ -409,8 +391,6 @@ class ProductsApi:
409
391
  :type limit: int
410
392
  :param offset:
411
393
  :type offset: int
412
- :param access_token:
413
- :type access_token: str
414
394
  :param body:
415
395
  :type body: object
416
396
  :param _request_timeout: timeout setting for this request. If one
@@ -438,7 +418,6 @@ class ProductsApi:
438
418
  _param = self._get_products_serialize(
439
419
  limit=limit,
440
420
  offset=offset,
441
- access_token=access_token,
442
421
  body=body,
443
422
  _request_auth=_request_auth,
444
423
  _content_type=_content_type,
@@ -464,7 +443,6 @@ class ProductsApi:
464
443
  self,
465
444
  limit: Optional[StrictInt] = None,
466
445
  offset: Optional[StrictInt] = None,
467
- access_token: Optional[StrictStr] = None,
468
446
  body: Optional[Dict[str, Any]] = None,
469
447
  _request_timeout: Union[
470
448
  None,
@@ -486,8 +464,6 @@ class ProductsApi:
486
464
  :type limit: int
487
465
  :param offset:
488
466
  :type offset: int
489
- :param access_token:
490
- :type access_token: str
491
467
  :param body:
492
468
  :type body: object
493
469
  :param _request_timeout: timeout setting for this request. If one
@@ -515,7 +491,6 @@ class ProductsApi:
515
491
  _param = self._get_products_serialize(
516
492
  limit=limit,
517
493
  offset=offset,
518
- access_token=access_token,
519
494
  body=body,
520
495
  _request_auth=_request_auth,
521
496
  _content_type=_content_type,
@@ -536,7 +511,6 @@ class ProductsApi:
536
511
  self,
537
512
  limit,
538
513
  offset,
539
- access_token,
540
514
  body,
541
515
  _request_auth,
542
516
  _content_type,
@@ -590,7 +564,7 @@ class ProductsApi:
590
564
  _header_params["Content-Type"] = _default_content_type
591
565
 
592
566
  # authentication setting
593
- _auth_settings: List[str] = ["HTTPBearer"]
567
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
594
568
 
595
569
  return self.api_client.param_serialize(
596
570
  method="GET",
@@ -612,7 +586,6 @@ class ProductsApi:
612
586
  self,
613
587
  id: StrictStr,
614
588
  product_model: ProductModel,
615
- access_token: Optional[StrictStr] = None,
616
589
  _request_timeout: Union[
617
590
  None,
618
591
  Annotated[StrictFloat, Field(gt=0)],
@@ -633,8 +606,6 @@ class ProductsApi:
633
606
  :type id: str
634
607
  :param product_model: (required)
635
608
  :type product_model: ProductModel
636
- :param access_token:
637
- :type access_token: str
638
609
  :param _request_timeout: timeout setting for this request. If one
639
610
  number provided, it will be total request
640
611
  timeout. It can also be a pair (tuple) of
@@ -660,7 +631,6 @@ class ProductsApi:
660
631
  _param = self._update_product_serialize(
661
632
  id=id,
662
633
  product_model=product_model,
663
- access_token=access_token,
664
634
  _request_auth=_request_auth,
665
635
  _content_type=_content_type,
666
636
  _headers=_headers,
@@ -685,7 +655,6 @@ class ProductsApi:
685
655
  self,
686
656
  id: StrictStr,
687
657
  product_model: ProductModel,
688
- access_token: Optional[StrictStr] = None,
689
658
  _request_timeout: Union[
690
659
  None,
691
660
  Annotated[StrictFloat, Field(gt=0)],
@@ -706,8 +675,6 @@ class ProductsApi:
706
675
  :type id: str
707
676
  :param product_model: (required)
708
677
  :type product_model: ProductModel
709
- :param access_token:
710
- :type access_token: str
711
678
  :param _request_timeout: timeout setting for this request. If one
712
679
  number provided, it will be total request
713
680
  timeout. It can also be a pair (tuple) of
@@ -733,7 +700,6 @@ class ProductsApi:
733
700
  _param = self._update_product_serialize(
734
701
  id=id,
735
702
  product_model=product_model,
736
- access_token=access_token,
737
703
  _request_auth=_request_auth,
738
704
  _content_type=_content_type,
739
705
  _headers=_headers,
@@ -758,7 +724,6 @@ class ProductsApi:
758
724
  self,
759
725
  id: StrictStr,
760
726
  product_model: ProductModel,
761
- access_token: Optional[StrictStr] = None,
762
727
  _request_timeout: Union[
763
728
  None,
764
729
  Annotated[StrictFloat, Field(gt=0)],
@@ -779,8 +744,6 @@ class ProductsApi:
779
744
  :type id: str
780
745
  :param product_model: (required)
781
746
  :type product_model: ProductModel
782
- :param access_token:
783
- :type access_token: str
784
747
  :param _request_timeout: timeout setting for this request. If one
785
748
  number provided, it will be total request
786
749
  timeout. It can also be a pair (tuple) of
@@ -806,7 +769,6 @@ class ProductsApi:
806
769
  _param = self._update_product_serialize(
807
770
  id=id,
808
771
  product_model=product_model,
809
- access_token=access_token,
810
772
  _request_auth=_request_auth,
811
773
  _content_type=_content_type,
812
774
  _headers=_headers,
@@ -826,7 +788,6 @@ class ProductsApi:
826
788
  self,
827
789
  id,
828
790
  product_model,
829
- access_token,
830
791
  _request_auth,
831
792
  _content_type,
832
793
  _headers,
@@ -873,7 +834,7 @@ class ProductsApi:
873
834
  _header_params["Content-Type"] = _default_content_type
874
835
 
875
836
  # authentication setting
876
- _auth_settings: List[str] = ["HTTPBearer"]
837
+ _auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
877
838
 
878
839
  return self.api_client.param_serialize(
879
840
  method="PUT",
@@ -119,7 +119,7 @@ HTTPSignatureAuthSetting = TypedDict(
119
119
  AuthSettings = TypedDict(
120
120
  "AuthSettings",
121
121
  {
122
- "HTTPBearer": BearerAuthSetting,
122
+ "HTTPBearer": BearerFormatAuthSetting,
123
123
  "APIKeyHeader": APIKeyAuthSetting,
124
124
  },
125
125
  total=False,
@@ -515,6 +515,7 @@ class Configuration:
515
515
  auth["HTTPBearer"] = {
516
516
  "type": "bearer",
517
517
  "in": "header",
518
+ "format": "JWT",
518
519
  "key": "Authorization",
519
520
  "value": "Bearer " + self.access_token,
520
521
  }
@@ -24,6 +24,7 @@ from crypticorn.pay.client.models.now_webhook_payload import NowWebhookPayload
24
24
  from crypticorn.pay.client.models.payment_status import PaymentStatus
25
25
  from crypticorn.pay.client.models.product_model import ProductModel
26
26
  from crypticorn.pay.client.models.product_subs_model import ProductSubsModel
27
+ from crypticorn.pay.client.models.scope import Scope
27
28
  from crypticorn.pay.client.models.services import Services
28
29
  from crypticorn.pay.client.models.unified_payment_model import UnifiedPaymentModel
29
30
  from crypticorn.pay.client.models.validation_error import ValidationError