weave-python 0.26.1__py3-none-any.whl → 0.27.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- weave/weaveapi/auth/v1/service_pb2.py +228 -0
- weave/weaveapi/auth/v1/service_pb2.pyi +1406 -0
- weave/weaveapi/auth/v1/service_pb2_grpc.py +1091 -0
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +606 -0
- weave/weaveapi/auth/v1/session_pb2.py +38 -0
- weave/weaveapi/auth/v1/session_pb2.pyi +111 -0
- weave/weaveapi/auth/v1/session_pb2_grpc.py +2 -0
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +20 -0
- weave/weaveapi/auth/v1/usage_pb2.py +52 -0
- weave/weaveapi/auth/v1/usage_pb2.pyi +241 -0
- weave/weaveapi/auth/v1/usage_pb2_grpc.py +2 -0
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +20 -0
- weave/weaveapi/auth/v1/user_pb2.py +52 -0
- weave/weaveapi/auth/v1/user_pb2.pyi +594 -0
- weave/weaveapi/auth/v1/user_pb2_grpc.py +2 -0
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +20 -0
- weave/weaveapi/generate/v1/configuration_pb2.py +3 -3
- weave/weaveapi/generate/v1/generate_pb2.py +2 -2
- weave/weaveapi/generate/v1/service_pb2.py +2 -2
- weave/weaveapi/mcpregistry/v1/server_pb2.py +2 -2
- weave/weaveapi/mcpregistry/v1/service_pb2.py +3 -3
- weave/weaveapi/modex/v1/model_pb2.py +58 -0
- weave/weaveapi/modex/v1/model_pb2.pyi +642 -0
- weave/weaveapi/modex/v1/model_pb2_grpc.py +2 -0
- weave/weaveapi/modex/v1/model_pb2_grpc.pyi +20 -0
- weave/weaveapi/modex/v1/provider_pb2.py +38 -0
- weave/weaveapi/modex/v1/provider_pb2.pyi +91 -0
- weave/weaveapi/modex/v1/provider_pb2_grpc.py +2 -0
- weave/weaveapi/modex/v1/provider_pb2_grpc.pyi +20 -0
- weave/weaveapi/modex/v1/service_pb2.py +180 -0
- weave/weaveapi/modex/v1/service_pb2.pyi +1641 -0
- weave/weaveapi/modex/v1/service_pb2_grpc.py +602 -0
- weave/weaveapi/modex/v1/service_pb2_grpc.pyi +268 -0
- weave/weaveapi/payment/v1/invoice_pb2.py +46 -0
- weave/weaveapi/payment/v1/invoice_pb2.pyi +349 -0
- weave/weaveapi/payment/v1/invoice_pb2_grpc.py +2 -0
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +20 -0
- weave/weaveapi/payment/v1/service_pb2.py +244 -0
- weave/weaveapi/payment/v1/service_pb2.pyi +1492 -0
- weave/weaveapi/payment/v1/service_pb2_grpc.py +957 -0
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +572 -0
- weave/weaveapi/payment/v1/subscription_pb2.py +59 -0
- weave/weaveapi/payment/v1/subscription_pb2.pyi +695 -0
- weave/weaveapi/payment/v1/subscription_pb2_grpc.py +2 -0
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +20 -0
- weave/weaveapi/storage/v1/auth_pb2.py +2 -2
- weave/weaveapi/storage/v1/nosql_database_pb2.py +3 -3
- weave/weaveapi/storage/v1/object_store_pb2.py +3 -3
- weave/weaveapi/storage/v1/service_pb2.py +2 -2
- weave/weaveapi/storage/v1/sql_database_pb2.py +3 -3
- weave/weaveapi/storage/v1/storage_pb2.py +2 -2
- weave/weaveapi/synthesize/v1/dataset_pb2.py +2 -2
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +3 -3
- weave/weaveapi/synthesize/v1/relationship_pb2.py +3 -3
- weave/weaveapi/synthesize/v1/service_pb2.py +2 -2
- weave/weaveapi/synthesize/v1/training_pb2.py +3 -3
- weave/weavesql/{db → weavedb}/queries.py +1 -1
- {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/METADATA +1 -1
- weave_python-0.27.0.dist-info/RECORD +109 -0
- weave_python-0.26.1.dist-info/RECORD +0 -69
- /weave/weavesql/{db → weavedb}/models.py +0 -0
- {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
import weaveapi.payment.v1.service_pb2
|
|
12
|
+
|
|
13
|
+
_T = typing.TypeVar("_T")
|
|
14
|
+
|
|
15
|
+
class _MaybeAsyncIterator(
|
|
16
|
+
collections.abc.AsyncIterator[_T],
|
|
17
|
+
collections.abc.Iterator[_T],
|
|
18
|
+
metaclass=abc.ABCMeta,
|
|
19
|
+
): ...
|
|
20
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
21
|
+
...
|
|
22
|
+
|
|
23
|
+
class PaymentStub:
|
|
24
|
+
"""PaymentService handles subscription management and payment processing
|
|
25
|
+
Subscription management
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
def __init__(
|
|
29
|
+
self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]
|
|
30
|
+
) -> None: ...
|
|
31
|
+
CreateCheckoutSession: grpc.UnaryUnaryMultiCallable[
|
|
32
|
+
weaveapi.payment.v1.service_pb2.CreateCheckoutSessionRequest,
|
|
33
|
+
weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse,
|
|
34
|
+
]
|
|
35
|
+
"""Create a Stripe checkout session for subscription"""
|
|
36
|
+
|
|
37
|
+
GetSubscriptionStatus: grpc.UnaryUnaryMultiCallable[
|
|
38
|
+
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusRequest,
|
|
39
|
+
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse,
|
|
40
|
+
]
|
|
41
|
+
"""Get current subscription status"""
|
|
42
|
+
|
|
43
|
+
UpdateSubscription: grpc.UnaryUnaryMultiCallable[
|
|
44
|
+
weaveapi.payment.v1.service_pb2.UpdateSubscriptionRequest,
|
|
45
|
+
weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
|
|
46
|
+
]
|
|
47
|
+
"""Update subscription (change payment method, etc)"""
|
|
48
|
+
|
|
49
|
+
CancelSubscription: grpc.UnaryUnaryMultiCallable[
|
|
50
|
+
weaveapi.payment.v1.service_pb2.CancelSubscriptionRequest,
|
|
51
|
+
weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
|
|
52
|
+
]
|
|
53
|
+
"""Cancel subscription"""
|
|
54
|
+
|
|
55
|
+
ResumeSubscription: grpc.UnaryUnaryMultiCallable[
|
|
56
|
+
weaveapi.payment.v1.service_pb2.ResumeSubscriptionRequest,
|
|
57
|
+
weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
|
|
58
|
+
]
|
|
59
|
+
"""Resume cancelled subscription"""
|
|
60
|
+
|
|
61
|
+
GetBillingHistory: grpc.UnaryUnaryMultiCallable[
|
|
62
|
+
weaveapi.payment.v1.service_pb2.GetBillingHistoryRequest,
|
|
63
|
+
weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
|
|
64
|
+
]
|
|
65
|
+
"""Billing & Payment Methods
|
|
66
|
+
|
|
67
|
+
Get billing history
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
GetUpcomingInvoice: grpc.UnaryUnaryMultiCallable[
|
|
71
|
+
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceRequest,
|
|
72
|
+
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
|
|
73
|
+
]
|
|
74
|
+
"""Get upcoming invoice preview"""
|
|
75
|
+
|
|
76
|
+
ListPaymentMethods: grpc.UnaryUnaryMultiCallable[
|
|
77
|
+
weaveapi.payment.v1.service_pb2.ListPaymentMethodsRequest,
|
|
78
|
+
weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
|
|
79
|
+
]
|
|
80
|
+
"""List payment methods"""
|
|
81
|
+
|
|
82
|
+
AddPaymentMethod: grpc.UnaryUnaryMultiCallable[
|
|
83
|
+
weaveapi.payment.v1.service_pb2.AddPaymentMethodRequest,
|
|
84
|
+
weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
|
|
85
|
+
]
|
|
86
|
+
"""Add payment method"""
|
|
87
|
+
|
|
88
|
+
SetDefaultPaymentMethod: grpc.UnaryUnaryMultiCallable[
|
|
89
|
+
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodRequest,
|
|
90
|
+
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse,
|
|
91
|
+
]
|
|
92
|
+
"""Set default payment method"""
|
|
93
|
+
|
|
94
|
+
RemovePaymentMethod: grpc.UnaryUnaryMultiCallable[
|
|
95
|
+
weaveapi.payment.v1.service_pb2.RemovePaymentMethodRequest,
|
|
96
|
+
weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse,
|
|
97
|
+
]
|
|
98
|
+
"""Remove payment method"""
|
|
99
|
+
|
|
100
|
+
CreatePortalSession: grpc.UnaryUnaryMultiCallable[
|
|
101
|
+
weaveapi.payment.v1.service_pb2.CreatePortalSessionRequest,
|
|
102
|
+
weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse,
|
|
103
|
+
]
|
|
104
|
+
"""Customer Portal
|
|
105
|
+
|
|
106
|
+
Create Stripe customer portal session
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
GetPricingPlans: grpc.UnaryUnaryMultiCallable[
|
|
110
|
+
weaveapi.payment.v1.service_pb2.GetPricingPlansRequest,
|
|
111
|
+
weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
|
|
112
|
+
]
|
|
113
|
+
"""Pricing & Plans
|
|
114
|
+
|
|
115
|
+
Get available pricing plans
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
ApplyPromoCode: grpc.UnaryUnaryMultiCallable[
|
|
119
|
+
weaveapi.payment.v1.service_pb2.ApplyPromoCodeRequest,
|
|
120
|
+
weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
|
|
121
|
+
]
|
|
122
|
+
"""Apply promo code"""
|
|
123
|
+
|
|
124
|
+
HandleStripeWebhook: grpc.UnaryUnaryMultiCallable[
|
|
125
|
+
weaveapi.payment.v1.service_pb2.HandleStripeWebhookRequest,
|
|
126
|
+
weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse,
|
|
127
|
+
]
|
|
128
|
+
"""Webhooks
|
|
129
|
+
|
|
130
|
+
Handle Stripe webhook events
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
GetUsageSummary: grpc.UnaryUnaryMultiCallable[
|
|
134
|
+
weaveapi.payment.v1.service_pb2.GetUsageSummaryRequest,
|
|
135
|
+
weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
|
|
136
|
+
]
|
|
137
|
+
"""Usage & Credits
|
|
138
|
+
|
|
139
|
+
Get usage summary for billing period
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
GetCreditBalance: grpc.UnaryUnaryMultiCallable[
|
|
143
|
+
weaveapi.payment.v1.service_pb2.GetCreditBalanceRequest,
|
|
144
|
+
weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
|
|
145
|
+
]
|
|
146
|
+
"""Get credit balance (if applicable)"""
|
|
147
|
+
|
|
148
|
+
UpdateTaxInfo: grpc.UnaryUnaryMultiCallable[
|
|
149
|
+
weaveapi.payment.v1.service_pb2.UpdateTaxInfoRequest,
|
|
150
|
+
weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
|
|
151
|
+
]
|
|
152
|
+
"""Tax & Compliance
|
|
153
|
+
|
|
154
|
+
Update tax information
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
DownloadInvoice: grpc.UnaryUnaryMultiCallable[
|
|
158
|
+
weaveapi.payment.v1.service_pb2.DownloadInvoiceRequest,
|
|
159
|
+
weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
|
|
160
|
+
]
|
|
161
|
+
"""Download invoice PDF"""
|
|
162
|
+
|
|
163
|
+
class PaymentAsyncStub:
|
|
164
|
+
"""PaymentService handles subscription management and payment processing
|
|
165
|
+
Subscription management
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
CreateCheckoutSession: grpc.aio.UnaryUnaryMultiCallable[
|
|
169
|
+
weaveapi.payment.v1.service_pb2.CreateCheckoutSessionRequest,
|
|
170
|
+
weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse,
|
|
171
|
+
]
|
|
172
|
+
"""Create a Stripe checkout session for subscription"""
|
|
173
|
+
|
|
174
|
+
GetSubscriptionStatus: grpc.aio.UnaryUnaryMultiCallable[
|
|
175
|
+
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusRequest,
|
|
176
|
+
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse,
|
|
177
|
+
]
|
|
178
|
+
"""Get current subscription status"""
|
|
179
|
+
|
|
180
|
+
UpdateSubscription: grpc.aio.UnaryUnaryMultiCallable[
|
|
181
|
+
weaveapi.payment.v1.service_pb2.UpdateSubscriptionRequest,
|
|
182
|
+
weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
|
|
183
|
+
]
|
|
184
|
+
"""Update subscription (change payment method, etc)"""
|
|
185
|
+
|
|
186
|
+
CancelSubscription: grpc.aio.UnaryUnaryMultiCallable[
|
|
187
|
+
weaveapi.payment.v1.service_pb2.CancelSubscriptionRequest,
|
|
188
|
+
weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
|
|
189
|
+
]
|
|
190
|
+
"""Cancel subscription"""
|
|
191
|
+
|
|
192
|
+
ResumeSubscription: grpc.aio.UnaryUnaryMultiCallable[
|
|
193
|
+
weaveapi.payment.v1.service_pb2.ResumeSubscriptionRequest,
|
|
194
|
+
weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
|
|
195
|
+
]
|
|
196
|
+
"""Resume cancelled subscription"""
|
|
197
|
+
|
|
198
|
+
GetBillingHistory: grpc.aio.UnaryUnaryMultiCallable[
|
|
199
|
+
weaveapi.payment.v1.service_pb2.GetBillingHistoryRequest,
|
|
200
|
+
weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
|
|
201
|
+
]
|
|
202
|
+
"""Billing & Payment Methods
|
|
203
|
+
|
|
204
|
+
Get billing history
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
GetUpcomingInvoice: grpc.aio.UnaryUnaryMultiCallable[
|
|
208
|
+
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceRequest,
|
|
209
|
+
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
|
|
210
|
+
]
|
|
211
|
+
"""Get upcoming invoice preview"""
|
|
212
|
+
|
|
213
|
+
ListPaymentMethods: grpc.aio.UnaryUnaryMultiCallable[
|
|
214
|
+
weaveapi.payment.v1.service_pb2.ListPaymentMethodsRequest,
|
|
215
|
+
weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
|
|
216
|
+
]
|
|
217
|
+
"""List payment methods"""
|
|
218
|
+
|
|
219
|
+
AddPaymentMethod: grpc.aio.UnaryUnaryMultiCallable[
|
|
220
|
+
weaveapi.payment.v1.service_pb2.AddPaymentMethodRequest,
|
|
221
|
+
weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
|
|
222
|
+
]
|
|
223
|
+
"""Add payment method"""
|
|
224
|
+
|
|
225
|
+
SetDefaultPaymentMethod: grpc.aio.UnaryUnaryMultiCallable[
|
|
226
|
+
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodRequest,
|
|
227
|
+
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse,
|
|
228
|
+
]
|
|
229
|
+
"""Set default payment method"""
|
|
230
|
+
|
|
231
|
+
RemovePaymentMethod: grpc.aio.UnaryUnaryMultiCallable[
|
|
232
|
+
weaveapi.payment.v1.service_pb2.RemovePaymentMethodRequest,
|
|
233
|
+
weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse,
|
|
234
|
+
]
|
|
235
|
+
"""Remove payment method"""
|
|
236
|
+
|
|
237
|
+
CreatePortalSession: grpc.aio.UnaryUnaryMultiCallable[
|
|
238
|
+
weaveapi.payment.v1.service_pb2.CreatePortalSessionRequest,
|
|
239
|
+
weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse,
|
|
240
|
+
]
|
|
241
|
+
"""Customer Portal
|
|
242
|
+
|
|
243
|
+
Create Stripe customer portal session
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
GetPricingPlans: grpc.aio.UnaryUnaryMultiCallable[
|
|
247
|
+
weaveapi.payment.v1.service_pb2.GetPricingPlansRequest,
|
|
248
|
+
weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
|
|
249
|
+
]
|
|
250
|
+
"""Pricing & Plans
|
|
251
|
+
|
|
252
|
+
Get available pricing plans
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
ApplyPromoCode: grpc.aio.UnaryUnaryMultiCallable[
|
|
256
|
+
weaveapi.payment.v1.service_pb2.ApplyPromoCodeRequest,
|
|
257
|
+
weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
|
|
258
|
+
]
|
|
259
|
+
"""Apply promo code"""
|
|
260
|
+
|
|
261
|
+
HandleStripeWebhook: grpc.aio.UnaryUnaryMultiCallable[
|
|
262
|
+
weaveapi.payment.v1.service_pb2.HandleStripeWebhookRequest,
|
|
263
|
+
weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse,
|
|
264
|
+
]
|
|
265
|
+
"""Webhooks
|
|
266
|
+
|
|
267
|
+
Handle Stripe webhook events
|
|
268
|
+
"""
|
|
269
|
+
|
|
270
|
+
GetUsageSummary: grpc.aio.UnaryUnaryMultiCallable[
|
|
271
|
+
weaveapi.payment.v1.service_pb2.GetUsageSummaryRequest,
|
|
272
|
+
weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
|
|
273
|
+
]
|
|
274
|
+
"""Usage & Credits
|
|
275
|
+
|
|
276
|
+
Get usage summary for billing period
|
|
277
|
+
"""
|
|
278
|
+
|
|
279
|
+
GetCreditBalance: grpc.aio.UnaryUnaryMultiCallable[
|
|
280
|
+
weaveapi.payment.v1.service_pb2.GetCreditBalanceRequest,
|
|
281
|
+
weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
|
|
282
|
+
]
|
|
283
|
+
"""Get credit balance (if applicable)"""
|
|
284
|
+
|
|
285
|
+
UpdateTaxInfo: grpc.aio.UnaryUnaryMultiCallable[
|
|
286
|
+
weaveapi.payment.v1.service_pb2.UpdateTaxInfoRequest,
|
|
287
|
+
weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
|
|
288
|
+
]
|
|
289
|
+
"""Tax & Compliance
|
|
290
|
+
|
|
291
|
+
Update tax information
|
|
292
|
+
"""
|
|
293
|
+
|
|
294
|
+
DownloadInvoice: grpc.aio.UnaryUnaryMultiCallable[
|
|
295
|
+
weaveapi.payment.v1.service_pb2.DownloadInvoiceRequest,
|
|
296
|
+
weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
|
|
297
|
+
]
|
|
298
|
+
"""Download invoice PDF"""
|
|
299
|
+
|
|
300
|
+
class PaymentServicer(metaclass=abc.ABCMeta):
|
|
301
|
+
"""PaymentService handles subscription management and payment processing
|
|
302
|
+
Subscription management
|
|
303
|
+
"""
|
|
304
|
+
|
|
305
|
+
@abc.abstractmethod
|
|
306
|
+
def CreateCheckoutSession(
|
|
307
|
+
self,
|
|
308
|
+
request: weaveapi.payment.v1.service_pb2.CreateCheckoutSessionRequest,
|
|
309
|
+
context: _ServicerContext,
|
|
310
|
+
) -> typing.Union[
|
|
311
|
+
weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse,
|
|
312
|
+
collections.abc.Awaitable[
|
|
313
|
+
weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse
|
|
314
|
+
],
|
|
315
|
+
]:
|
|
316
|
+
"""Create a Stripe checkout session for subscription"""
|
|
317
|
+
|
|
318
|
+
@abc.abstractmethod
|
|
319
|
+
def GetSubscriptionStatus(
|
|
320
|
+
self,
|
|
321
|
+
request: weaveapi.payment.v1.service_pb2.GetSubscriptionStatusRequest,
|
|
322
|
+
context: _ServicerContext,
|
|
323
|
+
) -> typing.Union[
|
|
324
|
+
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse,
|
|
325
|
+
collections.abc.Awaitable[
|
|
326
|
+
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse
|
|
327
|
+
],
|
|
328
|
+
]:
|
|
329
|
+
"""Get current subscription status"""
|
|
330
|
+
|
|
331
|
+
@abc.abstractmethod
|
|
332
|
+
def UpdateSubscription(
|
|
333
|
+
self,
|
|
334
|
+
request: weaveapi.payment.v1.service_pb2.UpdateSubscriptionRequest,
|
|
335
|
+
context: _ServicerContext,
|
|
336
|
+
) -> typing.Union[
|
|
337
|
+
weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
|
|
338
|
+
collections.abc.Awaitable[
|
|
339
|
+
weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse
|
|
340
|
+
],
|
|
341
|
+
]:
|
|
342
|
+
"""Update subscription (change payment method, etc)"""
|
|
343
|
+
|
|
344
|
+
@abc.abstractmethod
|
|
345
|
+
def CancelSubscription(
|
|
346
|
+
self,
|
|
347
|
+
request: weaveapi.payment.v1.service_pb2.CancelSubscriptionRequest,
|
|
348
|
+
context: _ServicerContext,
|
|
349
|
+
) -> typing.Union[
|
|
350
|
+
weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
|
|
351
|
+
collections.abc.Awaitable[
|
|
352
|
+
weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse
|
|
353
|
+
],
|
|
354
|
+
]:
|
|
355
|
+
"""Cancel subscription"""
|
|
356
|
+
|
|
357
|
+
@abc.abstractmethod
|
|
358
|
+
def ResumeSubscription(
|
|
359
|
+
self,
|
|
360
|
+
request: weaveapi.payment.v1.service_pb2.ResumeSubscriptionRequest,
|
|
361
|
+
context: _ServicerContext,
|
|
362
|
+
) -> typing.Union[
|
|
363
|
+
weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
|
|
364
|
+
collections.abc.Awaitable[
|
|
365
|
+
weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse
|
|
366
|
+
],
|
|
367
|
+
]:
|
|
368
|
+
"""Resume cancelled subscription"""
|
|
369
|
+
|
|
370
|
+
@abc.abstractmethod
|
|
371
|
+
def GetBillingHistory(
|
|
372
|
+
self,
|
|
373
|
+
request: weaveapi.payment.v1.service_pb2.GetBillingHistoryRequest,
|
|
374
|
+
context: _ServicerContext,
|
|
375
|
+
) -> typing.Union[
|
|
376
|
+
weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
|
|
377
|
+
collections.abc.Awaitable[
|
|
378
|
+
weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse
|
|
379
|
+
],
|
|
380
|
+
]:
|
|
381
|
+
"""Billing & Payment Methods
|
|
382
|
+
|
|
383
|
+
Get billing history
|
|
384
|
+
"""
|
|
385
|
+
|
|
386
|
+
@abc.abstractmethod
|
|
387
|
+
def GetUpcomingInvoice(
|
|
388
|
+
self,
|
|
389
|
+
request: weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceRequest,
|
|
390
|
+
context: _ServicerContext,
|
|
391
|
+
) -> typing.Union[
|
|
392
|
+
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
|
|
393
|
+
collections.abc.Awaitable[
|
|
394
|
+
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse
|
|
395
|
+
],
|
|
396
|
+
]:
|
|
397
|
+
"""Get upcoming invoice preview"""
|
|
398
|
+
|
|
399
|
+
@abc.abstractmethod
|
|
400
|
+
def ListPaymentMethods(
|
|
401
|
+
self,
|
|
402
|
+
request: weaveapi.payment.v1.service_pb2.ListPaymentMethodsRequest,
|
|
403
|
+
context: _ServicerContext,
|
|
404
|
+
) -> typing.Union[
|
|
405
|
+
weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
|
|
406
|
+
collections.abc.Awaitable[
|
|
407
|
+
weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse
|
|
408
|
+
],
|
|
409
|
+
]:
|
|
410
|
+
"""List payment methods"""
|
|
411
|
+
|
|
412
|
+
@abc.abstractmethod
|
|
413
|
+
def AddPaymentMethod(
|
|
414
|
+
self,
|
|
415
|
+
request: weaveapi.payment.v1.service_pb2.AddPaymentMethodRequest,
|
|
416
|
+
context: _ServicerContext,
|
|
417
|
+
) -> typing.Union[
|
|
418
|
+
weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
|
|
419
|
+
collections.abc.Awaitable[
|
|
420
|
+
weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse
|
|
421
|
+
],
|
|
422
|
+
]:
|
|
423
|
+
"""Add payment method"""
|
|
424
|
+
|
|
425
|
+
@abc.abstractmethod
|
|
426
|
+
def SetDefaultPaymentMethod(
|
|
427
|
+
self,
|
|
428
|
+
request: weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodRequest,
|
|
429
|
+
context: _ServicerContext,
|
|
430
|
+
) -> typing.Union[
|
|
431
|
+
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse,
|
|
432
|
+
collections.abc.Awaitable[
|
|
433
|
+
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse
|
|
434
|
+
],
|
|
435
|
+
]:
|
|
436
|
+
"""Set default payment method"""
|
|
437
|
+
|
|
438
|
+
@abc.abstractmethod
|
|
439
|
+
def RemovePaymentMethod(
|
|
440
|
+
self,
|
|
441
|
+
request: weaveapi.payment.v1.service_pb2.RemovePaymentMethodRequest,
|
|
442
|
+
context: _ServicerContext,
|
|
443
|
+
) -> typing.Union[
|
|
444
|
+
weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse,
|
|
445
|
+
collections.abc.Awaitable[
|
|
446
|
+
weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse
|
|
447
|
+
],
|
|
448
|
+
]:
|
|
449
|
+
"""Remove payment method"""
|
|
450
|
+
|
|
451
|
+
@abc.abstractmethod
|
|
452
|
+
def CreatePortalSession(
|
|
453
|
+
self,
|
|
454
|
+
request: weaveapi.payment.v1.service_pb2.CreatePortalSessionRequest,
|
|
455
|
+
context: _ServicerContext,
|
|
456
|
+
) -> typing.Union[
|
|
457
|
+
weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse,
|
|
458
|
+
collections.abc.Awaitable[
|
|
459
|
+
weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse
|
|
460
|
+
],
|
|
461
|
+
]:
|
|
462
|
+
"""Customer Portal
|
|
463
|
+
|
|
464
|
+
Create Stripe customer portal session
|
|
465
|
+
"""
|
|
466
|
+
|
|
467
|
+
@abc.abstractmethod
|
|
468
|
+
def GetPricingPlans(
|
|
469
|
+
self,
|
|
470
|
+
request: weaveapi.payment.v1.service_pb2.GetPricingPlansRequest,
|
|
471
|
+
context: _ServicerContext,
|
|
472
|
+
) -> typing.Union[
|
|
473
|
+
weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
|
|
474
|
+
collections.abc.Awaitable[
|
|
475
|
+
weaveapi.payment.v1.service_pb2.GetPricingPlansResponse
|
|
476
|
+
],
|
|
477
|
+
]:
|
|
478
|
+
"""Pricing & Plans
|
|
479
|
+
|
|
480
|
+
Get available pricing plans
|
|
481
|
+
"""
|
|
482
|
+
|
|
483
|
+
@abc.abstractmethod
|
|
484
|
+
def ApplyPromoCode(
|
|
485
|
+
self,
|
|
486
|
+
request: weaveapi.payment.v1.service_pb2.ApplyPromoCodeRequest,
|
|
487
|
+
context: _ServicerContext,
|
|
488
|
+
) -> typing.Union[
|
|
489
|
+
weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
|
|
490
|
+
collections.abc.Awaitable[
|
|
491
|
+
weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse
|
|
492
|
+
],
|
|
493
|
+
]:
|
|
494
|
+
"""Apply promo code"""
|
|
495
|
+
|
|
496
|
+
@abc.abstractmethod
|
|
497
|
+
def HandleStripeWebhook(
|
|
498
|
+
self,
|
|
499
|
+
request: weaveapi.payment.v1.service_pb2.HandleStripeWebhookRequest,
|
|
500
|
+
context: _ServicerContext,
|
|
501
|
+
) -> typing.Union[
|
|
502
|
+
weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse,
|
|
503
|
+
collections.abc.Awaitable[
|
|
504
|
+
weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse
|
|
505
|
+
],
|
|
506
|
+
]:
|
|
507
|
+
"""Webhooks
|
|
508
|
+
|
|
509
|
+
Handle Stripe webhook events
|
|
510
|
+
"""
|
|
511
|
+
|
|
512
|
+
@abc.abstractmethod
|
|
513
|
+
def GetUsageSummary(
|
|
514
|
+
self,
|
|
515
|
+
request: weaveapi.payment.v1.service_pb2.GetUsageSummaryRequest,
|
|
516
|
+
context: _ServicerContext,
|
|
517
|
+
) -> typing.Union[
|
|
518
|
+
weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
|
|
519
|
+
collections.abc.Awaitable[
|
|
520
|
+
weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse
|
|
521
|
+
],
|
|
522
|
+
]:
|
|
523
|
+
"""Usage & Credits
|
|
524
|
+
|
|
525
|
+
Get usage summary for billing period
|
|
526
|
+
"""
|
|
527
|
+
|
|
528
|
+
@abc.abstractmethod
|
|
529
|
+
def GetCreditBalance(
|
|
530
|
+
self,
|
|
531
|
+
request: weaveapi.payment.v1.service_pb2.GetCreditBalanceRequest,
|
|
532
|
+
context: _ServicerContext,
|
|
533
|
+
) -> typing.Union[
|
|
534
|
+
weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
|
|
535
|
+
collections.abc.Awaitable[
|
|
536
|
+
weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse
|
|
537
|
+
],
|
|
538
|
+
]:
|
|
539
|
+
"""Get credit balance (if applicable)"""
|
|
540
|
+
|
|
541
|
+
@abc.abstractmethod
|
|
542
|
+
def UpdateTaxInfo(
|
|
543
|
+
self,
|
|
544
|
+
request: weaveapi.payment.v1.service_pb2.UpdateTaxInfoRequest,
|
|
545
|
+
context: _ServicerContext,
|
|
546
|
+
) -> typing.Union[
|
|
547
|
+
weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
|
|
548
|
+
collections.abc.Awaitable[
|
|
549
|
+
weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse
|
|
550
|
+
],
|
|
551
|
+
]:
|
|
552
|
+
"""Tax & Compliance
|
|
553
|
+
|
|
554
|
+
Update tax information
|
|
555
|
+
"""
|
|
556
|
+
|
|
557
|
+
@abc.abstractmethod
|
|
558
|
+
def DownloadInvoice(
|
|
559
|
+
self,
|
|
560
|
+
request: weaveapi.payment.v1.service_pb2.DownloadInvoiceRequest,
|
|
561
|
+
context: _ServicerContext,
|
|
562
|
+
) -> typing.Union[
|
|
563
|
+
weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
|
|
564
|
+
collections.abc.Awaitable[
|
|
565
|
+
weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse
|
|
566
|
+
],
|
|
567
|
+
]:
|
|
568
|
+
"""Download invoice PDF"""
|
|
569
|
+
|
|
570
|
+
def add_PaymentServicer_to_server(
|
|
571
|
+
servicer: PaymentServicer, server: typing.Union[grpc.Server, grpc.aio.Server]
|
|
572
|
+
) -> None: ...
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: weaveapi/payment/v1/subscription.proto
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
10
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
11
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
12
|
+
from google.protobuf.internal import builder as _builder
|
|
13
|
+
|
|
14
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
|
+
_runtime_version.Domain.PUBLIC,
|
|
16
|
+
6,
|
|
17
|
+
32,
|
|
18
|
+
0,
|
|
19
|
+
"",
|
|
20
|
+
"weaveapi/payment/v1/subscription.proto",
|
|
21
|
+
)
|
|
22
|
+
# @@protoc_insertion_point(imports)
|
|
23
|
+
|
|
24
|
+
_sym_db = _symbol_database.Default()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
28
|
+
b'\n&weaveapi/payment/v1/subscription.proto\x12\x13weaveapi.payment.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\xf4\x07\n\x12SubscriptionStatus\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\x12\x12\n\x04tier\x18\x03 \x01(\tR\x04tier\x12\x34\n\x04plan\x18\x04 \x01(\x0b\x32 .weaveapi.payment.v1.PricingPlanR\x04plan\x12L\n\x14\x63urrent_period_start\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x12\x63urrentPeriodStart\x12H\n\x12\x63urrent_period_end\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x10\x63urrentPeriodEnd\x12\x37\n\tcancel_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08\x63\x61ncelAt\x12;\n\x0b\x63\x61nceled_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncanceledAt\x12/\n\x14\x63\x61ncel_at_period_end\x18\t \x01(\x08R\x11\x63\x61ncelAtPeriodEnd\x12X\n\x16\x64\x65\x66\x61ult_payment_method\x18\n \x01(\x0b\x32".weaveapi.payment.v1.PaymentMethodR\x14\x64\x65\x66\x61ultPaymentMethod\x12\x1a\n\x08\x63urrency\x18\x0b \x01(\tR\x08\x63urrency\x12!\n\x0c\x61mount_cents\x18\x0c \x01(\x03R\x0b\x61mountCents\x12\x19\n\x08is_trial\x18\r \x01(\x08R\x07isTrial\x12;\n\x0btrial_start\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ntrialStart\x12\x37\n\ttrial_end\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08trialEnd\x12\x46\n\x0f\x61\x63tive_discount\x18\x10 \x01(\x0b\x32\x1d.weaveapi.payment.v1.DiscountR\x0e\x61\x63tiveDiscount\x12\x39\n\ncreated_at\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x45\n\x08\x66\x65\x61tures\x18\x13 \x01(\x0b\x32).weaveapi.payment.v1.SubscriptionFeaturesR\x08\x66\x65\x61tures"\x99\x03\n\x0bPricingPlan\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n\nproduct_id\x18\x02 \x01(\tR\tproductId\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12!\n\x0c\x61mount_cents\x18\x05 \x01(\x03R\x0b\x61mountCents\x12\x1a\n\x08\x63urrency\x18\x06 \x01(\tR\x08\x63urrency\x12\x1a\n\x08interval\x18\x07 \x01(\tR\x08interval\x12%\n\x0einterval_count\x18\x08 \x01(\x05R\rintervalCount\x12\x45\n\x08\x66\x65\x61tures\x18\t \x01(\x0b\x32).weaveapi.payment.v1.SubscriptionFeaturesR\x08\x66\x65\x61tures\x12\x1d\n\nis_default\x18\n \x01(\x08R\tisDefault\x12\x1d\n\nis_popular\x18\x0b \x01(\x08R\tisPopular\x12\x1e\n\nhighlights\x18\x0c \x03(\tR\nhighlights"\x80\x05\n\x14SubscriptionFeatures\x12\x31\n\x15\x61pi_requests_per_hour\x18\x01 \x01(\x03R\x12\x61piRequestsPerHour\x12/\n\x14\x61pi_requests_per_day\x18\x02 \x01(\x03R\x11\x61piRequestsPerDay\x12\x33\n\x16\x61pi_requests_per_month\x18\x03 \x01(\x03R\x13\x61piRequestsPerMonth\x12-\n\x12unlimited_requests\x18\x04 \x01(\x08R\x11unlimitedRequests\x12$\n\x0e\x61pi_keys_limit\x18\x05 \x01(\x05R\x0c\x61piKeysLimit\x12,\n\x12unlimited_api_keys\x18\x06 \x01(\x08R\x10unlimitedApiKeys\x12%\n\x0ewebhook_access\x18\x07 \x01(\x08R\rwebhookAccess\x12#\n\rexport_access\x18\x08 \x01(\x08R\x0c\x65xportAccess\x12)\n\x10priority_support\x18\t \x01(\x08R\x0fprioritySupport\x12#\n\rcustom_limits\x18\n \x01(\x08R\x0c\x63ustomLimits\x12\x1f\n\x0bteam_access\x18\x0b \x01(\x08R\nteamAccess\x12,\n\x12team_members_limit\x18\x0c \x01(\x05R\x10teamMembersLimit\x12\x1d\n\nsso_access\x18\r \x01(\x08R\tssoAccess\x12\x1d\n\naudit_logs\x18\x0e \x01(\x08R\tauditLogs\x12#\n\rsla_guarantee\x18\x0f \x01(\x08R\x0cslaGuarantee"\xc7\x02\n\rPaymentMethod\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x1d\n\nis_default\x18\x03 \x01(\x08R\tisDefault\x12\x34\n\x04\x63\x61rd\x18\x04 \x01(\x0b\x32 .weaveapi.payment.v1.CardDetailsR\x04\x63\x61rd\x12\x34\n\x04\x62\x61nk\x18\x05 \x01(\x0b\x32 .weaveapi.payment.v1.BankDetailsR\x04\x62\x61nk\x12L\n\x0f\x62illing_details\x18\x06 \x01(\x0b\x32#.weaveapi.payment.v1.BillingDetailsR\x0e\x62illingDetails\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt"\xc7\x01\n\x0b\x43\x61rdDetails\x12\x14\n\x05\x62rand\x18\x01 \x01(\tR\x05\x62rand\x12\x14\n\x05last4\x18\x02 \x01(\tR\x05last4\x12\x1b\n\texp_month\x18\x03 \x01(\x05R\x08\x65xpMonth\x12\x19\n\x08\x65xp_year\x18\x04 \x01(\x05R\x07\x65xpYear\x12\x18\n\x07\x66unding\x18\x05 \x01(\tR\x07\x66unding\x12\x18\n\x07\x63ountry\x18\x06 \x01(\tR\x07\x63ountry\x12 \n\x0b\x66ingerprint\x18\x07 \x01(\tR\x0b\x66ingerprint"\x99\x01\n\x0b\x42\x61nkDetails\x12\x1b\n\tbank_name\x18\x01 \x01(\tR\x08\x62\x61nkName\x12\x14\n\x05last4\x18\x02 \x01(\tR\x05last4\x12!\n\x0c\x61\x63\x63ount_type\x18\x03 \x01(\tR\x0b\x61\x63\x63ountType\x12\x18\n\x07\x63ountry\x18\x04 \x01(\tR\x07\x63ountry\x12\x1a\n\x08\x63urrency\x18\x05 \x01(\tR\x08\x63urrency"\x88\x01\n\x0e\x42illingDetails\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05\x65mail\x18\x02 \x01(\tR\x05\x65mail\x12\x14\n\x05phone\x18\x03 \x01(\tR\x05phone\x12\x36\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x1c.weaveapi.payment.v1.AddressR\x07\x61\x64\x64ress"\x9a\x01\n\x07\x41\x64\x64ress\x12\x14\n\x05line1\x18\x01 \x01(\tR\x05line1\x12\x14\n\x05line2\x18\x02 \x01(\tR\x05line2\x12\x12\n\x04\x63ity\x18\x03 \x01(\tR\x04\x63ity\x12\x14\n\x05state\x18\x04 \x01(\tR\x05state\x12\x1f\n\x0bpostal_code\x18\x05 \x01(\tR\npostalCode\x12\x18\n\x07\x63ountry\x18\x06 \x01(\tR\x07\x63ountry"\xcf\x02\n\x08\x44iscount\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n\x04type\x18\x03 \x01(\tR\x04type\x12\x1f\n\x0bpercent_off\x18\x04 \x01(\x01R\npercentOff\x12(\n\x10\x61mount_off_cents\x18\x05 \x01(\x03R\x0e\x61mountOffCents\x12\x1a\n\x08\x64uration\x18\x06 \x01(\tR\x08\x64uration\x12,\n\x12\x64uration_in_months\x18\x07 \x01(\x05R\x10\x64urationInMonths\x12;\n\x0bvalid_until\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nvalidUntil\x12\x39\n\napplied_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tappliedAtB\xd6\x01\n\x17\x63om.weaveapi.payment.v1B\x11SubscriptionProtoP\x01Z:github.com/weave-labs/weave-go/weaveapi/payment/v1;payment\xa2\x02\x03WPX\xaa\x02\x13Weaveapi.Payment.V1\xca\x02\x13Weaveapi\\Payment\\V1\xe2\x02\x1fWeaveapi\\Payment\\V1\\GPBMetadata\xea\x02\x15Weaveapi::Payment::V1b\x06proto3'
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(
|
|
34
|
+
DESCRIPTOR, "weaveapi.payment.v1.subscription_pb2", _globals
|
|
35
|
+
)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
_globals["DESCRIPTOR"]._loaded_options = None
|
|
38
|
+
_globals[
|
|
39
|
+
"DESCRIPTOR"
|
|
40
|
+
]._serialized_options = b"\n\027com.weaveapi.payment.v1B\021SubscriptionProtoP\001Z:github.com/weave-labs/weave-go/weaveapi/payment/v1;payment\242\002\003WPX\252\002\023Weaveapi.Payment.V1\312\002\023Weaveapi\\Payment\\V1\342\002\037Weaveapi\\Payment\\V1\\GPBMetadata\352\002\025Weaveapi::Payment::V1"
|
|
41
|
+
_globals["_SUBSCRIPTIONSTATUS"]._serialized_start = 97
|
|
42
|
+
_globals["_SUBSCRIPTIONSTATUS"]._serialized_end = 1109
|
|
43
|
+
_globals["_PRICINGPLAN"]._serialized_start = 1112
|
|
44
|
+
_globals["_PRICINGPLAN"]._serialized_end = 1521
|
|
45
|
+
_globals["_SUBSCRIPTIONFEATURES"]._serialized_start = 1524
|
|
46
|
+
_globals["_SUBSCRIPTIONFEATURES"]._serialized_end = 2164
|
|
47
|
+
_globals["_PAYMENTMETHOD"]._serialized_start = 2167
|
|
48
|
+
_globals["_PAYMENTMETHOD"]._serialized_end = 2494
|
|
49
|
+
_globals["_CARDDETAILS"]._serialized_start = 2497
|
|
50
|
+
_globals["_CARDDETAILS"]._serialized_end = 2696
|
|
51
|
+
_globals["_BANKDETAILS"]._serialized_start = 2699
|
|
52
|
+
_globals["_BANKDETAILS"]._serialized_end = 2852
|
|
53
|
+
_globals["_BILLINGDETAILS"]._serialized_start = 2855
|
|
54
|
+
_globals["_BILLINGDETAILS"]._serialized_end = 2991
|
|
55
|
+
_globals["_ADDRESS"]._serialized_start = 2994
|
|
56
|
+
_globals["_ADDRESS"]._serialized_end = 3148
|
|
57
|
+
_globals["_DISCOUNT"]._serialized_start = 3151
|
|
58
|
+
_globals["_DISCOUNT"]._serialized_end = 3486
|
|
59
|
+
# @@protoc_insertion_point(module_scope)
|