weave-python 0.28.2__py3-none-any.whl → 0.30.4__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 +184 -88
- 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 +12 -4
- 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 +16 -12
- 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 +58 -16
- 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 +29 -17
- 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 +30 -4
- 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 +50 -20
- 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 +3 -3
- 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 +86 -54
- 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 +54 -18
- 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 +22 -18
- 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 +3 -3
- 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 +224 -86
- 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 +14 -8
- 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 +47 -27
- 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 +36 -10
- 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 +256 -90
- 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 +97 -21
- 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 +3 -3
- 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 +45 -21
- 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 +25 -11
- 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 +94 -34
- 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 +37 -21
- 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 +18 -4
- 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 +10 -8
- 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 +4 -4
- 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 +17 -9
- 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 +40 -22
- 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 +17 -11
- 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.4.dist-info}/METADATA +3 -3
- weave_python-0.30.4.dist-info/RECORD +131 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.4.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.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,693 +3,809 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
+
import builtins as _builtins
|
|
12
|
+
import sys
|
|
13
|
+
import typing as _typing
|
|
14
|
+
|
|
15
|
+
if sys.version_info >= (3, 10):
|
|
16
|
+
from typing import TypeAlias as _TypeAlias
|
|
17
|
+
else:
|
|
18
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
21
|
+
|
|
22
|
+
@_typing.final
|
|
23
|
+
class SubscriptionStatus(_message.Message):
|
|
24
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
25
|
+
|
|
26
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
27
|
+
STATUS_FIELD_NUMBER: _builtins.int
|
|
28
|
+
TIER_FIELD_NUMBER: _builtins.int
|
|
29
|
+
PLAN_FIELD_NUMBER: _builtins.int
|
|
30
|
+
CURRENT_PERIOD_START_FIELD_NUMBER: _builtins.int
|
|
31
|
+
CURRENT_PERIOD_END_FIELD_NUMBER: _builtins.int
|
|
32
|
+
CANCEL_AT_FIELD_NUMBER: _builtins.int
|
|
33
|
+
CANCELED_AT_FIELD_NUMBER: _builtins.int
|
|
34
|
+
CANCEL_AT_PERIOD_END_FIELD_NUMBER: _builtins.int
|
|
35
|
+
DEFAULT_PAYMENT_METHOD_FIELD_NUMBER: _builtins.int
|
|
36
|
+
CURRENCY_FIELD_NUMBER: _builtins.int
|
|
37
|
+
AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
|
|
38
|
+
IS_TRIAL_FIELD_NUMBER: _builtins.int
|
|
39
|
+
TRIAL_START_FIELD_NUMBER: _builtins.int
|
|
40
|
+
TRIAL_END_FIELD_NUMBER: _builtins.int
|
|
41
|
+
ACTIVE_DISCOUNT_FIELD_NUMBER: _builtins.int
|
|
42
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
43
|
+
UPDATED_AT_FIELD_NUMBER: _builtins.int
|
|
44
|
+
FEATURES_FIELD_NUMBER: _builtins.int
|
|
45
|
+
id: _builtins.str
|
|
40
46
|
"""Stripe subscription ID"""
|
|
41
|
-
status:
|
|
47
|
+
status: _builtins.str
|
|
42
48
|
"""active, past_due, canceled, trialing, incomplete"""
|
|
43
|
-
tier:
|
|
49
|
+
tier: _builtins.str
|
|
44
50
|
"""free, pro"""
|
|
45
|
-
cancel_at_period_end:
|
|
46
|
-
currency:
|
|
47
|
-
amount_cents:
|
|
51
|
+
cancel_at_period_end: _builtins.bool
|
|
52
|
+
currency: _builtins.str
|
|
53
|
+
amount_cents: _builtins.int
|
|
48
54
|
"""Amount in cents"""
|
|
49
|
-
is_trial:
|
|
55
|
+
is_trial: _builtins.bool
|
|
50
56
|
"""Trial"""
|
|
51
|
-
@property
|
|
52
|
-
def plan(self) ->
|
|
57
|
+
@_builtins.property
|
|
58
|
+
def plan(self) -> Global___PricingPlan:
|
|
53
59
|
"""Billing details"""
|
|
54
60
|
|
|
55
|
-
@property
|
|
56
|
-
def current_period_start(self) ->
|
|
57
|
-
@property
|
|
58
|
-
def current_period_end(self) ->
|
|
59
|
-
@property
|
|
60
|
-
def cancel_at(self) ->
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
@property
|
|
64
|
-
def
|
|
65
|
-
"""When it was canceled"""
|
|
66
|
-
|
|
67
|
-
@property
|
|
68
|
-
def default_payment_method(self) -> global___PaymentMethod:
|
|
61
|
+
@_builtins.property
|
|
62
|
+
def current_period_start(self) -> _timestamp_pb2.Timestamp: ...
|
|
63
|
+
@_builtins.property
|
|
64
|
+
def current_period_end(self) -> _timestamp_pb2.Timestamp: ...
|
|
65
|
+
@_builtins.property
|
|
66
|
+
def cancel_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
67
|
+
@_builtins.property
|
|
68
|
+
def canceled_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
69
|
+
@_builtins.property
|
|
70
|
+
def default_payment_method(self) -> Global___PaymentMethod:
|
|
69
71
|
"""Payment"""
|
|
70
72
|
|
|
71
|
-
@property
|
|
72
|
-
def trial_start(self) ->
|
|
73
|
-
@property
|
|
74
|
-
def trial_end(self) ->
|
|
75
|
-
@property
|
|
76
|
-
def active_discount(self) ->
|
|
73
|
+
@_builtins.property
|
|
74
|
+
def trial_start(self) -> _timestamp_pb2.Timestamp: ...
|
|
75
|
+
@_builtins.property
|
|
76
|
+
def trial_end(self) -> _timestamp_pb2.Timestamp: ...
|
|
77
|
+
@_builtins.property
|
|
78
|
+
def active_discount(self) -> Global___Discount:
|
|
77
79
|
"""Discount"""
|
|
78
80
|
|
|
79
|
-
@property
|
|
80
|
-
def created_at(self) ->
|
|
81
|
+
@_builtins.property
|
|
82
|
+
def created_at(self) -> _timestamp_pb2.Timestamp:
|
|
81
83
|
"""Metadata"""
|
|
82
84
|
|
|
83
|
-
@property
|
|
84
|
-
def updated_at(self) ->
|
|
85
|
-
@property
|
|
86
|
-
def features(self) ->
|
|
85
|
+
@_builtins.property
|
|
86
|
+
def updated_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
87
|
+
@_builtins.property
|
|
88
|
+
def features(self) -> Global___SubscriptionFeatures:
|
|
87
89
|
"""Additional features"""
|
|
88
90
|
|
|
89
91
|
def __init__(
|
|
90
92
|
self,
|
|
91
93
|
*,
|
|
92
|
-
id:
|
|
93
|
-
status:
|
|
94
|
-
tier:
|
|
95
|
-
plan:
|
|
96
|
-
current_period_start:
|
|
97
|
-
current_period_end:
|
|
98
|
-
cancel_at:
|
|
99
|
-
canceled_at:
|
|
100
|
-
cancel_at_period_end:
|
|
101
|
-
default_payment_method:
|
|
102
|
-
currency:
|
|
103
|
-
amount_cents:
|
|
104
|
-
is_trial:
|
|
105
|
-
trial_start:
|
|
106
|
-
trial_end:
|
|
107
|
-
active_discount:
|
|
108
|
-
created_at:
|
|
109
|
-
updated_at:
|
|
110
|
-
features:
|
|
111
|
-
) -> None: ...
|
|
112
|
-
def HasField(
|
|
113
|
-
self,
|
|
114
|
-
field_name: typing.Literal[
|
|
115
|
-
"active_discount",
|
|
116
|
-
b"active_discount",
|
|
117
|
-
"cancel_at",
|
|
118
|
-
b"cancel_at",
|
|
119
|
-
"canceled_at",
|
|
120
|
-
b"canceled_at",
|
|
121
|
-
"created_at",
|
|
122
|
-
b"created_at",
|
|
123
|
-
"current_period_end",
|
|
124
|
-
b"current_period_end",
|
|
125
|
-
"current_period_start",
|
|
126
|
-
b"current_period_start",
|
|
127
|
-
"default_payment_method",
|
|
128
|
-
b"default_payment_method",
|
|
129
|
-
"features",
|
|
130
|
-
b"features",
|
|
131
|
-
"plan",
|
|
132
|
-
b"plan",
|
|
133
|
-
"trial_end",
|
|
134
|
-
b"trial_end",
|
|
135
|
-
"trial_start",
|
|
136
|
-
b"trial_start",
|
|
137
|
-
"updated_at",
|
|
138
|
-
b"updated_at",
|
|
139
|
-
],
|
|
140
|
-
) -> builtins.bool: ...
|
|
141
|
-
def ClearField(
|
|
142
|
-
self,
|
|
143
|
-
field_name: typing.Literal[
|
|
144
|
-
"active_discount",
|
|
145
|
-
b"active_discount",
|
|
146
|
-
"amount_cents",
|
|
147
|
-
b"amount_cents",
|
|
148
|
-
"cancel_at",
|
|
149
|
-
b"cancel_at",
|
|
150
|
-
"cancel_at_period_end",
|
|
151
|
-
b"cancel_at_period_end",
|
|
152
|
-
"canceled_at",
|
|
153
|
-
b"canceled_at",
|
|
154
|
-
"created_at",
|
|
155
|
-
b"created_at",
|
|
156
|
-
"currency",
|
|
157
|
-
b"currency",
|
|
158
|
-
"current_period_end",
|
|
159
|
-
b"current_period_end",
|
|
160
|
-
"current_period_start",
|
|
161
|
-
b"current_period_start",
|
|
162
|
-
"default_payment_method",
|
|
163
|
-
b"default_payment_method",
|
|
164
|
-
"features",
|
|
165
|
-
b"features",
|
|
166
|
-
"id",
|
|
167
|
-
b"id",
|
|
168
|
-
"is_trial",
|
|
169
|
-
b"is_trial",
|
|
170
|
-
"plan",
|
|
171
|
-
b"plan",
|
|
172
|
-
"status",
|
|
173
|
-
b"status",
|
|
174
|
-
"tier",
|
|
175
|
-
b"tier",
|
|
176
|
-
"trial_end",
|
|
177
|
-
b"trial_end",
|
|
178
|
-
"trial_start",
|
|
179
|
-
b"trial_start",
|
|
180
|
-
"updated_at",
|
|
181
|
-
b"updated_at",
|
|
182
|
-
],
|
|
94
|
+
id: _builtins.str | None = ...,
|
|
95
|
+
status: _builtins.str | None = ...,
|
|
96
|
+
tier: _builtins.str | None = ...,
|
|
97
|
+
plan: Global___PricingPlan | None = ...,
|
|
98
|
+
current_period_start: _timestamp_pb2.Timestamp | None = ...,
|
|
99
|
+
current_period_end: _timestamp_pb2.Timestamp | None = ...,
|
|
100
|
+
cancel_at: _timestamp_pb2.Timestamp | None = ...,
|
|
101
|
+
canceled_at: _timestamp_pb2.Timestamp | None = ...,
|
|
102
|
+
cancel_at_period_end: _builtins.bool | None = ...,
|
|
103
|
+
default_payment_method: Global___PaymentMethod | None = ...,
|
|
104
|
+
currency: _builtins.str | None = ...,
|
|
105
|
+
amount_cents: _builtins.int | None = ...,
|
|
106
|
+
is_trial: _builtins.bool | None = ...,
|
|
107
|
+
trial_start: _timestamp_pb2.Timestamp | None = ...,
|
|
108
|
+
trial_end: _timestamp_pb2.Timestamp | None = ...,
|
|
109
|
+
active_discount: Global___Discount | None = ...,
|
|
110
|
+
created_at: _timestamp_pb2.Timestamp | None = ...,
|
|
111
|
+
updated_at: _timestamp_pb2.Timestamp | None = ...,
|
|
112
|
+
features: Global___SubscriptionFeatures | None = ...,
|
|
183
113
|
) -> None: ...
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
114
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
115
|
+
"active_discount",
|
|
116
|
+
b"active_discount",
|
|
117
|
+
"amount_cents",
|
|
118
|
+
b"amount_cents",
|
|
119
|
+
"cancel_at",
|
|
120
|
+
b"cancel_at",
|
|
121
|
+
"cancel_at_period_end",
|
|
122
|
+
b"cancel_at_period_end",
|
|
123
|
+
"canceled_at",
|
|
124
|
+
b"canceled_at",
|
|
125
|
+
"created_at",
|
|
126
|
+
b"created_at",
|
|
127
|
+
"currency",
|
|
128
|
+
b"currency",
|
|
129
|
+
"current_period_end",
|
|
130
|
+
b"current_period_end",
|
|
131
|
+
"current_period_start",
|
|
132
|
+
b"current_period_start",
|
|
133
|
+
"default_payment_method",
|
|
134
|
+
b"default_payment_method",
|
|
135
|
+
"features",
|
|
136
|
+
b"features",
|
|
137
|
+
"id",
|
|
138
|
+
b"id",
|
|
139
|
+
"is_trial",
|
|
140
|
+
b"is_trial",
|
|
141
|
+
"plan",
|
|
142
|
+
b"plan",
|
|
143
|
+
"status",
|
|
144
|
+
b"status",
|
|
145
|
+
"tier",
|
|
146
|
+
b"tier",
|
|
147
|
+
"trial_end",
|
|
148
|
+
b"trial_end",
|
|
149
|
+
"trial_start",
|
|
150
|
+
b"trial_start",
|
|
151
|
+
"updated_at",
|
|
152
|
+
b"updated_at",
|
|
153
|
+
] # noqa: Y015
|
|
154
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
155
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
156
|
+
"active_discount",
|
|
157
|
+
b"active_discount",
|
|
158
|
+
"amount_cents",
|
|
159
|
+
b"amount_cents",
|
|
160
|
+
"cancel_at",
|
|
161
|
+
b"cancel_at",
|
|
162
|
+
"cancel_at_period_end",
|
|
163
|
+
b"cancel_at_period_end",
|
|
164
|
+
"canceled_at",
|
|
165
|
+
b"canceled_at",
|
|
166
|
+
"created_at",
|
|
167
|
+
b"created_at",
|
|
168
|
+
"currency",
|
|
169
|
+
b"currency",
|
|
170
|
+
"current_period_end",
|
|
171
|
+
b"current_period_end",
|
|
172
|
+
"current_period_start",
|
|
173
|
+
b"current_period_start",
|
|
174
|
+
"default_payment_method",
|
|
175
|
+
b"default_payment_method",
|
|
176
|
+
"features",
|
|
177
|
+
b"features",
|
|
178
|
+
"id",
|
|
179
|
+
b"id",
|
|
180
|
+
"is_trial",
|
|
181
|
+
b"is_trial",
|
|
182
|
+
"plan",
|
|
183
|
+
b"plan",
|
|
184
|
+
"status",
|
|
185
|
+
b"status",
|
|
186
|
+
"tier",
|
|
187
|
+
b"tier",
|
|
188
|
+
"trial_end",
|
|
189
|
+
b"trial_end",
|
|
190
|
+
"trial_start",
|
|
191
|
+
b"trial_start",
|
|
192
|
+
"updated_at",
|
|
193
|
+
b"updated_at",
|
|
194
|
+
] # noqa: Y015
|
|
195
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
196
|
+
|
|
197
|
+
Global___SubscriptionStatus: _TypeAlias = SubscriptionStatus # noqa: Y015
|
|
198
|
+
|
|
199
|
+
@_typing.final
|
|
200
|
+
class PricingPlan(_message.Message):
|
|
201
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
202
|
+
|
|
203
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
204
|
+
PRODUCT_ID_FIELD_NUMBER: _builtins.int
|
|
205
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
206
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
207
|
+
AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
|
|
208
|
+
CURRENCY_FIELD_NUMBER: _builtins.int
|
|
209
|
+
INTERVAL_FIELD_NUMBER: _builtins.int
|
|
210
|
+
INTERVAL_COUNT_FIELD_NUMBER: _builtins.int
|
|
211
|
+
FEATURES_FIELD_NUMBER: _builtins.int
|
|
212
|
+
IS_DEFAULT_FIELD_NUMBER: _builtins.int
|
|
213
|
+
IS_POPULAR_FIELD_NUMBER: _builtins.int
|
|
214
|
+
HIGHLIGHTS_FIELD_NUMBER: _builtins.int
|
|
215
|
+
id: _builtins.str
|
|
204
216
|
"""Stripe price ID"""
|
|
205
|
-
product_id:
|
|
217
|
+
product_id: _builtins.str
|
|
206
218
|
"""Stripe product ID"""
|
|
207
|
-
name:
|
|
219
|
+
name: _builtins.str
|
|
208
220
|
""""Free", "Pro" """
|
|
209
|
-
description:
|
|
210
|
-
amount_cents:
|
|
221
|
+
description: _builtins.str
|
|
222
|
+
amount_cents: _builtins.int
|
|
211
223
|
"""Monthly price in cents"""
|
|
212
|
-
currency:
|
|
213
|
-
interval:
|
|
224
|
+
currency: _builtins.str
|
|
225
|
+
interval: _builtins.str
|
|
214
226
|
"""month, year"""
|
|
215
|
-
interval_count:
|
|
227
|
+
interval_count: _builtins.int
|
|
216
228
|
"""1 for monthly, 12 for yearly"""
|
|
217
|
-
is_default:
|
|
229
|
+
is_default: _builtins.bool
|
|
218
230
|
"""Metadata"""
|
|
219
|
-
is_popular:
|
|
220
|
-
@property
|
|
221
|
-
def features(self) ->
|
|
231
|
+
is_popular: _builtins.bool
|
|
232
|
+
@_builtins.property
|
|
233
|
+
def features(self) -> Global___SubscriptionFeatures:
|
|
222
234
|
"""Features"""
|
|
223
235
|
|
|
224
|
-
@property
|
|
225
|
-
def highlights(
|
|
226
|
-
self,
|
|
227
|
-
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
236
|
+
@_builtins.property
|
|
237
|
+
def highlights(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]:
|
|
228
238
|
"""Key selling points"""
|
|
229
239
|
|
|
230
240
|
def __init__(
|
|
231
241
|
self,
|
|
232
242
|
*,
|
|
233
|
-
id:
|
|
234
|
-
product_id:
|
|
235
|
-
name:
|
|
236
|
-
description:
|
|
237
|
-
amount_cents:
|
|
238
|
-
currency:
|
|
239
|
-
interval:
|
|
240
|
-
interval_count:
|
|
241
|
-
features:
|
|
242
|
-
is_default:
|
|
243
|
-
is_popular:
|
|
244
|
-
highlights:
|
|
243
|
+
id: _builtins.str | None = ...,
|
|
244
|
+
product_id: _builtins.str | None = ...,
|
|
245
|
+
name: _builtins.str | None = ...,
|
|
246
|
+
description: _builtins.str | None = ...,
|
|
247
|
+
amount_cents: _builtins.int | None = ...,
|
|
248
|
+
currency: _builtins.str | None = ...,
|
|
249
|
+
interval: _builtins.str | None = ...,
|
|
250
|
+
interval_count: _builtins.int | None = ...,
|
|
251
|
+
features: Global___SubscriptionFeatures | None = ...,
|
|
252
|
+
is_default: _builtins.bool | None = ...,
|
|
253
|
+
is_popular: _builtins.bool | None = ...,
|
|
254
|
+
highlights: _abc.Iterable[_builtins.str] | None = ...,
|
|
245
255
|
) -> None: ...
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
256
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
257
|
+
"amount_cents",
|
|
258
|
+
b"amount_cents",
|
|
259
|
+
"currency",
|
|
260
|
+
b"currency",
|
|
261
|
+
"description",
|
|
262
|
+
b"description",
|
|
263
|
+
"features",
|
|
264
|
+
b"features",
|
|
265
|
+
"highlights",
|
|
266
|
+
b"highlights",
|
|
267
|
+
"id",
|
|
268
|
+
b"id",
|
|
269
|
+
"interval",
|
|
270
|
+
b"interval",
|
|
271
|
+
"interval_count",
|
|
272
|
+
b"interval_count",
|
|
273
|
+
"is_default",
|
|
274
|
+
b"is_default",
|
|
275
|
+
"is_popular",
|
|
276
|
+
b"is_popular",
|
|
277
|
+
"name",
|
|
278
|
+
b"name",
|
|
279
|
+
"product_id",
|
|
280
|
+
b"product_id",
|
|
281
|
+
] # noqa: Y015
|
|
282
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
283
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
284
|
+
"amount_cents",
|
|
285
|
+
b"amount_cents",
|
|
286
|
+
"currency",
|
|
287
|
+
b"currency",
|
|
288
|
+
"description",
|
|
289
|
+
b"description",
|
|
290
|
+
"features",
|
|
291
|
+
b"features",
|
|
292
|
+
"highlights",
|
|
293
|
+
b"highlights",
|
|
294
|
+
"id",
|
|
295
|
+
b"id",
|
|
296
|
+
"interval",
|
|
297
|
+
b"interval",
|
|
298
|
+
"interval_count",
|
|
299
|
+
b"interval_count",
|
|
300
|
+
"is_default",
|
|
301
|
+
b"is_default",
|
|
302
|
+
"is_popular",
|
|
303
|
+
b"is_popular",
|
|
304
|
+
"name",
|
|
305
|
+
b"name",
|
|
306
|
+
"product_id",
|
|
307
|
+
b"product_id",
|
|
308
|
+
] # noqa: Y015
|
|
309
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
310
|
+
|
|
311
|
+
Global___PricingPlan: _TypeAlias = PricingPlan # noqa: Y015
|
|
312
|
+
|
|
313
|
+
@_typing.final
|
|
314
|
+
class SubscriptionFeatures(_message.Message):
|
|
315
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
316
|
+
|
|
317
|
+
API_REQUESTS_PER_HOUR_FIELD_NUMBER: _builtins.int
|
|
318
|
+
API_REQUESTS_PER_DAY_FIELD_NUMBER: _builtins.int
|
|
319
|
+
API_REQUESTS_PER_MONTH_FIELD_NUMBER: _builtins.int
|
|
320
|
+
UNLIMITED_REQUESTS_FIELD_NUMBER: _builtins.int
|
|
321
|
+
API_KEYS_LIMIT_FIELD_NUMBER: _builtins.int
|
|
322
|
+
UNLIMITED_API_KEYS_FIELD_NUMBER: _builtins.int
|
|
323
|
+
WEBHOOK_ACCESS_FIELD_NUMBER: _builtins.int
|
|
324
|
+
EXPORT_ACCESS_FIELD_NUMBER: _builtins.int
|
|
325
|
+
PRIORITY_SUPPORT_FIELD_NUMBER: _builtins.int
|
|
326
|
+
CUSTOM_LIMITS_FIELD_NUMBER: _builtins.int
|
|
327
|
+
TEAM_ACCESS_FIELD_NUMBER: _builtins.int
|
|
328
|
+
TEAM_MEMBERS_LIMIT_FIELD_NUMBER: _builtins.int
|
|
329
|
+
SSO_ACCESS_FIELD_NUMBER: _builtins.int
|
|
330
|
+
AUDIT_LOGS_FIELD_NUMBER: _builtins.int
|
|
331
|
+
SLA_GUARANTEE_FIELD_NUMBER: _builtins.int
|
|
332
|
+
api_requests_per_hour: _builtins.int
|
|
333
|
+
api_requests_per_day: _builtins.int
|
|
334
|
+
api_requests_per_month: _builtins.int
|
|
335
|
+
unlimited_requests: _builtins.bool
|
|
336
|
+
api_keys_limit: _builtins.int
|
|
337
|
+
unlimited_api_keys: _builtins.bool
|
|
338
|
+
webhook_access: _builtins.bool
|
|
339
|
+
export_access: _builtins.bool
|
|
340
|
+
priority_support: _builtins.bool
|
|
341
|
+
custom_limits: _builtins.bool
|
|
342
|
+
team_access: _builtins.bool
|
|
311
343
|
"""Advanced features"""
|
|
312
|
-
team_members_limit:
|
|
313
|
-
sso_access:
|
|
314
|
-
audit_logs:
|
|
315
|
-
sla_guarantee:
|
|
344
|
+
team_members_limit: _builtins.int
|
|
345
|
+
sso_access: _builtins.bool
|
|
346
|
+
audit_logs: _builtins.bool
|
|
347
|
+
sla_guarantee: _builtins.bool
|
|
316
348
|
def __init__(
|
|
317
349
|
self,
|
|
318
350
|
*,
|
|
319
|
-
api_requests_per_hour:
|
|
320
|
-
api_requests_per_day:
|
|
321
|
-
api_requests_per_month:
|
|
322
|
-
unlimited_requests:
|
|
323
|
-
api_keys_limit:
|
|
324
|
-
unlimited_api_keys:
|
|
325
|
-
webhook_access:
|
|
326
|
-
export_access:
|
|
327
|
-
priority_support:
|
|
328
|
-
custom_limits:
|
|
329
|
-
team_access:
|
|
330
|
-
team_members_limit:
|
|
331
|
-
sso_access:
|
|
332
|
-
audit_logs:
|
|
333
|
-
sla_guarantee:
|
|
351
|
+
api_requests_per_hour: _builtins.int | None = ...,
|
|
352
|
+
api_requests_per_day: _builtins.int | None = ...,
|
|
353
|
+
api_requests_per_month: _builtins.int | None = ...,
|
|
354
|
+
unlimited_requests: _builtins.bool | None = ...,
|
|
355
|
+
api_keys_limit: _builtins.int | None = ...,
|
|
356
|
+
unlimited_api_keys: _builtins.bool | None = ...,
|
|
357
|
+
webhook_access: _builtins.bool | None = ...,
|
|
358
|
+
export_access: _builtins.bool | None = ...,
|
|
359
|
+
priority_support: _builtins.bool | None = ...,
|
|
360
|
+
custom_limits: _builtins.bool | None = ...,
|
|
361
|
+
team_access: _builtins.bool | None = ...,
|
|
362
|
+
team_members_limit: _builtins.int | None = ...,
|
|
363
|
+
sso_access: _builtins.bool | None = ...,
|
|
364
|
+
audit_logs: _builtins.bool | None = ...,
|
|
365
|
+
sla_guarantee: _builtins.bool | None = ...,
|
|
334
366
|
) -> None: ...
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
367
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
368
|
+
"api_keys_limit",
|
|
369
|
+
b"api_keys_limit",
|
|
370
|
+
"api_requests_per_day",
|
|
371
|
+
b"api_requests_per_day",
|
|
372
|
+
"api_requests_per_hour",
|
|
373
|
+
b"api_requests_per_hour",
|
|
374
|
+
"api_requests_per_month",
|
|
375
|
+
b"api_requests_per_month",
|
|
376
|
+
"audit_logs",
|
|
377
|
+
b"audit_logs",
|
|
378
|
+
"custom_limits",
|
|
379
|
+
b"custom_limits",
|
|
380
|
+
"export_access",
|
|
381
|
+
b"export_access",
|
|
382
|
+
"priority_support",
|
|
383
|
+
b"priority_support",
|
|
384
|
+
"sla_guarantee",
|
|
385
|
+
b"sla_guarantee",
|
|
386
|
+
"sso_access",
|
|
387
|
+
b"sso_access",
|
|
388
|
+
"team_access",
|
|
389
|
+
b"team_access",
|
|
390
|
+
"team_members_limit",
|
|
391
|
+
b"team_members_limit",
|
|
392
|
+
"unlimited_api_keys",
|
|
393
|
+
b"unlimited_api_keys",
|
|
394
|
+
"unlimited_requests",
|
|
395
|
+
b"unlimited_requests",
|
|
396
|
+
"webhook_access",
|
|
397
|
+
b"webhook_access",
|
|
398
|
+
] # noqa: Y015
|
|
399
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
400
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
401
|
+
"api_keys_limit",
|
|
402
|
+
b"api_keys_limit",
|
|
403
|
+
"api_requests_per_day",
|
|
404
|
+
b"api_requests_per_day",
|
|
405
|
+
"api_requests_per_hour",
|
|
406
|
+
b"api_requests_per_hour",
|
|
407
|
+
"api_requests_per_month",
|
|
408
|
+
b"api_requests_per_month",
|
|
409
|
+
"audit_logs",
|
|
410
|
+
b"audit_logs",
|
|
411
|
+
"custom_limits",
|
|
412
|
+
b"custom_limits",
|
|
413
|
+
"export_access",
|
|
414
|
+
b"export_access",
|
|
415
|
+
"priority_support",
|
|
416
|
+
b"priority_support",
|
|
417
|
+
"sla_guarantee",
|
|
418
|
+
b"sla_guarantee",
|
|
419
|
+
"sso_access",
|
|
420
|
+
b"sso_access",
|
|
421
|
+
"team_access",
|
|
422
|
+
b"team_access",
|
|
423
|
+
"team_members_limit",
|
|
424
|
+
b"team_members_limit",
|
|
425
|
+
"unlimited_api_keys",
|
|
426
|
+
b"unlimited_api_keys",
|
|
427
|
+
"unlimited_requests",
|
|
428
|
+
b"unlimited_requests",
|
|
429
|
+
"webhook_access",
|
|
430
|
+
b"webhook_access",
|
|
431
|
+
] # noqa: Y015
|
|
432
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
433
|
+
|
|
434
|
+
Global___SubscriptionFeatures: _TypeAlias = SubscriptionFeatures # noqa: Y015
|
|
435
|
+
|
|
436
|
+
@_typing.final
|
|
437
|
+
class PaymentMethod(_message.Message):
|
|
438
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
439
|
+
|
|
440
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
441
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
442
|
+
IS_DEFAULT_FIELD_NUMBER: _builtins.int
|
|
443
|
+
CARD_FIELD_NUMBER: _builtins.int
|
|
444
|
+
BANK_FIELD_NUMBER: _builtins.int
|
|
445
|
+
BILLING_DETAILS_FIELD_NUMBER: _builtins.int
|
|
446
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
447
|
+
id: _builtins.str
|
|
385
448
|
"""Stripe payment method ID"""
|
|
386
|
-
type:
|
|
449
|
+
type: _builtins.str
|
|
387
450
|
"""card, bank_account"""
|
|
388
|
-
is_default:
|
|
389
|
-
@property
|
|
390
|
-
def card(self) ->
|
|
451
|
+
is_default: _builtins.bool
|
|
452
|
+
@_builtins.property
|
|
453
|
+
def card(self) -> Global___CardDetails:
|
|
391
454
|
"""Card details (if type == "card")"""
|
|
392
455
|
|
|
393
|
-
@property
|
|
394
|
-
def bank(self) ->
|
|
456
|
+
@_builtins.property
|
|
457
|
+
def bank(self) -> Global___BankDetails:
|
|
395
458
|
"""Bank details (if type == "bank_account")"""
|
|
396
459
|
|
|
397
|
-
@property
|
|
398
|
-
def billing_details(self) ->
|
|
460
|
+
@_builtins.property
|
|
461
|
+
def billing_details(self) -> Global___BillingDetails:
|
|
399
462
|
"""Billing details"""
|
|
400
463
|
|
|
401
|
-
@property
|
|
402
|
-
def created_at(self) ->
|
|
464
|
+
@_builtins.property
|
|
465
|
+
def created_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
403
466
|
def __init__(
|
|
404
467
|
self,
|
|
405
468
|
*,
|
|
406
|
-
id:
|
|
407
|
-
type:
|
|
408
|
-
is_default:
|
|
409
|
-
card:
|
|
410
|
-
bank:
|
|
411
|
-
billing_details:
|
|
412
|
-
created_at:
|
|
469
|
+
id: _builtins.str | None = ...,
|
|
470
|
+
type: _builtins.str | None = ...,
|
|
471
|
+
is_default: _builtins.bool | None = ...,
|
|
472
|
+
card: Global___CardDetails | None = ...,
|
|
473
|
+
bank: Global___BankDetails | None = ...,
|
|
474
|
+
billing_details: Global___BillingDetails | None = ...,
|
|
475
|
+
created_at: _timestamp_pb2.Timestamp | None = ...,
|
|
413
476
|
) -> None: ...
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
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
|
-
|
|
477
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
478
|
+
"bank",
|
|
479
|
+
b"bank",
|
|
480
|
+
"billing_details",
|
|
481
|
+
b"billing_details",
|
|
482
|
+
"card",
|
|
483
|
+
b"card",
|
|
484
|
+
"created_at",
|
|
485
|
+
b"created_at",
|
|
486
|
+
"id",
|
|
487
|
+
b"id",
|
|
488
|
+
"is_default",
|
|
489
|
+
b"is_default",
|
|
490
|
+
"type",
|
|
491
|
+
b"type",
|
|
492
|
+
] # noqa: Y015
|
|
493
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
494
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
495
|
+
"bank",
|
|
496
|
+
b"bank",
|
|
497
|
+
"billing_details",
|
|
498
|
+
b"billing_details",
|
|
499
|
+
"card",
|
|
500
|
+
b"card",
|
|
501
|
+
"created_at",
|
|
502
|
+
b"created_at",
|
|
503
|
+
"id",
|
|
504
|
+
b"id",
|
|
505
|
+
"is_default",
|
|
506
|
+
b"is_default",
|
|
507
|
+
"type",
|
|
508
|
+
b"type",
|
|
509
|
+
] # noqa: Y015
|
|
510
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
511
|
+
|
|
512
|
+
Global___PaymentMethod: _TypeAlias = PaymentMethod # noqa: Y015
|
|
513
|
+
|
|
514
|
+
@_typing.final
|
|
515
|
+
class CardDetails(_message.Message):
|
|
516
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
517
|
+
|
|
518
|
+
BRAND_FIELD_NUMBER: _builtins.int
|
|
519
|
+
LAST4_FIELD_NUMBER: _builtins.int
|
|
520
|
+
EXP_MONTH_FIELD_NUMBER: _builtins.int
|
|
521
|
+
EXP_YEAR_FIELD_NUMBER: _builtins.int
|
|
522
|
+
FUNDING_FIELD_NUMBER: _builtins.int
|
|
523
|
+
COUNTRY_FIELD_NUMBER: _builtins.int
|
|
524
|
+
FINGERPRINT_FIELD_NUMBER: _builtins.int
|
|
525
|
+
brand: _builtins.str
|
|
461
526
|
"""visa, mastercard, amex, etc"""
|
|
462
|
-
last4:
|
|
463
|
-
exp_month:
|
|
464
|
-
exp_year:
|
|
465
|
-
funding:
|
|
527
|
+
last4: _builtins.str
|
|
528
|
+
exp_month: _builtins.int
|
|
529
|
+
exp_year: _builtins.int
|
|
530
|
+
funding: _builtins.str
|
|
466
531
|
"""credit, debit, prepaid"""
|
|
467
|
-
country:
|
|
468
|
-
fingerprint:
|
|
532
|
+
country: _builtins.str
|
|
533
|
+
fingerprint: _builtins.str
|
|
469
534
|
"""Unique card identifier"""
|
|
470
535
|
def __init__(
|
|
471
536
|
self,
|
|
472
537
|
*,
|
|
473
|
-
brand:
|
|
474
|
-
last4:
|
|
475
|
-
exp_month:
|
|
476
|
-
exp_year:
|
|
477
|
-
funding:
|
|
478
|
-
country:
|
|
479
|
-
fingerprint:
|
|
538
|
+
brand: _builtins.str | None = ...,
|
|
539
|
+
last4: _builtins.str | None = ...,
|
|
540
|
+
exp_month: _builtins.int | None = ...,
|
|
541
|
+
exp_year: _builtins.int | None = ...,
|
|
542
|
+
funding: _builtins.str | None = ...,
|
|
543
|
+
country: _builtins.str | None = ...,
|
|
544
|
+
fingerprint: _builtins.str | None = ...,
|
|
480
545
|
) -> None: ...
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
546
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
547
|
+
"brand",
|
|
548
|
+
b"brand",
|
|
549
|
+
"country",
|
|
550
|
+
b"country",
|
|
551
|
+
"exp_month",
|
|
552
|
+
b"exp_month",
|
|
553
|
+
"exp_year",
|
|
554
|
+
b"exp_year",
|
|
555
|
+
"fingerprint",
|
|
556
|
+
b"fingerprint",
|
|
557
|
+
"funding",
|
|
558
|
+
b"funding",
|
|
559
|
+
"last4",
|
|
560
|
+
b"last4",
|
|
561
|
+
] # noqa: Y015
|
|
562
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
563
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
564
|
+
"brand",
|
|
565
|
+
b"brand",
|
|
566
|
+
"country",
|
|
567
|
+
b"country",
|
|
568
|
+
"exp_month",
|
|
569
|
+
b"exp_month",
|
|
570
|
+
"exp_year",
|
|
571
|
+
b"exp_year",
|
|
572
|
+
"fingerprint",
|
|
573
|
+
b"fingerprint",
|
|
574
|
+
"funding",
|
|
575
|
+
b"funding",
|
|
576
|
+
"last4",
|
|
577
|
+
b"last4",
|
|
578
|
+
] # noqa: Y015
|
|
579
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
580
|
+
|
|
581
|
+
Global___CardDetails: _TypeAlias = CardDetails # noqa: Y015
|
|
582
|
+
|
|
583
|
+
@_typing.final
|
|
584
|
+
class BankDetails(_message.Message):
|
|
585
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
586
|
+
|
|
587
|
+
BANK_NAME_FIELD_NUMBER: _builtins.int
|
|
588
|
+
LAST4_FIELD_NUMBER: _builtins.int
|
|
589
|
+
ACCOUNT_TYPE_FIELD_NUMBER: _builtins.int
|
|
590
|
+
COUNTRY_FIELD_NUMBER: _builtins.int
|
|
591
|
+
CURRENCY_FIELD_NUMBER: _builtins.int
|
|
592
|
+
bank_name: _builtins.str
|
|
593
|
+
last4: _builtins.str
|
|
594
|
+
account_type: _builtins.str
|
|
595
|
+
country: _builtins.str
|
|
596
|
+
currency: _builtins.str
|
|
517
597
|
def __init__(
|
|
518
598
|
self,
|
|
519
599
|
*,
|
|
520
|
-
bank_name:
|
|
521
|
-
last4:
|
|
522
|
-
account_type:
|
|
523
|
-
country:
|
|
524
|
-
currency:
|
|
600
|
+
bank_name: _builtins.str | None = ...,
|
|
601
|
+
last4: _builtins.str | None = ...,
|
|
602
|
+
account_type: _builtins.str | None = ...,
|
|
603
|
+
country: _builtins.str | None = ...,
|
|
604
|
+
currency: _builtins.str | None = ...,
|
|
525
605
|
) -> None: ...
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
606
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
607
|
+
"account_type",
|
|
608
|
+
b"account_type",
|
|
609
|
+
"bank_name",
|
|
610
|
+
b"bank_name",
|
|
611
|
+
"country",
|
|
612
|
+
b"country",
|
|
613
|
+
"currency",
|
|
614
|
+
b"currency",
|
|
615
|
+
"last4",
|
|
616
|
+
b"last4",
|
|
617
|
+
] # noqa: Y015
|
|
618
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
619
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
620
|
+
"account_type",
|
|
621
|
+
b"account_type",
|
|
622
|
+
"bank_name",
|
|
623
|
+
b"bank_name",
|
|
624
|
+
"country",
|
|
625
|
+
b"country",
|
|
626
|
+
"currency",
|
|
627
|
+
b"currency",
|
|
628
|
+
"last4",
|
|
629
|
+
b"last4",
|
|
630
|
+
] # noqa: Y015
|
|
631
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
632
|
+
|
|
633
|
+
Global___BankDetails: _TypeAlias = BankDetails # noqa: Y015
|
|
634
|
+
|
|
635
|
+
@_typing.final
|
|
636
|
+
class BillingDetails(_message.Message):
|
|
637
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
638
|
+
|
|
639
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
640
|
+
EMAIL_FIELD_NUMBER: _builtins.int
|
|
641
|
+
PHONE_FIELD_NUMBER: _builtins.int
|
|
642
|
+
ADDRESS_FIELD_NUMBER: _builtins.int
|
|
643
|
+
name: _builtins.str
|
|
644
|
+
email: _builtins.str
|
|
645
|
+
phone: _builtins.str
|
|
646
|
+
@_builtins.property
|
|
647
|
+
def address(self) -> Global___Address: ...
|
|
557
648
|
def __init__(
|
|
558
649
|
self,
|
|
559
650
|
*,
|
|
560
|
-
name:
|
|
561
|
-
email:
|
|
562
|
-
phone:
|
|
563
|
-
address:
|
|
564
|
-
) -> None: ...
|
|
565
|
-
def HasField(
|
|
566
|
-
self, field_name: typing.Literal["address", b"address"]
|
|
567
|
-
) -> builtins.bool: ...
|
|
568
|
-
def ClearField(
|
|
569
|
-
self,
|
|
570
|
-
field_name: typing.Literal[
|
|
571
|
-
"address", b"address", "email", b"email", "name", b"name", "phone", b"phone"
|
|
572
|
-
],
|
|
651
|
+
name: _builtins.str | None = ...,
|
|
652
|
+
email: _builtins.str | None = ...,
|
|
653
|
+
phone: _builtins.str | None = ...,
|
|
654
|
+
address: Global___Address | None = ...,
|
|
573
655
|
) -> None: ...
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
656
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
657
|
+
"address", b"address", "email", b"email", "name", b"name", "phone", b"phone"
|
|
658
|
+
] # noqa: Y015
|
|
659
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
660
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
661
|
+
"address", b"address", "email", b"email", "name", b"name", "phone", b"phone"
|
|
662
|
+
] # noqa: Y015
|
|
663
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
664
|
+
|
|
665
|
+
Global___BillingDetails: _TypeAlias = BillingDetails # noqa: Y015
|
|
666
|
+
|
|
667
|
+
@_typing.final
|
|
668
|
+
class Address(_message.Message):
|
|
669
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
670
|
+
|
|
671
|
+
LINE1_FIELD_NUMBER: _builtins.int
|
|
672
|
+
LINE2_FIELD_NUMBER: _builtins.int
|
|
673
|
+
CITY_FIELD_NUMBER: _builtins.int
|
|
674
|
+
STATE_FIELD_NUMBER: _builtins.int
|
|
675
|
+
POSTAL_CODE_FIELD_NUMBER: _builtins.int
|
|
676
|
+
COUNTRY_FIELD_NUMBER: _builtins.int
|
|
677
|
+
line1: _builtins.str
|
|
678
|
+
line2: _builtins.str
|
|
679
|
+
city: _builtins.str
|
|
680
|
+
state: _builtins.str
|
|
681
|
+
postal_code: _builtins.str
|
|
682
|
+
country: _builtins.str
|
|
593
683
|
"""ISO country code"""
|
|
594
684
|
def __init__(
|
|
595
685
|
self,
|
|
596
686
|
*,
|
|
597
|
-
line1:
|
|
598
|
-
line2:
|
|
599
|
-
city:
|
|
600
|
-
state:
|
|
601
|
-
postal_code:
|
|
602
|
-
country:
|
|
687
|
+
line1: _builtins.str | None = ...,
|
|
688
|
+
line2: _builtins.str | None = ...,
|
|
689
|
+
city: _builtins.str | None = ...,
|
|
690
|
+
state: _builtins.str | None = ...,
|
|
691
|
+
postal_code: _builtins.str | None = ...,
|
|
692
|
+
country: _builtins.str | None = ...,
|
|
603
693
|
) -> None: ...
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
694
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
695
|
+
"city",
|
|
696
|
+
b"city",
|
|
697
|
+
"country",
|
|
698
|
+
b"country",
|
|
699
|
+
"line1",
|
|
700
|
+
b"line1",
|
|
701
|
+
"line2",
|
|
702
|
+
b"line2",
|
|
703
|
+
"postal_code",
|
|
704
|
+
b"postal_code",
|
|
705
|
+
"state",
|
|
706
|
+
b"state",
|
|
707
|
+
] # noqa: Y015
|
|
708
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
709
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
710
|
+
"city",
|
|
711
|
+
b"city",
|
|
712
|
+
"country",
|
|
713
|
+
b"country",
|
|
714
|
+
"line1",
|
|
715
|
+
b"line1",
|
|
716
|
+
"line2",
|
|
717
|
+
b"line2",
|
|
718
|
+
"postal_code",
|
|
719
|
+
b"postal_code",
|
|
720
|
+
"state",
|
|
721
|
+
b"state",
|
|
722
|
+
] # noqa: Y015
|
|
723
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
724
|
+
|
|
725
|
+
Global___Address: _TypeAlias = Address # noqa: Y015
|
|
726
|
+
|
|
727
|
+
@_typing.final
|
|
728
|
+
class Discount(_message.Message):
|
|
729
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
730
|
+
|
|
731
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
732
|
+
NAME_FIELD_NUMBER: _builtins.int
|
|
733
|
+
TYPE_FIELD_NUMBER: _builtins.int
|
|
734
|
+
PERCENT_OFF_FIELD_NUMBER: _builtins.int
|
|
735
|
+
AMOUNT_OFF_CENTS_FIELD_NUMBER: _builtins.int
|
|
736
|
+
DURATION_FIELD_NUMBER: _builtins.int
|
|
737
|
+
DURATION_IN_MONTHS_FIELD_NUMBER: _builtins.int
|
|
738
|
+
VALID_UNTIL_FIELD_NUMBER: _builtins.int
|
|
739
|
+
APPLIED_AT_FIELD_NUMBER: _builtins.int
|
|
740
|
+
id: _builtins.str
|
|
638
741
|
"""Stripe coupon ID"""
|
|
639
|
-
name:
|
|
640
|
-
type:
|
|
742
|
+
name: _builtins.str
|
|
743
|
+
type: _builtins.str
|
|
641
744
|
"""percentage, fixed_amount"""
|
|
642
|
-
percent_off:
|
|
643
|
-
amount_off_cents:
|
|
644
|
-
duration:
|
|
745
|
+
percent_off: _builtins.float
|
|
746
|
+
amount_off_cents: _builtins.int
|
|
747
|
+
duration: _builtins.str
|
|
645
748
|
"""forever, once, repeating"""
|
|
646
|
-
duration_in_months:
|
|
749
|
+
duration_in_months: _builtins.int
|
|
647
750
|
"""If duration is "repeating" """
|
|
648
|
-
@property
|
|
649
|
-
def valid_until(self) ->
|
|
650
|
-
@property
|
|
651
|
-
def applied_at(self) ->
|
|
751
|
+
@_builtins.property
|
|
752
|
+
def valid_until(self) -> _timestamp_pb2.Timestamp: ...
|
|
753
|
+
@_builtins.property
|
|
754
|
+
def applied_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
652
755
|
def __init__(
|
|
653
756
|
self,
|
|
654
757
|
*,
|
|
655
|
-
id:
|
|
656
|
-
name:
|
|
657
|
-
type:
|
|
658
|
-
percent_off:
|
|
659
|
-
amount_off_cents:
|
|
660
|
-
duration:
|
|
661
|
-
duration_in_months:
|
|
662
|
-
valid_until:
|
|
663
|
-
applied_at:
|
|
758
|
+
id: _builtins.str | None = ...,
|
|
759
|
+
name: _builtins.str | None = ...,
|
|
760
|
+
type: _builtins.str | None = ...,
|
|
761
|
+
percent_off: _builtins.float | None = ...,
|
|
762
|
+
amount_off_cents: _builtins.int | None = ...,
|
|
763
|
+
duration: _builtins.str | None = ...,
|
|
764
|
+
duration_in_months: _builtins.int | None = ...,
|
|
765
|
+
valid_until: _timestamp_pb2.Timestamp | None = ...,
|
|
766
|
+
applied_at: _timestamp_pb2.Timestamp | None = ...,
|
|
664
767
|
) -> None: ...
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
768
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
769
|
+
"amount_off_cents",
|
|
770
|
+
b"amount_off_cents",
|
|
771
|
+
"applied_at",
|
|
772
|
+
b"applied_at",
|
|
773
|
+
"duration",
|
|
774
|
+
b"duration",
|
|
775
|
+
"duration_in_months",
|
|
776
|
+
b"duration_in_months",
|
|
777
|
+
"id",
|
|
778
|
+
b"id",
|
|
779
|
+
"name",
|
|
780
|
+
b"name",
|
|
781
|
+
"percent_off",
|
|
782
|
+
b"percent_off",
|
|
783
|
+
"type",
|
|
784
|
+
b"type",
|
|
785
|
+
"valid_until",
|
|
786
|
+
b"valid_until",
|
|
787
|
+
] # noqa: Y015
|
|
788
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
789
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
790
|
+
"amount_off_cents",
|
|
791
|
+
b"amount_off_cents",
|
|
792
|
+
"applied_at",
|
|
793
|
+
b"applied_at",
|
|
794
|
+
"duration",
|
|
795
|
+
b"duration",
|
|
796
|
+
"duration_in_months",
|
|
797
|
+
b"duration_in_months",
|
|
798
|
+
"id",
|
|
799
|
+
b"id",
|
|
800
|
+
"name",
|
|
801
|
+
b"name",
|
|
802
|
+
"percent_off",
|
|
803
|
+
b"percent_off",
|
|
804
|
+
"type",
|
|
805
|
+
b"type",
|
|
806
|
+
"valid_until",
|
|
807
|
+
b"valid_until",
|
|
808
|
+
] # noqa: Y015
|
|
809
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
810
|
+
|
|
811
|
+
Global___Discount: _TypeAlias = Discount # noqa: Y015
|