payi 0.1.0a104__py3-none-any.whl → 0.1.0a105__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.

Files changed (26) hide show
  1. payi/_version.py +1 -1
  2. payi/resources/requests/__init__.py +27 -27
  3. payi/resources/requests/request_id/__init__.py +47 -0
  4. payi/resources/requests/{properties.py → request_id/properties.py} +22 -22
  5. payi/resources/requests/request_id/request_id.py +134 -0
  6. payi/resources/requests/{result.py → request_id/result.py} +8 -14
  7. payi/resources/requests/requests.py +40 -40
  8. payi/resources/requests/response_id/__init__.py +47 -0
  9. payi/resources/requests/response_id/properties.py +181 -0
  10. payi/resources/requests/response_id/response_id.py +134 -0
  11. payi/resources/requests/response_id/result.py +173 -0
  12. payi/resources/use_cases/properties.py +15 -15
  13. payi/types/__init__.py +1 -0
  14. payi/types/{requests/request_result.py → request_result.py} +2 -2
  15. payi/types/requests/__init__.py +0 -3
  16. payi/types/requests/request_id/__init__.py +5 -0
  17. payi/types/requests/{property_create_params.py → request_id/property_update_params.py} +2 -2
  18. payi/types/requests/response_id/__init__.py +5 -0
  19. payi/types/requests/response_id/property_update_params.py +14 -0
  20. payi/types/shared/xproxy_result.py +2 -0
  21. payi/types/use_cases/__init__.py +1 -1
  22. payi/types/use_cases/{property_create_params.py → property_update_params.py} +2 -2
  23. {payi-0.1.0a104.dist-info → payi-0.1.0a105.dist-info}/METADATA +1 -1
  24. {payi-0.1.0a104.dist-info → payi-0.1.0a105.dist-info}/RECORD +26 -17
  25. {payi-0.1.0a104.dist-info → payi-0.1.0a105.dist-info}/WHEEL +0 -0
  26. {payi-0.1.0a104.dist-info → payi-0.1.0a105.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,181 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ import httpx
8
+
9
+ from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._utils import maybe_transform, async_maybe_transform
11
+ from ...._compat import cached_property
12
+ from ...._resource import SyncAPIResource, AsyncAPIResource
13
+ from ...._response import (
14
+ to_raw_response_wrapper,
15
+ to_streamed_response_wrapper,
16
+ async_to_raw_response_wrapper,
17
+ async_to_streamed_response_wrapper,
18
+ )
19
+ from ...._base_client import make_request_options
20
+ from ....types.requests.response_id import property_update_params
21
+ from ....types.shared.properties_response import PropertiesResponse
22
+
23
+ __all__ = ["PropertiesResource", "AsyncPropertiesResource"]
24
+
25
+
26
+ class PropertiesResource(SyncAPIResource):
27
+ @cached_property
28
+ def with_raw_response(self) -> PropertiesResourceWithRawResponse:
29
+ """
30
+ This property can be used as a prefix for any HTTP method call to return
31
+ the raw response object instead of the parsed content.
32
+
33
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
34
+ """
35
+ return PropertiesResourceWithRawResponse(self)
36
+
37
+ @cached_property
38
+ def with_streaming_response(self) -> PropertiesResourceWithStreamingResponse:
39
+ """
40
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
41
+
42
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
43
+ """
44
+ return PropertiesResourceWithStreamingResponse(self)
45
+
46
+ def update(
47
+ self,
48
+ provider_response_id: str,
49
+ *,
50
+ category: str,
51
+ properties: Dict[str, str],
52
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
+ # The extra values given here take precedence over values defined on the client or passed to this method.
54
+ extra_headers: Headers | None = None,
55
+ extra_query: Query | None = None,
56
+ extra_body: Body | None = None,
57
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
58
+ ) -> PropertiesResponse:
59
+ """
60
+ Update Request properties
61
+
62
+ Args:
63
+ extra_headers: Send extra headers
64
+
65
+ extra_query: Add additional query parameters to the request
66
+
67
+ extra_body: Add additional JSON properties to the request
68
+
69
+ timeout: Override the client-level default timeout for this request, in seconds
70
+ """
71
+ if not category:
72
+ raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
73
+ if not provider_response_id:
74
+ raise ValueError(
75
+ f"Expected a non-empty value for `provider_response_id` but received {provider_response_id!r}"
76
+ )
77
+ return self._put(
78
+ f"/api/v1/requests/provider/{category}/{provider_response_id}/properties",
79
+ body=maybe_transform({"properties": properties}, property_update_params.PropertyUpdateParams),
80
+ options=make_request_options(
81
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
82
+ ),
83
+ cast_to=PropertiesResponse,
84
+ )
85
+
86
+
87
+ class AsyncPropertiesResource(AsyncAPIResource):
88
+ @cached_property
89
+ def with_raw_response(self) -> AsyncPropertiesResourceWithRawResponse:
90
+ """
91
+ This property can be used as a prefix for any HTTP method call to return
92
+ the raw response object instead of the parsed content.
93
+
94
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
95
+ """
96
+ return AsyncPropertiesResourceWithRawResponse(self)
97
+
98
+ @cached_property
99
+ def with_streaming_response(self) -> AsyncPropertiesResourceWithStreamingResponse:
100
+ """
101
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
102
+
103
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
104
+ """
105
+ return AsyncPropertiesResourceWithStreamingResponse(self)
106
+
107
+ async def update(
108
+ self,
109
+ provider_response_id: str,
110
+ *,
111
+ category: str,
112
+ properties: Dict[str, str],
113
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114
+ # The extra values given here take precedence over values defined on the client or passed to this method.
115
+ extra_headers: Headers | None = None,
116
+ extra_query: Query | None = None,
117
+ extra_body: Body | None = None,
118
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
119
+ ) -> PropertiesResponse:
120
+ """
121
+ Update Request properties
122
+
123
+ Args:
124
+ extra_headers: Send extra headers
125
+
126
+ extra_query: Add additional query parameters to the request
127
+
128
+ extra_body: Add additional JSON properties to the request
129
+
130
+ timeout: Override the client-level default timeout for this request, in seconds
131
+ """
132
+ if not category:
133
+ raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
134
+ if not provider_response_id:
135
+ raise ValueError(
136
+ f"Expected a non-empty value for `provider_response_id` but received {provider_response_id!r}"
137
+ )
138
+ return await self._put(
139
+ f"/api/v1/requests/provider/{category}/{provider_response_id}/properties",
140
+ body=await async_maybe_transform({"properties": properties}, property_update_params.PropertyUpdateParams),
141
+ options=make_request_options(
142
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
143
+ ),
144
+ cast_to=PropertiesResponse,
145
+ )
146
+
147
+
148
+ class PropertiesResourceWithRawResponse:
149
+ def __init__(self, properties: PropertiesResource) -> None:
150
+ self._properties = properties
151
+
152
+ self.update = to_raw_response_wrapper(
153
+ properties.update,
154
+ )
155
+
156
+
157
+ class AsyncPropertiesResourceWithRawResponse:
158
+ def __init__(self, properties: AsyncPropertiesResource) -> None:
159
+ self._properties = properties
160
+
161
+ self.update = async_to_raw_response_wrapper(
162
+ properties.update,
163
+ )
164
+
165
+
166
+ class PropertiesResourceWithStreamingResponse:
167
+ def __init__(self, properties: PropertiesResource) -> None:
168
+ self._properties = properties
169
+
170
+ self.update = to_streamed_response_wrapper(
171
+ properties.update,
172
+ )
173
+
174
+
175
+ class AsyncPropertiesResourceWithStreamingResponse:
176
+ def __init__(self, properties: AsyncPropertiesResource) -> None:
177
+ self._properties = properties
178
+
179
+ self.update = async_to_streamed_response_wrapper(
180
+ properties.update,
181
+ )
@@ -0,0 +1,134 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .result import (
6
+ ResultResource,
7
+ AsyncResultResource,
8
+ ResultResourceWithRawResponse,
9
+ AsyncResultResourceWithRawResponse,
10
+ ResultResourceWithStreamingResponse,
11
+ AsyncResultResourceWithStreamingResponse,
12
+ )
13
+ from ...._compat import cached_property
14
+ from .properties import (
15
+ PropertiesResource,
16
+ AsyncPropertiesResource,
17
+ PropertiesResourceWithRawResponse,
18
+ AsyncPropertiesResourceWithRawResponse,
19
+ PropertiesResourceWithStreamingResponse,
20
+ AsyncPropertiesResourceWithStreamingResponse,
21
+ )
22
+ from ...._resource import SyncAPIResource, AsyncAPIResource
23
+
24
+ __all__ = ["ResponseIDResource", "AsyncResponseIDResource"]
25
+
26
+
27
+ class ResponseIDResource(SyncAPIResource):
28
+ @cached_property
29
+ def result(self) -> ResultResource:
30
+ return ResultResource(self._client)
31
+
32
+ @cached_property
33
+ def properties(self) -> PropertiesResource:
34
+ return PropertiesResource(self._client)
35
+
36
+ @cached_property
37
+ def with_raw_response(self) -> ResponseIDResourceWithRawResponse:
38
+ """
39
+ This property can be used as a prefix for any HTTP method call to return
40
+ the raw response object instead of the parsed content.
41
+
42
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
43
+ """
44
+ return ResponseIDResourceWithRawResponse(self)
45
+
46
+ @cached_property
47
+ def with_streaming_response(self) -> ResponseIDResourceWithStreamingResponse:
48
+ """
49
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
50
+
51
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
52
+ """
53
+ return ResponseIDResourceWithStreamingResponse(self)
54
+
55
+
56
+ class AsyncResponseIDResource(AsyncAPIResource):
57
+ @cached_property
58
+ def result(self) -> AsyncResultResource:
59
+ return AsyncResultResource(self._client)
60
+
61
+ @cached_property
62
+ def properties(self) -> AsyncPropertiesResource:
63
+ return AsyncPropertiesResource(self._client)
64
+
65
+ @cached_property
66
+ def with_raw_response(self) -> AsyncResponseIDResourceWithRawResponse:
67
+ """
68
+ This property can be used as a prefix for any HTTP method call to return
69
+ the raw response object instead of the parsed content.
70
+
71
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
72
+ """
73
+ return AsyncResponseIDResourceWithRawResponse(self)
74
+
75
+ @cached_property
76
+ def with_streaming_response(self) -> AsyncResponseIDResourceWithStreamingResponse:
77
+ """
78
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
79
+
80
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
81
+ """
82
+ return AsyncResponseIDResourceWithStreamingResponse(self)
83
+
84
+
85
+ class ResponseIDResourceWithRawResponse:
86
+ def __init__(self, response_id: ResponseIDResource) -> None:
87
+ self._response_id = response_id
88
+
89
+ @cached_property
90
+ def result(self) -> ResultResourceWithRawResponse:
91
+ return ResultResourceWithRawResponse(self._response_id.result)
92
+
93
+ @cached_property
94
+ def properties(self) -> PropertiesResourceWithRawResponse:
95
+ return PropertiesResourceWithRawResponse(self._response_id.properties)
96
+
97
+
98
+ class AsyncResponseIDResourceWithRawResponse:
99
+ def __init__(self, response_id: AsyncResponseIDResource) -> None:
100
+ self._response_id = response_id
101
+
102
+ @cached_property
103
+ def result(self) -> AsyncResultResourceWithRawResponse:
104
+ return AsyncResultResourceWithRawResponse(self._response_id.result)
105
+
106
+ @cached_property
107
+ def properties(self) -> AsyncPropertiesResourceWithRawResponse:
108
+ return AsyncPropertiesResourceWithRawResponse(self._response_id.properties)
109
+
110
+
111
+ class ResponseIDResourceWithStreamingResponse:
112
+ def __init__(self, response_id: ResponseIDResource) -> None:
113
+ self._response_id = response_id
114
+
115
+ @cached_property
116
+ def result(self) -> ResultResourceWithStreamingResponse:
117
+ return ResultResourceWithStreamingResponse(self._response_id.result)
118
+
119
+ @cached_property
120
+ def properties(self) -> PropertiesResourceWithStreamingResponse:
121
+ return PropertiesResourceWithStreamingResponse(self._response_id.properties)
122
+
123
+
124
+ class AsyncResponseIDResourceWithStreamingResponse:
125
+ def __init__(self, response_id: AsyncResponseIDResource) -> None:
126
+ self._response_id = response_id
127
+
128
+ @cached_property
129
+ def result(self) -> AsyncResultResourceWithStreamingResponse:
130
+ return AsyncResultResourceWithStreamingResponse(self._response_id.result)
131
+
132
+ @cached_property
133
+ def properties(self) -> AsyncPropertiesResourceWithStreamingResponse:
134
+ return AsyncPropertiesResourceWithStreamingResponse(self._response_id.properties)
@@ -0,0 +1,173 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ...._compat import cached_property
9
+ from ...._resource import SyncAPIResource, AsyncAPIResource
10
+ from ...._response import (
11
+ to_raw_response_wrapper,
12
+ to_streamed_response_wrapper,
13
+ async_to_raw_response_wrapper,
14
+ async_to_streamed_response_wrapper,
15
+ )
16
+ from ...._base_client import make_request_options
17
+ from ....types.request_result import RequestResult
18
+
19
+ __all__ = ["ResultResource", "AsyncResultResource"]
20
+
21
+
22
+ class ResultResource(SyncAPIResource):
23
+ @cached_property
24
+ def with_raw_response(self) -> ResultResourceWithRawResponse:
25
+ """
26
+ This property can be used as a prefix for any HTTP method call to return
27
+ the raw response object instead of the parsed content.
28
+
29
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
30
+ """
31
+ return ResultResourceWithRawResponse(self)
32
+
33
+ @cached_property
34
+ def with_streaming_response(self) -> ResultResourceWithStreamingResponse:
35
+ """
36
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
+
38
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
39
+ """
40
+ return ResultResourceWithStreamingResponse(self)
41
+
42
+ def retrieve(
43
+ self,
44
+ provider_response_id: str,
45
+ *,
46
+ category: str,
47
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
48
+ # The extra values given here take precedence over values defined on the client or passed to this method.
49
+ extra_headers: Headers | None = None,
50
+ extra_query: Query | None = None,
51
+ extra_body: Body | None = None,
52
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
53
+ ) -> RequestResult:
54
+ """
55
+ Get a Request results
56
+
57
+ Args:
58
+ extra_headers: Send extra headers
59
+
60
+ extra_query: Add additional query parameters to the request
61
+
62
+ extra_body: Add additional JSON properties to the request
63
+
64
+ timeout: Override the client-level default timeout for this request, in seconds
65
+ """
66
+ if not category:
67
+ raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
68
+ if not provider_response_id:
69
+ raise ValueError(
70
+ f"Expected a non-empty value for `provider_response_id` but received {provider_response_id!r}"
71
+ )
72
+ return self._get(
73
+ f"/api/v1/requests/provider/{category}/{provider_response_id}/result",
74
+ options=make_request_options(
75
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
76
+ ),
77
+ cast_to=RequestResult,
78
+ )
79
+
80
+
81
+ class AsyncResultResource(AsyncAPIResource):
82
+ @cached_property
83
+ def with_raw_response(self) -> AsyncResultResourceWithRawResponse:
84
+ """
85
+ This property can be used as a prefix for any HTTP method call to return
86
+ the raw response object instead of the parsed content.
87
+
88
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
89
+ """
90
+ return AsyncResultResourceWithRawResponse(self)
91
+
92
+ @cached_property
93
+ def with_streaming_response(self) -> AsyncResultResourceWithStreamingResponse:
94
+ """
95
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
96
+
97
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
98
+ """
99
+ return AsyncResultResourceWithStreamingResponse(self)
100
+
101
+ async def retrieve(
102
+ self,
103
+ provider_response_id: str,
104
+ *,
105
+ category: str,
106
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
107
+ # The extra values given here take precedence over values defined on the client or passed to this method.
108
+ extra_headers: Headers | None = None,
109
+ extra_query: Query | None = None,
110
+ extra_body: Body | None = None,
111
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
112
+ ) -> RequestResult:
113
+ """
114
+ Get a Request results
115
+
116
+ Args:
117
+ extra_headers: Send extra headers
118
+
119
+ extra_query: Add additional query parameters to the request
120
+
121
+ extra_body: Add additional JSON properties to the request
122
+
123
+ timeout: Override the client-level default timeout for this request, in seconds
124
+ """
125
+ if not category:
126
+ raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
127
+ if not provider_response_id:
128
+ raise ValueError(
129
+ f"Expected a non-empty value for `provider_response_id` but received {provider_response_id!r}"
130
+ )
131
+ return await self._get(
132
+ f"/api/v1/requests/provider/{category}/{provider_response_id}/result",
133
+ options=make_request_options(
134
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
135
+ ),
136
+ cast_to=RequestResult,
137
+ )
138
+
139
+
140
+ class ResultResourceWithRawResponse:
141
+ def __init__(self, result: ResultResource) -> None:
142
+ self._result = result
143
+
144
+ self.retrieve = to_raw_response_wrapper(
145
+ result.retrieve,
146
+ )
147
+
148
+
149
+ class AsyncResultResourceWithRawResponse:
150
+ def __init__(self, result: AsyncResultResource) -> None:
151
+ self._result = result
152
+
153
+ self.retrieve = async_to_raw_response_wrapper(
154
+ result.retrieve,
155
+ )
156
+
157
+
158
+ class ResultResourceWithStreamingResponse:
159
+ def __init__(self, result: ResultResource) -> None:
160
+ self._result = result
161
+
162
+ self.retrieve = to_streamed_response_wrapper(
163
+ result.retrieve,
164
+ )
165
+
166
+
167
+ class AsyncResultResourceWithStreamingResponse:
168
+ def __init__(self, result: AsyncResultResource) -> None:
169
+ self._result = result
170
+
171
+ self.retrieve = async_to_streamed_response_wrapper(
172
+ result.retrieve,
173
+ )
@@ -17,7 +17,7 @@ from ..._response import (
17
17
  async_to_streamed_response_wrapper,
18
18
  )
19
19
  from ..._base_client import make_request_options
20
- from ...types.use_cases import property_create_params
20
+ from ...types.use_cases import property_update_params
21
21
  from ...types.use_cases.property_create_response import PropertyCreateResponse
22
22
 
23
23
  __all__ = ["PropertiesResource", "AsyncPropertiesResource"]
@@ -43,7 +43,7 @@ class PropertiesResource(SyncAPIResource):
43
43
  """
44
44
  return PropertiesResourceWithStreamingResponse(self)
45
45
 
46
- def create(
46
+ def update(
47
47
  self,
48
48
  use_case_id: str,
49
49
  *,
@@ -69,9 +69,9 @@ class PropertiesResource(SyncAPIResource):
69
69
  """
70
70
  if not use_case_id:
71
71
  raise ValueError(f"Expected a non-empty value for `use_case_id` but received {use_case_id!r}")
72
- return self._post(
72
+ return self._put(
73
73
  f"/api/v1/use_cases/instances/{use_case_id}/properties",
74
- body=maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
74
+ body=maybe_transform({"properties": properties}, property_update_params.PropertyUpdateParams),
75
75
  options=make_request_options(
76
76
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
77
  ),
@@ -99,7 +99,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
99
99
  """
100
100
  return AsyncPropertiesResourceWithStreamingResponse(self)
101
101
 
102
- async def create(
102
+ async def update(
103
103
  self,
104
104
  use_case_id: str,
105
105
  *,
@@ -125,9 +125,9 @@ class AsyncPropertiesResource(AsyncAPIResource):
125
125
  """
126
126
  if not use_case_id:
127
127
  raise ValueError(f"Expected a non-empty value for `use_case_id` but received {use_case_id!r}")
128
- return await self._post(
128
+ return await self._put(
129
129
  f"/api/v1/use_cases/instances/{use_case_id}/properties",
130
- body=await async_maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
130
+ body=await async_maybe_transform({"properties": properties}, property_update_params.PropertyUpdateParams),
131
131
  options=make_request_options(
132
132
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
133
133
  ),
@@ -139,8 +139,8 @@ class PropertiesResourceWithRawResponse:
139
139
  def __init__(self, properties: PropertiesResource) -> None:
140
140
  self._properties = properties
141
141
 
142
- self.create = to_raw_response_wrapper(
143
- properties.create,
142
+ self.update = to_raw_response_wrapper(
143
+ properties.update,
144
144
  )
145
145
 
146
146
 
@@ -148,8 +148,8 @@ class AsyncPropertiesResourceWithRawResponse:
148
148
  def __init__(self, properties: AsyncPropertiesResource) -> None:
149
149
  self._properties = properties
150
150
 
151
- self.create = async_to_raw_response_wrapper(
152
- properties.create,
151
+ self.update = async_to_raw_response_wrapper(
152
+ properties.update,
153
153
  )
154
154
 
155
155
 
@@ -157,8 +157,8 @@ class PropertiesResourceWithStreamingResponse:
157
157
  def __init__(self, properties: PropertiesResource) -> None:
158
158
  self._properties = properties
159
159
 
160
- self.create = to_streamed_response_wrapper(
161
- properties.create,
160
+ self.update = to_streamed_response_wrapper(
161
+ properties.update,
162
162
  )
163
163
 
164
164
 
@@ -166,6 +166,6 @@ class AsyncPropertiesResourceWithStreamingResponse:
166
166
  def __init__(self, properties: AsyncPropertiesResource) -> None:
167
167
  self._properties = properties
168
168
 
169
- self.create = async_to_streamed_response_wrapper(
170
- properties.create,
169
+ self.update = async_to_streamed_response_wrapper(
170
+ properties.update,
171
171
  )
payi/types/__init__.py CHANGED
@@ -14,6 +14,7 @@ from .cost_data import CostData as CostData
14
14
  from .cost_details import CostDetails as CostDetails
15
15
  from .requests_data import RequestsData as RequestsData
16
16
  from .limit_response import LimitResponse as LimitResponse
17
+ from .request_result import RequestResult as RequestResult
17
18
  from .ingest_response import IngestResponse as IngestResponse
18
19
  from .total_cost_data import TotalCostData as TotalCostData
19
20
  from .default_response import DefaultResponse as DefaultResponse
@@ -1,7 +1,7 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from ..._models import BaseModel
4
- from ..shared.xproxy_result import XproxyResult
3
+ from .._models import BaseModel
4
+ from .shared.xproxy_result import XproxyResult
5
5
 
6
6
  __all__ = ["RequestResult"]
7
7
 
@@ -1,6 +1,3 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  from __future__ import annotations
4
-
5
- from .request_result import RequestResult as RequestResult
6
- from .property_create_params import PropertyCreateParams as PropertyCreateParams
@@ -0,0 +1,5 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .property_update_params import PropertyUpdateParams as PropertyUpdateParams
@@ -5,8 +5,8 @@ from __future__ import annotations
5
5
  from typing import Dict
6
6
  from typing_extensions import Required, TypedDict
7
7
 
8
- __all__ = ["PropertyCreateParams"]
8
+ __all__ = ["PropertyUpdateParams"]
9
9
 
10
10
 
11
- class PropertyCreateParams(TypedDict, total=False):
11
+ class PropertyUpdateParams(TypedDict, total=False):
12
12
  properties: Required[Dict[str, str]]
@@ -0,0 +1,5 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .property_update_params import PropertyUpdateParams as PropertyUpdateParams
@@ -0,0 +1,14 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["PropertyUpdateParams"]
9
+
10
+
11
+ class PropertyUpdateParams(TypedDict, total=False):
12
+ category: Required[str]
13
+
14
+ properties: Required[Dict[str, str]]
@@ -44,6 +44,8 @@ class XproxyResult(BaseModel):
44
44
 
45
45
  use_case_id: Optional[str] = None
46
46
 
47
+ use_case_name: Optional[str] = None
48
+
47
49
  use_case_step: Optional[str] = None
48
50
 
49
51
  user_id: Optional[str] = None
@@ -7,7 +7,7 @@ from .kpi_list_response import KpiListResponse as KpiListResponse
7
7
  from .kpi_update_params import KpiUpdateParams as KpiUpdateParams
8
8
  from .use_case_definition import UseCaseDefinition as UseCaseDefinition
9
9
  from .definition_list_params import DefinitionListParams as DefinitionListParams
10
- from .property_create_params import PropertyCreateParams as PropertyCreateParams
10
+ from .property_update_params import PropertyUpdateParams as PropertyUpdateParams
11
11
  from .definition_create_params import DefinitionCreateParams as DefinitionCreateParams
12
12
  from .definition_update_params import DefinitionUpdateParams as DefinitionUpdateParams
13
13
  from .property_create_response import PropertyCreateResponse as PropertyCreateResponse
@@ -5,8 +5,8 @@ from __future__ import annotations
5
5
  from typing import Dict
6
6
  from typing_extensions import Required, TypedDict
7
7
 
8
- __all__ = ["PropertyCreateParams"]
8
+ __all__ = ["PropertyUpdateParams"]
9
9
 
10
10
 
11
- class PropertyCreateParams(TypedDict, total=False):
11
+ class PropertyUpdateParams(TypedDict, total=False):
12
12
  properties: Required[Dict[str, str]]