crypticorn 2.4.4__tar.gz → 2.4.6__tar.gz
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.
- {crypticorn-2.4.4 → crypticorn-2.4.6}/PKG-INFO +6 -1
- {crypticorn-2.4.4 → crypticorn-2.4.6}/README.md +5 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/client.py +1 -1
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/errors.py +9 -5
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/scopes.py +7 -1
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/sorter.py +2 -2
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/exchange_mapping.py +4 -2
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/trading_status.py +1 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/__init__.py +5 -6
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/api/payments_api.py +85 -18
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/api/products_api.py +49 -50
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/configuration.py +8 -1
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/__init__.py +5 -6
- crypticorn-2.4.6/crypticorn/pay/client/models/payment.py +112 -0
- crypticorn-2.4.6/crypticorn/pay/client/models/product_create.py +120 -0
- crypticorn-2.4.6/crypticorn/pay/client/models/product_read.py +123 -0
- crypticorn-2.4.6/crypticorn/pay/client/models/product_sub_read.py +103 -0
- crypticorn-2.4.6/crypticorn/pay/client/models/product_update.py +142 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/product_update_model.py +6 -6
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/scope.py +2 -2
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/rest.py +4 -1
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn.egg-info/PKG-INFO +6 -1
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn.egg-info/SOURCES.txt +4 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/pyproject.toml +1 -1
- crypticorn-2.4.4/crypticorn/pay/client/models/payment.py +0 -231
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api/admin_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api/auth_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api/service_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api/user_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api/wallet_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api_client.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/api_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/configuration.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/exceptions.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/add_wallet200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/add_wallet_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/authorize_user200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/authorize_user200_response_auth.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/authorize_user_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/create_api_key200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/create_api_key_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/create_user_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/get_api_keys200_response_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/list_wallets200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/list_wallets200_response_data_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/list_wallets200_response_user_value.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/logout_default_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/logout_default_response_issues_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/oauth_callback200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/oauth_callback200_response_user.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/refresh_token_info200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/resend_verification_email_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/revoke_user_tokens_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/rotate_tokens200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/token_info200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/unlink_wallet_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/update_user_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/user_reset_password_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/user_set_password_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/verify200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/verify_email200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/verify_email200_response_auth.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/verify_email200_response_auth_auth.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/verify_email_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/verify_wallet_request.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/wallet_verified200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/models/whoami200_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/py.typed +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/client/rest.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/auth/main.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/cli/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/cli/__main__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/cli/init.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/cli/templates/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/cli/templates/auth.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/auth.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/enums.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/pydantic.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/urls.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/common/utils.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/api/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/api/data_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/api/models_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/api/status_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/api_client.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/api_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/configuration.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/exceptions.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/coins.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/data_download_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/data_info.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/data_value_value_value_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/data_version.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/download_links.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/evaluation.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/evaluation_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/feature_size.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/http_validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/model_create.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/model_status.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/model_update.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/target.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/target_type.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/py.typed +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/client/rest.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/hive/main.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api/funding_rates_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api/health_check_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api/ohlcv_data_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api/symbols_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api/udf_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api_client.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/api_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/configuration.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/exceptions.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/base_response_health_check_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/base_response_list_funding_rate_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/base_response_list_str.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/base_response_ohlcv_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/error_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/exchange.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/funding_rate_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/health_check_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/history_error_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/history_no_data_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/history_success_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/http_validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/market.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/ohlcv_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/resolution.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/response_get_history_udf_history_get.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/search_symbol_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/sort_direction.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/symbol_group_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/symbol_info_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/symbol_type.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/timeframe.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/udf_config_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/py.typed +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/client/rest.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/klines/main.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/exchanges_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/health_check_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/indicators_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/logs_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/marketcap_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/markets_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api/tokens_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api_client.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/api_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/configuration.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/exceptions.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/base_response_dict.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/base_response_health_check_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/base_response_list_dict.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/base_response_list_str.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/error_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/health_check_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/http_validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/market.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/market_type.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/severity.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/time_interval.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/py.typed +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/client/rest.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/metrics/main.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/api/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/api/now_payments_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/api/status_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/api_client.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/api_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/exceptions.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/api_status_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/body_create_now_invoice.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/body_create_product.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/body_get_products.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/body_handle_now_webhook.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/body_update_product.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/combined_payment_history.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/create_invoice_req.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/create_invoice_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/currency.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/estimate_price_req.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/estimate_price_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/get_currencies_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/get_payment_status_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/get_payments_list_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/http_validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/min_amount_req.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/min_amount_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/now_api_status_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/now_create_invoice_req.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/now_create_invoice_res.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/now_fee_structure.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/now_payment_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/now_payment_status.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/now_webhook_payload.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/partial_product_update_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/payment_status.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/product.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/product_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/product_subs_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/services.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/unified_payment_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/client/py.typed +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/pay/main.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/api_keys_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/bots_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/exchanges_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/futures_trading_panel_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/notifications_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/orders_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/status_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/strategies_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api/trading_actions_api.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api_client.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/api_response.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/configuration.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/exceptions.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/__init__.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/action_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/api_error_identifier.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/api_error_level.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/api_error_type.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/api_key_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/bot_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/bot_status.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/exchange.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/exchange_key_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/execution_ids.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/futures_balance.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/futures_trading_action.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/http_validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/margin_mode.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/market_type.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/notification_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/order_model.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/order_status.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/post_futures_action.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/strategy_exchange_info.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/strategy_model_input.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/strategy_model_output.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/tpsl.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/trading_action_type.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/validation_error.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/py.typed +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/client/rest.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn/trade/main.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn.egg-info/dependency_links.txt +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn.egg-info/entry_points.txt +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn.egg-info/requires.txt +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/crypticorn.egg-info/top_level.txt +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/requirements/dev.txt +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/requirements/main.txt +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/requirements/test.txt +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/setup.cfg +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/tests/test_auth_client.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/tests/test_enums.py +0 -0
- {crypticorn-2.4.4 → crypticorn-2.4.6}/tests/test_errors.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: crypticorn
|
3
|
-
Version: 2.4.
|
3
|
+
Version: 2.4.6
|
4
4
|
Summary: Maximise Your Crypto Trading Profits with AI Predictions
|
5
5
|
Author-email: Crypticorn <timon@crypticorn.com>
|
6
6
|
Project-URL: Homepage, https://crypticorn.com
|
@@ -95,7 +95,12 @@ client = ApiClient(base_url=BaseUrl.Prod, api_key="your-api-key")
|
|
95
95
|
asyncio.run(client.pay.models.get_products())
|
96
96
|
asyncio.run(client.close())
|
97
97
|
```
|
98
|
+
...or wrapped in a function
|
99
|
+
async def main():
|
100
|
+
await client.pay.products.get_products()
|
98
101
|
|
102
|
+
asyncio.run(main())
|
103
|
+
asyncio.run(client.close())
|
99
104
|
## Response Types
|
100
105
|
|
101
106
|
There are three different available output formats you can choose from:
|
@@ -58,7 +58,12 @@ client = ApiClient(base_url=BaseUrl.Prod, api_key="your-api-key")
|
|
58
58
|
asyncio.run(client.pay.models.get_products())
|
59
59
|
asyncio.run(client.close())
|
60
60
|
```
|
61
|
+
...or wrapped in a function
|
62
|
+
async def main():
|
63
|
+
await client.pay.products.get_products()
|
61
64
|
|
65
|
+
asyncio.run(main())
|
66
|
+
asyncio.run(client.close())
|
62
67
|
## Response Types
|
63
68
|
|
64
69
|
There are three different available output formats you can choose from:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from enum import Enum, EnumMeta
|
1
|
+
from enum import Enum, EnumMeta, StrEnum
|
2
2
|
import logging
|
3
3
|
from fastapi import status
|
4
4
|
|
@@ -6,15 +6,19 @@ logger = logging.getLogger(__name__)
|
|
6
6
|
|
7
7
|
|
8
8
|
class Fallback(EnumMeta):
|
9
|
+
"""Fallback to UNKNOWN_ERROR for error codes not yet published to PyPI."""
|
10
|
+
|
9
11
|
def __getattr__(cls, name):
|
10
|
-
|
12
|
+
# Let Pydantic/internal stuff pass silently ! fragile
|
13
|
+
if name.startswith("__"):
|
14
|
+
raise AttributeError(name)
|
11
15
|
logger.warning(
|
12
16
|
f"Unknown error code '{name}' - update crypticorn package or check for typos"
|
13
17
|
)
|
14
18
|
return cls.UNKNOWN_ERROR
|
15
19
|
|
16
20
|
|
17
|
-
class ApiErrorType(
|
21
|
+
class ApiErrorType(StrEnum):
|
18
22
|
"""Type of API error"""
|
19
23
|
|
20
24
|
USER_ERROR = "user error"
|
@@ -27,7 +31,7 @@ class ApiErrorType(str, Enum):
|
|
27
31
|
"""error that does not need to be handled or does not affect the program or is a placeholder."""
|
28
32
|
|
29
33
|
|
30
|
-
class ApiErrorIdentifier(
|
34
|
+
class ApiErrorIdentifier(StrEnum):
|
31
35
|
"""API error identifiers"""
|
32
36
|
|
33
37
|
ALLOCATION_BELOW_EXPOSURE = "allocation_below_current_exposure"
|
@@ -97,7 +101,7 @@ class ApiErrorIdentifier(str, Enum):
|
|
97
101
|
URL_NOT_FOUND = "requested_resource_not_found"
|
98
102
|
|
99
103
|
|
100
|
-
class ApiErrorLevel(
|
104
|
+
class ApiErrorLevel(StrEnum):
|
101
105
|
"""API error levels"""
|
102
106
|
|
103
107
|
ERROR = "error"
|
@@ -7,14 +7,20 @@ logger = logging.getLogger("uvicorn")
|
|
7
7
|
class Fallback(EnumMeta):
|
8
8
|
"""Fallback to no scope for unknown scopes."""
|
9
9
|
|
10
|
+
# Note: This is a workaround to avoid the AttributeError when an unknown scope is accessed.
|
11
|
+
# As soon as we have stable scopes, we can remove this.
|
12
|
+
|
10
13
|
def __getattr__(cls, name):
|
14
|
+
# Let Pydantic/internal stuff pass silently ! fragile
|
15
|
+
if name.startswith("__"):
|
16
|
+
raise AttributeError(name)
|
11
17
|
logger.warning(
|
12
18
|
f"Unknown scope '{name}' - falling back to no scope - update crypticorn package or check for typos"
|
13
19
|
)
|
14
20
|
return None
|
15
21
|
|
16
22
|
|
17
|
-
class Scope(StrEnum
|
23
|
+
class Scope(StrEnum):
|
18
24
|
"""
|
19
25
|
The permission scopes for the API.
|
20
26
|
"""
|
@@ -4,7 +4,7 @@ import pyperclip
|
|
4
4
|
|
5
5
|
def sort_api_errors(file_content, class_name="ApiErrorIdentifier"):
|
6
6
|
# Find the start of the ApiError class definition
|
7
|
-
class_start = file_content.find(f"class {class_name}(
|
7
|
+
class_start = file_content.find(f"class {class_name}(StrEnum):")
|
8
8
|
if class_start == -1:
|
9
9
|
return f"Could not find {class_name} class"
|
10
10
|
|
@@ -23,7 +23,7 @@ def sort_api_errors(file_content, class_name="ApiErrorIdentifier"):
|
|
23
23
|
sorted_entries = sorted(enum_entries, key=lambda x: x[0])
|
24
24
|
|
25
25
|
# Reconstruct the class content
|
26
|
-
class_header = f"class {class_name}(
|
26
|
+
class_header = f"class {class_name}(StrEnum):\n\n"
|
27
27
|
sorted_content = class_header + "\n ".join(entry[1] for entry in sorted_entries)
|
28
28
|
|
29
29
|
return sorted_content
|
@@ -20,6 +20,8 @@ import json
|
|
20
20
|
from datetime import datetime
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from crypticorn.metrics.client.models.market_type import MarketType
|
24
|
+
from crypticorn.metrics.client.models.trading_status import TradingStatus
|
23
25
|
from typing import Optional, Set
|
24
26
|
from typing_extensions import Self
|
25
27
|
|
@@ -35,8 +37,8 @@ class ExchangeMapping(BaseModel):
|
|
35
37
|
pair: StrictStr
|
36
38
|
first_trade_timestamp: Optional[datetime]
|
37
39
|
last_trade_timestamp: Optional[datetime]
|
38
|
-
status:
|
39
|
-
market_type: Optional[
|
40
|
+
status: TradingStatus
|
41
|
+
market_type: Optional[MarketType]
|
40
42
|
__properties: ClassVar[List[str]] = [
|
41
43
|
"exchange_name",
|
42
44
|
"symbol",
|
@@ -41,15 +41,14 @@ from crypticorn.pay.client.models.now_create_invoice_res import NowCreateInvoice
|
|
41
41
|
from crypticorn.pay.client.models.now_fee_structure import NowFeeStructure
|
42
42
|
from crypticorn.pay.client.models.now_payment_status import NowPaymentStatus
|
43
43
|
from crypticorn.pay.client.models.now_webhook_payload import NowWebhookPayload
|
44
|
-
from crypticorn.pay.client.models.
|
45
|
-
PartialProductUpdateModel,
|
46
|
-
)
|
44
|
+
from crypticorn.pay.client.models.payment import Payment
|
47
45
|
from crypticorn.pay.client.models.payment_status import PaymentStatus
|
48
|
-
from crypticorn.pay.client.models.
|
49
|
-
from crypticorn.pay.client.models.
|
46
|
+
from crypticorn.pay.client.models.product_create import ProductCreate
|
47
|
+
from crypticorn.pay.client.models.product_read import ProductRead
|
48
|
+
from crypticorn.pay.client.models.product_sub_read import ProductSubRead
|
49
|
+
from crypticorn.pay.client.models.product_update import ProductUpdate
|
50
50
|
from crypticorn.pay.client.models.scope import Scope
|
51
51
|
from crypticorn.pay.client.models.services import Services
|
52
|
-
from crypticorn.pay.client.models.unified_payment_model import UnifiedPaymentModel
|
53
52
|
from crypticorn.pay.client.models.validation_error import ValidationError
|
54
53
|
from crypticorn.pay.client.models.validation_error_loc_inner import (
|
55
54
|
ValidationErrorLocInner,
|
@@ -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, StrictStr
|
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.
|
23
|
-
from crypticorn.pay.client.models.
|
22
|
+
from crypticorn.pay.client.models.payment import Payment
|
23
|
+
from crypticorn.pay.client.models.product_sub_read import ProductSubRead
|
24
24
|
|
25
25
|
from crypticorn.pay.client.api_client import ApiClient, RequestSerialized
|
26
26
|
from crypticorn.pay.client.api_response import ApiResponse
|
@@ -57,7 +57,7 @@ class PaymentsApi:
|
|
57
57
|
_content_type: Optional[StrictStr] = None,
|
58
58
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
59
59
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
60
|
-
) ->
|
60
|
+
) -> Payment:
|
61
61
|
"""Get Latest Payment From Invoice
|
62
62
|
|
63
63
|
Get the latest payment by a user from an invoice
|
@@ -95,7 +95,7 @@ class PaymentsApi:
|
|
95
95
|
)
|
96
96
|
|
97
97
|
_response_types_map: Dict[str, Optional[str]] = {
|
98
|
-
"200": "
|
98
|
+
"200": "Payment",
|
99
99
|
"422": "HTTPValidationError",
|
100
100
|
}
|
101
101
|
response_data = await self.api_client.call_api(
|
@@ -125,7 +125,7 @@ class PaymentsApi:
|
|
125
125
|
_content_type: Optional[StrictStr] = None,
|
126
126
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
127
127
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
128
|
-
) -> ApiResponse[
|
128
|
+
) -> ApiResponse[Payment]:
|
129
129
|
"""Get Latest Payment From Invoice
|
130
130
|
|
131
131
|
Get the latest payment by a user from an invoice
|
@@ -163,7 +163,7 @@ class PaymentsApi:
|
|
163
163
|
)
|
164
164
|
|
165
165
|
_response_types_map: Dict[str, Optional[str]] = {
|
166
|
-
"200": "
|
166
|
+
"200": "Payment",
|
167
167
|
"422": "HTTPValidationError",
|
168
168
|
}
|
169
169
|
response_data = await self.api_client.call_api(
|
@@ -231,7 +231,7 @@ class PaymentsApi:
|
|
231
231
|
)
|
232
232
|
|
233
233
|
_response_types_map: Dict[str, Optional[str]] = {
|
234
|
-
"200": "
|
234
|
+
"200": "Payment",
|
235
235
|
"422": "HTTPValidationError",
|
236
236
|
}
|
237
237
|
response_data = await self.api_client.call_api(
|
@@ -298,6 +298,18 @@ class PaymentsApi:
|
|
298
298
|
@validate_call
|
299
299
|
async def get_payment_history(
|
300
300
|
self,
|
301
|
+
limit: Annotated[
|
302
|
+
Optional[StrictInt],
|
303
|
+
Field(
|
304
|
+
description="Limit the number of payments returned. 0 means no limit."
|
305
|
+
),
|
306
|
+
] = None,
|
307
|
+
offset: Annotated[
|
308
|
+
Optional[StrictInt],
|
309
|
+
Field(
|
310
|
+
description="Offset the number of payments returned. 0 means no offset."
|
311
|
+
),
|
312
|
+
] = None,
|
301
313
|
_request_timeout: Union[
|
302
314
|
None,
|
303
315
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -309,11 +321,15 @@ class PaymentsApi:
|
|
309
321
|
_content_type: Optional[StrictStr] = None,
|
310
322
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
311
323
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
312
|
-
) -> List[
|
324
|
+
) -> List[Payment]:
|
313
325
|
"""Get Payments
|
314
326
|
|
315
327
|
Get the combined payment history for a user across all payment services.
|
316
328
|
|
329
|
+
:param limit: Limit the number of payments returned. 0 means no limit.
|
330
|
+
:type limit: int
|
331
|
+
:param offset: Offset the number of payments returned. 0 means no offset.
|
332
|
+
:type offset: int
|
317
333
|
:param _request_timeout: timeout setting for this request. If one
|
318
334
|
number provided, it will be total request
|
319
335
|
timeout. It can also be a pair (tuple) of
|
@@ -337,6 +353,8 @@ class PaymentsApi:
|
|
337
353
|
""" # noqa: E501
|
338
354
|
|
339
355
|
_param = self._get_payment_history_serialize(
|
356
|
+
limit=limit,
|
357
|
+
offset=offset,
|
340
358
|
_request_auth=_request_auth,
|
341
359
|
_content_type=_content_type,
|
342
360
|
_headers=_headers,
|
@@ -344,7 +362,8 @@ class PaymentsApi:
|
|
344
362
|
)
|
345
363
|
|
346
364
|
_response_types_map: Dict[str, Optional[str]] = {
|
347
|
-
"200": "List[
|
365
|
+
"200": "List[Payment]",
|
366
|
+
"422": "HTTPValidationError",
|
348
367
|
}
|
349
368
|
response_data = await self.api_client.call_api(
|
350
369
|
*_param, _request_timeout=_request_timeout
|
@@ -358,6 +377,18 @@ class PaymentsApi:
|
|
358
377
|
@validate_call
|
359
378
|
async def get_payment_history_with_http_info(
|
360
379
|
self,
|
380
|
+
limit: Annotated[
|
381
|
+
Optional[StrictInt],
|
382
|
+
Field(
|
383
|
+
description="Limit the number of payments returned. 0 means no limit."
|
384
|
+
),
|
385
|
+
] = None,
|
386
|
+
offset: Annotated[
|
387
|
+
Optional[StrictInt],
|
388
|
+
Field(
|
389
|
+
description="Offset the number of payments returned. 0 means no offset."
|
390
|
+
),
|
391
|
+
] = None,
|
361
392
|
_request_timeout: Union[
|
362
393
|
None,
|
363
394
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -369,11 +400,15 @@ class PaymentsApi:
|
|
369
400
|
_content_type: Optional[StrictStr] = None,
|
370
401
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
371
402
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
372
|
-
) -> ApiResponse[List[
|
403
|
+
) -> ApiResponse[List[Payment]]:
|
373
404
|
"""Get Payments
|
374
405
|
|
375
406
|
Get the combined payment history for a user across all payment services.
|
376
407
|
|
408
|
+
:param limit: Limit the number of payments returned. 0 means no limit.
|
409
|
+
:type limit: int
|
410
|
+
:param offset: Offset the number of payments returned. 0 means no offset.
|
411
|
+
:type offset: int
|
377
412
|
:param _request_timeout: timeout setting for this request. If one
|
378
413
|
number provided, it will be total request
|
379
414
|
timeout. It can also be a pair (tuple) of
|
@@ -397,6 +432,8 @@ class PaymentsApi:
|
|
397
432
|
""" # noqa: E501
|
398
433
|
|
399
434
|
_param = self._get_payment_history_serialize(
|
435
|
+
limit=limit,
|
436
|
+
offset=offset,
|
400
437
|
_request_auth=_request_auth,
|
401
438
|
_content_type=_content_type,
|
402
439
|
_headers=_headers,
|
@@ -404,7 +441,8 @@ class PaymentsApi:
|
|
404
441
|
)
|
405
442
|
|
406
443
|
_response_types_map: Dict[str, Optional[str]] = {
|
407
|
-
"200": "List[
|
444
|
+
"200": "List[Payment]",
|
445
|
+
"422": "HTTPValidationError",
|
408
446
|
}
|
409
447
|
response_data = await self.api_client.call_api(
|
410
448
|
*_param, _request_timeout=_request_timeout
|
@@ -418,6 +456,18 @@ class PaymentsApi:
|
|
418
456
|
@validate_call
|
419
457
|
async def get_payment_history_without_preload_content(
|
420
458
|
self,
|
459
|
+
limit: Annotated[
|
460
|
+
Optional[StrictInt],
|
461
|
+
Field(
|
462
|
+
description="Limit the number of payments returned. 0 means no limit."
|
463
|
+
),
|
464
|
+
] = None,
|
465
|
+
offset: Annotated[
|
466
|
+
Optional[StrictInt],
|
467
|
+
Field(
|
468
|
+
description="Offset the number of payments returned. 0 means no offset."
|
469
|
+
),
|
470
|
+
] = None,
|
421
471
|
_request_timeout: Union[
|
422
472
|
None,
|
423
473
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -434,6 +484,10 @@ class PaymentsApi:
|
|
434
484
|
|
435
485
|
Get the combined payment history for a user across all payment services.
|
436
486
|
|
487
|
+
:param limit: Limit the number of payments returned. 0 means no limit.
|
488
|
+
:type limit: int
|
489
|
+
:param offset: Offset the number of payments returned. 0 means no offset.
|
490
|
+
:type offset: int
|
437
491
|
:param _request_timeout: timeout setting for this request. If one
|
438
492
|
number provided, it will be total request
|
439
493
|
timeout. It can also be a pair (tuple) of
|
@@ -457,6 +511,8 @@ class PaymentsApi:
|
|
457
511
|
""" # noqa: E501
|
458
512
|
|
459
513
|
_param = self._get_payment_history_serialize(
|
514
|
+
limit=limit,
|
515
|
+
offset=offset,
|
460
516
|
_request_auth=_request_auth,
|
461
517
|
_content_type=_content_type,
|
462
518
|
_headers=_headers,
|
@@ -464,7 +520,8 @@ class PaymentsApi:
|
|
464
520
|
)
|
465
521
|
|
466
522
|
_response_types_map: Dict[str, Optional[str]] = {
|
467
|
-
"200": "List[
|
523
|
+
"200": "List[Payment]",
|
524
|
+
"422": "HTTPValidationError",
|
468
525
|
}
|
469
526
|
response_data = await self.api_client.call_api(
|
470
527
|
*_param, _request_timeout=_request_timeout
|
@@ -473,6 +530,8 @@ class PaymentsApi:
|
|
473
530
|
|
474
531
|
def _get_payment_history_serialize(
|
475
532
|
self,
|
533
|
+
limit,
|
534
|
+
offset,
|
476
535
|
_request_auth,
|
477
536
|
_content_type,
|
478
537
|
_headers,
|
@@ -494,6 +553,14 @@ class PaymentsApi:
|
|
494
553
|
|
495
554
|
# process the path parameters
|
496
555
|
# process the query parameters
|
556
|
+
if limit is not None:
|
557
|
+
|
558
|
+
_query_params.append(("limit", limit))
|
559
|
+
|
560
|
+
if offset is not None:
|
561
|
+
|
562
|
+
_query_params.append(("offset", offset))
|
563
|
+
|
497
564
|
# process the header parameters
|
498
565
|
# process the form parameters
|
499
566
|
# process the body parameter
|
@@ -542,7 +609,7 @@ class PaymentsApi:
|
|
542
609
|
_content_type: Optional[StrictStr] = None,
|
543
610
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
544
611
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
545
|
-
) -> List[
|
612
|
+
) -> List[ProductSubRead]:
|
546
613
|
"""Get Subscriptions
|
547
614
|
|
548
615
|
Get all subscriptions for a user. Subscriptions are the products a user has subscribed to. Returns both active and inactive subscriptions.
|
@@ -580,7 +647,7 @@ class PaymentsApi:
|
|
580
647
|
)
|
581
648
|
|
582
649
|
_response_types_map: Dict[str, Optional[str]] = {
|
583
|
-
"200": "List[
|
650
|
+
"200": "List[ProductSubRead]",
|
584
651
|
"422": "HTTPValidationError",
|
585
652
|
}
|
586
653
|
response_data = await self.api_client.call_api(
|
@@ -612,7 +679,7 @@ class PaymentsApi:
|
|
612
679
|
_content_type: Optional[StrictStr] = None,
|
613
680
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
614
681
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
615
|
-
) -> ApiResponse[List[
|
682
|
+
) -> ApiResponse[List[ProductSubRead]]:
|
616
683
|
"""Get Subscriptions
|
617
684
|
|
618
685
|
Get all subscriptions for a user. Subscriptions are the products a user has subscribed to. Returns both active and inactive subscriptions.
|
@@ -650,7 +717,7 @@ class PaymentsApi:
|
|
650
717
|
)
|
651
718
|
|
652
719
|
_response_types_map: Dict[str, Optional[str]] = {
|
653
|
-
"200": "List[
|
720
|
+
"200": "List[ProductSubRead]",
|
654
721
|
"422": "HTTPValidationError",
|
655
722
|
}
|
656
723
|
response_data = await self.api_client.call_api(
|
@@ -720,7 +787,7 @@ class PaymentsApi:
|
|
720
787
|
)
|
721
788
|
|
722
789
|
_response_types_map: Dict[str, Optional[str]] = {
|
723
|
-
"200": "List[
|
790
|
+
"200": "List[ProductSubRead]",
|
724
791
|
"422": "HTTPValidationError",
|
725
792
|
}
|
726
793
|
response_data = await self.api_client.call_api(
|