payi 0.1.0a10__py3-none-any.whl → 0.1.0a12__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/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "payi"
4
- __version__ = "0.1.0-alpha.10" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.12" # x-release-please-version
@@ -62,6 +62,7 @@ class BudgetsResource(SyncAPIResource):
62
62
  budget_response_type: Literal["block", "allow"] | NotGiven = NOT_GIVEN,
63
63
  budget_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
64
64
  budget_type: Literal["conservative", "liberal"] | NotGiven = NOT_GIVEN,
65
+ currency: Literal["usd"] | NotGiven = NOT_GIVEN,
65
66
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
66
67
  # The extra values given here take precedence over values defined on the client or passed to this method.
67
68
  extra_headers: Headers | None = None,
@@ -94,6 +95,7 @@ class BudgetsResource(SyncAPIResource):
94
95
  "budget_response_type": budget_response_type,
95
96
  "budget_tags": budget_tags,
96
97
  "budget_type": budget_type,
98
+ "currency": currency,
97
99
  },
98
100
  budget_create_params.BudgetCreateParams,
99
101
  ),
@@ -308,6 +310,7 @@ class AsyncBudgetsResource(AsyncAPIResource):
308
310
  budget_response_type: Literal["block", "allow"] | NotGiven = NOT_GIVEN,
309
311
  budget_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
310
312
  budget_type: Literal["conservative", "liberal"] | NotGiven = NOT_GIVEN,
313
+ currency: Literal["usd"] | NotGiven = NOT_GIVEN,
311
314
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
312
315
  # The extra values given here take precedence over values defined on the client or passed to this method.
313
316
  extra_headers: Headers | None = None,
@@ -337,6 +340,7 @@ class AsyncBudgetsResource(AsyncAPIResource):
337
340
  "budget_response_type": budget_response_type,
338
341
  "budget_tags": budget_tags,
339
342
  "budget_type": budget_type,
343
+ "currency": currency,
340
344
  },
341
345
  budget_create_params.BudgetCreateParams,
342
346
  ),
@@ -20,3 +20,5 @@ class BudgetCreateParams(TypedDict, total=False):
20
20
  budget_tags: Optional[List[str]]
21
21
 
22
22
  budget_type: Literal["conservative", "liberal"]
23
+
24
+ currency: Literal["usd"]
@@ -32,7 +32,7 @@ class Budget(BaseModel):
32
32
 
33
33
  budget_update_timestamp: datetime
34
34
 
35
- currency: str
35
+ currency: Literal["usd"]
36
36
 
37
37
  max: float
38
38
 
@@ -34,7 +34,7 @@ class Item(BaseModel):
34
34
 
35
35
  budget_update_timestamp: datetime
36
36
 
37
- currency: str
37
+ currency: Literal["usd"]
38
38
 
39
39
  max: float
40
40
 
@@ -1,6 +1,7 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  from typing import Dict, List, Optional
4
+ from typing_extensions import Literal
4
5
 
5
6
  from .._models import BaseModel
6
7
  from .cost_details import CostDetails
@@ -9,11 +10,11 @@ __all__ = ["ProxyResult", "Budgets", "Cost"]
9
10
 
10
11
 
11
12
  class Budgets(BaseModel):
12
- state: Optional[str] = None
13
+ state: Optional[Literal["ok", "blocked", "blocked_external", "exceeded", "failed"]] = None
13
14
 
14
15
 
15
16
  class Cost(BaseModel):
16
- currency: Optional[str] = None
17
+ currency: Optional[Literal["usd"]] = None
17
18
 
18
19
  input: Optional[CostDetails] = None
19
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a10
3
+ Version: 0.1.0a12
4
4
  Summary: The official Python library for the payi API
5
5
  Project-URL: Homepage, https://github.com/Pay-i/pay-i-python
6
6
  Project-URL: Repository, https://github.com/Pay-i/pay-i-python
@@ -11,7 +11,7 @@ payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
11
11
  payi/_response.py,sha256=W6pADUzbnMFGnVzGY4M3FkX9uvw8AFSMTPZKPgQ_TV4,28363
12
12
  payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
13
13
  payi/_types.py,sha256=04q-KHD-qZ1xlfwEb_muyIHWmD-nZ-KxnRxA_QEjqNk,6125
14
- payi/_version.py,sha256=BVdliMCUN6eTb9QTla5jn-MQd_Cm2yeHS9Tnr9cVF90,165
14
+ payi/_version.py,sha256=PZAF8OgmR_Cmayl-mzir-oIbKEkRJirAyk8UzjHZx4U,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,20 +27,20 @@ payi/lib/helpers.py,sha256=IdB_pi8dLtVh9b4DG-zasA1i9Yk-5xAayoUTNWBAFpc,1235
27
27
  payi/resources/__init__.py,sha256=1p8kzMES8NNDQQoK3TEDE-8vVuQ59xxUjyyblZJBTjw,1015
28
28
  payi/resources/ingest.py,sha256=KnR7ouxd9Qx_078BNB9BIeB-nVQoTLpFoqCW1Lmyb5k,8428
29
29
  payi/resources/budgets/__init__.py,sha256=w1UhOdDXtUH4A91ME5Tw2nr9bRvPJyJY1YWiVVy7jj0,989
30
- payi/resources/budgets/budgets.py,sha256=buS9vZ_kyBSJwYquGhndKmDTs8HYBkIPMOtzesAiQU0,25757
30
+ payi/resources/budgets/budgets.py,sha256=r1uzAreeZVV1oQxTFSQ0nWZpXkSTFAGu49xRTvDn8l8,25955
31
31
  payi/resources/budgets/tags.py,sha256=jzP0nal287bL2htY1TwDcdFRJyNMm6IdM936O1jCeMo,17850
32
32
  payi/types/__init__.py,sha256=JjHDryLWv31S0mtDuNEepBt4Dp1YSEtGRks9SBiMj4o,897
33
- payi/types/budget_create_params.py,sha256=ow-Uo7ZxJfZhRwfwz2f-YppIDAZu1luo1-HqggLyU9c,543
33
+ payi/types/budget_create_params.py,sha256=2Vd6Z2x-xEfk73QknmNKJAicIT4ACmrPUYkmrAKp4dc,573
34
34
  payi/types/budget_history_response.py,sha256=7geNJDvwl5gJGnUsKMTtaGkca2Lk0e5oEKQarsCj3nw,2714
35
35
  payi/types/budget_list_params.py,sha256=Win-Spveurf6WarTgCXXsP-yDIxr_HCP7oV_4JbqKOc,674
36
- payi/types/budget_response.py,sha256=tdZxvnrGGr1ozWTvENR1OFEPEXndwkxuRa3DvkFAndI,974
36
+ payi/types/budget_response.py,sha256=gtTOCGM1fll2S9GUQNsZJwvPyKwF_gXXJyq6QAW4-wE,985
37
37
  payi/types/budget_update_params.py,sha256=TTH7uu1c1zBK5zYhh2SPuRWEwr1XwDX_8bVS_GxIn9I,306
38
38
  payi/types/cost_data.py,sha256=jZtju_3WWNXh4wCu77XnyvxZkvewcvXBS_V0z07BizA,284
39
39
  payi/types/cost_details.py,sha256=3ldvnYILAG6Sz9wGWMs1SZvIfdGEbn5i4-CauWEXMPA,265
40
40
  payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
41
41
  payi/types/ingest_units_params.py,sha256=NhC7wRF0lpoKikUPQUAgE1OxpU8dqMxtRZNIbiXkYCA,575
42
- payi/types/paged_budget_list.py,sha256=eTWFP2fcWEOCm7hkK_TjktPpek1bd_LwAS_wjBIEG7I,1526
43
- payi/types/proxy_result.py,sha256=i8vx5sXUw1CpNq-dOLGTE4BJPqROMlwzc0vLeG3XK-o,686
42
+ payi/types/paged_budget_list.py,sha256=SOnbU5Qp4jinQzDfy5CquDQlt6MkcLlQPgLbn4LFvps,1537
43
+ payi/types/proxy_result.py,sha256=qsl1dwZMXf3Gy7f7BzE4Fe4Pnu6OlSUY_LIo0oYLEZo,798
44
44
  payi/types/requests_data.py,sha256=G9N8SKqR5-851hIe8mFqu6XYBAXjQ-VhCQyQGXKFb1A,417
45
45
  payi/types/budgets/__init__.py,sha256=5ByVuqOcgSYLHmGzhuj6-HG48mtQhC6oT5U5tNjQtxk,725
46
46
  payi/types/budgets/budget_tags.py,sha256=nOYMf7YgRdTZgGdedJw0UbQ2uupCq9MHlevLJoXxWB4,348
@@ -52,7 +52,7 @@ payi/types/budgets/tag_remove_params.py,sha256=fNiHex1U11o_B0bfJDkpGARkEf99J-bd-
52
52
  payi/types/budgets/tag_remove_response.py,sha256=Wt4KwC76y3qxdEqKhXzFkYu2iECYePgXcpidXkuheWQ,219
53
53
  payi/types/budgets/tag_update_params.py,sha256=bWWeDqfySt7CZ6HDsZzENREOWGWGWFgnAtyleNMwUsE,314
54
54
  payi/types/budgets/tag_update_response.py,sha256=Vlf-zxLZzvmhUodhzF7hiqWcxyjrb7Ri_lSajg8vOPM,219
55
- payi-0.1.0a10.dist-info/METADATA,sha256=zR99hLC5LSOoXaml-CPMkU9-cfjrA-AUWThtZPbTNRU,11873
56
- payi-0.1.0a10.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
57
- payi-0.1.0a10.dist-info/licenses/LICENSE,sha256=8vX1pjh3esb6D5DvXAf6NxiBcVyon8aHWNJCxmmHXeY,11334
58
- payi-0.1.0a10.dist-info/RECORD,,
55
+ payi-0.1.0a12.dist-info/METADATA,sha256=gMHzj0y-Yo-lMlz8BHDLSnP3aMOfB5Li8oOe9d7xyF0,11873
56
+ payi-0.1.0a12.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
57
+ payi-0.1.0a12.dist-info/licenses/LICENSE,sha256=8vX1pjh3esb6D5DvXAf6NxiBcVyon8aHWNJCxmmHXeY,11334
58
+ payi-0.1.0a12.dist-info/RECORD,,