mesta 0.1.0__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.
- mesta-0.1.0/LICENSE +21 -0
- mesta-0.1.0/PKG-INFO +230 -0
- mesta-0.1.0/README.md +193 -0
- mesta-0.1.0/pyproject.toml +99 -0
- mesta-0.1.0/src/mesta/__init__.py +1348 -0
- mesta-0.1.0/src/mesta/_default_clients.py +29 -0
- mesta-0.1.0/src/mesta/api_keys/__init__.py +69 -0
- mesta-0.1.0/src/mesta/api_keys/client.py +507 -0
- mesta-0.1.0/src/mesta/api_keys/raw_client.py +1055 -0
- mesta-0.1.0/src/mesta/api_keys/types/__init__.py +67 -0
- mesta-0.1.0/src/mesta/api_keys/types/create_api_keys_response.py +29 -0
- mesta-0.1.0/src/mesta/api_keys/types/create_api_keys_response_data.py +66 -0
- mesta-0.1.0/src/mesta/api_keys/types/get_api_keys_response.py +29 -0
- mesta-0.1.0/src/mesta/api_keys/types/get_api_keys_response_data.py +61 -0
- mesta-0.1.0/src/mesta/api_keys/types/list_api_keys_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/api_keys/types/list_api_keys_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/api_keys/types/list_api_keys_response.py +31 -0
- mesta-0.1.0/src/mesta/api_keys/types/list_api_keys_response_data_item.py +61 -0
- mesta-0.1.0/src/mesta/api_keys/types/list_api_keys_response_meta.py +37 -0
- mesta-0.1.0/src/mesta/api_keys/types/update_api_keys_response.py +29 -0
- mesta-0.1.0/src/mesta/api_keys/types/update_api_keys_response_data.py +61 -0
- mesta-0.1.0/src/mesta/auth/__init__.py +57 -0
- mesta-0.1.0/src/mesta/auth/client.py +292 -0
- mesta-0.1.0/src/mesta/auth/raw_client.py +500 -0
- mesta-0.1.0/src/mesta/auth/types/__init__.py +55 -0
- mesta-0.1.0/src/mesta/auth/types/authorize_auth_request_permission_check_type.py +4 -0
- mesta-0.1.0/src/mesta/auth/types/authorize_auth_response.py +29 -0
- mesta-0.1.0/src/mesta/auth/types/authorize_auth_response_data.py +31 -0
- mesta-0.1.0/src/mesta/auth/types/merchant_login_auth_response.py +29 -0
- mesta-0.1.0/src/mesta/auth/types/merchant_login_auth_response_data.py +54 -0
- mesta-0.1.0/src/mesta/auth/types/merchant_login_auth_response_data_user.py +44 -0
- mesta-0.1.0/src/mesta/auth/types/merchant_login_auth_response_data_user_scope.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/__init__.py +203 -0
- mesta-0.1.0/src/mesta/beneficiaries/client.py +1077 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/__init__.py +51 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/client.py +223 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/raw_client.py +409 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/types/__init__.py +51 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/types/get_presigned_url_documents_request_type.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/types/get_presigned_url_documents_response.py +29 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/types/get_presigned_url_documents_response_data.py +47 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/types/get_presigned_url_documents_response_data_type.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/documents/types/get_purpose_of_payment_presigned_url_documents_response.py +51 -0
- mesta-0.1.0/src/mesta/beneficiaries/raw_client.py +1884 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/__init__.py +191 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_request_address.py +56 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_request_business_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_request_identity.py +65 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_request_identity_document_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_request_payment_methods_item.py +28 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_request_type.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response.py +29 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data.py +152 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_address.py +27 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_business_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_identity.py +67 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_identity_document_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_type.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_verification.py +25 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/create_beneficiaries_response_data_verification_status.py +6 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/delete_beneficiaries_response.py +27 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response.py +29 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data.py +176 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_address.py +27 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_business_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_identity.py +80 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_identity_document_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_identity_front.py +41 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_type.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_verification.py +25 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/get_beneficiaries_response_data_verification_status.py +6 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response.py +43 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item.py +166 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_address.py +27 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_business_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_identity.py +82 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_identity_document_type.py +7 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_identity_front.py +41 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_status.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_type.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_verification.py +27 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/list_beneficiaries_response_data_item_verification_status.py +6 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/lookup_bank_beneficiaries_response.py +33 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/lookup_bank_beneficiaries_response_data_item.py +37 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/simulate_verification_result_beneficiaries_request_result.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/simulate_verification_result_beneficiaries_response.py +27 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/update_beneficiaries_request_address.py +27 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/update_beneficiaries_request_type.py +4 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/update_beneficiaries_response.py +32 -0
- mesta-0.1.0/src/mesta/beneficiaries/types/verify_beneficiaries_response.py +27 -0
- mesta-0.1.0/src/mesta/client.py +463 -0
- mesta-0.1.0/src/mesta/core/__init__.py +126 -0
- mesta-0.1.0/src/mesta/core/api_error.py +22 -0
- mesta-0.1.0/src/mesta/core/client_wrapper.py +147 -0
- mesta-0.1.0/src/mesta/core/datetime_utils.py +69 -0
- mesta-0.1.0/src/mesta/core/file.py +66 -0
- mesta-0.1.0/src/mesta/core/force_multipart.py +17 -0
- mesta-0.1.0/src/mesta/core/http_client.py +939 -0
- mesta-0.1.0/src/mesta/core/http_response.py +62 -0
- mesta-0.1.0/src/mesta/core/http_sse/__init__.py +41 -0
- mesta-0.1.0/src/mesta/core/http_sse/_api.py +454 -0
- mesta-0.1.0/src/mesta/core/http_sse/_decoders.py +73 -0
- mesta-0.1.0/src/mesta/core/http_sse/_exceptions.py +6 -0
- mesta-0.1.0/src/mesta/core/http_sse/_models.py +16 -0
- mesta-0.1.0/src/mesta/core/jsonable_encoder.py +132 -0
- mesta-0.1.0/src/mesta/core/logging.py +106 -0
- mesta-0.1.0/src/mesta/core/parse_error.py +35 -0
- mesta-0.1.0/src/mesta/core/pydantic_utilities.py +485 -0
- mesta-0.1.0/src/mesta/core/query_encoder.py +57 -0
- mesta-0.1.0/src/mesta/core/remove_none_from_dict.py +10 -0
- mesta-0.1.0/src/mesta/core/request_options.py +39 -0
- mesta-0.1.0/src/mesta/core/serialization.py +346 -0
- mesta-0.1.0/src/mesta/environment.py +7 -0
- mesta-0.1.0/src/mesta/errors/__init__.py +55 -0
- mesta-0.1.0/src/mesta/errors/bad_request_error.py +9 -0
- mesta-0.1.0/src/mesta/errors/conflict_error.py +9 -0
- mesta-0.1.0/src/mesta/errors/forbidden_error.py +9 -0
- mesta-0.1.0/src/mesta/errors/internal_server_error.py +10 -0
- mesta-0.1.0/src/mesta/errors/not_found_error.py +9 -0
- mesta-0.1.0/src/mesta/errors/too_many_requests_error.py +9 -0
- mesta-0.1.0/src/mesta/errors/unauthorized_error.py +9 -0
- mesta-0.1.0/src/mesta/events/__init__.py +51 -0
- mesta-0.1.0/src/mesta/events/client.py +196 -0
- mesta-0.1.0/src/mesta/events/raw_client.py +263 -0
- mesta-0.1.0/src/mesta/events/types/__init__.py +49 -0
- mesta-0.1.0/src/mesta/events/types/list_events_request_aggregate_type.py +6 -0
- mesta-0.1.0/src/mesta/events/types/list_events_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/events/types/list_events_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/events/types/list_events_response.py +34 -0
- mesta-0.1.0/src/mesta/events/types/list_events_response_data_item.py +43 -0
- mesta-0.1.0/src/mesta/merchants/__init__.py +195 -0
- mesta-0.1.0/src/mesta/merchants/accounts/__init__.py +66 -0
- mesta-0.1.0/src/mesta/merchants/accounts/client.py +296 -0
- mesta-0.1.0/src/mesta/merchants/accounts/raw_client.py +558 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/__init__.py +64 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_accounts_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_accounts_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_accounts_response.py +47 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_accounts_response_data_item.py +89 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_accounts_response_data_item_currency.py +9 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_balances_accounts_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_balances_accounts_response_data_item.py +40 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_sender_balances_accounts_request_currency.py +9 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_sender_balances_accounts_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/accounts/types/list_sender_balances_accounts_response_data_item.py +53 -0
- mesta-0.1.0/src/mesta/merchants/client.py +368 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/__init__.py +51 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/client.py +289 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/raw_client.py +473 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/types/__init__.py +49 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/types/get_fiat_deposits_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/types/list_fiat_deposits_request_currency.py +4 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/types/list_fiat_deposits_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/types/list_fiat_deposits_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/merchants/fiat_deposits/types/list_fiat_deposits_response.py +43 -0
- mesta-0.1.0/src/mesta/merchants/raw_client.py +597 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/__init__.py +66 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/client.py +312 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/raw_client.py +603 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/__init__.py +74 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/create_source_wallet_addresses_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item.py +57 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item_chain.py +6 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item_owner_type.py +6 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item_risk_level.py +6 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/list_source_wallet_addresses_response.py +43 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item.py +61 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item_chain.py +6 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item_owner_type.py +6 -0
- mesta-0.1.0/src/mesta/merchants/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item_risk_level.py +6 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/__init__.py +57 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/client.py +335 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/raw_client.py +515 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/__init__.py +55 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/get_stablecoin_deposits_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/list_stablecoin_deposits_request_currency.py +4 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/list_stablecoin_deposits_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/list_stablecoin_deposits_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/list_stablecoin_deposits_request_status.py +7 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/list_stablecoin_deposits_request_swa_risk_level.py +6 -0
- mesta-0.1.0/src/mesta/merchants/stablecoin_deposits/types/list_stablecoin_deposits_response.py +43 -0
- mesta-0.1.0/src/mesta/merchants/transactions/__init__.py +37 -0
- mesta-0.1.0/src/mesta/merchants/transactions/client.py +218 -0
- mesta-0.1.0/src/mesta/merchants/transactions/raw_client.py +281 -0
- mesta-0.1.0/src/mesta/merchants/transactions/types/__init__.py +39 -0
- mesta-0.1.0/src/mesta/merchants/transactions/types/list_transactions_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/merchants/transactions/types/list_transactions_response.py +49 -0
- mesta-0.1.0/src/mesta/merchants/transactions/types/list_transactions_response_data_item.py +102 -0
- mesta-0.1.0/src/mesta/merchants/types/__init__.py +67 -0
- mesta-0.1.0/src/mesta/merchants/types/accept_terms_merchants_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/types/accept_terms_merchants_response_data.py +21 -0
- mesta-0.1.0/src/mesta/merchants/types/get_balances_merchants_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/types/get_balances_merchants_response_data_item.py +26 -0
- mesta-0.1.0/src/mesta/merchants/types/get_merchants_response.py +29 -0
- mesta-0.1.0/src/mesta/merchants/types/get_merchants_response_data.py +167 -0
- mesta-0.1.0/src/mesta/merchants/types/get_merchants_response_data_address.py +94 -0
- mesta-0.1.0/src/mesta/merchants/types/get_merchants_response_data_kyb.py +38 -0
- mesta-0.1.0/src/mesta/merchants/types/get_merchants_response_data_kyb_status.py +6 -0
- mesta-0.1.0/src/mesta/merchants/types/get_merchants_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/merchants/types/get_merchants_response_data_ubo.py +110 -0
- mesta-0.1.0/src/mesta/orders/__init__.py +110 -0
- mesta-0.1.0/src/mesta/orders/client.py +859 -0
- mesta-0.1.0/src/mesta/orders/documents/__init__.py +36 -0
- mesta-0.1.0/src/mesta/orders/documents/client.py +123 -0
- mesta-0.1.0/src/mesta/orders/documents/raw_client.py +208 -0
- mesta-0.1.0/src/mesta/orders/documents/types/__init__.py +37 -0
- mesta-0.1.0/src/mesta/orders/documents/types/get_presigned_url_documents_response.py +29 -0
- mesta-0.1.0/src/mesta/orders/documents/types/get_presigned_url_documents_response_data.py +46 -0
- mesta-0.1.0/src/mesta/orders/raw_client.py +1583 -0
- mesta-0.1.0/src/mesta/orders/types/__init__.py +104 -0
- mesta-0.1.0/src/mesta/orders/types/cancel_orders_response.py +29 -0
- mesta-0.1.0/src/mesta/orders/types/cancel_orders_response_data.py +205 -0
- mesta-0.1.0/src/mesta/orders/types/cancel_orders_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/orders/types/create_orders_response.py +29 -0
- mesta-0.1.0/src/mesta/orders/types/create_orders_response_data.py +103 -0
- mesta-0.1.0/src/mesta/orders/types/get_deposit_bank_account_orders_response.py +29 -0
- mesta-0.1.0/src/mesta/orders/types/get_deposit_bank_account_orders_response_data.py +92 -0
- mesta-0.1.0/src/mesta/orders/types/get_deposit_bank_account_orders_response_data_bank_details.py +26 -0
- mesta-0.1.0/src/mesta/orders/types/get_deposit_bank_account_orders_response_data_routing_details_item.py +36 -0
- mesta-0.1.0/src/mesta/orders/types/get_deposit_wallet_address_orders_response.py +29 -0
- mesta-0.1.0/src/mesta/orders/types/get_deposit_wallet_address_orders_response_data.py +67 -0
- mesta-0.1.0/src/mesta/orders/types/get_deposit_wallet_address_orders_response_data_chain.py +6 -0
- mesta-0.1.0/src/mesta/orders/types/get_orders_response.py +29 -0
- mesta-0.1.0/src/mesta/orders/types/get_orders_response_data.py +256 -0
- mesta-0.1.0/src/mesta/orders/types/get_orders_response_data_status.py +24 -0
- mesta-0.1.0/src/mesta/orders/types/list_events_orders_response.py +29 -0
- mesta-0.1.0/src/mesta/orders/types/list_events_orders_response_data_item.py +27 -0
- mesta-0.1.0/src/mesta/orders/types/list_orders_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/orders/types/list_orders_request_status.py +24 -0
- mesta-0.1.0/src/mesta/orders/types/list_orders_response.py +47 -0
- mesta-0.1.0/src/mesta/orders/types/list_orders_response_data_item.py +213 -0
- mesta-0.1.0/src/mesta/orders/types/list_orders_response_data_item_status.py +24 -0
- mesta-0.1.0/src/mesta/payment_methods/__init__.py +69 -0
- mesta-0.1.0/src/mesta/payment_methods/client.py +716 -0
- mesta-0.1.0/src/mesta/payment_methods/raw_client.py +1343 -0
- mesta-0.1.0/src/mesta/payment_methods/types/__init__.py +67 -0
- mesta-0.1.0/src/mesta/payment_methods/types/consent_decision_request_status.py +4 -0
- mesta-0.1.0/src/mesta/payment_methods/types/create_payment_method_request_data.py +14 -0
- mesta-0.1.0/src/mesta/payment_methods/types/create_payment_methods_response.py +29 -0
- mesta-0.1.0/src/mesta/payment_methods/types/decide_consent_payment_methods_response.py +29 -0
- mesta-0.1.0/src/mesta/payment_methods/types/delete_payment_methods_response.py +32 -0
- mesta-0.1.0/src/mesta/payment_methods/types/get_payment_methods_response.py +29 -0
- mesta-0.1.0/src/mesta/payment_methods/types/list_payment_methods_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/payment_methods/types/list_payment_methods_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/payment_methods/types/list_payment_methods_response.py +39 -0
- mesta-0.1.0/src/mesta/payment_methods/types/update_payment_method_request_data.py +14 -0
- mesta-0.1.0/src/mesta/payment_methods/types/update_payment_methods_response.py +29 -0
- mesta-0.1.0/src/mesta/py.typed +0 -0
- mesta-0.1.0/src/mesta/quotes/__init__.py +84 -0
- mesta-0.1.0/src/mesta/quotes/client.py +376 -0
- mesta-0.1.0/src/mesta/quotes/raw_client.py +704 -0
- mesta-0.1.0/src/mesta/quotes/types/__init__.py +82 -0
- mesta-0.1.0/src/mesta/quotes/types/create_quotes_request_source_currency.py +9 -0
- mesta-0.1.0/src/mesta/quotes/types/create_quotes_request_transfer_type.py +4 -0
- mesta-0.1.0/src/mesta/quotes/types/create_quotes_response.py +29 -0
- mesta-0.1.0/src/mesta/quotes/types/create_quotes_response_data.py +152 -0
- mesta-0.1.0/src/mesta/quotes/types/create_quotes_response_data_status.py +6 -0
- mesta-0.1.0/src/mesta/quotes/types/create_quotes_response_data_transfer_type.py +6 -0
- mesta-0.1.0/src/mesta/quotes/types/get_quotes_response.py +29 -0
- mesta-0.1.0/src/mesta/quotes/types/get_quotes_response_data.py +152 -0
- mesta-0.1.0/src/mesta/quotes/types/get_quotes_response_data_status.py +6 -0
- mesta-0.1.0/src/mesta/quotes/types/get_quotes_response_data_transfer_type.py +4 -0
- mesta-0.1.0/src/mesta/quotes/types/list_quotes_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/quotes/types/list_quotes_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/quotes/types/list_quotes_response.py +47 -0
- mesta-0.1.0/src/mesta/quotes/types/list_quotes_response_data_item.py +152 -0
- mesta-0.1.0/src/mesta/quotes/types/list_quotes_response_data_item_status.py +6 -0
- mesta-0.1.0/src/mesta/quotes/types/list_quotes_response_data_item_transfer_type.py +4 -0
- mesta-0.1.0/src/mesta/senders/__init__.py +686 -0
- mesta-0.1.0/src/mesta/senders/associates/__init__.py +33 -0
- mesta-0.1.0/src/mesta/senders/associates/client.py +773 -0
- mesta-0.1.0/src/mesta/senders/associates/raw_client.py +1288 -0
- mesta-0.1.0/src/mesta/senders/associates/types/__init__.py +35 -0
- mesta-0.1.0/src/mesta/senders/associates/types/get_verification_url_associates_request_action.py +4 -0
- mesta-0.1.0/src/mesta/senders/client.py +1168 -0
- mesta-0.1.0/src/mesta/senders/deposit_bank_accounts/__init__.py +45 -0
- mesta-0.1.0/src/mesta/senders/deposit_bank_accounts/client.py +137 -0
- mesta-0.1.0/src/mesta/senders/deposit_bank_accounts/raw_client.py +259 -0
- mesta-0.1.0/src/mesta/senders/deposit_bank_accounts/types/__init__.py +45 -0
- mesta-0.1.0/src/mesta/senders/deposit_bank_accounts/types/generate_on_demand_deposit_bank_accounts_request_currency.py +6 -0
- mesta-0.1.0/src/mesta/senders/deposit_bank_accounts/types/generate_on_demand_deposit_bank_accounts_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/deposit_bank_accounts/types/generate_on_demand_deposit_bank_accounts_response_data.py +21 -0
- mesta-0.1.0/src/mesta/senders/documents/__init__.py +51 -0
- mesta-0.1.0/src/mesta/senders/documents/client.py +244 -0
- mesta-0.1.0/src/mesta/senders/documents/raw_client.py +458 -0
- mesta-0.1.0/src/mesta/senders/documents/types/__init__.py +49 -0
- mesta-0.1.0/src/mesta/senders/documents/types/delete_documents_response.py +32 -0
- mesta-0.1.0/src/mesta/senders/documents/types/upload_documents_request_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/documents/types/upload_documents_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/documents/types/upload_documents_response_data.py +52 -0
- mesta-0.1.0/src/mesta/senders/documents/types/upload_documents_response_data_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/raw_client.py +1994 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/__init__.py +72 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/client.py +366 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/raw_client.py +657 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/__init__.py +80 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/create_source_wallet_addresses_response.py +33 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item.py +100 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item_chain.py +6 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/create_source_wallet_addresses_response_data_item_risk_level.py +6 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/list_source_wallet_addresses_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/list_source_wallet_addresses_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/list_source_wallet_addresses_response.py +47 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item.py +100 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item_chain.py +6 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item_owner_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/source_wallet_addresses/types/list_source_wallet_addresses_response_data_item_risk_level.py +6 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/__init__.py +51 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/client.py +192 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/raw_client.py +356 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/types/__init__.py +49 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/types/get_acceptance_terms_of_service_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/types/get_acceptance_terms_of_service_response_data.py +91 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/types/get_status_terms_of_service_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/types/get_status_terms_of_service_response_data.py +128 -0
- mesta-0.1.0/src/mesta/senders/terms_of_service/types/get_status_terms_of_service_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/__init__.py +363 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_request.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data.py +317 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_addresses_item.py +52 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_business_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_documents_item.py +53 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_documents_item_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_gender.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_identity.py +50 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_kyb.py +40 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_kyb_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_risk_score.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_tos.py +58 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_tos_link.py +38 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_tos_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/create_senders_response_data_type.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/delete_senders_response.py +27 -0
- mesta-0.1.0/src/mesta/senders/types/get_balances_senders_response.py +33 -0
- mesta-0.1.0/src/mesta/senders/types/get_balances_senders_response_data_item.py +26 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data.py +254 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_addresses_item.py +47 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_business_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_deposit_bank_accounts_item.py +86 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_deposit_bank_accounts_item_bank_details.py +26 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_deposit_bank_accounts_item_routing_details_item.py +36 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_deposit_wallet_addresses_item.py +66 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_documents_item.py +53 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_documents_item_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_gender.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_identity.py +89 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_identity_document_back.py +45 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_identity_document_front.py +45 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_kyb.py +40 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_kyb_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_kyc.py +38 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_kyc_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_tos.py +58 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_tos_link.py +38 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_tos_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_type.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item.py +165 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_address.py +51 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_documents_item.py +27 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_identity.py +72 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_identity_document_back.py +60 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_identity_document_front.py +60 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_kyc.py +40 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_kyc_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_pep_questionnaire.py +54 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_pep_questionnaire_association.py +55 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_pep_questionnaire_declaration_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_pep_questionnaire_self.py +68 -0
- mesta-0.1.0/src/mesta/senders/types/get_senders_response_data_ubo_item_pep_questionnaire_self_pep_category.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_request_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response.py +47 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item.py +220 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_addresses_item.py +47 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_business_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_documents_item.py +53 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_documents_item_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_gender.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_identity.py +50 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_kyb.py +40 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_kyb_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_kyc.py +38 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_kyc_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_tos.py +58 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_tos_link.py +38 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_tos_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/list_senders_response_data_item_type.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/simulate_deposit_senders_response.py +27 -0
- mesta-0.1.0/src/mesta/senders/types/simulate_verification_result_senders_request_result.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/simulate_verification_result_senders_response.py +27 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_request_body.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data.py +293 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_addresses_item.py +47 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_business_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_documents_item.py +53 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_documents_item_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_gender.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_identity.py +87 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_kyb.py +40 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_kyb_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_risk_score.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_tos.py +58 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_tos_link.py +38 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_tos_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/update_senders_response_data_type.py +4 -0
- mesta-0.1.0/src/mesta/senders/types/verify_senders_response.py +27 -0
- mesta-0.1.0/src/mesta/senders/ubos/__init__.py +237 -0
- mesta-0.1.0/src/mesta/senders/ubos/client.py +855 -0
- mesta-0.1.0/src/mesta/senders/ubos/raw_client.py +1409 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/__init__.py +257 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_address.py +39 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_identity.py +57 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_pep_questionnaire.py +48 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_pep_questionnaire_association.py +67 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_pep_questionnaire_declaration_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_pep_questionnaire_self.py +74 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_request_pep_questionnaire_self_pep_category.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response.py +24 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data.py +71 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_documents_item.py +27 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_kyc.py +25 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_kyc_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_pep_questionnaire.py +50 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_pep_questionnaire_association.py +55 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_pep_questionnaire_declaration_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_pep_questionnaire_self.py +68 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/create_ubos_response_data_pep_questionnaire_self_pep_category.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/delete_ubos_response.py +27 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data.py +155 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_address.py +51 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_documents_item.py +27 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_identity.py +70 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_identity_document_back.py +60 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_identity_document_front.py +60 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_kyc.py +40 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_kyc_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender.py +86 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender_addresses_item.py +26 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender_documents_item.py +52 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender_kyb.py +24 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender_kyc.py +24 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender_status.py +4 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender_tos.py +18 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_ubos_response_data_sender_type.py +4 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_verification_url_ubos_request_action.py +4 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_verification_url_ubos_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_verification_url_ubos_response_data.py +46 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_verification_url_ubos_response_data_latest_session.py +61 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_verification_url_ubos_response_data_latest_session_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_verification_url_ubos_response_data_previous_sessions_item.py +57 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/get_verification_url_ubos_response_data_previous_sessions_item_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_request_identity.py +64 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_request_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_request_pep_questionnaire.py +48 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_request_pep_questionnaire_association.py +67 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_request_pep_questionnaire_declaration_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_request_pep_questionnaire_self.py +74 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_request_pep_questionnaire_self_pep_category.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response.py +29 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data.py +189 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_address.py +51 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_documents_item.py +27 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_identity.py +50 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_kyc.py +40 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_kyc_status.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_pep_questionnaire.py +50 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_pep_questionnaire_association.py +55 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_pep_questionnaire_declaration_type.py +6 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_pep_questionnaire_self.py +68 -0
- mesta-0.1.0/src/mesta/senders/ubos/types/update_ubos_response_data_pep_questionnaire_self_pep_category.py +6 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/__init__.py +63 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/client.py +588 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/raw_client.py +1025 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/__init__.py +69 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/cancel_setup_virtual_bank_accounts_request_currency.py +4 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/get_setup_status_virtual_bank_accounts_request_currency.py +4 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/get_virtual_bank_accounts_request_currency.py +4 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/request_setup_virtual_bank_accounts_request_currency.py +4 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/update_setup_data_virtual_bank_accounts_request_currency.py +4 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/update_virtual_account_setup_data_associate_details_item.py +27 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/update_virtual_account_setup_data_sender_details.py +75 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/update_virtual_account_setup_data_sender_details_business_type.py +7 -0
- mesta-0.1.0/src/mesta/senders/virtual_bank_accounts/types/update_virtual_account_setup_data_ubo_details_item.py +33 -0
- mesta-0.1.0/src/mesta/transfers/__init__.py +48 -0
- mesta-0.1.0/src/mesta/transfers/client.py +186 -0
- mesta-0.1.0/src/mesta/transfers/raw_client.py +299 -0
- mesta-0.1.0/src/mesta/transfers/types/__init__.py +46 -0
- mesta-0.1.0/src/mesta/transfers/types/create_transfers_response.py +29 -0
- mesta-0.1.0/src/mesta/transfers/types/create_transfers_response_data.py +133 -0
- mesta-0.1.0/src/mesta/transfers/types/create_transfers_response_data_status.py +6 -0
- mesta-0.1.0/src/mesta/transfers/types/create_transfers_response_data_transfer_type.py +4 -0
- mesta-0.1.0/src/mesta/types/__init__.py +451 -0
- mesta-0.1.0/src/mesta/types/address.py +58 -0
- mesta-0.1.0/src/mesta/types/associate_selfie_verification_envelope.py +22 -0
- mesta-0.1.0/src/mesta/types/associate_selfie_verification_envelope_data.py +30 -0
- mesta-0.1.0/src/mesta/types/bad_request_error_body.py +18 -0
- mesta-0.1.0/src/mesta/types/bank_account.py +205 -0
- mesta-0.1.0/src/mesta/types/bank_account_info.py +186 -0
- mesta-0.1.0/src/mesta/types/bank_account_type.py +4 -0
- mesta-0.1.0/src/mesta/types/beneficiary_relationship.py +24 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary.py +106 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary_address.py +58 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary_business_type.py +7 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary_identity.py +64 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary_identity_document_type.py +7 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary_payment_info.py +14 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary_payment_type.py +7 -0
- mesta-0.1.0/src/mesta/types/business_beneficiary_type.py +4 -0
- mesta-0.1.0/src/mesta/types/business_sender.py +116 -0
- mesta-0.1.0/src/mesta/types/business_sender_business_type.py +7 -0
- mesta-0.1.0/src/mesta/types/business_sender_type.py +4 -0
- mesta-0.1.0/src/mesta/types/business_sender_v2.py +53 -0
- mesta-0.1.0/src/mesta/types/business_sender_v2number_of_employees.py +6 -0
- mesta-0.1.0/src/mesta/types/crypto_wallet_info.py +27 -0
- mesta-0.1.0/src/mesta/types/crypto_wallet_info_chain.py +4 -0
- mesta-0.1.0/src/mesta/types/document_type.py +6 -0
- mesta-0.1.0/src/mesta/types/error_response.py +33 -0
- mesta-0.1.0/src/mesta/types/error_response_error.py +45 -0
- mesta-0.1.0/src/mesta/types/fiat_deposit_detail.py +99 -0
- mesta-0.1.0/src/mesta/types/fiat_deposit_detail_currency.py +4 -0
- mesta-0.1.0/src/mesta/types/fiat_deposit_detail_deposit_details.py +122 -0
- mesta-0.1.0/src/mesta/types/fiat_deposit_detail_deposit_details_routing_codes_item.py +36 -0
- mesta-0.1.0/src/mesta/types/fiat_deposit_list_item.py +125 -0
- mesta-0.1.0/src/mesta/types/fiat_deposit_list_item_currency.py +4 -0
- mesta-0.1.0/src/mesta/types/forbidden_error_body.py +18 -0
- mesta-0.1.0/src/mesta/types/individual_beneficiary.py +115 -0
- mesta-0.1.0/src/mesta/types/individual_beneficiary_address.py +58 -0
- mesta-0.1.0/src/mesta/types/individual_beneficiary_identity.py +67 -0
- mesta-0.1.0/src/mesta/types/individual_beneficiary_identity_document_type.py +7 -0
- mesta-0.1.0/src/mesta/types/individual_beneficiary_payment_info.py +14 -0
- mesta-0.1.0/src/mesta/types/individual_beneficiary_payment_type.py +7 -0
- mesta-0.1.0/src/mesta/types/individual_beneficiary_type.py +4 -0
- mesta-0.1.0/src/mesta/types/individual_sender.py +118 -0
- mesta-0.1.0/src/mesta/types/individual_sender_gender.py +4 -0
- mesta-0.1.0/src/mesta/types/individual_sender_identity.py +92 -0
- mesta-0.1.0/src/mesta/types/individual_sender_identity_document_type.py +34 -0
- mesta-0.1.0/src/mesta/types/individual_sender_occupation.py +60 -0
- mesta-0.1.0/src/mesta/types/individual_sender_type.py +4 -0
- mesta-0.1.0/src/mesta/types/individual_sender_v2.py +18 -0
- mesta-0.1.0/src/mesta/types/instapay_info.py +35 -0
- mesta-0.1.0/src/mesta/types/instapay_info_channel_subject.py +89 -0
- mesta-0.1.0/src/mesta/types/instapay_info_extend_info.py +48 -0
- mesta-0.1.0/src/mesta/types/mobile_money_info.py +25 -0
- mesta-0.1.0/src/mesta/types/not_found_error_body.py +18 -0
- mesta-0.1.0/src/mesta/types/order_document.py +52 -0
- mesta-0.1.0/src/mesta/types/order_document_input.py +36 -0
- mesta-0.1.0/src/mesta/types/patch_business_sender.py +108 -0
- mesta-0.1.0/src/mesta/types/patch_business_sender_business_type.py +7 -0
- mesta-0.1.0/src/mesta/types/patch_business_sender_number_of_employees.py +6 -0
- mesta-0.1.0/src/mesta/types/patch_individual_sender.py +121 -0
- mesta-0.1.0/src/mesta/types/patch_individual_sender_gender.py +4 -0
- mesta-0.1.0/src/mesta/types/patch_individual_sender_identity.py +41 -0
- mesta-0.1.0/src/mesta/types/patch_sender_associate_address.py +31 -0
- mesta-0.1.0/src/mesta/types/patch_sender_associate_identity.py +58 -0
- mesta-0.1.0/src/mesta/types/payment_method.py +84 -0
- mesta-0.1.0/src/mesta/types/payment_method_data.py +245 -0
- mesta-0.1.0/src/mesta/types/payment_method_status.py +6 -0
- mesta-0.1.0/src/mesta/types/payment_method_type.py +7 -0
- mesta-0.1.0/src/mesta/types/pix_info.py +32 -0
- mesta-0.1.0/src/mesta/types/public_sender_capability.py +6 -0
- mesta-0.1.0/src/mesta/types/purpose.py +23 -0
- mesta-0.1.0/src/mesta/types/purpose_of_payment.py +39 -0
- mesta-0.1.0/src/mesta/types/purpose_of_payment_document.py +32 -0
- mesta-0.1.0/src/mesta/types/purpose_of_payment_document_request.py +34 -0
- mesta-0.1.0/src/mesta/types/selfie_verification_session.py +30 -0
- mesta-0.1.0/src/mesta/types/selfie_verification_session_status.py +6 -0
- mesta-0.1.0/src/mesta/types/sender_associate.py +59 -0
- mesta-0.1.0/src/mesta/types/sender_associate_address.py +25 -0
- mesta-0.1.0/src/mesta/types/sender_associate_envelope.py +22 -0
- mesta-0.1.0/src/mesta/types/sender_associate_identity_input.py +54 -0
- mesta-0.1.0/src/mesta/types/sender_associate_kyc.py +25 -0
- mesta-0.1.0/src/mesta/types/sender_associate_kyc_status.py +4 -0
- mesta-0.1.0/src/mesta/types/sender_associate_list_envelope.py +22 -0
- mesta-0.1.0/src/mesta/types/sender_associate_role.py +4 -0
- mesta-0.1.0/src/mesta/types/sender_onboarding_info.py +105 -0
- mesta-0.1.0/src/mesta/types/sender_onboarding_info_nature_of_payments_item.py +39 -0
- mesta-0.1.0/src/mesta/types/sender_onboarding_info_number_of_employees.py +6 -0
- mesta-0.1.0/src/mesta/types/sender_onboarding_info_source_of_funds.py +35 -0
- mesta-0.1.0/src/mesta/types/sender_v2common_onboarding.py +81 -0
- mesta-0.1.0/src/mesta/types/sender_v2common_onboarding_nature_of_payments_item.py +39 -0
- mesta-0.1.0/src/mesta/types/sender_v2common_onboarding_source_of_funds.py +35 -0
- mesta-0.1.0/src/mesta/types/sender_virtual_account.py +48 -0
- mesta-0.1.0/src/mesta/types/sender_virtual_account_bank_details.py +19 -0
- mesta-0.1.0/src/mesta/types/sender_virtual_account_currency.py +4 -0
- mesta-0.1.0/src/mesta/types/sender_virtual_accounts_envelope.py +33 -0
- mesta-0.1.0/src/mesta/types/source_address_input.py +26 -0
- mesta-0.1.0/src/mesta/types/source_of_funds.py +35 -0
- mesta-0.1.0/src/mesta/types/spei_info.py +97 -0
- mesta-0.1.0/src/mesta/types/stablecoin_deposit.py +108 -0
- mesta-0.1.0/src/mesta/types/stablecoin_deposit_status.py +7 -0
- mesta-0.1.0/src/mesta/types/swiftpay_pesonet_info.py +35 -0
- mesta-0.1.0/src/mesta/types/swiftpay_pesonet_info_channel_subject.py +85 -0
- mesta-0.1.0/src/mesta/types/swiftpay_pesonet_info_extend_info.py +48 -0
- mesta-0.1.0/src/mesta/types/too_many_requests_error_body.py +29 -0
- mesta-0.1.0/src/mesta/types/too_many_requests_error_body_error.py +27 -0
- mesta-0.1.0/src/mesta/types/too_many_requests_error_body_error_details.py +27 -0
- mesta-0.1.0/src/mesta/types/unauthorized_error_body.py +18 -0
- mesta-0.1.0/src/mesta/types/validation_field.py +49 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker.py +56 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker_action.py +29 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker_action_method.py +4 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker_code.py +6 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker_fields_item.py +36 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker_fields_item_document_type.py +7 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker_subject.py +45 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_blocker_subject_type.py +4 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_missing_error.py +33 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_missing_error_error.py +40 -0
- mesta-0.1.0/src/mesta/types/verify_sender_requirements_missing_error_error_code.py +6 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_action.py +41 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_action_method.py +4 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_blocker.py +41 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_blocker_code.py +16 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_blocker_fields_item.py +37 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_blocker_fields_item_document_type.py +7 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_blocker_subject.py +30 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_blocker_subject_type.py +4 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_envelope.py +31 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_response.py +44 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_response_currency.py +4 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_response_unaccepted_fields_item.py +32 -0
- mesta-0.1.0/src/mesta/types/virtual_account_setup_status.py +16 -0
- mesta-0.1.0/src/mesta/validation_rules/__init__.py +312 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/__init__.py +111 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/client.py +391 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/raw_client.py +763 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/__init__.py +125 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response.py +34 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response_data.py +114 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response_data_rules.py +58 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response_data_rules_payment_types_item.py +47 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response_data_rules_payment_types_item_type.py +7 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/get_beneficiaries_response_data_rules_required_documents_item.py +26 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_countries_beneficiaries_response.py +28 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_document_types_beneficiaries_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_document_types_beneficiaries_response.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_document_types_beneficiaries_response_data.py +109 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_document_types_beneficiaries_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_document_types_beneficiaries_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_document_types_beneficiaries_response_data_rules.py +32 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_document_types_beneficiaries_response_data_rules_required_documents_item.py +19 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_response.py +34 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_response_data.py +116 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_response_data_rules.py +35 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_response_data_rules_payment_types_item.py +49 -0
- mesta-0.1.0/src/mesta/validation_rules/beneficiaries/types/list_payment_types_beneficiaries_response_data_rules_payment_types_item_type.py +7 -0
- mesta-0.1.0/src/mesta/validation_rules/client.py +159 -0
- mesta-0.1.0/src/mesta/validation_rules/raw_client.py +184 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/__init__.py +219 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/client.py +689 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/raw_client.py +1318 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/__init__.py +255 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v1senders_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v1senders_response.py +34 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v1senders_response_data.py +121 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v1senders_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v1senders_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v1senders_response_data_rules.py +24 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v1senders_response_data_rules_ubo.py +34 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response.py +24 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data.py +63 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_rules.py +19 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_rules_ubo.py +27 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_rules_ubo_required_fields_item.py +43 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_rules_ubo_required_fields_item_nested_fields_item.py +43 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_rules_ubo_required_fields_item_nested_fields_item_supported_document_types_item.py +51 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_ubo_rules_v2senders_response_data_rules_ubo_required_fields_item_nested_fields_item_supported_document_types_item_category.py +6 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response.py +34 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response_data.py +112 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response_data_rules.py +48 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response_data_rules_required_documents_item.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response_data_rules_required_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v1senders_response_data_rules_ubo.py +38 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data.py +107 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules.py +45 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_required_documents_item.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_required_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_required_fields_item.py +43 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_required_fields_item_nested_fields_item.py +45 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_required_fields_item_nested_fields_item_supported_document_types_item.py +51 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_required_fields_item_nested_fields_item_supported_document_types_item_category.py +6 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_ubo.py +37 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_ubo_required_fields_item.py +37 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_ubo_required_fields_item_nested_fields_item.py +36 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_ubo_required_fields_item_nested_fields_item_supported_document_types_item.py +34 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/get_v2senders_response_data_rules_ubo_required_fields_item_nested_fields_item_supported_document_types_item_category.py +6 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_countries_senders_response.py +28 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_response.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_response_data.py +116 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_response_data_rules.py +30 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_response_data_rules_required_documents_item.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v1senders_response_data_rules_required_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_request_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_response.py +24 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_response_data.py +51 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_response_data_owner.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_response_data_rules.py +30 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_response_data_rules_required_documents_item.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/senders/types/list_document_types_v2senders_response_data_rules_required_documents_item_type.py +6 -0
- mesta-0.1.0/src/mesta/validation_rules/types/__init__.py +43 -0
- mesta-0.1.0/src/mesta/validation_rules/types/list_states_validation_rules_response.py +29 -0
- mesta-0.1.0/src/mesta/validation_rules/types/list_states_validation_rules_response_data.py +20 -0
- mesta-0.1.0/src/mesta/validation_rules/types/list_states_validation_rules_response_data_states_item.py +19 -0
- mesta-0.1.0/src/mesta/version.py +3 -0
- mesta-0.1.0/src/mesta/wallet_addresses/__init__.py +51 -0
- mesta-0.1.0/src/mesta/wallet_addresses/client.py +113 -0
- mesta-0.1.0/src/mesta/wallet_addresses/raw_client.py +225 -0
- mesta-0.1.0/src/mesta/wallet_addresses/types/__init__.py +49 -0
- mesta-0.1.0/src/mesta/wallet_addresses/types/get_wallet_addresses_response.py +29 -0
- mesta-0.1.0/src/mesta/wallet_addresses/types/get_wallet_addresses_response_data.py +91 -0
- mesta-0.1.0/src/mesta/wallet_addresses/types/get_wallet_addresses_response_data_chain.py +6 -0
- mesta-0.1.0/src/mesta/wallet_addresses/types/get_wallet_addresses_response_data_owner_type.py +4 -0
- mesta-0.1.0/src/mesta/wallet_addresses/types/get_wallet_addresses_response_data_risk_level.py +4 -0
- mesta-0.1.0/src/mesta/webhooks/__init__.py +90 -0
- mesta-0.1.0/src/mesta/webhooks/client.py +511 -0
- mesta-0.1.0/src/mesta/webhooks/raw_client.py +1071 -0
- mesta-0.1.0/src/mesta/webhooks/types/__init__.py +88 -0
- mesta-0.1.0/src/mesta/webhooks/types/create_webhooks_request_events_item.py +45 -0
- mesta-0.1.0/src/mesta/webhooks/types/create_webhooks_response.py +29 -0
- mesta-0.1.0/src/mesta/webhooks/types/create_webhooks_response_data.py +67 -0
- mesta-0.1.0/src/mesta/webhooks/types/create_webhooks_response_data_events_item.py +45 -0
- mesta-0.1.0/src/mesta/webhooks/types/delete_webhooks_response.py +27 -0
- mesta-0.1.0/src/mesta/webhooks/types/get_webhooks_response.py +29 -0
- mesta-0.1.0/src/mesta/webhooks/types/get_webhooks_response_data.py +67 -0
- mesta-0.1.0/src/mesta/webhooks/types/get_webhooks_response_data_events_item.py +45 -0
- mesta-0.1.0/src/mesta/webhooks/types/list_webhooks_request_event.py +45 -0
- mesta-0.1.0/src/mesta/webhooks/types/list_webhooks_request_sort_by.py +4 -0
- mesta-0.1.0/src/mesta/webhooks/types/list_webhooks_request_sort_order.py +4 -0
- mesta-0.1.0/src/mesta/webhooks/types/list_webhooks_response.py +47 -0
- mesta-0.1.0/src/mesta/webhooks/types/list_webhooks_response_data_item.py +67 -0
- mesta-0.1.0/src/mesta/webhooks/types/list_webhooks_response_data_item_events_item.py +45 -0
- mesta-0.1.0/src/mesta/webhooks/types/update_webhooks_request_events_item.py +45 -0
- mesta-0.1.0/src/mesta/webhooks/types/update_webhooks_response.py +29 -0
- mesta-0.1.0/src/mesta/webhooks/types/update_webhooks_response_data.py +67 -0
- mesta-0.1.0/src/mesta/webhooks/types/update_webhooks_response_data_events_item.py +45 -0
mesta-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mesta.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
mesta-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: mesta
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Mesta Python SDK
|
|
5
|
+
License: MIT
|
|
6
|
+
Author: Mesta
|
|
7
|
+
Author-email: support@mesta.xyz
|
|
8
|
+
Requires-Python: >=3.10,<4.0
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: MacOS
|
|
12
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Operating System :: POSIX
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
24
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
|
+
Classifier: Typing :: Typed
|
|
26
|
+
Provides-Extra: aiohttp
|
|
27
|
+
Requires-Dist: aiohttp (>=3.14.1,<4) ; (python_version >= "3.10") and (extra == "aiohttp")
|
|
28
|
+
Requires-Dist: httpx (>=0.21.2)
|
|
29
|
+
Requires-Dist: httpx-aiohttp (>=0.1.8,<0.2.0) ; (python_version >= "3.10") and (extra == "aiohttp")
|
|
30
|
+
Requires-Dist: pydantic (>=1.9.2)
|
|
31
|
+
Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
|
|
32
|
+
Requires-Dist: typing_extensions (>=4.0.0)
|
|
33
|
+
Project-URL: Documentation, https://docs.mesta.xyz
|
|
34
|
+
Project-URL: Repository, https://github.com/mestafi/mesta-python
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# Mesta Python Library
|
|
38
|
+
|
|
39
|
+
[](https://pypi.python.org/pypi/mesta)
|
|
40
|
+
|
|
41
|
+
The official Mesta client library. It is generated from the Mesta OpenAPI specification and updated with every API release. Each method calls one API endpoint. For end-to-end flows such as onboarding a sender or making a payout, follow the guides at https://docs.mesta.xyz.
|
|
42
|
+
|
|
43
|
+
## Table of Contents
|
|
44
|
+
|
|
45
|
+
- [Documentation](#documentation)
|
|
46
|
+
- [Installation](#installation)
|
|
47
|
+
- [Reference](#reference)
|
|
48
|
+
- [Usage](#usage)
|
|
49
|
+
- [Environments](#environments)
|
|
50
|
+
- [Async Client](#async-client)
|
|
51
|
+
- [Exception Handling](#exception-handling)
|
|
52
|
+
- [Advanced](#advanced)
|
|
53
|
+
- [Access Raw Response Data](#access-raw-response-data)
|
|
54
|
+
- [Retries](#retries)
|
|
55
|
+
- [Timeouts](#timeouts)
|
|
56
|
+
- [Custom Client](#custom-client)
|
|
57
|
+
- [Retries and Writes](#retries-and-writes)
|
|
58
|
+
|
|
59
|
+
## Documentation
|
|
60
|
+
|
|
61
|
+
API reference documentation is available [here](https://docs.mesta.xyz).
|
|
62
|
+
|
|
63
|
+
## Installation
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
pip install mesta
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Reference
|
|
70
|
+
|
|
71
|
+
A full reference for this library is available [here](https://github.com/mestafi/mesta-python/blob/HEAD/./reference.md).
|
|
72
|
+
|
|
73
|
+
## Usage
|
|
74
|
+
|
|
75
|
+
Instantiate and use the client with the following:
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from mesta import Mesta
|
|
79
|
+
|
|
80
|
+
client = Mesta(
|
|
81
|
+
api_key="<value>",
|
|
82
|
+
api_secret="<x-api-secret>",
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
client.merchants.accept_terms(
|
|
86
|
+
merchant_id="merchantId",
|
|
87
|
+
)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Environments
|
|
91
|
+
|
|
92
|
+
This SDK allows you to configure different environments for API requests.
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
from mesta import Mesta
|
|
96
|
+
from mesta.environment import MestaEnvironment
|
|
97
|
+
|
|
98
|
+
client = Mesta(
|
|
99
|
+
environment=MestaEnvironment.PRODUCTION,
|
|
100
|
+
)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Async Client
|
|
104
|
+
|
|
105
|
+
The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
import asyncio
|
|
109
|
+
|
|
110
|
+
from mesta import AsyncMesta
|
|
111
|
+
|
|
112
|
+
client = AsyncMesta(
|
|
113
|
+
api_key="<value>",
|
|
114
|
+
api_secret="<x-api-secret>",
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
async def main() -> None:
|
|
119
|
+
await client.merchants.accept_terms(
|
|
120
|
+
merchant_id="merchantId",
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
asyncio.run(main())
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Exception Handling
|
|
128
|
+
|
|
129
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
130
|
+
will be thrown.
|
|
131
|
+
|
|
132
|
+
```python
|
|
133
|
+
from mesta.core.api_error import ApiError
|
|
134
|
+
|
|
135
|
+
try:
|
|
136
|
+
client.merchants.accept_terms(...)
|
|
137
|
+
except ApiError as e:
|
|
138
|
+
print(e.status_code)
|
|
139
|
+
print(e.body)
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Advanced
|
|
143
|
+
|
|
144
|
+
### Access Raw Response Data
|
|
145
|
+
|
|
146
|
+
The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
|
|
147
|
+
The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
|
|
148
|
+
|
|
149
|
+
```python
|
|
150
|
+
from mesta import Mesta
|
|
151
|
+
|
|
152
|
+
client = Mesta(...)
|
|
153
|
+
response = client.merchants.with_raw_response.accept_terms(...)
|
|
154
|
+
print(response.headers) # access the response headers
|
|
155
|
+
print(response.status_code) # access the response status code
|
|
156
|
+
print(response.data) # access the underlying object
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Retries
|
|
160
|
+
|
|
161
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
162
|
+
as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
|
|
163
|
+
retry limit (default: 2).
|
|
164
|
+
|
|
165
|
+
Which status codes are retried depends on the `retryStatusCodes` generator configuration:
|
|
166
|
+
|
|
167
|
+
**`legacy`** (current default): retries on
|
|
168
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
169
|
+
- [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
|
|
170
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
171
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)
|
|
172
|
+
|
|
173
|
+
**`recommended`**: retries on
|
|
174
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
175
|
+
- [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
|
|
176
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
177
|
+
- [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) (Bad Gateway)
|
|
178
|
+
- [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) (Service Unavailable)
|
|
179
|
+
- [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) (Gateway Timeout)
|
|
180
|
+
|
|
181
|
+
Use the `max_retries` request option to configure this behavior.
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
client.merchants.accept_terms(..., request_options={
|
|
185
|
+
"max_retries": 1
|
|
186
|
+
})
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Timeouts
|
|
190
|
+
|
|
191
|
+
The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
|
|
192
|
+
|
|
193
|
+
```python
|
|
194
|
+
from mesta import Mesta
|
|
195
|
+
|
|
196
|
+
client = Mesta(..., timeout=20.0)
|
|
197
|
+
|
|
198
|
+
# Override timeout for a specific method
|
|
199
|
+
client.merchants.accept_terms(..., request_options={
|
|
200
|
+
"timeout": 1
|
|
201
|
+
})
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Custom Client
|
|
205
|
+
|
|
206
|
+
You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
|
|
207
|
+
and transports.
|
|
208
|
+
|
|
209
|
+
```python
|
|
210
|
+
import httpx
|
|
211
|
+
from mesta import Mesta
|
|
212
|
+
|
|
213
|
+
client = Mesta(
|
|
214
|
+
...,
|
|
215
|
+
httpx_client=httpx.Client(
|
|
216
|
+
proxy="http://my.test.proxy.example.com",
|
|
217
|
+
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
|
218
|
+
),
|
|
219
|
+
)
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Retries and writes
|
|
223
|
+
|
|
224
|
+
The client retries a request up to two times on 408, 429 and 5xx responses, with backoff and jitter. The Mesta API does not accept an idempotency key yet, so a retried write, for example creating an order or a beneficiary, can be processed twice if the first attempt reached the server before it failed. Until idempotency keys are available, disable retries on writes and handle the error in your code:
|
|
225
|
+
|
|
226
|
+
```python
|
|
227
|
+
client.orders.create(..., request_options={"max_retries": 0})
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
|
mesta-0.1.0/README.md
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# Mesta Python Library
|
|
2
|
+
|
|
3
|
+
[](https://pypi.python.org/pypi/mesta)
|
|
4
|
+
|
|
5
|
+
The official Mesta client library. It is generated from the Mesta OpenAPI specification and updated with every API release. Each method calls one API endpoint. For end-to-end flows such as onboarding a sender or making a payout, follow the guides at https://docs.mesta.xyz.
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Documentation](#documentation)
|
|
10
|
+
- [Installation](#installation)
|
|
11
|
+
- [Reference](#reference)
|
|
12
|
+
- [Usage](#usage)
|
|
13
|
+
- [Environments](#environments)
|
|
14
|
+
- [Async Client](#async-client)
|
|
15
|
+
- [Exception Handling](#exception-handling)
|
|
16
|
+
- [Advanced](#advanced)
|
|
17
|
+
- [Access Raw Response Data](#access-raw-response-data)
|
|
18
|
+
- [Retries](#retries)
|
|
19
|
+
- [Timeouts](#timeouts)
|
|
20
|
+
- [Custom Client](#custom-client)
|
|
21
|
+
- [Retries and Writes](#retries-and-writes)
|
|
22
|
+
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
API reference documentation is available [here](https://docs.mesta.xyz).
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pip install mesta
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Reference
|
|
34
|
+
|
|
35
|
+
A full reference for this library is available [here](https://github.com/mestafi/mesta-python/blob/HEAD/./reference.md).
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
Instantiate and use the client with the following:
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from mesta import Mesta
|
|
43
|
+
|
|
44
|
+
client = Mesta(
|
|
45
|
+
api_key="<value>",
|
|
46
|
+
api_secret="<x-api-secret>",
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
client.merchants.accept_terms(
|
|
50
|
+
merchant_id="merchantId",
|
|
51
|
+
)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Environments
|
|
55
|
+
|
|
56
|
+
This SDK allows you to configure different environments for API requests.
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
from mesta import Mesta
|
|
60
|
+
from mesta.environment import MestaEnvironment
|
|
61
|
+
|
|
62
|
+
client = Mesta(
|
|
63
|
+
environment=MestaEnvironment.PRODUCTION,
|
|
64
|
+
)
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Async Client
|
|
68
|
+
|
|
69
|
+
The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
import asyncio
|
|
73
|
+
|
|
74
|
+
from mesta import AsyncMesta
|
|
75
|
+
|
|
76
|
+
client = AsyncMesta(
|
|
77
|
+
api_key="<value>",
|
|
78
|
+
api_secret="<x-api-secret>",
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
async def main() -> None:
|
|
83
|
+
await client.merchants.accept_terms(
|
|
84
|
+
merchant_id="merchantId",
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
asyncio.run(main())
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Exception Handling
|
|
92
|
+
|
|
93
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
94
|
+
will be thrown.
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
from mesta.core.api_error import ApiError
|
|
98
|
+
|
|
99
|
+
try:
|
|
100
|
+
client.merchants.accept_terms(...)
|
|
101
|
+
except ApiError as e:
|
|
102
|
+
print(e.status_code)
|
|
103
|
+
print(e.body)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Advanced
|
|
107
|
+
|
|
108
|
+
### Access Raw Response Data
|
|
109
|
+
|
|
110
|
+
The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
|
|
111
|
+
The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
from mesta import Mesta
|
|
115
|
+
|
|
116
|
+
client = Mesta(...)
|
|
117
|
+
response = client.merchants.with_raw_response.accept_terms(...)
|
|
118
|
+
print(response.headers) # access the response headers
|
|
119
|
+
print(response.status_code) # access the response status code
|
|
120
|
+
print(response.data) # access the underlying object
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Retries
|
|
124
|
+
|
|
125
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
126
|
+
as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
|
|
127
|
+
retry limit (default: 2).
|
|
128
|
+
|
|
129
|
+
Which status codes are retried depends on the `retryStatusCodes` generator configuration:
|
|
130
|
+
|
|
131
|
+
**`legacy`** (current default): retries on
|
|
132
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
133
|
+
- [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
|
|
134
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
135
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)
|
|
136
|
+
|
|
137
|
+
**`recommended`**: retries on
|
|
138
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
139
|
+
- [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
|
|
140
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
141
|
+
- [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) (Bad Gateway)
|
|
142
|
+
- [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) (Service Unavailable)
|
|
143
|
+
- [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) (Gateway Timeout)
|
|
144
|
+
|
|
145
|
+
Use the `max_retries` request option to configure this behavior.
|
|
146
|
+
|
|
147
|
+
```python
|
|
148
|
+
client.merchants.accept_terms(..., request_options={
|
|
149
|
+
"max_retries": 1
|
|
150
|
+
})
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Timeouts
|
|
154
|
+
|
|
155
|
+
The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
|
|
156
|
+
|
|
157
|
+
```python
|
|
158
|
+
from mesta import Mesta
|
|
159
|
+
|
|
160
|
+
client = Mesta(..., timeout=20.0)
|
|
161
|
+
|
|
162
|
+
# Override timeout for a specific method
|
|
163
|
+
client.merchants.accept_terms(..., request_options={
|
|
164
|
+
"timeout": 1
|
|
165
|
+
})
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Custom Client
|
|
169
|
+
|
|
170
|
+
You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
|
|
171
|
+
and transports.
|
|
172
|
+
|
|
173
|
+
```python
|
|
174
|
+
import httpx
|
|
175
|
+
from mesta import Mesta
|
|
176
|
+
|
|
177
|
+
client = Mesta(
|
|
178
|
+
...,
|
|
179
|
+
httpx_client=httpx.Client(
|
|
180
|
+
proxy="http://my.test.proxy.example.com",
|
|
181
|
+
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
|
182
|
+
),
|
|
183
|
+
)
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Retries and writes
|
|
187
|
+
|
|
188
|
+
The client retries a request up to two times on 408, 429 and 5xx responses, with backoff and jitter. The Mesta API does not accept an idempotency key yet, so a retried write, for example creating an order or a beneficiary, can be processed twice if the first attempt reached the server before it failed. Until idempotency keys are available, disable retries on writes and handle the error in your code:
|
|
189
|
+
|
|
190
|
+
```python
|
|
191
|
+
client.orders.create(..., request_options={"max_retries": 0})
|
|
192
|
+
```
|
|
193
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "mesta"
|
|
3
|
+
dynamic = ["version"]
|
|
4
|
+
|
|
5
|
+
[tool.poetry]
|
|
6
|
+
name = "mesta"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Official Mesta Python SDK"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
authors = ["Mesta <support@mesta.xyz>"]
|
|
11
|
+
keywords = []
|
|
12
|
+
license = "MIT"
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Intended Audience :: Developers",
|
|
15
|
+
"Programming Language :: Python",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.10",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Programming Language :: Python :: 3.14",
|
|
22
|
+
"Programming Language :: Python :: 3.15",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Operating System :: POSIX",
|
|
25
|
+
"Operating System :: MacOS",
|
|
26
|
+
"Operating System :: POSIX :: Linux",
|
|
27
|
+
"Operating System :: Microsoft :: Windows",
|
|
28
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
29
|
+
"Typing :: Typed",
|
|
30
|
+
"License :: OSI Approved :: MIT License"
|
|
31
|
+
]
|
|
32
|
+
packages = [
|
|
33
|
+
{ include = "mesta", from = "src"}
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[tool.poetry.urls]
|
|
37
|
+
Repository = 'https://github.com/mestafi/mesta-python'
|
|
38
|
+
Documentation = 'https://docs.mesta.xyz'
|
|
39
|
+
|
|
40
|
+
[tool.poetry.dependencies]
|
|
41
|
+
python = "^3.10"
|
|
42
|
+
aiohttp = { version = ">=3.14.1,<4", optional = true, python = ">=3.10"}
|
|
43
|
+
httpx = ">=0.21.2"
|
|
44
|
+
httpx-aiohttp = { version = "^0.1.8", optional = true, python = ">=3.10"}
|
|
45
|
+
pydantic = ">= 1.9.2"
|
|
46
|
+
pydantic-core = ">=2.18.2,<3.0.0"
|
|
47
|
+
typing_extensions = ">= 4.0.0"
|
|
48
|
+
|
|
49
|
+
[tool.poetry.group.dev.dependencies]
|
|
50
|
+
mypy = "==1.13.0"
|
|
51
|
+
pytest = "^9.0.3"
|
|
52
|
+
pytest-asyncio = "^1.0.0"
|
|
53
|
+
pytest-xdist = "^3.6.1"
|
|
54
|
+
python-dateutil = "^2.9.0"
|
|
55
|
+
types-python-dateutil = "^2.9.0.20240316"
|
|
56
|
+
urllib3 = ">=2.6.3,<3.0.0"
|
|
57
|
+
ruff = "==0.11.5"
|
|
58
|
+
|
|
59
|
+
[tool.pytest.ini_options]
|
|
60
|
+
testpaths = [ "tests" ]
|
|
61
|
+
asyncio_mode = "auto"
|
|
62
|
+
norecursedirs = [ "src" ]
|
|
63
|
+
markers = [
|
|
64
|
+
"aiohttp: tests that require httpx_aiohttp to be installed",
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
[tool.mypy]
|
|
68
|
+
plugins = ["pydantic.mypy"]
|
|
69
|
+
|
|
70
|
+
[tool.ruff]
|
|
71
|
+
line-length = 120
|
|
72
|
+
|
|
73
|
+
[tool.ruff.lint]
|
|
74
|
+
select = [
|
|
75
|
+
"E", # pycodestyle errors
|
|
76
|
+
"F", # pyflakes
|
|
77
|
+
"I", # isort
|
|
78
|
+
]
|
|
79
|
+
ignore = [
|
|
80
|
+
"E402", # Module level import not at top of file
|
|
81
|
+
"E501", # Line too long
|
|
82
|
+
"E711", # Comparison to `None` should be `cond is not None`
|
|
83
|
+
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
|
|
84
|
+
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
|
|
85
|
+
"E722", # Do not use bare `except`
|
|
86
|
+
"E731", # Do not assign a `lambda` expression, use a `def`
|
|
87
|
+
"F821", # Undefined name
|
|
88
|
+
"F841" # Local variable ... is assigned to but never used
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[tool.ruff.lint.isort]
|
|
92
|
+
section-order = ["future", "standard-library", "third-party", "first-party"]
|
|
93
|
+
|
|
94
|
+
[build-system]
|
|
95
|
+
requires = ["poetry-core"]
|
|
96
|
+
build-backend = "poetry.core.masonry.api"
|
|
97
|
+
|
|
98
|
+
[tool.poetry.extras]
|
|
99
|
+
aiohttp=["aiohttp", "httpx-aiohttp"]
|