meshtrade 1.0.1__py3-none-any.whl → 1.1.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/common/__init__.py +2 -4
- meshtrade/common/config.py +3 -4
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +0 -53
- meshtrade/iam/role/v1/role_pb2.py +2 -2
- meshtrade/iam/role/v1/role_pb2.pyi +4 -4
- meshtrade/reporting/{income_report → account_report}/v1/__init__.py +20 -16
- meshtrade/reporting/account_report/v1/account_report_pb2.py +46 -0
- meshtrade/reporting/account_report/v1/account_report_pb2.pyi +48 -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/income_entry_pb2.py +42 -0
- meshtrade/reporting/{income_report/v1/entry_pb2.pyi → account_report/v1/income_entry_pb2.pyi} +10 -10
- meshtrade/reporting/account_report/v1/income_entry_pb2_grpc.py +4 -0
- meshtrade/reporting/{income_report → account_report}/v1/service_meshpy.py +35 -35
- meshtrade/reporting/{income_report → account_report}/v1/service_options_meshpy.py +3 -3
- meshtrade/reporting/account_report/v1/service_pb2.py +59 -0
- meshtrade/reporting/account_report/v1/service_pb2.pyi +42 -0
- meshtrade/reporting/account_report/v1/service_pb2_grpc.py +157 -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-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/METADATA +1 -1
- {meshtrade-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/RECORD +30 -24
- 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_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/reporting/{income_report/v1/disclaimer_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/entry_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py} +0 -0
- /meshtrade/reporting/{income_report/v1/income_report_pb2_grpc.py → account_report/v1/fee_entry_pb2_grpc.py} +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.1.0.dist-info}/top_level.txt +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: meshtrade/reporting/income_report/v1/entry.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'meshtrade/reporting/income_report/v1/entry.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
|
|
26
|
-
from meshtrade.type.v1 import amount_pb2 as meshtrade_dot_type_dot_v1_dot_amount__pb2
|
|
27
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0meshtrade/reporting/income_report/v1/entry.proto\x12$meshtrade.reporting.income_report.v1\x1a\x1dmeshtrade/type/v1/token.proto\x1a\x1emeshtrade/type/v1/amount.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x02\n\x05\x45ntry\x12\x1d\n\nasset_name\x18\x01 \x01(\tR\tassetName\x12.\n\x05token\x18\x02 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x05token\x12.\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x64\x61te\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12M\n\tnarrative\x18\x05 \x01(\x0e\x32/.meshtrade.reporting.income_report.v1.NarrativeR\tnarrative\x12\x31\n\x06\x61mount\x18\x06 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x06\x61mount\x12Q\n\x17reported_currency_value\x18\x07 \x01(\x0b\x32\x19.meshtrade.type.v1.AmountR\x15reportedCurrencyValue*Q\n\tNarrative\x12\x19\n\x15NARRATIVE_UNSPECIFIED\x10\x00\x12\x13\n\x0fNARRATIVE_YIELD\x10\x01\x12\x14\n\x10NARRATIVE_COUPON\x10\x02\x42u\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
|
|
31
|
-
|
|
32
|
-
_globals = globals()
|
|
33
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.entry_pb2', _globals)
|
|
35
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
|
|
38
|
-
_globals['_NARRATIVE']._serialized_start=570
|
|
39
|
-
_globals['_NARRATIVE']._serialized_end=651
|
|
40
|
-
_globals['_ENTRY']._serialized_start=187
|
|
41
|
-
_globals['_ENTRY']._serialized_end=568
|
|
42
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: meshtrade/reporting/income_report/v1/income_report.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'meshtrade/reporting/income_report/v1/income_report.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
-
from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
|
|
27
|
-
from meshtrade.type.v1 import address_pb2 as meshtrade_dot_type_dot_v1_dot_address__pb2
|
|
28
|
-
from meshtrade.reporting.income_report.v1 import disclaimer_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_disclaimer__pb2
|
|
29
|
-
from meshtrade.reporting.income_report.v1 import entry_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_entry__pb2
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n8meshtrade/reporting/income_report/v1/income_report.proto\x12$meshtrade.reporting.income_report.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dmeshtrade/type/v1/token.proto\x1a\x1fmeshtrade/type/v1/address.proto\x1a\x35meshtrade/reporting/income_report/v1/disclaimer.proto\x1a\x30meshtrade/reporting/income_report/v1/entry.proto\"\x99\x05\n\x0cIncomeReport\x12\x45\n\x07\x65ntries\x18\x01 \x03(\x0b\x32+.meshtrade.reporting.income_report.v1.EntryR\x07\x65ntries\x12G\n\x12reporting_currency\x18\x02 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x11reportingCurrency\x12Q\n\x06period\x18\x03 \x01(\x0b\x32\x39.meshtrade.reporting.income_report.v1.IncomeReport.PeriodR\x06period\x12\x43\n\x0fgeneration_date\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0egenerationDate\x12%\n\x0e\x61\x63\x63ount_number\x18\x05 \x01(\tR\raccountNumber\x12R\n\x0b\x64isclaimers\x18\x06 \x03(\x0b\x32\x30.meshtrade.reporting.income_report.v1.DisclaimerR\x0b\x64isclaimers\x12\x41\n\x0e\x63lient_address\x18\x07 \x01(\x0b\x32\x1a.meshtrade.type.v1.AddressR\rclientAddress\x12\x1f\n\x0b\x63lient_name\x18\x08 \x01(\tR\nclientName\x12\x1c\n\tcopyright\x18\t \x01(\tR\tcopyright\x1a\x64\n\x06Period\x12.\n\x04\x66rom\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x66rom\x12*\n\x02to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x02toBu\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
|
|
33
|
-
|
|
34
|
-
_globals = globals()
|
|
35
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
36
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.income_report_pb2', _globals)
|
|
37
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
38
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
39
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
|
|
40
|
-
_globals['_INCOMEREPORT']._serialized_start=301
|
|
41
|
-
_globals['_INCOMEREPORT']._serialized_end=966
|
|
42
|
-
_globals['_INCOMEREPORT_PERIOD']._serialized_start=866
|
|
43
|
-
_globals['_INCOMEREPORT_PERIOD']._serialized_end=966
|
|
44
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
|
|
3
|
-
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
4
|
-
from meshtrade.type.v1 import token_pb2 as _token_pb2
|
|
5
|
-
from meshtrade.type.v1 import address_pb2 as _address_pb2
|
|
6
|
-
from meshtrade.reporting.income_report.v1 import disclaimer_pb2 as _disclaimer_pb2
|
|
7
|
-
from meshtrade.reporting.income_report.v1 import entry_pb2 as _entry_pb2
|
|
8
|
-
from google.protobuf.internal import containers as _containers
|
|
9
|
-
from google.protobuf import descriptor as _descriptor
|
|
10
|
-
from google.protobuf import message as _message
|
|
11
|
-
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
12
|
-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
13
|
-
|
|
14
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
15
|
-
|
|
16
|
-
class IncomeReport(_message.Message):
|
|
17
|
-
__slots__ = ("entries", "reporting_currency", "period", "generation_date", "account_number", "disclaimers", "client_address", "client_name", "copyright")
|
|
18
|
-
class Period(_message.Message):
|
|
19
|
-
__slots__ = ("to",)
|
|
20
|
-
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
-
TO_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
-
to: _timestamp_pb2.Timestamp
|
|
23
|
-
def __init__(self, to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., **kwargs) -> None: ...
|
|
24
|
-
ENTRIES_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
-
REPORTING_CURRENCY_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
-
PERIOD_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
-
GENERATION_DATE_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
-
ACCOUNT_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
-
DISCLAIMERS_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
-
CLIENT_ADDRESS_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
-
CLIENT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
-
COPYRIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
-
entries: _containers.RepeatedCompositeFieldContainer[_entry_pb2.Entry]
|
|
34
|
-
reporting_currency: _token_pb2.Token
|
|
35
|
-
period: IncomeReport.Period
|
|
36
|
-
generation_date: _timestamp_pb2.Timestamp
|
|
37
|
-
account_number: str
|
|
38
|
-
disclaimers: _containers.RepeatedCompositeFieldContainer[_disclaimer_pb2.Disclaimer]
|
|
39
|
-
client_address: _address_pb2.Address
|
|
40
|
-
client_name: str
|
|
41
|
-
copyright: str
|
|
42
|
-
def __init__(self, entries: _Optional[_Iterable[_Union[_entry_pb2.Entry, _Mapping]]] = ..., reporting_currency: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., period: _Optional[_Union[IncomeReport.Period, _Mapping]] = ..., generation_date: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., account_number: _Optional[str] = ..., disclaimers: _Optional[_Iterable[_Union[_disclaimer_pb2.Disclaimer, _Mapping]]] = ..., client_address: _Optional[_Union[_address_pb2.Address, _Mapping]] = ..., client_name: _Optional[str] = ..., copyright: _Optional[str] = ...) -> None: ...
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: meshtrade/reporting/income_report/v1/service.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'meshtrade/reporting/income_report/v1/service.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
-
from meshtrade.reporting.income_report.v1 import income_report_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_income__report__pb2
|
|
28
|
-
from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
|
|
29
|
-
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2meshtrade/reporting/income_report/v1/service.proto\x12$meshtrade.reporting.income_report.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x38meshtrade/reporting/income_report/v1/income_report.proto\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\"\x95\x01\n\x16GetIncomeReportRequest\x12\x1f\n\x0b\x61\x63\x63ount_num\x18\x01 \x01(\tR\naccountNum\x12.\n\x04\x66rom\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x66rom\x12*\n\x02to\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x02to\"\x82\x03\n\x1bGetExcelIncomeReportRequest\x12\x84\x01\n\x0b\x61\x63\x63ount_num\x18\x01 \x01(\tBc\xbaH`r\x0f\x10\x01\x32\x0b^[0-9]{1,}$\xba\x01L\n\x14\x61\x63\x63ount_num.required\x12\x17\x61\x63\x63ount_num is required\x1a\x1bthis.matches(\'^[0-9]{1,}$\')R\naccountNum\x12q\n\x04\x66rom\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampBA\xbaH>\xba\x01;\n\rfrom.required\x12\x1c\'from\' timestamp is required\x1a\x0cthis != nullR\x04\x66rom\x12i\n\x02to\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB=\xbaH:\xba\x01\x37\n\x0bto.required\x12\x1a\'to\' timestamp is required\x1a\x0cthis != nullR\x02to\"A\n\x1cGetExcelIncomeReportResponse\x12!\n\x0c\x65xcel_base64\x18\x01 \x01(\tR\x0b\x65xcelBase642\xdb\x02\n\x13IncomeReportService\x12\x93\x01\n\x0fGetIncomeReport\x12<.meshtrade.reporting.income_report.v1.GetIncomeReportRequest\x1a\x32.meshtrade.reporting.income_report.v1.IncomeReport\"\x0e\xa0\xb5\x18\x01\xaa\xb5\x18\x06\n\x04\x81\x9b\xee\x02\x12\xad\x01\n\x14GetExcelIncomeReport\x12\x41.meshtrade.reporting.income_report.v1.GetExcelIncomeReportRequest\x1a\x42.meshtrade.reporting.income_report.v1.GetExcelIncomeReportResponse\"\x0e\xa0\xb5\x18\x01\xaa\xb5\x18\x06\n\x04\x81\x9b\xee\x02\x42u\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1b\x06proto3')
|
|
33
|
-
|
|
34
|
-
_globals = globals()
|
|
35
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
36
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.reporting.income_report.v1.service_pb2', _globals)
|
|
37
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
38
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
39
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n+co.meshtrade.api.reporting.income_report.v1ZFgithub.com/meshtrade/api/go/reporting/income_report/v1;income_reportv1'
|
|
40
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['account_num']._loaded_options = None
|
|
41
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['account_num']._serialized_options = b'\272H`r\017\020\0012\013^[0-9]{1,}$\272\001L\n\024account_num.required\022\027account_num is required\032\033this.matches(\'^[0-9]{1,}$\')'
|
|
42
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['from']._loaded_options = None
|
|
43
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['from']._serialized_options = b'\272H>\272\001;\n\rfrom.required\022\034\'from\' timestamp is required\032\014this != null'
|
|
44
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['to']._loaded_options = None
|
|
45
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST'].fields_by_name['to']._serialized_options = b'\272H:\272\0017\n\013to.required\022\032\'to\' timestamp is required\032\014this != null'
|
|
46
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetIncomeReport']._loaded_options = None
|
|
47
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetIncomeReport']._serialized_options = b'\240\265\030\001\252\265\030\006\n\004\201\233\356\002'
|
|
48
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetExcelIncomeReport']._loaded_options = None
|
|
49
|
-
_globals['_INCOMEREPORTSERVICE'].methods_by_name['GetExcelIncomeReport']._serialized_options = b'\240\265\030\001\252\265\030\006\n\004\201\233\356\002'
|
|
50
|
-
_globals['_GETINCOMEREPORTREQUEST']._serialized_start=286
|
|
51
|
-
_globals['_GETINCOMEREPORTREQUEST']._serialized_end=435
|
|
52
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST']._serialized_start=438
|
|
53
|
-
_globals['_GETEXCELINCOMEREPORTREQUEST']._serialized_end=824
|
|
54
|
-
_globals['_GETEXCELINCOMEREPORTRESPONSE']._serialized_start=826
|
|
55
|
-
_globals['_GETEXCELINCOMEREPORTRESPONSE']._serialized_end=891
|
|
56
|
-
_globals['_INCOMEREPORTSERVICE']._serialized_start=894
|
|
57
|
-
_globals['_INCOMEREPORTSERVICE']._serialized_end=1241
|
|
58
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
|
|
3
|
-
from buf.validate import validate_pb2 as _validate_pb2
|
|
4
|
-
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
5
|
-
from meshtrade.reporting.income_report.v1 import income_report_pb2 as _income_report_pb2
|
|
6
|
-
from meshtrade.iam.role.v1 import role_pb2 as _role_pb2
|
|
7
|
-
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
8
|
-
from google.protobuf import descriptor as _descriptor
|
|
9
|
-
from google.protobuf import message as _message
|
|
10
|
-
from collections.abc import Mapping as _Mapping
|
|
11
|
-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
12
|
-
|
|
13
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
14
|
-
|
|
15
|
-
class GetIncomeReportRequest(_message.Message):
|
|
16
|
-
__slots__ = ("account_num", "to")
|
|
17
|
-
ACCOUNT_NUM_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
-
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
-
TO_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
-
account_num: str
|
|
21
|
-
to: _timestamp_pb2.Timestamp
|
|
22
|
-
def __init__(self, account_num: _Optional[str] = ..., to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., **kwargs) -> None: ...
|
|
23
|
-
|
|
24
|
-
class GetExcelIncomeReportRequest(_message.Message):
|
|
25
|
-
__slots__ = ("account_num", "to")
|
|
26
|
-
ACCOUNT_NUM_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
-
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
-
TO_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
-
account_num: str
|
|
30
|
-
to: _timestamp_pb2.Timestamp
|
|
31
|
-
def __init__(self, account_num: _Optional[str] = ..., to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., **kwargs) -> None: ...
|
|
32
|
-
|
|
33
|
-
class GetExcelIncomeReportResponse(_message.Message):
|
|
34
|
-
__slots__ = ("excel_base64",)
|
|
35
|
-
EXCEL_BASE64_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
-
excel_base64: str
|
|
37
|
-
def __init__(self, excel_base64: _Optional[str] = ...) -> None: ...
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
-
import grpc
|
|
4
|
-
|
|
5
|
-
from meshtrade.reporting.income_report.v1 import income_report_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_income__report__pb2
|
|
6
|
-
from meshtrade.reporting.income_report.v1 import service_pb2 as meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class IncomeReportServiceStub(object):
|
|
10
|
-
"""
|
|
11
|
-
IncomeReportService manages income report generation and export.
|
|
12
|
-
|
|
13
|
-
This service allows clients to retrieve structured income reports
|
|
14
|
-
and download them as Excel files. Reports are generated for a
|
|
15
|
-
specified account over a given time range and denominated in
|
|
16
|
-
a selected reporting currency.
|
|
17
|
-
|
|
18
|
-
All operations require access to financial reporting permissions.
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
def __init__(self, channel):
|
|
22
|
-
"""Constructor.
|
|
23
|
-
|
|
24
|
-
Args:
|
|
25
|
-
channel: A grpc.Channel.
|
|
26
|
-
"""
|
|
27
|
-
self.GetIncomeReport = channel.unary_unary(
|
|
28
|
-
'/meshtrade.reporting.income_report.v1.IncomeReportService/GetIncomeReport',
|
|
29
|
-
request_serializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetIncomeReportRequest.SerializeToString,
|
|
30
|
-
response_deserializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_income__report__pb2.IncomeReport.FromString,
|
|
31
|
-
_registered_method=True)
|
|
32
|
-
self.GetExcelIncomeReport = channel.unary_unary(
|
|
33
|
-
'/meshtrade.reporting.income_report.v1.IncomeReportService/GetExcelIncomeReport',
|
|
34
|
-
request_serializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetExcelIncomeReportRequest.SerializeToString,
|
|
35
|
-
response_deserializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetExcelIncomeReportResponse.FromString,
|
|
36
|
-
_registered_method=True)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class IncomeReportServiceServicer(object):
|
|
40
|
-
"""
|
|
41
|
-
IncomeReportService manages income report generation and export.
|
|
42
|
-
|
|
43
|
-
This service allows clients to retrieve structured income reports
|
|
44
|
-
and download them as Excel files. Reports are generated for a
|
|
45
|
-
specified account over a given time range and denominated in
|
|
46
|
-
a selected reporting currency.
|
|
47
|
-
|
|
48
|
-
All operations require access to financial reporting permissions.
|
|
49
|
-
"""
|
|
50
|
-
|
|
51
|
-
def GetIncomeReport(self, request, context):
|
|
52
|
-
"""
|
|
53
|
-
Retrieves a structured income report for a specific account and time range.
|
|
54
|
-
|
|
55
|
-
Parameters:
|
|
56
|
-
- account_num: Unique account identifier
|
|
57
|
-
- from: Start timestamp for the report period
|
|
58
|
-
- to: End timestamp for the report period
|
|
59
|
-
- reporting_currency_token: Token in which report values are denominated
|
|
60
|
-
|
|
61
|
-
Returns:
|
|
62
|
-
- GetIncomeReportResponse: Structured income report with earnings breakdown
|
|
63
|
-
"""
|
|
64
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
65
|
-
context.set_details('Method not implemented!')
|
|
66
|
-
raise NotImplementedError('Method not implemented!')
|
|
67
|
-
|
|
68
|
-
def GetExcelIncomeReport(self, request, context):
|
|
69
|
-
"""
|
|
70
|
-
Exports an income report to Excel format for download.
|
|
71
|
-
|
|
72
|
-
Parameters:
|
|
73
|
-
- account_num: Unique account identifier
|
|
74
|
-
- from: Start timestamp for the report period
|
|
75
|
-
- to: End timestamp for the report period
|
|
76
|
-
- reporting_currency_token: Token in which report values are denominated
|
|
77
|
-
|
|
78
|
-
Returns:
|
|
79
|
-
- GetExcelIncomeReportResponse: Base64-encoded Excel file containing the report
|
|
80
|
-
"""
|
|
81
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
82
|
-
context.set_details('Method not implemented!')
|
|
83
|
-
raise NotImplementedError('Method not implemented!')
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
def add_IncomeReportServiceServicer_to_server(servicer, server):
|
|
87
|
-
rpc_method_handlers = {
|
|
88
|
-
'GetIncomeReport': grpc.unary_unary_rpc_method_handler(
|
|
89
|
-
servicer.GetIncomeReport,
|
|
90
|
-
request_deserializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetIncomeReportRequest.FromString,
|
|
91
|
-
response_serializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_income__report__pb2.IncomeReport.SerializeToString,
|
|
92
|
-
),
|
|
93
|
-
'GetExcelIncomeReport': grpc.unary_unary_rpc_method_handler(
|
|
94
|
-
servicer.GetExcelIncomeReport,
|
|
95
|
-
request_deserializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetExcelIncomeReportRequest.FromString,
|
|
96
|
-
response_serializer=meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetExcelIncomeReportResponse.SerializeToString,
|
|
97
|
-
),
|
|
98
|
-
}
|
|
99
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
100
|
-
'meshtrade.reporting.income_report.v1.IncomeReportService', rpc_method_handlers)
|
|
101
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
102
|
-
server.add_registered_method_handlers('meshtrade.reporting.income_report.v1.IncomeReportService', rpc_method_handlers)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
# This class is part of an EXPERIMENTAL API.
|
|
106
|
-
class IncomeReportService(object):
|
|
107
|
-
"""
|
|
108
|
-
IncomeReportService manages income report generation and export.
|
|
109
|
-
|
|
110
|
-
This service allows clients to retrieve structured income reports
|
|
111
|
-
and download them as Excel files. Reports are generated for a
|
|
112
|
-
specified account over a given time range and denominated in
|
|
113
|
-
a selected reporting currency.
|
|
114
|
-
|
|
115
|
-
All operations require access to financial reporting permissions.
|
|
116
|
-
"""
|
|
117
|
-
|
|
118
|
-
@staticmethod
|
|
119
|
-
def GetIncomeReport(request,
|
|
120
|
-
target,
|
|
121
|
-
options=(),
|
|
122
|
-
channel_credentials=None,
|
|
123
|
-
call_credentials=None,
|
|
124
|
-
insecure=False,
|
|
125
|
-
compression=None,
|
|
126
|
-
wait_for_ready=None,
|
|
127
|
-
timeout=None,
|
|
128
|
-
metadata=None):
|
|
129
|
-
return grpc.experimental.unary_unary(
|
|
130
|
-
request,
|
|
131
|
-
target,
|
|
132
|
-
'/meshtrade.reporting.income_report.v1.IncomeReportService/GetIncomeReport',
|
|
133
|
-
meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetIncomeReportRequest.SerializeToString,
|
|
134
|
-
meshtrade_dot_reporting_dot_income__report_dot_v1_dot_income__report__pb2.IncomeReport.FromString,
|
|
135
|
-
options,
|
|
136
|
-
channel_credentials,
|
|
137
|
-
insecure,
|
|
138
|
-
call_credentials,
|
|
139
|
-
compression,
|
|
140
|
-
wait_for_ready,
|
|
141
|
-
timeout,
|
|
142
|
-
metadata,
|
|
143
|
-
_registered_method=True)
|
|
144
|
-
|
|
145
|
-
@staticmethod
|
|
146
|
-
def GetExcelIncomeReport(request,
|
|
147
|
-
target,
|
|
148
|
-
options=(),
|
|
149
|
-
channel_credentials=None,
|
|
150
|
-
call_credentials=None,
|
|
151
|
-
insecure=False,
|
|
152
|
-
compression=None,
|
|
153
|
-
wait_for_ready=None,
|
|
154
|
-
timeout=None,
|
|
155
|
-
metadata=None):
|
|
156
|
-
return grpc.experimental.unary_unary(
|
|
157
|
-
request,
|
|
158
|
-
target,
|
|
159
|
-
'/meshtrade.reporting.income_report.v1.IncomeReportService/GetExcelIncomeReport',
|
|
160
|
-
meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetExcelIncomeReportRequest.SerializeToString,
|
|
161
|
-
meshtrade_dot_reporting_dot_income__report_dot_v1_dot_service__pb2.GetExcelIncomeReportResponse.FromString,
|
|
162
|
-
options,
|
|
163
|
-
channel_credentials,
|
|
164
|
-
insecure,
|
|
165
|
-
call_credentials,
|
|
166
|
-
compression,
|
|
167
|
-
wait_for_ready,
|
|
168
|
-
timeout,
|
|
169
|
-
metadata,
|
|
170
|
-
_registered_method=True)
|
|
File without changes
|
|
File without changes
|
/meshtrade/reporting/{income_report/v1/entry_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|