crypticorn 2.2.1__tar.gz → 2.2.2__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.2.1 → crypticorn-2.2.2}/PKG-INFO +1 -1
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/client.py +17 -10
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/common/__init__.py +2 -1
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/common/auth.py +1 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/common/pydantic.py +12 -8
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/common/urls.py +2 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/configuration.py +1 -3
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/__init__.py +3 -1
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/main.py +6 -5
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/__init__.py +3 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/api/now_payments_api.py +3 -3
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/api/payments_api.py +47 -19
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/api/products_api.py +72 -63
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/__init__.py +3 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/now_webhook_payload.py +1 -1
- crypticorn-2.2.2/crypticorn/pay/client/models/partial_product_update_model.py +150 -0
- crypticorn-2.2.2/crypticorn/pay/client/models/product_update_model.py +150 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn.egg-info/PKG-INFO +1 -1
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn.egg-info/SOURCES.txt +2 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/pyproject.toml +1 -1
- {crypticorn-2.2.1 → crypticorn-2.2.2}/README.md +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api/admin_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api/auth_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api/service_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api/user_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api/wallet_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api_client.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/api_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/configuration.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/exceptions.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/add_wallet200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/add_wallet_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/authorize_user200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/authorize_user200_response_auth.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/authorize_user_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/create_api_key200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/create_api_key_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/create_user_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/get_api_keys200_response_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/list_wallets200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/list_wallets200_response_data_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/list_wallets200_response_user_value.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/logout_default_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/logout_default_response_issues_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/oauth_callback200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/oauth_callback200_response_user.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/refresh_token_info200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/resend_verification_email_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/revoke_user_tokens_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/rotate_tokens200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/token_info200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/unlink_wallet_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/update_user_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/user_reset_password_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/user_set_password_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/verify200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/verify_email200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/verify_email200_response_auth.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/verify_email200_response_auth_auth.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/verify_email_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/verify_wallet_request.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/wallet_verified200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/models/whoami200_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/py.typed +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/client/rest.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/auth/main.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/common/errors.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/common/scopes.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/common/sorter.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/api/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/api/data_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/api/models_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/api/status_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/api_client.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/api_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/configuration.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/exceptions.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/coins.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/data_download_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/data_info.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/data_value_value_value_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/data_version.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/download_links.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/evaluation.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/evaluation_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/feature_size.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/http_validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/model_create.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/model_status.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/model_update.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/target.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/target_type.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/py.typed +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/client/rest.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/hive/main.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api/funding_rates_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api/health_check_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api/ohlcv_data_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api/symbols_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api/udf_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api_client.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/api_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/exceptions.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/base_response_health_check_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/base_response_list_funding_rate_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/base_response_list_str.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/base_response_ohlcv_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/error_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/exchange.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/funding_rate_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/health_check_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/history_error_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/history_no_data_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/history_success_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/http_validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/market.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/ohlcv_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/resolution.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/response_get_history_udf_history_get.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/search_symbol_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/sort_direction.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/symbol_group_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/symbol_info_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/symbol_type.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/timeframe.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/udf_config_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/py.typed +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/client/rest.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/klines/main.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/exchanges_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/health_check_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/indicators_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/logs_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/marketcap_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/markets_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api/tokens_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api_client.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/api_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/configuration.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/exceptions.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/base_response_dict.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/base_response_health_check_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/base_response_list_dict.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/base_response_list_exchange_mapping.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/base_response_list_str.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/error_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/exchange_mapping.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/health_check_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/http_validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/market.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/severity.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/py.typed +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/metrics/client/rest.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/api/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/api/status_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/api_client.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/api_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/configuration.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/exceptions.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/api_status_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/body_create_now_invoice.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/body_create_product.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/body_get_products.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/body_handle_now_webhook.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/body_update_product.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/combined_payment_history.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/create_invoice_req.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/create_invoice_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/currency.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/estimate_price_req.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/estimate_price_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/get_currencies_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/get_payment_status_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/get_payments_list_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/http_validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/min_amount_req.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/min_amount_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/now_api_status_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/now_create_invoice_req.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/now_create_invoice_res.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/now_fee_structure.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/now_payment_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/now_payment_status.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/payment.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/payment_status.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/product.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/product_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/product_subs_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/scope.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/services.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/unified_payment_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/py.typed +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/client/rest.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/pay/main.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/api_keys_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/bots_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/exchanges_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/futures_trading_panel_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/notifications_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/orders_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/status_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/strategies_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api/trading_actions_api.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api_client.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/api_response.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/configuration.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/exceptions.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/__init__.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/action_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/api_error_identifier.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/api_error_level.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/api_error_type.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/api_key_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/bot_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/bot_status.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/exchange.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/execution_ids.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/futures_balance.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/futures_trading_action.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/http_validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/margin_mode.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/market_type.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/notification_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/order_model.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/order_status.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/post_futures_action.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/strategy_exchange_info.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/strategy_model_input.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/strategy_model_output.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/tpsl.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/trading_action_type.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/validation_error.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/models/validation_error_loc_inner.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/py.typed +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/client/rest.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn/trade/main.py +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn.egg-info/dependency_links.txt +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn.egg-info/requires.txt +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/crypticorn.egg-info/top_level.txt +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/requirements/dev.txt +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/requirements/main.txt +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/requirements/test.txt +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/setup.cfg +0 -0
- {crypticorn-2.2.1 → crypticorn-2.2.2}/tests/test_auth_client.py +0 -0
@@ -6,6 +6,8 @@ from crypticorn.metrics import MetricsClient
|
|
6
6
|
from crypticorn.auth import AuthClient
|
7
7
|
from crypticorn.common import BaseUrl, ApiVersion, Service, apikey_header as aph
|
8
8
|
import warnings
|
9
|
+
|
10
|
+
|
9
11
|
class ApiClient:
|
10
12
|
"""
|
11
13
|
The official client for interacting with the Crypticorn API.
|
@@ -20,25 +22,27 @@ class ApiClient:
|
|
20
22
|
base_url: BaseUrl = BaseUrl.PROD,
|
21
23
|
):
|
22
24
|
self.base_url = base_url
|
23
|
-
|
25
|
+
"""The base URL the client will use to connect to the API."""
|
24
26
|
self.api_key = api_key
|
25
|
-
|
27
|
+
"""The API key to use for authentication."""
|
26
28
|
self.jwt = jwt
|
27
|
-
|
29
|
+
"""The JWT to use for authentication."""
|
28
30
|
|
29
31
|
self.hive = HiveClient(self._get_default_config(Service.HIVE))
|
30
32
|
self.trade = TradeClient(self._get_default_config(Service.TRADE))
|
31
33
|
self.klines = KlinesClient(self._get_default_config(Service.KLINES))
|
32
34
|
self.pay = PayClient(self._get_default_config(Service.PAY))
|
33
35
|
self.metrics = MetricsClient(self._get_default_config(Service.METRICS))
|
34
|
-
self.auth = AuthClient(self._get_default_config(Service.AUTH))
|
36
|
+
self.auth = AuthClient(self._get_default_config(Service.AUTH))
|
35
37
|
|
36
38
|
def __new__(cls, *args, **kwargs):
|
37
39
|
if kwargs.get("api_key") and not kwargs.get("jwt"):
|
38
40
|
# auth-service does not allow api_key
|
39
|
-
warnings.warn(
|
41
|
+
warnings.warn(
|
42
|
+
"The auth module does only accept JWT to be used to authenticate. If you use this module, you need to provide a JWT."
|
43
|
+
)
|
40
44
|
return super().__new__(cls)
|
41
|
-
|
45
|
+
|
42
46
|
async def close(self):
|
43
47
|
"""Close all client sessions."""
|
44
48
|
clients = [
|
@@ -54,7 +58,9 @@ class ApiClient:
|
|
54
58
|
if hasattr(client, "close"):
|
55
59
|
await client.close()
|
56
60
|
|
57
|
-
def _get_default_config(
|
61
|
+
def _get_default_config(
|
62
|
+
self, service: Service, version: ApiVersion = ApiVersion.V1
|
63
|
+
):
|
58
64
|
"""
|
59
65
|
Get the default configuration for a given service.
|
60
66
|
"""
|
@@ -62,9 +68,11 @@ class ApiClient:
|
|
62
68
|
host=f"{self.base_url}/{version}/{service}",
|
63
69
|
access_token=self.jwt,
|
64
70
|
api_key={aph.scheme_name: self.api_key} if self.api_key else None,
|
65
|
-
api_key_prefix=(
|
71
|
+
api_key_prefix=(
|
72
|
+
{aph.scheme_name: aph.model.name} if self.api_key else None
|
73
|
+
),
|
66
74
|
)
|
67
|
-
|
75
|
+
|
68
76
|
def configure(self, config: Configuration, sub_client: any):
|
69
77
|
"""
|
70
78
|
Update a sub-client's configuration by overriding with the values set in the new config.
|
@@ -104,4 +112,3 @@ class ApiClient:
|
|
104
112
|
|
105
113
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
106
114
|
await self.close()
|
107
|
-
|
@@ -6,8 +6,8 @@ from pydantic.fields import FieldInfo
|
|
6
6
|
|
7
7
|
|
8
8
|
def partial_model(model: Type[BaseModel]) -> Type[BaseModel]:
|
9
|
-
|
10
|
-
|
9
|
+
"""Marks all fields of a model as optional. Useful for updating models.
|
10
|
+
|
11
11
|
>>> @partial_model
|
12
12
|
>>> class Model(BaseModel):
|
13
13
|
>>> i: int
|
@@ -15,18 +15,22 @@ def partial_model(model: Type[BaseModel]) -> Type[BaseModel]:
|
|
15
15
|
>>> s: str
|
16
16
|
|
17
17
|
>>> Model(i=1)
|
18
|
-
|
19
|
-
|
18
|
+
"""
|
19
|
+
|
20
|
+
def make_field_optional(
|
21
|
+
field: FieldInfo, default: Any = None
|
22
|
+
) -> Tuple[Any, FieldInfo]:
|
20
23
|
new = deepcopy(field)
|
21
24
|
new.default = default
|
22
25
|
new.annotation = Optional[field.annotation] # type: ignore
|
23
|
-
return new.annotation, new
|
26
|
+
return new.annotation, new
|
27
|
+
|
24
28
|
return create_model(
|
25
|
-
|
29
|
+
model.__name__,
|
26
30
|
__base__=model,
|
27
31
|
__module__=model.__module__,
|
28
32
|
**{
|
29
33
|
field_name: make_field_optional(field_info)
|
30
34
|
for field_name, field_info in model.model_fields.items()
|
31
|
-
}
|
32
|
-
)
|
35
|
+
},
|
36
|
+
)
|
@@ -190,9 +190,7 @@ class Configuration:
|
|
190
190
|
debug: Optional[bool] = None,
|
191
191
|
) -> None:
|
192
192
|
"""Constructor"""
|
193
|
-
self._base_path =
|
194
|
-
"http://localhost/v1/klines" if host is None else host
|
195
|
-
)
|
193
|
+
self._base_path = "http://localhost/v1/klines" if host is None else host
|
196
194
|
"""Default Base url
|
197
195
|
"""
|
198
196
|
self.server_index = 0 if server_index is None and host is None else server_index
|
@@ -38,7 +38,6 @@ class MetricsClient:
|
|
38
38
|
self.exchanges = ExchangesApi(self.base_client)
|
39
39
|
|
40
40
|
|
41
|
-
|
42
41
|
class MarketcapApiWrapper(MarketcapApi):
|
43
42
|
"""
|
44
43
|
A wrapper for the MarketcapApi class.
|
@@ -77,8 +76,8 @@ class MarketcapApiWrapper(MarketcapApi):
|
|
77
76
|
)
|
78
77
|
json_response = await response.json()
|
79
78
|
df = pd.DataFrame(json_response["data"])
|
80
|
-
df.rename(columns={df.columns[0]:
|
81
|
-
df[
|
79
|
+
df.rename(columns={df.columns[0]: "timestamp"}, inplace=True)
|
80
|
+
df["timestamp"] = pd.to_datetime(df["timestamp"]).astype("int64") // 10**9
|
82
81
|
return df
|
83
82
|
|
84
83
|
|
@@ -97,6 +96,8 @@ class TokensApiWrapper(TokensApi):
|
|
97
96
|
"""
|
98
97
|
Get the tokens in a pandas dataframe
|
99
98
|
"""
|
100
|
-
response = await self.get_stable_and_wrapped_tokens_without_preload_content(
|
99
|
+
response = await self.get_stable_and_wrapped_tokens_without_preload_content(
|
100
|
+
token_type=token_type
|
101
|
+
)
|
101
102
|
json_data = await response.json()
|
102
|
-
return pd.DataFrame(json_data[
|
103
|
+
return pd.DataFrame(json_data["data"])
|
@@ -41,6 +41,9 @@ 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.partial_product_update_model import (
|
45
|
+
PartialProductUpdateModel,
|
46
|
+
)
|
44
47
|
from crypticorn.pay.client.models.payment_status import PaymentStatus
|
45
48
|
from crypticorn.pay.client.models.product_model import ProductModel
|
46
49
|
from crypticorn.pay.client.models.product_subs_model import ProductSubsModel
|
@@ -313,7 +313,7 @@ class NOWPaymentsApi:
|
|
313
313
|
) -> NowAPIStatusRes:
|
314
314
|
"""Get Status
|
315
315
|
|
316
|
-
Get NOWPayments API
|
316
|
+
Get the status of the NOWPayments API
|
317
317
|
|
318
318
|
:param _request_timeout: timeout setting for this request. If one
|
319
319
|
number provided, it will be total request
|
@@ -373,7 +373,7 @@ class NOWPaymentsApi:
|
|
373
373
|
) -> ApiResponse[NowAPIStatusRes]:
|
374
374
|
"""Get Status
|
375
375
|
|
376
|
-
Get NOWPayments API
|
376
|
+
Get the status of the NOWPayments API
|
377
377
|
|
378
378
|
:param _request_timeout: timeout setting for this request. If one
|
379
379
|
number provided, it will be total request
|
@@ -433,7 +433,7 @@ class NOWPaymentsApi:
|
|
433
433
|
) -> RESTResponseType:
|
434
434
|
"""Get Status
|
435
435
|
|
436
|
-
Get NOWPayments API
|
436
|
+
Get the status of the NOWPayments API
|
437
437
|
|
438
438
|
:param _request_timeout: timeout setting for this request. If one
|
439
439
|
number provided, it will be total request
|
@@ -16,8 +16,9 @@ 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 StrictStr
|
19
|
+
from pydantic import Field, StrictStr
|
20
20
|
from typing import List, Optional
|
21
|
+
from typing_extensions import Annotated
|
21
22
|
from crypticorn.pay.client.models.product_subs_model import ProductSubsModel
|
22
23
|
from crypticorn.pay.client.models.unified_payment_model import UnifiedPaymentModel
|
23
24
|
|
@@ -41,7 +42,10 @@ class PaymentsApi:
|
|
41
42
|
@validate_call
|
42
43
|
async def get_latest_payment_from_invoice(
|
43
44
|
self,
|
44
|
-
invoice_id:
|
45
|
+
invoice_id: Annotated[
|
46
|
+
StrictStr,
|
47
|
+
Field(description="The invoice ID to get the latest payment from"),
|
48
|
+
],
|
45
49
|
_request_timeout: Union[
|
46
50
|
None,
|
47
51
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -56,9 +60,9 @@ class PaymentsApi:
|
|
56
60
|
) -> UnifiedPaymentModel:
|
57
61
|
"""Get Latest Payment From Invoice
|
58
62
|
|
59
|
-
Get the latest payment from an invoice
|
63
|
+
Get the latest payment by a user from an invoice
|
60
64
|
|
61
|
-
:param invoice_id: (required)
|
65
|
+
:param invoice_id: The invoice ID to get the latest payment from (required)
|
62
66
|
:type invoice_id: str
|
63
67
|
:param _request_timeout: timeout setting for this request. If one
|
64
68
|
number provided, it will be total request
|
@@ -106,7 +110,10 @@ class PaymentsApi:
|
|
106
110
|
@validate_call
|
107
111
|
async def get_latest_payment_from_invoice_with_http_info(
|
108
112
|
self,
|
109
|
-
invoice_id:
|
113
|
+
invoice_id: Annotated[
|
114
|
+
StrictStr,
|
115
|
+
Field(description="The invoice ID to get the latest payment from"),
|
116
|
+
],
|
110
117
|
_request_timeout: Union[
|
111
118
|
None,
|
112
119
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -121,9 +128,9 @@ class PaymentsApi:
|
|
121
128
|
) -> ApiResponse[UnifiedPaymentModel]:
|
122
129
|
"""Get Latest Payment From Invoice
|
123
130
|
|
124
|
-
Get the latest payment from an invoice
|
131
|
+
Get the latest payment by a user from an invoice
|
125
132
|
|
126
|
-
:param invoice_id: (required)
|
133
|
+
:param invoice_id: The invoice ID to get the latest payment from (required)
|
127
134
|
:type invoice_id: str
|
128
135
|
:param _request_timeout: timeout setting for this request. If one
|
129
136
|
number provided, it will be total request
|
@@ -171,7 +178,10 @@ class PaymentsApi:
|
|
171
178
|
@validate_call
|
172
179
|
async def get_latest_payment_from_invoice_without_preload_content(
|
173
180
|
self,
|
174
|
-
invoice_id:
|
181
|
+
invoice_id: Annotated[
|
182
|
+
StrictStr,
|
183
|
+
Field(description="The invoice ID to get the latest payment from"),
|
184
|
+
],
|
175
185
|
_request_timeout: Union[
|
176
186
|
None,
|
177
187
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -186,9 +196,9 @@ class PaymentsApi:
|
|
186
196
|
) -> RESTResponseType:
|
187
197
|
"""Get Latest Payment From Invoice
|
188
198
|
|
189
|
-
Get the latest payment from an invoice
|
199
|
+
Get the latest payment by a user from an invoice
|
190
200
|
|
191
|
-
:param invoice_id: (required)
|
201
|
+
:param invoice_id: The invoice ID to get the latest payment from (required)
|
192
202
|
:type invoice_id: str
|
193
203
|
:param _request_timeout: timeout setting for this request. If one
|
194
204
|
number provided, it will be total request
|
@@ -302,7 +312,7 @@ class PaymentsApi:
|
|
302
312
|
) -> List[UnifiedPaymentModel]:
|
303
313
|
"""Get Payments
|
304
314
|
|
305
|
-
Get combined payment history for a user across all payment services.
|
315
|
+
Get the combined payment history for a user across all payment services.
|
306
316
|
|
307
317
|
:param _request_timeout: timeout setting for this request. If one
|
308
318
|
number provided, it will be total request
|
@@ -362,7 +372,7 @@ class PaymentsApi:
|
|
362
372
|
) -> ApiResponse[List[UnifiedPaymentModel]]:
|
363
373
|
"""Get Payments
|
364
374
|
|
365
|
-
Get combined payment history for a user across all payment services.
|
375
|
+
Get the combined payment history for a user across all payment services.
|
366
376
|
|
367
377
|
:param _request_timeout: timeout setting for this request. If one
|
368
378
|
number provided, it will be total request
|
@@ -422,7 +432,7 @@ class PaymentsApi:
|
|
422
432
|
) -> RESTResponseType:
|
423
433
|
"""Get Payments
|
424
434
|
|
425
|
-
Get combined payment history for a user across all payment services.
|
435
|
+
Get the combined payment history for a user across all payment services.
|
426
436
|
|
427
437
|
:param _request_timeout: timeout setting for this request. If one
|
428
438
|
number provided, it will be total request
|
@@ -515,7 +525,12 @@ class PaymentsApi:
|
|
515
525
|
@validate_call
|
516
526
|
async def get_subscriptions(
|
517
527
|
self,
|
518
|
-
user_id:
|
528
|
+
user_id: Annotated[
|
529
|
+
Optional[StrictStr],
|
530
|
+
Field(
|
531
|
+
description="The user ID to get subscriptions for. Defaults to the authenticated user."
|
532
|
+
),
|
533
|
+
] = None,
|
519
534
|
_request_timeout: Union[
|
520
535
|
None,
|
521
536
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -530,8 +545,9 @@ class PaymentsApi:
|
|
530
545
|
) -> List[ProductSubsModel]:
|
531
546
|
"""Get Subscriptions
|
532
547
|
|
548
|
+
Get all subscriptions for a user. Subscriptions are the products a user has subscribed to. Returns both active and inactive subscriptions.
|
533
549
|
|
534
|
-
:param user_id:
|
550
|
+
:param user_id: The user ID to get subscriptions for. Defaults to the authenticated user.
|
535
551
|
:type user_id: str
|
536
552
|
:param _request_timeout: timeout setting for this request. If one
|
537
553
|
number provided, it will be total request
|
@@ -579,7 +595,12 @@ class PaymentsApi:
|
|
579
595
|
@validate_call
|
580
596
|
async def get_subscriptions_with_http_info(
|
581
597
|
self,
|
582
|
-
user_id:
|
598
|
+
user_id: Annotated[
|
599
|
+
Optional[StrictStr],
|
600
|
+
Field(
|
601
|
+
description="The user ID to get subscriptions for. Defaults to the authenticated user."
|
602
|
+
),
|
603
|
+
] = None,
|
583
604
|
_request_timeout: Union[
|
584
605
|
None,
|
585
606
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -594,8 +615,9 @@ class PaymentsApi:
|
|
594
615
|
) -> ApiResponse[List[ProductSubsModel]]:
|
595
616
|
"""Get Subscriptions
|
596
617
|
|
618
|
+
Get all subscriptions for a user. Subscriptions are the products a user has subscribed to. Returns both active and inactive subscriptions.
|
597
619
|
|
598
|
-
:param user_id:
|
620
|
+
:param user_id: The user ID to get subscriptions for. Defaults to the authenticated user.
|
599
621
|
:type user_id: str
|
600
622
|
:param _request_timeout: timeout setting for this request. If one
|
601
623
|
number provided, it will be total request
|
@@ -643,7 +665,12 @@ class PaymentsApi:
|
|
643
665
|
@validate_call
|
644
666
|
async def get_subscriptions_without_preload_content(
|
645
667
|
self,
|
646
|
-
user_id:
|
668
|
+
user_id: Annotated[
|
669
|
+
Optional[StrictStr],
|
670
|
+
Field(
|
671
|
+
description="The user ID to get subscriptions for. Defaults to the authenticated user."
|
672
|
+
),
|
673
|
+
] = None,
|
647
674
|
_request_timeout: Union[
|
648
675
|
None,
|
649
676
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -658,8 +685,9 @@ class PaymentsApi:
|
|
658
685
|
) -> RESTResponseType:
|
659
686
|
"""Get Subscriptions
|
660
687
|
|
688
|
+
Get all subscriptions for a user. Subscriptions are the products a user has subscribed to. Returns both active and inactive subscriptions.
|
661
689
|
|
662
|
-
:param user_id:
|
690
|
+
:param user_id: The user ID to get subscriptions for. Defaults to the authenticated user.
|
663
691
|
:type user_id: str
|
664
692
|
:param _request_timeout: timeout setting for this request. If one
|
665
693
|
number provided, it will be total request
|