meshtrade 1.0.1__py3-none-any.whl → 1.29.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meshtrade/common/__init__.py +2 -4
- meshtrade/common/config.py +3 -4
- meshtrade/common/grpc_client.py +140 -0
- meshtrade/common/service_options.py +46 -0
- meshtrade/compliance/client/v1/__init__.py +0 -2
- meshtrade/compliance/client/v1/client_pb2.py +15 -4
- meshtrade/compliance/client/v1/client_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_pb2.py +25 -8
- meshtrade/compliance/client/v1/company_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_pb2.py +9 -4
- meshtrade/compliance/client/v1/company_representative_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
- meshtrade/compliance/client/v1/fund_pb2.py +13 -4
- meshtrade/compliance/client/v1/fund_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_pb2.py +19 -4
- meshtrade/compliance/client/v1/natural_person_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/service_meshpy.py +2 -1
- meshtrade/compliance/client/v1/service_pb2.py +21 -17
- meshtrade/compliance/client/v1/service_pb2.pyi +2 -2
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
- meshtrade/compliance/client/v1/tax_residency_pb2.py +9 -4
- meshtrade/compliance/client/v1/tax_residency_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/trust_pb2.py +13 -4
- meshtrade/compliance/client/v1/trust_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
- meshtrade/iam/api_user/v1/__init__.py +34 -26
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +5 -5
- meshtrade/iam/api_user/v1/api_user_pb2.py +13 -9
- meshtrade/iam/api_user/v1/api_user_pb2.pyi +2 -4
- meshtrade/iam/api_user/v1/api_user_state_machine.py +104 -0
- meshtrade/iam/api_user/v1/service_meshpy.py +96 -61
- meshtrade/iam/api_user/v1/service_pb2.py +61 -40
- meshtrade/iam/api_user/v1/service_pb2.pyi +26 -11
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +179 -135
- meshtrade/iam/group/v1/__init__.py +4 -2
- meshtrade/iam/group/v1/group_pb2.py +13 -4
- meshtrade/iam/group/v1/group_pb2.pyi +9 -2
- meshtrade/iam/group/v1/service_meshpy.py +41 -6
- meshtrade/iam/group/v1/service_pb2.py +47 -20
- meshtrade/iam/group/v1/service_pb2.pyi +46 -13
- meshtrade/iam/group/v1/service_pb2_grpc.py +151 -16
- meshtrade/iam/role/v1/__init__.py +17 -4
- meshtrade/iam/role/v1/role.py +162 -11
- meshtrade/iam/role/v1/role_pb2.py +4 -7
- meshtrade/iam/role/v1/role_pb2.pyi +53 -23
- meshtrade/iam/user/v1/__init__.py +22 -4
- meshtrade/iam/user/v1/service_meshpy.py +129 -7
- meshtrade/iam/user/v1/service_pb2.py +66 -16
- meshtrade/iam/user/v1/service_pb2.pyi +81 -9
- meshtrade/iam/user/v1/service_pb2_grpc.py +385 -14
- meshtrade/iam/user/v1/user_pb2.py +13 -4
- meshtrade/iam/user/v1/user_pb2.pyi +7 -2
- meshtrade/ledger/transaction/v1/__init__.py +25 -1
- meshtrade/ledger/transaction/v1/service_meshpy.py +176 -0
- meshtrade/ledger/transaction/v1/service_pb2.py +56 -0
- meshtrade/ledger/transaction/v1/service_pb2.pyi +32 -0
- meshtrade/ledger/transaction/v1/service_pb2_grpc.py +131 -0
- meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_state_machine.py +75 -0
- meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
- meshtrade/{reporting/income_report → market_data/price}/v1/__init__.py +11 -20
- meshtrade/market_data/price/v1/price_pb2.py +40 -0
- meshtrade/market_data/price/v1/price_pb2.pyi +23 -0
- meshtrade/market_data/price/v1/service_meshpy.py +152 -0
- meshtrade/market_data/price/v1/service_pb2.py +49 -0
- meshtrade/market_data/price/v1/service_pb2.pyi +18 -0
- meshtrade/market_data/price/v1/service_pb2_grpc.py +84 -0
- meshtrade/option/method_options/v1/__init__.py +41 -0
- meshtrade/option/method_options/v1/method_options_pb2.py +43 -0
- meshtrade/option/method_options/v1/method_options_pb2.pyi +40 -0
- meshtrade/reporting/account_report/v1/__init__.py +66 -0
- meshtrade/reporting/account_report/v1/account_report_pb2.py +46 -0
- meshtrade/reporting/account_report/v1/account_report_pb2.pyi +49 -0
- meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.py +7 -7
- meshtrade/reporting/account_report/v1/fee_entry_pb2.py +39 -0
- meshtrade/reporting/account_report/v1/fee_entry_pb2.pyi +26 -0
- meshtrade/reporting/account_report/v1/fee_entry_pb2_grpc.py +4 -0
- meshtrade/reporting/account_report/v1/income_entry.py +35 -0
- meshtrade/reporting/account_report/v1/income_entry_pb2.py +42 -0
- meshtrade/reporting/{income_report/v1/entry_pb2.pyi → account_report/v1/income_entry_pb2.pyi} +18 -10
- meshtrade/reporting/account_report/v1/income_entry_pb2_grpc.py +4 -0
- meshtrade/reporting/{income_report → account_report}/v1/service_meshpy.py +37 -36
- meshtrade/reporting/account_report/v1/service_pb2.py +72 -0
- meshtrade/reporting/account_report/v1/service_pb2.pyi +43 -0
- meshtrade/reporting/account_report/v1/service_pb2_grpc.py +161 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +39 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.pyi +30 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/__init__.py +43 -0
- meshtrade/studio/instrument/v1/instrument_pb2.py +45 -0
- meshtrade/studio/instrument/v1/instrument_pb2.pyi +20 -0
- meshtrade/studio/instrument/v1/instrument_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2.py +37 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2.pyi +64 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/unit_pb2.py +37 -0
- meshtrade/studio/instrument/v1/unit_pb2.pyi +46 -0
- meshtrade/studio/instrument/v1/unit_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/__init__.py +22 -4
- meshtrade/trading/limit_order/v1/limit_order_pb2.py +24 -4
- meshtrade/trading/limit_order/v1/limit_order_pb2.pyi +55 -5
- meshtrade/trading/limit_order/v1/service_meshpy.py +113 -2
- meshtrade/trading/limit_order/v1/service_pb2.py +49 -9
- meshtrade/trading/limit_order/v1/service_pb2.pyi +67 -7
- meshtrade/trading/limit_order/v1/service_pb2_grpc.py +321 -4
- meshtrade/trading/market_order/v1/__init__.py +0 -2
- meshtrade/trading/market_order/v1/market_order_pb2.py +2 -2
- meshtrade/trading/market_order/v1/service_meshpy.py +3 -2
- meshtrade/trading/market_order/v1/service_pb2.py +8 -9
- meshtrade/trading/market_order/v1/service_pb2.pyi +1 -2
- meshtrade/type/v1/__init__.py +82 -12
- meshtrade/type/v1/address_pb2.py +2 -2
- meshtrade/type/v1/amount.py +429 -5
- meshtrade/type/v1/amount_pb2.py +2 -2
- meshtrade/type/v1/contact_details_pb2.py +2 -2
- meshtrade/type/v1/date_pb2.py +2 -2
- meshtrade/type/v1/decimal_built_in_conversions.py +8 -3
- meshtrade/type/v1/decimal_operations.py +354 -0
- meshtrade/type/v1/decimal_pb2.py +2 -2
- meshtrade/type/v1/ledger.py +76 -1
- meshtrade/type/v1/ledger_pb2.py +2 -2
- meshtrade/type/v1/sorting_pb2.py +2 -2
- meshtrade/type/v1/time_of_day_pb2.py +2 -2
- meshtrade/type/v1/token.py +144 -0
- meshtrade/type/v1/token_pb2.py +2 -2
- meshtrade/wallet/account/v1/__init__.py +21 -3
- meshtrade/wallet/account/v1/account_pb2.py +28 -4
- meshtrade/wallet/account/v1/account_pb2.pyi +57 -3
- meshtrade/wallet/account/v1/service_meshpy.py +72 -1
- meshtrade/wallet/account/v1/service_pb2.py +67 -23
- meshtrade/wallet/account/v1/service_pb2.pyi +81 -21
- meshtrade/wallet/account/v1/service_pb2_grpc.py +242 -8
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/METADATA +1 -1
- meshtrade-1.29.0.dist-info/RECORD +217 -0
- meshtrade/compliance/client/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/api_user/v1/service.py +0 -58
- meshtrade/iam/api_user/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/group/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/user/v1/service_options_meshpy.py +0 -65
- meshtrade/option/v1/method_type_pb2.py +0 -38
- meshtrade/option/v1/method_type_pb2.pyi +0 -17
- meshtrade/reporting/income_report/v1/entry_pb2.py +0 -42
- meshtrade/reporting/income_report/v1/income_report_pb2.py +0 -44
- meshtrade/reporting/income_report/v1/income_report_pb2.pyi +0 -42
- meshtrade/reporting/income_report/v1/service_options_meshpy.py +0 -65
- meshtrade/reporting/income_report/v1/service_pb2.py +0 -58
- meshtrade/reporting/income_report/v1/service_pb2.pyi +0 -37
- meshtrade/reporting/income_report/v1/service_pb2_grpc.py +0 -170
- meshtrade/trading/limit_order/v1/service_options_meshpy.py +0 -65
- meshtrade/trading/market_order/v1/service_options_meshpy.py +0 -65
- meshtrade/wallet/account/v1/service_options_meshpy.py +0 -65
- meshtrade-1.0.1.dist-info/RECORD +0 -191
- /meshtrade/{option/v1/method_type_pb2_grpc.py → market_data/price/v1/price_pb2_grpc.py} +0 -0
- /meshtrade/{reporting/income_report/v1/disclaimer_pb2_grpc.py → option/method_options/v1/method_options_pb2_grpc.py} +0 -0
- /meshtrade/reporting/{income_report/v1/entry_pb2_grpc.py → account_report/v1/account_report_pb2_grpc.py} +0 -0
- /meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.pyi +0 -0
- /meshtrade/reporting/{income_report/v1/income_report_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py} +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/top_level.txt +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
ApiUserService interface definition.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from abc import ABC, abstractmethod
|
|
6
|
-
from datetime import timedelta
|
|
7
|
-
|
|
8
|
-
from .api_user_pb2 import APIUser
|
|
9
|
-
from .service_pb2 import (
|
|
10
|
-
ActivateApiUserRequest,
|
|
11
|
-
CreateApiUserRequest,
|
|
12
|
-
DeactivateApiUserRequest,
|
|
13
|
-
GetApiUserByKeyHashRequest,
|
|
14
|
-
GetApiUserRequest,
|
|
15
|
-
ListApiUsersRequest,
|
|
16
|
-
ListApiUsersResponse,
|
|
17
|
-
SearchApiUsersRequest,
|
|
18
|
-
SearchApiUsersResponse,
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class ApiUserService(ABC):
|
|
23
|
-
"""Abstract base class defining the ApiUserService interface."""
|
|
24
|
-
|
|
25
|
-
@abstractmethod
|
|
26
|
-
def get_api_user(self, request: GetApiUserRequest, timeout: timedelta | None = None) -> APIUser:
|
|
27
|
-
"""Get an API user by name."""
|
|
28
|
-
pass
|
|
29
|
-
|
|
30
|
-
@abstractmethod
|
|
31
|
-
def create_api_user(self, request: CreateApiUserRequest, timeout: timedelta | None = None) -> APIUser:
|
|
32
|
-
"""Create a new API user."""
|
|
33
|
-
pass
|
|
34
|
-
|
|
35
|
-
@abstractmethod
|
|
36
|
-
def list_api_users(self, request: ListApiUsersRequest, timeout: timedelta | None = None) -> ListApiUsersResponse:
|
|
37
|
-
"""List API users."""
|
|
38
|
-
pass
|
|
39
|
-
|
|
40
|
-
@abstractmethod
|
|
41
|
-
def search_api_users(self, request: SearchApiUsersRequest, timeout: timedelta | None = None) -> SearchApiUsersResponse:
|
|
42
|
-
"""Search API users by display name."""
|
|
43
|
-
pass
|
|
44
|
-
|
|
45
|
-
@abstractmethod
|
|
46
|
-
def activate_api_user(self, request: ActivateApiUserRequest, timeout: timedelta | None = None) -> APIUser:
|
|
47
|
-
"""Activate an API user."""
|
|
48
|
-
pass
|
|
49
|
-
|
|
50
|
-
@abstractmethod
|
|
51
|
-
def deactivate_api_user(self, request: DeactivateApiUserRequest, timeout: timedelta | None = None) -> APIUser:
|
|
52
|
-
"""Deactivate an API user."""
|
|
53
|
-
pass
|
|
54
|
-
|
|
55
|
-
@abstractmethod
|
|
56
|
-
def get_api_user_by_key_hash(self, request: GetApiUserByKeyHashRequest, timeout: timedelta | None = None) -> APIUser:
|
|
57
|
-
"""Get an API user by key hash."""
|
|
58
|
-
pass
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
-
# source: meshtrade/iam/api_user/v1/service.proto
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Configuration options for ApiUserService gRPC service.
|
|
6
|
-
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
-
parameters while maintaining backward compatibility and readability.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from datetime import timedelta
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ServiceOptions:
|
|
14
|
-
"""Configuration options for ApiUserService gRPC service.
|
|
15
|
-
|
|
16
|
-
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
-
parameters while maintaining backward compatibility and readability.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
def __init__(
|
|
21
|
-
self,
|
|
22
|
-
tls: bool = True,
|
|
23
|
-
url: str | None = None,
|
|
24
|
-
port: int | None = None,
|
|
25
|
-
api_key: str | None = None,
|
|
26
|
-
group: str | None = None,
|
|
27
|
-
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
-
):
|
|
29
|
-
"""Initialize service options.
|
|
30
|
-
|
|
31
|
-
Args:
|
|
32
|
-
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
-
When True, establishes a secure connection using TLS.
|
|
34
|
-
When False, uses an insecure connection.
|
|
35
|
-
Default: True (secure connection)
|
|
36
|
-
|
|
37
|
-
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
-
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
-
|
|
40
|
-
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
-
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
-
|
|
43
|
-
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
-
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
-
This is the primary authentication method for service-to-service communication.
|
|
46
|
-
|
|
47
|
-
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
-
The group determines the authorization context for operations
|
|
49
|
-
and is sent as an "x-group" header with every request.
|
|
50
|
-
|
|
51
|
-
timeout: The default timeout for all gRPC method calls.
|
|
52
|
-
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
-
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
-
Default: 30 seconds
|
|
55
|
-
"""
|
|
56
|
-
self.tls = tls
|
|
57
|
-
self.url = url
|
|
58
|
-
self.port = port
|
|
59
|
-
self.api_key = api_key
|
|
60
|
-
self.group = group
|
|
61
|
-
self.timeout = timeout
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# Create alias to match expected exports
|
|
65
|
-
ClientOptions = ServiceOptions
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
-
# source: meshtrade/iam/group/v1/service.proto
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Configuration options for GroupService gRPC service.
|
|
6
|
-
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
-
parameters while maintaining backward compatibility and readability.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from datetime import timedelta
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ServiceOptions:
|
|
14
|
-
"""Configuration options for GroupService gRPC service.
|
|
15
|
-
|
|
16
|
-
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
-
parameters while maintaining backward compatibility and readability.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
def __init__(
|
|
21
|
-
self,
|
|
22
|
-
tls: bool = True,
|
|
23
|
-
url: str | None = None,
|
|
24
|
-
port: int | None = None,
|
|
25
|
-
api_key: str | None = None,
|
|
26
|
-
group: str | None = None,
|
|
27
|
-
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
-
):
|
|
29
|
-
"""Initialize service options.
|
|
30
|
-
|
|
31
|
-
Args:
|
|
32
|
-
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
-
When True, establishes a secure connection using TLS.
|
|
34
|
-
When False, uses an insecure connection.
|
|
35
|
-
Default: True (secure connection)
|
|
36
|
-
|
|
37
|
-
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
-
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
-
|
|
40
|
-
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
-
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
-
|
|
43
|
-
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
-
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
-
This is the primary authentication method for service-to-service communication.
|
|
46
|
-
|
|
47
|
-
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
-
The group determines the authorization context for operations
|
|
49
|
-
and is sent as an "x-group" header with every request.
|
|
50
|
-
|
|
51
|
-
timeout: The default timeout for all gRPC method calls.
|
|
52
|
-
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
-
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
-
Default: 30 seconds
|
|
55
|
-
"""
|
|
56
|
-
self.tls = tls
|
|
57
|
-
self.url = url
|
|
58
|
-
self.port = port
|
|
59
|
-
self.api_key = api_key
|
|
60
|
-
self.group = group
|
|
61
|
-
self.timeout = timeout
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# Create alias to match expected exports
|
|
65
|
-
ClientOptions = ServiceOptions
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
-
# source: meshtrade/iam/user/v1/service.proto
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Configuration options for UserService gRPC service.
|
|
6
|
-
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
-
parameters while maintaining backward compatibility and readability.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from datetime import timedelta
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ServiceOptions:
|
|
14
|
-
"""Configuration options for UserService gRPC service.
|
|
15
|
-
|
|
16
|
-
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
-
parameters while maintaining backward compatibility and readability.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
def __init__(
|
|
21
|
-
self,
|
|
22
|
-
tls: bool = True,
|
|
23
|
-
url: str | None = None,
|
|
24
|
-
port: int | None = None,
|
|
25
|
-
api_key: str | None = None,
|
|
26
|
-
group: str | None = None,
|
|
27
|
-
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
-
):
|
|
29
|
-
"""Initialize service options.
|
|
30
|
-
|
|
31
|
-
Args:
|
|
32
|
-
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
-
When True, establishes a secure connection using TLS.
|
|
34
|
-
When False, uses an insecure connection.
|
|
35
|
-
Default: True (secure connection)
|
|
36
|
-
|
|
37
|
-
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
-
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
-
|
|
40
|
-
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
-
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
-
|
|
43
|
-
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
-
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
-
This is the primary authentication method for service-to-service communication.
|
|
46
|
-
|
|
47
|
-
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
-
The group determines the authorization context for operations
|
|
49
|
-
and is sent as an "x-group" header with every request.
|
|
50
|
-
|
|
51
|
-
timeout: The default timeout for all gRPC method calls.
|
|
52
|
-
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
-
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
-
Default: 30 seconds
|
|
55
|
-
"""
|
|
56
|
-
self.tls = tls
|
|
57
|
-
self.url = url
|
|
58
|
-
self.port = port
|
|
59
|
-
self.api_key = api_key
|
|
60
|
-
self.group = group
|
|
61
|
-
self.timeout = timeout
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# Create alias to match expected exports
|
|
65
|
-
ClientOptions = ServiceOptions
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: meshtrade/option/v1/method_type.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'meshtrade/option/v1/method_type.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%meshtrade/option/v1/method_type.proto\x12\x13meshtrade.option.v1\x1a google/protobuf/descriptor.proto*V\n\nMethodType\x12\x1b\n\x17METHOD_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10METHOD_TYPE_READ\x10\x01\x12\x15\n\x11METHOD_TYPE_WRITE\x10\x02:b\n\x0bmethod_type\x12\x1e.google.protobuf.MethodOptions\x18\xd4\x86\x03 \x01(\x0e\x32\x1f.meshtrade.option.v1.MethodTypeR\nmethodTypeBL\n\x1a\x63o.meshtrade.api.option.v1Z.github.com/meshtrade/api/go/option/v1;optionv1b\x06proto3')
|
|
29
|
-
|
|
30
|
-
_globals = globals()
|
|
31
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.option.v1.method_type_pb2', _globals)
|
|
33
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\032co.meshtrade.api.option.v1Z.github.com/meshtrade/api/go/option/v1;optionv1'
|
|
36
|
-
_globals['_METHODTYPE']._serialized_start=96
|
|
37
|
-
_globals['_METHODTYPE']._serialized_end=182
|
|
38
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
|
2
|
-
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
3
|
-
from google.protobuf import descriptor as _descriptor
|
|
4
|
-
from typing import ClassVar as _ClassVar
|
|
5
|
-
|
|
6
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
-
|
|
8
|
-
class MethodType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
9
|
-
__slots__ = ()
|
|
10
|
-
METHOD_TYPE_UNSPECIFIED: _ClassVar[MethodType]
|
|
11
|
-
METHOD_TYPE_READ: _ClassVar[MethodType]
|
|
12
|
-
METHOD_TYPE_WRITE: _ClassVar[MethodType]
|
|
13
|
-
METHOD_TYPE_UNSPECIFIED: MethodType
|
|
14
|
-
METHOD_TYPE_READ: MethodType
|
|
15
|
-
METHOD_TYPE_WRITE: MethodType
|
|
16
|
-
METHOD_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
-
method_type: _descriptor.FieldDescriptor
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: meshtrade/reporting/income_report/v1/entry.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'meshtrade/reporting/income_report/v1/entry.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
|
|
26
|
-
from meshtrade.type.v1 import amount_pb2 as meshtrade_dot_type_dot_v1_dot_amount__pb2
|
|
27
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0meshtrade/reporting/income_report/v1/entry.proto\x12$meshtrade.reporting.income_report.v1\x1a\x1dmeshtrade/type/v1/token.proto\x1a\x1emeshtrade/type/v1/amount.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x02\n\x05\x45ntry\x12\x1d\n\nasset_name\x18\x01 \x01(\tR\tassetName\x12.\n\x05token\x18\x02 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x05token\x12.\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x64\x61te\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12M\n\tnarrative\x18\x05 \x01(\x0e\x32/.meshtrade.reporting.income_report.v1.NarrativeR\tnarrative\x12\x31\n\x06\x61mount\x18\x06 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x06\x61mount\x12Q\n\x17reported_currency_value\x18\x07 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x15reportedCurrencyValue*Q\n\tNarrative\x12\x19\n\x15NARRATIVE_UNSPECIFIED\x10\x00\x12\x13\n\x0fNARRATIVE_YIELD\x10\x01\x12\x14\n\x10NARRATIVE_COUPON\x10\x02\x42u\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
|
|
31
|
-
|
|
32
|
-
_globals = globals()
|
|
33
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.entry_pb2', _globals)
|
|
35
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
|
|
38
|
-
_globals['_NARRATIVE']._serialized_start=570
|
|
39
|
-
_globals['_NARRATIVE']._serialized_end=651
|
|
40
|
-
_globals['_ENTRY']._serialized_start=187
|
|
41
|
-
_globals['_ENTRY']._serialized_end=568
|
|
42
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: meshtrade/reporting/income_report/v1/income_report.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'meshtrade/reporting/income_report/v1/income_report.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
-
from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
|
|
27
|
-
from meshtrade.type.v1 import address_pb2 as meshtrade_dot_type_dot_v1_dot_address__pb2
|
|
28
|
-
from meshtrade.reporting.income_report.v1 import disclaimer_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_disclaimer__pb2
|
|
29
|
-
from meshtrade.reporting.income_report.v1 import entry_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_entry__pb2
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n8meshtrade/reporting/income_report/v1/income_report.proto\x12$meshtrade.reporting.income_report.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dmeshtrade/type/v1/token.proto\x1a\x1fmeshtrade/type/v1/address.proto\x1a\x35meshtrade/reporting/income_report/v1/disclaimer.proto\x1a\x30meshtrade/reporting/income_report/v1/entry.proto\"\x99\x05\n\x0cIncomeReport\x12\x45\n\x07\x65ntries\x18\x01 \x03(\x0b\x32+.meshtrade.reporting.income_report.v1.EntryR\x07\x65ntries\x12G\n\x12reporting_currency\x18\x02 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x11reportingCurrency\x12Q\n\x06period\x18\x03 \x01(\x0b\x32\x39.meshtrade.reporting.income_report.v1.IncomeReport.PeriodR\x06period\x12\x43\n\x0fgeneration_date\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0egenerationDate\x12%\n\x0e\x61\x63\x63ount_number\x18\x05 \x01(\tR\raccountNumber\x12R\n\x0b\x64isclaimers\x18\x06 \x03(\x0b\x32\x30.meshtrade.reporting.income_report.v1.DisclaimerR\x0b\x64isclaimers\x12\x41\n\x0e\x63lient_address\x18\x07 \x01(\x0b\x32\x1a.meshtrade.type.v1.AddressR\rclientAddress\x12\x1f\n\x0b\x63lient_name\x18\x08 \x01(\tR\nclientName\x12\x1c\n\tcopyright\x18\t \x01(\tR\tcopyright\x1a\x64\n\x06Period\x12.\n\x04\x66rom\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x66rom\x12*\n\x02to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x02toBu\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
|
|
33
|
-
|
|
34
|
-
_globals = globals()
|
|
35
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
36
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.income_report_pb2', _globals)
|
|
37
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
38
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
39
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
|
|
40
|
-
_globals['_INCOMEREPORT']._serialized_start=301
|
|
41
|
-
_globals['_INCOMEREPORT']._serialized_end=966
|
|
42
|
-
_globals['_INCOMEREPORT_PERIOD']._serialized_start=866
|
|
43
|
-
_globals['_INCOMEREPORT_PERIOD']._serialized_end=966
|
|
44
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
|
|
3
|
-
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
4
|
-
from meshtrade.type.v1 import token_pb2 as _token_pb2
|
|
5
|
-
from meshtrade.type.v1 import address_pb2 as _address_pb2
|
|
6
|
-
from meshtrade.reporting.income_report.v1 import disclaimer_pb2 as _disclaimer_pb2
|
|
7
|
-
from meshtrade.reporting.income_report.v1 import entry_pb2 as _entry_pb2
|
|
8
|
-
from google.protobuf.internal import containers as _containers
|
|
9
|
-
from google.protobuf import descriptor as _descriptor
|
|
10
|
-
from google.protobuf import message as _message
|
|
11
|
-
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
12
|
-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
13
|
-
|
|
14
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
15
|
-
|
|
16
|
-
class IncomeReport(_message.Message):
|
|
17
|
-
__slots__ = ("entries", "reporting_currency", "period", "generation_date", "account_number", "disclaimers", "client_address", "client_name", "copyright")
|
|
18
|
-
class Period(_message.Message):
|
|
19
|
-
__slots__ = ("to",)
|
|
20
|
-
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
-
TO_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
-
to: _timestamp_pb2.Timestamp
|
|
23
|
-
def __init__(self, to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., **kwargs) -> None: ...
|
|
24
|
-
ENTRIES_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
-
REPORTING_CURRENCY_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
-
PERIOD_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
-
GENERATION_DATE_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
-
ACCOUNT_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
-
DISCLAIMERS_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
-
CLIENT_ADDRESS_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
-
CLIENT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
-
COPYRIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
-
entries: _containers.RepeatedCompositeFieldContainer[_entry_pb2.Entry]
|
|
34
|
-
reporting_currency: _token_pb2.Token
|
|
35
|
-
period: IncomeReport.Period
|
|
36
|
-
generation_date: _timestamp_pb2.Timestamp
|
|
37
|
-
account_number: str
|
|
38
|
-
disclaimers: _containers.RepeatedCompositeFieldContainer[_disclaimer_pb2.Disclaimer]
|
|
39
|
-
client_address: _address_pb2.Address
|
|
40
|
-
client_name: str
|
|
41
|
-
copyright: str
|
|
42
|
-
def __init__(self, entries: _Optional[_Iterable[_Union[_entry_pb2.Entry, _Mapping]]] = ..., reporting_currency: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., period: _Optional[_Union[IncomeReport.Period, _Mapping]] = ..., generation_date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., account_number: _Optional[str] = ..., disclaimers: _Optional[_Iterable[_Union[_disclaimer_pb2.Disclaimer, _Mapping]]] = ..., client_address: _Optional[_Union[_address_pb2.Address, _Mapping]] = ..., client_name: _Optional[str] = ..., copyright: _Optional[str] = ...) -> None: ...
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
-
# source: meshtrade/reporting/income_report/v1/service.proto
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Configuration options for IncomeReportService gRPC service.
|
|
6
|
-
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
-
parameters while maintaining backward compatibility and readability.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from datetime import timedelta
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ServiceOptions:
|
|
14
|
-
"""Configuration options for IncomeReportService gRPC service.
|
|
15
|
-
|
|
16
|
-
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
-
parameters while maintaining backward compatibility and readability.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
def __init__(
|
|
21
|
-
self,
|
|
22
|
-
tls: bool = True,
|
|
23
|
-
url: str | None = None,
|
|
24
|
-
port: int | None = None,
|
|
25
|
-
api_key: str | None = None,
|
|
26
|
-
group: str | None = None,
|
|
27
|
-
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
-
):
|
|
29
|
-
"""Initialize service options.
|
|
30
|
-
|
|
31
|
-
Args:
|
|
32
|
-
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
-
When True, establishes a secure connection using TLS.
|
|
34
|
-
When False, uses an insecure connection.
|
|
35
|
-
Default: True (secure connection)
|
|
36
|
-
|
|
37
|
-
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
-
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
-
|
|
40
|
-
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
-
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
-
|
|
43
|
-
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
-
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
-
This is the primary authentication method for service-to-service communication.
|
|
46
|
-
|
|
47
|
-
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
-
The group determines the authorization context for operations
|
|
49
|
-
and is sent as an "x-group" header with every request.
|
|
50
|
-
|
|
51
|
-
timeout: The default timeout for all gRPC method calls.
|
|
52
|
-
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
-
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
-
Default: 30 seconds
|
|
55
|
-
"""
|
|
56
|
-
self.tls = tls
|
|
57
|
-
self.url = url
|
|
58
|
-
self.port = port
|
|
59
|
-
self.api_key = api_key
|
|
60
|
-
self.group = group
|
|
61
|
-
self.timeout = timeout
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
# Create alias to match expected exports
|
|
65
|
-
ClientOptions = ServiceOptions
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: meshtrade/reporting/income_report/v1/service.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'meshtrade/reporting/income_report/v1/service.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
-
from meshtrade.reporting.income_report.v1 import income_report_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_income__report__pb2
|
|
28
|
-
from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
|
|
29
|
-
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2meshtrade/reporting/income_report/v1/service.proto\x12$meshtrade.reporting.income_report.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x38meshtrade/reporting/income_report/v1/income_report.proto\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\"\x95\x01\n\x16GetIncomeReportRequest\x12\x1f\n\x0b\x61\x63\x63ount_num\x18\x01 \x01(\tR\naccountNum\x12.\n\x04\x66rom\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x66rom\x12*\n\x02to\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x02to\"\x82\x03\n\x1bGetExcelIncomeReportRequest\x12\x84\x01\n\x0b\x61\x63\x63ount_num\x18\x01 \x01(\tBc\xbaH`r\x0f\x10\x01\x32\x0b^[0-9]{1,}$\xba\x01L\n\x14\x61\x63\x63ount_num.required\x12\x17\x61\x63\x63ount_num is required\x1a\x1bthis.matches(\'^[0-9]{1,}$\')R\naccountNum\x12q\n\x04\x66rom\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampBA\xbaH>\xba\x01;\n\rfrom.required\x12\x1c\'from\' timestamp is required\x1a\x0cthis != nullR\x04\x66rom\x12i\n\x02to\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB=\xbaH:\xba\x01\x37\n\x0bto.required\x12\x1a\'to\' timestamp is required\x1a\x0cthis != nullR\x02to\"A\n\x1cGetExcelIncomeReportResponse\x12!\n\x0c\x65xcel_base64\x18\x01 \x01(\tR\x0b\x65xcelBase642\xdb\x02\n\x13IncomeReportService\x12\x93\x01\n\x0fGetIncomeReport\x12<.meshtrade.reporting.income_report.v1.GetIncomeReportRequest\x1a\x32.meshtrade.reporting.income_report.v1.IncomeReport\"\x0e\xa0\xb5\x18\x01\xaa\xb5\x18\x06\n\x04\x81\x9b\xee\x02\x12\xad\x01\n\x14GetExcelIncomeReport\x12\x41.meshtrade.reporting.income_report.v1.GetExcelIncomeReportRequest\x1a\x42.meshtrade.reporting.income_report.v1.GetExcelIncomeReportResponse\"\x0e\xa0\xb5\x18\x01\xaa\xb5\x18\x06\n\x04\x81\x9b\xee\x02\x42u\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
|
|
33
|
-
|
|
34
|
-
_globals = globals()
|
|
35
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
36
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.service_pb2', _globals)
|
|
37
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
38
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
39
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
|
|
40
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['account_num']._loaded_options = None
|
|
41
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['account_num']._serialized_options = b'\272H`r\017\020\0012\013^[0-9]{1,}$\272\001L\n\024account_num.required\022\027account_num is required\032\033this.matches(\'^[0-9]{1,}$\')'
|
|
42
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['from']._loaded_options = None
|
|
43
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['from']._serialized_options = b'\272H>\272\001;\n\rfrom.required\022\034\'from\' timestamp is required\032\014this != null'
|
|
44
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['to']._loaded_options = None
|
|
45
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['to']._serialized_options = b'\272H:\272\0017\n\013to.required\022\032\'to\' timestamp is required\032\014this != null'
|
|
46
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetIncomeReport']._loaded_options = None
|
|
47
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetIncomeReport']._serialized_options = b'\240\265\030\001\252\265\030\006\n\004\201\233\356\002'
|
|
48
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetExcelIncomeReport']._loaded_options = None
|
|
49
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetExcelIncomeReport']._serialized_options = b'\240\265\030\001\252\265\030\006\n\004\201\233\356\002'
|
|
50
|
-
_globals['_GETINCOMEREPORTREQUEST']._serialized_start=286
|
|
51
|
-
_globals['_GETINCOMEREPORTREQUEST']._serialized_end=435
|
|
52
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST']._serialized_start=438
|
|
53
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST']._serialized_end=824
|
|
54
|
-
_globals['_GETEXCELINCOMEREPORTRESPONSE']._serialized_start=826
|
|
55
|
-
_globals['_GETEXCELINCOMEREPORTRESPONSE']._serialized_end=891
|
|
56
|
-
_globals['_INCOMEREPORTSERVICE']._serialized_start=894
|
|
57
|
-
_globals['_INCOMEREPORTSERVICE']._serialized_end=1241
|
|
58
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
|
|
3
|
-
from buf.validate import validate_pb2 as _validate_pb2
|
|
4
|
-
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
5
|
-
from meshtrade.reporting.income_report.v1 import income_report_pb2 as _income_report_pb2
|
|
6
|
-
from meshtrade.iam.role.v1 import role_pb2 as _role_pb2
|
|
7
|
-
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
8
|
-
from google.protobuf import descriptor as _descriptor
|
|
9
|
-
from google.protobuf import message as _message
|
|
10
|
-
from collections.abc import Mapping as _Mapping
|
|
11
|
-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
12
|
-
|
|
13
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
14
|
-
|
|
15
|
-
class GetIncomeReportRequest(_message.Message):
|
|
16
|
-
__slots__ = ("account_num", "to")
|
|
17
|
-
ACCOUNT_NUM_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
-
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
-
TO_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
-
account_num: str
|
|
21
|
-
to: _timestamp_pb2.Timestamp
|
|
22
|
-
def __init__(self, account_num: _Optional[str] = ..., to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., **kwargs) -> None: ...
|
|
23
|
-
|
|
24
|
-
class GetExcelIncomeReportRequest(_message.Message):
|
|
25
|
-
__slots__ = ("account_num", "to")
|
|
26
|
-
ACCOUNT_NUM_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
-
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
-
TO_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
-
account_num: str
|
|
30
|
-
to: _timestamp_pb2.Timestamp
|
|
31
|
-
def __init__(self, account_num: _Optional[str] = ..., to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., **kwargs) -> None: ...
|
|
32
|
-
|
|
33
|
-
class GetExcelIncomeReportResponse(_message.Message):
|
|
34
|
-
__slots__ = ("excel_base64",)
|
|
35
|
-
EXCEL_BASE64_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
-
excel_base64: str
|
|
37
|
-
def __init__(self, excel_base64: _Optional[str] = ...) -> None: ...
|