meshtrade 1.4.0__py3-none-any.whl → 1.7.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.
Potentially problematic release.
This version of meshtrade might be problematic. Click here for more details.
- meshtrade/compliance/client/v1/client_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_representative_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
- meshtrade/compliance/client/v1/fund_pb2.py +2 -2
- 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 +2 -2
- meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/service_pb2.py +2 -2
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
- meshtrade/compliance/client/v1/tax_residency_pb2.py +2 -2
- meshtrade/compliance/client/v1/trust_pb2.py +2 -2
- meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +4 -4
- meshtrade/iam/api_user/v1/api_user_pb2.py +16 -10
- meshtrade/iam/api_user/v1/service_pb2.py +36 -30
- meshtrade/iam/group/v1/group_pb2.py +9 -7
- meshtrade/iam/group/v1/service_pb2.py +11 -11
- meshtrade/iam/role/v1/role_pb2.py +3 -3
- meshtrade/iam/role/v1/role_pb2.pyi +8 -0
- meshtrade/iam/user/v1/__init__.py +17 -1
- meshtrade/iam/user/v1/service_meshpy.py +87 -0
- meshtrade/iam/user/v1/service_pb2.py +48 -11
- meshtrade/iam/user/v1/service_pb2.pyi +65 -6
- meshtrade/iam/user/v1/service_pb2_grpc.py +278 -4
- meshtrade/iam/user/v1/user_pb2.py +15 -4
- meshtrade/iam/user/v1/user_pb2.pyi +9 -2
- meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
- meshtrade/option/v1/method_type_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/account_report_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/disclaimer_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/fee_entry_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/income_entry_pb2.py +2 -2
- meshtrade/reporting/account_report/v1/service_pb2.py +26 -12
- meshtrade/reporting/account_report/v1/service_pb2_grpc.py +29 -25
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +2 -2
- meshtrade/studio/instrument/v1/__init__.py +43 -0
- meshtrade/studio/instrument/v1/instrument_pb2.py +47 -0
- meshtrade/studio/instrument/v1/instrument_pb2.pyi +23 -0
- meshtrade/studio/instrument/v1/instrument_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/type_pb2.py +37 -0
- meshtrade/studio/instrument/v1/type_pb2.pyi +58 -0
- meshtrade/studio/instrument/v1/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/limit_order_pb2.py +2 -2
- meshtrade/trading/limit_order/v1/service_pb2.py +2 -2
- meshtrade/trading/market_order/v1/market_order_pb2.py +2 -2
- meshtrade/trading/market_order/v1/service_pb2.py +2 -2
- meshtrade/type/v1/address_pb2.py +2 -2
- 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_pb2.py +2 -2
- 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_pb2.py +2 -2
- meshtrade/wallet/account/v1/__init__.py +21 -1
- meshtrade/wallet/account/v1/account_pb2.py +30 -4
- meshtrade/wallet/account/v1/account_pb2.pyi +59 -3
- meshtrade/wallet/account/v1/service_meshpy.py +70 -0
- meshtrade/wallet/account/v1/service_pb2.py +64 -21
- meshtrade/wallet/account/v1/service_pb2.pyi +82 -19
- meshtrade/wallet/account/v1/service_pb2_grpc.py +244 -8
- {meshtrade-1.4.0.dist-info → meshtrade-1.7.0.dist-info}/METADATA +1 -1
- {meshtrade-1.4.0.dist-info → meshtrade-1.7.0.dist-info}/RECORD +73 -63
- {meshtrade-1.4.0.dist-info → meshtrade-1.7.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.4.0.dist-info → meshtrade-1.7.0.dist-info}/top_level.txt +0 -0
meshtrade/type/v1/ledger_pb2.py
CHANGED
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emeshtrade/type/v1/ledger.proto\x12\x11meshtrade.type.v1*\xb0\x01\n\x06Ledger\x12\x16\n\x12LEDGER_UNSPECIFIED\x10\x00\x12\x12\n\x0eLEDGER_STELLAR\x10\x03\x12\x12\n\x0eLEDGER_BITCOIN\x10\x05\x12\x13\n\x0fLEDGER_LITECOIN\x10\x07\x12\x13\n\x0fLEDGER_ETHEREUM\x10\t\x12\x0e\n\nLEDGER_XRP\x10\x0b\x12\x1b\n\x17LEDGER_SA_STOCK_BROKERS\x10\x0f\x12\x0f\n\x0bLEDGER_NULL\x10\x10\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emeshtrade/type/v1/ledger.proto\x12\x11meshtrade.type.v1*\xb0\x01\n\x06Ledger\x12\x16\n\x12LEDGER_UNSPECIFIED\x10\x00\x12\x12\n\x0eLEDGER_STELLAR\x10\x03\x12\x12\n\x0eLEDGER_BITCOIN\x10\x05\x12\x13\n\x0fLEDGER_LITECOIN\x10\x07\x12\x13\n\x0fLEDGER_ETHEREUM\x10\t\x12\x0e\n\nLEDGER_XRP\x10\x0b\x12\x1b\n\x17LEDGER_SA_STOCK_BROKERS\x10\x0f\x12\x0f\n\x0bLEDGER_NULL\x10\x10\x42G\n\x18\x63o.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.ledger_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1'
|
|
35
35
|
_globals['_LEDGER']._serialized_start=54
|
|
36
36
|
_globals['_LEDGER']._serialized_end=230
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
meshtrade/type/v1/sorting_pb2.py
CHANGED
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmeshtrade/type/v1/sorting.proto\x12\x11meshtrade.type.v1*\\\n\x0cSortingOrder\x12\x1d\n\x19SORTING_ORDER_UNSPECIFIED\x10\x00\x12\x15\n\x11SORTING_ORDER_ASC\x10\x01\x12\x16\n\x12SORTING_ORDER_DESC\x10\x02\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmeshtrade/type/v1/sorting.proto\x12\x11meshtrade.type.v1*\\\n\x0cSortingOrder\x12\x1d\n\x19SORTING_ORDER_UNSPECIFIED\x10\x00\x12\x15\n\x11SORTING_ORDER_ASC\x10\x01\x12\x16\n\x12SORTING_ORDER_DESC\x10\x02\x42G\n\x18\x63o.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.sorting_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1'
|
|
35
35
|
_globals['_SORTINGORDER']._serialized_start=54
|
|
36
36
|
_globals['_SORTINGORDER']._serialized_end=146
|
|
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'\n#meshtrade/type/v1/time_of_day.proto\x12\x11meshtrade.type.v1\"k\n\tTimeOfDay\x12\x14\n\x05hours\x18\x01 \x01(\x05R\x05hours\x12\x18\n\x07minutes\x18\x02 \x01(\x05R\x07minutes\x12\x18\n\x07seconds\x18\x03 \x01(\x05R\x07seconds\x12\x14\n\x05nanos\x18\x04 \x01(\x05R\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#meshtrade/type/v1/time_of_day.proto\x12\x11meshtrade.type.v1\"k\n\tTimeOfDay\x12\x14\n\x05hours\x18\x01 \x01(\x05R\x05hours\x12\x18\n\x07minutes\x18\x02 \x01(\x05R\x07minutes\x12\x18\n\x07seconds\x18\x03 \x01(\x05R\x07seconds\x12\x14\n\x05nanos\x18\x04 \x01(\x05R\x05nanosBG\n\x18\x63o.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.time_of_day_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1'
|
|
35
35
|
_globals['_TIMEOFDAY']._serialized_start=58
|
|
36
36
|
_globals['_TIMEOFDAY']._serialized_end=165
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
meshtrade/type/v1/token_pb2.py
CHANGED
|
@@ -25,14 +25,14 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from meshtrade.type.v1 import ledger_pb2 as meshtrade_dot_type_dot_v1_dot_ledger__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmeshtrade/type/v1/token.proto\x12\x11meshtrade.type.v1\x1a\x1emeshtrade/type/v1/ledger.proto\"f\n\x05Token\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x16\n\x06issuer\x18\x02 \x01(\tR\x06issuer\x12\x31\n\x06ledger\x18\x03 \x01(\x0e\x32\x19.meshtrade.type.v1.LedgerR\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmeshtrade/type/v1/token.proto\x12\x11meshtrade.type.v1\x1a\x1emeshtrade/type/v1/ledger.proto\"f\n\x05Token\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x16\n\x06issuer\x18\x02 \x01(\tR\x06issuer\x12\x31\n\x06ledger\x18\x03 \x01(\x0e\x32\x19.meshtrade.type.v1.LedgerR\x06ledgerBG\n\x18\x63o.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1b\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
32
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.token_pb2', _globals)
|
|
33
33
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
34
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z+github.com/meshtrade/api/go/type/v1;type_v1'
|
|
36
36
|
_globals['_TOKEN']._serialized_start=84
|
|
37
37
|
_globals['_TOKEN']._serialized_end=186
|
|
38
38
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -13,14 +13,25 @@
|
|
|
13
13
|
# ===================================================================
|
|
14
14
|
|
|
15
15
|
# Generated protobuf imports
|
|
16
|
-
from .account_pb2 import
|
|
16
|
+
from .account_pb2 import (
|
|
17
|
+
Account,
|
|
18
|
+
AccountState,
|
|
19
|
+
Balance,
|
|
20
|
+
InstrumentMetaData,
|
|
21
|
+
)
|
|
17
22
|
from .service_pb2 import (
|
|
23
|
+
CloseAccountRequest,
|
|
24
|
+
CloseAccountResponse,
|
|
18
25
|
CreateAccountRequest,
|
|
26
|
+
GetAccountByNumberRequest,
|
|
19
27
|
GetAccountRequest,
|
|
20
28
|
ListAccountsRequest,
|
|
21
29
|
ListAccountsResponse,
|
|
30
|
+
OpenAccountRequest,
|
|
31
|
+
OpenAccountResponse,
|
|
22
32
|
SearchAccountsRequest,
|
|
23
33
|
SearchAccountsResponse,
|
|
34
|
+
UpdateAccountRequest,
|
|
24
35
|
)
|
|
25
36
|
|
|
26
37
|
# Generated service imports
|
|
@@ -55,11 +66,20 @@ __all__ = [
|
|
|
55
66
|
"AccountService",
|
|
56
67
|
"AccountServiceGRPCClient",
|
|
57
68
|
"AccountServiceGRPCClientInterface",
|
|
69
|
+
"AccountState",
|
|
70
|
+
"Balance",
|
|
58
71
|
"ClientOptions",
|
|
72
|
+
"CloseAccountRequest",
|
|
73
|
+
"CloseAccountResponse",
|
|
59
74
|
"CreateAccountRequest",
|
|
75
|
+
"GetAccountByNumberRequest",
|
|
60
76
|
"GetAccountRequest",
|
|
77
|
+
"InstrumentMetaData",
|
|
61
78
|
"ListAccountsRequest",
|
|
62
79
|
"ListAccountsResponse",
|
|
80
|
+
"OpenAccountRequest",
|
|
81
|
+
"OpenAccountResponse",
|
|
63
82
|
"SearchAccountsRequest",
|
|
64
83
|
"SearchAccountsResponse",
|
|
84
|
+
"UpdateAccountRequest",
|
|
65
85
|
]
|
|
@@ -22,16 +22,42 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from meshtrade.type.v1 import ledger_pb2 as meshtrade_dot_type_dot_v1_dot_ledger__pb2
|
|
27
|
+
from meshtrade.type.v1 import amount_pb2 as meshtrade_dot_type_dot_v1_dot_amount__pb2
|
|
28
|
+
from meshtrade.studio.instrument.v1 import type_pb2 as meshtrade_dot_studio_dot_instrument_dot_v1_dot_type__pb2
|
|
29
|
+
from meshtrade.studio.instrument.v1 import unit_pb2 as meshtrade_dot_studio_dot_instrument_dot_v1_dot_unit__pb2
|
|
30
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
25
31
|
|
|
26
32
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)meshtrade/wallet/account/v1/account.proto\x12\x1bmeshtrade.wallet.account.v1\"\
|
|
33
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)meshtrade/wallet/account/v1/account.proto\x12\x1bmeshtrade.wallet.account.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emeshtrade/type/v1/ledger.proto\x1a\x1emeshtrade/type/v1/amount.proto\x1a)meshtrade/studio/instrument/v1/type.proto\x1a)meshtrade/studio/instrument/v1/unit.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x95\x07\n\x07\x41\x63\x63ount\x12\xc0\x01\n\x04name\x18\x01 \x01(\tB\xab\x01\xbaH\xa7\x01\xba\x01\xa3\x01\n\x14name.format.optional\x12\x35name must be empty or in the format accounts/{ULIDv2}\x1aTsize(this) == 0 || this.matches(\'^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')R\x04name\x12R\n\x05owner\x18\x02 \x01(\tB<\xbaH9r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01!\xc8\x01\x01R\x05owner\x12V\n\x06owners\x18\x03 \x03(\tB>\xbaH;\x92\x01\x38\"6r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01!R\x06owners\x12\xab\x01\n\x06number\x18\x05 \x01(\tB\x92\x01\xbaH\x8e\x01\xba\x01\x8a\x01\n\x16number.format.optional\x12@number must be empty or a 7-digit account number starting with 1\x1a.size(this) == 0 || this.matches(\'^1[0-9]{6}$\')R\x06number\x12%\n\tledger_id\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x08ledgerId\x12@\n\x06ledger\x18\x07 \x01(\x0e\x32\x19.meshtrade.type.v1.LedgerB\r\xbaH\n\x82\x01\x04\x10\x01 \x00\xc8\x01\x01R\x06ledger\x12\x30\n\x0c\x64isplay_name\x18\x08 \x01(\tB\r\xbaH\nr\x05\x10\x01\x18\xff\x01\xc8\x01\x01R\x0b\x64isplayName\x12O\n\x16live_data_retrieved_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x13liveDataRetrievedAt\x12?\n\x05state\x18\n \x01(\x0e\x32).meshtrade.wallet.account.v1.AccountStateR\x05state\x12@\n\x08\x62\x61lances\x18\x0b \x03(\x0b\x32$.meshtrade.wallet.account.v1.BalanceR\x08\x62\x61lances\"\xa6\x01\n\x12InstrumentMetaData\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x42\n\x04type\x18\x02 \x01(\x0e\x32..meshtrade.studio.instrument.v1.InstrumentTypeR\x04type\x12\x38\n\x04unit\x18\x03 \x01(\x0e\x32$.meshtrade.studio.instrument.v1.UnitR\x04unit\"\x9e\x01\n\x07\x42\x61lance\x12\x31\n\x06\x61mount\x18\x01 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x06\x61mount\x12`\n\x13instrument_metadata\x18\x02 \x01(\x0b\x32/.meshtrade.wallet.account.v1.InstrumentMetaDataR\x12instrumentMetadata*_\n\x0c\x41\x63\x63ountState\x12\x1d\n\x19\x41\x43\x43OUNT_STATE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x41\x43\x43OUNT_STATE_CLOSED\x10\x01\x12\x16\n\x12\x41\x43\x43OUNT_STATE_OPEN\x10\x02\x42^\n\"co.meshtrade.api.wallet.account.v1Z8github.com/meshtrade/api/go/wallet/account/v1;account_v1b\x06proto3')
|
|
28
34
|
|
|
29
35
|
_globals = globals()
|
|
30
36
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
37
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.wallet.account.v1.account_pb2', _globals)
|
|
32
38
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
39
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\"co.meshtrade.api.wallet.account.
|
|
35
|
-
_globals['_ACCOUNT'].
|
|
36
|
-
_globals['_ACCOUNT'].
|
|
40
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"co.meshtrade.api.wallet.account.v1Z8github.com/meshtrade/api/go/wallet/account/v1;account_v1'
|
|
41
|
+
_globals['_ACCOUNT'].fields_by_name['name']._loaded_options = None
|
|
42
|
+
_globals['_ACCOUNT'].fields_by_name['name']._serialized_options = b'\272H\247\001\272\001\243\001\n\024name.format.optional\0225name must be empty or in the format accounts/{ULIDv2}\032Tsize(this) == 0 || this.matches(\'^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')'
|
|
43
|
+
_globals['_ACCOUNT'].fields_by_name['owner']._loaded_options = None
|
|
44
|
+
_globals['_ACCOUNT'].fields_by_name['owner']._serialized_options = b'\272H9r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001!\310\001\001'
|
|
45
|
+
_globals['_ACCOUNT'].fields_by_name['owners']._loaded_options = None
|
|
46
|
+
_globals['_ACCOUNT'].fields_by_name['owners']._serialized_options = b'\272H;\222\0018\"6r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001!'
|
|
47
|
+
_globals['_ACCOUNT'].fields_by_name['number']._loaded_options = None
|
|
48
|
+
_globals['_ACCOUNT'].fields_by_name['number']._serialized_options = b'\272H\216\001\272\001\212\001\n\026number.format.optional\022@number must be empty or a 7-digit account number starting with 1\032.size(this) == 0 || this.matches(\'^1[0-9]{6}$\')'
|
|
49
|
+
_globals['_ACCOUNT'].fields_by_name['ledger_id']._loaded_options = None
|
|
50
|
+
_globals['_ACCOUNT'].fields_by_name['ledger_id']._serialized_options = b'\272H\005r\003\030\377\001'
|
|
51
|
+
_globals['_ACCOUNT'].fields_by_name['ledger']._loaded_options = None
|
|
52
|
+
_globals['_ACCOUNT'].fields_by_name['ledger']._serialized_options = b'\272H\n\202\001\004\020\001 \000\310\001\001'
|
|
53
|
+
_globals['_ACCOUNT'].fields_by_name['display_name']._loaded_options = None
|
|
54
|
+
_globals['_ACCOUNT'].fields_by_name['display_name']._serialized_options = b'\272H\nr\005\020\001\030\377\001\310\001\001'
|
|
55
|
+
_globals['_ACCOUNTSTATE']._serialized_start=1536
|
|
56
|
+
_globals['_ACCOUNTSTATE']._serialized_end=1631
|
|
57
|
+
_globals['_ACCOUNT']._serialized_start=287
|
|
58
|
+
_globals['_ACCOUNT']._serialized_end=1204
|
|
59
|
+
_globals['_INSTRUMENTMETADATA']._serialized_start=1207
|
|
60
|
+
_globals['_INSTRUMENTMETADATA']._serialized_end=1373
|
|
61
|
+
_globals['_BALANCE']._serialized_start=1376
|
|
62
|
+
_globals['_BALANCE']._serialized_end=1534
|
|
37
63
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,11 +1,67 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
4
|
+
from meshtrade.type.v1 import ledger_pb2 as _ledger_pb2
|
|
5
|
+
from meshtrade.type.v1 import amount_pb2 as _amount_pb2
|
|
6
|
+
from meshtrade.studio.instrument.v1 import type_pb2 as _type_pb2
|
|
7
|
+
from meshtrade.studio.instrument.v1 import unit_pb2 as _unit_pb2
|
|
8
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
9
|
+
from google.protobuf.internal import containers as _containers
|
|
10
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
1
11
|
from google.protobuf import descriptor as _descriptor
|
|
2
12
|
from google.protobuf import message as _message
|
|
3
|
-
from
|
|
13
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
14
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
4
15
|
|
|
5
16
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
17
|
|
|
18
|
+
class AccountState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
19
|
+
__slots__ = ()
|
|
20
|
+
ACCOUNT_STATE_UNSPECIFIED: _ClassVar[AccountState]
|
|
21
|
+
ACCOUNT_STATE_CLOSED: _ClassVar[AccountState]
|
|
22
|
+
ACCOUNT_STATE_OPEN: _ClassVar[AccountState]
|
|
23
|
+
ACCOUNT_STATE_UNSPECIFIED: AccountState
|
|
24
|
+
ACCOUNT_STATE_CLOSED: AccountState
|
|
25
|
+
ACCOUNT_STATE_OPEN: AccountState
|
|
26
|
+
|
|
7
27
|
class Account(_message.Message):
|
|
8
|
-
__slots__ = ("name",)
|
|
28
|
+
__slots__ = ("name", "owner", "owners", "number", "ledger_id", "ledger", "display_name", "live_data_retrieved_at", "state", "balances")
|
|
29
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
OWNER_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
OWNERS_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
LEDGER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
LEDGER_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
LIVE_DATA_RETRIEVED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
BALANCES_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
name: str
|
|
40
|
+
owner: str
|
|
41
|
+
owners: _containers.RepeatedScalarFieldContainer[str]
|
|
42
|
+
number: str
|
|
43
|
+
ledger_id: str
|
|
44
|
+
ledger: _ledger_pb2.Ledger
|
|
45
|
+
display_name: str
|
|
46
|
+
live_data_retrieved_at: _timestamp_pb2.Timestamp
|
|
47
|
+
state: AccountState
|
|
48
|
+
balances: _containers.RepeatedCompositeFieldContainer[Balance]
|
|
49
|
+
def __init__(self, name: _Optional[str] = ..., owner: _Optional[str] = ..., owners: _Optional[_Iterable[str]] = ..., number: _Optional[str] = ..., ledger_id: _Optional[str] = ..., ledger: _Optional[_Union[_ledger_pb2.Ledger, str]] = ..., display_name: _Optional[str] = ..., live_data_retrieved_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., state: _Optional[_Union[AccountState, str]] = ..., balances: _Optional[_Iterable[_Union[Balance, _Mapping]]] = ...) -> None: ...
|
|
50
|
+
|
|
51
|
+
class InstrumentMetaData(_message.Message):
|
|
52
|
+
__slots__ = ("name", "type", "unit")
|
|
9
53
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
UNIT_FIELD_NUMBER: _ClassVar[int]
|
|
10
56
|
name: str
|
|
11
|
-
|
|
57
|
+
type: _type_pb2.InstrumentType
|
|
58
|
+
unit: _unit_pb2.Unit
|
|
59
|
+
def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[_type_pb2.InstrumentType, str]] = ..., unit: _Optional[_Union[_unit_pb2.Unit, str]] = ...) -> None: ...
|
|
60
|
+
|
|
61
|
+
class Balance(_message.Message):
|
|
62
|
+
__slots__ = ("amount", "instrument_metadata")
|
|
63
|
+
AMOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
INSTRUMENT_METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
amount: _amount_pb2.Amount
|
|
66
|
+
instrument_metadata: InstrumentMetaData
|
|
67
|
+
def __init__(self, amount: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., instrument_metadata: _Optional[_Union[InstrumentMetaData, _Mapping]] = ...) -> None: ...
|
|
@@ -18,12 +18,18 @@ from meshtrade.iam.api_user.v1.api_credentials import find_credentials
|
|
|
18
18
|
from .account_pb2 import Account
|
|
19
19
|
from .service_options_meshpy import ServiceOptions
|
|
20
20
|
from .service_pb2 import (
|
|
21
|
+
CloseAccountRequest,
|
|
22
|
+
CloseAccountResponse,
|
|
21
23
|
CreateAccountRequest,
|
|
24
|
+
GetAccountByNumberRequest,
|
|
22
25
|
GetAccountRequest,
|
|
23
26
|
ListAccountsRequest,
|
|
24
27
|
ListAccountsResponse,
|
|
28
|
+
OpenAccountRequest,
|
|
29
|
+
OpenAccountResponse,
|
|
25
30
|
SearchAccountsRequest,
|
|
26
31
|
SearchAccountsResponse,
|
|
32
|
+
UpdateAccountRequest,
|
|
27
33
|
)
|
|
28
34
|
from .service_pb2_grpc import AccountServiceStub
|
|
29
35
|
|
|
@@ -150,6 +156,54 @@ class AccountService(BaseGRPCClient):
|
|
|
150
156
|
"""
|
|
151
157
|
return self._execute_method("CreateAccount", request, timeout)
|
|
152
158
|
|
|
159
|
+
def update_account(self, request: UpdateAccountRequest, timeout: Optional[timedelta] = None) -> Account:
|
|
160
|
+
"""UpdateAccount method.
|
|
161
|
+
|
|
162
|
+
Args:
|
|
163
|
+
request: The UpdateAccount request message
|
|
164
|
+
timeout: Optional timeout override for this call
|
|
165
|
+
|
|
166
|
+
Returns:
|
|
167
|
+
The UpdateAccount response message
|
|
168
|
+
|
|
169
|
+
Raises:
|
|
170
|
+
grpc.RpcError: If the gRPC call fails
|
|
171
|
+
ValueError: If authentication credentials are missing
|
|
172
|
+
"""
|
|
173
|
+
return self._execute_method("UpdateAccount", request, timeout)
|
|
174
|
+
|
|
175
|
+
def open_account(self, request: OpenAccountRequest, timeout: Optional[timedelta] = None) -> OpenAccountResponse:
|
|
176
|
+
"""OpenAccount method.
|
|
177
|
+
|
|
178
|
+
Args:
|
|
179
|
+
request: The OpenAccount request message
|
|
180
|
+
timeout: Optional timeout override for this call
|
|
181
|
+
|
|
182
|
+
Returns:
|
|
183
|
+
The OpenAccount response message
|
|
184
|
+
|
|
185
|
+
Raises:
|
|
186
|
+
grpc.RpcError: If the gRPC call fails
|
|
187
|
+
ValueError: If authentication credentials are missing
|
|
188
|
+
"""
|
|
189
|
+
return self._execute_method("OpenAccount", request, timeout)
|
|
190
|
+
|
|
191
|
+
def close_account(self, request: CloseAccountRequest, timeout: Optional[timedelta] = None) -> CloseAccountResponse:
|
|
192
|
+
"""CloseAccount method.
|
|
193
|
+
|
|
194
|
+
Args:
|
|
195
|
+
request: The CloseAccount request message
|
|
196
|
+
timeout: Optional timeout override for this call
|
|
197
|
+
|
|
198
|
+
Returns:
|
|
199
|
+
The CloseAccount response message
|
|
200
|
+
|
|
201
|
+
Raises:
|
|
202
|
+
grpc.RpcError: If the gRPC call fails
|
|
203
|
+
ValueError: If authentication credentials are missing
|
|
204
|
+
"""
|
|
205
|
+
return self._execute_method("CloseAccount", request, timeout)
|
|
206
|
+
|
|
153
207
|
def get_account(self, request: GetAccountRequest, timeout: Optional[timedelta] = None) -> Account:
|
|
154
208
|
"""GetAccount method.
|
|
155
209
|
|
|
@@ -166,6 +220,22 @@ class AccountService(BaseGRPCClient):
|
|
|
166
220
|
"""
|
|
167
221
|
return self._execute_method("GetAccount", request, timeout)
|
|
168
222
|
|
|
223
|
+
def get_account_by_number(self, request: GetAccountByNumberRequest, timeout: Optional[timedelta] = None) -> Account:
|
|
224
|
+
"""GetAccountByNumber method.
|
|
225
|
+
|
|
226
|
+
Args:
|
|
227
|
+
request: The GetAccountByNumber request message
|
|
228
|
+
timeout: Optional timeout override for this call
|
|
229
|
+
|
|
230
|
+
Returns:
|
|
231
|
+
The GetAccountByNumber response message
|
|
232
|
+
|
|
233
|
+
Raises:
|
|
234
|
+
grpc.RpcError: If the gRPC call fails
|
|
235
|
+
ValueError: If authentication credentials are missing
|
|
236
|
+
"""
|
|
237
|
+
return self._execute_method("GetAccountByNumber", request, timeout)
|
|
238
|
+
|
|
169
239
|
def list_accounts(self, request: ListAccountsRequest, timeout: Optional[timedelta] = None) -> ListAccountsResponse:
|
|
170
240
|
"""ListAccounts method.
|
|
171
241
|
|
|
@@ -22,40 +22,83 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
25
26
|
from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
|
|
26
27
|
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
27
|
-
from meshtrade.type.v1 import
|
|
28
|
+
from meshtrade.type.v1 import sorting_pb2 as meshtrade_dot_type_dot_v1_dot_sorting__pb2
|
|
28
29
|
from meshtrade.wallet.account.v1 import account_pb2 as meshtrade_dot_wallet_dot_account_dot_v1_dot_account__pb2
|
|
29
30
|
|
|
30
31
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)meshtrade/wallet/account/v1/service.proto\x12\x1bmeshtrade.wallet.account.v1\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\x1a\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)meshtrade/wallet/account/v1/service.proto\x12\x1bmeshtrade.wallet.account.v1\x1a\x1b\x62uf/validate/validate.proto\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\x1a\x1fmeshtrade/type/v1/sorting.proto\x1a)meshtrade/wallet/account/v1/account.proto\"^\n\x14\x43reateAccountRequest\x12\x46\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32$.meshtrade.wallet.account.v1.AccountB\x06\xbaH\x03\xc8\x01\x01R\x07\x61\x63\x63ount\"^\n\x14UpdateAccountRequest\x12\x46\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32$.meshtrade.wallet.account.v1.AccountB\x06\xbaH\x03\xc8\x01\x01R\x07\x61\x63\x63ount\"e\n\x12OpenAccountRequest\x12O\n\x04name\x18\x01 \x01(\tB;\xbaH8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01#R\x04name\"\x84\x01\n\x13OpenAccountResponse\x12>\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32$.meshtrade.wallet.account.v1.AccountR\x07\x61\x63\x63ount\x12-\n\x12ledger_transaction\x18\x03 \x01(\tR\x11ledgerTransaction\"f\n\x13\x43loseAccountRequest\x12O\n\x04name\x18\x01 \x01(\tB;\xbaH8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01#R\x04name\"\x85\x01\n\x14\x43loseAccountResponse\x12>\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32$.meshtrade.wallet.account.v1.AccountR\x07\x61\x63\x63ount\x12-\n\x12ledger_transaction\x18\x03 \x01(\tR\x11ledgerTransaction\"\x96\x01\n\x11GetAccountRequest\x12O\n\x04name\x18\x01 \x01(\tB;\xbaH8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01#R\x04name\x12\x30\n\x14populate_ledger_data\x18\x02 \x01(\x08R\x12populateLedgerData\"\x88\x01\n\x19GetAccountByNumberRequest\x12\x39\n\x0e\x61\x63\x63ount_number\x18\x01 \x01(\tB\x12\xbaH\x0fr\r2\x0b^1[0-9]{6}$R\raccountNumber\x12\x30\n\x14populate_ledger_data\x18\x02 \x01(\x08R\x12populateLedgerData\"\xd5\x02\n\x13ListAccountsRequest\x12R\n\x07sorting\x18\x01 \x01(\x0b\x32\x38.meshtrade.wallet.account.v1.ListAccountsRequest.SortingR\x07sorting\x12\x30\n\x14populate_ledger_data\x18\x02 \x01(\x08R\x12populateLedgerData\x1a\xb7\x01\n\x07Sorting\x12u\n\x05\x66ield\x18\x01 \x01(\tB_\xbaH\\r\nR\x00R\x06number\xba\x01M\n\x0b\x66ield.valid\x12&field must be one of: number, or empty\x1a\x16this in [\'\', \'number\']R\x05\x66ield\x12\x35\n\x05order\x18\x02 \x01(\x0e\x32\x1f.meshtrade.type.v1.SortingOrderR\x05order\"X\n\x14ListAccountsResponse\x12@\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32$.meshtrade.wallet.account.v1.AccountR\x08\x61\x63\x63ounts\"\xef\x03\n\x15SearchAccountsRequest\x12T\n\x07sorting\x18\x01 \x01(\x0b\x32:.meshtrade.wallet.account.v1.SearchAccountsRequest.SortingR\x07sorting\x12\x93\x01\n\x0c\x64isplay_name\x18\x02 \x01(\tBp\xbaHmr\x03\x18\xff\x01\xba\x01\x65\n\x17\x64isplay_name.max_length\x12\x37\x64isplay_name search term must not exceed 255 characters\x1a\x11size(this) <= 255R\x0b\x64isplayName\x12\x30\n\x14populate_ledger_data\x18\x03 \x01(\x08R\x12populateLedgerData\x1a\xb7\x01\n\x07Sorting\x12u\n\x05\x66ield\x18\x01 \x01(\tB_\xbaH\\r\nR\x00R\x06number\xba\x01M\n\x0b\x66ield.valid\x12&field must be one of: number, or empty\x1a\x16this in [\'\', \'number\']R\x05\x66ield\x12\x35\n\x05order\x18\x02 \x01(\x0e\x32\x1f.meshtrade.type.v1.SortingOrderR\x05order\"Z\n\x16SearchAccountsResponse\x12@\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32$.meshtrade.wallet.account.v1.AccountR\x08\x61\x63\x63ounts2\xc0\x08\n\x0e\x41\x63\x63ountService\x12z\n\rCreateAccount\x12\x31.meshtrade.wallet.account.v1.CreateAccountRequest\x1a$.meshtrade.wallet.account.v1.Account\"\x10\xa0\xb5\x18\x02\xaa\xb5\x18\x08\n\x06\xc0\x84=\xc2\x84=\x12z\n\rUpdateAccount\x12\x31.meshtrade.wallet.account.v1.UpdateAccountRequest\x1a$.meshtrade.wallet.account.v1.Account\"\x10\xa0\xb5\x18\x02\xaa\xb5\x18\x08\n\x06\xc0\x84=\xc2\x84=\x12\x82\x01\n\x0bOpenAccount\x12/.meshtrade.wallet.account.v1.OpenAccountRequest\x1a\x30.meshtrade.wallet.account.v1.OpenAccountResponse\"\x10\xa0\xb5\x18\x02\xaa\xb5\x18\x08\n\x06\xc0\x84=\xc2\x84=\x12\x85\x01\n\x0c\x43loseAccount\x12\x30.meshtrade.wallet.account.v1.CloseAccountRequest\x1a\x31.meshtrade.wallet.account.v1.CloseAccountResponse\"\x10\xa0\xb5\x18\x02\xaa\xb5\x18\x08\n\x06\xc0\x84=\xc2\x84=\x12z\n\nGetAccount\x12..meshtrade.wallet.account.v1.GetAccountRequest\x1a$.meshtrade.wallet.account.v1.Account\"\x16\xa0\xb5\x18\x01\xaa\xb5\x18\x0e\n\x0c\xc0\x84=\xc1\x84=\xc2\x84=\xc3\x84=\x12\x8a\x01\n\x12GetAccountByNumber\x12\x36.meshtrade.wallet.account.v1.GetAccountByNumberRequest\x1a$.meshtrade.wallet.account.v1.Account\"\x16\xa0\xb5\x18\x01\xaa\xb5\x18\x0e\n\x0c\xc0\x84=\xc1\x84=\xc2\x84=\xc3\x84=\x12\x8b\x01\n\x0cListAccounts\x12\x30.meshtrade.wallet.account.v1.ListAccountsRequest\x1a\x31.meshtrade.wallet.account.v1.ListAccountsResponse\"\x16\xa0\xb5\x18\x01\xaa\xb5\x18\x0e\n\x0c\xc0\x84=\xc1\x84=\xc2\x84=\xc3\x84=\x12\x91\x01\n\x0eSearchAccounts\x12\x32.meshtrade.wallet.account.v1.SearchAccountsRequest\x1a\x33.meshtrade.wallet.account.v1.SearchAccountsResponse\"\x16\xa0\xb5\x18\x01\xaa\xb5\x18\x0e\n\x0c\xc0\x84=\xc1\x84=\xc2\x84=\xc3\x84=B^\n\"co.meshtrade.api.wallet.account.v1Z8github.com/meshtrade/api/go/wallet/account/v1;account_v1b\x06proto3')
|
|
32
33
|
|
|
33
34
|
_globals = globals()
|
|
34
35
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
36
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.wallet.account.v1.service_pb2', _globals)
|
|
36
37
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
38
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\"co.meshtrade.api.wallet.account.
|
|
39
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"co.meshtrade.api.wallet.account.v1Z8github.com/meshtrade/api/go/wallet/account/v1;account_v1'
|
|
40
|
+
_globals['_CREATEACCOUNTREQUEST'].fields_by_name['account']._loaded_options = None
|
|
41
|
+
_globals['_CREATEACCOUNTREQUEST'].fields_by_name['account']._serialized_options = b'\272H\003\310\001\001'
|
|
42
|
+
_globals['_UPDATEACCOUNTREQUEST'].fields_by_name['account']._loaded_options = None
|
|
43
|
+
_globals['_UPDATEACCOUNTREQUEST'].fields_by_name['account']._serialized_options = b'\272H\003\310\001\001'
|
|
44
|
+
_globals['_OPENACCOUNTREQUEST'].fields_by_name['name']._loaded_options = None
|
|
45
|
+
_globals['_OPENACCOUNTREQUEST'].fields_by_name['name']._serialized_options = b'\272H8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001#'
|
|
46
|
+
_globals['_CLOSEACCOUNTREQUEST'].fields_by_name['name']._loaded_options = None
|
|
47
|
+
_globals['_CLOSEACCOUNTREQUEST'].fields_by_name['name']._serialized_options = b'\272H8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001#'
|
|
48
|
+
_globals['_GETACCOUNTREQUEST'].fields_by_name['name']._loaded_options = None
|
|
49
|
+
_globals['_GETACCOUNTREQUEST'].fields_by_name['name']._serialized_options = b'\272H8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001#'
|
|
50
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST'].fields_by_name['account_number']._loaded_options = None
|
|
51
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST'].fields_by_name['account_number']._serialized_options = b'\272H\017r\r2\013^1[0-9]{6}$'
|
|
52
|
+
_globals['_LISTACCOUNTSREQUEST_SORTING'].fields_by_name['field']._loaded_options = None
|
|
53
|
+
_globals['_LISTACCOUNTSREQUEST_SORTING'].fields_by_name['field']._serialized_options = b'\272H\\r\nR\000R\006number\272\001M\n\013field.valid\022&field must be one of: number, or empty\032\026this in [\'\', \'number\']'
|
|
54
|
+
_globals['_SEARCHACCOUNTSREQUEST_SORTING'].fields_by_name['field']._loaded_options = None
|
|
55
|
+
_globals['_SEARCHACCOUNTSREQUEST_SORTING'].fields_by_name['field']._serialized_options = b'\272H\\r\nR\000R\006number\272\001M\n\013field.valid\022&field must be one of: number, or empty\032\026this in [\'\', \'number\']'
|
|
56
|
+
_globals['_SEARCHACCOUNTSREQUEST'].fields_by_name['display_name']._loaded_options = None
|
|
57
|
+
_globals['_SEARCHACCOUNTSREQUEST'].fields_by_name['display_name']._serialized_options = b'\272Hmr\003\030\377\001\272\001e\n\027display_name.max_length\0227display_name search term must not exceed 255 characters\032\021size(this) <= 255'
|
|
39
58
|
_globals['_ACCOUNTSERVICE'].methods_by_name['CreateAccount']._loaded_options = None
|
|
40
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['CreateAccount']._serialized_options = b'\240\265\030\002\252\265\030\
|
|
59
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['CreateAccount']._serialized_options = b'\240\265\030\002\252\265\030\010\n\006\300\204=\302\204='
|
|
60
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateAccount']._loaded_options = None
|
|
61
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateAccount']._serialized_options = b'\240\265\030\002\252\265\030\010\n\006\300\204=\302\204='
|
|
62
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['OpenAccount']._loaded_options = None
|
|
63
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['OpenAccount']._serialized_options = b'\240\265\030\002\252\265\030\010\n\006\300\204=\302\204='
|
|
64
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['CloseAccount']._loaded_options = None
|
|
65
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['CloseAccount']._serialized_options = b'\240\265\030\002\252\265\030\010\n\006\300\204=\302\204='
|
|
41
66
|
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._loaded_options = None
|
|
42
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._serialized_options = b'\240\265\030\001\252\265\030\
|
|
67
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._serialized_options = b'\240\265\030\001\252\265\030\016\n\014\300\204=\301\204=\302\204=\303\204='
|
|
68
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccountByNumber']._loaded_options = None
|
|
69
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccountByNumber']._serialized_options = b'\240\265\030\001\252\265\030\016\n\014\300\204=\301\204=\302\204=\303\204='
|
|
43
70
|
_globals['_ACCOUNTSERVICE'].methods_by_name['ListAccounts']._loaded_options = None
|
|
44
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['ListAccounts']._serialized_options = b'\240\265\030\001\252\265\030\
|
|
71
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['ListAccounts']._serialized_options = b'\240\265\030\001\252\265\030\016\n\014\300\204=\301\204=\302\204=\303\204='
|
|
45
72
|
_globals['_ACCOUNTSERVICE'].methods_by_name['SearchAccounts']._loaded_options = None
|
|
46
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['SearchAccounts']._serialized_options = b'\240\265\030\001\252\265\030\
|
|
47
|
-
_globals['_CREATEACCOUNTREQUEST']._serialized_start=
|
|
48
|
-
_globals['_CREATEACCOUNTREQUEST']._serialized_end=
|
|
49
|
-
_globals['
|
|
50
|
-
_globals['
|
|
51
|
-
_globals['
|
|
52
|
-
_globals['
|
|
53
|
-
_globals['
|
|
54
|
-
_globals['
|
|
55
|
-
_globals['
|
|
56
|
-
_globals['
|
|
57
|
-
_globals['
|
|
58
|
-
_globals['
|
|
59
|
-
_globals['
|
|
60
|
-
_globals['
|
|
73
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['SearchAccounts']._serialized_options = b'\240\265\030\001\252\265\030\016\n\014\300\204=\301\204=\302\204=\303\204='
|
|
74
|
+
_globals['_CREATEACCOUNTREQUEST']._serialized_start=252
|
|
75
|
+
_globals['_CREATEACCOUNTREQUEST']._serialized_end=346
|
|
76
|
+
_globals['_UPDATEACCOUNTREQUEST']._serialized_start=348
|
|
77
|
+
_globals['_UPDATEACCOUNTREQUEST']._serialized_end=442
|
|
78
|
+
_globals['_OPENACCOUNTREQUEST']._serialized_start=444
|
|
79
|
+
_globals['_OPENACCOUNTREQUEST']._serialized_end=545
|
|
80
|
+
_globals['_OPENACCOUNTRESPONSE']._serialized_start=548
|
|
81
|
+
_globals['_OPENACCOUNTRESPONSE']._serialized_end=680
|
|
82
|
+
_globals['_CLOSEACCOUNTREQUEST']._serialized_start=682
|
|
83
|
+
_globals['_CLOSEACCOUNTREQUEST']._serialized_end=784
|
|
84
|
+
_globals['_CLOSEACCOUNTRESPONSE']._serialized_start=787
|
|
85
|
+
_globals['_CLOSEACCOUNTRESPONSE']._serialized_end=920
|
|
86
|
+
_globals['_GETACCOUNTREQUEST']._serialized_start=923
|
|
87
|
+
_globals['_GETACCOUNTREQUEST']._serialized_end=1073
|
|
88
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST']._serialized_start=1076
|
|
89
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST']._serialized_end=1212
|
|
90
|
+
_globals['_LISTACCOUNTSREQUEST']._serialized_start=1215
|
|
91
|
+
_globals['_LISTACCOUNTSREQUEST']._serialized_end=1556
|
|
92
|
+
_globals['_LISTACCOUNTSREQUEST_SORTING']._serialized_start=1373
|
|
93
|
+
_globals['_LISTACCOUNTSREQUEST_SORTING']._serialized_end=1556
|
|
94
|
+
_globals['_LISTACCOUNTSRESPONSE']._serialized_start=1558
|
|
95
|
+
_globals['_LISTACCOUNTSRESPONSE']._serialized_end=1646
|
|
96
|
+
_globals['_SEARCHACCOUNTSREQUEST']._serialized_start=1649
|
|
97
|
+
_globals['_SEARCHACCOUNTSREQUEST']._serialized_end=2144
|
|
98
|
+
_globals['_SEARCHACCOUNTSREQUEST_SORTING']._serialized_start=1373
|
|
99
|
+
_globals['_SEARCHACCOUNTSREQUEST_SORTING']._serialized_end=1556
|
|
100
|
+
_globals['_SEARCHACCOUNTSRESPONSE']._serialized_start=2146
|
|
101
|
+
_globals['_SEARCHACCOUNTSRESPONSE']._serialized_end=2236
|
|
102
|
+
_globals['_ACCOUNTSERVICE']._serialized_start=2239
|
|
103
|
+
_globals['_ACCOUNTSERVICE']._serialized_end=3327
|
|
61
104
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
1
2
|
from meshtrade.iam.role.v1 import role_pb2 as _role_pb2
|
|
2
3
|
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
3
|
-
from meshtrade.type.v1 import
|
|
4
|
+
from meshtrade.type.v1 import sorting_pb2 as _sorting_pb2
|
|
4
5
|
from meshtrade.wallet.account.v1 import account_pb2 as _account_pb2
|
|
5
6
|
from google.protobuf.internal import containers as _containers
|
|
6
7
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -11,24 +12,75 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
11
12
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
13
|
|
|
13
14
|
class CreateAccountRequest(_message.Message):
|
|
14
|
-
__slots__ = ("
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
__slots__ = ("account",)
|
|
16
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
account: _account_pb2.Account
|
|
18
|
+
def __init__(self, account: _Optional[_Union[_account_pb2.Account, _Mapping]] = ...) -> None: ...
|
|
19
|
+
|
|
20
|
+
class UpdateAccountRequest(_message.Message):
|
|
21
|
+
__slots__ = ("account",)
|
|
22
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
account: _account_pb2.Account
|
|
24
|
+
def __init__(self, account: _Optional[_Union[_account_pb2.Account, _Mapping]] = ...) -> None: ...
|
|
25
|
+
|
|
26
|
+
class OpenAccountRequest(_message.Message):
|
|
27
|
+
__slots__ = ("name",)
|
|
28
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
name: str
|
|
30
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
31
|
+
|
|
32
|
+
class OpenAccountResponse(_message.Message):
|
|
33
|
+
__slots__ = ("account", "ledger_transaction")
|
|
34
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
LEDGER_TRANSACTION_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
account: _account_pb2.Account
|
|
37
|
+
ledger_transaction: str
|
|
38
|
+
def __init__(self, account: _Optional[_Union[_account_pb2.Account, _Mapping]] = ..., ledger_transaction: _Optional[str] = ...) -> None: ...
|
|
39
|
+
|
|
40
|
+
class CloseAccountRequest(_message.Message):
|
|
41
|
+
__slots__ = ("name",)
|
|
42
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
name: str
|
|
44
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
45
|
+
|
|
46
|
+
class CloseAccountResponse(_message.Message):
|
|
47
|
+
__slots__ = ("account", "ledger_transaction")
|
|
48
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
LEDGER_TRANSACTION_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
account: _account_pb2.Account
|
|
51
|
+
ledger_transaction: str
|
|
52
|
+
def __init__(self, account: _Optional[_Union[_account_pb2.Account, _Mapping]] = ..., ledger_transaction: _Optional[str] = ...) -> None: ...
|
|
22
53
|
|
|
23
54
|
class GetAccountRequest(_message.Message):
|
|
24
|
-
__slots__ = ("
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
55
|
+
__slots__ = ("name", "populate_ledger_data")
|
|
56
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
name: str
|
|
59
|
+
populate_ledger_data: bool
|
|
60
|
+
def __init__(self, name: _Optional[str] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class GetAccountByNumberRequest(_message.Message):
|
|
63
|
+
__slots__ = ("account_number", "populate_ledger_data")
|
|
64
|
+
ACCOUNT_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
account_number: str
|
|
67
|
+
populate_ledger_data: bool
|
|
68
|
+
def __init__(self, account_number: _Optional[str] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
28
69
|
|
|
29
70
|
class ListAccountsRequest(_message.Message):
|
|
30
|
-
__slots__ = ()
|
|
31
|
-
|
|
71
|
+
__slots__ = ("sorting", "populate_ledger_data")
|
|
72
|
+
class Sorting(_message.Message):
|
|
73
|
+
__slots__ = ("field", "order")
|
|
74
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
field: str
|
|
77
|
+
order: _sorting_pb2.SortingOrder
|
|
78
|
+
def __init__(self, field: _Optional[str] = ..., order: _Optional[_Union[_sorting_pb2.SortingOrder, str]] = ...) -> None: ...
|
|
79
|
+
SORTING_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
81
|
+
sorting: ListAccountsRequest.Sorting
|
|
82
|
+
populate_ledger_data: bool
|
|
83
|
+
def __init__(self, sorting: _Optional[_Union[ListAccountsRequest.Sorting, _Mapping]] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
32
84
|
|
|
33
85
|
class ListAccountsResponse(_message.Message):
|
|
34
86
|
__slots__ = ("accounts",)
|
|
@@ -37,10 +89,21 @@ class ListAccountsResponse(_message.Message):
|
|
|
37
89
|
def __init__(self, accounts: _Optional[_Iterable[_Union[_account_pb2.Account, _Mapping]]] = ...) -> None: ...
|
|
38
90
|
|
|
39
91
|
class SearchAccountsRequest(_message.Message):
|
|
40
|
-
__slots__ = ("
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
92
|
+
__slots__ = ("sorting", "display_name", "populate_ledger_data")
|
|
93
|
+
class Sorting(_message.Message):
|
|
94
|
+
__slots__ = ("field", "order")
|
|
95
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
field: str
|
|
98
|
+
order: _sorting_pb2.SortingOrder
|
|
99
|
+
def __init__(self, field: _Optional[str] = ..., order: _Optional[_Union[_sorting_pb2.SortingOrder, str]] = ...) -> None: ...
|
|
100
|
+
SORTING_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
sorting: SearchAccountsRequest.Sorting
|
|
104
|
+
display_name: str
|
|
105
|
+
populate_ledger_data: bool
|
|
106
|
+
def __init__(self, sorting: _Optional[_Union[SearchAccountsRequest.Sorting, _Mapping]] = ..., display_name: _Optional[str] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
44
107
|
|
|
45
108
|
class SearchAccountsResponse(_message.Message):
|
|
46
109
|
__slots__ = ("accounts",)
|