weave-python 0.28.2__py3-none-any.whl → 0.30.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- weave/weaveapi/auth/v1/service_pb2.py +194 -98
- weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
- weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
- weave/weaveapi/auth/v1/session_pb2.py +14 -6
- weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
- weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/usage_pb2.py +18 -14
- weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
- weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
- weave/weaveapi/auth/v1/user_pb2.py +60 -18
- weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
- weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
- weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
- weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/generate_pb2.py +32 -6
- weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
- weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
- weave/weaveapi/generate/v1/service_pb2.py +52 -22
- weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
- weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
- weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
- weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
- weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
- weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
- weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
- weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/model_pb2.py +56 -20
- weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
- weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
- weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
- weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
- weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
- weave/weaveapi/llmx/v1/service_pb2.py +228 -90
- weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
- weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
- weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
- weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
- weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
- weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
- weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
- weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
- weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
- weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
- weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
- weave/weaveapi/payment/v1/service_pb2.py +264 -98
- weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
- weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
- weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
- weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
- weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/auth_pb2.py +6 -6
- weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
- weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
- weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
- weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
- weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
- weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/service_pb2.py +96 -36
- weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
- weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
- weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
- weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
- weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
- weave/weaveapi/storage/v1/storage_pb2.py +20 -6
- weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
- weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
- weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
- weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
- weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
- weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
- weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
- weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
- weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
- weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
- weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
- weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
- weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
- weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
- weave/weavesql/llmxdb/capabilities.py +487 -0
- weave/weavesql/llmxdb/changes.py +297 -0
- weave/weavesql/llmxdb/models.py +594 -0
- weave/weavesql/llmxdb/providers.py +348 -0
- weave/weavesql/llmxdb/scraper_runs.py +287 -0
- weave/weavesql/llmxdb/search.py +721 -0
- weave/weavesql/weavedb/dataset.py +75 -0
- weave/weavesql/weavedb/models.py +135 -0
- weave/weavesql/weavedb/relationships.py +72 -0
- weave/weavesql/weavedb/storage.py +113 -0
- weave/weavesql/weavedb/synthesizer.py +107 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/METADATA +3 -3
- weave_python-0.30.3.dist-info/RECORD +131 -0
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
- weave_python-0.28.2.dist-info/RECORD +0 -120
- {weave_python-0.28.2.dist-info → weave_python-0.30.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,570 +3,480 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import abc
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from grpc import aio as _aio
|
|
8
|
+
from weaveapi.payment.v1 import service_pb2 as _service_pb2
|
|
9
|
+
import abc as _abc_1
|
|
10
|
+
import grpc as _grpc
|
|
11
|
+
import sys
|
|
12
|
+
import typing as _typing
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
if sys.version_info >= (3, 11):
|
|
15
|
+
from typing import Self as _Self
|
|
16
|
+
else:
|
|
17
|
+
from typing_extensions import Self as _Self
|
|
18
|
+
|
|
19
|
+
_T = _typing.TypeVar("_T")
|
|
14
20
|
|
|
15
21
|
class _MaybeAsyncIterator(
|
|
16
|
-
|
|
17
|
-
collections.abc.Iterator[_T],
|
|
18
|
-
metaclass=abc.ABCMeta,
|
|
22
|
+
_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
|
|
19
23
|
): ...
|
|
20
|
-
class _ServicerContext(
|
|
24
|
+
class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
21
25
|
...
|
|
22
26
|
|
|
27
|
+
GRPC_GENERATED_VERSION: str
|
|
28
|
+
GRPC_VERSION: str
|
|
29
|
+
|
|
23
30
|
class PaymentStub:
|
|
24
31
|
"""PaymentService handles subscription management and payment processing
|
|
25
32
|
Subscription management
|
|
26
33
|
"""
|
|
27
34
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
@_typing.overload
|
|
36
|
+
def __new__(cls, channel: _grpc.Channel) -> _Self: ...
|
|
37
|
+
@_typing.overload
|
|
38
|
+
def __new__(cls, channel: _aio.Channel) -> PaymentAsyncStub: ...
|
|
39
|
+
CreateCheckoutSession: _grpc.UnaryUnaryMultiCallable[
|
|
40
|
+
_service_pb2.CreateCheckoutSessionRequest,
|
|
41
|
+
_service_pb2.CreateCheckoutSessionResponse,
|
|
34
42
|
]
|
|
35
43
|
"""Create a Stripe checkout session for subscription"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse,
|
|
44
|
+
GetSubscriptionStatus: _grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
_service_pb2.GetSubscriptionStatusRequest,
|
|
46
|
+
_service_pb2.GetSubscriptionStatusResponse,
|
|
40
47
|
]
|
|
41
48
|
"""Get current subscription status"""
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
weaveapi.payment.v1.service_pb2.UpdateSubscriptionRequest,
|
|
45
|
-
weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
|
|
49
|
+
UpdateSubscription: _grpc.UnaryUnaryMultiCallable[
|
|
50
|
+
_service_pb2.UpdateSubscriptionRequest, _service_pb2.UpdateSubscriptionResponse
|
|
46
51
|
]
|
|
47
52
|
"""Update subscription (change payment method, etc)"""
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
weaveapi.payment.v1.service_pb2.CancelSubscriptionRequest,
|
|
51
|
-
weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
|
|
53
|
+
CancelSubscription: _grpc.UnaryUnaryMultiCallable[
|
|
54
|
+
_service_pb2.CancelSubscriptionRequest, _service_pb2.CancelSubscriptionResponse
|
|
52
55
|
]
|
|
53
56
|
"""Cancel subscription"""
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
weaveapi.payment.v1.service_pb2.ResumeSubscriptionRequest,
|
|
57
|
-
weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
|
|
57
|
+
ResumeSubscription: _grpc.UnaryUnaryMultiCallable[
|
|
58
|
+
_service_pb2.ResumeSubscriptionRequest, _service_pb2.ResumeSubscriptionResponse
|
|
58
59
|
]
|
|
59
60
|
"""Resume cancelled subscription"""
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
weaveapi.payment.v1.service_pb2.GetBillingHistoryRequest,
|
|
63
|
-
weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
|
|
61
|
+
GetBillingHistory: _grpc.UnaryUnaryMultiCallable[
|
|
62
|
+
_service_pb2.GetBillingHistoryRequest, _service_pb2.GetBillingHistoryResponse
|
|
64
63
|
]
|
|
65
64
|
"""Billing & Payment Methods
|
|
66
65
|
|
|
67
66
|
Get billing history
|
|
68
67
|
"""
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceRequest,
|
|
72
|
-
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
|
|
68
|
+
GetUpcomingInvoice: _grpc.UnaryUnaryMultiCallable[
|
|
69
|
+
_service_pb2.GetUpcomingInvoiceRequest, _service_pb2.GetUpcomingInvoiceResponse
|
|
73
70
|
]
|
|
74
71
|
"""Get upcoming invoice preview"""
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
weaveapi.payment.v1.service_pb2.ListPaymentMethodsRequest,
|
|
78
|
-
weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
|
|
72
|
+
ListPaymentMethods: _grpc.UnaryUnaryMultiCallable[
|
|
73
|
+
_service_pb2.ListPaymentMethodsRequest, _service_pb2.ListPaymentMethodsResponse
|
|
79
74
|
]
|
|
80
75
|
"""List payment methods"""
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
weaveapi.payment.v1.service_pb2.AddPaymentMethodRequest,
|
|
84
|
-
weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
|
|
76
|
+
AddPaymentMethod: _grpc.UnaryUnaryMultiCallable[
|
|
77
|
+
_service_pb2.AddPaymentMethodRequest, _service_pb2.AddPaymentMethodResponse
|
|
85
78
|
]
|
|
86
79
|
"""Add payment method"""
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse,
|
|
80
|
+
SetDefaultPaymentMethod: _grpc.UnaryUnaryMultiCallable[
|
|
81
|
+
_service_pb2.SetDefaultPaymentMethodRequest,
|
|
82
|
+
_service_pb2.SetDefaultPaymentMethodResponse,
|
|
91
83
|
]
|
|
92
84
|
"""Set default payment method"""
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse,
|
|
85
|
+
RemovePaymentMethod: _grpc.UnaryUnaryMultiCallable[
|
|
86
|
+
_service_pb2.RemovePaymentMethodRequest,
|
|
87
|
+
_service_pb2.RemovePaymentMethodResponse,
|
|
97
88
|
]
|
|
98
89
|
"""Remove payment method"""
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse,
|
|
90
|
+
CreatePortalSession: _grpc.UnaryUnaryMultiCallable[
|
|
91
|
+
_service_pb2.CreatePortalSessionRequest,
|
|
92
|
+
_service_pb2.CreatePortalSessionResponse,
|
|
103
93
|
]
|
|
104
94
|
"""Customer Portal
|
|
105
95
|
|
|
106
96
|
Create Stripe customer portal session
|
|
107
97
|
"""
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
weaveapi.payment.v1.service_pb2.GetPricingPlansRequest,
|
|
111
|
-
weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
|
|
98
|
+
GetPricingPlans: _grpc.UnaryUnaryMultiCallable[
|
|
99
|
+
_service_pb2.GetPricingPlansRequest, _service_pb2.GetPricingPlansResponse
|
|
112
100
|
]
|
|
113
101
|
"""Pricing & Plans
|
|
114
102
|
|
|
115
103
|
Get available pricing plans
|
|
116
104
|
"""
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
weaveapi.payment.v1.service_pb2.ApplyPromoCodeRequest,
|
|
120
|
-
weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
|
|
105
|
+
ApplyPromoCode: _grpc.UnaryUnaryMultiCallable[
|
|
106
|
+
_service_pb2.ApplyPromoCodeRequest, _service_pb2.ApplyPromoCodeResponse
|
|
121
107
|
]
|
|
122
108
|
"""Apply promo code"""
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse,
|
|
109
|
+
HandleStripeWebhook: _grpc.UnaryUnaryMultiCallable[
|
|
110
|
+
_service_pb2.HandleStripeWebhookRequest,
|
|
111
|
+
_service_pb2.HandleStripeWebhookResponse,
|
|
127
112
|
]
|
|
128
113
|
"""Webhooks
|
|
129
114
|
|
|
130
115
|
Handle Stripe webhook events
|
|
131
116
|
"""
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
weaveapi.payment.v1.service_pb2.GetUsageSummaryRequest,
|
|
135
|
-
weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
|
|
117
|
+
GetUsageSummary: _grpc.UnaryUnaryMultiCallable[
|
|
118
|
+
_service_pb2.GetUsageSummaryRequest, _service_pb2.GetUsageSummaryResponse
|
|
136
119
|
]
|
|
137
120
|
"""Usage & Credits
|
|
138
121
|
|
|
139
122
|
Get usage summary for billing period
|
|
140
123
|
"""
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
weaveapi.payment.v1.service_pb2.GetCreditBalanceRequest,
|
|
144
|
-
weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
|
|
124
|
+
GetCreditBalance: _grpc.UnaryUnaryMultiCallable[
|
|
125
|
+
_service_pb2.GetCreditBalanceRequest, _service_pb2.GetCreditBalanceResponse
|
|
145
126
|
]
|
|
146
127
|
"""Get credit balance (if applicable)"""
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
weaveapi.payment.v1.service_pb2.UpdateTaxInfoRequest,
|
|
150
|
-
weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
|
|
128
|
+
UpdateTaxInfo: _grpc.UnaryUnaryMultiCallable[
|
|
129
|
+
_service_pb2.UpdateTaxInfoRequest, _service_pb2.UpdateTaxInfoResponse
|
|
151
130
|
]
|
|
152
131
|
"""Tax & Compliance
|
|
153
132
|
|
|
154
133
|
Update tax information
|
|
155
134
|
"""
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
weaveapi.payment.v1.service_pb2.DownloadInvoiceRequest,
|
|
159
|
-
weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
|
|
135
|
+
DownloadInvoice: _grpc.UnaryUnaryMultiCallable[
|
|
136
|
+
_service_pb2.DownloadInvoiceRequest, _service_pb2.DownloadInvoiceResponse
|
|
160
137
|
]
|
|
161
138
|
"""Download invoice PDF"""
|
|
162
139
|
|
|
163
|
-
|
|
140
|
+
@_typing.type_check_only
|
|
141
|
+
class PaymentAsyncStub(PaymentStub):
|
|
164
142
|
"""PaymentService handles subscription management and payment processing
|
|
165
143
|
Subscription management
|
|
166
144
|
"""
|
|
167
145
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
146
|
+
def __init__(self, channel: _aio.Channel) -> None: ...
|
|
147
|
+
CreateCheckoutSession: _aio.UnaryUnaryMultiCallable[
|
|
148
|
+
_service_pb2.CreateCheckoutSessionRequest,
|
|
149
|
+
_service_pb2.CreateCheckoutSessionResponse,
|
|
150
|
+
] # type: ignore[assignment]
|
|
172
151
|
"""Create a Stripe checkout session for subscription"""
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
]
|
|
152
|
+
GetSubscriptionStatus: _aio.UnaryUnaryMultiCallable[
|
|
153
|
+
_service_pb2.GetSubscriptionStatusRequest,
|
|
154
|
+
_service_pb2.GetSubscriptionStatusResponse,
|
|
155
|
+
] # type: ignore[assignment]
|
|
178
156
|
"""Get current subscription status"""
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse,
|
|
183
|
-
]
|
|
157
|
+
UpdateSubscription: _aio.UnaryUnaryMultiCallable[
|
|
158
|
+
_service_pb2.UpdateSubscriptionRequest, _service_pb2.UpdateSubscriptionResponse
|
|
159
|
+
] # type: ignore[assignment]
|
|
184
160
|
"""Update subscription (change payment method, etc)"""
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse,
|
|
189
|
-
]
|
|
161
|
+
CancelSubscription: _aio.UnaryUnaryMultiCallable[
|
|
162
|
+
_service_pb2.CancelSubscriptionRequest, _service_pb2.CancelSubscriptionResponse
|
|
163
|
+
] # type: ignore[assignment]
|
|
190
164
|
"""Cancel subscription"""
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse,
|
|
195
|
-
]
|
|
165
|
+
ResumeSubscription: _aio.UnaryUnaryMultiCallable[
|
|
166
|
+
_service_pb2.ResumeSubscriptionRequest, _service_pb2.ResumeSubscriptionResponse
|
|
167
|
+
] # type: ignore[assignment]
|
|
196
168
|
"""Resume cancelled subscription"""
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse,
|
|
201
|
-
]
|
|
169
|
+
GetBillingHistory: _aio.UnaryUnaryMultiCallable[
|
|
170
|
+
_service_pb2.GetBillingHistoryRequest, _service_pb2.GetBillingHistoryResponse
|
|
171
|
+
] # type: ignore[assignment]
|
|
202
172
|
"""Billing & Payment Methods
|
|
203
173
|
|
|
204
174
|
Get billing history
|
|
205
175
|
"""
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse,
|
|
210
|
-
]
|
|
176
|
+
GetUpcomingInvoice: _aio.UnaryUnaryMultiCallable[
|
|
177
|
+
_service_pb2.GetUpcomingInvoiceRequest, _service_pb2.GetUpcomingInvoiceResponse
|
|
178
|
+
] # type: ignore[assignment]
|
|
211
179
|
"""Get upcoming invoice preview"""
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse,
|
|
216
|
-
]
|
|
180
|
+
ListPaymentMethods: _aio.UnaryUnaryMultiCallable[
|
|
181
|
+
_service_pb2.ListPaymentMethodsRequest, _service_pb2.ListPaymentMethodsResponse
|
|
182
|
+
] # type: ignore[assignment]
|
|
217
183
|
"""List payment methods"""
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse,
|
|
222
|
-
]
|
|
184
|
+
AddPaymentMethod: _aio.UnaryUnaryMultiCallable[
|
|
185
|
+
_service_pb2.AddPaymentMethodRequest, _service_pb2.AddPaymentMethodResponse
|
|
186
|
+
] # type: ignore[assignment]
|
|
223
187
|
"""Add payment method"""
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
]
|
|
188
|
+
SetDefaultPaymentMethod: _aio.UnaryUnaryMultiCallable[
|
|
189
|
+
_service_pb2.SetDefaultPaymentMethodRequest,
|
|
190
|
+
_service_pb2.SetDefaultPaymentMethodResponse,
|
|
191
|
+
] # type: ignore[assignment]
|
|
229
192
|
"""Set default payment method"""
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
]
|
|
193
|
+
RemovePaymentMethod: _aio.UnaryUnaryMultiCallable[
|
|
194
|
+
_service_pb2.RemovePaymentMethodRequest,
|
|
195
|
+
_service_pb2.RemovePaymentMethodResponse,
|
|
196
|
+
] # type: ignore[assignment]
|
|
235
197
|
"""Remove payment method"""
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
]
|
|
198
|
+
CreatePortalSession: _aio.UnaryUnaryMultiCallable[
|
|
199
|
+
_service_pb2.CreatePortalSessionRequest,
|
|
200
|
+
_service_pb2.CreatePortalSessionResponse,
|
|
201
|
+
] # type: ignore[assignment]
|
|
241
202
|
"""Customer Portal
|
|
242
203
|
|
|
243
204
|
Create Stripe customer portal session
|
|
244
205
|
"""
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
weaveapi.payment.v1.service_pb2.GetPricingPlansResponse,
|
|
249
|
-
]
|
|
206
|
+
GetPricingPlans: _aio.UnaryUnaryMultiCallable[
|
|
207
|
+
_service_pb2.GetPricingPlansRequest, _service_pb2.GetPricingPlansResponse
|
|
208
|
+
] # type: ignore[assignment]
|
|
250
209
|
"""Pricing & Plans
|
|
251
210
|
|
|
252
211
|
Get available pricing plans
|
|
253
212
|
"""
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse,
|
|
258
|
-
]
|
|
213
|
+
ApplyPromoCode: _aio.UnaryUnaryMultiCallable[
|
|
214
|
+
_service_pb2.ApplyPromoCodeRequest, _service_pb2.ApplyPromoCodeResponse
|
|
215
|
+
] # type: ignore[assignment]
|
|
259
216
|
"""Apply promo code"""
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
]
|
|
217
|
+
HandleStripeWebhook: _aio.UnaryUnaryMultiCallable[
|
|
218
|
+
_service_pb2.HandleStripeWebhookRequest,
|
|
219
|
+
_service_pb2.HandleStripeWebhookResponse,
|
|
220
|
+
] # type: ignore[assignment]
|
|
265
221
|
"""Webhooks
|
|
266
222
|
|
|
267
223
|
Handle Stripe webhook events
|
|
268
224
|
"""
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse,
|
|
273
|
-
]
|
|
225
|
+
GetUsageSummary: _aio.UnaryUnaryMultiCallable[
|
|
226
|
+
_service_pb2.GetUsageSummaryRequest, _service_pb2.GetUsageSummaryResponse
|
|
227
|
+
] # type: ignore[assignment]
|
|
274
228
|
"""Usage & Credits
|
|
275
229
|
|
|
276
230
|
Get usage summary for billing period
|
|
277
231
|
"""
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse,
|
|
282
|
-
]
|
|
232
|
+
GetCreditBalance: _aio.UnaryUnaryMultiCallable[
|
|
233
|
+
_service_pb2.GetCreditBalanceRequest, _service_pb2.GetCreditBalanceResponse
|
|
234
|
+
] # type: ignore[assignment]
|
|
283
235
|
"""Get credit balance (if applicable)"""
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse,
|
|
288
|
-
]
|
|
236
|
+
UpdateTaxInfo: _aio.UnaryUnaryMultiCallable[
|
|
237
|
+
_service_pb2.UpdateTaxInfoRequest, _service_pb2.UpdateTaxInfoResponse
|
|
238
|
+
] # type: ignore[assignment]
|
|
289
239
|
"""Tax & Compliance
|
|
290
240
|
|
|
291
241
|
Update tax information
|
|
292
242
|
"""
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse,
|
|
297
|
-
]
|
|
243
|
+
DownloadInvoice: _aio.UnaryUnaryMultiCallable[
|
|
244
|
+
_service_pb2.DownloadInvoiceRequest, _service_pb2.DownloadInvoiceResponse
|
|
245
|
+
] # type: ignore[assignment]
|
|
298
246
|
"""Download invoice PDF"""
|
|
299
247
|
|
|
300
|
-
class PaymentServicer(metaclass=
|
|
248
|
+
class PaymentServicer(metaclass=_abc_1.ABCMeta):
|
|
301
249
|
"""PaymentService handles subscription management and payment processing
|
|
302
250
|
Subscription management
|
|
303
251
|
"""
|
|
304
252
|
|
|
305
|
-
@
|
|
253
|
+
@_abc_1.abstractmethod
|
|
306
254
|
def CreateCheckoutSession(
|
|
307
255
|
self,
|
|
308
|
-
request:
|
|
256
|
+
request: _service_pb2.CreateCheckoutSessionRequest,
|
|
309
257
|
context: _ServicerContext,
|
|
310
|
-
) ->
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
weaveapi.payment.v1.service_pb2.CreateCheckoutSessionResponse
|
|
314
|
-
],
|
|
258
|
+
) -> _typing.Union[
|
|
259
|
+
_service_pb2.CreateCheckoutSessionResponse,
|
|
260
|
+
_abc.Awaitable[_service_pb2.CreateCheckoutSessionResponse],
|
|
315
261
|
]:
|
|
316
262
|
"""Create a Stripe checkout session for subscription"""
|
|
317
263
|
|
|
318
|
-
@
|
|
264
|
+
@_abc_1.abstractmethod
|
|
319
265
|
def GetSubscriptionStatus(
|
|
320
266
|
self,
|
|
321
|
-
request:
|
|
267
|
+
request: _service_pb2.GetSubscriptionStatusRequest,
|
|
322
268
|
context: _ServicerContext,
|
|
323
|
-
) ->
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
weaveapi.payment.v1.service_pb2.GetSubscriptionStatusResponse
|
|
327
|
-
],
|
|
269
|
+
) -> _typing.Union[
|
|
270
|
+
_service_pb2.GetSubscriptionStatusResponse,
|
|
271
|
+
_abc.Awaitable[_service_pb2.GetSubscriptionStatusResponse],
|
|
328
272
|
]:
|
|
329
273
|
"""Get current subscription status"""
|
|
330
274
|
|
|
331
|
-
@
|
|
275
|
+
@_abc_1.abstractmethod
|
|
332
276
|
def UpdateSubscription(
|
|
333
277
|
self,
|
|
334
|
-
request:
|
|
278
|
+
request: _service_pb2.UpdateSubscriptionRequest,
|
|
335
279
|
context: _ServicerContext,
|
|
336
|
-
) ->
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
weaveapi.payment.v1.service_pb2.UpdateSubscriptionResponse
|
|
340
|
-
],
|
|
280
|
+
) -> _typing.Union[
|
|
281
|
+
_service_pb2.UpdateSubscriptionResponse,
|
|
282
|
+
_abc.Awaitable[_service_pb2.UpdateSubscriptionResponse],
|
|
341
283
|
]:
|
|
342
284
|
"""Update subscription (change payment method, etc)"""
|
|
343
285
|
|
|
344
|
-
@
|
|
286
|
+
@_abc_1.abstractmethod
|
|
345
287
|
def CancelSubscription(
|
|
346
288
|
self,
|
|
347
|
-
request:
|
|
289
|
+
request: _service_pb2.CancelSubscriptionRequest,
|
|
348
290
|
context: _ServicerContext,
|
|
349
|
-
) ->
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
weaveapi.payment.v1.service_pb2.CancelSubscriptionResponse
|
|
353
|
-
],
|
|
291
|
+
) -> _typing.Union[
|
|
292
|
+
_service_pb2.CancelSubscriptionResponse,
|
|
293
|
+
_abc.Awaitable[_service_pb2.CancelSubscriptionResponse],
|
|
354
294
|
]:
|
|
355
295
|
"""Cancel subscription"""
|
|
356
296
|
|
|
357
|
-
@
|
|
297
|
+
@_abc_1.abstractmethod
|
|
358
298
|
def ResumeSubscription(
|
|
359
299
|
self,
|
|
360
|
-
request:
|
|
300
|
+
request: _service_pb2.ResumeSubscriptionRequest,
|
|
361
301
|
context: _ServicerContext,
|
|
362
|
-
) ->
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
weaveapi.payment.v1.service_pb2.ResumeSubscriptionResponse
|
|
366
|
-
],
|
|
302
|
+
) -> _typing.Union[
|
|
303
|
+
_service_pb2.ResumeSubscriptionResponse,
|
|
304
|
+
_abc.Awaitable[_service_pb2.ResumeSubscriptionResponse],
|
|
367
305
|
]:
|
|
368
306
|
"""Resume cancelled subscription"""
|
|
369
307
|
|
|
370
|
-
@
|
|
308
|
+
@_abc_1.abstractmethod
|
|
371
309
|
def GetBillingHistory(
|
|
372
310
|
self,
|
|
373
|
-
request:
|
|
311
|
+
request: _service_pb2.GetBillingHistoryRequest,
|
|
374
312
|
context: _ServicerContext,
|
|
375
|
-
) ->
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
weaveapi.payment.v1.service_pb2.GetBillingHistoryResponse
|
|
379
|
-
],
|
|
313
|
+
) -> _typing.Union[
|
|
314
|
+
_service_pb2.GetBillingHistoryResponse,
|
|
315
|
+
_abc.Awaitable[_service_pb2.GetBillingHistoryResponse],
|
|
380
316
|
]:
|
|
381
317
|
"""Billing & Payment Methods
|
|
382
318
|
|
|
383
319
|
Get billing history
|
|
384
320
|
"""
|
|
385
321
|
|
|
386
|
-
@
|
|
322
|
+
@_abc_1.abstractmethod
|
|
387
323
|
def GetUpcomingInvoice(
|
|
388
324
|
self,
|
|
389
|
-
request:
|
|
325
|
+
request: _service_pb2.GetUpcomingInvoiceRequest,
|
|
390
326
|
context: _ServicerContext,
|
|
391
|
-
) ->
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
weaveapi.payment.v1.service_pb2.GetUpcomingInvoiceResponse
|
|
395
|
-
],
|
|
327
|
+
) -> _typing.Union[
|
|
328
|
+
_service_pb2.GetUpcomingInvoiceResponse,
|
|
329
|
+
_abc.Awaitable[_service_pb2.GetUpcomingInvoiceResponse],
|
|
396
330
|
]:
|
|
397
331
|
"""Get upcoming invoice preview"""
|
|
398
332
|
|
|
399
|
-
@
|
|
333
|
+
@_abc_1.abstractmethod
|
|
400
334
|
def ListPaymentMethods(
|
|
401
335
|
self,
|
|
402
|
-
request:
|
|
336
|
+
request: _service_pb2.ListPaymentMethodsRequest,
|
|
403
337
|
context: _ServicerContext,
|
|
404
|
-
) ->
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
weaveapi.payment.v1.service_pb2.ListPaymentMethodsResponse
|
|
408
|
-
],
|
|
338
|
+
) -> _typing.Union[
|
|
339
|
+
_service_pb2.ListPaymentMethodsResponse,
|
|
340
|
+
_abc.Awaitable[_service_pb2.ListPaymentMethodsResponse],
|
|
409
341
|
]:
|
|
410
342
|
"""List payment methods"""
|
|
411
343
|
|
|
412
|
-
@
|
|
344
|
+
@_abc_1.abstractmethod
|
|
413
345
|
def AddPaymentMethod(
|
|
414
346
|
self,
|
|
415
|
-
request:
|
|
347
|
+
request: _service_pb2.AddPaymentMethodRequest,
|
|
416
348
|
context: _ServicerContext,
|
|
417
|
-
) ->
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
weaveapi.payment.v1.service_pb2.AddPaymentMethodResponse
|
|
421
|
-
],
|
|
349
|
+
) -> _typing.Union[
|
|
350
|
+
_service_pb2.AddPaymentMethodResponse,
|
|
351
|
+
_abc.Awaitable[_service_pb2.AddPaymentMethodResponse],
|
|
422
352
|
]:
|
|
423
353
|
"""Add payment method"""
|
|
424
354
|
|
|
425
|
-
@
|
|
355
|
+
@_abc_1.abstractmethod
|
|
426
356
|
def SetDefaultPaymentMethod(
|
|
427
357
|
self,
|
|
428
|
-
request:
|
|
358
|
+
request: _service_pb2.SetDefaultPaymentMethodRequest,
|
|
429
359
|
context: _ServicerContext,
|
|
430
|
-
) ->
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
weaveapi.payment.v1.service_pb2.SetDefaultPaymentMethodResponse
|
|
434
|
-
],
|
|
360
|
+
) -> _typing.Union[
|
|
361
|
+
_service_pb2.SetDefaultPaymentMethodResponse,
|
|
362
|
+
_abc.Awaitable[_service_pb2.SetDefaultPaymentMethodResponse],
|
|
435
363
|
]:
|
|
436
364
|
"""Set default payment method"""
|
|
437
365
|
|
|
438
|
-
@
|
|
366
|
+
@_abc_1.abstractmethod
|
|
439
367
|
def RemovePaymentMethod(
|
|
440
368
|
self,
|
|
441
|
-
request:
|
|
369
|
+
request: _service_pb2.RemovePaymentMethodRequest,
|
|
442
370
|
context: _ServicerContext,
|
|
443
|
-
) ->
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
weaveapi.payment.v1.service_pb2.RemovePaymentMethodResponse
|
|
447
|
-
],
|
|
371
|
+
) -> _typing.Union[
|
|
372
|
+
_service_pb2.RemovePaymentMethodResponse,
|
|
373
|
+
_abc.Awaitable[_service_pb2.RemovePaymentMethodResponse],
|
|
448
374
|
]:
|
|
449
375
|
"""Remove payment method"""
|
|
450
376
|
|
|
451
|
-
@
|
|
377
|
+
@_abc_1.abstractmethod
|
|
452
378
|
def CreatePortalSession(
|
|
453
379
|
self,
|
|
454
|
-
request:
|
|
380
|
+
request: _service_pb2.CreatePortalSessionRequest,
|
|
455
381
|
context: _ServicerContext,
|
|
456
|
-
) ->
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
weaveapi.payment.v1.service_pb2.CreatePortalSessionResponse
|
|
460
|
-
],
|
|
382
|
+
) -> _typing.Union[
|
|
383
|
+
_service_pb2.CreatePortalSessionResponse,
|
|
384
|
+
_abc.Awaitable[_service_pb2.CreatePortalSessionResponse],
|
|
461
385
|
]:
|
|
462
386
|
"""Customer Portal
|
|
463
387
|
|
|
464
388
|
Create Stripe customer portal session
|
|
465
389
|
"""
|
|
466
390
|
|
|
467
|
-
@
|
|
391
|
+
@_abc_1.abstractmethod
|
|
468
392
|
def GetPricingPlans(
|
|
469
393
|
self,
|
|
470
|
-
request:
|
|
394
|
+
request: _service_pb2.GetPricingPlansRequest,
|
|
471
395
|
context: _ServicerContext,
|
|
472
|
-
) ->
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
weaveapi.payment.v1.service_pb2.GetPricingPlansResponse
|
|
476
|
-
],
|
|
396
|
+
) -> _typing.Union[
|
|
397
|
+
_service_pb2.GetPricingPlansResponse,
|
|
398
|
+
_abc.Awaitable[_service_pb2.GetPricingPlansResponse],
|
|
477
399
|
]:
|
|
478
400
|
"""Pricing & Plans
|
|
479
401
|
|
|
480
402
|
Get available pricing plans
|
|
481
403
|
"""
|
|
482
404
|
|
|
483
|
-
@
|
|
405
|
+
@_abc_1.abstractmethod
|
|
484
406
|
def ApplyPromoCode(
|
|
485
407
|
self,
|
|
486
|
-
request:
|
|
408
|
+
request: _service_pb2.ApplyPromoCodeRequest,
|
|
487
409
|
context: _ServicerContext,
|
|
488
|
-
) ->
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
weaveapi.payment.v1.service_pb2.ApplyPromoCodeResponse
|
|
492
|
-
],
|
|
410
|
+
) -> _typing.Union[
|
|
411
|
+
_service_pb2.ApplyPromoCodeResponse,
|
|
412
|
+
_abc.Awaitable[_service_pb2.ApplyPromoCodeResponse],
|
|
493
413
|
]:
|
|
494
414
|
"""Apply promo code"""
|
|
495
415
|
|
|
496
|
-
@
|
|
416
|
+
@_abc_1.abstractmethod
|
|
497
417
|
def HandleStripeWebhook(
|
|
498
418
|
self,
|
|
499
|
-
request:
|
|
419
|
+
request: _service_pb2.HandleStripeWebhookRequest,
|
|
500
420
|
context: _ServicerContext,
|
|
501
|
-
) ->
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
weaveapi.payment.v1.service_pb2.HandleStripeWebhookResponse
|
|
505
|
-
],
|
|
421
|
+
) -> _typing.Union[
|
|
422
|
+
_service_pb2.HandleStripeWebhookResponse,
|
|
423
|
+
_abc.Awaitable[_service_pb2.HandleStripeWebhookResponse],
|
|
506
424
|
]:
|
|
507
425
|
"""Webhooks
|
|
508
426
|
|
|
509
427
|
Handle Stripe webhook events
|
|
510
428
|
"""
|
|
511
429
|
|
|
512
|
-
@
|
|
430
|
+
@_abc_1.abstractmethod
|
|
513
431
|
def GetUsageSummary(
|
|
514
432
|
self,
|
|
515
|
-
request:
|
|
433
|
+
request: _service_pb2.GetUsageSummaryRequest,
|
|
516
434
|
context: _ServicerContext,
|
|
517
|
-
) ->
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
weaveapi.payment.v1.service_pb2.GetUsageSummaryResponse
|
|
521
|
-
],
|
|
435
|
+
) -> _typing.Union[
|
|
436
|
+
_service_pb2.GetUsageSummaryResponse,
|
|
437
|
+
_abc.Awaitable[_service_pb2.GetUsageSummaryResponse],
|
|
522
438
|
]:
|
|
523
439
|
"""Usage & Credits
|
|
524
440
|
|
|
525
441
|
Get usage summary for billing period
|
|
526
442
|
"""
|
|
527
443
|
|
|
528
|
-
@
|
|
444
|
+
@_abc_1.abstractmethod
|
|
529
445
|
def GetCreditBalance(
|
|
530
446
|
self,
|
|
531
|
-
request:
|
|
447
|
+
request: _service_pb2.GetCreditBalanceRequest,
|
|
532
448
|
context: _ServicerContext,
|
|
533
|
-
) ->
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
weaveapi.payment.v1.service_pb2.GetCreditBalanceResponse
|
|
537
|
-
],
|
|
449
|
+
) -> _typing.Union[
|
|
450
|
+
_service_pb2.GetCreditBalanceResponse,
|
|
451
|
+
_abc.Awaitable[_service_pb2.GetCreditBalanceResponse],
|
|
538
452
|
]:
|
|
539
453
|
"""Get credit balance (if applicable)"""
|
|
540
454
|
|
|
541
|
-
@
|
|
455
|
+
@_abc_1.abstractmethod
|
|
542
456
|
def UpdateTaxInfo(
|
|
543
457
|
self,
|
|
544
|
-
request:
|
|
458
|
+
request: _service_pb2.UpdateTaxInfoRequest,
|
|
545
459
|
context: _ServicerContext,
|
|
546
|
-
) ->
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
weaveapi.payment.v1.service_pb2.UpdateTaxInfoResponse
|
|
550
|
-
],
|
|
460
|
+
) -> _typing.Union[
|
|
461
|
+
_service_pb2.UpdateTaxInfoResponse,
|
|
462
|
+
_abc.Awaitable[_service_pb2.UpdateTaxInfoResponse],
|
|
551
463
|
]:
|
|
552
464
|
"""Tax & Compliance
|
|
553
465
|
|
|
554
466
|
Update tax information
|
|
555
467
|
"""
|
|
556
468
|
|
|
557
|
-
@
|
|
469
|
+
@_abc_1.abstractmethod
|
|
558
470
|
def DownloadInvoice(
|
|
559
471
|
self,
|
|
560
|
-
request:
|
|
472
|
+
request: _service_pb2.DownloadInvoiceRequest,
|
|
561
473
|
context: _ServicerContext,
|
|
562
|
-
) ->
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
weaveapi.payment.v1.service_pb2.DownloadInvoiceResponse
|
|
566
|
-
],
|
|
474
|
+
) -> _typing.Union[
|
|
475
|
+
_service_pb2.DownloadInvoiceResponse,
|
|
476
|
+
_abc.Awaitable[_service_pb2.DownloadInvoiceResponse],
|
|
567
477
|
]:
|
|
568
478
|
"""Download invoice PDF"""
|
|
569
479
|
|
|
570
480
|
def add_PaymentServicer_to_server(
|
|
571
|
-
servicer: PaymentServicer, server:
|
|
481
|
+
servicer: PaymentServicer, server: _typing.Union[_grpc.Server, _aio.Server]
|
|
572
482
|
) -> None: ...
|