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
|
@@ -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
|
+
AddSignatoryToAccountRequest,
|
|
24
|
+
AddSignatoryToAccountResponse,
|
|
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
|
|
@@ -29,7 +40,6 @@ from .service_meshpy import (
|
|
|
29
40
|
AccountServiceGRPCClient,
|
|
30
41
|
AccountServiceGRPCClientInterface,
|
|
31
42
|
)
|
|
32
|
-
from .service_options_meshpy import ClientOptions
|
|
33
43
|
|
|
34
44
|
# ===================================================================
|
|
35
45
|
# END OF AUTO-GENERATED SECTION
|
|
@@ -55,11 +65,19 @@ __all__ = [
|
|
|
55
65
|
"AccountService",
|
|
56
66
|
"AccountServiceGRPCClient",
|
|
57
67
|
"AccountServiceGRPCClientInterface",
|
|
58
|
-
"
|
|
68
|
+
"AccountState",
|
|
69
|
+
"AddSignatoryToAccountRequest",
|
|
70
|
+
"AddSignatoryToAccountResponse",
|
|
71
|
+
"Balance",
|
|
59
72
|
"CreateAccountRequest",
|
|
73
|
+
"GetAccountByNumberRequest",
|
|
60
74
|
"GetAccountRequest",
|
|
75
|
+
"InstrumentMetaData",
|
|
61
76
|
"ListAccountsRequest",
|
|
62
77
|
"ListAccountsResponse",
|
|
78
|
+
"OpenAccountRequest",
|
|
79
|
+
"OpenAccountResponse",
|
|
63
80
|
"SearchAccountsRequest",
|
|
64
81
|
"SearchAccountsResponse",
|
|
82
|
+
"UpdateAccountRequest",
|
|
65
83
|
]
|
|
@@ -22,16 +22,40 @@ _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 instrument_type_pb2 as meshtrade_dot_studio_dot_instrument_dot_v1_dot_instrument__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\x34meshtrade/studio/instrument/v1/instrument_type.proto\x1a)meshtrade/studio/instrument/v1/unit.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x06\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\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['number']._loaded_options = None
|
|
46
|
+
_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}$\')'
|
|
47
|
+
_globals['_ACCOUNT'].fields_by_name['ledger_id']._loaded_options = None
|
|
48
|
+
_globals['_ACCOUNT'].fields_by_name['ledger_id']._serialized_options = b'\272H\005r\003\030\377\001'
|
|
49
|
+
_globals['_ACCOUNT'].fields_by_name['ledger']._loaded_options = None
|
|
50
|
+
_globals['_ACCOUNT'].fields_by_name['ledger']._serialized_options = b'\272H\n\202\001\004\020\001 \000\310\001\001'
|
|
51
|
+
_globals['_ACCOUNT'].fields_by_name['display_name']._loaded_options = None
|
|
52
|
+
_globals['_ACCOUNT'].fields_by_name['display_name']._serialized_options = b'\272H\nr\005\020\001\030\377\001\310\001\001'
|
|
53
|
+
_globals['_ACCOUNTSTATE']._serialized_start=1459
|
|
54
|
+
_globals['_ACCOUNTSTATE']._serialized_end=1554
|
|
55
|
+
_globals['_ACCOUNT']._serialized_start=298
|
|
56
|
+
_globals['_ACCOUNT']._serialized_end=1127
|
|
57
|
+
_globals['_INSTRUMENTMETADATA']._serialized_start=1130
|
|
58
|
+
_globals['_INSTRUMENTMETADATA']._serialized_end=1296
|
|
59
|
+
_globals['_BALANCE']._serialized_start=1299
|
|
60
|
+
_globals['_BALANCE']._serialized_end=1457
|
|
37
61
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,11 +1,65 @@
|
|
|
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 instrument_type_pb2 as _instrument_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", "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
|
+
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
LEDGER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
LEDGER_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
LIVE_DATA_RETRIEVED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
BALANCES_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
name: str
|
|
39
|
+
owner: str
|
|
40
|
+
number: str
|
|
41
|
+
ledger_id: str
|
|
42
|
+
ledger: _ledger_pb2.Ledger
|
|
43
|
+
display_name: str
|
|
44
|
+
live_data_retrieved_at: _timestamp_pb2.Timestamp
|
|
45
|
+
state: AccountState
|
|
46
|
+
balances: _containers.RepeatedCompositeFieldContainer[Balance]
|
|
47
|
+
def __init__(self, name: _Optional[str] = ..., owner: _Optional[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: ...
|
|
48
|
+
|
|
49
|
+
class InstrumentMetaData(_message.Message):
|
|
50
|
+
__slots__ = ("name", "type", "unit")
|
|
9
51
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
UNIT_FIELD_NUMBER: _ClassVar[int]
|
|
10
54
|
name: str
|
|
11
|
-
|
|
55
|
+
type: _instrument_type_pb2.InstrumentType
|
|
56
|
+
unit: _unit_pb2.Unit
|
|
57
|
+
def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[_instrument_type_pb2.InstrumentType, str]] = ..., unit: _Optional[_Union[_unit_pb2.Unit, str]] = ...) -> None: ...
|
|
58
|
+
|
|
59
|
+
class Balance(_message.Message):
|
|
60
|
+
__slots__ = ("amount", "instrument_metadata")
|
|
61
|
+
AMOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
INSTRUMENT_METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
amount: _amount_pb2.Amount
|
|
64
|
+
instrument_metadata: InstrumentMetaData
|
|
65
|
+
def __init__(self, amount: _Optional[_Union[_amount_pb2.Amount, _Mapping]] = ..., instrument_metadata: _Optional[_Union[InstrumentMetaData, _Mapping]] = ...) -> None: ...
|
|
@@ -9,6 +9,7 @@ the service interface with resource management capabilities, providing authentic
|
|
|
9
9
|
timeouts, and proper connection handling.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
+
from collections.abc import Iterator
|
|
12
13
|
from datetime import timedelta
|
|
13
14
|
from typing import Optional
|
|
14
15
|
|
|
@@ -16,14 +17,20 @@ from meshtrade.common import BaseGRPCClient
|
|
|
16
17
|
from meshtrade.iam.api_user.v1.api_credentials import find_credentials
|
|
17
18
|
|
|
18
19
|
from .account_pb2 import Account
|
|
19
|
-
from .
|
|
20
|
+
from meshtrade.common.service_options import ServiceOptions
|
|
20
21
|
from .service_pb2 import (
|
|
22
|
+
AddSignatoryToAccountRequest,
|
|
23
|
+
AddSignatoryToAccountResponse,
|
|
21
24
|
CreateAccountRequest,
|
|
25
|
+
GetAccountByNumberRequest,
|
|
22
26
|
GetAccountRequest,
|
|
23
27
|
ListAccountsRequest,
|
|
24
28
|
ListAccountsResponse,
|
|
29
|
+
OpenAccountRequest,
|
|
30
|
+
OpenAccountResponse,
|
|
25
31
|
SearchAccountsRequest,
|
|
26
32
|
SearchAccountsResponse,
|
|
33
|
+
UpdateAccountRequest,
|
|
27
34
|
)
|
|
28
35
|
from .service_pb2_grpc import AccountServiceStub
|
|
29
36
|
|
|
@@ -150,6 +157,54 @@ class AccountService(BaseGRPCClient):
|
|
|
150
157
|
"""
|
|
151
158
|
return self._execute_method("CreateAccount", request, timeout)
|
|
152
159
|
|
|
160
|
+
def update_account(self, request: UpdateAccountRequest, timeout: Optional[timedelta] = None) -> Account:
|
|
161
|
+
"""UpdateAccount method.
|
|
162
|
+
|
|
163
|
+
Args:
|
|
164
|
+
request: The UpdateAccount request message
|
|
165
|
+
timeout: Optional timeout override for this call
|
|
166
|
+
|
|
167
|
+
Returns:
|
|
168
|
+
The UpdateAccount response message
|
|
169
|
+
|
|
170
|
+
Raises:
|
|
171
|
+
grpc.RpcError: If the gRPC call fails
|
|
172
|
+
ValueError: If authentication credentials are missing
|
|
173
|
+
"""
|
|
174
|
+
return self._execute_method("UpdateAccount", request, timeout)
|
|
175
|
+
|
|
176
|
+
def open_account(self, request: OpenAccountRequest, timeout: Optional[timedelta] = None) -> OpenAccountResponse:
|
|
177
|
+
"""OpenAccount method.
|
|
178
|
+
|
|
179
|
+
Args:
|
|
180
|
+
request: The OpenAccount request message
|
|
181
|
+
timeout: Optional timeout override for this call
|
|
182
|
+
|
|
183
|
+
Returns:
|
|
184
|
+
The OpenAccount response message
|
|
185
|
+
|
|
186
|
+
Raises:
|
|
187
|
+
grpc.RpcError: If the gRPC call fails
|
|
188
|
+
ValueError: If authentication credentials are missing
|
|
189
|
+
"""
|
|
190
|
+
return self._execute_method("OpenAccount", request, timeout)
|
|
191
|
+
|
|
192
|
+
def add_signatory_to_account(self, request: AddSignatoryToAccountRequest, timeout: Optional[timedelta] = None) -> AddSignatoryToAccountResponse:
|
|
193
|
+
"""AddSignatoryToAccount method.
|
|
194
|
+
|
|
195
|
+
Args:
|
|
196
|
+
request: The AddSignatoryToAccount request message
|
|
197
|
+
timeout: Optional timeout override for this call
|
|
198
|
+
|
|
199
|
+
Returns:
|
|
200
|
+
The AddSignatoryToAccount response message
|
|
201
|
+
|
|
202
|
+
Raises:
|
|
203
|
+
grpc.RpcError: If the gRPC call fails
|
|
204
|
+
ValueError: If authentication credentials are missing
|
|
205
|
+
"""
|
|
206
|
+
return self._execute_method("AddSignatoryToAccount", request, timeout)
|
|
207
|
+
|
|
153
208
|
def get_account(self, request: GetAccountRequest, timeout: Optional[timedelta] = None) -> Account:
|
|
154
209
|
"""GetAccount method.
|
|
155
210
|
|
|
@@ -166,6 +221,22 @@ class AccountService(BaseGRPCClient):
|
|
|
166
221
|
"""
|
|
167
222
|
return self._execute_method("GetAccount", request, timeout)
|
|
168
223
|
|
|
224
|
+
def get_account_by_number(self, request: GetAccountByNumberRequest, timeout: Optional[timedelta] = None) -> Account:
|
|
225
|
+
"""GetAccountByNumber method.
|
|
226
|
+
|
|
227
|
+
Args:
|
|
228
|
+
request: The GetAccountByNumber request message
|
|
229
|
+
timeout: Optional timeout override for this call
|
|
230
|
+
|
|
231
|
+
Returns:
|
|
232
|
+
The GetAccountByNumber response message
|
|
233
|
+
|
|
234
|
+
Raises:
|
|
235
|
+
grpc.RpcError: If the gRPC call fails
|
|
236
|
+
ValueError: If authentication credentials are missing
|
|
237
|
+
"""
|
|
238
|
+
return self._execute_method("GetAccountByNumber", request, timeout)
|
|
239
|
+
|
|
169
240
|
def list_accounts(self, request: ListAccountsRequest, timeout: Optional[timedelta] = None) -> ListAccountsResponse:
|
|
170
241
|
"""ListAccounts method.
|
|
171
242
|
|
|
@@ -22,40 +22,84 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
from
|
|
26
|
-
from meshtrade.option.v1 import
|
|
27
|
-
from meshtrade.type.v1 import
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as meshtrade_dot_option_dot_method__options_dot_v1_dot_method__options__pb2
|
|
27
|
+
from meshtrade.type.v1 import sorting_pb2 as meshtrade_dot_type_dot_v1_dot_sorting__pb2
|
|
28
28
|
from meshtrade.wallet.account.v1 import account_pb2 as meshtrade_dot_wallet_dot_account_dot_v1_dot_account__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)meshtrade/wallet/account/v1/service.proto\x12\x1bmeshtrade.wallet.account.v1\x1a
|
|
31
|
+
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\x37meshtrade/option/method_options/v1/method_options.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\"D\n\x13OpenAccountResponse\x12-\n\x12ledger_transaction\x18\x01 \x01(\tR\x11ledgerTransaction\"\xd3\x02\n\x1c\x41\x64\x64SignatoryToAccountRequest\x12O\n\x04name\x18\x01 \x01(\tB;\xbaH8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01#R\x04name\x12\xe1\x01\n\x04user\x18\x02 \x01(\tB\xcc\x01\xbaH\xc8\x01\xba\x01\xc1\x01\n\x0buser.format\x12+user must be api_users/{ULID}, users/{ULID}\x1a\x84\x01this.matches(\'^users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\') || this.matches(\'^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')\xc8\x01\x01R\x04user\"N\n\x1d\x41\x64\x64SignatoryToAccountResponse\x12-\n\x12ledger_transaction\x18\x01 \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\xdb\x08\n\x0e\x41\x63\x63ountService\x12z\n\rCreateAccount\x12\x31.meshtrade.wallet.account.v1.CreateAccountRequest\x1a$.meshtrade.wallet.account.v1.Account\"\x10\xb2\xb5\x18\x0c\x08\x02\x10\x02\x1a\x06\xc0\x84=\xc2\x84=\x12z\n\rUpdateAccount\x12\x31.meshtrade.wallet.account.v1.UpdateAccountRequest\x1a$.meshtrade.wallet.account.v1.Account\"\x10\xb2\xb5\x18\x0c\x08\x02\x10\x02\x1a\x06\xc0\x84=\xc2\x84=\x12\x82\x01\n\x0bOpenAccount\x12/.meshtrade.wallet.account.v1.OpenAccountRequest\x1a\x30.meshtrade.wallet.account.v1.OpenAccountResponse\"\x10\xb2\xb5\x18\x0c\x08\x02\x10\x02\x1a\x06\xc0\x84=\xc2\x84=\x12\xa0\x01\n\x15\x41\x64\x64SignatoryToAccount\x12\x39.meshtrade.wallet.account.v1.AddSignatoryToAccountRequest\x1a:.meshtrade.wallet.account.v1.AddSignatoryToAccountResponse\"\x10\xb2\xb5\x18\x0c\x08\x02\x10\x02\x1a\x06\xc0\x84=\xc2\x84=\x12z\n\nGetAccount\x12..meshtrade.wallet.account.v1.GetAccountRequest\x1a$.meshtrade.wallet.account.v1.Account\"\x16\xb2\xb5\x18\x12\x08\x01\x10\x02\x1a\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\xb2\xb5\x18\x12\x08\x01\x10\x02\x1a\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\xb2\xb5\x18\x12\x08\x01\x10\x02\x1a\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\xb2\xb5\x18\x12\x08\x01\x10\x02\x1a\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
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
35
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.wallet.account.v1.service_pb2', _globals)
|
|
36
36
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
37
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\"co.meshtrade.api.wallet.account.
|
|
38
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\"co.meshtrade.api.wallet.account.v1Z8github.com/meshtrade/api/go/wallet/account/v1;account_v1'
|
|
39
|
+
_globals['_CREATEACCOUNTREQUEST'].fields_by_name['account']._loaded_options = None
|
|
40
|
+
_globals['_CREATEACCOUNTREQUEST'].fields_by_name['account']._serialized_options = b'\272H\003\310\001\001'
|
|
41
|
+
_globals['_UPDATEACCOUNTREQUEST'].fields_by_name['account']._loaded_options = None
|
|
42
|
+
_globals['_UPDATEACCOUNTREQUEST'].fields_by_name['account']._serialized_options = b'\272H\003\310\001\001'
|
|
43
|
+
_globals['_OPENACCOUNTREQUEST'].fields_by_name['name']._loaded_options = None
|
|
44
|
+
_globals['_OPENACCOUNTREQUEST'].fields_by_name['name']._serialized_options = b'\272H8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001#'
|
|
45
|
+
_globals['_ADDSIGNATORYTOACCOUNTREQUEST'].fields_by_name['name']._loaded_options = None
|
|
46
|
+
_globals['_ADDSIGNATORYTOACCOUNTREQUEST'].fields_by_name['name']._serialized_options = b'\272H8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001#'
|
|
47
|
+
_globals['_ADDSIGNATORYTOACCOUNTREQUEST'].fields_by_name['user']._loaded_options = None
|
|
48
|
+
_globals['_ADDSIGNATORYTOACCOUNTREQUEST'].fields_by_name['user']._serialized_options = b'\272H\310\001\272\001\301\001\n\013user.format\022+user must be api_users/{ULID}, users/{ULID}\032\204\001this.matches(\'^users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\') || this.matches(\'^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')\310\001\001'
|
|
49
|
+
_globals['_GETACCOUNTREQUEST'].fields_by_name['name']._loaded_options = None
|
|
50
|
+
_globals['_GETACCOUNTREQUEST'].fields_by_name['name']._serialized_options = b'\272H8r621^accounts/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001#'
|
|
51
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST'].fields_by_name['account_number']._loaded_options = None
|
|
52
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST'].fields_by_name['account_number']._serialized_options = b'\272H\017r\r2\013^1[0-9]{6}$'
|
|
53
|
+
_globals['_LISTACCOUNTSREQUEST_SORTING'].fields_by_name['field']._loaded_options = None
|
|
54
|
+
_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\']'
|
|
55
|
+
_globals['_SEARCHACCOUNTSREQUEST_SORTING'].fields_by_name['field']._loaded_options = None
|
|
56
|
+
_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\']'
|
|
57
|
+
_globals['_SEARCHACCOUNTSREQUEST'].fields_by_name['display_name']._loaded_options = None
|
|
58
|
+
_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
59
|
_globals['_ACCOUNTSERVICE'].methods_by_name['CreateAccount']._loaded_options = None
|
|
40
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['CreateAccount']._serialized_options = b'\
|
|
60
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['CreateAccount']._serialized_options = b'\262\265\030\014\010\002\020\002\032\006\300\204=\302\204='
|
|
61
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateAccount']._loaded_options = None
|
|
62
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateAccount']._serialized_options = b'\262\265\030\014\010\002\020\002\032\006\300\204=\302\204='
|
|
63
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['OpenAccount']._loaded_options = None
|
|
64
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['OpenAccount']._serialized_options = b'\262\265\030\014\010\002\020\002\032\006\300\204=\302\204='
|
|
65
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['AddSignatoryToAccount']._loaded_options = None
|
|
66
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['AddSignatoryToAccount']._serialized_options = b'\262\265\030\014\010\002\020\002\032\006\300\204=\302\204='
|
|
41
67
|
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._loaded_options = None
|
|
42
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._serialized_options = b'\
|
|
68
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._serialized_options = b'\262\265\030\022\010\001\020\002\032\014\300\204=\301\204=\302\204=\303\204='
|
|
69
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccountByNumber']._loaded_options = None
|
|
70
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccountByNumber']._serialized_options = b'\262\265\030\022\010\001\020\002\032\014\300\204=\301\204=\302\204=\303\204='
|
|
43
71
|
_globals['_ACCOUNTSERVICE'].methods_by_name['ListAccounts']._loaded_options = None
|
|
44
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['ListAccounts']._serialized_options = b'\
|
|
72
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['ListAccounts']._serialized_options = b'\262\265\030\022\010\001\020\002\032\014\300\204=\301\204=\302\204=\303\204='
|
|
45
73
|
_globals['_ACCOUNTSERVICE'].methods_by_name['SearchAccounts']._loaded_options = None
|
|
46
|
-
_globals['_ACCOUNTSERVICE'].methods_by_name['SearchAccounts']._serialized_options = b'\
|
|
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['
|
|
74
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['SearchAccounts']._serialized_options = b'\262\265\030\022\010\001\020\002\032\014\300\204=\301\204=\302\204=\303\204='
|
|
75
|
+
_globals['_CREATEACCOUNTREQUEST']._serialized_start=236
|
|
76
|
+
_globals['_CREATEACCOUNTREQUEST']._serialized_end=330
|
|
77
|
+
_globals['_UPDATEACCOUNTREQUEST']._serialized_start=332
|
|
78
|
+
_globals['_UPDATEACCOUNTREQUEST']._serialized_end=426
|
|
79
|
+
_globals['_OPENACCOUNTREQUEST']._serialized_start=428
|
|
80
|
+
_globals['_OPENACCOUNTREQUEST']._serialized_end=529
|
|
81
|
+
_globals['_OPENACCOUNTRESPONSE']._serialized_start=531
|
|
82
|
+
_globals['_OPENACCOUNTRESPONSE']._serialized_end=599
|
|
83
|
+
_globals['_ADDSIGNATORYTOACCOUNTREQUEST']._serialized_start=602
|
|
84
|
+
_globals['_ADDSIGNATORYTOACCOUNTREQUEST']._serialized_end=941
|
|
85
|
+
_globals['_ADDSIGNATORYTOACCOUNTRESPONSE']._serialized_start=943
|
|
86
|
+
_globals['_ADDSIGNATORYTOACCOUNTRESPONSE']._serialized_end=1021
|
|
87
|
+
_globals['_GETACCOUNTREQUEST']._serialized_start=1024
|
|
88
|
+
_globals['_GETACCOUNTREQUEST']._serialized_end=1174
|
|
89
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST']._serialized_start=1177
|
|
90
|
+
_globals['_GETACCOUNTBYNUMBERREQUEST']._serialized_end=1313
|
|
91
|
+
_globals['_LISTACCOUNTSREQUEST']._serialized_start=1316
|
|
92
|
+
_globals['_LISTACCOUNTSREQUEST']._serialized_end=1657
|
|
93
|
+
_globals['_LISTACCOUNTSREQUEST_SORTING']._serialized_start=1474
|
|
94
|
+
_globals['_LISTACCOUNTSREQUEST_SORTING']._serialized_end=1657
|
|
95
|
+
_globals['_LISTACCOUNTSRESPONSE']._serialized_start=1659
|
|
96
|
+
_globals['_LISTACCOUNTSRESPONSE']._serialized_end=1747
|
|
97
|
+
_globals['_SEARCHACCOUNTSREQUEST']._serialized_start=1750
|
|
98
|
+
_globals['_SEARCHACCOUNTSREQUEST']._serialized_end=2245
|
|
99
|
+
_globals['_SEARCHACCOUNTSREQUEST_SORTING']._serialized_start=1474
|
|
100
|
+
_globals['_SEARCHACCOUNTSREQUEST_SORTING']._serialized_end=1657
|
|
101
|
+
_globals['_SEARCHACCOUNTSRESPONSE']._serialized_start=2247
|
|
102
|
+
_globals['_SEARCHACCOUNTSRESPONSE']._serialized_end=2337
|
|
103
|
+
_globals['_ACCOUNTSERVICE']._serialized_start=2340
|
|
104
|
+
_globals['_ACCOUNTSERVICE']._serialized_end=3455
|
|
61
105
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
from meshtrade.option.v1 import
|
|
3
|
-
from meshtrade.type.v1 import
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as _method_options_pb2
|
|
3
|
+
from meshtrade.type.v1 import sorting_pb2 as _sorting_pb2
|
|
4
4
|
from meshtrade.wallet.account.v1 import account_pb2 as _account_pb2
|
|
5
5
|
from google.protobuf.internal import containers as _containers
|
|
6
6
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -11,24 +11,73 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
11
11
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
12
|
|
|
13
13
|
class CreateAccountRequest(_message.Message):
|
|
14
|
-
__slots__ = ("
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
__slots__ = ("account",)
|
|
15
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
account: _account_pb2.Account
|
|
17
|
+
def __init__(self, account: _Optional[_Union[_account_pb2.Account, _Mapping]] = ...) -> None: ...
|
|
18
|
+
|
|
19
|
+
class UpdateAccountRequest(_message.Message):
|
|
20
|
+
__slots__ = ("account",)
|
|
21
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
account: _account_pb2.Account
|
|
23
|
+
def __init__(self, account: _Optional[_Union[_account_pb2.Account, _Mapping]] = ...) -> None: ...
|
|
24
|
+
|
|
25
|
+
class OpenAccountRequest(_message.Message):
|
|
26
|
+
__slots__ = ("name",)
|
|
27
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
name: str
|
|
29
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
30
|
+
|
|
31
|
+
class OpenAccountResponse(_message.Message):
|
|
32
|
+
__slots__ = ("ledger_transaction",)
|
|
33
|
+
LEDGER_TRANSACTION_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
ledger_transaction: str
|
|
35
|
+
def __init__(self, ledger_transaction: _Optional[str] = ...) -> None: ...
|
|
36
|
+
|
|
37
|
+
class AddSignatoryToAccountRequest(_message.Message):
|
|
38
|
+
__slots__ = ("name", "user")
|
|
39
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
name: str
|
|
42
|
+
user: str
|
|
43
|
+
def __init__(self, name: _Optional[str] = ..., user: _Optional[str] = ...) -> None: ...
|
|
44
|
+
|
|
45
|
+
class AddSignatoryToAccountResponse(_message.Message):
|
|
46
|
+
__slots__ = ("ledger_transaction",)
|
|
47
|
+
LEDGER_TRANSACTION_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
ledger_transaction: str
|
|
49
|
+
def __init__(self, ledger_transaction: _Optional[str] = ...) -> None: ...
|
|
22
50
|
|
|
23
51
|
class GetAccountRequest(_message.Message):
|
|
24
|
-
__slots__ = ("
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
52
|
+
__slots__ = ("name", "populate_ledger_data")
|
|
53
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
name: str
|
|
56
|
+
populate_ledger_data: bool
|
|
57
|
+
def __init__(self, name: _Optional[str] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
58
|
+
|
|
59
|
+
class GetAccountByNumberRequest(_message.Message):
|
|
60
|
+
__slots__ = ("account_number", "populate_ledger_data")
|
|
61
|
+
ACCOUNT_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
account_number: str
|
|
64
|
+
populate_ledger_data: bool
|
|
65
|
+
def __init__(self, account_number: _Optional[str] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
28
66
|
|
|
29
67
|
class ListAccountsRequest(_message.Message):
|
|
30
|
-
__slots__ = ()
|
|
31
|
-
|
|
68
|
+
__slots__ = ("sorting", "populate_ledger_data")
|
|
69
|
+
class Sorting(_message.Message):
|
|
70
|
+
__slots__ = ("field", "order")
|
|
71
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
field: str
|
|
74
|
+
order: _sorting_pb2.SortingOrder
|
|
75
|
+
def __init__(self, field: _Optional[str] = ..., order: _Optional[_Union[_sorting_pb2.SortingOrder, str]] = ...) -> None: ...
|
|
76
|
+
SORTING_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
sorting: ListAccountsRequest.Sorting
|
|
79
|
+
populate_ledger_data: bool
|
|
80
|
+
def __init__(self, sorting: _Optional[_Union[ListAccountsRequest.Sorting, _Mapping]] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
32
81
|
|
|
33
82
|
class ListAccountsResponse(_message.Message):
|
|
34
83
|
__slots__ = ("accounts",)
|
|
@@ -37,10 +86,21 @@ class ListAccountsResponse(_message.Message):
|
|
|
37
86
|
def __init__(self, accounts: _Optional[_Iterable[_Union[_account_pb2.Account, _Mapping]]] = ...) -> None: ...
|
|
38
87
|
|
|
39
88
|
class SearchAccountsRequest(_message.Message):
|
|
40
|
-
__slots__ = ("
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
89
|
+
__slots__ = ("sorting", "display_name", "populate_ledger_data")
|
|
90
|
+
class Sorting(_message.Message):
|
|
91
|
+
__slots__ = ("field", "order")
|
|
92
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
field: str
|
|
95
|
+
order: _sorting_pb2.SortingOrder
|
|
96
|
+
def __init__(self, field: _Optional[str] = ..., order: _Optional[_Union[_sorting_pb2.SortingOrder, str]] = ...) -> None: ...
|
|
97
|
+
SORTING_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
POPULATE_LEDGER_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
sorting: SearchAccountsRequest.Sorting
|
|
101
|
+
display_name: str
|
|
102
|
+
populate_ledger_data: bool
|
|
103
|
+
def __init__(self, sorting: _Optional[_Union[SearchAccountsRequest.Sorting, _Mapping]] = ..., display_name: _Optional[str] = ..., populate_ledger_data: bool = ...) -> None: ...
|
|
44
104
|
|
|
45
105
|
class SearchAccountsResponse(_message.Message):
|
|
46
106
|
__slots__ = ("accounts",)
|