payi 0.1.0a22__py3-none-any.whl → 0.1.0a24__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.
Potentially problematic release.
This version of payi might be problematic. Click here for more details.
- payi/_base_client.py +2 -2
- payi/_models.py +2 -0
- payi/_version.py +1 -1
- payi/resources/budgets/budgets.py +2 -2
- payi/resources/experiences/experiences.py +10 -10
- payi/resources/experiences/types.py +71 -51
- payi/types/category_delete_response.py +2 -2
- payi/types/experiences/__init__.py +1 -0
- payi/types/experiences/type_list_params.py +12 -0
- payi/types/experiences/type_update_params.py +2 -5
- payi/types/requests_data.py +8 -4
- payi/types/total_cost_data.py +2 -18
- {payi-0.1.0a22.dist-info → payi-0.1.0a24.dist-info}/METADATA +1 -1
- {payi-0.1.0a22.dist-info → payi-0.1.0a24.dist-info}/RECORD +16 -15
- {payi-0.1.0a22.dist-info → payi-0.1.0a24.dist-info}/WHEEL +0 -0
- {payi-0.1.0a22.dist-info → payi-0.1.0a24.dist-info}/licenses/LICENSE +0 -0
payi/_base_client.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import sys
|
|
3
4
|
import json
|
|
4
5
|
import time
|
|
5
6
|
import uuid
|
|
@@ -1982,7 +1983,6 @@ def get_python_version() -> str:
|
|
|
1982
1983
|
|
|
1983
1984
|
def get_architecture() -> Arch:
|
|
1984
1985
|
try:
|
|
1985
|
-
python_bitness, _ = platform.architecture()
|
|
1986
1986
|
machine = platform.machine().lower()
|
|
1987
1987
|
except Exception:
|
|
1988
1988
|
return "unknown"
|
|
@@ -1998,7 +1998,7 @@ def get_architecture() -> Arch:
|
|
|
1998
1998
|
return "x64"
|
|
1999
1999
|
|
|
2000
2000
|
# TODO: untested
|
|
2001
|
-
if
|
|
2001
|
+
if sys.maxsize <= 2**32:
|
|
2002
2002
|
return "x32"
|
|
2003
2003
|
|
|
2004
2004
|
if machine:
|
payi/_models.py
CHANGED
|
@@ -380,6 +380,8 @@ def is_basemodel(type_: type) -> bool:
|
|
|
380
380
|
|
|
381
381
|
def is_basemodel_type(type_: type) -> TypeGuard[type[BaseModel] | type[GenericModel]]:
|
|
382
382
|
origin = get_origin(type_) or type_
|
|
383
|
+
if not inspect.isclass(origin):
|
|
384
|
+
return False
|
|
383
385
|
return issubclass(origin, BaseModel) or issubclass(origin, GenericModel)
|
|
384
386
|
|
|
385
387
|
|
payi/_version.py
CHANGED
|
@@ -270,7 +270,7 @@ class BudgetsResource(SyncAPIResource):
|
|
|
270
270
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
271
271
|
) -> BudgetHistoryResponse:
|
|
272
272
|
"""
|
|
273
|
-
Reset
|
|
273
|
+
Reset a Budget
|
|
274
274
|
|
|
275
275
|
Args:
|
|
276
276
|
budget_id (str): The ID of the budget.
|
|
@@ -526,7 +526,7 @@ class AsyncBudgetsResource(AsyncAPIResource):
|
|
|
526
526
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
527
527
|
) -> BudgetHistoryResponse:
|
|
528
528
|
"""
|
|
529
|
-
Reset
|
|
529
|
+
Reset a Budget
|
|
530
530
|
|
|
531
531
|
Args:
|
|
532
532
|
extra_headers: Send extra headers
|
|
@@ -42,7 +42,7 @@ class ExperiencesResource(SyncAPIResource):
|
|
|
42
42
|
|
|
43
43
|
def create(
|
|
44
44
|
self,
|
|
45
|
-
|
|
45
|
+
experience_name: str,
|
|
46
46
|
*,
|
|
47
47
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
48
48
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -63,10 +63,10 @@ class ExperiencesResource(SyncAPIResource):
|
|
|
63
63
|
|
|
64
64
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
65
65
|
"""
|
|
66
|
-
if not
|
|
67
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
66
|
+
if not experience_name:
|
|
67
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
68
68
|
return self._post(
|
|
69
|
-
f"/api/v1/experiences/instances/{
|
|
69
|
+
f"/api/v1/experiences/instances/{experience_name}",
|
|
70
70
|
options=make_request_options(
|
|
71
71
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
72
72
|
),
|
|
@@ -85,7 +85,7 @@ class ExperiencesResource(SyncAPIResource):
|
|
|
85
85
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
86
86
|
) -> ExperienceInstance:
|
|
87
87
|
"""
|
|
88
|
-
Get Experience details
|
|
88
|
+
Get an Experience details
|
|
89
89
|
|
|
90
90
|
Args:
|
|
91
91
|
extra_headers: Send extra headers
|
|
@@ -155,7 +155,7 @@ class AsyncExperiencesResource(AsyncAPIResource):
|
|
|
155
155
|
|
|
156
156
|
async def create(
|
|
157
157
|
self,
|
|
158
|
-
|
|
158
|
+
experience_name: str,
|
|
159
159
|
*,
|
|
160
160
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
161
161
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -176,10 +176,10 @@ class AsyncExperiencesResource(AsyncAPIResource):
|
|
|
176
176
|
|
|
177
177
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
178
178
|
"""
|
|
179
|
-
if not
|
|
180
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
179
|
+
if not experience_name:
|
|
180
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
181
181
|
return await self._post(
|
|
182
|
-
f"/api/v1/experiences/instances/{
|
|
182
|
+
f"/api/v1/experiences/instances/{experience_name}",
|
|
183
183
|
options=make_request_options(
|
|
184
184
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
185
185
|
),
|
|
@@ -198,7 +198,7 @@ class AsyncExperiencesResource(AsyncAPIResource):
|
|
|
198
198
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
199
199
|
) -> ExperienceInstance:
|
|
200
200
|
"""
|
|
201
|
-
Get Experience details
|
|
201
|
+
Get an Experience details
|
|
202
202
|
|
|
203
203
|
Args:
|
|
204
204
|
extra_headers: Send extra headers
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
6
|
-
|
|
7
5
|
import httpx
|
|
8
6
|
|
|
9
7
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
@@ -20,7 +18,7 @@ from ..._response import (
|
|
|
20
18
|
async_to_streamed_response_wrapper,
|
|
21
19
|
)
|
|
22
20
|
from ..._base_client import make_request_options
|
|
23
|
-
from ...types.experiences import type_create_params, type_update_params
|
|
21
|
+
from ...types.experiences import type_list_params, type_create_params, type_update_params
|
|
24
22
|
from ...types.experiences.experience_type import ExperienceType
|
|
25
23
|
from ...types.experiences.type_list_response import TypeListResponse
|
|
26
24
|
|
|
@@ -49,7 +47,7 @@ class TypesResource(SyncAPIResource):
|
|
|
49
47
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
50
48
|
) -> ExperienceType:
|
|
51
49
|
"""
|
|
52
|
-
Create an Experience Type
|
|
50
|
+
Create an new Experience Type
|
|
53
51
|
|
|
54
52
|
Args:
|
|
55
53
|
extra_headers: Send extra headers
|
|
@@ -77,7 +75,7 @@ class TypesResource(SyncAPIResource):
|
|
|
77
75
|
|
|
78
76
|
def retrieve(
|
|
79
77
|
self,
|
|
80
|
-
|
|
78
|
+
experience_name: str,
|
|
81
79
|
*,
|
|
82
80
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
83
81
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -98,10 +96,10 @@ class TypesResource(SyncAPIResource):
|
|
|
98
96
|
|
|
99
97
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
100
98
|
"""
|
|
101
|
-
if not
|
|
102
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
99
|
+
if not experience_name:
|
|
100
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
103
101
|
return self._get(
|
|
104
|
-
f"/api/v1/experiences/types/{
|
|
102
|
+
f"/api/v1/experiences/types/{experience_name}",
|
|
105
103
|
options=make_request_options(
|
|
106
104
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
107
105
|
),
|
|
@@ -110,10 +108,9 @@ class TypesResource(SyncAPIResource):
|
|
|
110
108
|
|
|
111
109
|
def update(
|
|
112
110
|
self,
|
|
113
|
-
|
|
111
|
+
experience_name: str,
|
|
114
112
|
*,
|
|
115
|
-
description:
|
|
116
|
-
name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
113
|
+
description: str,
|
|
117
114
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
118
115
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
119
116
|
extra_headers: Headers | None = None,
|
|
@@ -133,17 +130,11 @@ class TypesResource(SyncAPIResource):
|
|
|
133
130
|
|
|
134
131
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
135
132
|
"""
|
|
136
|
-
if not
|
|
137
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
133
|
+
if not experience_name:
|
|
134
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
138
135
|
return self._patch(
|
|
139
|
-
f"/api/v1/experiences/types/{
|
|
140
|
-
body=maybe_transform(
|
|
141
|
-
{
|
|
142
|
-
"description": description,
|
|
143
|
-
"name": name,
|
|
144
|
-
},
|
|
145
|
-
type_update_params.TypeUpdateParams,
|
|
146
|
-
),
|
|
136
|
+
f"/api/v1/experiences/types/{experience_name}",
|
|
137
|
+
body=maybe_transform({"description": description}, type_update_params.TypeUpdateParams),
|
|
147
138
|
options=make_request_options(
|
|
148
139
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
149
140
|
),
|
|
@@ -153,6 +144,7 @@ class TypesResource(SyncAPIResource):
|
|
|
153
144
|
def list(
|
|
154
145
|
self,
|
|
155
146
|
*,
|
|
147
|
+
name: str | NotGiven = NOT_GIVEN,
|
|
156
148
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
157
149
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
158
150
|
extra_headers: Headers | None = None,
|
|
@@ -160,18 +152,35 @@ class TypesResource(SyncAPIResource):
|
|
|
160
152
|
extra_body: Body | None = None,
|
|
161
153
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
162
154
|
) -> TypeListResponse:
|
|
163
|
-
"""
|
|
155
|
+
"""
|
|
156
|
+
Get all Experience Types
|
|
157
|
+
|
|
158
|
+
Args:
|
|
159
|
+
name: Experience Type Name
|
|
160
|
+
|
|
161
|
+
extra_headers: Send extra headers
|
|
162
|
+
|
|
163
|
+
extra_query: Add additional query parameters to the request
|
|
164
|
+
|
|
165
|
+
extra_body: Add additional JSON properties to the request
|
|
166
|
+
|
|
167
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
168
|
+
"""
|
|
164
169
|
return self._get(
|
|
165
170
|
"/api/v1/experiences/types",
|
|
166
171
|
options=make_request_options(
|
|
167
|
-
extra_headers=extra_headers,
|
|
172
|
+
extra_headers=extra_headers,
|
|
173
|
+
extra_query=extra_query,
|
|
174
|
+
extra_body=extra_body,
|
|
175
|
+
timeout=timeout,
|
|
176
|
+
query=maybe_transform({"name": name}, type_list_params.TypeListParams),
|
|
168
177
|
),
|
|
169
178
|
cast_to=TypeListResponse,
|
|
170
179
|
)
|
|
171
180
|
|
|
172
181
|
def delete(
|
|
173
182
|
self,
|
|
174
|
-
|
|
183
|
+
experience_name: str,
|
|
175
184
|
*,
|
|
176
185
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
177
186
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -192,10 +201,10 @@ class TypesResource(SyncAPIResource):
|
|
|
192
201
|
|
|
193
202
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
194
203
|
"""
|
|
195
|
-
if not
|
|
196
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
204
|
+
if not experience_name:
|
|
205
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
197
206
|
return self._delete(
|
|
198
|
-
f"/api/v1/experiences/types/{
|
|
207
|
+
f"/api/v1/experiences/types/{experience_name}",
|
|
199
208
|
options=make_request_options(
|
|
200
209
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
201
210
|
),
|
|
@@ -225,7 +234,7 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
225
234
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
226
235
|
) -> ExperienceType:
|
|
227
236
|
"""
|
|
228
|
-
Create an Experience Type
|
|
237
|
+
Create an new Experience Type
|
|
229
238
|
|
|
230
239
|
Args:
|
|
231
240
|
extra_headers: Send extra headers
|
|
@@ -253,7 +262,7 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
253
262
|
|
|
254
263
|
async def retrieve(
|
|
255
264
|
self,
|
|
256
|
-
|
|
265
|
+
experience_name: str,
|
|
257
266
|
*,
|
|
258
267
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
259
268
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -274,10 +283,10 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
274
283
|
|
|
275
284
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
276
285
|
"""
|
|
277
|
-
if not
|
|
278
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
286
|
+
if not experience_name:
|
|
287
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
279
288
|
return await self._get(
|
|
280
|
-
f"/api/v1/experiences/types/{
|
|
289
|
+
f"/api/v1/experiences/types/{experience_name}",
|
|
281
290
|
options=make_request_options(
|
|
282
291
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
283
292
|
),
|
|
@@ -286,10 +295,9 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
286
295
|
|
|
287
296
|
async def update(
|
|
288
297
|
self,
|
|
289
|
-
|
|
298
|
+
experience_name: str,
|
|
290
299
|
*,
|
|
291
|
-
description:
|
|
292
|
-
name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
300
|
+
description: str,
|
|
293
301
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
294
302
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
295
303
|
extra_headers: Headers | None = None,
|
|
@@ -309,17 +317,11 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
309
317
|
|
|
310
318
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
311
319
|
"""
|
|
312
|
-
if not
|
|
313
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
320
|
+
if not experience_name:
|
|
321
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
314
322
|
return await self._patch(
|
|
315
|
-
f"/api/v1/experiences/types/{
|
|
316
|
-
body=await async_maybe_transform(
|
|
317
|
-
{
|
|
318
|
-
"description": description,
|
|
319
|
-
"name": name,
|
|
320
|
-
},
|
|
321
|
-
type_update_params.TypeUpdateParams,
|
|
322
|
-
),
|
|
323
|
+
f"/api/v1/experiences/types/{experience_name}",
|
|
324
|
+
body=await async_maybe_transform({"description": description}, type_update_params.TypeUpdateParams),
|
|
323
325
|
options=make_request_options(
|
|
324
326
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
325
327
|
),
|
|
@@ -329,6 +331,7 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
329
331
|
async def list(
|
|
330
332
|
self,
|
|
331
333
|
*,
|
|
334
|
+
name: str | NotGiven = NOT_GIVEN,
|
|
332
335
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
333
336
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
334
337
|
extra_headers: Headers | None = None,
|
|
@@ -336,18 +339,35 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
336
339
|
extra_body: Body | None = None,
|
|
337
340
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
338
341
|
) -> TypeListResponse:
|
|
339
|
-
"""
|
|
342
|
+
"""
|
|
343
|
+
Get all Experience Types
|
|
344
|
+
|
|
345
|
+
Args:
|
|
346
|
+
name: Experience Type Name
|
|
347
|
+
|
|
348
|
+
extra_headers: Send extra headers
|
|
349
|
+
|
|
350
|
+
extra_query: Add additional query parameters to the request
|
|
351
|
+
|
|
352
|
+
extra_body: Add additional JSON properties to the request
|
|
353
|
+
|
|
354
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
355
|
+
"""
|
|
340
356
|
return await self._get(
|
|
341
357
|
"/api/v1/experiences/types",
|
|
342
358
|
options=make_request_options(
|
|
343
|
-
extra_headers=extra_headers,
|
|
359
|
+
extra_headers=extra_headers,
|
|
360
|
+
extra_query=extra_query,
|
|
361
|
+
extra_body=extra_body,
|
|
362
|
+
timeout=timeout,
|
|
363
|
+
query=await async_maybe_transform({"name": name}, type_list_params.TypeListParams),
|
|
344
364
|
),
|
|
345
365
|
cast_to=TypeListResponse,
|
|
346
366
|
)
|
|
347
367
|
|
|
348
368
|
async def delete(
|
|
349
369
|
self,
|
|
350
|
-
|
|
370
|
+
experience_name: str,
|
|
351
371
|
*,
|
|
352
372
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
353
373
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -368,10 +388,10 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
368
388
|
|
|
369
389
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
370
390
|
"""
|
|
371
|
-
if not
|
|
372
|
-
raise ValueError(f"Expected a non-empty value for `
|
|
391
|
+
if not experience_name:
|
|
392
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
373
393
|
return await self._delete(
|
|
374
|
-
f"/api/v1/experiences/types/{
|
|
394
|
+
f"/api/v1/experiences/types/{experience_name}",
|
|
375
395
|
options=make_request_options(
|
|
376
396
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
377
397
|
),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import List
|
|
4
4
|
from typing_extensions import TypeAlias
|
|
5
5
|
|
|
6
6
|
from .category_resource_response import CategoryResourceResponse
|
|
7
7
|
|
|
8
8
|
__all__ = ["CategoryDeleteResponse"]
|
|
9
9
|
|
|
10
|
-
CategoryDeleteResponse: TypeAlias =
|
|
10
|
+
CategoryDeleteResponse: TypeAlias = List[CategoryResourceResponse]
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from .experience_type import ExperienceType as ExperienceType
|
|
6
|
+
from .type_list_params import TypeListParams as TypeListParams
|
|
6
7
|
from .type_create_params import TypeCreateParams as TypeCreateParams
|
|
7
8
|
from .type_list_response import TypeListResponse as TypeListResponse
|
|
8
9
|
from .type_update_params import TypeUpdateParams as TypeUpdateParams
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["TypeListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TypeListParams(TypedDict, total=False):
|
|
11
|
+
name: str
|
|
12
|
+
"""Experience Type Name"""
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from typing_extensions import TypedDict
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
7
6
|
|
|
8
7
|
__all__ = ["TypeUpdateParams"]
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class TypeUpdateParams(TypedDict, total=False):
|
|
12
|
-
description:
|
|
13
|
-
|
|
14
|
-
name: Optional[str]
|
|
11
|
+
description: Required[str]
|
payi/types/requests_data.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
|
|
@@ -10,8 +10,12 @@ __all__ = ["RequestsData"]
|
|
|
10
10
|
class RequestsData(BaseModel):
|
|
11
11
|
blocked: int
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
blocked_external: int
|
|
14
|
+
|
|
15
|
+
exceeded: int
|
|
16
|
+
|
|
17
|
+
failed: int
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
ok: int
|
|
16
20
|
|
|
17
|
-
total:
|
|
21
|
+
total: int
|
payi/types/total_cost_data.py
CHANGED
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
|
|
5
5
|
from .._models import BaseModel
|
|
6
6
|
from .cost_data import CostData
|
|
7
7
|
from .requests_data import RequestsData
|
|
8
8
|
|
|
9
|
-
__all__ = ["TotalCostData"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class BudgetTransactions(BaseModel):
|
|
13
|
-
blocked: int
|
|
14
|
-
|
|
15
|
-
blocked_external: int
|
|
16
|
-
|
|
17
|
-
exceeded: int
|
|
18
|
-
|
|
19
|
-
successful: int
|
|
20
|
-
|
|
21
|
-
error: Optional[int] = None
|
|
22
|
-
|
|
23
|
-
total: Optional[int] = None
|
|
9
|
+
__all__ = ["TotalCostData"]
|
|
24
10
|
|
|
25
11
|
|
|
26
12
|
class TotalCostData(BaseModel):
|
|
27
13
|
cost: CostData
|
|
28
14
|
|
|
29
15
|
requests: RequestsData
|
|
30
|
-
|
|
31
|
-
budget_transactions: Optional[BudgetTransactions] = None
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
payi/__init__.py,sha256=LWpfR6WSMPTnmmx3ToqqZ0A8CNduLcuxY1SSOqhPxuk,2381
|
|
2
|
-
payi/_base_client.py,sha256=
|
|
2
|
+
payi/_base_client.py,sha256=xgy0VhpF1500GXK7p5Ht6LpyO_D6SQgS80Hch9w9q0U,66414
|
|
3
3
|
payi/_client.py,sha256=TyDi1_w3GBCL4hPs0sDn-FB0wygEfI4XSoaQmrToD_A,16628
|
|
4
4
|
payi/_compat.py,sha256=FgGcnNlyW7uHKyGh_Wvo7qZi-zVPmHx7mhb3F1GEZSw,6430
|
|
5
5
|
payi/_constants.py,sha256=JE8kyZa2Q4NK_i4fO--8siEYTzeHnT0fYbOFDgDP4uk,464
|
|
6
6
|
payi/_exceptions.py,sha256=ItygKNrNXIVY0H6LsGVZvFuAHB3Vtm_VZXmWzCnpHy0,3216
|
|
7
7
|
payi/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
|
8
|
-
payi/_models.py,sha256=
|
|
8
|
+
payi/_models.py,sha256=pXirq94yiihFXBbiR50vA-0NIlDurxbJ_rLXK062vWQ,28267
|
|
9
9
|
payi/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
|
|
11
11
|
payi/_response.py,sha256=SByCajzglbiy7lSG4F5enqb7R6jVQe1OQ9TBsaxWzE8,28508
|
|
12
12
|
payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
|
|
13
13
|
payi/_types.py,sha256=mb6zn5qmTK5j0QMh0fevdShT091HBL4w0YCUfQ3u5VY,6101
|
|
14
|
-
payi/_version.py,sha256=
|
|
14
|
+
payi/_version.py,sha256=pfpzFerhCHXaMqE6tuUrvrsY4fwKu0uNyDSgmNZeEGQ,165
|
|
15
15
|
payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
payi/_utils/__init__.py,sha256=Uzq1-FIih_VUjzdNVWXks0sdC39KBKLMrZoz-_JOjJ4,1988
|
|
17
17
|
payi/_utils/_logs.py,sha256=fmnf5D9TOgkgZKfgYmSa3PiUc3SZgkchn6CzJUeo0SQ,768
|
|
@@ -27,14 +27,14 @@ payi/lib/helpers.py,sha256=JpI9vy--oJP5kUlcWK0yfyRUbIRMXkvLeUQC4g8rLNY,1472
|
|
|
27
27
|
payi/resources/__init__.py,sha256=0bsV7zh4J03yh3W3MBoiiIT12uG2tdvsDrdqOeY0Cbc,2032
|
|
28
28
|
payi/resources/ingest.py,sha256=mUZkNsb2zC7q90vHjD_RJ98YYl0jtAbnJl6Ymhnb-0A,14315
|
|
29
29
|
payi/resources/budgets/__init__.py,sha256=w1UhOdDXtUH4A91ME5Tw2nr9bRvPJyJY1YWiVVy7jj0,989
|
|
30
|
-
payi/resources/budgets/budgets.py,sha256=
|
|
30
|
+
payi/resources/budgets/budgets.py,sha256=0CW_cNyPqqHwlgozpVbookMRRD7xmqG8cCr0PHG7R1k,26496
|
|
31
31
|
payi/resources/budgets/tags.py,sha256=g0cln7tO1L1rm-hSZNnDJHdetiacDqExlSQ6YFudFsw,17817
|
|
32
32
|
payi/resources/categories/__init__.py,sha256=w5gMiPdBSzJA_qfoVtFBElaoe8wGf_O63R7R1Spr6Gk,1093
|
|
33
33
|
payi/resources/categories/categories.py,sha256=hqJE4iSiMe5nvvsui4RjFJxFb8170iRbJfTafk2NzGw,15072
|
|
34
34
|
payi/resources/categories/resources.py,sha256=681npzIyzubMf7CS7Uw2_WvZfwMpJw1qaOspTWdoBbc,17696
|
|
35
35
|
payi/resources/experiences/__init__.py,sha256=gguTTCoGlAWDyrDJh1CtZwIVsyBbzERX63vRtFtjxjI,1054
|
|
36
|
-
payi/resources/experiences/experiences.py,sha256=
|
|
37
|
-
payi/resources/experiences/types.py,sha256=
|
|
36
|
+
payi/resources/experiences/experiences.py,sha256=w4V3eOhkC8ZXNzm8IK590KE0qpCAiRQ4FArZUS9dpa4,12254
|
|
37
|
+
payi/resources/experiences/types.py,sha256=C1tQg9vlxkyb_YkNAETukgd5LPq-RIYUx30G26XxK6Q,17669
|
|
38
38
|
payi/types/__init__.py,sha256=7zBCxYcYlvjAIecjsz9nw-LqsMAMXakYhTRJwXUTneo,1803
|
|
39
39
|
payi/types/budget_create_params.py,sha256=3PziVJT3_ll-6yv3i5EF8ERm19jFJAKbv9v-CvRW5ik,653
|
|
40
40
|
payi/types/budget_history_response.py,sha256=4SnisCLr1HImVecgonZK7HIm9WTmYl0YMaTbMP70qZY,934
|
|
@@ -43,7 +43,7 @@ payi/types/budget_response.py,sha256=ZAZOvA5KLirARR92IuLkjGNWTLBUVJp5RwGI9Ow2Au0
|
|
|
43
43
|
payi/types/budget_update_params.py,sha256=foD5cPa1p2M2cpVUqlwkXwSEQlQcBLaigUQMUGkvcic,334
|
|
44
44
|
payi/types/bulk_ingest_response.py,sha256=uZO89-RjrckzM37LRXNifvRptyz_mqbyVP6zO2FlBiM,962
|
|
45
45
|
payi/types/category_delete_resource_response.py,sha256=PLz4wZA1XMpS9SUYB_j4hEw5EoZ0VVE9Ll-MQ26SAfc,339
|
|
46
|
-
payi/types/category_delete_response.py,sha256=
|
|
46
|
+
payi/types/category_delete_response.py,sha256=exq8rNDGoq2-YN528V8osdcmuptJ-k63rmCvPMm6hLA,323
|
|
47
47
|
payi/types/category_list_resources_response.py,sha256=n0DxY7N3Iftwfl0lUEx5v55V0kxbOX0EgjXlEfJtYRQ,337
|
|
48
48
|
payi/types/category_list_response.py,sha256=5i7BhQ7kVlx8_r2MLJqAJwIELGitKE0uR63kIloLATI,294
|
|
49
49
|
payi/types/category_resource_response.py,sha256=PsMV4rafSVMFWsTVTuuJ__ntQxfubGU9S50mI07G7Ow,523
|
|
@@ -57,8 +57,8 @@ payi/types/ingest_event_param.py,sha256=0am1vo5ycVREaE2mPLHy-Qmt0vIGi0UzN0br_EBe
|
|
|
57
57
|
payi/types/ingest_response.py,sha256=o43RH25dS4S54OCr3vkipZvLeAmI-hru6LuL789iEnM,1071
|
|
58
58
|
payi/types/ingest_units_params.py,sha256=WHxiSuEwstcLs48lg5YmyNPGmeKkB_GUKCgAeF-U0is,920
|
|
59
59
|
payi/types/paged_budget_list.py,sha256=FqKlbAifEWY3sZqiJSny-XtS-XIfmj14AufNffNVmqM,1385
|
|
60
|
-
payi/types/requests_data.py,sha256=
|
|
61
|
-
payi/types/total_cost_data.py,sha256=
|
|
60
|
+
payi/types/requests_data.py,sha256=U5_RwUjPHtg9-6FZhxgj6-EdnG4x5U6yzGlNwjDp0Vc,291
|
|
61
|
+
payi/types/total_cost_data.py,sha256=JPawx-cyoMtQF7CeVTlH2kHUBdFGORqACn0hTVye0K0,303
|
|
62
62
|
payi/types/budgets/__init__.py,sha256=5ByVuqOcgSYLHmGzhuj6-HG48mtQhC6oT5U5tNjQtxk,725
|
|
63
63
|
payi/types/budgets/budget_tags.py,sha256=nOYMf7YgRdTZgGdedJw0UbQ2uupCq9MHlevLJoXxWB4,348
|
|
64
64
|
payi/types/budgets/tag_create_params.py,sha256=_zEYfH2uKF44WenAdedx4TB9Az6RbIoAUMwqW8SAiuc,314
|
|
@@ -72,12 +72,13 @@ payi/types/budgets/tag_update_response.py,sha256=0L-0k2pGw9GndpwArjKhHwOOJgOTOTY
|
|
|
72
72
|
payi/types/categories/__init__.py,sha256=HQScxfK3F_J9HYbphrhG6bYb7S6vtrwafLViar5pHcM,285
|
|
73
73
|
payi/types/categories/resource_create_params.py,sha256=mbLjAyRz9iuINs_KEWYCLLUZFq4GcRhs0vL2RxqBFwQ,587
|
|
74
74
|
payi/types/categories/resource_list_response.py,sha256=ODMelDlXvYcwxBsJwTX8miofywUY_JB0OvsFVCKJunU,320
|
|
75
|
-
payi/types/experiences/__init__.py,sha256=
|
|
75
|
+
payi/types/experiences/__init__.py,sha256=8gAwTPOFwf87LFLyCwmDek2cIb2DHJYyI4Ymqoz6X1o,455
|
|
76
76
|
payi/types/experiences/experience_type.py,sha256=KKjkfI0eaoB1TmTlA4UpHKa2fB1q0zXeG_1M2LUgBsE,273
|
|
77
77
|
payi/types/experiences/type_create_params.py,sha256=8dNpffodzeD5vm3s6UJrZVOG7YsiTkXo7viDnoEoCZY,311
|
|
78
|
+
payi/types/experiences/type_list_params.py,sha256=VDZjHmK2tNAW_YLewcIzM-OG13iI2v-xCykokxkcgbs,286
|
|
78
79
|
payi/types/experiences/type_list_response.py,sha256=DgkPLw40oUqBETLePVMVenstMsGG12rZRU9w6kgQN28,280
|
|
79
|
-
payi/types/experiences/type_update_params.py,sha256=
|
|
80
|
-
payi-0.1.
|
|
81
|
-
payi-0.1.
|
|
82
|
-
payi-0.1.
|
|
83
|
-
payi-0.1.
|
|
80
|
+
payi/types/experiences/type_update_params.py,sha256=SOHb1GQiHktLB6YtEzdPllDDowS3FCfQqVWSmf0pD8Q,286
|
|
81
|
+
payi-0.1.0a24.dist-info/METADATA,sha256=aUxlDACewz8lGKXI4t-w65SZoaSKaMXFzPI3YNXt6gU,12006
|
|
82
|
+
payi-0.1.0a24.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
83
|
+
payi-0.1.0a24.dist-info/licenses/LICENSE,sha256=8vX1pjh3esb6D5DvXAf6NxiBcVyon8aHWNJCxmmHXeY,11334
|
|
84
|
+
payi-0.1.0a24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|