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.
Files changed (62) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +228 -0
  2. weave/weaveapi/auth/v1/service_pb2.pyi +1406 -0
  3. weave/weaveapi/auth/v1/service_pb2_grpc.py +1091 -0
  4. weave/weaveapi/auth/v1/service_pb2_grpc.pyi +606 -0
  5. weave/weaveapi/auth/v1/session_pb2.py +38 -0
  6. weave/weaveapi/auth/v1/session_pb2.pyi +111 -0
  7. weave/weaveapi/auth/v1/session_pb2_grpc.py +2 -0
  8. weave/weaveapi/auth/v1/session_pb2_grpc.pyi +20 -0
  9. weave/weaveapi/auth/v1/usage_pb2.py +52 -0
  10. weave/weaveapi/auth/v1/usage_pb2.pyi +241 -0
  11. weave/weaveapi/auth/v1/usage_pb2_grpc.py +2 -0
  12. weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +20 -0
  13. weave/weaveapi/auth/v1/user_pb2.py +52 -0
  14. weave/weaveapi/auth/v1/user_pb2.pyi +594 -0
  15. weave/weaveapi/auth/v1/user_pb2_grpc.py +2 -0
  16. weave/weaveapi/auth/v1/user_pb2_grpc.pyi +20 -0
  17. weave/weaveapi/generate/v1/configuration_pb2.py +3 -3
  18. weave/weaveapi/generate/v1/generate_pb2.py +2 -2
  19. weave/weaveapi/generate/v1/service_pb2.py +2 -2
  20. weave/weaveapi/mcpregistry/v1/server_pb2.py +2 -2
  21. weave/weaveapi/mcpregistry/v1/service_pb2.py +3 -3
  22. weave/weaveapi/modex/v1/model_pb2.py +58 -0
  23. weave/weaveapi/modex/v1/model_pb2.pyi +642 -0
  24. weave/weaveapi/modex/v1/model_pb2_grpc.py +2 -0
  25. weave/weaveapi/modex/v1/model_pb2_grpc.pyi +20 -0
  26. weave/weaveapi/modex/v1/provider_pb2.py +38 -0
  27. weave/weaveapi/modex/v1/provider_pb2.pyi +91 -0
  28. weave/weaveapi/modex/v1/provider_pb2_grpc.py +2 -0
  29. weave/weaveapi/modex/v1/provider_pb2_grpc.pyi +20 -0
  30. weave/weaveapi/modex/v1/service_pb2.py +180 -0
  31. weave/weaveapi/modex/v1/service_pb2.pyi +1641 -0
  32. weave/weaveapi/modex/v1/service_pb2_grpc.py +602 -0
  33. weave/weaveapi/modex/v1/service_pb2_grpc.pyi +268 -0
  34. weave/weaveapi/payment/v1/invoice_pb2.py +46 -0
  35. weave/weaveapi/payment/v1/invoice_pb2.pyi +349 -0
  36. weave/weaveapi/payment/v1/invoice_pb2_grpc.py +2 -0
  37. weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +20 -0
  38. weave/weaveapi/payment/v1/service_pb2.py +244 -0
  39. weave/weaveapi/payment/v1/service_pb2.pyi +1492 -0
  40. weave/weaveapi/payment/v1/service_pb2_grpc.py +957 -0
  41. weave/weaveapi/payment/v1/service_pb2_grpc.pyi +572 -0
  42. weave/weaveapi/payment/v1/subscription_pb2.py +59 -0
  43. weave/weaveapi/payment/v1/subscription_pb2.pyi +695 -0
  44. weave/weaveapi/payment/v1/subscription_pb2_grpc.py +2 -0
  45. weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +20 -0
  46. weave/weaveapi/storage/v1/auth_pb2.py +2 -2
  47. weave/weaveapi/storage/v1/nosql_database_pb2.py +3 -3
  48. weave/weaveapi/storage/v1/object_store_pb2.py +3 -3
  49. weave/weaveapi/storage/v1/service_pb2.py +2 -2
  50. weave/weaveapi/storage/v1/sql_database_pb2.py +3 -3
  51. weave/weaveapi/storage/v1/storage_pb2.py +2 -2
  52. weave/weaveapi/synthesize/v1/dataset_pb2.py +2 -2
  53. weave/weaveapi/synthesize/v1/inline_data_pb2.py +3 -3
  54. weave/weaveapi/synthesize/v1/relationship_pb2.py +3 -3
  55. weave/weaveapi/synthesize/v1/service_pb2.py +2 -2
  56. weave/weaveapi/synthesize/v1/training_pb2.py +3 -3
  57. weave/weavesql/{db → weavedb}/queries.py +1 -1
  58. {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/METADATA +1 -1
  59. weave_python-0.27.0.dist-info/RECORD +109 -0
  60. weave_python-0.26.1.dist-info/RECORD +0 -69
  61. /weave/weavesql/{db → weavedb}/models.py +0 -0
  62. {weave_python-0.26.1.dist-info → weave_python-0.27.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,957 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+
4
+ import grpc
5
+
6
+ from weaveapi.payment.v1 import (
7
+ service_pb2 as weaveapi_dot_payment_dot_v1_dot_service__pb2,
8
+ )
9
+
10
+
11
+ class PaymentStub(object):
12
+ """PaymentService handles subscription management and payment processing
13
+ Subscription management
14
+ """
15
+
16
+ def __init__(self, channel):
17
+ """Constructor.
18
+
19
+ Args:
20
+ channel: A grpc.Channel.
21
+ """
22
+ self.CreateCheckoutSession = channel.unary_unary(
23
+ "/weaveapi.payment.v1.Payment/CreateCheckoutSession",
24
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreateCheckoutSessionRequest.SerializeToString,
25
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreateCheckoutSessionResponse.FromString,
26
+ _registered_method=True,
27
+ )
28
+ self.GetSubscriptionStatus = channel.unary_unary(
29
+ "/weaveapi.payment.v1.Payment/GetSubscriptionStatus",
30
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetSubscriptionStatusRequest.SerializeToString,
31
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetSubscriptionStatusResponse.FromString,
32
+ _registered_method=True,
33
+ )
34
+ self.UpdateSubscription = channel.unary_unary(
35
+ "/weaveapi.payment.v1.Payment/UpdateSubscription",
36
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateSubscriptionRequest.SerializeToString,
37
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateSubscriptionResponse.FromString,
38
+ _registered_method=True,
39
+ )
40
+ self.CancelSubscription = channel.unary_unary(
41
+ "/weaveapi.payment.v1.Payment/CancelSubscription",
42
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CancelSubscriptionRequest.SerializeToString,
43
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CancelSubscriptionResponse.FromString,
44
+ _registered_method=True,
45
+ )
46
+ self.ResumeSubscription = channel.unary_unary(
47
+ "/weaveapi.payment.v1.Payment/ResumeSubscription",
48
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ResumeSubscriptionRequest.SerializeToString,
49
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ResumeSubscriptionResponse.FromString,
50
+ _registered_method=True,
51
+ )
52
+ self.GetBillingHistory = channel.unary_unary(
53
+ "/weaveapi.payment.v1.Payment/GetBillingHistory",
54
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetBillingHistoryRequest.SerializeToString,
55
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetBillingHistoryResponse.FromString,
56
+ _registered_method=True,
57
+ )
58
+ self.GetUpcomingInvoice = channel.unary_unary(
59
+ "/weaveapi.payment.v1.Payment/GetUpcomingInvoice",
60
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUpcomingInvoiceRequest.SerializeToString,
61
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUpcomingInvoiceResponse.FromString,
62
+ _registered_method=True,
63
+ )
64
+ self.ListPaymentMethods = channel.unary_unary(
65
+ "/weaveapi.payment.v1.Payment/ListPaymentMethods",
66
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ListPaymentMethodsRequest.SerializeToString,
67
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ListPaymentMethodsResponse.FromString,
68
+ _registered_method=True,
69
+ )
70
+ self.AddPaymentMethod = channel.unary_unary(
71
+ "/weaveapi.payment.v1.Payment/AddPaymentMethod",
72
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.AddPaymentMethodRequest.SerializeToString,
73
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.AddPaymentMethodResponse.FromString,
74
+ _registered_method=True,
75
+ )
76
+ self.SetDefaultPaymentMethod = channel.unary_unary(
77
+ "/weaveapi.payment.v1.Payment/SetDefaultPaymentMethod",
78
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.SetDefaultPaymentMethodRequest.SerializeToString,
79
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.SetDefaultPaymentMethodResponse.FromString,
80
+ _registered_method=True,
81
+ )
82
+ self.RemovePaymentMethod = channel.unary_unary(
83
+ "/weaveapi.payment.v1.Payment/RemovePaymentMethod",
84
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.RemovePaymentMethodRequest.SerializeToString,
85
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.RemovePaymentMethodResponse.FromString,
86
+ _registered_method=True,
87
+ )
88
+ self.CreatePortalSession = channel.unary_unary(
89
+ "/weaveapi.payment.v1.Payment/CreatePortalSession",
90
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreatePortalSessionRequest.SerializeToString,
91
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreatePortalSessionResponse.FromString,
92
+ _registered_method=True,
93
+ )
94
+ self.GetPricingPlans = channel.unary_unary(
95
+ "/weaveapi.payment.v1.Payment/GetPricingPlans",
96
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetPricingPlansRequest.SerializeToString,
97
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetPricingPlansResponse.FromString,
98
+ _registered_method=True,
99
+ )
100
+ self.ApplyPromoCode = channel.unary_unary(
101
+ "/weaveapi.payment.v1.Payment/ApplyPromoCode",
102
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ApplyPromoCodeRequest.SerializeToString,
103
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ApplyPromoCodeResponse.FromString,
104
+ _registered_method=True,
105
+ )
106
+ self.HandleStripeWebhook = channel.unary_unary(
107
+ "/weaveapi.payment.v1.Payment/HandleStripeWebhook",
108
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.HandleStripeWebhookRequest.SerializeToString,
109
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.HandleStripeWebhookResponse.FromString,
110
+ _registered_method=True,
111
+ )
112
+ self.GetUsageSummary = channel.unary_unary(
113
+ "/weaveapi.payment.v1.Payment/GetUsageSummary",
114
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUsageSummaryRequest.SerializeToString,
115
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUsageSummaryResponse.FromString,
116
+ _registered_method=True,
117
+ )
118
+ self.GetCreditBalance = channel.unary_unary(
119
+ "/weaveapi.payment.v1.Payment/GetCreditBalance",
120
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetCreditBalanceRequest.SerializeToString,
121
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetCreditBalanceResponse.FromString,
122
+ _registered_method=True,
123
+ )
124
+ self.UpdateTaxInfo = channel.unary_unary(
125
+ "/weaveapi.payment.v1.Payment/UpdateTaxInfo",
126
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateTaxInfoRequest.SerializeToString,
127
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateTaxInfoResponse.FromString,
128
+ _registered_method=True,
129
+ )
130
+ self.DownloadInvoice = channel.unary_unary(
131
+ "/weaveapi.payment.v1.Payment/DownloadInvoice",
132
+ request_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.DownloadInvoiceRequest.SerializeToString,
133
+ response_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.DownloadInvoiceResponse.FromString,
134
+ _registered_method=True,
135
+ )
136
+
137
+
138
+ class PaymentServicer(object):
139
+ """PaymentService handles subscription management and payment processing
140
+ Subscription management
141
+ """
142
+
143
+ def CreateCheckoutSession(self, request, context):
144
+ """Create a Stripe checkout session for subscription"""
145
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
146
+ context.set_details("Method not implemented!")
147
+ raise NotImplementedError("Method not implemented!")
148
+
149
+ def GetSubscriptionStatus(self, request, context):
150
+ """Get current subscription status"""
151
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
152
+ context.set_details("Method not implemented!")
153
+ raise NotImplementedError("Method not implemented!")
154
+
155
+ def UpdateSubscription(self, request, context):
156
+ """Update subscription (change payment method, etc)"""
157
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
158
+ context.set_details("Method not implemented!")
159
+ raise NotImplementedError("Method not implemented!")
160
+
161
+ def CancelSubscription(self, request, context):
162
+ """Cancel subscription"""
163
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
164
+ context.set_details("Method not implemented!")
165
+ raise NotImplementedError("Method not implemented!")
166
+
167
+ def ResumeSubscription(self, request, context):
168
+ """Resume cancelled subscription"""
169
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
170
+ context.set_details("Method not implemented!")
171
+ raise NotImplementedError("Method not implemented!")
172
+
173
+ def GetBillingHistory(self, request, context):
174
+ """Billing & Payment Methods
175
+
176
+ Get billing history
177
+ """
178
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
179
+ context.set_details("Method not implemented!")
180
+ raise NotImplementedError("Method not implemented!")
181
+
182
+ def GetUpcomingInvoice(self, request, context):
183
+ """Get upcoming invoice preview"""
184
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
185
+ context.set_details("Method not implemented!")
186
+ raise NotImplementedError("Method not implemented!")
187
+
188
+ def ListPaymentMethods(self, request, context):
189
+ """List payment methods"""
190
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
191
+ context.set_details("Method not implemented!")
192
+ raise NotImplementedError("Method not implemented!")
193
+
194
+ def AddPaymentMethod(self, request, context):
195
+ """Add payment method"""
196
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
197
+ context.set_details("Method not implemented!")
198
+ raise NotImplementedError("Method not implemented!")
199
+
200
+ def SetDefaultPaymentMethod(self, request, context):
201
+ """Set default payment method"""
202
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
203
+ context.set_details("Method not implemented!")
204
+ raise NotImplementedError("Method not implemented!")
205
+
206
+ def RemovePaymentMethod(self, request, context):
207
+ """Remove payment method"""
208
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
209
+ context.set_details("Method not implemented!")
210
+ raise NotImplementedError("Method not implemented!")
211
+
212
+ def CreatePortalSession(self, request, context):
213
+ """Customer Portal
214
+
215
+ Create Stripe customer portal session
216
+ """
217
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
218
+ context.set_details("Method not implemented!")
219
+ raise NotImplementedError("Method not implemented!")
220
+
221
+ def GetPricingPlans(self, request, context):
222
+ """Pricing & Plans
223
+
224
+ Get available pricing plans
225
+ """
226
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
227
+ context.set_details("Method not implemented!")
228
+ raise NotImplementedError("Method not implemented!")
229
+
230
+ def ApplyPromoCode(self, request, context):
231
+ """Apply promo code"""
232
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
233
+ context.set_details("Method not implemented!")
234
+ raise NotImplementedError("Method not implemented!")
235
+
236
+ def HandleStripeWebhook(self, request, context):
237
+ """Webhooks
238
+
239
+ Handle Stripe webhook events
240
+ """
241
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
242
+ context.set_details("Method not implemented!")
243
+ raise NotImplementedError("Method not implemented!")
244
+
245
+ def GetUsageSummary(self, request, context):
246
+ """Usage & Credits
247
+
248
+ Get usage summary for billing period
249
+ """
250
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
251
+ context.set_details("Method not implemented!")
252
+ raise NotImplementedError("Method not implemented!")
253
+
254
+ def GetCreditBalance(self, request, context):
255
+ """Get credit balance (if applicable)"""
256
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
257
+ context.set_details("Method not implemented!")
258
+ raise NotImplementedError("Method not implemented!")
259
+
260
+ def UpdateTaxInfo(self, request, context):
261
+ """Tax & Compliance
262
+
263
+ Update tax information
264
+ """
265
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
266
+ context.set_details("Method not implemented!")
267
+ raise NotImplementedError("Method not implemented!")
268
+
269
+ def DownloadInvoice(self, request, context):
270
+ """Download invoice PDF"""
271
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
272
+ context.set_details("Method not implemented!")
273
+ raise NotImplementedError("Method not implemented!")
274
+
275
+
276
+ def add_PaymentServicer_to_server(servicer, server):
277
+ rpc_method_handlers = {
278
+ "CreateCheckoutSession": grpc.unary_unary_rpc_method_handler(
279
+ servicer.CreateCheckoutSession,
280
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreateCheckoutSessionRequest.FromString,
281
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreateCheckoutSessionResponse.SerializeToString,
282
+ ),
283
+ "GetSubscriptionStatus": grpc.unary_unary_rpc_method_handler(
284
+ servicer.GetSubscriptionStatus,
285
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetSubscriptionStatusRequest.FromString,
286
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetSubscriptionStatusResponse.SerializeToString,
287
+ ),
288
+ "UpdateSubscription": grpc.unary_unary_rpc_method_handler(
289
+ servicer.UpdateSubscription,
290
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateSubscriptionRequest.FromString,
291
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateSubscriptionResponse.SerializeToString,
292
+ ),
293
+ "CancelSubscription": grpc.unary_unary_rpc_method_handler(
294
+ servicer.CancelSubscription,
295
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CancelSubscriptionRequest.FromString,
296
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CancelSubscriptionResponse.SerializeToString,
297
+ ),
298
+ "ResumeSubscription": grpc.unary_unary_rpc_method_handler(
299
+ servicer.ResumeSubscription,
300
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ResumeSubscriptionRequest.FromString,
301
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ResumeSubscriptionResponse.SerializeToString,
302
+ ),
303
+ "GetBillingHistory": grpc.unary_unary_rpc_method_handler(
304
+ servicer.GetBillingHistory,
305
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetBillingHistoryRequest.FromString,
306
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetBillingHistoryResponse.SerializeToString,
307
+ ),
308
+ "GetUpcomingInvoice": grpc.unary_unary_rpc_method_handler(
309
+ servicer.GetUpcomingInvoice,
310
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUpcomingInvoiceRequest.FromString,
311
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUpcomingInvoiceResponse.SerializeToString,
312
+ ),
313
+ "ListPaymentMethods": grpc.unary_unary_rpc_method_handler(
314
+ servicer.ListPaymentMethods,
315
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ListPaymentMethodsRequest.FromString,
316
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ListPaymentMethodsResponse.SerializeToString,
317
+ ),
318
+ "AddPaymentMethod": grpc.unary_unary_rpc_method_handler(
319
+ servicer.AddPaymentMethod,
320
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.AddPaymentMethodRequest.FromString,
321
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.AddPaymentMethodResponse.SerializeToString,
322
+ ),
323
+ "SetDefaultPaymentMethod": grpc.unary_unary_rpc_method_handler(
324
+ servicer.SetDefaultPaymentMethod,
325
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.SetDefaultPaymentMethodRequest.FromString,
326
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.SetDefaultPaymentMethodResponse.SerializeToString,
327
+ ),
328
+ "RemovePaymentMethod": grpc.unary_unary_rpc_method_handler(
329
+ servicer.RemovePaymentMethod,
330
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.RemovePaymentMethodRequest.FromString,
331
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.RemovePaymentMethodResponse.SerializeToString,
332
+ ),
333
+ "CreatePortalSession": grpc.unary_unary_rpc_method_handler(
334
+ servicer.CreatePortalSession,
335
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreatePortalSessionRequest.FromString,
336
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.CreatePortalSessionResponse.SerializeToString,
337
+ ),
338
+ "GetPricingPlans": grpc.unary_unary_rpc_method_handler(
339
+ servicer.GetPricingPlans,
340
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetPricingPlansRequest.FromString,
341
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetPricingPlansResponse.SerializeToString,
342
+ ),
343
+ "ApplyPromoCode": grpc.unary_unary_rpc_method_handler(
344
+ servicer.ApplyPromoCode,
345
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ApplyPromoCodeRequest.FromString,
346
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.ApplyPromoCodeResponse.SerializeToString,
347
+ ),
348
+ "HandleStripeWebhook": grpc.unary_unary_rpc_method_handler(
349
+ servicer.HandleStripeWebhook,
350
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.HandleStripeWebhookRequest.FromString,
351
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.HandleStripeWebhookResponse.SerializeToString,
352
+ ),
353
+ "GetUsageSummary": grpc.unary_unary_rpc_method_handler(
354
+ servicer.GetUsageSummary,
355
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUsageSummaryRequest.FromString,
356
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUsageSummaryResponse.SerializeToString,
357
+ ),
358
+ "GetCreditBalance": grpc.unary_unary_rpc_method_handler(
359
+ servicer.GetCreditBalance,
360
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetCreditBalanceRequest.FromString,
361
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.GetCreditBalanceResponse.SerializeToString,
362
+ ),
363
+ "UpdateTaxInfo": grpc.unary_unary_rpc_method_handler(
364
+ servicer.UpdateTaxInfo,
365
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateTaxInfoRequest.FromString,
366
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateTaxInfoResponse.SerializeToString,
367
+ ),
368
+ "DownloadInvoice": grpc.unary_unary_rpc_method_handler(
369
+ servicer.DownloadInvoice,
370
+ request_deserializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.DownloadInvoiceRequest.FromString,
371
+ response_serializer=weaveapi_dot_payment_dot_v1_dot_service__pb2.DownloadInvoiceResponse.SerializeToString,
372
+ ),
373
+ }
374
+ generic_handler = grpc.method_handlers_generic_handler(
375
+ "weaveapi.payment.v1.Payment", rpc_method_handlers
376
+ )
377
+ server.add_generic_rpc_handlers((generic_handler,))
378
+ server.add_registered_method_handlers(
379
+ "weaveapi.payment.v1.Payment", rpc_method_handlers
380
+ )
381
+
382
+
383
+ # This class is part of an EXPERIMENTAL API.
384
+ class Payment(object):
385
+ """PaymentService handles subscription management and payment processing
386
+ Subscription management
387
+ """
388
+
389
+ @staticmethod
390
+ def CreateCheckoutSession(
391
+ request,
392
+ target,
393
+ options=(),
394
+ channel_credentials=None,
395
+ call_credentials=None,
396
+ insecure=False,
397
+ compression=None,
398
+ wait_for_ready=None,
399
+ timeout=None,
400
+ metadata=None,
401
+ ):
402
+ return grpc.experimental.unary_unary(
403
+ request,
404
+ target,
405
+ "/weaveapi.payment.v1.Payment/CreateCheckoutSession",
406
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.CreateCheckoutSessionRequest.SerializeToString,
407
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.CreateCheckoutSessionResponse.FromString,
408
+ options,
409
+ channel_credentials,
410
+ insecure,
411
+ call_credentials,
412
+ compression,
413
+ wait_for_ready,
414
+ timeout,
415
+ metadata,
416
+ _registered_method=True,
417
+ )
418
+
419
+ @staticmethod
420
+ def GetSubscriptionStatus(
421
+ request,
422
+ target,
423
+ options=(),
424
+ channel_credentials=None,
425
+ call_credentials=None,
426
+ insecure=False,
427
+ compression=None,
428
+ wait_for_ready=None,
429
+ timeout=None,
430
+ metadata=None,
431
+ ):
432
+ return grpc.experimental.unary_unary(
433
+ request,
434
+ target,
435
+ "/weaveapi.payment.v1.Payment/GetSubscriptionStatus",
436
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetSubscriptionStatusRequest.SerializeToString,
437
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetSubscriptionStatusResponse.FromString,
438
+ options,
439
+ channel_credentials,
440
+ insecure,
441
+ call_credentials,
442
+ compression,
443
+ wait_for_ready,
444
+ timeout,
445
+ metadata,
446
+ _registered_method=True,
447
+ )
448
+
449
+ @staticmethod
450
+ def UpdateSubscription(
451
+ request,
452
+ target,
453
+ options=(),
454
+ channel_credentials=None,
455
+ call_credentials=None,
456
+ insecure=False,
457
+ compression=None,
458
+ wait_for_ready=None,
459
+ timeout=None,
460
+ metadata=None,
461
+ ):
462
+ return grpc.experimental.unary_unary(
463
+ request,
464
+ target,
465
+ "/weaveapi.payment.v1.Payment/UpdateSubscription",
466
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateSubscriptionRequest.SerializeToString,
467
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateSubscriptionResponse.FromString,
468
+ options,
469
+ channel_credentials,
470
+ insecure,
471
+ call_credentials,
472
+ compression,
473
+ wait_for_ready,
474
+ timeout,
475
+ metadata,
476
+ _registered_method=True,
477
+ )
478
+
479
+ @staticmethod
480
+ def CancelSubscription(
481
+ request,
482
+ target,
483
+ options=(),
484
+ channel_credentials=None,
485
+ call_credentials=None,
486
+ insecure=False,
487
+ compression=None,
488
+ wait_for_ready=None,
489
+ timeout=None,
490
+ metadata=None,
491
+ ):
492
+ return grpc.experimental.unary_unary(
493
+ request,
494
+ target,
495
+ "/weaveapi.payment.v1.Payment/CancelSubscription",
496
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.CancelSubscriptionRequest.SerializeToString,
497
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.CancelSubscriptionResponse.FromString,
498
+ options,
499
+ channel_credentials,
500
+ insecure,
501
+ call_credentials,
502
+ compression,
503
+ wait_for_ready,
504
+ timeout,
505
+ metadata,
506
+ _registered_method=True,
507
+ )
508
+
509
+ @staticmethod
510
+ def ResumeSubscription(
511
+ request,
512
+ target,
513
+ options=(),
514
+ channel_credentials=None,
515
+ call_credentials=None,
516
+ insecure=False,
517
+ compression=None,
518
+ wait_for_ready=None,
519
+ timeout=None,
520
+ metadata=None,
521
+ ):
522
+ return grpc.experimental.unary_unary(
523
+ request,
524
+ target,
525
+ "/weaveapi.payment.v1.Payment/ResumeSubscription",
526
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.ResumeSubscriptionRequest.SerializeToString,
527
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.ResumeSubscriptionResponse.FromString,
528
+ options,
529
+ channel_credentials,
530
+ insecure,
531
+ call_credentials,
532
+ compression,
533
+ wait_for_ready,
534
+ timeout,
535
+ metadata,
536
+ _registered_method=True,
537
+ )
538
+
539
+ @staticmethod
540
+ def GetBillingHistory(
541
+ request,
542
+ target,
543
+ options=(),
544
+ channel_credentials=None,
545
+ call_credentials=None,
546
+ insecure=False,
547
+ compression=None,
548
+ wait_for_ready=None,
549
+ timeout=None,
550
+ metadata=None,
551
+ ):
552
+ return grpc.experimental.unary_unary(
553
+ request,
554
+ target,
555
+ "/weaveapi.payment.v1.Payment/GetBillingHistory",
556
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetBillingHistoryRequest.SerializeToString,
557
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetBillingHistoryResponse.FromString,
558
+ options,
559
+ channel_credentials,
560
+ insecure,
561
+ call_credentials,
562
+ compression,
563
+ wait_for_ready,
564
+ timeout,
565
+ metadata,
566
+ _registered_method=True,
567
+ )
568
+
569
+ @staticmethod
570
+ def GetUpcomingInvoice(
571
+ request,
572
+ target,
573
+ options=(),
574
+ channel_credentials=None,
575
+ call_credentials=None,
576
+ insecure=False,
577
+ compression=None,
578
+ wait_for_ready=None,
579
+ timeout=None,
580
+ metadata=None,
581
+ ):
582
+ return grpc.experimental.unary_unary(
583
+ request,
584
+ target,
585
+ "/weaveapi.payment.v1.Payment/GetUpcomingInvoice",
586
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUpcomingInvoiceRequest.SerializeToString,
587
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUpcomingInvoiceResponse.FromString,
588
+ options,
589
+ channel_credentials,
590
+ insecure,
591
+ call_credentials,
592
+ compression,
593
+ wait_for_ready,
594
+ timeout,
595
+ metadata,
596
+ _registered_method=True,
597
+ )
598
+
599
+ @staticmethod
600
+ def ListPaymentMethods(
601
+ request,
602
+ target,
603
+ options=(),
604
+ channel_credentials=None,
605
+ call_credentials=None,
606
+ insecure=False,
607
+ compression=None,
608
+ wait_for_ready=None,
609
+ timeout=None,
610
+ metadata=None,
611
+ ):
612
+ return grpc.experimental.unary_unary(
613
+ request,
614
+ target,
615
+ "/weaveapi.payment.v1.Payment/ListPaymentMethods",
616
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.ListPaymentMethodsRequest.SerializeToString,
617
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.ListPaymentMethodsResponse.FromString,
618
+ options,
619
+ channel_credentials,
620
+ insecure,
621
+ call_credentials,
622
+ compression,
623
+ wait_for_ready,
624
+ timeout,
625
+ metadata,
626
+ _registered_method=True,
627
+ )
628
+
629
+ @staticmethod
630
+ def AddPaymentMethod(
631
+ request,
632
+ target,
633
+ options=(),
634
+ channel_credentials=None,
635
+ call_credentials=None,
636
+ insecure=False,
637
+ compression=None,
638
+ wait_for_ready=None,
639
+ timeout=None,
640
+ metadata=None,
641
+ ):
642
+ return grpc.experimental.unary_unary(
643
+ request,
644
+ target,
645
+ "/weaveapi.payment.v1.Payment/AddPaymentMethod",
646
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.AddPaymentMethodRequest.SerializeToString,
647
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.AddPaymentMethodResponse.FromString,
648
+ options,
649
+ channel_credentials,
650
+ insecure,
651
+ call_credentials,
652
+ compression,
653
+ wait_for_ready,
654
+ timeout,
655
+ metadata,
656
+ _registered_method=True,
657
+ )
658
+
659
+ @staticmethod
660
+ def SetDefaultPaymentMethod(
661
+ request,
662
+ target,
663
+ options=(),
664
+ channel_credentials=None,
665
+ call_credentials=None,
666
+ insecure=False,
667
+ compression=None,
668
+ wait_for_ready=None,
669
+ timeout=None,
670
+ metadata=None,
671
+ ):
672
+ return grpc.experimental.unary_unary(
673
+ request,
674
+ target,
675
+ "/weaveapi.payment.v1.Payment/SetDefaultPaymentMethod",
676
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.SetDefaultPaymentMethodRequest.SerializeToString,
677
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.SetDefaultPaymentMethodResponse.FromString,
678
+ options,
679
+ channel_credentials,
680
+ insecure,
681
+ call_credentials,
682
+ compression,
683
+ wait_for_ready,
684
+ timeout,
685
+ metadata,
686
+ _registered_method=True,
687
+ )
688
+
689
+ @staticmethod
690
+ def RemovePaymentMethod(
691
+ request,
692
+ target,
693
+ options=(),
694
+ channel_credentials=None,
695
+ call_credentials=None,
696
+ insecure=False,
697
+ compression=None,
698
+ wait_for_ready=None,
699
+ timeout=None,
700
+ metadata=None,
701
+ ):
702
+ return grpc.experimental.unary_unary(
703
+ request,
704
+ target,
705
+ "/weaveapi.payment.v1.Payment/RemovePaymentMethod",
706
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.RemovePaymentMethodRequest.SerializeToString,
707
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.RemovePaymentMethodResponse.FromString,
708
+ options,
709
+ channel_credentials,
710
+ insecure,
711
+ call_credentials,
712
+ compression,
713
+ wait_for_ready,
714
+ timeout,
715
+ metadata,
716
+ _registered_method=True,
717
+ )
718
+
719
+ @staticmethod
720
+ def CreatePortalSession(
721
+ request,
722
+ target,
723
+ options=(),
724
+ channel_credentials=None,
725
+ call_credentials=None,
726
+ insecure=False,
727
+ compression=None,
728
+ wait_for_ready=None,
729
+ timeout=None,
730
+ metadata=None,
731
+ ):
732
+ return grpc.experimental.unary_unary(
733
+ request,
734
+ target,
735
+ "/weaveapi.payment.v1.Payment/CreatePortalSession",
736
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.CreatePortalSessionRequest.SerializeToString,
737
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.CreatePortalSessionResponse.FromString,
738
+ options,
739
+ channel_credentials,
740
+ insecure,
741
+ call_credentials,
742
+ compression,
743
+ wait_for_ready,
744
+ timeout,
745
+ metadata,
746
+ _registered_method=True,
747
+ )
748
+
749
+ @staticmethod
750
+ def GetPricingPlans(
751
+ request,
752
+ target,
753
+ options=(),
754
+ channel_credentials=None,
755
+ call_credentials=None,
756
+ insecure=False,
757
+ compression=None,
758
+ wait_for_ready=None,
759
+ timeout=None,
760
+ metadata=None,
761
+ ):
762
+ return grpc.experimental.unary_unary(
763
+ request,
764
+ target,
765
+ "/weaveapi.payment.v1.Payment/GetPricingPlans",
766
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetPricingPlansRequest.SerializeToString,
767
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetPricingPlansResponse.FromString,
768
+ options,
769
+ channel_credentials,
770
+ insecure,
771
+ call_credentials,
772
+ compression,
773
+ wait_for_ready,
774
+ timeout,
775
+ metadata,
776
+ _registered_method=True,
777
+ )
778
+
779
+ @staticmethod
780
+ def ApplyPromoCode(
781
+ request,
782
+ target,
783
+ options=(),
784
+ channel_credentials=None,
785
+ call_credentials=None,
786
+ insecure=False,
787
+ compression=None,
788
+ wait_for_ready=None,
789
+ timeout=None,
790
+ metadata=None,
791
+ ):
792
+ return grpc.experimental.unary_unary(
793
+ request,
794
+ target,
795
+ "/weaveapi.payment.v1.Payment/ApplyPromoCode",
796
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.ApplyPromoCodeRequest.SerializeToString,
797
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.ApplyPromoCodeResponse.FromString,
798
+ options,
799
+ channel_credentials,
800
+ insecure,
801
+ call_credentials,
802
+ compression,
803
+ wait_for_ready,
804
+ timeout,
805
+ metadata,
806
+ _registered_method=True,
807
+ )
808
+
809
+ @staticmethod
810
+ def HandleStripeWebhook(
811
+ request,
812
+ target,
813
+ options=(),
814
+ channel_credentials=None,
815
+ call_credentials=None,
816
+ insecure=False,
817
+ compression=None,
818
+ wait_for_ready=None,
819
+ timeout=None,
820
+ metadata=None,
821
+ ):
822
+ return grpc.experimental.unary_unary(
823
+ request,
824
+ target,
825
+ "/weaveapi.payment.v1.Payment/HandleStripeWebhook",
826
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.HandleStripeWebhookRequest.SerializeToString,
827
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.HandleStripeWebhookResponse.FromString,
828
+ options,
829
+ channel_credentials,
830
+ insecure,
831
+ call_credentials,
832
+ compression,
833
+ wait_for_ready,
834
+ timeout,
835
+ metadata,
836
+ _registered_method=True,
837
+ )
838
+
839
+ @staticmethod
840
+ def GetUsageSummary(
841
+ request,
842
+ target,
843
+ options=(),
844
+ channel_credentials=None,
845
+ call_credentials=None,
846
+ insecure=False,
847
+ compression=None,
848
+ wait_for_ready=None,
849
+ timeout=None,
850
+ metadata=None,
851
+ ):
852
+ return grpc.experimental.unary_unary(
853
+ request,
854
+ target,
855
+ "/weaveapi.payment.v1.Payment/GetUsageSummary",
856
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUsageSummaryRequest.SerializeToString,
857
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetUsageSummaryResponse.FromString,
858
+ options,
859
+ channel_credentials,
860
+ insecure,
861
+ call_credentials,
862
+ compression,
863
+ wait_for_ready,
864
+ timeout,
865
+ metadata,
866
+ _registered_method=True,
867
+ )
868
+
869
+ @staticmethod
870
+ def GetCreditBalance(
871
+ request,
872
+ target,
873
+ options=(),
874
+ channel_credentials=None,
875
+ call_credentials=None,
876
+ insecure=False,
877
+ compression=None,
878
+ wait_for_ready=None,
879
+ timeout=None,
880
+ metadata=None,
881
+ ):
882
+ return grpc.experimental.unary_unary(
883
+ request,
884
+ target,
885
+ "/weaveapi.payment.v1.Payment/GetCreditBalance",
886
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetCreditBalanceRequest.SerializeToString,
887
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.GetCreditBalanceResponse.FromString,
888
+ options,
889
+ channel_credentials,
890
+ insecure,
891
+ call_credentials,
892
+ compression,
893
+ wait_for_ready,
894
+ timeout,
895
+ metadata,
896
+ _registered_method=True,
897
+ )
898
+
899
+ @staticmethod
900
+ def UpdateTaxInfo(
901
+ request,
902
+ target,
903
+ options=(),
904
+ channel_credentials=None,
905
+ call_credentials=None,
906
+ insecure=False,
907
+ compression=None,
908
+ wait_for_ready=None,
909
+ timeout=None,
910
+ metadata=None,
911
+ ):
912
+ return grpc.experimental.unary_unary(
913
+ request,
914
+ target,
915
+ "/weaveapi.payment.v1.Payment/UpdateTaxInfo",
916
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateTaxInfoRequest.SerializeToString,
917
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.UpdateTaxInfoResponse.FromString,
918
+ options,
919
+ channel_credentials,
920
+ insecure,
921
+ call_credentials,
922
+ compression,
923
+ wait_for_ready,
924
+ timeout,
925
+ metadata,
926
+ _registered_method=True,
927
+ )
928
+
929
+ @staticmethod
930
+ def DownloadInvoice(
931
+ request,
932
+ target,
933
+ options=(),
934
+ channel_credentials=None,
935
+ call_credentials=None,
936
+ insecure=False,
937
+ compression=None,
938
+ wait_for_ready=None,
939
+ timeout=None,
940
+ metadata=None,
941
+ ):
942
+ return grpc.experimental.unary_unary(
943
+ request,
944
+ target,
945
+ "/weaveapi.payment.v1.Payment/DownloadInvoice",
946
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.DownloadInvoiceRequest.SerializeToString,
947
+ weaveapi_dot_payment_dot_v1_dot_service__pb2.DownloadInvoiceResponse.FromString,
948
+ options,
949
+ channel_credentials,
950
+ insecure,
951
+ call_credentials,
952
+ compression,
953
+ wait_for_ready,
954
+ timeout,
955
+ metadata,
956
+ _registered_method=True,
957
+ )