weave-python 0.28.2__py3-none-any.whl → 0.30.3__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.
- weave/weaveapi/auth/v1/service_pb2.py +194 -98
- weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
- weave/weaveapi/auth/v1/session_pb2.py +14 -6
- weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/usage_pb2.py +18 -14
- weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/user_pb2.py +60 -18
- weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
- weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
- weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/generate_pb2.py +32 -6
- weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
- weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/service_pb2.py +52 -22
- weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
- weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
- weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
- weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
- weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
- weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
- weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
- weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/model_pb2.py +56 -20
- weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
- weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
- weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
- weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
- weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/service_pb2.py +228 -90
- weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
- weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
- weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
- weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
- weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
- weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
- weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
- weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
- weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
- weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
- weave/weaveapi/payment/v1/service_pb2.py +264 -98
- weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
- weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
- weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/auth_pb2.py +6 -6
- weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
- weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
- weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
- weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
- weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
- weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/service_pb2.py +96 -36
- weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
- weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
- weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
- weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
- weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/storage_pb2.py +20 -6
- weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
- weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
- weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
- weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
- weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
- weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
- weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
- weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
- weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
- weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
- weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
- weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
- weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
- weave/weavesql/llmxdb/capabilities.py +487 -0
- weave/weavesql/llmxdb/changes.py +297 -0
- weave/weavesql/llmxdb/models.py +594 -0
- weave/weavesql/llmxdb/providers.py +348 -0
- weave/weavesql/llmxdb/scraper_runs.py +287 -0
- weave/weavesql/llmxdb/search.py +721 -0
- weave/weavesql/weavedb/dataset.py +75 -0
- weave/weavesql/weavedb/models.py +135 -0
- weave/weavesql/weavedb/relationships.py +72 -0
- weave/weavesql/weavedb/storage.py +113 -0
- weave/weavesql/weavedb/synthesizer.py +107 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/METADATA +3 -3
- weave_python-0.30.3.dist-info/RECORD +131 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
- weave_python-0.28.2.dist-info/RECORD +0 -120
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,1490 +3,1629 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
10
|
+
from google.protobuf.internal import containers as _containers
|
|
11
|
+
from weaveapi.payment.v1 import invoice_pb2 as _invoice_pb2
|
|
12
|
+
from weaveapi.payment.v1 import subscription_pb2 as _subscription_pb2
|
|
13
|
+
import builtins as _builtins
|
|
14
|
+
import sys
|
|
15
|
+
import typing as _typing
|
|
16
|
+
|
|
17
|
+
if sys.version_info >= (3, 10):
|
|
18
|
+
from typing import TypeAlias as _TypeAlias
|
|
19
|
+
else:
|
|
20
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
23
|
+
|
|
24
|
+
@_typing.final
|
|
25
|
+
class CreateCheckoutSessionRequest(_message.Message):
|
|
20
26
|
"""Request/Response messages"""
|
|
21
27
|
|
|
22
|
-
DESCRIPTOR:
|
|
28
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
23
29
|
|
|
24
|
-
@
|
|
25
|
-
class MetadataEntry(
|
|
26
|
-
DESCRIPTOR:
|
|
30
|
+
@_typing.final
|
|
31
|
+
class MetadataEntry(_message.Message):
|
|
32
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
27
33
|
|
|
28
|
-
KEY_FIELD_NUMBER:
|
|
29
|
-
VALUE_FIELD_NUMBER:
|
|
30
|
-
key:
|
|
31
|
-
value:
|
|
34
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
35
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
36
|
+
key: _builtins.str
|
|
37
|
+
value: _builtins.str
|
|
32
38
|
def __init__(
|
|
33
39
|
self,
|
|
34
40
|
*,
|
|
35
|
-
key:
|
|
36
|
-
value:
|
|
41
|
+
key: _builtins.str | None = ...,
|
|
42
|
+
value: _builtins.str | None = ...,
|
|
37
43
|
) -> None: ...
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
45
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
46
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
47
|
+
"key", b"key", "value", b"value"
|
|
48
|
+
] # noqa: Y015
|
|
49
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
50
|
+
|
|
51
|
+
PRICE_ID_FIELD_NUMBER: _builtins.int
|
|
52
|
+
SUCCESS_URL_FIELD_NUMBER: _builtins.int
|
|
53
|
+
CANCEL_URL_FIELD_NUMBER: _builtins.int
|
|
54
|
+
PROMO_CODE_FIELD_NUMBER: _builtins.int
|
|
55
|
+
ALLOW_PROMOTION_CODES_FIELD_NUMBER: _builtins.int
|
|
56
|
+
TRIAL_DAYS_FIELD_NUMBER: _builtins.int
|
|
57
|
+
METADATA_FIELD_NUMBER: _builtins.int
|
|
58
|
+
CUSTOMER_EMAIL_FIELD_NUMBER: _builtins.int
|
|
59
|
+
AUTOMATIC_TAX_FIELD_NUMBER: _builtins.int
|
|
60
|
+
TAX_ID_COLLECTION_FIELD_NUMBER: _builtins.int
|
|
61
|
+
price_id: _builtins.str
|
|
53
62
|
"""Stripe price ID for the plan"""
|
|
54
|
-
success_url:
|
|
63
|
+
success_url: _builtins.str
|
|
55
64
|
"""Where to redirect on success"""
|
|
56
|
-
cancel_url:
|
|
65
|
+
cancel_url: _builtins.str
|
|
57
66
|
"""Where to redirect on cancel"""
|
|
58
|
-
promo_code:
|
|
67
|
+
promo_code: _builtins.str
|
|
59
68
|
"""Optional parameters"""
|
|
60
|
-
allow_promotion_codes:
|
|
61
|
-
trial_days:
|
|
62
|
-
customer_email:
|
|
69
|
+
allow_promotion_codes: _builtins.bool
|
|
70
|
+
trial_days: _builtins.int
|
|
71
|
+
customer_email: _builtins.str
|
|
63
72
|
"""Customer info (if not logged in)"""
|
|
64
|
-
automatic_tax:
|
|
73
|
+
automatic_tax: _builtins.bool
|
|
65
74
|
"""Tax"""
|
|
66
|
-
@property
|
|
67
|
-
def metadata(
|
|
68
|
-
|
|
69
|
-
) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
70
|
-
@property
|
|
75
|
+
@_builtins.property
|
|
76
|
+
def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ...
|
|
77
|
+
@_builtins.property
|
|
71
78
|
def tax_id_collection(
|
|
72
79
|
self,
|
|
73
|
-
) ->
|
|
80
|
+
) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
74
81
|
"""Types of tax IDs to collect"""
|
|
75
82
|
|
|
76
83
|
def __init__(
|
|
77
84
|
self,
|
|
78
85
|
*,
|
|
79
|
-
price_id:
|
|
80
|
-
success_url:
|
|
81
|
-
cancel_url:
|
|
82
|
-
promo_code:
|
|
83
|
-
allow_promotion_codes:
|
|
84
|
-
trial_days:
|
|
85
|
-
metadata:
|
|
86
|
-
customer_email:
|
|
87
|
-
automatic_tax:
|
|
88
|
-
tax_id_collection:
|
|
89
|
-
) -> None: ...
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
86
|
+
price_id: _builtins.str | None = ...,
|
|
87
|
+
success_url: _builtins.str | None = ...,
|
|
88
|
+
cancel_url: _builtins.str | None = ...,
|
|
89
|
+
promo_code: _builtins.str | None = ...,
|
|
90
|
+
allow_promotion_codes: _builtins.bool | None = ...,
|
|
91
|
+
trial_days: _builtins.int | None = ...,
|
|
92
|
+
metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
|
|
93
|
+
customer_email: _builtins.str | None = ...,
|
|
94
|
+
automatic_tax: _builtins.bool | None = ...,
|
|
95
|
+
tax_id_collection: _abc.Iterable[_builtins.str] | None = ...,
|
|
96
|
+
) -> None: ...
|
|
97
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
98
|
+
"allow_promotion_codes",
|
|
99
|
+
b"allow_promotion_codes",
|
|
100
|
+
"automatic_tax",
|
|
101
|
+
b"automatic_tax",
|
|
102
|
+
"cancel_url",
|
|
103
|
+
b"cancel_url",
|
|
104
|
+
"customer_email",
|
|
105
|
+
b"customer_email",
|
|
106
|
+
"metadata",
|
|
107
|
+
b"metadata",
|
|
108
|
+
"price_id",
|
|
109
|
+
b"price_id",
|
|
110
|
+
"promo_code",
|
|
111
|
+
b"promo_code",
|
|
112
|
+
"success_url",
|
|
113
|
+
b"success_url",
|
|
114
|
+
"tax_id_collection",
|
|
115
|
+
b"tax_id_collection",
|
|
116
|
+
"trial_days",
|
|
117
|
+
b"trial_days",
|
|
118
|
+
] # noqa: Y015
|
|
119
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
120
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
121
|
+
"allow_promotion_codes",
|
|
122
|
+
b"allow_promotion_codes",
|
|
123
|
+
"automatic_tax",
|
|
124
|
+
b"automatic_tax",
|
|
125
|
+
"cancel_url",
|
|
126
|
+
b"cancel_url",
|
|
127
|
+
"customer_email",
|
|
128
|
+
b"customer_email",
|
|
129
|
+
"metadata",
|
|
130
|
+
b"metadata",
|
|
131
|
+
"price_id",
|
|
132
|
+
b"price_id",
|
|
133
|
+
"promo_code",
|
|
134
|
+
b"promo_code",
|
|
135
|
+
"success_url",
|
|
136
|
+
b"success_url",
|
|
137
|
+
"tax_id_collection",
|
|
138
|
+
b"tax_id_collection",
|
|
139
|
+
"trial_days",
|
|
140
|
+
b"trial_days",
|
|
141
|
+
] # noqa: Y015
|
|
142
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
143
|
+
|
|
144
|
+
Global___CreateCheckoutSessionRequest: _TypeAlias = CreateCheckoutSessionRequest # noqa: Y015
|
|
145
|
+
|
|
146
|
+
@_typing.final
|
|
147
|
+
class CreateCheckoutSessionResponse(_message.Message):
|
|
148
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
149
|
+
|
|
150
|
+
SESSION_ID_FIELD_NUMBER: _builtins.int
|
|
151
|
+
CHECKOUT_URL_FIELD_NUMBER: _builtins.int
|
|
152
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
153
|
+
session_id: _builtins.str
|
|
154
|
+
checkout_url: _builtins.str
|
|
127
155
|
"""Stripe hosted checkout URL"""
|
|
128
|
-
@property
|
|
129
|
-
def expires_at(self) ->
|
|
156
|
+
@_builtins.property
|
|
157
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
130
158
|
def __init__(
|
|
131
159
|
self,
|
|
132
160
|
*,
|
|
133
|
-
session_id:
|
|
134
|
-
checkout_url:
|
|
135
|
-
expires_at:
|
|
136
|
-
) -> None: ...
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
161
|
+
session_id: _builtins.str | None = ...,
|
|
162
|
+
checkout_url: _builtins.str | None = ...,
|
|
163
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
164
|
+
) -> None: ...
|
|
165
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
166
|
+
"checkout_url",
|
|
167
|
+
b"checkout_url",
|
|
168
|
+
"expires_at",
|
|
169
|
+
b"expires_at",
|
|
170
|
+
"session_id",
|
|
171
|
+
b"session_id",
|
|
172
|
+
] # noqa: Y015
|
|
173
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
174
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
175
|
+
"checkout_url",
|
|
176
|
+
b"checkout_url",
|
|
177
|
+
"expires_at",
|
|
178
|
+
b"expires_at",
|
|
179
|
+
"session_id",
|
|
180
|
+
b"session_id",
|
|
181
|
+
] # noqa: Y015
|
|
182
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
183
|
+
|
|
184
|
+
Global___CreateCheckoutSessionResponse: _TypeAlias = CreateCheckoutSessionResponse # noqa: Y015
|
|
185
|
+
|
|
186
|
+
@_typing.final
|
|
187
|
+
class GetSubscriptionStatusRequest(_message.Message):
|
|
156
188
|
"""Uses JWT from Authorization header"""
|
|
157
189
|
|
|
158
|
-
DESCRIPTOR:
|
|
190
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
159
191
|
|
|
160
192
|
def __init__(
|
|
161
193
|
self,
|
|
162
194
|
) -> None: ...
|
|
163
195
|
|
|
164
|
-
|
|
196
|
+
Global___GetSubscriptionStatusRequest: _TypeAlias = GetSubscriptionStatusRequest # noqa: Y015
|
|
165
197
|
|
|
166
|
-
@
|
|
167
|
-
class GetSubscriptionStatusResponse(
|
|
168
|
-
DESCRIPTOR:
|
|
198
|
+
@_typing.final
|
|
199
|
+
class GetSubscriptionStatusResponse(_message.Message):
|
|
200
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
169
201
|
|
|
170
|
-
SUBSCRIPTION_FIELD_NUMBER:
|
|
171
|
-
@property
|
|
172
|
-
def subscription(
|
|
173
|
-
self,
|
|
174
|
-
) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
|
|
202
|
+
SUBSCRIPTION_FIELD_NUMBER: _builtins.int
|
|
203
|
+
@_builtins.property
|
|
204
|
+
def subscription(self) -> _subscription_pb2.SubscriptionStatus: ...
|
|
175
205
|
def __init__(
|
|
176
206
|
self,
|
|
177
207
|
*,
|
|
178
|
-
subscription:
|
|
179
|
-
| None = ...,
|
|
180
|
-
) -> None: ...
|
|
181
|
-
def HasField(
|
|
182
|
-
self, field_name: typing.Literal["subscription", b"subscription"]
|
|
183
|
-
) -> builtins.bool: ...
|
|
184
|
-
def ClearField(
|
|
185
|
-
self, field_name: typing.Literal["subscription", b"subscription"]
|
|
208
|
+
subscription: _subscription_pb2.SubscriptionStatus | None = ...,
|
|
186
209
|
) -> None: ...
|
|
210
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["subscription", b"subscription"] # noqa: Y015
|
|
211
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
212
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["subscription", b"subscription"] # noqa: Y015
|
|
213
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
187
214
|
|
|
188
|
-
|
|
215
|
+
Global___GetSubscriptionStatusResponse: _TypeAlias = GetSubscriptionStatusResponse # noqa: Y015
|
|
189
216
|
|
|
190
|
-
@
|
|
191
|
-
class UpdateSubscriptionRequest(
|
|
192
|
-
DESCRIPTOR:
|
|
217
|
+
@_typing.final
|
|
218
|
+
class UpdateSubscriptionRequest(_message.Message):
|
|
219
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
193
220
|
|
|
194
|
-
@
|
|
195
|
-
class MetadataEntry(
|
|
196
|
-
DESCRIPTOR:
|
|
221
|
+
@_typing.final
|
|
222
|
+
class MetadataEntry(_message.Message):
|
|
223
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
197
224
|
|
|
198
|
-
KEY_FIELD_NUMBER:
|
|
199
|
-
VALUE_FIELD_NUMBER:
|
|
200
|
-
key:
|
|
201
|
-
value:
|
|
225
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
226
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
227
|
+
key: _builtins.str
|
|
228
|
+
value: _builtins.str
|
|
202
229
|
def __init__(
|
|
203
230
|
self,
|
|
204
231
|
*,
|
|
205
|
-
key:
|
|
206
|
-
value:
|
|
232
|
+
key: _builtins.str | None = ...,
|
|
233
|
+
value: _builtins.str | None = ...,
|
|
207
234
|
) -> None: ...
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
235
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
236
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
237
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
238
|
+
"key", b"key", "value", b"value"
|
|
239
|
+
] # noqa: Y015
|
|
240
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
241
|
+
|
|
242
|
+
PAYMENT_METHOD_ID_FIELD_NUMBER: _builtins.int
|
|
243
|
+
PROMO_CODE_FIELD_NUMBER: _builtins.int
|
|
244
|
+
CANCEL_AT_PERIOD_END_FIELD_NUMBER: _builtins.int
|
|
245
|
+
METADATA_FIELD_NUMBER: _builtins.int
|
|
246
|
+
payment_method_id: _builtins.str
|
|
247
|
+
promo_code: _builtins.str
|
|
248
|
+
cancel_at_period_end: _builtins.bool
|
|
249
|
+
@_builtins.property
|
|
250
|
+
def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ...
|
|
223
251
|
def __init__(
|
|
224
252
|
self,
|
|
225
253
|
*,
|
|
226
|
-
payment_method_id:
|
|
227
|
-
promo_code:
|
|
228
|
-
cancel_at_period_end:
|
|
229
|
-
metadata:
|
|
230
|
-
) -> None: ...
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
payment_method_id: _builtins.str | None = ...,
|
|
255
|
+
promo_code: _builtins.str | None = ...,
|
|
256
|
+
cancel_at_period_end: _builtins.bool | None = ...,
|
|
257
|
+
metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
|
|
258
|
+
) -> None: ...
|
|
259
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
260
|
+
"cancel_at_period_end",
|
|
261
|
+
b"cancel_at_period_end",
|
|
262
|
+
"metadata",
|
|
263
|
+
b"metadata",
|
|
264
|
+
"payment_method_id",
|
|
265
|
+
b"payment_method_id",
|
|
266
|
+
"promo_code",
|
|
267
|
+
b"promo_code",
|
|
268
|
+
] # noqa: Y015
|
|
269
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
270
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
271
|
+
"cancel_at_period_end",
|
|
272
|
+
b"cancel_at_period_end",
|
|
273
|
+
"metadata",
|
|
274
|
+
b"metadata",
|
|
275
|
+
"payment_method_id",
|
|
276
|
+
b"payment_method_id",
|
|
277
|
+
"promo_code",
|
|
278
|
+
b"promo_code",
|
|
279
|
+
] # noqa: Y015
|
|
280
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
281
|
+
|
|
282
|
+
Global___UpdateSubscriptionRequest: _TypeAlias = UpdateSubscriptionRequest # noqa: Y015
|
|
283
|
+
|
|
284
|
+
@_typing.final
|
|
285
|
+
class UpdateSubscriptionResponse(_message.Message):
|
|
286
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
287
|
+
|
|
288
|
+
SUBSCRIPTION_FIELD_NUMBER: _builtins.int
|
|
289
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
290
|
+
message: _builtins.str
|
|
291
|
+
@_builtins.property
|
|
292
|
+
def subscription(self) -> _subscription_pb2.SubscriptionStatus: ...
|
|
258
293
|
def __init__(
|
|
259
294
|
self,
|
|
260
295
|
*,
|
|
261
|
-
subscription:
|
|
262
|
-
| None = ...,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
) ->
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
FEEDBACK_FIELD_NUMBER: builtins.int
|
|
284
|
-
immediately: builtins.bool
|
|
296
|
+
subscription: _subscription_pb2.SubscriptionStatus | None = ...,
|
|
297
|
+
message: _builtins.str | None = ...,
|
|
298
|
+
) -> None: ...
|
|
299
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
300
|
+
"message", b"message", "subscription", b"subscription"
|
|
301
|
+
] # noqa: Y015
|
|
302
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
303
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
304
|
+
"message", b"message", "subscription", b"subscription"
|
|
305
|
+
] # noqa: Y015
|
|
306
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
307
|
+
|
|
308
|
+
Global___UpdateSubscriptionResponse: _TypeAlias = UpdateSubscriptionResponse # noqa: Y015
|
|
309
|
+
|
|
310
|
+
@_typing.final
|
|
311
|
+
class CancelSubscriptionRequest(_message.Message):
|
|
312
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
313
|
+
|
|
314
|
+
IMMEDIATELY_FIELD_NUMBER: _builtins.int
|
|
315
|
+
REASON_FIELD_NUMBER: _builtins.int
|
|
316
|
+
FEEDBACK_FIELD_NUMBER: _builtins.int
|
|
317
|
+
immediately: _builtins.bool
|
|
285
318
|
"""If true, cancel immediately; otherwise at period end"""
|
|
286
|
-
reason:
|
|
319
|
+
reason: _builtins.str
|
|
287
320
|
"""Optional cancellation reason"""
|
|
288
|
-
feedback:
|
|
321
|
+
feedback: _builtins.str
|
|
289
322
|
"""Optional user feedback"""
|
|
290
323
|
def __init__(
|
|
291
324
|
self,
|
|
292
325
|
*,
|
|
293
|
-
immediately:
|
|
294
|
-
reason:
|
|
295
|
-
feedback:
|
|
296
|
-
) -> None: ...
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
) ->
|
|
318
|
-
@property
|
|
319
|
-
def effective_date(self) ->
|
|
326
|
+
immediately: _builtins.bool | None = ...,
|
|
327
|
+
reason: _builtins.str | None = ...,
|
|
328
|
+
feedback: _builtins.str | None = ...,
|
|
329
|
+
) -> None: ...
|
|
330
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
331
|
+
"feedback", b"feedback", "immediately", b"immediately", "reason", b"reason"
|
|
332
|
+
] # noqa: Y015
|
|
333
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
334
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
335
|
+
"feedback", b"feedback", "immediately", b"immediately", "reason", b"reason"
|
|
336
|
+
] # noqa: Y015
|
|
337
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
338
|
+
|
|
339
|
+
Global___CancelSubscriptionRequest: _TypeAlias = CancelSubscriptionRequest # noqa: Y015
|
|
340
|
+
|
|
341
|
+
@_typing.final
|
|
342
|
+
class CancelSubscriptionResponse(_message.Message):
|
|
343
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
344
|
+
|
|
345
|
+
SUBSCRIPTION_FIELD_NUMBER: _builtins.int
|
|
346
|
+
EFFECTIVE_DATE_FIELD_NUMBER: _builtins.int
|
|
347
|
+
CONFIRMATION_FIELD_NUMBER: _builtins.int
|
|
348
|
+
confirmation: _builtins.str
|
|
349
|
+
@_builtins.property
|
|
350
|
+
def subscription(self) -> _subscription_pb2.SubscriptionStatus: ...
|
|
351
|
+
@_builtins.property
|
|
352
|
+
def effective_date(self) -> _timestamp_pb2.Timestamp: ...
|
|
320
353
|
def __init__(
|
|
321
354
|
self,
|
|
322
355
|
*,
|
|
323
|
-
subscription:
|
|
324
|
-
| None = ...,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
) -> None: ...
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
@
|
|
349
|
-
class ResumeSubscriptionRequest(
|
|
356
|
+
subscription: _subscription_pb2.SubscriptionStatus | None = ...,
|
|
357
|
+
effective_date: _timestamp_pb2.Timestamp | None = ...,
|
|
358
|
+
confirmation: _builtins.str | None = ...,
|
|
359
|
+
) -> None: ...
|
|
360
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
361
|
+
"confirmation",
|
|
362
|
+
b"confirmation",
|
|
363
|
+
"effective_date",
|
|
364
|
+
b"effective_date",
|
|
365
|
+
"subscription",
|
|
366
|
+
b"subscription",
|
|
367
|
+
] # noqa: Y015
|
|
368
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
369
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
370
|
+
"confirmation",
|
|
371
|
+
b"confirmation",
|
|
372
|
+
"effective_date",
|
|
373
|
+
b"effective_date",
|
|
374
|
+
"subscription",
|
|
375
|
+
b"subscription",
|
|
376
|
+
] # noqa: Y015
|
|
377
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
378
|
+
|
|
379
|
+
Global___CancelSubscriptionResponse: _TypeAlias = CancelSubscriptionResponse # noqa: Y015
|
|
380
|
+
|
|
381
|
+
@_typing.final
|
|
382
|
+
class ResumeSubscriptionRequest(_message.Message):
|
|
350
383
|
"""Resume a subscription that was set to cancel at period end"""
|
|
351
384
|
|
|
352
|
-
DESCRIPTOR:
|
|
385
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
353
386
|
|
|
354
387
|
def __init__(
|
|
355
388
|
self,
|
|
356
389
|
) -> None: ...
|
|
357
390
|
|
|
358
|
-
|
|
391
|
+
Global___ResumeSubscriptionRequest: _TypeAlias = ResumeSubscriptionRequest # noqa: Y015
|
|
359
392
|
|
|
360
|
-
@
|
|
361
|
-
class ResumeSubscriptionResponse(
|
|
362
|
-
DESCRIPTOR:
|
|
393
|
+
@_typing.final
|
|
394
|
+
class ResumeSubscriptionResponse(_message.Message):
|
|
395
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
363
396
|
|
|
364
|
-
SUBSCRIPTION_FIELD_NUMBER:
|
|
365
|
-
MESSAGE_FIELD_NUMBER:
|
|
366
|
-
message:
|
|
367
|
-
@property
|
|
368
|
-
def subscription(
|
|
369
|
-
self,
|
|
370
|
-
) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
|
|
397
|
+
SUBSCRIPTION_FIELD_NUMBER: _builtins.int
|
|
398
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
399
|
+
message: _builtins.str
|
|
400
|
+
@_builtins.property
|
|
401
|
+
def subscription(self) -> _subscription_pb2.SubscriptionStatus: ...
|
|
371
402
|
def __init__(
|
|
372
403
|
self,
|
|
373
404
|
*,
|
|
374
|
-
subscription:
|
|
375
|
-
| None = ...,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
) ->
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
CREATED_BEFORE_FIELD_NUMBER: builtins.int
|
|
400
|
-
limit: builtins.int
|
|
405
|
+
subscription: _subscription_pb2.SubscriptionStatus | None = ...,
|
|
406
|
+
message: _builtins.str | None = ...,
|
|
407
|
+
) -> None: ...
|
|
408
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
409
|
+
"message", b"message", "subscription", b"subscription"
|
|
410
|
+
] # noqa: Y015
|
|
411
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
412
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
413
|
+
"message", b"message", "subscription", b"subscription"
|
|
414
|
+
] # noqa: Y015
|
|
415
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
416
|
+
|
|
417
|
+
Global___ResumeSubscriptionResponse: _TypeAlias = ResumeSubscriptionResponse # noqa: Y015
|
|
418
|
+
|
|
419
|
+
@_typing.final
|
|
420
|
+
class GetBillingHistoryRequest(_message.Message):
|
|
421
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
422
|
+
|
|
423
|
+
LIMIT_FIELD_NUMBER: _builtins.int
|
|
424
|
+
STARTING_AFTER_FIELD_NUMBER: _builtins.int
|
|
425
|
+
ENDING_BEFORE_FIELD_NUMBER: _builtins.int
|
|
426
|
+
STATUS_FIELD_NUMBER: _builtins.int
|
|
427
|
+
CREATED_AFTER_FIELD_NUMBER: _builtins.int
|
|
428
|
+
CREATED_BEFORE_FIELD_NUMBER: _builtins.int
|
|
429
|
+
limit: _builtins.int
|
|
401
430
|
"""Default 10"""
|
|
402
|
-
starting_after:
|
|
431
|
+
starting_after: _builtins.str
|
|
403
432
|
"""Pagination cursor"""
|
|
404
|
-
ending_before:
|
|
433
|
+
ending_before: _builtins.str
|
|
405
434
|
"""Pagination cursor"""
|
|
406
|
-
status:
|
|
435
|
+
status: _builtins.str
|
|
407
436
|
"""Filters
|
|
408
437
|
paid, open, void
|
|
409
438
|
"""
|
|
410
|
-
@property
|
|
411
|
-
def created_after(self) ->
|
|
412
|
-
@property
|
|
413
|
-
def created_before(self) ->
|
|
439
|
+
@_builtins.property
|
|
440
|
+
def created_after(self) -> _timestamp_pb2.Timestamp: ...
|
|
441
|
+
@_builtins.property
|
|
442
|
+
def created_before(self) -> _timestamp_pb2.Timestamp: ...
|
|
414
443
|
def __init__(
|
|
415
444
|
self,
|
|
416
445
|
*,
|
|
417
|
-
limit:
|
|
418
|
-
starting_after:
|
|
419
|
-
ending_before:
|
|
420
|
-
status:
|
|
421
|
-
created_after:
|
|
422
|
-
created_before:
|
|
423
|
-
) -> None: ...
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
446
|
+
limit: _builtins.int | None = ...,
|
|
447
|
+
starting_after: _builtins.str | None = ...,
|
|
448
|
+
ending_before: _builtins.str | None = ...,
|
|
449
|
+
status: _builtins.str | None = ...,
|
|
450
|
+
created_after: _timestamp_pb2.Timestamp | None = ...,
|
|
451
|
+
created_before: _timestamp_pb2.Timestamp | None = ...,
|
|
452
|
+
) -> None: ...
|
|
453
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
454
|
+
"created_after",
|
|
455
|
+
b"created_after",
|
|
456
|
+
"created_before",
|
|
457
|
+
b"created_before",
|
|
458
|
+
"ending_before",
|
|
459
|
+
b"ending_before",
|
|
460
|
+
"limit",
|
|
461
|
+
b"limit",
|
|
462
|
+
"starting_after",
|
|
463
|
+
b"starting_after",
|
|
464
|
+
"status",
|
|
465
|
+
b"status",
|
|
466
|
+
] # noqa: Y015
|
|
467
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
468
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
469
|
+
"created_after",
|
|
470
|
+
b"created_after",
|
|
471
|
+
"created_before",
|
|
472
|
+
b"created_before",
|
|
473
|
+
"ending_before",
|
|
474
|
+
b"ending_before",
|
|
475
|
+
"limit",
|
|
476
|
+
b"limit",
|
|
477
|
+
"starting_after",
|
|
478
|
+
b"starting_after",
|
|
479
|
+
"status",
|
|
480
|
+
b"status",
|
|
481
|
+
] # noqa: Y015
|
|
482
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
483
|
+
|
|
484
|
+
Global___GetBillingHistoryRequest: _TypeAlias = GetBillingHistoryRequest # noqa: Y015
|
|
485
|
+
|
|
486
|
+
@_typing.final
|
|
487
|
+
class GetBillingHistoryResponse(_message.Message):
|
|
488
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
489
|
+
|
|
490
|
+
INVOICES_FIELD_NUMBER: _builtins.int
|
|
491
|
+
HAS_MORE_FIELD_NUMBER: _builtins.int
|
|
492
|
+
NEXT_CURSOR_FIELD_NUMBER: _builtins.int
|
|
493
|
+
PREVIOUS_CURSOR_FIELD_NUMBER: _builtins.int
|
|
494
|
+
has_more: _builtins.bool
|
|
495
|
+
next_cursor: _builtins.str
|
|
496
|
+
previous_cursor: _builtins.str
|
|
497
|
+
@_builtins.property
|
|
462
498
|
def invoices(
|
|
463
499
|
self,
|
|
464
|
-
) ->
|
|
465
|
-
weaveapi.payment.v1.invoice_pb2.Invoice
|
|
466
|
-
]: ...
|
|
500
|
+
) -> _containers.RepeatedCompositeFieldContainer[_invoice_pb2.Invoice]: ...
|
|
467
501
|
def __init__(
|
|
468
502
|
self,
|
|
469
503
|
*,
|
|
470
|
-
invoices:
|
|
471
|
-
| None = ...,
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
504
|
+
invoices: _abc.Iterable[_invoice_pb2.Invoice] | None = ...,
|
|
505
|
+
has_more: _builtins.bool | None = ...,
|
|
506
|
+
next_cursor: _builtins.str | None = ...,
|
|
507
|
+
previous_cursor: _builtins.str | None = ...,
|
|
508
|
+
) -> None: ...
|
|
509
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
510
|
+
"has_more",
|
|
511
|
+
b"has_more",
|
|
512
|
+
"invoices",
|
|
513
|
+
b"invoices",
|
|
514
|
+
"next_cursor",
|
|
515
|
+
b"next_cursor",
|
|
516
|
+
"previous_cursor",
|
|
517
|
+
b"previous_cursor",
|
|
518
|
+
] # noqa: Y015
|
|
519
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
520
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
521
|
+
"has_more",
|
|
522
|
+
b"has_more",
|
|
523
|
+
"invoices",
|
|
524
|
+
b"invoices",
|
|
525
|
+
"next_cursor",
|
|
526
|
+
b"next_cursor",
|
|
527
|
+
"previous_cursor",
|
|
528
|
+
b"previous_cursor",
|
|
529
|
+
] # noqa: Y015
|
|
530
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
531
|
+
|
|
532
|
+
Global___GetBillingHistoryResponse: _TypeAlias = GetBillingHistoryResponse # noqa: Y015
|
|
533
|
+
|
|
534
|
+
@_typing.final
|
|
535
|
+
class GetUpcomingInvoiceRequest(_message.Message):
|
|
494
536
|
"""Preview next invoice"""
|
|
495
537
|
|
|
496
|
-
DESCRIPTOR:
|
|
538
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
497
539
|
|
|
498
540
|
def __init__(
|
|
499
541
|
self,
|
|
500
542
|
) -> None: ...
|
|
501
543
|
|
|
502
|
-
|
|
544
|
+
Global___GetUpcomingInvoiceRequest: _TypeAlias = GetUpcomingInvoiceRequest # noqa: Y015
|
|
503
545
|
|
|
504
|
-
@
|
|
505
|
-
class GetUpcomingInvoiceResponse(
|
|
506
|
-
DESCRIPTOR:
|
|
546
|
+
@_typing.final
|
|
547
|
+
class GetUpcomingInvoiceResponse(_message.Message):
|
|
548
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
507
549
|
|
|
508
|
-
INVOICE_FIELD_NUMBER:
|
|
509
|
-
@property
|
|
510
|
-
def invoice(self) ->
|
|
550
|
+
INVOICE_FIELD_NUMBER: _builtins.int
|
|
551
|
+
@_builtins.property
|
|
552
|
+
def invoice(self) -> _invoice_pb2.Invoice: ...
|
|
511
553
|
def __init__(
|
|
512
554
|
self,
|
|
513
555
|
*,
|
|
514
|
-
invoice:
|
|
556
|
+
invoice: _invoice_pb2.Invoice | None = ...,
|
|
515
557
|
) -> None: ...
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
def ClearField(self, field_name:
|
|
558
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["invoice", b"invoice"] # noqa: Y015
|
|
559
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
560
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["invoice", b"invoice"] # noqa: Y015
|
|
561
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
520
562
|
|
|
521
|
-
|
|
563
|
+
Global___GetUpcomingInvoiceResponse: _TypeAlias = GetUpcomingInvoiceResponse # noqa: Y015
|
|
522
564
|
|
|
523
|
-
@
|
|
524
|
-
class ListPaymentMethodsRequest(
|
|
525
|
-
DESCRIPTOR:
|
|
565
|
+
@_typing.final
|
|
566
|
+
class ListPaymentMethodsRequest(_message.Message):
|
|
567
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
526
568
|
|
|
527
|
-
TYPE_FIELD_NUMBER:
|
|
528
|
-
type:
|
|
569
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
570
|
+
type: _builtins.str
|
|
529
571
|
"""card, bank_account, or empty for all"""
|
|
530
572
|
def __init__(
|
|
531
573
|
self,
|
|
532
574
|
*,
|
|
533
|
-
type:
|
|
575
|
+
type: _builtins.str | None = ...,
|
|
534
576
|
) -> None: ...
|
|
535
|
-
|
|
577
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015
|
|
578
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
579
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015
|
|
580
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
536
581
|
|
|
537
|
-
|
|
582
|
+
Global___ListPaymentMethodsRequest: _TypeAlias = ListPaymentMethodsRequest # noqa: Y015
|
|
538
583
|
|
|
539
|
-
@
|
|
540
|
-
class ListPaymentMethodsResponse(
|
|
541
|
-
DESCRIPTOR:
|
|
584
|
+
@_typing.final
|
|
585
|
+
class ListPaymentMethodsResponse(_message.Message):
|
|
586
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
542
587
|
|
|
543
|
-
PAYMENT_METHODS_FIELD_NUMBER:
|
|
544
|
-
DEFAULT_PAYMENT_METHOD_ID_FIELD_NUMBER:
|
|
545
|
-
default_payment_method_id:
|
|
546
|
-
@property
|
|
588
|
+
PAYMENT_METHODS_FIELD_NUMBER: _builtins.int
|
|
589
|
+
DEFAULT_PAYMENT_METHOD_ID_FIELD_NUMBER: _builtins.int
|
|
590
|
+
default_payment_method_id: _builtins.str
|
|
591
|
+
@_builtins.property
|
|
547
592
|
def payment_methods(
|
|
548
593
|
self,
|
|
549
|
-
) ->
|
|
550
|
-
|
|
594
|
+
) -> _containers.RepeatedCompositeFieldContainer[
|
|
595
|
+
_subscription_pb2.PaymentMethod
|
|
551
596
|
]: ...
|
|
552
597
|
def __init__(
|
|
553
598
|
self,
|
|
554
599
|
*,
|
|
555
|
-
payment_methods:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
default_payment_method_id
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
600
|
+
payment_methods: _abc.Iterable[_subscription_pb2.PaymentMethod] | None = ...,
|
|
601
|
+
default_payment_method_id: _builtins.str | None = ...,
|
|
602
|
+
) -> None: ...
|
|
603
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
604
|
+
"default_payment_method_id",
|
|
605
|
+
b"default_payment_method_id",
|
|
606
|
+
"payment_methods",
|
|
607
|
+
b"payment_methods",
|
|
608
|
+
] # noqa: Y015
|
|
609
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
610
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
611
|
+
"default_payment_method_id",
|
|
612
|
+
b"default_payment_method_id",
|
|
613
|
+
"payment_methods",
|
|
614
|
+
b"payment_methods",
|
|
615
|
+
] # noqa: Y015
|
|
616
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
617
|
+
|
|
618
|
+
Global___ListPaymentMethodsResponse: _TypeAlias = ListPaymentMethodsResponse # noqa: Y015
|
|
619
|
+
|
|
620
|
+
@_typing.final
|
|
621
|
+
class AddPaymentMethodRequest(_message.Message):
|
|
622
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
623
|
+
|
|
624
|
+
PAYMENT_METHOD_ID_FIELD_NUMBER: _builtins.int
|
|
625
|
+
SET_AS_DEFAULT_FIELD_NUMBER: _builtins.int
|
|
626
|
+
payment_method_id: _builtins.str
|
|
580
627
|
"""Stripe payment method ID from frontend"""
|
|
581
|
-
set_as_default:
|
|
628
|
+
set_as_default: _builtins.bool
|
|
582
629
|
def __init__(
|
|
583
630
|
self,
|
|
584
631
|
*,
|
|
585
|
-
payment_method_id:
|
|
586
|
-
set_as_default:
|
|
587
|
-
) -> None: ...
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
def payment_method(self) -> weaveapi.payment.v1.subscription_pb2.PaymentMethod: ...
|
|
632
|
+
payment_method_id: _builtins.str | None = ...,
|
|
633
|
+
set_as_default: _builtins.bool | None = ...,
|
|
634
|
+
) -> None: ...
|
|
635
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
636
|
+
"payment_method_id", b"payment_method_id", "set_as_default", b"set_as_default"
|
|
637
|
+
] # noqa: Y015
|
|
638
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
639
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
640
|
+
"payment_method_id", b"payment_method_id", "set_as_default", b"set_as_default"
|
|
641
|
+
] # noqa: Y015
|
|
642
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
643
|
+
|
|
644
|
+
Global___AddPaymentMethodRequest: _TypeAlias = AddPaymentMethodRequest # noqa: Y015
|
|
645
|
+
|
|
646
|
+
@_typing.final
|
|
647
|
+
class AddPaymentMethodResponse(_message.Message):
|
|
648
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
649
|
+
|
|
650
|
+
PAYMENT_METHOD_FIELD_NUMBER: _builtins.int
|
|
651
|
+
IS_DEFAULT_FIELD_NUMBER: _builtins.int
|
|
652
|
+
is_default: _builtins.bool
|
|
653
|
+
@_builtins.property
|
|
654
|
+
def payment_method(self) -> _subscription_pb2.PaymentMethod: ...
|
|
609
655
|
def __init__(
|
|
610
656
|
self,
|
|
611
657
|
*,
|
|
612
|
-
payment_method:
|
|
613
|
-
is_default:
|
|
614
|
-
) -> None: ...
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
def
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
payment_method_id: builtins.str
|
|
658
|
+
payment_method: _subscription_pb2.PaymentMethod | None = ...,
|
|
659
|
+
is_default: _builtins.bool | None = ...,
|
|
660
|
+
) -> None: ...
|
|
661
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
662
|
+
"is_default", b"is_default", "payment_method", b"payment_method"
|
|
663
|
+
] # noqa: Y015
|
|
664
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
665
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
666
|
+
"is_default", b"is_default", "payment_method", b"payment_method"
|
|
667
|
+
] # noqa: Y015
|
|
668
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
669
|
+
|
|
670
|
+
Global___AddPaymentMethodResponse: _TypeAlias = AddPaymentMethodResponse # noqa: Y015
|
|
671
|
+
|
|
672
|
+
@_typing.final
|
|
673
|
+
class SetDefaultPaymentMethodRequest(_message.Message):
|
|
674
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
675
|
+
|
|
676
|
+
PAYMENT_METHOD_ID_FIELD_NUMBER: _builtins.int
|
|
677
|
+
payment_method_id: _builtins.str
|
|
633
678
|
def __init__(
|
|
634
679
|
self,
|
|
635
680
|
*,
|
|
636
|
-
payment_method_id:
|
|
637
|
-
) -> None: ...
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
681
|
+
payment_method_id: _builtins.str | None = ...,
|
|
682
|
+
) -> None: ...
|
|
683
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
684
|
+
"payment_method_id", b"payment_method_id"
|
|
685
|
+
] # noqa: Y015
|
|
686
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
687
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
688
|
+
"payment_method_id", b"payment_method_id"
|
|
689
|
+
] # noqa: Y015
|
|
690
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
691
|
+
|
|
692
|
+
Global___SetDefaultPaymentMethodRequest: _TypeAlias = SetDefaultPaymentMethodRequest # noqa: Y015
|
|
693
|
+
|
|
694
|
+
@_typing.final
|
|
695
|
+
class SetDefaultPaymentMethodResponse(_message.Message):
|
|
696
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
697
|
+
|
|
698
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
699
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
700
|
+
success: _builtins.bool
|
|
701
|
+
message: _builtins.str
|
|
652
702
|
def __init__(
|
|
653
703
|
self,
|
|
654
704
|
*,
|
|
655
|
-
success:
|
|
656
|
-
message:
|
|
657
|
-
) -> None: ...
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
705
|
+
success: _builtins.bool | None = ...,
|
|
706
|
+
message: _builtins.str | None = ...,
|
|
707
|
+
) -> None: ...
|
|
708
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
709
|
+
"message", b"message", "success", b"success"
|
|
710
|
+
] # noqa: Y015
|
|
711
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
712
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
713
|
+
"message", b"message", "success", b"success"
|
|
714
|
+
] # noqa: Y015
|
|
715
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
716
|
+
|
|
717
|
+
Global___SetDefaultPaymentMethodResponse: _TypeAlias = SetDefaultPaymentMethodResponse # noqa: Y015
|
|
718
|
+
|
|
719
|
+
@_typing.final
|
|
720
|
+
class RemovePaymentMethodRequest(_message.Message):
|
|
721
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
722
|
+
|
|
723
|
+
PAYMENT_METHOD_ID_FIELD_NUMBER: _builtins.int
|
|
724
|
+
payment_method_id: _builtins.str
|
|
670
725
|
def __init__(
|
|
671
726
|
self,
|
|
672
727
|
*,
|
|
673
|
-
payment_method_id:
|
|
674
|
-
) -> None: ...
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
728
|
+
payment_method_id: _builtins.str | None = ...,
|
|
729
|
+
) -> None: ...
|
|
730
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
731
|
+
"payment_method_id", b"payment_method_id"
|
|
732
|
+
] # noqa: Y015
|
|
733
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
734
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
735
|
+
"payment_method_id", b"payment_method_id"
|
|
736
|
+
] # noqa: Y015
|
|
737
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
738
|
+
|
|
739
|
+
Global___RemovePaymentMethodRequest: _TypeAlias = RemovePaymentMethodRequest # noqa: Y015
|
|
740
|
+
|
|
741
|
+
@_typing.final
|
|
742
|
+
class RemovePaymentMethodResponse(_message.Message):
|
|
743
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
744
|
+
|
|
745
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
746
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
747
|
+
REMAINING_METHODS_FIELD_NUMBER: _builtins.int
|
|
748
|
+
success: _builtins.bool
|
|
749
|
+
message: _builtins.str
|
|
750
|
+
remaining_methods: _builtins.int
|
|
691
751
|
def __init__(
|
|
692
752
|
self,
|
|
693
753
|
*,
|
|
694
|
-
success:
|
|
695
|
-
message:
|
|
696
|
-
remaining_methods:
|
|
697
|
-
) -> None: ...
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
754
|
+
success: _builtins.bool | None = ...,
|
|
755
|
+
message: _builtins.str | None = ...,
|
|
756
|
+
remaining_methods: _builtins.int | None = ...,
|
|
757
|
+
) -> None: ...
|
|
758
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
759
|
+
"message",
|
|
760
|
+
b"message",
|
|
761
|
+
"remaining_methods",
|
|
762
|
+
b"remaining_methods",
|
|
763
|
+
"success",
|
|
764
|
+
b"success",
|
|
765
|
+
] # noqa: Y015
|
|
766
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
767
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
768
|
+
"message",
|
|
769
|
+
b"message",
|
|
770
|
+
"remaining_methods",
|
|
771
|
+
b"remaining_methods",
|
|
772
|
+
"success",
|
|
773
|
+
b"success",
|
|
774
|
+
] # noqa: Y015
|
|
775
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
776
|
+
|
|
777
|
+
Global___RemovePaymentMethodResponse: _TypeAlias = RemovePaymentMethodResponse # noqa: Y015
|
|
778
|
+
|
|
779
|
+
@_typing.final
|
|
780
|
+
class CreatePortalSessionRequest(_message.Message):
|
|
781
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
782
|
+
|
|
783
|
+
RETURN_URL_FIELD_NUMBER: _builtins.int
|
|
784
|
+
return_url: _builtins.str
|
|
718
785
|
"""Where to return after portal session"""
|
|
719
786
|
def __init__(
|
|
720
787
|
self,
|
|
721
788
|
*,
|
|
722
|
-
return_url:
|
|
723
|
-
) -> None: ...
|
|
724
|
-
def ClearField(
|
|
725
|
-
self, field_name: typing.Literal["return_url", b"return_url"]
|
|
789
|
+
return_url: _builtins.str | None = ...,
|
|
726
790
|
) -> None: ...
|
|
791
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["return_url", b"return_url"] # noqa: Y015
|
|
792
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
793
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["return_url", b"return_url"] # noqa: Y015
|
|
794
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
727
795
|
|
|
728
|
-
|
|
796
|
+
Global___CreatePortalSessionRequest: _TypeAlias = CreatePortalSessionRequest # noqa: Y015
|
|
729
797
|
|
|
730
|
-
@
|
|
731
|
-
class CreatePortalSessionResponse(
|
|
732
|
-
DESCRIPTOR:
|
|
798
|
+
@_typing.final
|
|
799
|
+
class CreatePortalSessionResponse(_message.Message):
|
|
800
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
733
801
|
|
|
734
|
-
PORTAL_URL_FIELD_NUMBER:
|
|
735
|
-
EXPIRES_AT_FIELD_NUMBER:
|
|
736
|
-
portal_url:
|
|
802
|
+
PORTAL_URL_FIELD_NUMBER: _builtins.int
|
|
803
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
804
|
+
portal_url: _builtins.str
|
|
737
805
|
"""Stripe customer portal URL"""
|
|
738
|
-
@property
|
|
739
|
-
def expires_at(self) ->
|
|
806
|
+
@_builtins.property
|
|
807
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
740
808
|
def __init__(
|
|
741
809
|
self,
|
|
742
810
|
*,
|
|
743
|
-
portal_url:
|
|
744
|
-
expires_at:
|
|
745
|
-
) -> None: ...
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
def
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
currency: builtins.str
|
|
811
|
+
portal_url: _builtins.str | None = ...,
|
|
812
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
813
|
+
) -> None: ...
|
|
814
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
815
|
+
"expires_at", b"expires_at", "portal_url", b"portal_url"
|
|
816
|
+
] # noqa: Y015
|
|
817
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
818
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
819
|
+
"expires_at", b"expires_at", "portal_url", b"portal_url"
|
|
820
|
+
] # noqa: Y015
|
|
821
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
822
|
+
|
|
823
|
+
Global___CreatePortalSessionResponse: _TypeAlias = CreatePortalSessionResponse # noqa: Y015
|
|
824
|
+
|
|
825
|
+
@_typing.final
|
|
826
|
+
class GetPricingPlansRequest(_message.Message):
|
|
827
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
828
|
+
|
|
829
|
+
CURRENCY_FIELD_NUMBER: _builtins.int
|
|
830
|
+
ACTIVE_ONLY_FIELD_NUMBER: _builtins.int
|
|
831
|
+
currency: _builtins.str
|
|
765
832
|
"""Optional: filter by currency"""
|
|
766
|
-
active_only:
|
|
833
|
+
active_only: _builtins.bool
|
|
767
834
|
"""Only show active plans"""
|
|
768
835
|
def __init__(
|
|
769
836
|
self,
|
|
770
837
|
*,
|
|
771
|
-
currency:
|
|
772
|
-
active_only:
|
|
773
|
-
) -> None: ...
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
838
|
+
currency: _builtins.str | None = ...,
|
|
839
|
+
active_only: _builtins.bool | None = ...,
|
|
840
|
+
) -> None: ...
|
|
841
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
842
|
+
"active_only", b"active_only", "currency", b"currency"
|
|
843
|
+
] # noqa: Y015
|
|
844
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
845
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
846
|
+
"active_only", b"active_only", "currency", b"currency"
|
|
847
|
+
] # noqa: Y015
|
|
848
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
849
|
+
|
|
850
|
+
Global___GetPricingPlansRequest: _TypeAlias = GetPricingPlansRequest # noqa: Y015
|
|
851
|
+
|
|
852
|
+
@_typing.final
|
|
853
|
+
class GetPricingPlansResponse(_message.Message):
|
|
854
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
855
|
+
|
|
856
|
+
PLANS_FIELD_NUMBER: _builtins.int
|
|
857
|
+
RECOMMENDED_PLAN_ID_FIELD_NUMBER: _builtins.int
|
|
858
|
+
CURRENT_PLAN_FIELD_NUMBER: _builtins.int
|
|
859
|
+
recommended_plan_id: _builtins.str
|
|
860
|
+
@_builtins.property
|
|
792
861
|
def plans(
|
|
793
862
|
self,
|
|
794
|
-
) ->
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
@property
|
|
798
|
-
def current_plan(self) -> weaveapi.payment.v1.subscription_pb2.PricingPlan:
|
|
799
|
-
"""User's current plan if logged in"""
|
|
800
|
-
|
|
863
|
+
) -> _containers.RepeatedCompositeFieldContainer[_subscription_pb2.PricingPlan]: ...
|
|
864
|
+
@_builtins.property
|
|
865
|
+
def current_plan(self) -> _subscription_pb2.PricingPlan: ...
|
|
801
866
|
def __init__(
|
|
802
867
|
self,
|
|
803
868
|
*,
|
|
804
|
-
plans:
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
current_plan
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
869
|
+
plans: _abc.Iterable[_subscription_pb2.PricingPlan] | None = ...,
|
|
870
|
+
recommended_plan_id: _builtins.str | None = ...,
|
|
871
|
+
current_plan: _subscription_pb2.PricingPlan | None = ...,
|
|
872
|
+
) -> None: ...
|
|
873
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
874
|
+
"current_plan",
|
|
875
|
+
b"current_plan",
|
|
876
|
+
"plans",
|
|
877
|
+
b"plans",
|
|
878
|
+
"recommended_plan_id",
|
|
879
|
+
b"recommended_plan_id",
|
|
880
|
+
] # noqa: Y015
|
|
881
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
882
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
883
|
+
"current_plan",
|
|
884
|
+
b"current_plan",
|
|
885
|
+
"plans",
|
|
886
|
+
b"plans",
|
|
887
|
+
"recommended_plan_id",
|
|
888
|
+
b"recommended_plan_id",
|
|
889
|
+
] # noqa: Y015
|
|
890
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
891
|
+
|
|
892
|
+
Global___GetPricingPlansResponse: _TypeAlias = GetPricingPlansResponse # noqa: Y015
|
|
893
|
+
|
|
894
|
+
@_typing.final
|
|
895
|
+
class ApplyPromoCodeRequest(_message.Message):
|
|
896
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
897
|
+
|
|
898
|
+
PROMO_CODE_FIELD_NUMBER: _builtins.int
|
|
899
|
+
promo_code: _builtins.str
|
|
834
900
|
def __init__(
|
|
835
901
|
self,
|
|
836
902
|
*,
|
|
837
|
-
promo_code:
|
|
838
|
-
) -> None: ...
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
903
|
+
promo_code: _builtins.str | None = ...,
|
|
904
|
+
) -> None: ...
|
|
905
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["promo_code", b"promo_code"] # noqa: Y015
|
|
906
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
907
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["promo_code", b"promo_code"] # noqa: Y015
|
|
908
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
909
|
+
|
|
910
|
+
Global___ApplyPromoCodeRequest: _TypeAlias = ApplyPromoCodeRequest # noqa: Y015
|
|
911
|
+
|
|
912
|
+
@_typing.final
|
|
913
|
+
class ApplyPromoCodeResponse(_message.Message):
|
|
914
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
915
|
+
|
|
916
|
+
VALID_FIELD_NUMBER: _builtins.int
|
|
917
|
+
DISCOUNT_FIELD_NUMBER: _builtins.int
|
|
918
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
919
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
920
|
+
valid: _builtins.bool
|
|
921
|
+
message: _builtins.str
|
|
922
|
+
@_builtins.property
|
|
923
|
+
def discount(self) -> _subscription_pb2.Discount: ...
|
|
924
|
+
@_builtins.property
|
|
925
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
859
926
|
def __init__(
|
|
860
927
|
self,
|
|
861
928
|
*,
|
|
862
|
-
valid:
|
|
863
|
-
discount:
|
|
864
|
-
message:
|
|
865
|
-
expires_at:
|
|
866
|
-
) -> None: ...
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
929
|
+
valid: _builtins.bool | None = ...,
|
|
930
|
+
discount: _subscription_pb2.Discount | None = ...,
|
|
931
|
+
message: _builtins.str | None = ...,
|
|
932
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
933
|
+
) -> None: ...
|
|
934
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
935
|
+
"discount",
|
|
936
|
+
b"discount",
|
|
937
|
+
"expires_at",
|
|
938
|
+
b"expires_at",
|
|
939
|
+
"message",
|
|
940
|
+
b"message",
|
|
941
|
+
"valid",
|
|
942
|
+
b"valid",
|
|
943
|
+
] # noqa: Y015
|
|
944
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
945
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
946
|
+
"discount",
|
|
947
|
+
b"discount",
|
|
948
|
+
"expires_at",
|
|
949
|
+
b"expires_at",
|
|
950
|
+
"message",
|
|
951
|
+
b"message",
|
|
952
|
+
"valid",
|
|
953
|
+
b"valid",
|
|
954
|
+
] # noqa: Y015
|
|
955
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
956
|
+
|
|
957
|
+
Global___ApplyPromoCodeResponse: _TypeAlias = ApplyPromoCodeResponse # noqa: Y015
|
|
958
|
+
|
|
959
|
+
@_typing.final
|
|
960
|
+
class HandleStripeWebhookRequest(_message.Message):
|
|
961
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
962
|
+
|
|
963
|
+
PAYLOAD_FIELD_NUMBER: _builtins.int
|
|
964
|
+
SIGNATURE_FIELD_NUMBER: _builtins.int
|
|
965
|
+
payload: _builtins.bytes
|
|
896
966
|
"""Raw webhook payload"""
|
|
897
|
-
signature:
|
|
967
|
+
signature: _builtins.str
|
|
898
968
|
"""Stripe-Signature header"""
|
|
899
969
|
def __init__(
|
|
900
970
|
self,
|
|
901
971
|
*,
|
|
902
|
-
payload:
|
|
903
|
-
signature:
|
|
904
|
-
) -> None: ...
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
) ->
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
972
|
+
payload: _builtins.bytes | None = ...,
|
|
973
|
+
signature: _builtins.str | None = ...,
|
|
974
|
+
) -> None: ...
|
|
975
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
976
|
+
"payload", b"payload", "signature", b"signature"
|
|
977
|
+
] # noqa: Y015
|
|
978
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
979
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
980
|
+
"payload", b"payload", "signature", b"signature"
|
|
981
|
+
] # noqa: Y015
|
|
982
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
983
|
+
|
|
984
|
+
Global___HandleStripeWebhookRequest: _TypeAlias = HandleStripeWebhookRequest # noqa: Y015
|
|
985
|
+
|
|
986
|
+
@_typing.final
|
|
987
|
+
class HandleStripeWebhookResponse(_message.Message):
|
|
988
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
989
|
+
|
|
990
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
991
|
+
EVENT_ID_FIELD_NUMBER: _builtins.int
|
|
992
|
+
EVENT_TYPE_FIELD_NUMBER: _builtins.int
|
|
993
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
994
|
+
success: _builtins.bool
|
|
995
|
+
event_id: _builtins.str
|
|
996
|
+
event_type: _builtins.str
|
|
997
|
+
message: _builtins.str
|
|
924
998
|
def __init__(
|
|
925
999
|
self,
|
|
926
1000
|
*,
|
|
927
|
-
success:
|
|
928
|
-
event_id:
|
|
929
|
-
event_type:
|
|
930
|
-
message:
|
|
931
|
-
) -> None: ...
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1001
|
+
success: _builtins.bool | None = ...,
|
|
1002
|
+
event_id: _builtins.str | None = ...,
|
|
1003
|
+
event_type: _builtins.str | None = ...,
|
|
1004
|
+
message: _builtins.str | None = ...,
|
|
1005
|
+
) -> None: ...
|
|
1006
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1007
|
+
"event_id",
|
|
1008
|
+
b"event_id",
|
|
1009
|
+
"event_type",
|
|
1010
|
+
b"event_type",
|
|
1011
|
+
"message",
|
|
1012
|
+
b"message",
|
|
1013
|
+
"success",
|
|
1014
|
+
b"success",
|
|
1015
|
+
] # noqa: Y015
|
|
1016
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1017
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1018
|
+
"event_id",
|
|
1019
|
+
b"event_id",
|
|
1020
|
+
"event_type",
|
|
1021
|
+
b"event_type",
|
|
1022
|
+
"message",
|
|
1023
|
+
b"message",
|
|
1024
|
+
"success",
|
|
1025
|
+
b"success",
|
|
1026
|
+
] # noqa: Y015
|
|
1027
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1028
|
+
|
|
1029
|
+
Global___HandleStripeWebhookResponse: _TypeAlias = HandleStripeWebhookResponse # noqa: Y015
|
|
1030
|
+
|
|
1031
|
+
@_typing.final
|
|
1032
|
+
class GetUsageSummaryRequest(_message.Message):
|
|
1033
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1034
|
+
|
|
1035
|
+
PERIOD_FIELD_NUMBER: _builtins.int
|
|
1036
|
+
START_DATE_FIELD_NUMBER: _builtins.int
|
|
1037
|
+
END_DATE_FIELD_NUMBER: _builtins.int
|
|
1038
|
+
period: _builtins.str
|
|
956
1039
|
"""current, previous, custom"""
|
|
957
|
-
@property
|
|
958
|
-
def start_date(self) ->
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
@property
|
|
962
|
-
def end_date(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
963
|
-
"""For custom period"""
|
|
964
|
-
|
|
1040
|
+
@_builtins.property
|
|
1041
|
+
def start_date(self) -> _timestamp_pb2.Timestamp: ...
|
|
1042
|
+
@_builtins.property
|
|
1043
|
+
def end_date(self) -> _timestamp_pb2.Timestamp: ...
|
|
965
1044
|
def __init__(
|
|
966
1045
|
self,
|
|
967
1046
|
*,
|
|
968
|
-
period:
|
|
969
|
-
start_date:
|
|
970
|
-
end_date:
|
|
971
|
-
) -> None: ...
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
LIMITS_FIELD_NUMBER: builtins.int
|
|
994
|
-
@property
|
|
995
|
-
def current_period(self) -> global___UsagePeriod: ...
|
|
996
|
-
@property
|
|
1047
|
+
period: _builtins.str | None = ...,
|
|
1048
|
+
start_date: _timestamp_pb2.Timestamp | None = ...,
|
|
1049
|
+
end_date: _timestamp_pb2.Timestamp | None = ...,
|
|
1050
|
+
) -> None: ...
|
|
1051
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1052
|
+
"end_date", b"end_date", "period", b"period", "start_date", b"start_date"
|
|
1053
|
+
] # noqa: Y015
|
|
1054
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1055
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1056
|
+
"end_date", b"end_date", "period", b"period", "start_date", b"start_date"
|
|
1057
|
+
] # noqa: Y015
|
|
1058
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1059
|
+
|
|
1060
|
+
Global___GetUsageSummaryRequest: _TypeAlias = GetUsageSummaryRequest # noqa: Y015
|
|
1061
|
+
|
|
1062
|
+
@_typing.final
|
|
1063
|
+
class GetUsageSummaryResponse(_message.Message):
|
|
1064
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1065
|
+
|
|
1066
|
+
CURRENT_PERIOD_FIELD_NUMBER: _builtins.int
|
|
1067
|
+
PREVIOUS_PERIODS_FIELD_NUMBER: _builtins.int
|
|
1068
|
+
LIMITS_FIELD_NUMBER: _builtins.int
|
|
1069
|
+
@_builtins.property
|
|
1070
|
+
def current_period(self) -> Global___UsagePeriod: ...
|
|
1071
|
+
@_builtins.property
|
|
997
1072
|
def previous_periods(
|
|
998
1073
|
self,
|
|
999
|
-
) ->
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
@property
|
|
1003
|
-
def limits(self) -> global___UsageLimits: ...
|
|
1074
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___UsagePeriod]: ...
|
|
1075
|
+
@_builtins.property
|
|
1076
|
+
def limits(self) -> Global___UsageLimits: ...
|
|
1004
1077
|
def __init__(
|
|
1005
1078
|
self,
|
|
1006
1079
|
*,
|
|
1007
|
-
current_period:
|
|
1008
|
-
previous_periods:
|
|
1009
|
-
limits:
|
|
1010
|
-
) -> None: ...
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1080
|
+
current_period: Global___UsagePeriod | None = ...,
|
|
1081
|
+
previous_periods: _abc.Iterable[Global___UsagePeriod] | None = ...,
|
|
1082
|
+
limits: Global___UsageLimits | None = ...,
|
|
1083
|
+
) -> None: ...
|
|
1084
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1085
|
+
"current_period",
|
|
1086
|
+
b"current_period",
|
|
1087
|
+
"limits",
|
|
1088
|
+
b"limits",
|
|
1089
|
+
"previous_periods",
|
|
1090
|
+
b"previous_periods",
|
|
1091
|
+
] # noqa: Y015
|
|
1092
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1093
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1094
|
+
"current_period",
|
|
1095
|
+
b"current_period",
|
|
1096
|
+
"limits",
|
|
1097
|
+
b"limits",
|
|
1098
|
+
"previous_periods",
|
|
1099
|
+
b"previous_periods",
|
|
1100
|
+
] # noqa: Y015
|
|
1101
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1102
|
+
|
|
1103
|
+
Global___GetUsageSummaryResponse: _TypeAlias = GetUsageSummaryResponse # noqa: Y015
|
|
1104
|
+
|
|
1105
|
+
@_typing.final
|
|
1106
|
+
class UsagePeriod(_message.Message):
|
|
1107
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1108
|
+
|
|
1109
|
+
@_typing.final
|
|
1110
|
+
class RequestsByEndpointEntry(_message.Message):
|
|
1111
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1112
|
+
|
|
1113
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
1114
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
1115
|
+
key: _builtins.str
|
|
1116
|
+
value: _builtins.int
|
|
1043
1117
|
def __init__(
|
|
1044
1118
|
self,
|
|
1045
1119
|
*,
|
|
1046
|
-
key:
|
|
1047
|
-
value:
|
|
1120
|
+
key: _builtins.str | None = ...,
|
|
1121
|
+
value: _builtins.int | None = ...,
|
|
1048
1122
|
) -> None: ...
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1123
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
1124
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1125
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1126
|
+
"key", b"key", "value", b"value"
|
|
1127
|
+
] # noqa: Y015
|
|
1128
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1129
|
+
|
|
1130
|
+
@_typing.final
|
|
1131
|
+
class RequestsByApiKeyEntry(_message.Message):
|
|
1132
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1133
|
+
|
|
1134
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
1135
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
1136
|
+
key: _builtins.str
|
|
1137
|
+
value: _builtins.int
|
|
1061
1138
|
def __init__(
|
|
1062
1139
|
self,
|
|
1063
1140
|
*,
|
|
1064
|
-
key:
|
|
1065
|
-
value:
|
|
1066
|
-
) -> None: ...
|
|
1067
|
-
def ClearField(
|
|
1068
|
-
self, field_name: typing.Literal["key", b"key", "value", b"value"]
|
|
1141
|
+
key: _builtins.str | None = ...,
|
|
1142
|
+
value: _builtins.int | None = ...,
|
|
1069
1143
|
) -> None: ...
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1144
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
1145
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1146
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1147
|
+
"key", b"key", "value", b"value"
|
|
1148
|
+
] # noqa: Y015
|
|
1149
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1150
|
+
|
|
1151
|
+
START_DATE_FIELD_NUMBER: _builtins.int
|
|
1152
|
+
END_DATE_FIELD_NUMBER: _builtins.int
|
|
1153
|
+
API_REQUESTS_FIELD_NUMBER: _builtins.int
|
|
1154
|
+
API_REQUESTS_LIMIT_FIELD_NUMBER: _builtins.int
|
|
1155
|
+
USAGE_PERCENTAGE_FIELD_NUMBER: _builtins.int
|
|
1156
|
+
REQUESTS_BY_ENDPOINT_FIELD_NUMBER: _builtins.int
|
|
1157
|
+
REQUESTS_BY_API_KEY_FIELD_NUMBER: _builtins.int
|
|
1158
|
+
BILLABLE_REQUESTS_FIELD_NUMBER: _builtins.int
|
|
1159
|
+
OVERAGE_REQUESTS_FIELD_NUMBER: _builtins.int
|
|
1160
|
+
OVERAGE_COST_CENTS_FIELD_NUMBER: _builtins.int
|
|
1161
|
+
api_requests: _builtins.int
|
|
1082
1162
|
"""API usage"""
|
|
1083
|
-
api_requests_limit:
|
|
1084
|
-
usage_percentage:
|
|
1085
|
-
billable_requests:
|
|
1163
|
+
api_requests_limit: _builtins.int
|
|
1164
|
+
usage_percentage: _builtins.float
|
|
1165
|
+
billable_requests: _builtins.int
|
|
1086
1166
|
"""Billing"""
|
|
1087
|
-
overage_requests:
|
|
1088
|
-
overage_cost_cents:
|
|
1089
|
-
@property
|
|
1090
|
-
def start_date(self) ->
|
|
1091
|
-
@property
|
|
1092
|
-
def end_date(self) ->
|
|
1093
|
-
@property
|
|
1167
|
+
overage_requests: _builtins.int
|
|
1168
|
+
overage_cost_cents: _builtins.int
|
|
1169
|
+
@_builtins.property
|
|
1170
|
+
def start_date(self) -> _timestamp_pb2.Timestamp: ...
|
|
1171
|
+
@_builtins.property
|
|
1172
|
+
def end_date(self) -> _timestamp_pb2.Timestamp: ...
|
|
1173
|
+
@_builtins.property
|
|
1094
1174
|
def requests_by_endpoint(
|
|
1095
1175
|
self,
|
|
1096
|
-
) ->
|
|
1176
|
+
) -> _containers.ScalarMap[_builtins.str, _builtins.int]:
|
|
1097
1177
|
"""Breakdown"""
|
|
1098
1178
|
|
|
1099
|
-
@property
|
|
1179
|
+
@_builtins.property
|
|
1100
1180
|
def requests_by_api_key(
|
|
1101
1181
|
self,
|
|
1102
|
-
) ->
|
|
1182
|
+
) -> _containers.ScalarMap[_builtins.str, _builtins.int]: ...
|
|
1103
1183
|
def __init__(
|
|
1104
1184
|
self,
|
|
1105
1185
|
*,
|
|
1106
|
-
start_date:
|
|
1107
|
-
end_date:
|
|
1108
|
-
api_requests:
|
|
1109
|
-
api_requests_limit:
|
|
1110
|
-
usage_percentage:
|
|
1111
|
-
requests_by_endpoint:
|
|
1112
|
-
| None = ...,
|
|
1113
|
-
|
|
1114
|
-
| None = ...,
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1186
|
+
start_date: _timestamp_pb2.Timestamp | None = ...,
|
|
1187
|
+
end_date: _timestamp_pb2.Timestamp | None = ...,
|
|
1188
|
+
api_requests: _builtins.int | None = ...,
|
|
1189
|
+
api_requests_limit: _builtins.int | None = ...,
|
|
1190
|
+
usage_percentage: _builtins.float | None = ...,
|
|
1191
|
+
requests_by_endpoint: _abc.Mapping[_builtins.str, _builtins.int] | None = ...,
|
|
1192
|
+
requests_by_api_key: _abc.Mapping[_builtins.str, _builtins.int] | None = ...,
|
|
1193
|
+
billable_requests: _builtins.int | None = ...,
|
|
1194
|
+
overage_requests: _builtins.int | None = ...,
|
|
1195
|
+
overage_cost_cents: _builtins.int | None = ...,
|
|
1196
|
+
) -> None: ...
|
|
1197
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1198
|
+
"api_requests",
|
|
1199
|
+
b"api_requests",
|
|
1200
|
+
"api_requests_limit",
|
|
1201
|
+
b"api_requests_limit",
|
|
1202
|
+
"billable_requests",
|
|
1203
|
+
b"billable_requests",
|
|
1204
|
+
"end_date",
|
|
1205
|
+
b"end_date",
|
|
1206
|
+
"overage_cost_cents",
|
|
1207
|
+
b"overage_cost_cents",
|
|
1208
|
+
"overage_requests",
|
|
1209
|
+
b"overage_requests",
|
|
1210
|
+
"requests_by_api_key",
|
|
1211
|
+
b"requests_by_api_key",
|
|
1212
|
+
"requests_by_endpoint",
|
|
1213
|
+
b"requests_by_endpoint",
|
|
1214
|
+
"start_date",
|
|
1215
|
+
b"start_date",
|
|
1216
|
+
"usage_percentage",
|
|
1217
|
+
b"usage_percentage",
|
|
1218
|
+
] # noqa: Y015
|
|
1219
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1220
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1221
|
+
"api_requests",
|
|
1222
|
+
b"api_requests",
|
|
1223
|
+
"api_requests_limit",
|
|
1224
|
+
b"api_requests_limit",
|
|
1225
|
+
"billable_requests",
|
|
1226
|
+
b"billable_requests",
|
|
1227
|
+
"end_date",
|
|
1228
|
+
b"end_date",
|
|
1229
|
+
"overage_cost_cents",
|
|
1230
|
+
b"overage_cost_cents",
|
|
1231
|
+
"overage_requests",
|
|
1232
|
+
b"overage_requests",
|
|
1233
|
+
"requests_by_api_key",
|
|
1234
|
+
b"requests_by_api_key",
|
|
1235
|
+
"requests_by_endpoint",
|
|
1236
|
+
b"requests_by_endpoint",
|
|
1237
|
+
"start_date",
|
|
1238
|
+
b"start_date",
|
|
1239
|
+
"usage_percentage",
|
|
1240
|
+
b"usage_percentage",
|
|
1241
|
+
] # noqa: Y015
|
|
1242
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1243
|
+
|
|
1244
|
+
Global___UsagePeriod: _TypeAlias = UsagePeriod # noqa: Y015
|
|
1245
|
+
|
|
1246
|
+
@_typing.final
|
|
1247
|
+
class UsageLimits(_message.Message):
|
|
1248
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1249
|
+
|
|
1250
|
+
TIER_FIELD_NUMBER: _builtins.int
|
|
1251
|
+
REQUESTS_PER_HOUR_FIELD_NUMBER: _builtins.int
|
|
1252
|
+
REQUESTS_PER_DAY_FIELD_NUMBER: _builtins.int
|
|
1253
|
+
REQUESTS_PER_MONTH_FIELD_NUMBER: _builtins.int
|
|
1254
|
+
UNLIMITED_FIELD_NUMBER: _builtins.int
|
|
1255
|
+
OVERAGE_RATE_CENTS_FIELD_NUMBER: _builtins.int
|
|
1256
|
+
tier: _builtins.str
|
|
1257
|
+
requests_per_hour: _builtins.int
|
|
1258
|
+
requests_per_day: _builtins.int
|
|
1259
|
+
requests_per_month: _builtins.int
|
|
1260
|
+
unlimited: _builtins.bool
|
|
1261
|
+
overage_rate_cents: _builtins.int
|
|
1169
1262
|
"""Cost per 1000 requests over limit"""
|
|
1170
1263
|
def __init__(
|
|
1171
1264
|
self,
|
|
1172
1265
|
*,
|
|
1173
|
-
tier:
|
|
1174
|
-
requests_per_hour:
|
|
1175
|
-
requests_per_day:
|
|
1176
|
-
requests_per_month:
|
|
1177
|
-
unlimited:
|
|
1178
|
-
overage_rate_cents:
|
|
1179
|
-
) -> None: ...
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1266
|
+
tier: _builtins.str | None = ...,
|
|
1267
|
+
requests_per_hour: _builtins.int | None = ...,
|
|
1268
|
+
requests_per_day: _builtins.int | None = ...,
|
|
1269
|
+
requests_per_month: _builtins.int | None = ...,
|
|
1270
|
+
unlimited: _builtins.bool | None = ...,
|
|
1271
|
+
overage_rate_cents: _builtins.int | None = ...,
|
|
1272
|
+
) -> None: ...
|
|
1273
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1274
|
+
"overage_rate_cents",
|
|
1275
|
+
b"overage_rate_cents",
|
|
1276
|
+
"requests_per_day",
|
|
1277
|
+
b"requests_per_day",
|
|
1278
|
+
"requests_per_hour",
|
|
1279
|
+
b"requests_per_hour",
|
|
1280
|
+
"requests_per_month",
|
|
1281
|
+
b"requests_per_month",
|
|
1282
|
+
"tier",
|
|
1283
|
+
b"tier",
|
|
1284
|
+
"unlimited",
|
|
1285
|
+
b"unlimited",
|
|
1286
|
+
] # noqa: Y015
|
|
1287
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1288
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1289
|
+
"overage_rate_cents",
|
|
1290
|
+
b"overage_rate_cents",
|
|
1291
|
+
"requests_per_day",
|
|
1292
|
+
b"requests_per_day",
|
|
1293
|
+
"requests_per_hour",
|
|
1294
|
+
b"requests_per_hour",
|
|
1295
|
+
"requests_per_month",
|
|
1296
|
+
b"requests_per_month",
|
|
1297
|
+
"tier",
|
|
1298
|
+
b"tier",
|
|
1299
|
+
"unlimited",
|
|
1300
|
+
b"unlimited",
|
|
1301
|
+
] # noqa: Y015
|
|
1302
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1303
|
+
|
|
1304
|
+
Global___UsageLimits: _TypeAlias = UsageLimits # noqa: Y015
|
|
1305
|
+
|
|
1306
|
+
@_typing.final
|
|
1307
|
+
class GetCreditBalanceRequest(_message.Message):
|
|
1202
1308
|
"""Get credit balance if using credit system"""
|
|
1203
1309
|
|
|
1204
|
-
DESCRIPTOR:
|
|
1310
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1205
1311
|
|
|
1206
1312
|
def __init__(
|
|
1207
1313
|
self,
|
|
1208
1314
|
) -> None: ...
|
|
1209
1315
|
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
@
|
|
1213
|
-
class GetCreditBalanceResponse(
|
|
1214
|
-
DESCRIPTOR:
|
|
1215
|
-
|
|
1216
|
-
CREDITS_FIELD_NUMBER:
|
|
1217
|
-
PENDING_CREDITS_FIELD_NUMBER:
|
|
1218
|
-
EXPIRES_AT_FIELD_NUMBER:
|
|
1219
|
-
RECENT_TRANSACTIONS_FIELD_NUMBER:
|
|
1220
|
-
credits:
|
|
1221
|
-
pending_credits:
|
|
1222
|
-
@property
|
|
1223
|
-
def expires_at(self) ->
|
|
1224
|
-
@property
|
|
1316
|
+
Global___GetCreditBalanceRequest: _TypeAlias = GetCreditBalanceRequest # noqa: Y015
|
|
1317
|
+
|
|
1318
|
+
@_typing.final
|
|
1319
|
+
class GetCreditBalanceResponse(_message.Message):
|
|
1320
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1321
|
+
|
|
1322
|
+
CREDITS_FIELD_NUMBER: _builtins.int
|
|
1323
|
+
PENDING_CREDITS_FIELD_NUMBER: _builtins.int
|
|
1324
|
+
EXPIRES_AT_FIELD_NUMBER: _builtins.int
|
|
1325
|
+
RECENT_TRANSACTIONS_FIELD_NUMBER: _builtins.int
|
|
1326
|
+
credits: _builtins.int
|
|
1327
|
+
pending_credits: _builtins.int
|
|
1328
|
+
@_builtins.property
|
|
1329
|
+
def expires_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
1330
|
+
@_builtins.property
|
|
1225
1331
|
def recent_transactions(
|
|
1226
1332
|
self,
|
|
1227
|
-
) ->
|
|
1228
|
-
global___CreditTransaction
|
|
1229
|
-
]: ...
|
|
1333
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___CreditTransaction]: ...
|
|
1230
1334
|
def __init__(
|
|
1231
1335
|
self,
|
|
1232
1336
|
*,
|
|
1233
|
-
credits:
|
|
1234
|
-
pending_credits:
|
|
1235
|
-
expires_at:
|
|
1236
|
-
recent_transactions:
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1337
|
+
credits: _builtins.int | None = ...,
|
|
1338
|
+
pending_credits: _builtins.int | None = ...,
|
|
1339
|
+
expires_at: _timestamp_pb2.Timestamp | None = ...,
|
|
1340
|
+
recent_transactions: _abc.Iterable[Global___CreditTransaction] | None = ...,
|
|
1341
|
+
) -> None: ...
|
|
1342
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1343
|
+
"credits",
|
|
1344
|
+
b"credits",
|
|
1345
|
+
"expires_at",
|
|
1346
|
+
b"expires_at",
|
|
1347
|
+
"pending_credits",
|
|
1348
|
+
b"pending_credits",
|
|
1349
|
+
"recent_transactions",
|
|
1350
|
+
b"recent_transactions",
|
|
1351
|
+
] # noqa: Y015
|
|
1352
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1353
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1354
|
+
"credits",
|
|
1355
|
+
b"credits",
|
|
1356
|
+
"expires_at",
|
|
1357
|
+
b"expires_at",
|
|
1358
|
+
"pending_credits",
|
|
1359
|
+
b"pending_credits",
|
|
1360
|
+
"recent_transactions",
|
|
1361
|
+
b"recent_transactions",
|
|
1362
|
+
] # noqa: Y015
|
|
1363
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1364
|
+
|
|
1365
|
+
Global___GetCreditBalanceResponse: _TypeAlias = GetCreditBalanceResponse # noqa: Y015
|
|
1366
|
+
|
|
1367
|
+
@_typing.final
|
|
1368
|
+
class CreditTransaction(_message.Message):
|
|
1369
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1370
|
+
|
|
1371
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
1372
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
1373
|
+
AMOUNT_FIELD_NUMBER: _builtins.int
|
|
1374
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
1375
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
1376
|
+
id: _builtins.str
|
|
1377
|
+
type: _builtins.str
|
|
1269
1378
|
"""purchase, usage, refund, bonus"""
|
|
1270
|
-
amount:
|
|
1379
|
+
amount: _builtins.int
|
|
1271
1380
|
"""Positive for credits, negative for usage"""
|
|
1272
|
-
description:
|
|
1273
|
-
@property
|
|
1274
|
-
def created_at(self) ->
|
|
1381
|
+
description: _builtins.str
|
|
1382
|
+
@_builtins.property
|
|
1383
|
+
def created_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
1275
1384
|
def __init__(
|
|
1276
1385
|
self,
|
|
1277
1386
|
*,
|
|
1278
|
-
id:
|
|
1279
|
-
type:
|
|
1280
|
-
amount:
|
|
1281
|
-
description:
|
|
1282
|
-
created_at:
|
|
1283
|
-
) -> None: ...
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1387
|
+
id: _builtins.str | None = ...,
|
|
1388
|
+
type: _builtins.str | None = ...,
|
|
1389
|
+
amount: _builtins.int | None = ...,
|
|
1390
|
+
description: _builtins.str | None = ...,
|
|
1391
|
+
created_at: _timestamp_pb2.Timestamp | None = ...,
|
|
1392
|
+
) -> None: ...
|
|
1393
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1394
|
+
"amount",
|
|
1395
|
+
b"amount",
|
|
1396
|
+
"created_at",
|
|
1397
|
+
b"created_at",
|
|
1398
|
+
"description",
|
|
1399
|
+
b"description",
|
|
1400
|
+
"id",
|
|
1401
|
+
b"id",
|
|
1402
|
+
"type",
|
|
1403
|
+
b"type",
|
|
1404
|
+
] # noqa: Y015
|
|
1405
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1406
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1407
|
+
"amount",
|
|
1408
|
+
b"amount",
|
|
1409
|
+
"created_at",
|
|
1410
|
+
b"created_at",
|
|
1411
|
+
"description",
|
|
1412
|
+
b"description",
|
|
1413
|
+
"id",
|
|
1414
|
+
b"id",
|
|
1415
|
+
"type",
|
|
1416
|
+
b"type",
|
|
1417
|
+
] # noqa: Y015
|
|
1418
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1419
|
+
|
|
1420
|
+
Global___CreditTransaction: _TypeAlias = CreditTransaction # noqa: Y015
|
|
1421
|
+
|
|
1422
|
+
@_typing.final
|
|
1423
|
+
class UpdateTaxInfoRequest(_message.Message):
|
|
1424
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1425
|
+
|
|
1426
|
+
TAX_ID_FIELD_NUMBER: _builtins.int
|
|
1427
|
+
TAX_ID_TYPE_FIELD_NUMBER: _builtins.int
|
|
1428
|
+
BILLING_ADDRESS_FIELD_NUMBER: _builtins.int
|
|
1429
|
+
BUSINESS_NAME_FIELD_NUMBER: _builtins.int
|
|
1430
|
+
TAX_EXEMPT_FIELD_NUMBER: _builtins.int
|
|
1431
|
+
tax_id: _builtins.str
|
|
1315
1432
|
"""VAT number, GST, etc"""
|
|
1316
|
-
tax_id_type:
|
|
1433
|
+
tax_id_type: _builtins.str
|
|
1317
1434
|
"""eu_vat, gb_vat, us_ein, etc"""
|
|
1318
|
-
business_name:
|
|
1319
|
-
tax_exempt:
|
|
1320
|
-
@property
|
|
1321
|
-
def billing_address(self) ->
|
|
1435
|
+
business_name: _builtins.str
|
|
1436
|
+
tax_exempt: _builtins.bool
|
|
1437
|
+
@_builtins.property
|
|
1438
|
+
def billing_address(self) -> _subscription_pb2.Address: ...
|
|
1322
1439
|
def __init__(
|
|
1323
1440
|
self,
|
|
1324
1441
|
*,
|
|
1325
|
-
tax_id:
|
|
1326
|
-
tax_id_type:
|
|
1327
|
-
billing_address:
|
|
1328
|
-
business_name:
|
|
1329
|
-
tax_exempt:
|
|
1330
|
-
) -> None: ...
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1442
|
+
tax_id: _builtins.str | None = ...,
|
|
1443
|
+
tax_id_type: _builtins.str | None = ...,
|
|
1444
|
+
billing_address: _subscription_pb2.Address | None = ...,
|
|
1445
|
+
business_name: _builtins.str | None = ...,
|
|
1446
|
+
tax_exempt: _builtins.bool | None = ...,
|
|
1447
|
+
) -> None: ...
|
|
1448
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1449
|
+
"billing_address",
|
|
1450
|
+
b"billing_address",
|
|
1451
|
+
"business_name",
|
|
1452
|
+
b"business_name",
|
|
1453
|
+
"tax_exempt",
|
|
1454
|
+
b"tax_exempt",
|
|
1455
|
+
"tax_id",
|
|
1456
|
+
b"tax_id",
|
|
1457
|
+
"tax_id_type",
|
|
1458
|
+
b"tax_id_type",
|
|
1459
|
+
] # noqa: Y015
|
|
1460
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1461
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1462
|
+
"billing_address",
|
|
1463
|
+
b"billing_address",
|
|
1464
|
+
"business_name",
|
|
1465
|
+
b"business_name",
|
|
1466
|
+
"tax_exempt",
|
|
1467
|
+
b"tax_exempt",
|
|
1468
|
+
"tax_id",
|
|
1469
|
+
b"tax_id",
|
|
1470
|
+
"tax_id_type",
|
|
1471
|
+
b"tax_id_type",
|
|
1472
|
+
] # noqa: Y015
|
|
1473
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1474
|
+
|
|
1475
|
+
Global___UpdateTaxInfoRequest: _TypeAlias = UpdateTaxInfoRequest # noqa: Y015
|
|
1476
|
+
|
|
1477
|
+
@_typing.final
|
|
1478
|
+
class UpdateTaxInfoResponse(_message.Message):
|
|
1479
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1480
|
+
|
|
1481
|
+
SUCCESS_FIELD_NUMBER: _builtins.int
|
|
1482
|
+
MESSAGE_FIELD_NUMBER: _builtins.int
|
|
1483
|
+
TAX_INFO_FIELD_NUMBER: _builtins.int
|
|
1484
|
+
success: _builtins.bool
|
|
1485
|
+
message: _builtins.str
|
|
1486
|
+
@_builtins.property
|
|
1487
|
+
def tax_info(self) -> Global___TaxInfo: ...
|
|
1363
1488
|
def __init__(
|
|
1364
1489
|
self,
|
|
1365
1490
|
*,
|
|
1366
|
-
success:
|
|
1367
|
-
message:
|
|
1368
|
-
tax_info:
|
|
1369
|
-
) -> None: ...
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
def
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
verification_status: builtins.str
|
|
1491
|
+
success: _builtins.bool | None = ...,
|
|
1492
|
+
message: _builtins.str | None = ...,
|
|
1493
|
+
tax_info: Global___TaxInfo | None = ...,
|
|
1494
|
+
) -> None: ...
|
|
1495
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1496
|
+
"message", b"message", "success", b"success", "tax_info", b"tax_info"
|
|
1497
|
+
] # noqa: Y015
|
|
1498
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1499
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1500
|
+
"message", b"message", "success", b"success", "tax_info", b"tax_info"
|
|
1501
|
+
] # noqa: Y015
|
|
1502
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1503
|
+
|
|
1504
|
+
Global___UpdateTaxInfoResponse: _TypeAlias = UpdateTaxInfoResponse # noqa: Y015
|
|
1505
|
+
|
|
1506
|
+
@_typing.final
|
|
1507
|
+
class TaxInfo(_message.Message):
|
|
1508
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1509
|
+
|
|
1510
|
+
TAX_ID_FIELD_NUMBER: _builtins.int
|
|
1511
|
+
TAX_ID_TYPE_FIELD_NUMBER: _builtins.int
|
|
1512
|
+
VERIFICATION_STATUS_FIELD_NUMBER: _builtins.int
|
|
1513
|
+
BILLING_ADDRESS_FIELD_NUMBER: _builtins.int
|
|
1514
|
+
BUSINESS_NAME_FIELD_NUMBER: _builtins.int
|
|
1515
|
+
TAX_EXEMPT_FIELD_NUMBER: _builtins.int
|
|
1516
|
+
APPLICABLE_RATES_FIELD_NUMBER: _builtins.int
|
|
1517
|
+
tax_id: _builtins.str
|
|
1518
|
+
tax_id_type: _builtins.str
|
|
1519
|
+
verification_status: _builtins.str
|
|
1396
1520
|
"""pending, verified, unverified"""
|
|
1397
|
-
business_name:
|
|
1398
|
-
tax_exempt:
|
|
1399
|
-
@property
|
|
1400
|
-
def billing_address(self) ->
|
|
1401
|
-
@property
|
|
1521
|
+
business_name: _builtins.str
|
|
1522
|
+
tax_exempt: _builtins.bool
|
|
1523
|
+
@_builtins.property
|
|
1524
|
+
def billing_address(self) -> _subscription_pb2.Address: ...
|
|
1525
|
+
@_builtins.property
|
|
1402
1526
|
def applicable_rates(
|
|
1403
1527
|
self,
|
|
1404
|
-
) ->
|
|
1405
|
-
weaveapi.payment.v1.invoice_pb2.TaxRate
|
|
1406
|
-
]: ...
|
|
1528
|
+
) -> _containers.RepeatedCompositeFieldContainer[_invoice_pb2.TaxRate]: ...
|
|
1407
1529
|
def __init__(
|
|
1408
1530
|
self,
|
|
1409
1531
|
*,
|
|
1410
|
-
tax_id:
|
|
1411
|
-
tax_id_type:
|
|
1412
|
-
verification_status:
|
|
1413
|
-
billing_address:
|
|
1414
|
-
business_name:
|
|
1415
|
-
tax_exempt:
|
|
1416
|
-
applicable_rates:
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1532
|
+
tax_id: _builtins.str | None = ...,
|
|
1533
|
+
tax_id_type: _builtins.str | None = ...,
|
|
1534
|
+
verification_status: _builtins.str | None = ...,
|
|
1535
|
+
billing_address: _subscription_pb2.Address | None = ...,
|
|
1536
|
+
business_name: _builtins.str | None = ...,
|
|
1537
|
+
tax_exempt: _builtins.bool | None = ...,
|
|
1538
|
+
applicable_rates: _abc.Iterable[_invoice_pb2.TaxRate] | None = ...,
|
|
1539
|
+
) -> None: ...
|
|
1540
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1541
|
+
"applicable_rates",
|
|
1542
|
+
b"applicable_rates",
|
|
1543
|
+
"billing_address",
|
|
1544
|
+
b"billing_address",
|
|
1545
|
+
"business_name",
|
|
1546
|
+
b"business_name",
|
|
1547
|
+
"tax_exempt",
|
|
1548
|
+
b"tax_exempt",
|
|
1549
|
+
"tax_id",
|
|
1550
|
+
b"tax_id",
|
|
1551
|
+
"tax_id_type",
|
|
1552
|
+
b"tax_id_type",
|
|
1553
|
+
"verification_status",
|
|
1554
|
+
b"verification_status",
|
|
1555
|
+
] # noqa: Y015
|
|
1556
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1557
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1558
|
+
"applicable_rates",
|
|
1559
|
+
b"applicable_rates",
|
|
1560
|
+
"billing_address",
|
|
1561
|
+
b"billing_address",
|
|
1562
|
+
"business_name",
|
|
1563
|
+
b"business_name",
|
|
1564
|
+
"tax_exempt",
|
|
1565
|
+
b"tax_exempt",
|
|
1566
|
+
"tax_id",
|
|
1567
|
+
b"tax_id",
|
|
1568
|
+
"tax_id_type",
|
|
1569
|
+
b"tax_id_type",
|
|
1570
|
+
"verification_status",
|
|
1571
|
+
b"verification_status",
|
|
1572
|
+
] # noqa: Y015
|
|
1573
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1574
|
+
|
|
1575
|
+
Global___TaxInfo: _TypeAlias = TaxInfo # noqa: Y015
|
|
1576
|
+
|
|
1577
|
+
@_typing.final
|
|
1578
|
+
class DownloadInvoiceRequest(_message.Message):
|
|
1579
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1580
|
+
|
|
1581
|
+
INVOICE_ID_FIELD_NUMBER: _builtins.int
|
|
1582
|
+
invoice_id: _builtins.str
|
|
1452
1583
|
def __init__(
|
|
1453
1584
|
self,
|
|
1454
1585
|
*,
|
|
1455
|
-
invoice_id:
|
|
1456
|
-
) -> None: ...
|
|
1457
|
-
def ClearField(
|
|
1458
|
-
self, field_name: typing.Literal["invoice_id", b"invoice_id"]
|
|
1586
|
+
invoice_id: _builtins.str | None = ...,
|
|
1459
1587
|
) -> None: ...
|
|
1588
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["invoice_id", b"invoice_id"] # noqa: Y015
|
|
1589
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1590
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal["invoice_id", b"invoice_id"] # noqa: Y015
|
|
1591
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1460
1592
|
|
|
1461
|
-
|
|
1593
|
+
Global___DownloadInvoiceRequest: _TypeAlias = DownloadInvoiceRequest # noqa: Y015
|
|
1462
1594
|
|
|
1463
|
-
@
|
|
1464
|
-
class DownloadInvoiceResponse(
|
|
1465
|
-
DESCRIPTOR:
|
|
1595
|
+
@_typing.final
|
|
1596
|
+
class DownloadInvoiceResponse(_message.Message):
|
|
1597
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
1466
1598
|
|
|
1467
|
-
PDF_DATA_FIELD_NUMBER:
|
|
1468
|
-
FILENAME_FIELD_NUMBER:
|
|
1469
|
-
CONTENT_TYPE_FIELD_NUMBER:
|
|
1470
|
-
pdf_data:
|
|
1471
|
-
filename:
|
|
1472
|
-
content_type:
|
|
1599
|
+
PDF_DATA_FIELD_NUMBER: _builtins.int
|
|
1600
|
+
FILENAME_FIELD_NUMBER: _builtins.int
|
|
1601
|
+
CONTENT_TYPE_FIELD_NUMBER: _builtins.int
|
|
1602
|
+
pdf_data: _builtins.bytes
|
|
1603
|
+
filename: _builtins.str
|
|
1604
|
+
content_type: _builtins.str
|
|
1473
1605
|
def __init__(
|
|
1474
1606
|
self,
|
|
1475
1607
|
*,
|
|
1476
|
-
pdf_data:
|
|
1477
|
-
filename:
|
|
1478
|
-
content_type:
|
|
1479
|
-
) -> None: ...
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1608
|
+
pdf_data: _builtins.bytes | None = ...,
|
|
1609
|
+
filename: _builtins.str | None = ...,
|
|
1610
|
+
content_type: _builtins.str | None = ...,
|
|
1611
|
+
) -> None: ...
|
|
1612
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
1613
|
+
"content_type",
|
|
1614
|
+
b"content_type",
|
|
1615
|
+
"filename",
|
|
1616
|
+
b"filename",
|
|
1617
|
+
"pdf_data",
|
|
1618
|
+
b"pdf_data",
|
|
1619
|
+
] # noqa: Y015
|
|
1620
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
1621
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
1622
|
+
"content_type",
|
|
1623
|
+
b"content_type",
|
|
1624
|
+
"filename",
|
|
1625
|
+
b"filename",
|
|
1626
|
+
"pdf_data",
|
|
1627
|
+
b"pdf_data",
|
|
1628
|
+
] # noqa: Y015
|
|
1629
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
1630
|
+
|
|
1631
|
+
Global___DownloadInvoiceResponse: _TypeAlias = DownloadInvoiceResponse # noqa: Y015
|