meshtrade 0.0.7__py3-none-any.whl → 0.0.10__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.
Potentially problematic release.
This version of meshtrade might be problematic. Click here for more details.
- buf/validate/validate_pb2.py +450 -0
- buf/validate/validate_pb2.pyi +627 -0
- meshtrade/common/__init__.py +28 -0
- meshtrade/common/config.py +30 -0
- meshtrade/common/grpc_client.py +202 -0
- meshtrade/compliance/client/v1/__init__.py +89 -0
- meshtrade/compliance/client/v1/client_pb2.py +2 -2
- meshtrade/compliance/client/v1/client_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/company_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/company_representative_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_representative_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_representative_role_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/fund_pb2.py +2 -2
- meshtrade/compliance/client/v1/fund_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/identification_document_type_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
- meshtrade/compliance/client/v1/industry_classification_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/natural_person_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/pep_status_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/service_meshpy.py +186 -0
- meshtrade/compliance/client/v1/service_options_meshpy.py +65 -0
- meshtrade/compliance/client/v1/service_pb2.py +20 -10
- meshtrade/compliance/client/v1/service_pb2.pyi +8 -0
- meshtrade/compliance/client/v1/service_pb2_grpc.py +192 -0
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/tax_residency_pb2.py +2 -2
- meshtrade/compliance/client/v1/tax_residency_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/trust_pb2.py +2 -2
- meshtrade/compliance/client/v1/trust_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/verification_status_pb2_grpc.py +4 -0
- meshtrade/iam/api_user/v1/__init__.py +99 -0
- meshtrade/iam/api_user/v1/api_credentials.py +156 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +42 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2.pyi +14 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2_grpc.py +4 -0
- meshtrade/iam/api_user/v1/api_user_pb2.py +48 -0
- meshtrade/iam/api_user/v1/api_user_pb2.pyi +49 -0
- meshtrade/iam/api_user/v1/api_user_pb2_grpc.py +4 -0
- meshtrade/iam/api_user/v1/service.py +58 -0
- meshtrade/iam/api_user/v1/service_meshpy.py +255 -0
- meshtrade/iam/api_user/v1/service_options_meshpy.py +65 -0
- meshtrade/iam/api_user/v1/service_pb2.py +77 -0
- meshtrade/iam/api_user/v1/service_pb2.pyi +63 -0
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +458 -0
- meshtrade/iam/group/v1/__init__.py +63 -0
- meshtrade/iam/group/v1/group_pb2.py +2 -2
- meshtrade/iam/group/v1/group_pb2_grpc.py +4 -0
- meshtrade/iam/group/v1/service_meshpy.py +187 -0
- meshtrade/iam/group/v1/service_options_meshpy.py +65 -0
- meshtrade/iam/group/v1/service_pb2.py +22 -6
- meshtrade/iam/group/v1/service_pb2.pyi +29 -1
- meshtrade/iam/group/v1/service_pb2_grpc.py +170 -0
- meshtrade/iam/role/v1/__init__.py +44 -0
- meshtrade/iam/role/v1/role.py +23 -0
- meshtrade/iam/role/v1/role_pb2.py +40 -0
- meshtrade/{option/v1/auth_pb2.pyi → iam/role/v1/role_pb2.pyi} +16 -0
- meshtrade/iam/role/v1/role_pb2_grpc.py +4 -0
- meshtrade/iam/user/v1/__init__.py +53 -0
- meshtrade/iam/user/v1/service_meshpy.py +151 -0
- meshtrade/iam/user/v1/service_options_meshpy.py +65 -0
- meshtrade/iam/user/v1/service_pb2.py +51 -0
- meshtrade/iam/user/v1/service_pb2.pyi +19 -0
- meshtrade/iam/user/v1/service_pb2_grpc.py +82 -0
- meshtrade/{issuance_hub/instrument/v1/instrument_pb2.py → iam/user/v1/user_pb2.py} +7 -7
- meshtrade/iam/user/v1/user_pb2.pyi +15 -0
- meshtrade/iam/user/v1/user_pb2_grpc.py +4 -0
- meshtrade/ledger/transaction/v1/__init__.py +41 -0
- meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_action_pb2_grpc.py +4 -0
- meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_state_pb2_grpc.py +4 -0
- meshtrade/option/v1/__init__.py +39 -0
- meshtrade/option/v1/{service_type_pb2.py → method_type_pb2.py} +7 -7
- meshtrade/option/v1/method_type_pb2.pyi +17 -0
- meshtrade/option/v1/method_type_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/__init__.py +53 -0
- meshtrade/trading/limit_order/v1/limit_order_pb2.py +2 -2
- meshtrade/trading/limit_order/v1/limit_order_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/service_meshpy.py +151 -0
- meshtrade/trading/limit_order/v1/service_options_meshpy.py +65 -0
- meshtrade/trading/limit_order/v1/service_pb2.py +10 -6
- meshtrade/trading/limit_order/v1/service_pb2.pyi +2 -0
- meshtrade/trading/limit_order/v1/service_pb2_grpc.py +78 -0
- meshtrade/trading/market_order/v1/__init__.py +53 -0
- meshtrade/trading/{direct_order/v1/direct_order_pb2.py → market_order/v1/market_order_pb2.py} +7 -7
- meshtrade/{issuance_hub/instrument/v1/instrument_pb2.pyi → trading/market_order/v1/market_order_pb2.pyi} +1 -1
- meshtrade/trading/market_order/v1/market_order_pb2_grpc.py +4 -0
- meshtrade/trading/market_order/v1/service_meshpy.py +151 -0
- meshtrade/trading/market_order/v1/service_options_meshpy.py +65 -0
- meshtrade/trading/market_order/v1/service_pb2.py +44 -0
- meshtrade/trading/{spot → market_order}/v1/service_pb2.pyi +4 -2
- meshtrade/trading/market_order/v1/service_pb2_grpc.py +78 -0
- meshtrade/type/v1/__init__.py +120 -4
- meshtrade/type/v1/address_pb2.py +2 -2
- meshtrade/type/v1/address_pb2_grpc.py +4 -0
- meshtrade/type/v1/amount.py +2 -8
- meshtrade/type/v1/amount_pb2.py +2 -2
- meshtrade/type/v1/amount_pb2_grpc.py +4 -0
- meshtrade/type/v1/contact_details_pb2.py +2 -2
- meshtrade/type/v1/contact_details_pb2_grpc.py +4 -0
- meshtrade/type/v1/date.py +373 -0
- meshtrade/{trading/spot/v1/spot_pb2.py → type/v1/date_pb2.py} +7 -7
- meshtrade/type/v1/date_pb2.pyi +15 -0
- meshtrade/type/v1/date_pb2_grpc.py +4 -0
- meshtrade/type/v1/decimal_built_in_conversions.py +1 -1
- meshtrade/type/v1/decimal_pb2.py +2 -2
- meshtrade/type/v1/decimal_pb2_grpc.py +4 -0
- meshtrade/type/v1/ledger.py +2 -3
- meshtrade/type/v1/ledger_pb2.py +2 -2
- meshtrade/type/v1/ledger_pb2_grpc.py +4 -0
- meshtrade/type/v1/time_of_day.py +265 -0
- meshtrade/type/v1/time_of_day_pb2.py +37 -0
- meshtrade/type/v1/time_of_day_pb2.pyi +17 -0
- meshtrade/type/v1/time_of_day_pb2_grpc.py +4 -0
- meshtrade/type/v1/token_pb2.py +2 -2
- meshtrade/type/v1/token_pb2_grpc.py +4 -0
- meshtrade/wallet/account/v1/__init__.py +65 -0
- meshtrade/wallet/account/v1/account_pb2.py +2 -2
- meshtrade/wallet/account/v1/account_pb2_grpc.py +4 -0
- meshtrade/wallet/account/v1/service_meshpy.py +204 -0
- meshtrade/wallet/account/v1/service_options_meshpy.py +65 -0
- meshtrade/wallet/account/v1/service_pb2.py +18 -27
- meshtrade/wallet/account/v1/service_pb2.pyi +2 -3
- meshtrade/wallet/account/v1/service_pb2_grpc.py +222 -0
- meshtrade-0.0.10.dist-info/METADATA +95 -0
- meshtrade-0.0.10.dist-info/RECORD +173 -0
- {meshtrade-0.0.7.dist-info → meshtrade-0.0.10.dist-info}/top_level.txt +1 -0
- meshtrade/issuance_hub/instrument/v1/service_pb2.py +0 -49
- meshtrade/issuance_hub/instrument/v1/service_pb2.pyi +0 -46
- meshtrade/option/v1/auth_pb2.py +0 -40
- meshtrade/option/v1/service_type_pb2.pyi +0 -17
- meshtrade/trading/direct_order/v1/__init__.py +0 -0
- meshtrade/trading/direct_order/v1/direct_order_pb2.pyi +0 -11
- meshtrade/trading/direct_order/v1/service_pb2.py +0 -40
- meshtrade/trading/direct_order/v1/service_pb2.pyi +0 -12
- meshtrade/trading/spot/__init__.py +0 -0
- meshtrade/trading/spot/v1/__init__.py +0 -0
- meshtrade/trading/spot/v1/service_pb2.py +0 -40
- meshtrade/trading/spot/v1/spot_pb2.pyi +0 -11
- meshtrade-0.0.7.dist-info/METADATA +0 -35
- meshtrade-0.0.7.dist-info/RECORD +0 -102
- meshtrade-0.0.7.dist-info/licenses/LICENSE +0 -10
- /meshtrade/{iam/role → ledger}/__init__.py +0 -0
- /meshtrade/{trading/direct_order → ledger/transaction}/__init__.py +0 -0
- {meshtrade-0.0.7.dist-info → meshtrade-0.0.10.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
+
# source: meshtrade/compliance/client/v1/service.proto
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
ClientService gRPC service wrapper with authentication, timeouts, and resource management.
|
|
6
|
+
|
|
7
|
+
This module provides a high-level gRPC service for the ClientService service that combines
|
|
8
|
+
the service interface with resource management capabilities, providing authentication,
|
|
9
|
+
timeouts, and proper connection handling.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from datetime import timedelta
|
|
13
|
+
from typing import Optional
|
|
14
|
+
|
|
15
|
+
from meshtrade.common import BaseGRPCClient
|
|
16
|
+
from meshtrade.iam.api_user.v1.api_credentials import find_credentials
|
|
17
|
+
|
|
18
|
+
from .client_pb2 import Client
|
|
19
|
+
from .service_options_meshpy import ServiceOptions
|
|
20
|
+
from .service_pb2 import (
|
|
21
|
+
CreateClientRequest,
|
|
22
|
+
GetClientRequest,
|
|
23
|
+
ListClientsRequest,
|
|
24
|
+
ListClientsResponse,
|
|
25
|
+
)
|
|
26
|
+
from .service_pb2_grpc import ClientServiceStub
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _create_clientservice_stub(channel):
|
|
30
|
+
"""Factory function to create ClientServiceStub from gRPC channel."""
|
|
31
|
+
return ClientServiceStub(channel)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ClientService(BaseGRPCClient):
|
|
35
|
+
"""ClientService gRPC service with authentication, timeouts, and resource management.
|
|
36
|
+
|
|
37
|
+
This service provides a complete implementation of the ClientService with proper authentication, timeout handling, and automatic resource cleanup.
|
|
38
|
+
|
|
39
|
+
Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/compliance/client/v1
|
|
40
|
+
|
|
41
|
+
Basic service usage with default SDK Configuration:
|
|
42
|
+
```python
|
|
43
|
+
service = ClientService()
|
|
44
|
+
|
|
45
|
+
with service: # `with` ensures proper clean up of underlying connection after use
|
|
46
|
+
response = service.get_api_user(request)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
With default configuration API credentials are searched for using the standard discovery hierarchy:
|
|
50
|
+
|
|
51
|
+
1. MESH_API_CREDENTIALS environment variable
|
|
52
|
+
|
|
53
|
+
2. Default credential file location:
|
|
54
|
+
|
|
55
|
+
- Linux: `$XDG_CONFIG_HOME/mesh/credentials.json` or fallback to `$HOME/.config/mesh/credentials.json`
|
|
56
|
+
- macOS: `$HOME/Library/Application Support/mesh/credentials.json`
|
|
57
|
+
- Windows: `C:\\Users\\<user>\\AppData\\Roaming\\mesh\\credentials.json`
|
|
58
|
+
|
|
59
|
+
For more information on authentication: https://meshtrade.github.io/api/docs/architecture/authentication
|
|
60
|
+
|
|
61
|
+
The service may also be configured with custom options:
|
|
62
|
+
```python
|
|
63
|
+
from .service_options_meshpy import ServiceOptions
|
|
64
|
+
from datetime import timedelta
|
|
65
|
+
|
|
66
|
+
options = ServiceOptions(
|
|
67
|
+
url="api.staging.example.com",
|
|
68
|
+
port=443,
|
|
69
|
+
api_key="your-api-key",
|
|
70
|
+
group="groups/your-group-id",
|
|
71
|
+
timeout=timedelta(seconds=60)
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
service = ClientService(options)
|
|
75
|
+
|
|
76
|
+
with service: # `with` ensures proper clean up of underlying connection after use
|
|
77
|
+
response = service.get_api_user(request)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
For more information on service configuration: https://meshtrade.github.io/api/docs/architecture/sdk-configuration
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
def __init__(self, options: Optional[ServiceOptions] = None):
|
|
84
|
+
"""Construct and initialize the ClientService service.
|
|
85
|
+
|
|
86
|
+
Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/compliance/client/v1
|
|
87
|
+
|
|
88
|
+
Args:
|
|
89
|
+
options: Optional ServiceOptions for configuring the service.
|
|
90
|
+
If None, service is constructed with default configuration.
|
|
91
|
+
With default configuration API credentials are searched for using the standard discovery hierarchy:
|
|
92
|
+
|
|
93
|
+
1. MESH_API_CREDENTIALS environment variable
|
|
94
|
+
|
|
95
|
+
2. Default credential file location:
|
|
96
|
+
|
|
97
|
+
- Linux: `$XDG_CONFIG_HOME/mesh/credentials.json` or fallback to `$HOME/.config/mesh/credentials.json`
|
|
98
|
+
- macOS: `$HOME/Library/Application Support/mesh/credentials.json`
|
|
99
|
+
- Windows: `C:\\Users\\<user>\\AppData\\Roaming\\mesh\\credentials.json`
|
|
100
|
+
|
|
101
|
+
For more information on authentication: https://meshtrade.github.io/api/docs/architecture/authentication
|
|
102
|
+
|
|
103
|
+
For more information on service configuration: https://meshtrade.github.io/api/docs/architecture/sdk-configuration
|
|
104
|
+
|
|
105
|
+
Example:
|
|
106
|
+
```python
|
|
107
|
+
# construct with default configuration
|
|
108
|
+
service = ClientService()
|
|
109
|
+
|
|
110
|
+
# construct with custom configuration
|
|
111
|
+
options = ServiceOptions(
|
|
112
|
+
url="api.example.com",
|
|
113
|
+
api_key="your-key",
|
|
114
|
+
group="groups/your-group"
|
|
115
|
+
)
|
|
116
|
+
service = ClientService(options)
|
|
117
|
+
```
|
|
118
|
+
"""
|
|
119
|
+
if options is None:
|
|
120
|
+
options = ServiceOptions()
|
|
121
|
+
|
|
122
|
+
# Initialize the base client with all common functionality
|
|
123
|
+
super().__init__(
|
|
124
|
+
service_name="ClientService",
|
|
125
|
+
stub_factory=_create_clientservice_stub,
|
|
126
|
+
find_credentials_func=find_credentials,
|
|
127
|
+
url=options.url,
|
|
128
|
+
port=options.port,
|
|
129
|
+
api_key=options.api_key,
|
|
130
|
+
group=options.group,
|
|
131
|
+
timeout=options.timeout,
|
|
132
|
+
tls=options.tls,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
def create_client(self, request: CreateClientRequest, timeout: Optional[timedelta] = None) -> Client:
|
|
136
|
+
"""CreateClient method.
|
|
137
|
+
|
|
138
|
+
Args:
|
|
139
|
+
request: The CreateClient request message
|
|
140
|
+
timeout: Optional timeout override for this call
|
|
141
|
+
|
|
142
|
+
Returns:
|
|
143
|
+
The CreateClient response message
|
|
144
|
+
|
|
145
|
+
Raises:
|
|
146
|
+
grpc.RpcError: If the gRPC call fails
|
|
147
|
+
ValueError: If authentication credentials are missing
|
|
148
|
+
"""
|
|
149
|
+
return self._execute_method("CreateClient", request, timeout)
|
|
150
|
+
|
|
151
|
+
def get_client(self, request: GetClientRequest, timeout: Optional[timedelta] = None) -> Client:
|
|
152
|
+
"""GetClient method.
|
|
153
|
+
|
|
154
|
+
Args:
|
|
155
|
+
request: The GetClient request message
|
|
156
|
+
timeout: Optional timeout override for this call
|
|
157
|
+
|
|
158
|
+
Returns:
|
|
159
|
+
The GetClient response message
|
|
160
|
+
|
|
161
|
+
Raises:
|
|
162
|
+
grpc.RpcError: If the gRPC call fails
|
|
163
|
+
ValueError: If authentication credentials are missing
|
|
164
|
+
"""
|
|
165
|
+
return self._execute_method("GetClient", request, timeout)
|
|
166
|
+
|
|
167
|
+
def list_clients(self, request: ListClientsRequest, timeout: Optional[timedelta] = None) -> ListClientsResponse:
|
|
168
|
+
"""ListClients method.
|
|
169
|
+
|
|
170
|
+
Args:
|
|
171
|
+
request: The ListClients request message
|
|
172
|
+
timeout: Optional timeout override for this call
|
|
173
|
+
|
|
174
|
+
Returns:
|
|
175
|
+
The ListClients response message
|
|
176
|
+
|
|
177
|
+
Raises:
|
|
178
|
+
grpc.RpcError: If the gRPC call fails
|
|
179
|
+
ValueError: If authentication credentials are missing
|
|
180
|
+
"""
|
|
181
|
+
return self._execute_method("ListClients", request, timeout)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
# Create aliases to match expected exports
|
|
185
|
+
ClientServiceGRPCClient = ClientService
|
|
186
|
+
ClientServiceGRPCClientInterface = ClientService
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
+
# source: meshtrade/compliance/client/v1/service.proto
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Configuration options for ClientService 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 ClientService 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
|
|
@@ -23,22 +23,32 @@ _sym_db = _symbol_database.Default()
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
from meshtrade.compliance.client.v1 import client_pb2 as meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2
|
|
26
|
+
from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
|
|
27
|
+
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
26
28
|
|
|
27
29
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,meshtrade/compliance/client/v1/service.proto\x12\x1emeshtrade.compliance.client.v1\x1a+meshtrade/compliance/client/v1/client.proto\"&\n\x10GetClientRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\x14\n\x12ListClientsRequest\"W\n\x13ListClientsResponse\x12@\n\x07\x63lients\x18\x01 \x03(\x0b\x32&.meshtrade.compliance.client.v1.ClientR\x07\x63lients2\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,meshtrade/compliance/client/v1/service.proto\x12\x1emeshtrade.compliance.client.v1\x1a+meshtrade/compliance/client/v1/client.proto\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\"&\n\x10GetClientRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"U\n\x13\x43reateClientRequest\x12>\n\x06\x63lient\x18\x01 \x01(\x0b\x32&.meshtrade.compliance.client.v1.ClientR\x06\x63lient\"\x14\n\x12ListClientsRequest\"W\n\x13ListClientsResponse\x12@\n\x07\x63lients\x18\x01 \x03(\x0b\x32&.meshtrade.compliance.client.v1.ClientR\x07\x63lients2\x85\x03\n\rClientService\x12x\n\x0c\x43reateClient\x12\x33.meshtrade.compliance.client.v1.CreateClientRequest\x1a&.meshtrade.compliance.client.v1.Client\"\x0b\xa0\xb5\x18\x02\xaa\xb5\x18\x03\n\x01\x03\x12s\n\tGetClient\x12\x30.meshtrade.compliance.client.v1.GetClientRequest\x1a&.meshtrade.compliance.client.v1.Client\"\x0c\xa0\xb5\x18\x01\xaa\xb5\x18\x04\n\x02\x03\x04\x12\x84\x01\n\x0bListClients\x12\x32.meshtrade.compliance.client.v1.ListClientsRequest\x1a\x33.meshtrade.compliance.client.v1.ListClientsResponse\"\x0c\xa0\xb5\x18\x01\xaa\xb5\x18\x04\n\x02\x03\x04\x42\x62\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1b\x06proto3')
|
|
29
31
|
|
|
30
32
|
_globals = globals()
|
|
31
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
34
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.compliance.client.v1.service_pb2', _globals)
|
|
33
35
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
36
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
36
|
-
_globals['
|
|
37
|
-
_globals['
|
|
38
|
-
_globals['
|
|
39
|
-
_globals['
|
|
40
|
-
_globals['
|
|
41
|
-
_globals['
|
|
42
|
-
_globals['
|
|
43
|
-
_globals['
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1'
|
|
38
|
+
_globals['_CLIENTSERVICE'].methods_by_name['CreateClient']._loaded_options = None
|
|
39
|
+
_globals['_CLIENTSERVICE'].methods_by_name['CreateClient']._serialized_options = b'\240\265\030\002\252\265\030\003\n\001\003'
|
|
40
|
+
_globals['_CLIENTSERVICE'].methods_by_name['GetClient']._loaded_options = None
|
|
41
|
+
_globals['_CLIENTSERVICE'].methods_by_name['GetClient']._serialized_options = b'\240\265\030\001\252\265\030\004\n\002\003\004'
|
|
42
|
+
_globals['_CLIENTSERVICE'].methods_by_name['ListClients']._loaded_options = None
|
|
43
|
+
_globals['_CLIENTSERVICE'].methods_by_name['ListClients']._serialized_options = b'\240\265\030\001\252\265\030\004\n\002\003\004'
|
|
44
|
+
_globals['_GETCLIENTREQUEST']._serialized_start=198
|
|
45
|
+
_globals['_GETCLIENTREQUEST']._serialized_end=236
|
|
46
|
+
_globals['_CREATECLIENTREQUEST']._serialized_start=238
|
|
47
|
+
_globals['_CREATECLIENTREQUEST']._serialized_end=323
|
|
48
|
+
_globals['_LISTCLIENTSREQUEST']._serialized_start=325
|
|
49
|
+
_globals['_LISTCLIENTSREQUEST']._serialized_end=345
|
|
50
|
+
_globals['_LISTCLIENTSRESPONSE']._serialized_start=347
|
|
51
|
+
_globals['_LISTCLIENTSRESPONSE']._serialized_end=434
|
|
52
|
+
_globals['_CLIENTSERVICE']._serialized_start=437
|
|
53
|
+
_globals['_CLIENTSERVICE']._serialized_end=826
|
|
44
54
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
from meshtrade.compliance.client.v1 import client_pb2 as _client_pb2
|
|
2
|
+
from meshtrade.iam.role.v1 import role_pb2 as _role_pb2
|
|
3
|
+
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
2
4
|
from google.protobuf.internal import containers as _containers
|
|
3
5
|
from google.protobuf import descriptor as _descriptor
|
|
4
6
|
from google.protobuf import message as _message
|
|
@@ -13,6 +15,12 @@ class GetClientRequest(_message.Message):
|
|
|
13
15
|
name: str
|
|
14
16
|
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
15
17
|
|
|
18
|
+
class CreateClientRequest(_message.Message):
|
|
19
|
+
__slots__ = ("client",)
|
|
20
|
+
CLIENT_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
client: _client_pb2.Client
|
|
22
|
+
def __init__(self, client: _Optional[_Union[_client_pb2.Client, _Mapping]] = ...) -> None: ...
|
|
23
|
+
|
|
16
24
|
class ListClientsRequest(_message.Message):
|
|
17
25
|
__slots__ = ()
|
|
18
26
|
def __init__(self) -> None: ...
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from meshtrade.compliance.client.v1 import client_pb2 as meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2
|
|
6
|
+
from meshtrade.compliance.client.v1 import service_pb2 as meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ClientServiceStub(object):
|
|
10
|
+
"""Service manages client profiles for compliance and Know Your Customer (KYC)
|
|
11
|
+
purposes.
|
|
12
|
+
|
|
13
|
+
The main entity managed by this service is the `Client` resource. A client can
|
|
14
|
+
be a natural person, company, or trust. This service allows you to retrieve
|
|
15
|
+
the compliance profiles for these clients.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
def __init__(self, channel):
|
|
19
|
+
"""Constructor.
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
channel: A grpc.Channel.
|
|
23
|
+
"""
|
|
24
|
+
self.CreateClient = channel.unary_unary(
|
|
25
|
+
'/meshtrade.compliance.client.v1.ClientService/CreateClient',
|
|
26
|
+
request_serializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.CreateClientRequest.SerializeToString,
|
|
27
|
+
response_deserializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2.Client.FromString,
|
|
28
|
+
_registered_method=True)
|
|
29
|
+
self.GetClient = channel.unary_unary(
|
|
30
|
+
'/meshtrade.compliance.client.v1.ClientService/GetClient',
|
|
31
|
+
request_serializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.GetClientRequest.SerializeToString,
|
|
32
|
+
response_deserializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2.Client.FromString,
|
|
33
|
+
_registered_method=True)
|
|
34
|
+
self.ListClients = channel.unary_unary(
|
|
35
|
+
'/meshtrade.compliance.client.v1.ClientService/ListClients',
|
|
36
|
+
request_serializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.ListClientsRequest.SerializeToString,
|
|
37
|
+
response_deserializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.ListClientsResponse.FromString,
|
|
38
|
+
_registered_method=True)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class ClientServiceServicer(object):
|
|
42
|
+
"""Service manages client profiles for compliance and Know Your Customer (KYC)
|
|
43
|
+
purposes.
|
|
44
|
+
|
|
45
|
+
The main entity managed by this service is the `Client` resource. A client can
|
|
46
|
+
be a natural person, company, or trust. This service allows you to retrieve
|
|
47
|
+
the compliance profiles for these clients.
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def CreateClient(self, request, context):
|
|
51
|
+
"""CreateClient creates a single client.
|
|
52
|
+
"""
|
|
53
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
54
|
+
context.set_details('Method not implemented!')
|
|
55
|
+
raise NotImplementedError('Method not implemented!')
|
|
56
|
+
|
|
57
|
+
def GetClient(self, request, context):
|
|
58
|
+
"""GetClient retrieves a single client's compliance profile by its unique resource name.
|
|
59
|
+
|
|
60
|
+
This allows for fetching the complete compliance details of a specific client,
|
|
61
|
+
including all associated information like identification documents, tax residencies,
|
|
62
|
+
and company structures.
|
|
63
|
+
"""
|
|
64
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
65
|
+
context.set_details('Method not implemented!')
|
|
66
|
+
raise NotImplementedError('Method not implemented!')
|
|
67
|
+
|
|
68
|
+
def ListClients(self, request, context):
|
|
69
|
+
"""ListClients retrieves a collection of client compliance profiles.
|
|
70
|
+
|
|
71
|
+
This method is useful for fetching multiple client records at once.
|
|
72
|
+
Note: This endpoint does not currently support pagination or filtering.
|
|
73
|
+
"""
|
|
74
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
|
+
context.set_details('Method not implemented!')
|
|
76
|
+
raise NotImplementedError('Method not implemented!')
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def add_ClientServiceServicer_to_server(servicer, server):
|
|
80
|
+
rpc_method_handlers = {
|
|
81
|
+
'CreateClient': grpc.unary_unary_rpc_method_handler(
|
|
82
|
+
servicer.CreateClient,
|
|
83
|
+
request_deserializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.CreateClientRequest.FromString,
|
|
84
|
+
response_serializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2.Client.SerializeToString,
|
|
85
|
+
),
|
|
86
|
+
'GetClient': grpc.unary_unary_rpc_method_handler(
|
|
87
|
+
servicer.GetClient,
|
|
88
|
+
request_deserializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.GetClientRequest.FromString,
|
|
89
|
+
response_serializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2.Client.SerializeToString,
|
|
90
|
+
),
|
|
91
|
+
'ListClients': grpc.unary_unary_rpc_method_handler(
|
|
92
|
+
servicer.ListClients,
|
|
93
|
+
request_deserializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.ListClientsRequest.FromString,
|
|
94
|
+
response_serializer=meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.ListClientsResponse.SerializeToString,
|
|
95
|
+
),
|
|
96
|
+
}
|
|
97
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
98
|
+
'meshtrade.compliance.client.v1.ClientService', rpc_method_handlers)
|
|
99
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
100
|
+
server.add_registered_method_handlers('meshtrade.compliance.client.v1.ClientService', rpc_method_handlers)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
# This class is part of an EXPERIMENTAL API.
|
|
104
|
+
class ClientService(object):
|
|
105
|
+
"""Service manages client profiles for compliance and Know Your Customer (KYC)
|
|
106
|
+
purposes.
|
|
107
|
+
|
|
108
|
+
The main entity managed by this service is the `Client` resource. A client can
|
|
109
|
+
be a natural person, company, or trust. This service allows you to retrieve
|
|
110
|
+
the compliance profiles for these clients.
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
@staticmethod
|
|
114
|
+
def CreateClient(request,
|
|
115
|
+
target,
|
|
116
|
+
options=(),
|
|
117
|
+
channel_credentials=None,
|
|
118
|
+
call_credentials=None,
|
|
119
|
+
insecure=False,
|
|
120
|
+
compression=None,
|
|
121
|
+
wait_for_ready=None,
|
|
122
|
+
timeout=None,
|
|
123
|
+
metadata=None):
|
|
124
|
+
return grpc.experimental.unary_unary(
|
|
125
|
+
request,
|
|
126
|
+
target,
|
|
127
|
+
'/meshtrade.compliance.client.v1.ClientService/CreateClient',
|
|
128
|
+
meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.CreateClientRequest.SerializeToString,
|
|
129
|
+
meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2.Client.FromString,
|
|
130
|
+
options,
|
|
131
|
+
channel_credentials,
|
|
132
|
+
insecure,
|
|
133
|
+
call_credentials,
|
|
134
|
+
compression,
|
|
135
|
+
wait_for_ready,
|
|
136
|
+
timeout,
|
|
137
|
+
metadata,
|
|
138
|
+
_registered_method=True)
|
|
139
|
+
|
|
140
|
+
@staticmethod
|
|
141
|
+
def GetClient(request,
|
|
142
|
+
target,
|
|
143
|
+
options=(),
|
|
144
|
+
channel_credentials=None,
|
|
145
|
+
call_credentials=None,
|
|
146
|
+
insecure=False,
|
|
147
|
+
compression=None,
|
|
148
|
+
wait_for_ready=None,
|
|
149
|
+
timeout=None,
|
|
150
|
+
metadata=None):
|
|
151
|
+
return grpc.experimental.unary_unary(
|
|
152
|
+
request,
|
|
153
|
+
target,
|
|
154
|
+
'/meshtrade.compliance.client.v1.ClientService/GetClient',
|
|
155
|
+
meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.GetClientRequest.SerializeToString,
|
|
156
|
+
meshtrade_dot_compliance_dot_client_dot_v1_dot_client__pb2.Client.FromString,
|
|
157
|
+
options,
|
|
158
|
+
channel_credentials,
|
|
159
|
+
insecure,
|
|
160
|
+
call_credentials,
|
|
161
|
+
compression,
|
|
162
|
+
wait_for_ready,
|
|
163
|
+
timeout,
|
|
164
|
+
metadata,
|
|
165
|
+
_registered_method=True)
|
|
166
|
+
|
|
167
|
+
@staticmethod
|
|
168
|
+
def ListClients(request,
|
|
169
|
+
target,
|
|
170
|
+
options=(),
|
|
171
|
+
channel_credentials=None,
|
|
172
|
+
call_credentials=None,
|
|
173
|
+
insecure=False,
|
|
174
|
+
compression=None,
|
|
175
|
+
wait_for_ready=None,
|
|
176
|
+
timeout=None,
|
|
177
|
+
metadata=None):
|
|
178
|
+
return grpc.experimental.unary_unary(
|
|
179
|
+
request,
|
|
180
|
+
target,
|
|
181
|
+
'/meshtrade.compliance.client.v1.ClientService/ListClients',
|
|
182
|
+
meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.ListClientsRequest.SerializeToString,
|
|
183
|
+
meshtrade_dot_compliance_dot_client_dot_v1_dot_service__pb2.ListClientsResponse.FromString,
|
|
184
|
+
options,
|
|
185
|
+
channel_credentials,
|
|
186
|
+
insecure,
|
|
187
|
+
call_credentials,
|
|
188
|
+
compression,
|
|
189
|
+
wait_for_ready,
|
|
190
|
+
timeout,
|
|
191
|
+
metadata,
|
|
192
|
+
_registered_method=True)
|
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n@meshtrade/compliance/client/v1/source_of_income_and_wealth.proto\x12\x1emeshtrade.compliance.client.v1*\x99\t\n\x17SourceOfIncomeAndWealth\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_UNSPECIFIED\x10\x00\x12*\n&SOURCE_OF_INCOME_AND_WEALTH_ALLOWANCES\x10\x01\x12\'\n#SOURCE_OF_INCOME_AND_WEALTH_BURSARY\x10\x02\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_COURT_ORDER\x10\x03\x12:\n6SOURCE_OF_INCOME_AND_WEALTH_LOAN_FINANCIAL_INSTITUTION\x10\x04\x12*\n&SOURCE_OF_INCOME_AND_WEALTH_LOAN_OTHER\x10\x05\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_MAINTENANCE\x10\x06\x12\x34\n0SOURCE_OF_INCOME_AND_WEALTH_MATURING_INVESTMENTS\x10\x07\x12\'\n#SOURCE_OF_INCOME_AND_WEALTH_PENSION\x10\x08\x12-\n)SOURCE_OF_INCOME_AND_WEALTH_RENTAL_INCOME\x10\t\x12/\n+SOURCE_OF_INCOME_AND_WEALTH_COMPANY_PROFITS\x10\n\x12,\n(SOURCE_OF_INCOME_AND_WEALTH_COMPANY_SALE\x10\x0b\x12/\n+SOURCE_OF_INCOME_AND_WEALTH_DECEASED_ESTATE\x10\x0c\x12\x32\n.SOURCE_OF_INCOME_AND_WEALTH_DIVORCE_SETTLEMENT\x10\r\x12\x30\n,SOURCE_OF_INCOME_AND_WEALTH_GIFT_OR_DONATION\x10\x0e\x12\x36\n2SOURCE_OF_INCOME_AND_WEALTH_INCOME_FROM_EMPLOYMENT\x10\x0f\x12?\n;SOURCE_OF_INCOME_AND_WEALTH_INCOME_FROM_PREVIOUS_EMPLOYMENT\x10\x10\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_INHERITANCE\x10\x11\x12<\n8SOURCE_OF_INCOME_AND_WEALTH_LOTTERY_WINNINGS_OR_GAMBLING\x10\x12\x12-\n)SOURCE_OF_INCOME_AND_WEALTH_SALE_OF_ASSET\x10\x13\x12.\n*SOURCE_OF_INCOME_AND_WEALTH_SALE_OF_SHARES\x10\x14\x12>\n:SOURCE_OF_INCOME_AND_WEALTH_SAVINGS_INVESTMENT_OR_DIVIDEND\x10\x15\x12\x33\n/SOURCE_OF_INCOME_AND_WEALTH_TRUST_DISTRIBUTIONS\x10\x16\x42
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n@meshtrade/compliance/client/v1/source_of_income_and_wealth.proto\x12\x1emeshtrade.compliance.client.v1*\x99\t\n\x17SourceOfIncomeAndWealth\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_UNSPECIFIED\x10\x00\x12*\n&SOURCE_OF_INCOME_AND_WEALTH_ALLOWANCES\x10\x01\x12\'\n#SOURCE_OF_INCOME_AND_WEALTH_BURSARY\x10\x02\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_COURT_ORDER\x10\x03\x12:\n6SOURCE_OF_INCOME_AND_WEALTH_LOAN_FINANCIAL_INSTITUTION\x10\x04\x12*\n&SOURCE_OF_INCOME_AND_WEALTH_LOAN_OTHER\x10\x05\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_MAINTENANCE\x10\x06\x12\x34\n0SOURCE_OF_INCOME_AND_WEALTH_MATURING_INVESTMENTS\x10\x07\x12\'\n#SOURCE_OF_INCOME_AND_WEALTH_PENSION\x10\x08\x12-\n)SOURCE_OF_INCOME_AND_WEALTH_RENTAL_INCOME\x10\t\x12/\n+SOURCE_OF_INCOME_AND_WEALTH_COMPANY_PROFITS\x10\n\x12,\n(SOURCE_OF_INCOME_AND_WEALTH_COMPANY_SALE\x10\x0b\x12/\n+SOURCE_OF_INCOME_AND_WEALTH_DECEASED_ESTATE\x10\x0c\x12\x32\n.SOURCE_OF_INCOME_AND_WEALTH_DIVORCE_SETTLEMENT\x10\r\x12\x30\n,SOURCE_OF_INCOME_AND_WEALTH_GIFT_OR_DONATION\x10\x0e\x12\x36\n2SOURCE_OF_INCOME_AND_WEALTH_INCOME_FROM_EMPLOYMENT\x10\x0f\x12?\n;SOURCE_OF_INCOME_AND_WEALTH_INCOME_FROM_PREVIOUS_EMPLOYMENT\x10\x10\x12+\n\'SOURCE_OF_INCOME_AND_WEALTH_INHERITANCE\x10\x11\x12<\n8SOURCE_OF_INCOME_AND_WEALTH_LOTTERY_WINNINGS_OR_GAMBLING\x10\x12\x12-\n)SOURCE_OF_INCOME_AND_WEALTH_SALE_OF_ASSET\x10\x13\x12.\n*SOURCE_OF_INCOME_AND_WEALTH_SALE_OF_SHARES\x10\x14\x12>\n:SOURCE_OF_INCOME_AND_WEALTH_SAVINGS_INVESTMENT_OR_DIVIDEND\x10\x15\x12\x33\n/SOURCE_OF_INCOME_AND_WEALTH_TRUST_DISTRIBUTIONS\x10\x16\x42\x62\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.compliance.client.v1.source_of_income_and_wealth_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1'
|
|
35
35
|
_globals['_SOURCEOFINCOMEANDWEALTH']._serialized_start=101
|
|
36
36
|
_globals['_SOURCEOFINCOMEANDWEALTH']._serialized_end=1278
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2meshtrade/compliance/client/v1/tax_residency.proto\x12\x1emeshtrade.compliance.client.v1\"C\n\x0cTaxResidency\x12!\n\x0c\x63ountry_code\x18\x01 \x01(\tR\x0b\x63ountryCode\x12\x10\n\x03tin\x18\x02 \x01(\tR\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2meshtrade/compliance/client/v1/tax_residency.proto\x12\x1emeshtrade.compliance.client.v1\"C\n\x0cTaxResidency\x12!\n\x0c\x63ountry_code\x18\x01 \x01(\tR\x0b\x63ountryCode\x12\x10\n\x03tin\x18\x02 \x01(\tR\x03tinBb\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.compliance.client.v1.tax_residency_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1'
|
|
35
35
|
_globals['_TAXRESIDENCY']._serialized_start=86
|
|
36
36
|
_globals['_TAXRESIDENCY']._serialized_end=153
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -25,14 +25,14 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from google.type import date_pb2 as google_dot_type_dot_date__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*meshtrade/compliance/client/v1/trust.proto\x12\x1emeshtrade.compliance.client.v1\x1a\x16google/type/date.proto\"\xf7\x01\n\x05Trust\x12\'\n\x0fregistered_name\x18\x01 \x01(\tR\x0eregisteredName\x12/\n\x13registration_number\x18\x02 \x01(\tR\x12registrationNumber\x12%\n\x0etax_identifier\x18\x03 \x01(\tR\rtaxIdentifier\x12.\n\x13\x63ountry_of_domicile\x18\x04 \x01(\tR\x11\x63ountryOfDomicile\x12=\n\x11\x64\x61te_of_inception\x18\x05 \x01(\x0b\x32\x11.google.type.DateR\x0f\x64\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*meshtrade/compliance/client/v1/trust.proto\x12\x1emeshtrade.compliance.client.v1\x1a\x16google/type/date.proto\"\xf7\x01\n\x05Trust\x12\'\n\x0fregistered_name\x18\x01 \x01(\tR\x0eregisteredName\x12/\n\x13registration_number\x18\x02 \x01(\tR\x12registrationNumber\x12%\n\x0etax_identifier\x18\x03 \x01(\tR\rtaxIdentifier\x12.\n\x13\x63ountry_of_domicile\x18\x04 \x01(\tR\x11\x63ountryOfDomicile\x12=\n\x11\x64\x61te_of_inception\x18\x05 \x01(\x0b\x32\x11.google.type.DateR\x0f\x64\x61teOfInceptionBb\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1b\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
32
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.compliance.client.v1.trust_pb2', _globals)
|
|
33
33
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
34
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1'
|
|
36
36
|
_globals['_TRUST']._serialized_start=103
|
|
37
37
|
_globals['_TRUST']._serialized_end=350
|
|
38
38
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n8meshtrade/compliance/client/v1/verification_status.proto\x12\x1emeshtrade.compliance.client.v1*\xc1\x01\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12#\n\x1fVERIFICATION_STATUS_NOT_STARTED\x10\x01\x12\x1f\n\x1bVERIFICATION_STATUS_PENDING\x10\x02\x12 \n\x1cVERIFICATION_STATUS_VERIFIED\x10\x03\x12\x1e\n\x1aVERIFICATION_STATUS_FAILED\x10\x04\x42
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n8meshtrade/compliance/client/v1/verification_status.proto\x12\x1emeshtrade.compliance.client.v1*\xc1\x01\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12#\n\x1fVERIFICATION_STATUS_NOT_STARTED\x10\x01\x12\x1f\n\x1bVERIFICATION_STATUS_PENDING\x10\x02\x12 \n\x1cVERIFICATION_STATUS_VERIFIED\x10\x03\x12\x1e\n\x1aVERIFICATION_STATUS_FAILED\x10\x04\x42\x62\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.compliance.client.v1.verification_status_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%co.meshtrade.api.compliance.client.v1Z9github.com/meshtrade/api/go/compliance/client/v1;clientv1'
|
|
35
35
|
_globals['_VERIFICATIONSTATUS']._serialized_start=93
|
|
36
36
|
_globals['_VERIFICATIONSTATUS']._serialized_end=286
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|