weave-python 0.28.1__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.
Files changed (105) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +194 -98
  2. weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
  3. weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
  4. weave/weaveapi/auth/v1/session_pb2.py +14 -6
  5. weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
  6. weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
  7. weave/weaveapi/auth/v1/usage_pb2.py +18 -14
  8. weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
  9. weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
  10. weave/weaveapi/auth/v1/user_pb2.py +60 -18
  11. weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
  12. weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
  13. weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
  14. weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
  15. weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
  16. weave/weaveapi/generate/v1/generate_pb2.py +32 -6
  17. weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
  18. weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
  19. weave/weaveapi/generate/v1/service_pb2.py +52 -22
  20. weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
  21. weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
  22. weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
  23. weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
  24. weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
  25. weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
  26. weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
  27. weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
  28. weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
  29. weave/weaveapi/llmx/v1/model_pb2.py +56 -20
  30. weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
  31. weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
  32. weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
  33. weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
  34. weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
  35. weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
  36. weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
  37. weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
  38. weave/weaveapi/llmx/v1/service_pb2.py +228 -90
  39. weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
  40. weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
  41. weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
  42. weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
  43. weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
  44. weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
  45. weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
  46. weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
  47. weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
  48. weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
  49. weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
  50. weave/weaveapi/payment/v1/service_pb2.py +264 -98
  51. weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
  52. weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
  53. weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
  54. weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
  55. weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
  56. weave/weaveapi/storage/v1/auth_pb2.py +6 -6
  57. weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
  58. weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
  59. weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
  60. weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
  61. weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
  62. weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
  63. weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
  64. weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
  65. weave/weaveapi/storage/v1/service_pb2.py +96 -36
  66. weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
  67. weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
  68. weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
  69. weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
  70. weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
  71. weave/weaveapi/storage/v1/storage_pb2.py +20 -6
  72. weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
  73. weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
  74. weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
  75. weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
  76. weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
  77. weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
  78. weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
  79. weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
  80. weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
  81. weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
  82. weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
  83. weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
  84. weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
  85. weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
  86. weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
  87. weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
  88. weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
  89. weave/weavesql/llmxdb/capabilities.py +487 -0
  90. weave/weavesql/llmxdb/changes.py +297 -0
  91. weave/weavesql/llmxdb/models.py +594 -0
  92. weave/weavesql/llmxdb/providers.py +348 -0
  93. weave/weavesql/llmxdb/scraper_runs.py +287 -0
  94. weave/weavesql/llmxdb/search.py +721 -0
  95. weave/weavesql/weavedb/dataset.py +75 -0
  96. weave/weavesql/weavedb/models.py +135 -0
  97. weave/weavesql/weavedb/relationships.py +72 -0
  98. weave/weavesql/weavedb/storage.py +113 -0
  99. weave/weavesql/weavedb/synthesizer.py +107 -0
  100. weave_python-0.30.3.dist-info/METADATA +52 -0
  101. weave_python-0.30.3.dist-info/RECORD +131 -0
  102. {weave_python-0.28.1.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
  103. weave_python-0.30.3.dist-info/licenses/LICENSE +120 -0
  104. weave_python-0.28.1.dist-info/METADATA +0 -6
  105. weave_python-0.28.1.dist-info/RECORD +0 -119
@@ -3,1490 +3,1629 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import builtins
7
- import collections.abc
8
- import google.protobuf.descriptor
9
- import google.protobuf.internal.containers
10
- import google.protobuf.message
11
- import google.protobuf.timestamp_pb2
12
- import typing
13
- import weaveapi.payment.v1.invoice_pb2
14
- import weaveapi.payment.v1.subscription_pb2
15
-
16
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
17
-
18
- @typing.final
19
- class CreateCheckoutSessionRequest(google.protobuf.message.Message):
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: google.protobuf.descriptor.Descriptor
28
+ DESCRIPTOR: _descriptor.Descriptor
23
29
 
24
- @typing.final
25
- class MetadataEntry(google.protobuf.message.Message):
26
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
30
+ @_typing.final
31
+ class MetadataEntry(_message.Message):
32
+ DESCRIPTOR: _descriptor.Descriptor
27
33
 
28
- KEY_FIELD_NUMBER: builtins.int
29
- VALUE_FIELD_NUMBER: builtins.int
30
- key: builtins.str
31
- value: builtins.str
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: builtins.str = ...,
36
- value: builtins.str = ...,
41
+ key: _builtins.str | None = ...,
42
+ value: _builtins.str | None = ...,
37
43
  ) -> None: ...
38
- def ClearField(
39
- self, field_name: typing.Literal["key", b"key", "value", b"value"]
40
- ) -> None: ...
41
-
42
- PRICE_ID_FIELD_NUMBER: builtins.int
43
- SUCCESS_URL_FIELD_NUMBER: builtins.int
44
- CANCEL_URL_FIELD_NUMBER: builtins.int
45
- PROMO_CODE_FIELD_NUMBER: builtins.int
46
- ALLOW_PROMOTION_CODES_FIELD_NUMBER: builtins.int
47
- TRIAL_DAYS_FIELD_NUMBER: builtins.int
48
- METADATA_FIELD_NUMBER: builtins.int
49
- CUSTOMER_EMAIL_FIELD_NUMBER: builtins.int
50
- AUTOMATIC_TAX_FIELD_NUMBER: builtins.int
51
- TAX_ID_COLLECTION_FIELD_NUMBER: builtins.int
52
- price_id: builtins.str
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: builtins.str
63
+ success_url: _builtins.str
55
64
  """Where to redirect on success"""
56
- cancel_url: builtins.str
65
+ cancel_url: _builtins.str
57
66
  """Where to redirect on cancel"""
58
- promo_code: builtins.str
67
+ promo_code: _builtins.str
59
68
  """Optional parameters"""
60
- allow_promotion_codes: builtins.bool
61
- trial_days: builtins.int
62
- customer_email: builtins.str
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: builtins.bool
73
+ automatic_tax: _builtins.bool
65
74
  """Tax"""
66
- @property
67
- def metadata(
68
- self,
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
- ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
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: builtins.str = ...,
80
- success_url: builtins.str = ...,
81
- cancel_url: builtins.str = ...,
82
- promo_code: builtins.str = ...,
83
- allow_promotion_codes: builtins.bool = ...,
84
- trial_days: builtins.int = ...,
85
- metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
86
- customer_email: builtins.str = ...,
87
- automatic_tax: builtins.bool = ...,
88
- tax_id_collection: collections.abc.Iterable[builtins.str] | None = ...,
89
- ) -> None: ...
90
- def ClearField(
91
- self,
92
- field_name: typing.Literal[
93
- "allow_promotion_codes",
94
- b"allow_promotion_codes",
95
- "automatic_tax",
96
- b"automatic_tax",
97
- "cancel_url",
98
- b"cancel_url",
99
- "customer_email",
100
- b"customer_email",
101
- "metadata",
102
- b"metadata",
103
- "price_id",
104
- b"price_id",
105
- "promo_code",
106
- b"promo_code",
107
- "success_url",
108
- b"success_url",
109
- "tax_id_collection",
110
- b"tax_id_collection",
111
- "trial_days",
112
- b"trial_days",
113
- ],
114
- ) -> None: ...
115
-
116
- global___CreateCheckoutSessionRequest = CreateCheckoutSessionRequest
117
-
118
- @typing.final
119
- class CreateCheckoutSessionResponse(google.protobuf.message.Message):
120
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
121
-
122
- SESSION_ID_FIELD_NUMBER: builtins.int
123
- CHECKOUT_URL_FIELD_NUMBER: builtins.int
124
- EXPIRES_AT_FIELD_NUMBER: builtins.int
125
- session_id: builtins.str
126
- checkout_url: builtins.str
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) -> google.protobuf.timestamp_pb2.Timestamp: ...
156
+ @_builtins.property
157
+ def expires_at(self) -> _timestamp_pb2.Timestamp: ...
130
158
  def __init__(
131
159
  self,
132
160
  *,
133
- session_id: builtins.str = ...,
134
- checkout_url: builtins.str = ...,
135
- expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
136
- ) -> None: ...
137
- def HasField(
138
- self, field_name: typing.Literal["expires_at", b"expires_at"]
139
- ) -> builtins.bool: ...
140
- def ClearField(
141
- self,
142
- field_name: typing.Literal[
143
- "checkout_url",
144
- b"checkout_url",
145
- "expires_at",
146
- b"expires_at",
147
- "session_id",
148
- b"session_id",
149
- ],
150
- ) -> None: ...
151
-
152
- global___CreateCheckoutSessionResponse = CreateCheckoutSessionResponse
153
-
154
- @typing.final
155
- class GetSubscriptionStatusRequest(google.protobuf.message.Message):
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: google.protobuf.descriptor.Descriptor
190
+ DESCRIPTOR: _descriptor.Descriptor
159
191
 
160
192
  def __init__(
161
193
  self,
162
194
  ) -> None: ...
163
195
 
164
- global___GetSubscriptionStatusRequest = GetSubscriptionStatusRequest
196
+ Global___GetSubscriptionStatusRequest: _TypeAlias = GetSubscriptionStatusRequest # noqa: Y015
165
197
 
166
- @typing.final
167
- class GetSubscriptionStatusResponse(google.protobuf.message.Message):
168
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
198
+ @_typing.final
199
+ class GetSubscriptionStatusResponse(_message.Message):
200
+ DESCRIPTOR: _descriptor.Descriptor
169
201
 
170
- SUBSCRIPTION_FIELD_NUMBER: builtins.int
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: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
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
- global___GetSubscriptionStatusResponse = GetSubscriptionStatusResponse
215
+ Global___GetSubscriptionStatusResponse: _TypeAlias = GetSubscriptionStatusResponse # noqa: Y015
189
216
 
190
- @typing.final
191
- class UpdateSubscriptionRequest(google.protobuf.message.Message):
192
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
217
+ @_typing.final
218
+ class UpdateSubscriptionRequest(_message.Message):
219
+ DESCRIPTOR: _descriptor.Descriptor
193
220
 
194
- @typing.final
195
- class MetadataEntry(google.protobuf.message.Message):
196
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
221
+ @_typing.final
222
+ class MetadataEntry(_message.Message):
223
+ DESCRIPTOR: _descriptor.Descriptor
197
224
 
198
- KEY_FIELD_NUMBER: builtins.int
199
- VALUE_FIELD_NUMBER: builtins.int
200
- key: builtins.str
201
- value: builtins.str
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: builtins.str = ...,
206
- value: builtins.str = ...,
232
+ key: _builtins.str | None = ...,
233
+ value: _builtins.str | None = ...,
207
234
  ) -> None: ...
208
- def ClearField(
209
- self, field_name: typing.Literal["key", b"key", "value", b"value"]
210
- ) -> None: ...
211
-
212
- PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
213
- PROMO_CODE_FIELD_NUMBER: builtins.int
214
- CANCEL_AT_PERIOD_END_FIELD_NUMBER: builtins.int
215
- METADATA_FIELD_NUMBER: builtins.int
216
- payment_method_id: builtins.str
217
- promo_code: builtins.str
218
- cancel_at_period_end: builtins.bool
219
- @property
220
- def metadata(
221
- self,
222
- ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
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: builtins.str = ...,
227
- promo_code: builtins.str = ...,
228
- cancel_at_period_end: builtins.bool = ...,
229
- metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
230
- ) -> None: ...
231
- def ClearField(
232
- self,
233
- field_name: typing.Literal[
234
- "cancel_at_period_end",
235
- b"cancel_at_period_end",
236
- "metadata",
237
- b"metadata",
238
- "payment_method_id",
239
- b"payment_method_id",
240
- "promo_code",
241
- b"promo_code",
242
- ],
243
- ) -> None: ...
244
-
245
- global___UpdateSubscriptionRequest = UpdateSubscriptionRequest
246
-
247
- @typing.final
248
- class UpdateSubscriptionResponse(google.protobuf.message.Message):
249
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
250
-
251
- SUBSCRIPTION_FIELD_NUMBER: builtins.int
252
- MESSAGE_FIELD_NUMBER: builtins.int
253
- message: builtins.str
254
- @property
255
- def subscription(
256
- self,
257
- ) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
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: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
262
- | None = ...,
263
- message: builtins.str = ...,
264
- ) -> None: ...
265
- def HasField(
266
- self, field_name: typing.Literal["subscription", b"subscription"]
267
- ) -> builtins.bool: ...
268
- def ClearField(
269
- self,
270
- field_name: typing.Literal[
271
- "message", b"message", "subscription", b"subscription"
272
- ],
273
- ) -> None: ...
274
-
275
- global___UpdateSubscriptionResponse = UpdateSubscriptionResponse
276
-
277
- @typing.final
278
- class CancelSubscriptionRequest(google.protobuf.message.Message):
279
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
280
-
281
- IMMEDIATELY_FIELD_NUMBER: builtins.int
282
- REASON_FIELD_NUMBER: builtins.int
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: builtins.str
319
+ reason: _builtins.str
287
320
  """Optional cancellation reason"""
288
- feedback: builtins.str
321
+ feedback: _builtins.str
289
322
  """Optional user feedback"""
290
323
  def __init__(
291
324
  self,
292
325
  *,
293
- immediately: builtins.bool = ...,
294
- reason: builtins.str = ...,
295
- feedback: builtins.str = ...,
296
- ) -> None: ...
297
- def ClearField(
298
- self,
299
- field_name: typing.Literal[
300
- "feedback", b"feedback", "immediately", b"immediately", "reason", b"reason"
301
- ],
302
- ) -> None: ...
303
-
304
- global___CancelSubscriptionRequest = CancelSubscriptionRequest
305
-
306
- @typing.final
307
- class CancelSubscriptionResponse(google.protobuf.message.Message):
308
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
309
-
310
- SUBSCRIPTION_FIELD_NUMBER: builtins.int
311
- EFFECTIVE_DATE_FIELD_NUMBER: builtins.int
312
- CONFIRMATION_FIELD_NUMBER: builtins.int
313
- confirmation: builtins.str
314
- @property
315
- def subscription(
316
- self,
317
- ) -> weaveapi.payment.v1.subscription_pb2.SubscriptionStatus: ...
318
- @property
319
- def effective_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
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: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
324
- | None = ...,
325
- effective_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
326
- confirmation: builtins.str = ...,
327
- ) -> None: ...
328
- def HasField(
329
- self,
330
- field_name: typing.Literal[
331
- "effective_date", b"effective_date", "subscription", b"subscription"
332
- ],
333
- ) -> builtins.bool: ...
334
- def ClearField(
335
- self,
336
- field_name: typing.Literal[
337
- "confirmation",
338
- b"confirmation",
339
- "effective_date",
340
- b"effective_date",
341
- "subscription",
342
- b"subscription",
343
- ],
344
- ) -> None: ...
345
-
346
- global___CancelSubscriptionResponse = CancelSubscriptionResponse
347
-
348
- @typing.final
349
- class ResumeSubscriptionRequest(google.protobuf.message.Message):
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: google.protobuf.descriptor.Descriptor
385
+ DESCRIPTOR: _descriptor.Descriptor
353
386
 
354
387
  def __init__(
355
388
  self,
356
389
  ) -> None: ...
357
390
 
358
- global___ResumeSubscriptionRequest = ResumeSubscriptionRequest
391
+ Global___ResumeSubscriptionRequest: _TypeAlias = ResumeSubscriptionRequest # noqa: Y015
359
392
 
360
- @typing.final
361
- class ResumeSubscriptionResponse(google.protobuf.message.Message):
362
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
393
+ @_typing.final
394
+ class ResumeSubscriptionResponse(_message.Message):
395
+ DESCRIPTOR: _descriptor.Descriptor
363
396
 
364
- SUBSCRIPTION_FIELD_NUMBER: builtins.int
365
- MESSAGE_FIELD_NUMBER: builtins.int
366
- message: builtins.str
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: weaveapi.payment.v1.subscription_pb2.SubscriptionStatus
375
- | None = ...,
376
- message: builtins.str = ...,
377
- ) -> None: ...
378
- def HasField(
379
- self, field_name: typing.Literal["subscription", b"subscription"]
380
- ) -> builtins.bool: ...
381
- def ClearField(
382
- self,
383
- field_name: typing.Literal[
384
- "message", b"message", "subscription", b"subscription"
385
- ],
386
- ) -> None: ...
387
-
388
- global___ResumeSubscriptionResponse = ResumeSubscriptionResponse
389
-
390
- @typing.final
391
- class GetBillingHistoryRequest(google.protobuf.message.Message):
392
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
393
-
394
- LIMIT_FIELD_NUMBER: builtins.int
395
- STARTING_AFTER_FIELD_NUMBER: builtins.int
396
- ENDING_BEFORE_FIELD_NUMBER: builtins.int
397
- STATUS_FIELD_NUMBER: builtins.int
398
- CREATED_AFTER_FIELD_NUMBER: builtins.int
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: builtins.str
431
+ starting_after: _builtins.str
403
432
  """Pagination cursor"""
404
- ending_before: builtins.str
433
+ ending_before: _builtins.str
405
434
  """Pagination cursor"""
406
- status: builtins.str
435
+ status: _builtins.str
407
436
  """Filters
408
437
  paid, open, void
409
438
  """
410
- @property
411
- def created_after(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
412
- @property
413
- def created_before(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
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: builtins.int = ...,
418
- starting_after: builtins.str = ...,
419
- ending_before: builtins.str = ...,
420
- status: builtins.str = ...,
421
- created_after: google.protobuf.timestamp_pb2.Timestamp | None = ...,
422
- created_before: google.protobuf.timestamp_pb2.Timestamp | None = ...,
423
- ) -> None: ...
424
- def HasField(
425
- self,
426
- field_name: typing.Literal[
427
- "created_after", b"created_after", "created_before", b"created_before"
428
- ],
429
- ) -> builtins.bool: ...
430
- def ClearField(
431
- self,
432
- field_name: typing.Literal[
433
- "created_after",
434
- b"created_after",
435
- "created_before",
436
- b"created_before",
437
- "ending_before",
438
- b"ending_before",
439
- "limit",
440
- b"limit",
441
- "starting_after",
442
- b"starting_after",
443
- "status",
444
- b"status",
445
- ],
446
- ) -> None: ...
447
-
448
- global___GetBillingHistoryRequest = GetBillingHistoryRequest
449
-
450
- @typing.final
451
- class GetBillingHistoryResponse(google.protobuf.message.Message):
452
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
453
-
454
- INVOICES_FIELD_NUMBER: builtins.int
455
- HAS_MORE_FIELD_NUMBER: builtins.int
456
- NEXT_CURSOR_FIELD_NUMBER: builtins.int
457
- PREVIOUS_CURSOR_FIELD_NUMBER: builtins.int
458
- has_more: builtins.bool
459
- next_cursor: builtins.str
460
- previous_cursor: builtins.str
461
- @property
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
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
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: collections.abc.Iterable[weaveapi.payment.v1.invoice_pb2.Invoice]
471
- | None = ...,
472
- has_more: builtins.bool = ...,
473
- next_cursor: builtins.str = ...,
474
- previous_cursor: builtins.str = ...,
475
- ) -> None: ...
476
- def ClearField(
477
- self,
478
- field_name: typing.Literal[
479
- "has_more",
480
- b"has_more",
481
- "invoices",
482
- b"invoices",
483
- "next_cursor",
484
- b"next_cursor",
485
- "previous_cursor",
486
- b"previous_cursor",
487
- ],
488
- ) -> None: ...
489
-
490
- global___GetBillingHistoryResponse = GetBillingHistoryResponse
491
-
492
- @typing.final
493
- class GetUpcomingInvoiceRequest(google.protobuf.message.Message):
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: google.protobuf.descriptor.Descriptor
538
+ DESCRIPTOR: _descriptor.Descriptor
497
539
 
498
540
  def __init__(
499
541
  self,
500
542
  ) -> None: ...
501
543
 
502
- global___GetUpcomingInvoiceRequest = GetUpcomingInvoiceRequest
544
+ Global___GetUpcomingInvoiceRequest: _TypeAlias = GetUpcomingInvoiceRequest # noqa: Y015
503
545
 
504
- @typing.final
505
- class GetUpcomingInvoiceResponse(google.protobuf.message.Message):
506
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
546
+ @_typing.final
547
+ class GetUpcomingInvoiceResponse(_message.Message):
548
+ DESCRIPTOR: _descriptor.Descriptor
507
549
 
508
- INVOICE_FIELD_NUMBER: builtins.int
509
- @property
510
- def invoice(self) -> weaveapi.payment.v1.invoice_pb2.Invoice: ...
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: weaveapi.payment.v1.invoice_pb2.Invoice | None = ...,
556
+ invoice: _invoice_pb2.Invoice | None = ...,
515
557
  ) -> None: ...
516
- def HasField(
517
- self, field_name: typing.Literal["invoice", b"invoice"]
518
- ) -> builtins.bool: ...
519
- def ClearField(self, field_name: typing.Literal["invoice", b"invoice"]) -> None: ...
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
- global___GetUpcomingInvoiceResponse = GetUpcomingInvoiceResponse
563
+ Global___GetUpcomingInvoiceResponse: _TypeAlias = GetUpcomingInvoiceResponse # noqa: Y015
522
564
 
523
- @typing.final
524
- class ListPaymentMethodsRequest(google.protobuf.message.Message):
525
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
565
+ @_typing.final
566
+ class ListPaymentMethodsRequest(_message.Message):
567
+ DESCRIPTOR: _descriptor.Descriptor
526
568
 
527
- TYPE_FIELD_NUMBER: builtins.int
528
- type: builtins.str
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: builtins.str = ...,
575
+ type: _builtins.str | None = ...,
534
576
  ) -> None: ...
535
- def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ...
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
- global___ListPaymentMethodsRequest = ListPaymentMethodsRequest
582
+ Global___ListPaymentMethodsRequest: _TypeAlias = ListPaymentMethodsRequest # noqa: Y015
538
583
 
539
- @typing.final
540
- class ListPaymentMethodsResponse(google.protobuf.message.Message):
541
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
584
+ @_typing.final
585
+ class ListPaymentMethodsResponse(_message.Message):
586
+ DESCRIPTOR: _descriptor.Descriptor
542
587
 
543
- PAYMENT_METHODS_FIELD_NUMBER: builtins.int
544
- DEFAULT_PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
545
- default_payment_method_id: builtins.str
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
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
550
- weaveapi.payment.v1.subscription_pb2.PaymentMethod
594
+ ) -> _containers.RepeatedCompositeFieldContainer[
595
+ _subscription_pb2.PaymentMethod
551
596
  ]: ...
552
597
  def __init__(
553
598
  self,
554
599
  *,
555
- payment_methods: collections.abc.Iterable[
556
- weaveapi.payment.v1.subscription_pb2.PaymentMethod
557
- ]
558
- | None = ...,
559
- default_payment_method_id: builtins.str = ...,
560
- ) -> None: ...
561
- def ClearField(
562
- self,
563
- field_name: typing.Literal[
564
- "default_payment_method_id",
565
- b"default_payment_method_id",
566
- "payment_methods",
567
- b"payment_methods",
568
- ],
569
- ) -> None: ...
570
-
571
- global___ListPaymentMethodsResponse = ListPaymentMethodsResponse
572
-
573
- @typing.final
574
- class AddPaymentMethodRequest(google.protobuf.message.Message):
575
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
576
-
577
- PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
578
- SET_AS_DEFAULT_FIELD_NUMBER: builtins.int
579
- payment_method_id: builtins.str
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: builtins.bool
628
+ set_as_default: _builtins.bool
582
629
  def __init__(
583
630
  self,
584
631
  *,
585
- payment_method_id: builtins.str = ...,
586
- set_as_default: builtins.bool = ...,
587
- ) -> None: ...
588
- def ClearField(
589
- self,
590
- field_name: typing.Literal[
591
- "payment_method_id",
592
- b"payment_method_id",
593
- "set_as_default",
594
- b"set_as_default",
595
- ],
596
- ) -> None: ...
597
-
598
- global___AddPaymentMethodRequest = AddPaymentMethodRequest
599
-
600
- @typing.final
601
- class AddPaymentMethodResponse(google.protobuf.message.Message):
602
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
603
-
604
- PAYMENT_METHOD_FIELD_NUMBER: builtins.int
605
- IS_DEFAULT_FIELD_NUMBER: builtins.int
606
- is_default: builtins.bool
607
- @property
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: weaveapi.payment.v1.subscription_pb2.PaymentMethod | None = ...,
613
- is_default: builtins.bool = ...,
614
- ) -> None: ...
615
- def HasField(
616
- self, field_name: typing.Literal["payment_method", b"payment_method"]
617
- ) -> builtins.bool: ...
618
- def ClearField(
619
- self,
620
- field_name: typing.Literal[
621
- "is_default", b"is_default", "payment_method", b"payment_method"
622
- ],
623
- ) -> None: ...
624
-
625
- global___AddPaymentMethodResponse = AddPaymentMethodResponse
626
-
627
- @typing.final
628
- class SetDefaultPaymentMethodRequest(google.protobuf.message.Message):
629
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
630
-
631
- PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
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: builtins.str = ...,
637
- ) -> None: ...
638
- def ClearField(
639
- self, field_name: typing.Literal["payment_method_id", b"payment_method_id"]
640
- ) -> None: ...
641
-
642
- global___SetDefaultPaymentMethodRequest = SetDefaultPaymentMethodRequest
643
-
644
- @typing.final
645
- class SetDefaultPaymentMethodResponse(google.protobuf.message.Message):
646
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
647
-
648
- SUCCESS_FIELD_NUMBER: builtins.int
649
- MESSAGE_FIELD_NUMBER: builtins.int
650
- success: builtins.bool
651
- message: builtins.str
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: builtins.bool = ...,
656
- message: builtins.str = ...,
657
- ) -> None: ...
658
- def ClearField(
659
- self, field_name: typing.Literal["message", b"message", "success", b"success"]
660
- ) -> None: ...
661
-
662
- global___SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponse
663
-
664
- @typing.final
665
- class RemovePaymentMethodRequest(google.protobuf.message.Message):
666
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
667
-
668
- PAYMENT_METHOD_ID_FIELD_NUMBER: builtins.int
669
- payment_method_id: builtins.str
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: builtins.str = ...,
674
- ) -> None: ...
675
- def ClearField(
676
- self, field_name: typing.Literal["payment_method_id", b"payment_method_id"]
677
- ) -> None: ...
678
-
679
- global___RemovePaymentMethodRequest = RemovePaymentMethodRequest
680
-
681
- @typing.final
682
- class RemovePaymentMethodResponse(google.protobuf.message.Message):
683
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
684
-
685
- SUCCESS_FIELD_NUMBER: builtins.int
686
- MESSAGE_FIELD_NUMBER: builtins.int
687
- REMAINING_METHODS_FIELD_NUMBER: builtins.int
688
- success: builtins.bool
689
- message: builtins.str
690
- remaining_methods: builtins.int
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: builtins.bool = ...,
695
- message: builtins.str = ...,
696
- remaining_methods: builtins.int = ...,
697
- ) -> None: ...
698
- def ClearField(
699
- self,
700
- field_name: typing.Literal[
701
- "message",
702
- b"message",
703
- "remaining_methods",
704
- b"remaining_methods",
705
- "success",
706
- b"success",
707
- ],
708
- ) -> None: ...
709
-
710
- global___RemovePaymentMethodResponse = RemovePaymentMethodResponse
711
-
712
- @typing.final
713
- class CreatePortalSessionRequest(google.protobuf.message.Message):
714
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
715
-
716
- RETURN_URL_FIELD_NUMBER: builtins.int
717
- return_url: builtins.str
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: builtins.str = ...,
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
- global___CreatePortalSessionRequest = CreatePortalSessionRequest
796
+ Global___CreatePortalSessionRequest: _TypeAlias = CreatePortalSessionRequest # noqa: Y015
729
797
 
730
- @typing.final
731
- class CreatePortalSessionResponse(google.protobuf.message.Message):
732
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
798
+ @_typing.final
799
+ class CreatePortalSessionResponse(_message.Message):
800
+ DESCRIPTOR: _descriptor.Descriptor
733
801
 
734
- PORTAL_URL_FIELD_NUMBER: builtins.int
735
- EXPIRES_AT_FIELD_NUMBER: builtins.int
736
- portal_url: builtins.str
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) -> google.protobuf.timestamp_pb2.Timestamp: ...
806
+ @_builtins.property
807
+ def expires_at(self) -> _timestamp_pb2.Timestamp: ...
740
808
  def __init__(
741
809
  self,
742
810
  *,
743
- portal_url: builtins.str = ...,
744
- expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
745
- ) -> None: ...
746
- def HasField(
747
- self, field_name: typing.Literal["expires_at", b"expires_at"]
748
- ) -> builtins.bool: ...
749
- def ClearField(
750
- self,
751
- field_name: typing.Literal[
752
- "expires_at", b"expires_at", "portal_url", b"portal_url"
753
- ],
754
- ) -> None: ...
755
-
756
- global___CreatePortalSessionResponse = CreatePortalSessionResponse
757
-
758
- @typing.final
759
- class GetPricingPlansRequest(google.protobuf.message.Message):
760
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
761
-
762
- CURRENCY_FIELD_NUMBER: builtins.int
763
- ACTIVE_ONLY_FIELD_NUMBER: builtins.int
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: builtins.bool
833
+ active_only: _builtins.bool
767
834
  """Only show active plans"""
768
835
  def __init__(
769
836
  self,
770
837
  *,
771
- currency: builtins.str = ...,
772
- active_only: builtins.bool = ...,
773
- ) -> None: ...
774
- def ClearField(
775
- self,
776
- field_name: typing.Literal[
777
- "active_only", b"active_only", "currency", b"currency"
778
- ],
779
- ) -> None: ...
780
-
781
- global___GetPricingPlansRequest = GetPricingPlansRequest
782
-
783
- @typing.final
784
- class GetPricingPlansResponse(google.protobuf.message.Message):
785
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
786
-
787
- PLANS_FIELD_NUMBER: builtins.int
788
- RECOMMENDED_PLAN_ID_FIELD_NUMBER: builtins.int
789
- CURRENT_PLAN_FIELD_NUMBER: builtins.int
790
- recommended_plan_id: builtins.str
791
- @property
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
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
795
- weaveapi.payment.v1.subscription_pb2.PricingPlan
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: collections.abc.Iterable[
805
- weaveapi.payment.v1.subscription_pb2.PricingPlan
806
- ]
807
- | None = ...,
808
- recommended_plan_id: builtins.str = ...,
809
- current_plan: weaveapi.payment.v1.subscription_pb2.PricingPlan | None = ...,
810
- ) -> None: ...
811
- def HasField(
812
- self, field_name: typing.Literal["current_plan", b"current_plan"]
813
- ) -> builtins.bool: ...
814
- def ClearField(
815
- self,
816
- field_name: typing.Literal[
817
- "current_plan",
818
- b"current_plan",
819
- "plans",
820
- b"plans",
821
- "recommended_plan_id",
822
- b"recommended_plan_id",
823
- ],
824
- ) -> None: ...
825
-
826
- global___GetPricingPlansResponse = GetPricingPlansResponse
827
-
828
- @typing.final
829
- class ApplyPromoCodeRequest(google.protobuf.message.Message):
830
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
831
-
832
- PROMO_CODE_FIELD_NUMBER: builtins.int
833
- promo_code: builtins.str
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: builtins.str = ...,
838
- ) -> None: ...
839
- def ClearField(
840
- self, field_name: typing.Literal["promo_code", b"promo_code"]
841
- ) -> None: ...
842
-
843
- global___ApplyPromoCodeRequest = ApplyPromoCodeRequest
844
-
845
- @typing.final
846
- class ApplyPromoCodeResponse(google.protobuf.message.Message):
847
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
848
-
849
- VALID_FIELD_NUMBER: builtins.int
850
- DISCOUNT_FIELD_NUMBER: builtins.int
851
- MESSAGE_FIELD_NUMBER: builtins.int
852
- EXPIRES_AT_FIELD_NUMBER: builtins.int
853
- valid: builtins.bool
854
- message: builtins.str
855
- @property
856
- def discount(self) -> weaveapi.payment.v1.subscription_pb2.Discount: ...
857
- @property
858
- def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
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: builtins.bool = ...,
863
- discount: weaveapi.payment.v1.subscription_pb2.Discount | None = ...,
864
- message: builtins.str = ...,
865
- expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
866
- ) -> None: ...
867
- def HasField(
868
- self,
869
- field_name: typing.Literal[
870
- "discount", b"discount", "expires_at", b"expires_at"
871
- ],
872
- ) -> builtins.bool: ...
873
- def ClearField(
874
- self,
875
- field_name: typing.Literal[
876
- "discount",
877
- b"discount",
878
- "expires_at",
879
- b"expires_at",
880
- "message",
881
- b"message",
882
- "valid",
883
- b"valid",
884
- ],
885
- ) -> None: ...
886
-
887
- global___ApplyPromoCodeResponse = ApplyPromoCodeResponse
888
-
889
- @typing.final
890
- class HandleStripeWebhookRequest(google.protobuf.message.Message):
891
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
892
-
893
- PAYLOAD_FIELD_NUMBER: builtins.int
894
- SIGNATURE_FIELD_NUMBER: builtins.int
895
- payload: builtins.bytes
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: builtins.str
967
+ signature: _builtins.str
898
968
  """Stripe-Signature header"""
899
969
  def __init__(
900
970
  self,
901
971
  *,
902
- payload: builtins.bytes = ...,
903
- signature: builtins.str = ...,
904
- ) -> None: ...
905
- def ClearField(
906
- self,
907
- field_name: typing.Literal["payload", b"payload", "signature", b"signature"],
908
- ) -> None: ...
909
-
910
- global___HandleStripeWebhookRequest = HandleStripeWebhookRequest
911
-
912
- @typing.final
913
- class HandleStripeWebhookResponse(google.protobuf.message.Message):
914
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
915
-
916
- SUCCESS_FIELD_NUMBER: builtins.int
917
- EVENT_ID_FIELD_NUMBER: builtins.int
918
- EVENT_TYPE_FIELD_NUMBER: builtins.int
919
- MESSAGE_FIELD_NUMBER: builtins.int
920
- success: builtins.bool
921
- event_id: builtins.str
922
- event_type: builtins.str
923
- message: builtins.str
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: builtins.bool = ...,
928
- event_id: builtins.str = ...,
929
- event_type: builtins.str = ...,
930
- message: builtins.str = ...,
931
- ) -> None: ...
932
- def ClearField(
933
- self,
934
- field_name: typing.Literal[
935
- "event_id",
936
- b"event_id",
937
- "event_type",
938
- b"event_type",
939
- "message",
940
- b"message",
941
- "success",
942
- b"success",
943
- ],
944
- ) -> None: ...
945
-
946
- global___HandleStripeWebhookResponse = HandleStripeWebhookResponse
947
-
948
- @typing.final
949
- class GetUsageSummaryRequest(google.protobuf.message.Message):
950
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
951
-
952
- PERIOD_FIELD_NUMBER: builtins.int
953
- START_DATE_FIELD_NUMBER: builtins.int
954
- END_DATE_FIELD_NUMBER: builtins.int
955
- period: builtins.str
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) -> google.protobuf.timestamp_pb2.Timestamp:
959
- """For custom period"""
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: builtins.str = ...,
969
- start_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
970
- end_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
971
- ) -> None: ...
972
- def HasField(
973
- self,
974
- field_name: typing.Literal[
975
- "end_date", b"end_date", "start_date", b"start_date"
976
- ],
977
- ) -> builtins.bool: ...
978
- def ClearField(
979
- self,
980
- field_name: typing.Literal[
981
- "end_date", b"end_date", "period", b"period", "start_date", b"start_date"
982
- ],
983
- ) -> None: ...
984
-
985
- global___GetUsageSummaryRequest = GetUsageSummaryRequest
986
-
987
- @typing.final
988
- class GetUsageSummaryResponse(google.protobuf.message.Message):
989
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
990
-
991
- CURRENT_PERIOD_FIELD_NUMBER: builtins.int
992
- PREVIOUS_PERIODS_FIELD_NUMBER: builtins.int
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
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
1000
- global___UsagePeriod
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: global___UsagePeriod | None = ...,
1008
- previous_periods: collections.abc.Iterable[global___UsagePeriod] | None = ...,
1009
- limits: global___UsageLimits | None = ...,
1010
- ) -> None: ...
1011
- def HasField(
1012
- self,
1013
- field_name: typing.Literal[
1014
- "current_period", b"current_period", "limits", b"limits"
1015
- ],
1016
- ) -> builtins.bool: ...
1017
- def ClearField(
1018
- self,
1019
- field_name: typing.Literal[
1020
- "current_period",
1021
- b"current_period",
1022
- "limits",
1023
- b"limits",
1024
- "previous_periods",
1025
- b"previous_periods",
1026
- ],
1027
- ) -> None: ...
1028
-
1029
- global___GetUsageSummaryResponse = GetUsageSummaryResponse
1030
-
1031
- @typing.final
1032
- class UsagePeriod(google.protobuf.message.Message):
1033
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1034
-
1035
- @typing.final
1036
- class RequestsByEndpointEntry(google.protobuf.message.Message):
1037
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1038
-
1039
- KEY_FIELD_NUMBER: builtins.int
1040
- VALUE_FIELD_NUMBER: builtins.int
1041
- key: builtins.str
1042
- value: builtins.int
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: builtins.str = ...,
1047
- value: builtins.int = ...,
1120
+ key: _builtins.str | None = ...,
1121
+ value: _builtins.int | None = ...,
1048
1122
  ) -> None: ...
1049
- def ClearField(
1050
- self, field_name: typing.Literal["key", b"key", "value", b"value"]
1051
- ) -> None: ...
1052
-
1053
- @typing.final
1054
- class RequestsByApiKeyEntry(google.protobuf.message.Message):
1055
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1056
-
1057
- KEY_FIELD_NUMBER: builtins.int
1058
- VALUE_FIELD_NUMBER: builtins.int
1059
- key: builtins.str
1060
- value: builtins.int
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: builtins.str = ...,
1065
- value: builtins.int = ...,
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
- START_DATE_FIELD_NUMBER: builtins.int
1072
- END_DATE_FIELD_NUMBER: builtins.int
1073
- API_REQUESTS_FIELD_NUMBER: builtins.int
1074
- API_REQUESTS_LIMIT_FIELD_NUMBER: builtins.int
1075
- USAGE_PERCENTAGE_FIELD_NUMBER: builtins.int
1076
- REQUESTS_BY_ENDPOINT_FIELD_NUMBER: builtins.int
1077
- REQUESTS_BY_API_KEY_FIELD_NUMBER: builtins.int
1078
- BILLABLE_REQUESTS_FIELD_NUMBER: builtins.int
1079
- OVERAGE_REQUESTS_FIELD_NUMBER: builtins.int
1080
- OVERAGE_COST_CENTS_FIELD_NUMBER: builtins.int
1081
- api_requests: builtins.int
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: builtins.int
1084
- usage_percentage: builtins.float
1085
- billable_requests: builtins.int
1163
+ api_requests_limit: _builtins.int
1164
+ usage_percentage: _builtins.float
1165
+ billable_requests: _builtins.int
1086
1166
  """Billing"""
1087
- overage_requests: builtins.int
1088
- overage_cost_cents: builtins.int
1089
- @property
1090
- def start_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1091
- @property
1092
- def end_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
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
- ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]:
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
- ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: ...
1182
+ ) -> _containers.ScalarMap[_builtins.str, _builtins.int]: ...
1103
1183
  def __init__(
1104
1184
  self,
1105
1185
  *,
1106
- start_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1107
- end_date: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1108
- api_requests: builtins.int = ...,
1109
- api_requests_limit: builtins.int = ...,
1110
- usage_percentage: builtins.float = ...,
1111
- requests_by_endpoint: collections.abc.Mapping[builtins.str, builtins.int]
1112
- | None = ...,
1113
- requests_by_api_key: collections.abc.Mapping[builtins.str, builtins.int]
1114
- | None = ...,
1115
- billable_requests: builtins.int = ...,
1116
- overage_requests: builtins.int = ...,
1117
- overage_cost_cents: builtins.int = ...,
1118
- ) -> None: ...
1119
- def HasField(
1120
- self,
1121
- field_name: typing.Literal[
1122
- "end_date", b"end_date", "start_date", b"start_date"
1123
- ],
1124
- ) -> builtins.bool: ...
1125
- def ClearField(
1126
- self,
1127
- field_name: typing.Literal[
1128
- "api_requests",
1129
- b"api_requests",
1130
- "api_requests_limit",
1131
- b"api_requests_limit",
1132
- "billable_requests",
1133
- b"billable_requests",
1134
- "end_date",
1135
- b"end_date",
1136
- "overage_cost_cents",
1137
- b"overage_cost_cents",
1138
- "overage_requests",
1139
- b"overage_requests",
1140
- "requests_by_api_key",
1141
- b"requests_by_api_key",
1142
- "requests_by_endpoint",
1143
- b"requests_by_endpoint",
1144
- "start_date",
1145
- b"start_date",
1146
- "usage_percentage",
1147
- b"usage_percentage",
1148
- ],
1149
- ) -> None: ...
1150
-
1151
- global___UsagePeriod = UsagePeriod
1152
-
1153
- @typing.final
1154
- class UsageLimits(google.protobuf.message.Message):
1155
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1156
-
1157
- TIER_FIELD_NUMBER: builtins.int
1158
- REQUESTS_PER_HOUR_FIELD_NUMBER: builtins.int
1159
- REQUESTS_PER_DAY_FIELD_NUMBER: builtins.int
1160
- REQUESTS_PER_MONTH_FIELD_NUMBER: builtins.int
1161
- UNLIMITED_FIELD_NUMBER: builtins.int
1162
- OVERAGE_RATE_CENTS_FIELD_NUMBER: builtins.int
1163
- tier: builtins.str
1164
- requests_per_hour: builtins.int
1165
- requests_per_day: builtins.int
1166
- requests_per_month: builtins.int
1167
- unlimited: builtins.bool
1168
- overage_rate_cents: builtins.int
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: builtins.str = ...,
1174
- requests_per_hour: builtins.int = ...,
1175
- requests_per_day: builtins.int = ...,
1176
- requests_per_month: builtins.int = ...,
1177
- unlimited: builtins.bool = ...,
1178
- overage_rate_cents: builtins.int = ...,
1179
- ) -> None: ...
1180
- def ClearField(
1181
- self,
1182
- field_name: typing.Literal[
1183
- "overage_rate_cents",
1184
- b"overage_rate_cents",
1185
- "requests_per_day",
1186
- b"requests_per_day",
1187
- "requests_per_hour",
1188
- b"requests_per_hour",
1189
- "requests_per_month",
1190
- b"requests_per_month",
1191
- "tier",
1192
- b"tier",
1193
- "unlimited",
1194
- b"unlimited",
1195
- ],
1196
- ) -> None: ...
1197
-
1198
- global___UsageLimits = UsageLimits
1199
-
1200
- @typing.final
1201
- class GetCreditBalanceRequest(google.protobuf.message.Message):
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: google.protobuf.descriptor.Descriptor
1310
+ DESCRIPTOR: _descriptor.Descriptor
1205
1311
 
1206
1312
  def __init__(
1207
1313
  self,
1208
1314
  ) -> None: ...
1209
1315
 
1210
- global___GetCreditBalanceRequest = GetCreditBalanceRequest
1211
-
1212
- @typing.final
1213
- class GetCreditBalanceResponse(google.protobuf.message.Message):
1214
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1215
-
1216
- CREDITS_FIELD_NUMBER: builtins.int
1217
- PENDING_CREDITS_FIELD_NUMBER: builtins.int
1218
- EXPIRES_AT_FIELD_NUMBER: builtins.int
1219
- RECENT_TRANSACTIONS_FIELD_NUMBER: builtins.int
1220
- credits: builtins.int
1221
- pending_credits: builtins.int
1222
- @property
1223
- def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
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
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
1228
- global___CreditTransaction
1229
- ]: ...
1333
+ ) -> _containers.RepeatedCompositeFieldContainer[Global___CreditTransaction]: ...
1230
1334
  def __init__(
1231
1335
  self,
1232
1336
  *,
1233
- credits: builtins.int = ...,
1234
- pending_credits: builtins.int = ...,
1235
- expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1236
- recent_transactions: collections.abc.Iterable[global___CreditTransaction]
1237
- | None = ...,
1238
- ) -> None: ...
1239
- def HasField(
1240
- self, field_name: typing.Literal["expires_at", b"expires_at"]
1241
- ) -> builtins.bool: ...
1242
- def ClearField(
1243
- self,
1244
- field_name: typing.Literal[
1245
- "credits",
1246
- b"credits",
1247
- "expires_at",
1248
- b"expires_at",
1249
- "pending_credits",
1250
- b"pending_credits",
1251
- "recent_transactions",
1252
- b"recent_transactions",
1253
- ],
1254
- ) -> None: ...
1255
-
1256
- global___GetCreditBalanceResponse = GetCreditBalanceResponse
1257
-
1258
- @typing.final
1259
- class CreditTransaction(google.protobuf.message.Message):
1260
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1261
-
1262
- ID_FIELD_NUMBER: builtins.int
1263
- TYPE_FIELD_NUMBER: builtins.int
1264
- AMOUNT_FIELD_NUMBER: builtins.int
1265
- DESCRIPTION_FIELD_NUMBER: builtins.int
1266
- CREATED_AT_FIELD_NUMBER: builtins.int
1267
- id: builtins.str
1268
- type: builtins.str
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: builtins.int
1379
+ amount: _builtins.int
1271
1380
  """Positive for credits, negative for usage"""
1272
- description: builtins.str
1273
- @property
1274
- def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
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: builtins.str = ...,
1279
- type: builtins.str = ...,
1280
- amount: builtins.int = ...,
1281
- description: builtins.str = ...,
1282
- created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1283
- ) -> None: ...
1284
- def HasField(
1285
- self, field_name: typing.Literal["created_at", b"created_at"]
1286
- ) -> builtins.bool: ...
1287
- def ClearField(
1288
- self,
1289
- field_name: typing.Literal[
1290
- "amount",
1291
- b"amount",
1292
- "created_at",
1293
- b"created_at",
1294
- "description",
1295
- b"description",
1296
- "id",
1297
- b"id",
1298
- "type",
1299
- b"type",
1300
- ],
1301
- ) -> None: ...
1302
-
1303
- global___CreditTransaction = CreditTransaction
1304
-
1305
- @typing.final
1306
- class UpdateTaxInfoRequest(google.protobuf.message.Message):
1307
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1308
-
1309
- TAX_ID_FIELD_NUMBER: builtins.int
1310
- TAX_ID_TYPE_FIELD_NUMBER: builtins.int
1311
- BILLING_ADDRESS_FIELD_NUMBER: builtins.int
1312
- BUSINESS_NAME_FIELD_NUMBER: builtins.int
1313
- TAX_EXEMPT_FIELD_NUMBER: builtins.int
1314
- tax_id: builtins.str
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: builtins.str
1433
+ tax_id_type: _builtins.str
1317
1434
  """eu_vat, gb_vat, us_ein, etc"""
1318
- business_name: builtins.str
1319
- tax_exempt: builtins.bool
1320
- @property
1321
- def billing_address(self) -> weaveapi.payment.v1.subscription_pb2.Address: ...
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: builtins.str = ...,
1326
- tax_id_type: builtins.str = ...,
1327
- billing_address: weaveapi.payment.v1.subscription_pb2.Address | None = ...,
1328
- business_name: builtins.str = ...,
1329
- tax_exempt: builtins.bool = ...,
1330
- ) -> None: ...
1331
- def HasField(
1332
- self, field_name: typing.Literal["billing_address", b"billing_address"]
1333
- ) -> builtins.bool: ...
1334
- def ClearField(
1335
- self,
1336
- field_name: typing.Literal[
1337
- "billing_address",
1338
- b"billing_address",
1339
- "business_name",
1340
- b"business_name",
1341
- "tax_exempt",
1342
- b"tax_exempt",
1343
- "tax_id",
1344
- b"tax_id",
1345
- "tax_id_type",
1346
- b"tax_id_type",
1347
- ],
1348
- ) -> None: ...
1349
-
1350
- global___UpdateTaxInfoRequest = UpdateTaxInfoRequest
1351
-
1352
- @typing.final
1353
- class UpdateTaxInfoResponse(google.protobuf.message.Message):
1354
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1355
-
1356
- SUCCESS_FIELD_NUMBER: builtins.int
1357
- MESSAGE_FIELD_NUMBER: builtins.int
1358
- TAX_INFO_FIELD_NUMBER: builtins.int
1359
- success: builtins.bool
1360
- message: builtins.str
1361
- @property
1362
- def tax_info(self) -> global___TaxInfo: ...
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: builtins.bool = ...,
1367
- message: builtins.str = ...,
1368
- tax_info: global___TaxInfo | None = ...,
1369
- ) -> None: ...
1370
- def HasField(
1371
- self, field_name: typing.Literal["tax_info", b"tax_info"]
1372
- ) -> builtins.bool: ...
1373
- def ClearField(
1374
- self,
1375
- field_name: typing.Literal[
1376
- "message", b"message", "success", b"success", "tax_info", b"tax_info"
1377
- ],
1378
- ) -> None: ...
1379
-
1380
- global___UpdateTaxInfoResponse = UpdateTaxInfoResponse
1381
-
1382
- @typing.final
1383
- class TaxInfo(google.protobuf.message.Message):
1384
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1385
-
1386
- TAX_ID_FIELD_NUMBER: builtins.int
1387
- TAX_ID_TYPE_FIELD_NUMBER: builtins.int
1388
- VERIFICATION_STATUS_FIELD_NUMBER: builtins.int
1389
- BILLING_ADDRESS_FIELD_NUMBER: builtins.int
1390
- BUSINESS_NAME_FIELD_NUMBER: builtins.int
1391
- TAX_EXEMPT_FIELD_NUMBER: builtins.int
1392
- APPLICABLE_RATES_FIELD_NUMBER: builtins.int
1393
- tax_id: builtins.str
1394
- tax_id_type: builtins.str
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: builtins.str
1398
- tax_exempt: builtins.bool
1399
- @property
1400
- def billing_address(self) -> weaveapi.payment.v1.subscription_pb2.Address: ...
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
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
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: builtins.str = ...,
1411
- tax_id_type: builtins.str = ...,
1412
- verification_status: builtins.str = ...,
1413
- billing_address: weaveapi.payment.v1.subscription_pb2.Address | None = ...,
1414
- business_name: builtins.str = ...,
1415
- tax_exempt: builtins.bool = ...,
1416
- applicable_rates: collections.abc.Iterable[
1417
- weaveapi.payment.v1.invoice_pb2.TaxRate
1418
- ]
1419
- | None = ...,
1420
- ) -> None: ...
1421
- def HasField(
1422
- self, field_name: typing.Literal["billing_address", b"billing_address"]
1423
- ) -> builtins.bool: ...
1424
- def ClearField(
1425
- self,
1426
- field_name: typing.Literal[
1427
- "applicable_rates",
1428
- b"applicable_rates",
1429
- "billing_address",
1430
- b"billing_address",
1431
- "business_name",
1432
- b"business_name",
1433
- "tax_exempt",
1434
- b"tax_exempt",
1435
- "tax_id",
1436
- b"tax_id",
1437
- "tax_id_type",
1438
- b"tax_id_type",
1439
- "verification_status",
1440
- b"verification_status",
1441
- ],
1442
- ) -> None: ...
1443
-
1444
- global___TaxInfo = TaxInfo
1445
-
1446
- @typing.final
1447
- class DownloadInvoiceRequest(google.protobuf.message.Message):
1448
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1449
-
1450
- INVOICE_ID_FIELD_NUMBER: builtins.int
1451
- invoice_id: builtins.str
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: builtins.str = ...,
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
- global___DownloadInvoiceRequest = DownloadInvoiceRequest
1593
+ Global___DownloadInvoiceRequest: _TypeAlias = DownloadInvoiceRequest # noqa: Y015
1462
1594
 
1463
- @typing.final
1464
- class DownloadInvoiceResponse(google.protobuf.message.Message):
1465
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1595
+ @_typing.final
1596
+ class DownloadInvoiceResponse(_message.Message):
1597
+ DESCRIPTOR: _descriptor.Descriptor
1466
1598
 
1467
- PDF_DATA_FIELD_NUMBER: builtins.int
1468
- FILENAME_FIELD_NUMBER: builtins.int
1469
- CONTENT_TYPE_FIELD_NUMBER: builtins.int
1470
- pdf_data: builtins.bytes
1471
- filename: builtins.str
1472
- content_type: builtins.str
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: builtins.bytes = ...,
1477
- filename: builtins.str = ...,
1478
- content_type: builtins.str = ...,
1479
- ) -> None: ...
1480
- def ClearField(
1481
- self,
1482
- field_name: typing.Literal[
1483
- "content_type",
1484
- b"content_type",
1485
- "filename",
1486
- b"filename",
1487
- "pdf_data",
1488
- b"pdf_data",
1489
- ],
1490
- ) -> None: ...
1491
-
1492
- global___DownloadInvoiceResponse = DownloadInvoiceResponse
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