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,347 +3,408 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import
|
|
6
|
+
from collections import abc as _abc
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
10
|
+
from google.protobuf.internal import containers as _containers
|
|
11
|
+
from weaveapi.payment.v1 import subscription_pb2 as _subscription_pb2
|
|
12
|
+
import builtins as _builtins
|
|
13
|
+
import sys
|
|
14
|
+
import typing as _typing
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
from typing import TypeAlias as _TypeAlias
|
|
18
|
+
else:
|
|
19
|
+
from typing_extensions import TypeAlias as _TypeAlias
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
class Invoice(google.protobuf.message.Message):
|
|
19
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
21
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
@_typing.final
|
|
24
|
+
class Invoice(_message.Message):
|
|
25
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
@_typing.final
|
|
28
|
+
class MetadataEntry(_message.Message):
|
|
29
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
30
|
+
|
|
31
|
+
KEY_FIELD_NUMBER: _builtins.int
|
|
32
|
+
VALUE_FIELD_NUMBER: _builtins.int
|
|
33
|
+
key: _builtins.str
|
|
34
|
+
value: _builtins.str
|
|
29
35
|
def __init__(
|
|
30
36
|
self,
|
|
31
37
|
*,
|
|
32
|
-
key:
|
|
33
|
-
value:
|
|
34
|
-
) -> None: ...
|
|
35
|
-
def ClearField(
|
|
36
|
-
self, field_name: typing.Literal["key", b"key", "value", b"value"]
|
|
38
|
+
key: _builtins.str | None = ...,
|
|
39
|
+
value: _builtins.str | None = ...,
|
|
37
40
|
) -> None: ...
|
|
41
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
|
|
42
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
43
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
44
|
+
"key", b"key", "value", b"value"
|
|
45
|
+
] # noqa: Y015
|
|
46
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
38
47
|
|
|
39
|
-
ID_FIELD_NUMBER:
|
|
40
|
-
NUMBER_FIELD_NUMBER:
|
|
41
|
-
STATUS_FIELD_NUMBER:
|
|
42
|
-
SUBTOTAL_CENTS_FIELD_NUMBER:
|
|
43
|
-
TAX_CENTS_FIELD_NUMBER:
|
|
44
|
-
TOTAL_CENTS_FIELD_NUMBER:
|
|
45
|
-
AMOUNT_PAID_CENTS_FIELD_NUMBER:
|
|
46
|
-
AMOUNT_DUE_CENTS_FIELD_NUMBER:
|
|
47
|
-
CURRENCY_FIELD_NUMBER:
|
|
48
|
-
CREATED_AT_FIELD_NUMBER:
|
|
49
|
-
PERIOD_START_FIELD_NUMBER:
|
|
50
|
-
PERIOD_END_FIELD_NUMBER:
|
|
51
|
-
DUE_DATE_FIELD_NUMBER:
|
|
52
|
-
PAID_AT_FIELD_NUMBER:
|
|
53
|
-
LINE_ITEMS_FIELD_NUMBER:
|
|
54
|
-
PAYMENT_METHOD_FIELD_NUMBER:
|
|
55
|
-
PAYMENT_INTENT_ID_FIELD_NUMBER:
|
|
56
|
-
PDF_URL_FIELD_NUMBER:
|
|
57
|
-
HOSTED_INVOICE_URL_FIELD_NUMBER:
|
|
58
|
-
DISCOUNT_FIELD_NUMBER:
|
|
59
|
-
TAX_RATES_FIELD_NUMBER:
|
|
60
|
-
TAX_ID_FIELD_NUMBER:
|
|
61
|
-
METADATA_FIELD_NUMBER:
|
|
62
|
-
id:
|
|
48
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
49
|
+
NUMBER_FIELD_NUMBER: _builtins.int
|
|
50
|
+
STATUS_FIELD_NUMBER: _builtins.int
|
|
51
|
+
SUBTOTAL_CENTS_FIELD_NUMBER: _builtins.int
|
|
52
|
+
TAX_CENTS_FIELD_NUMBER: _builtins.int
|
|
53
|
+
TOTAL_CENTS_FIELD_NUMBER: _builtins.int
|
|
54
|
+
AMOUNT_PAID_CENTS_FIELD_NUMBER: _builtins.int
|
|
55
|
+
AMOUNT_DUE_CENTS_FIELD_NUMBER: _builtins.int
|
|
56
|
+
CURRENCY_FIELD_NUMBER: _builtins.int
|
|
57
|
+
CREATED_AT_FIELD_NUMBER: _builtins.int
|
|
58
|
+
PERIOD_START_FIELD_NUMBER: _builtins.int
|
|
59
|
+
PERIOD_END_FIELD_NUMBER: _builtins.int
|
|
60
|
+
DUE_DATE_FIELD_NUMBER: _builtins.int
|
|
61
|
+
PAID_AT_FIELD_NUMBER: _builtins.int
|
|
62
|
+
LINE_ITEMS_FIELD_NUMBER: _builtins.int
|
|
63
|
+
PAYMENT_METHOD_FIELD_NUMBER: _builtins.int
|
|
64
|
+
PAYMENT_INTENT_ID_FIELD_NUMBER: _builtins.int
|
|
65
|
+
PDF_URL_FIELD_NUMBER: _builtins.int
|
|
66
|
+
HOSTED_INVOICE_URL_FIELD_NUMBER: _builtins.int
|
|
67
|
+
DISCOUNT_FIELD_NUMBER: _builtins.int
|
|
68
|
+
TAX_RATES_FIELD_NUMBER: _builtins.int
|
|
69
|
+
TAX_ID_FIELD_NUMBER: _builtins.int
|
|
70
|
+
METADATA_FIELD_NUMBER: _builtins.int
|
|
71
|
+
id: _builtins.str
|
|
63
72
|
"""Stripe invoice ID"""
|
|
64
|
-
number:
|
|
73
|
+
number: _builtins.str
|
|
65
74
|
"""Invoice number"""
|
|
66
|
-
status:
|
|
75
|
+
status: _builtins.str
|
|
67
76
|
"""draft, open, paid, void, uncollectible"""
|
|
68
|
-
subtotal_cents:
|
|
77
|
+
subtotal_cents: _builtins.int
|
|
69
78
|
"""Amounts"""
|
|
70
|
-
tax_cents:
|
|
71
|
-
total_cents:
|
|
72
|
-
amount_paid_cents:
|
|
73
|
-
amount_due_cents:
|
|
74
|
-
currency:
|
|
75
|
-
payment_intent_id:
|
|
76
|
-
pdf_url:
|
|
79
|
+
tax_cents: _builtins.int
|
|
80
|
+
total_cents: _builtins.int
|
|
81
|
+
amount_paid_cents: _builtins.int
|
|
82
|
+
amount_due_cents: _builtins.int
|
|
83
|
+
currency: _builtins.str
|
|
84
|
+
payment_intent_id: _builtins.str
|
|
85
|
+
pdf_url: _builtins.str
|
|
77
86
|
"""Files"""
|
|
78
|
-
hosted_invoice_url:
|
|
79
|
-
tax_id:
|
|
80
|
-
@property
|
|
81
|
-
def created_at(self) ->
|
|
87
|
+
hosted_invoice_url: _builtins.str
|
|
88
|
+
tax_id: _builtins.str
|
|
89
|
+
@_builtins.property
|
|
90
|
+
def created_at(self) -> _timestamp_pb2.Timestamp:
|
|
82
91
|
"""Dates"""
|
|
83
92
|
|
|
84
|
-
@property
|
|
85
|
-
def period_start(self) ->
|
|
86
|
-
@property
|
|
87
|
-
def period_end(self) ->
|
|
88
|
-
@property
|
|
89
|
-
def due_date(self) ->
|
|
90
|
-
@property
|
|
91
|
-
def paid_at(self) ->
|
|
92
|
-
@property
|
|
93
|
+
@_builtins.property
|
|
94
|
+
def period_start(self) -> _timestamp_pb2.Timestamp: ...
|
|
95
|
+
@_builtins.property
|
|
96
|
+
def period_end(self) -> _timestamp_pb2.Timestamp: ...
|
|
97
|
+
@_builtins.property
|
|
98
|
+
def due_date(self) -> _timestamp_pb2.Timestamp: ...
|
|
99
|
+
@_builtins.property
|
|
100
|
+
def paid_at(self) -> _timestamp_pb2.Timestamp: ...
|
|
101
|
+
@_builtins.property
|
|
93
102
|
def line_items(
|
|
94
103
|
self,
|
|
95
|
-
) ->
|
|
96
|
-
global___InvoiceLineItem
|
|
97
|
-
]:
|
|
104
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___InvoiceLineItem]:
|
|
98
105
|
"""Line items"""
|
|
99
106
|
|
|
100
|
-
@property
|
|
101
|
-
def payment_method(self) ->
|
|
107
|
+
@_builtins.property
|
|
108
|
+
def payment_method(self) -> _subscription_pb2.PaymentMethod:
|
|
102
109
|
"""Payment"""
|
|
103
110
|
|
|
104
|
-
@property
|
|
105
|
-
def discount(self) ->
|
|
111
|
+
@_builtins.property
|
|
112
|
+
def discount(self) -> _subscription_pb2.Discount:
|
|
106
113
|
"""Discount"""
|
|
107
114
|
|
|
108
|
-
@property
|
|
115
|
+
@_builtins.property
|
|
109
116
|
def tax_rates(
|
|
110
117
|
self,
|
|
111
|
-
) ->
|
|
112
|
-
global___TaxRate
|
|
113
|
-
]:
|
|
118
|
+
) -> _containers.RepeatedCompositeFieldContainer[Global___TaxRate]:
|
|
114
119
|
"""Tax"""
|
|
115
120
|
|
|
116
|
-
@property
|
|
117
|
-
def metadata(
|
|
118
|
-
self,
|
|
119
|
-
) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
|
|
121
|
+
@_builtins.property
|
|
122
|
+
def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]:
|
|
120
123
|
"""Metadata"""
|
|
121
124
|
|
|
122
125
|
def __init__(
|
|
123
126
|
self,
|
|
124
127
|
*,
|
|
125
|
-
id:
|
|
126
|
-
number:
|
|
127
|
-
status:
|
|
128
|
-
subtotal_cents:
|
|
129
|
-
tax_cents:
|
|
130
|
-
total_cents:
|
|
131
|
-
amount_paid_cents:
|
|
132
|
-
amount_due_cents:
|
|
133
|
-
currency:
|
|
134
|
-
created_at:
|
|
135
|
-
period_start:
|
|
136
|
-
period_end:
|
|
137
|
-
due_date:
|
|
138
|
-
paid_at:
|
|
139
|
-
line_items:
|
|
140
|
-
payment_method:
|
|
141
|
-
payment_intent_id:
|
|
142
|
-
pdf_url:
|
|
143
|
-
hosted_invoice_url:
|
|
144
|
-
discount:
|
|
145
|
-
tax_rates:
|
|
146
|
-
tax_id:
|
|
147
|
-
metadata:
|
|
148
|
-
) -> None: ...
|
|
149
|
-
def HasField(
|
|
150
|
-
self,
|
|
151
|
-
field_name: typing.Literal[
|
|
152
|
-
"created_at",
|
|
153
|
-
b"created_at",
|
|
154
|
-
"discount",
|
|
155
|
-
b"discount",
|
|
156
|
-
"due_date",
|
|
157
|
-
b"due_date",
|
|
158
|
-
"paid_at",
|
|
159
|
-
b"paid_at",
|
|
160
|
-
"payment_method",
|
|
161
|
-
b"payment_method",
|
|
162
|
-
"period_end",
|
|
163
|
-
b"period_end",
|
|
164
|
-
"period_start",
|
|
165
|
-
b"period_start",
|
|
166
|
-
],
|
|
167
|
-
) -> builtins.bool: ...
|
|
168
|
-
def ClearField(
|
|
169
|
-
self,
|
|
170
|
-
field_name: typing.Literal[
|
|
171
|
-
"amount_due_cents",
|
|
172
|
-
b"amount_due_cents",
|
|
173
|
-
"amount_paid_cents",
|
|
174
|
-
b"amount_paid_cents",
|
|
175
|
-
"created_at",
|
|
176
|
-
b"created_at",
|
|
177
|
-
"currency",
|
|
178
|
-
b"currency",
|
|
179
|
-
"discount",
|
|
180
|
-
b"discount",
|
|
181
|
-
"due_date",
|
|
182
|
-
b"due_date",
|
|
183
|
-
"hosted_invoice_url",
|
|
184
|
-
b"hosted_invoice_url",
|
|
185
|
-
"id",
|
|
186
|
-
b"id",
|
|
187
|
-
"line_items",
|
|
188
|
-
b"line_items",
|
|
189
|
-
"metadata",
|
|
190
|
-
b"metadata",
|
|
191
|
-
"number",
|
|
192
|
-
b"number",
|
|
193
|
-
"paid_at",
|
|
194
|
-
b"paid_at",
|
|
195
|
-
"payment_intent_id",
|
|
196
|
-
b"payment_intent_id",
|
|
197
|
-
"payment_method",
|
|
198
|
-
b"payment_method",
|
|
199
|
-
"pdf_url",
|
|
200
|
-
b"pdf_url",
|
|
201
|
-
"period_end",
|
|
202
|
-
b"period_end",
|
|
203
|
-
"period_start",
|
|
204
|
-
b"period_start",
|
|
205
|
-
"status",
|
|
206
|
-
b"status",
|
|
207
|
-
"subtotal_cents",
|
|
208
|
-
b"subtotal_cents",
|
|
209
|
-
"tax_cents",
|
|
210
|
-
b"tax_cents",
|
|
211
|
-
"tax_id",
|
|
212
|
-
b"tax_id",
|
|
213
|
-
"tax_rates",
|
|
214
|
-
b"tax_rates",
|
|
215
|
-
"total_cents",
|
|
216
|
-
b"total_cents",
|
|
217
|
-
],
|
|
128
|
+
id: _builtins.str | None = ...,
|
|
129
|
+
number: _builtins.str | None = ...,
|
|
130
|
+
status: _builtins.str | None = ...,
|
|
131
|
+
subtotal_cents: _builtins.int | None = ...,
|
|
132
|
+
tax_cents: _builtins.int | None = ...,
|
|
133
|
+
total_cents: _builtins.int | None = ...,
|
|
134
|
+
amount_paid_cents: _builtins.int | None = ...,
|
|
135
|
+
amount_due_cents: _builtins.int | None = ...,
|
|
136
|
+
currency: _builtins.str | None = ...,
|
|
137
|
+
created_at: _timestamp_pb2.Timestamp | None = ...,
|
|
138
|
+
period_start: _timestamp_pb2.Timestamp | None = ...,
|
|
139
|
+
period_end: _timestamp_pb2.Timestamp | None = ...,
|
|
140
|
+
due_date: _timestamp_pb2.Timestamp | None = ...,
|
|
141
|
+
paid_at: _timestamp_pb2.Timestamp | None = ...,
|
|
142
|
+
line_items: _abc.Iterable[Global___InvoiceLineItem] | None = ...,
|
|
143
|
+
payment_method: _subscription_pb2.PaymentMethod | None = ...,
|
|
144
|
+
payment_intent_id: _builtins.str | None = ...,
|
|
145
|
+
pdf_url: _builtins.str | None = ...,
|
|
146
|
+
hosted_invoice_url: _builtins.str | None = ...,
|
|
147
|
+
discount: _subscription_pb2.Discount | None = ...,
|
|
148
|
+
tax_rates: _abc.Iterable[Global___TaxRate] | None = ...,
|
|
149
|
+
tax_id: _builtins.str | None = ...,
|
|
150
|
+
metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
|
|
218
151
|
) -> None: ...
|
|
152
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
153
|
+
"amount_due_cents",
|
|
154
|
+
b"amount_due_cents",
|
|
155
|
+
"amount_paid_cents",
|
|
156
|
+
b"amount_paid_cents",
|
|
157
|
+
"created_at",
|
|
158
|
+
b"created_at",
|
|
159
|
+
"currency",
|
|
160
|
+
b"currency",
|
|
161
|
+
"discount",
|
|
162
|
+
b"discount",
|
|
163
|
+
"due_date",
|
|
164
|
+
b"due_date",
|
|
165
|
+
"hosted_invoice_url",
|
|
166
|
+
b"hosted_invoice_url",
|
|
167
|
+
"id",
|
|
168
|
+
b"id",
|
|
169
|
+
"line_items",
|
|
170
|
+
b"line_items",
|
|
171
|
+
"metadata",
|
|
172
|
+
b"metadata",
|
|
173
|
+
"number",
|
|
174
|
+
b"number",
|
|
175
|
+
"paid_at",
|
|
176
|
+
b"paid_at",
|
|
177
|
+
"payment_intent_id",
|
|
178
|
+
b"payment_intent_id",
|
|
179
|
+
"payment_method",
|
|
180
|
+
b"payment_method",
|
|
181
|
+
"pdf_url",
|
|
182
|
+
b"pdf_url",
|
|
183
|
+
"period_end",
|
|
184
|
+
b"period_end",
|
|
185
|
+
"period_start",
|
|
186
|
+
b"period_start",
|
|
187
|
+
"status",
|
|
188
|
+
b"status",
|
|
189
|
+
"subtotal_cents",
|
|
190
|
+
b"subtotal_cents",
|
|
191
|
+
"tax_cents",
|
|
192
|
+
b"tax_cents",
|
|
193
|
+
"tax_id",
|
|
194
|
+
b"tax_id",
|
|
195
|
+
"tax_rates",
|
|
196
|
+
b"tax_rates",
|
|
197
|
+
"total_cents",
|
|
198
|
+
b"total_cents",
|
|
199
|
+
] # noqa: Y015
|
|
200
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
201
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
202
|
+
"amount_due_cents",
|
|
203
|
+
b"amount_due_cents",
|
|
204
|
+
"amount_paid_cents",
|
|
205
|
+
b"amount_paid_cents",
|
|
206
|
+
"created_at",
|
|
207
|
+
b"created_at",
|
|
208
|
+
"currency",
|
|
209
|
+
b"currency",
|
|
210
|
+
"discount",
|
|
211
|
+
b"discount",
|
|
212
|
+
"due_date",
|
|
213
|
+
b"due_date",
|
|
214
|
+
"hosted_invoice_url",
|
|
215
|
+
b"hosted_invoice_url",
|
|
216
|
+
"id",
|
|
217
|
+
b"id",
|
|
218
|
+
"line_items",
|
|
219
|
+
b"line_items",
|
|
220
|
+
"metadata",
|
|
221
|
+
b"metadata",
|
|
222
|
+
"number",
|
|
223
|
+
b"number",
|
|
224
|
+
"paid_at",
|
|
225
|
+
b"paid_at",
|
|
226
|
+
"payment_intent_id",
|
|
227
|
+
b"payment_intent_id",
|
|
228
|
+
"payment_method",
|
|
229
|
+
b"payment_method",
|
|
230
|
+
"pdf_url",
|
|
231
|
+
b"pdf_url",
|
|
232
|
+
"period_end",
|
|
233
|
+
b"period_end",
|
|
234
|
+
"period_start",
|
|
235
|
+
b"period_start",
|
|
236
|
+
"status",
|
|
237
|
+
b"status",
|
|
238
|
+
"subtotal_cents",
|
|
239
|
+
b"subtotal_cents",
|
|
240
|
+
"tax_cents",
|
|
241
|
+
b"tax_cents",
|
|
242
|
+
"tax_id",
|
|
243
|
+
b"tax_id",
|
|
244
|
+
"tax_rates",
|
|
245
|
+
b"tax_rates",
|
|
246
|
+
"total_cents",
|
|
247
|
+
b"total_cents",
|
|
248
|
+
] # noqa: Y015
|
|
249
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
219
250
|
|
|
220
|
-
|
|
251
|
+
Global___Invoice: _TypeAlias = Invoice # noqa: Y015
|
|
221
252
|
|
|
222
|
-
@
|
|
223
|
-
class InvoiceLineItem(
|
|
224
|
-
DESCRIPTOR:
|
|
253
|
+
@_typing.final
|
|
254
|
+
class InvoiceLineItem(_message.Message):
|
|
255
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
225
256
|
|
|
226
|
-
ID_FIELD_NUMBER:
|
|
227
|
-
DESCRIPTION_FIELD_NUMBER:
|
|
228
|
-
AMOUNT_CENTS_FIELD_NUMBER:
|
|
229
|
-
CURRENCY_FIELD_NUMBER:
|
|
230
|
-
QUANTITY_FIELD_NUMBER:
|
|
231
|
-
UNIT_AMOUNT_CENTS_FIELD_NUMBER:
|
|
232
|
-
PERIOD_START_FIELD_NUMBER:
|
|
233
|
-
PERIOD_END_FIELD_NUMBER:
|
|
234
|
-
PRODUCT_ID_FIELD_NUMBER:
|
|
235
|
-
PRICE_ID_FIELD_NUMBER:
|
|
236
|
-
PRORATION_FIELD_NUMBER:
|
|
237
|
-
PRORATION_DETAILS_FIELD_NUMBER:
|
|
238
|
-
id:
|
|
239
|
-
description:
|
|
240
|
-
amount_cents:
|
|
241
|
-
currency:
|
|
242
|
-
quantity:
|
|
243
|
-
unit_amount_cents:
|
|
244
|
-
product_id:
|
|
257
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
258
|
+
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
259
|
+
AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
|
|
260
|
+
CURRENCY_FIELD_NUMBER: _builtins.int
|
|
261
|
+
QUANTITY_FIELD_NUMBER: _builtins.int
|
|
262
|
+
UNIT_AMOUNT_CENTS_FIELD_NUMBER: _builtins.int
|
|
263
|
+
PERIOD_START_FIELD_NUMBER: _builtins.int
|
|
264
|
+
PERIOD_END_FIELD_NUMBER: _builtins.int
|
|
265
|
+
PRODUCT_ID_FIELD_NUMBER: _builtins.int
|
|
266
|
+
PRICE_ID_FIELD_NUMBER: _builtins.int
|
|
267
|
+
PRORATION_FIELD_NUMBER: _builtins.int
|
|
268
|
+
PRORATION_DETAILS_FIELD_NUMBER: _builtins.int
|
|
269
|
+
id: _builtins.str
|
|
270
|
+
description: _builtins.str
|
|
271
|
+
amount_cents: _builtins.int
|
|
272
|
+
currency: _builtins.str
|
|
273
|
+
quantity: _builtins.int
|
|
274
|
+
unit_amount_cents: _builtins.int
|
|
275
|
+
product_id: _builtins.str
|
|
245
276
|
"""Product/Price info"""
|
|
246
|
-
price_id:
|
|
247
|
-
proration:
|
|
277
|
+
price_id: _builtins.str
|
|
278
|
+
proration: _builtins.bool
|
|
248
279
|
"""Proration"""
|
|
249
|
-
proration_details:
|
|
250
|
-
@property
|
|
251
|
-
def period_start(self) ->
|
|
280
|
+
proration_details: _builtins.str
|
|
281
|
+
@_builtins.property
|
|
282
|
+
def period_start(self) -> _timestamp_pb2.Timestamp:
|
|
252
283
|
"""Period for subscription items"""
|
|
253
284
|
|
|
254
|
-
@property
|
|
255
|
-
def period_end(self) ->
|
|
285
|
+
@_builtins.property
|
|
286
|
+
def period_end(self) -> _timestamp_pb2.Timestamp: ...
|
|
256
287
|
def __init__(
|
|
257
288
|
self,
|
|
258
289
|
*,
|
|
259
|
-
id:
|
|
260
|
-
description:
|
|
261
|
-
amount_cents:
|
|
262
|
-
currency:
|
|
263
|
-
quantity:
|
|
264
|
-
unit_amount_cents:
|
|
265
|
-
period_start:
|
|
266
|
-
period_end:
|
|
267
|
-
product_id:
|
|
268
|
-
price_id:
|
|
269
|
-
proration:
|
|
270
|
-
proration_details:
|
|
271
|
-
) -> None: ...
|
|
272
|
-
def HasField(
|
|
273
|
-
self,
|
|
274
|
-
field_name: typing.Literal[
|
|
275
|
-
"period_end", b"period_end", "period_start", b"period_start"
|
|
276
|
-
],
|
|
277
|
-
) -> builtins.bool: ...
|
|
278
|
-
def ClearField(
|
|
279
|
-
self,
|
|
280
|
-
field_name: typing.Literal[
|
|
281
|
-
"amount_cents",
|
|
282
|
-
b"amount_cents",
|
|
283
|
-
"currency",
|
|
284
|
-
b"currency",
|
|
285
|
-
"description",
|
|
286
|
-
b"description",
|
|
287
|
-
"id",
|
|
288
|
-
b"id",
|
|
289
|
-
"period_end",
|
|
290
|
-
b"period_end",
|
|
291
|
-
"period_start",
|
|
292
|
-
b"period_start",
|
|
293
|
-
"price_id",
|
|
294
|
-
b"price_id",
|
|
295
|
-
"product_id",
|
|
296
|
-
b"product_id",
|
|
297
|
-
"proration",
|
|
298
|
-
b"proration",
|
|
299
|
-
"proration_details",
|
|
300
|
-
b"proration_details",
|
|
301
|
-
"quantity",
|
|
302
|
-
b"quantity",
|
|
303
|
-
"unit_amount_cents",
|
|
304
|
-
b"unit_amount_cents",
|
|
305
|
-
],
|
|
290
|
+
id: _builtins.str | None = ...,
|
|
291
|
+
description: _builtins.str | None = ...,
|
|
292
|
+
amount_cents: _builtins.int | None = ...,
|
|
293
|
+
currency: _builtins.str | None = ...,
|
|
294
|
+
quantity: _builtins.int | None = ...,
|
|
295
|
+
unit_amount_cents: _builtins.int | None = ...,
|
|
296
|
+
period_start: _timestamp_pb2.Timestamp | None = ...,
|
|
297
|
+
period_end: _timestamp_pb2.Timestamp | None = ...,
|
|
298
|
+
product_id: _builtins.str | None = ...,
|
|
299
|
+
price_id: _builtins.str | None = ...,
|
|
300
|
+
proration: _builtins.bool | None = ...,
|
|
301
|
+
proration_details: _builtins.str | None = ...,
|
|
306
302
|
) -> None: ...
|
|
303
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
304
|
+
"amount_cents",
|
|
305
|
+
b"amount_cents",
|
|
306
|
+
"currency",
|
|
307
|
+
b"currency",
|
|
308
|
+
"description",
|
|
309
|
+
b"description",
|
|
310
|
+
"id",
|
|
311
|
+
b"id",
|
|
312
|
+
"period_end",
|
|
313
|
+
b"period_end",
|
|
314
|
+
"period_start",
|
|
315
|
+
b"period_start",
|
|
316
|
+
"price_id",
|
|
317
|
+
b"price_id",
|
|
318
|
+
"product_id",
|
|
319
|
+
b"product_id",
|
|
320
|
+
"proration",
|
|
321
|
+
b"proration",
|
|
322
|
+
"proration_details",
|
|
323
|
+
b"proration_details",
|
|
324
|
+
"quantity",
|
|
325
|
+
b"quantity",
|
|
326
|
+
"unit_amount_cents",
|
|
327
|
+
b"unit_amount_cents",
|
|
328
|
+
] # noqa: Y015
|
|
329
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
330
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
331
|
+
"amount_cents",
|
|
332
|
+
b"amount_cents",
|
|
333
|
+
"currency",
|
|
334
|
+
b"currency",
|
|
335
|
+
"description",
|
|
336
|
+
b"description",
|
|
337
|
+
"id",
|
|
338
|
+
b"id",
|
|
339
|
+
"period_end",
|
|
340
|
+
b"period_end",
|
|
341
|
+
"period_start",
|
|
342
|
+
b"period_start",
|
|
343
|
+
"price_id",
|
|
344
|
+
b"price_id",
|
|
345
|
+
"product_id",
|
|
346
|
+
b"product_id",
|
|
347
|
+
"proration",
|
|
348
|
+
b"proration",
|
|
349
|
+
"proration_details",
|
|
350
|
+
b"proration_details",
|
|
351
|
+
"quantity",
|
|
352
|
+
b"quantity",
|
|
353
|
+
"unit_amount_cents",
|
|
354
|
+
b"unit_amount_cents",
|
|
355
|
+
] # noqa: Y015
|
|
356
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
307
357
|
|
|
308
|
-
|
|
358
|
+
Global___InvoiceLineItem: _TypeAlias = InvoiceLineItem # noqa: Y015
|
|
309
359
|
|
|
310
|
-
@
|
|
311
|
-
class TaxRate(
|
|
312
|
-
DESCRIPTOR:
|
|
360
|
+
@_typing.final
|
|
361
|
+
class TaxRate(_message.Message):
|
|
362
|
+
DESCRIPTOR: _descriptor.Descriptor
|
|
313
363
|
|
|
314
|
-
ID_FIELD_NUMBER:
|
|
315
|
-
DISPLAY_NAME_FIELD_NUMBER:
|
|
316
|
-
JURISDICTION_FIELD_NUMBER:
|
|
317
|
-
PERCENTAGE_FIELD_NUMBER:
|
|
318
|
-
INCLUSIVE_FIELD_NUMBER:
|
|
319
|
-
id:
|
|
320
|
-
display_name:
|
|
321
|
-
jurisdiction:
|
|
322
|
-
percentage:
|
|
323
|
-
inclusive:
|
|
364
|
+
ID_FIELD_NUMBER: _builtins.int
|
|
365
|
+
DISPLAY_NAME_FIELD_NUMBER: _builtins.int
|
|
366
|
+
JURISDICTION_FIELD_NUMBER: _builtins.int
|
|
367
|
+
PERCENTAGE_FIELD_NUMBER: _builtins.int
|
|
368
|
+
INCLUSIVE_FIELD_NUMBER: _builtins.int
|
|
369
|
+
id: _builtins.str
|
|
370
|
+
display_name: _builtins.str
|
|
371
|
+
jurisdiction: _builtins.str
|
|
372
|
+
percentage: _builtins.float
|
|
373
|
+
inclusive: _builtins.bool
|
|
324
374
|
def __init__(
|
|
325
375
|
self,
|
|
326
376
|
*,
|
|
327
|
-
id:
|
|
328
|
-
display_name:
|
|
329
|
-
jurisdiction:
|
|
330
|
-
percentage:
|
|
331
|
-
inclusive:
|
|
332
|
-
) -> None: ...
|
|
333
|
-
def ClearField(
|
|
334
|
-
self,
|
|
335
|
-
field_name: typing.Literal[
|
|
336
|
-
"display_name",
|
|
337
|
-
b"display_name",
|
|
338
|
-
"id",
|
|
339
|
-
b"id",
|
|
340
|
-
"inclusive",
|
|
341
|
-
b"inclusive",
|
|
342
|
-
"jurisdiction",
|
|
343
|
-
b"jurisdiction",
|
|
344
|
-
"percentage",
|
|
345
|
-
b"percentage",
|
|
346
|
-
],
|
|
377
|
+
id: _builtins.str | None = ...,
|
|
378
|
+
display_name: _builtins.str | None = ...,
|
|
379
|
+
jurisdiction: _builtins.str | None = ...,
|
|
380
|
+
percentage: _builtins.float | None = ...,
|
|
381
|
+
inclusive: _builtins.bool | None = ...,
|
|
347
382
|
) -> None: ...
|
|
383
|
+
_HasFieldArgType: _TypeAlias = _typing.Literal[
|
|
384
|
+
"display_name",
|
|
385
|
+
b"display_name",
|
|
386
|
+
"id",
|
|
387
|
+
b"id",
|
|
388
|
+
"inclusive",
|
|
389
|
+
b"inclusive",
|
|
390
|
+
"jurisdiction",
|
|
391
|
+
b"jurisdiction",
|
|
392
|
+
"percentage",
|
|
393
|
+
b"percentage",
|
|
394
|
+
] # noqa: Y015
|
|
395
|
+
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
396
|
+
_ClearFieldArgType: _TypeAlias = _typing.Literal[
|
|
397
|
+
"display_name",
|
|
398
|
+
b"display_name",
|
|
399
|
+
"id",
|
|
400
|
+
b"id",
|
|
401
|
+
"inclusive",
|
|
402
|
+
b"inclusive",
|
|
403
|
+
"jurisdiction",
|
|
404
|
+
b"jurisdiction",
|
|
405
|
+
"percentage",
|
|
406
|
+
b"percentage",
|
|
407
|
+
] # noqa: Y015
|
|
408
|
+
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
348
409
|
|
|
349
|
-
|
|
410
|
+
Global___TaxRate: _TypeAlias = TaxRate # noqa: Y015
|