payi 0.1.0a30__py3-none-any.whl → 0.1.0a32__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.

@@ -0,0 +1,174 @@
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, Optional
6
+
7
+ import httpx
8
+
9
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ..._utils import (
11
+ maybe_transform,
12
+ async_maybe_transform,
13
+ )
14
+ from ..._compat import cached_property
15
+ from ..._resource import SyncAPIResource, AsyncAPIResource
16
+ from ..._response import (
17
+ to_raw_response_wrapper,
18
+ to_streamed_response_wrapper,
19
+ async_to_raw_response_wrapper,
20
+ async_to_streamed_response_wrapper,
21
+ )
22
+ from ..._base_client import make_request_options
23
+ from ...types.experiences import property_create_params
24
+ from ...types.experience_instance_response import ExperienceInstanceResponse
25
+
26
+ __all__ = ["PropertiesResource", "AsyncPropertiesResource"]
27
+
28
+
29
+ class PropertiesResource(SyncAPIResource):
30
+ @cached_property
31
+ def with_raw_response(self) -> PropertiesResourceWithRawResponse:
32
+ """
33
+ This property can be used as a prefix for any HTTP method call to return the
34
+ the raw response object instead of the parsed content.
35
+
36
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
37
+ """
38
+ return PropertiesResourceWithRawResponse(self)
39
+
40
+ @cached_property
41
+ def with_streaming_response(self) -> PropertiesResourceWithStreamingResponse:
42
+ """
43
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44
+
45
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
46
+ """
47
+ return PropertiesResourceWithStreamingResponse(self)
48
+
49
+ def create(
50
+ self,
51
+ experience_id: str,
52
+ *,
53
+ properties: Optional[Dict[str, str]],
54
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
55
+ # The extra values given here take precedence over values defined on the client or passed to this method.
56
+ extra_headers: Headers | None = None,
57
+ extra_query: Query | None = None,
58
+ extra_body: Body | None = None,
59
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
60
+ ) -> ExperienceInstanceResponse:
61
+ """
62
+ Update an Experience properties
63
+
64
+ Args:
65
+ extra_headers: Send extra headers
66
+
67
+ extra_query: Add additional query parameters to the request
68
+
69
+ extra_body: Add additional JSON properties to the request
70
+
71
+ timeout: Override the client-level default timeout for this request, in seconds
72
+ """
73
+ if not experience_id:
74
+ raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
75
+ return self._post(
76
+ f"/api/v1/experiences/instances/{experience_id}/properties",
77
+ body=maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
78
+ options=make_request_options(
79
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
80
+ ),
81
+ cast_to=ExperienceInstanceResponse,
82
+ )
83
+
84
+
85
+ class AsyncPropertiesResource(AsyncAPIResource):
86
+ @cached_property
87
+ def with_raw_response(self) -> AsyncPropertiesResourceWithRawResponse:
88
+ """
89
+ This property can be used as a prefix for any HTTP method call to return the
90
+ the raw response object instead of the parsed content.
91
+
92
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
93
+ """
94
+ return AsyncPropertiesResourceWithRawResponse(self)
95
+
96
+ @cached_property
97
+ def with_streaming_response(self) -> AsyncPropertiesResourceWithStreamingResponse:
98
+ """
99
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
100
+
101
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
102
+ """
103
+ return AsyncPropertiesResourceWithStreamingResponse(self)
104
+
105
+ async def create(
106
+ self,
107
+ experience_id: str,
108
+ *,
109
+ properties: Optional[Dict[str, str]],
110
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
111
+ # The extra values given here take precedence over values defined on the client or passed to this method.
112
+ extra_headers: Headers | None = None,
113
+ extra_query: Query | None = None,
114
+ extra_body: Body | None = None,
115
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
116
+ ) -> ExperienceInstanceResponse:
117
+ """
118
+ Update an Experience properties
119
+
120
+ Args:
121
+ extra_headers: Send extra headers
122
+
123
+ extra_query: Add additional query parameters to the request
124
+
125
+ extra_body: Add additional JSON properties to the request
126
+
127
+ timeout: Override the client-level default timeout for this request, in seconds
128
+ """
129
+ if not experience_id:
130
+ raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
131
+ return await self._post(
132
+ f"/api/v1/experiences/instances/{experience_id}/properties",
133
+ body=await async_maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
134
+ options=make_request_options(
135
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
136
+ ),
137
+ cast_to=ExperienceInstanceResponse,
138
+ )
139
+
140
+
141
+ class PropertiesResourceWithRawResponse:
142
+ def __init__(self, properties: PropertiesResource) -> None:
143
+ self._properties = properties
144
+
145
+ self.create = to_raw_response_wrapper(
146
+ properties.create,
147
+ )
148
+
149
+
150
+ class AsyncPropertiesResourceWithRawResponse:
151
+ def __init__(self, properties: AsyncPropertiesResource) -> None:
152
+ self._properties = properties
153
+
154
+ self.create = async_to_raw_response_wrapper(
155
+ properties.create,
156
+ )
157
+
158
+
159
+ class PropertiesResourceWithStreamingResponse:
160
+ def __init__(self, properties: PropertiesResource) -> None:
161
+ self._properties = properties
162
+
163
+ self.create = to_streamed_response_wrapper(
164
+ properties.create,
165
+ )
166
+
167
+
168
+ class AsyncPropertiesResourceWithStreamingResponse:
169
+ def __init__(self, properties: AsyncPropertiesResource) -> None:
170
+ self._properties = properties
171
+
172
+ self.create = async_to_streamed_response_wrapper(
173
+ properties.create,
174
+ )
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .requests import (
4
+ RequestsResource,
5
+ AsyncRequestsResource,
6
+ RequestsResourceWithRawResponse,
7
+ AsyncRequestsResourceWithRawResponse,
8
+ RequestsResourceWithStreamingResponse,
9
+ AsyncRequestsResourceWithStreamingResponse,
10
+ )
11
+ from .properties import (
12
+ PropertiesResource,
13
+ AsyncPropertiesResource,
14
+ PropertiesResourceWithRawResponse,
15
+ AsyncPropertiesResourceWithRawResponse,
16
+ PropertiesResourceWithStreamingResponse,
17
+ AsyncPropertiesResourceWithStreamingResponse,
18
+ )
19
+
20
+ __all__ = [
21
+ "PropertiesResource",
22
+ "AsyncPropertiesResource",
23
+ "PropertiesResourceWithRawResponse",
24
+ "AsyncPropertiesResourceWithRawResponse",
25
+ "PropertiesResourceWithStreamingResponse",
26
+ "AsyncPropertiesResourceWithStreamingResponse",
27
+ "RequestsResource",
28
+ "AsyncRequestsResource",
29
+ "RequestsResourceWithRawResponse",
30
+ "AsyncRequestsResourceWithRawResponse",
31
+ "RequestsResourceWithStreamingResponse",
32
+ "AsyncRequestsResourceWithStreamingResponse",
33
+ ]
@@ -0,0 +1,174 @@
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, Optional
6
+
7
+ import httpx
8
+
9
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ..._utils import (
11
+ maybe_transform,
12
+ async_maybe_transform,
13
+ )
14
+ from ..._compat import cached_property
15
+ from ..._resource import SyncAPIResource, AsyncAPIResource
16
+ from ..._response import (
17
+ to_raw_response_wrapper,
18
+ to_streamed_response_wrapper,
19
+ async_to_raw_response_wrapper,
20
+ async_to_streamed_response_wrapper,
21
+ )
22
+ from ..._base_client import make_request_options
23
+ from ...types.requests import property_create_params
24
+ from ...types.experiences.properties_response import PropertiesResponse
25
+
26
+ __all__ = ["PropertiesResource", "AsyncPropertiesResource"]
27
+
28
+
29
+ class PropertiesResource(SyncAPIResource):
30
+ @cached_property
31
+ def with_raw_response(self) -> PropertiesResourceWithRawResponse:
32
+ """
33
+ This property can be used as a prefix for any HTTP method call to return the
34
+ the raw response object instead of the parsed content.
35
+
36
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
37
+ """
38
+ return PropertiesResourceWithRawResponse(self)
39
+
40
+ @cached_property
41
+ def with_streaming_response(self) -> PropertiesResourceWithStreamingResponse:
42
+ """
43
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44
+
45
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
46
+ """
47
+ return PropertiesResourceWithStreamingResponse(self)
48
+
49
+ def create(
50
+ self,
51
+ request_id: str,
52
+ *,
53
+ properties: Optional[Dict[str, str]],
54
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
55
+ # The extra values given here take precedence over values defined on the client or passed to this method.
56
+ extra_headers: Headers | None = None,
57
+ extra_query: Query | None = None,
58
+ extra_body: Body | None = None,
59
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
60
+ ) -> PropertiesResponse:
61
+ """
62
+ Create properties for a Request
63
+
64
+ Args:
65
+ extra_headers: Send extra headers
66
+
67
+ extra_query: Add additional query parameters to the request
68
+
69
+ extra_body: Add additional JSON properties to the request
70
+
71
+ timeout: Override the client-level default timeout for this request, in seconds
72
+ """
73
+ if not request_id:
74
+ raise ValueError(f"Expected a non-empty value for `request_id` but received {request_id!r}")
75
+ return self._post(
76
+ f"/api/v1/requests/{request_id}/properties",
77
+ body=maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
78
+ options=make_request_options(
79
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
80
+ ),
81
+ cast_to=PropertiesResponse,
82
+ )
83
+
84
+
85
+ class AsyncPropertiesResource(AsyncAPIResource):
86
+ @cached_property
87
+ def with_raw_response(self) -> AsyncPropertiesResourceWithRawResponse:
88
+ """
89
+ This property can be used as a prefix for any HTTP method call to return the
90
+ the raw response object instead of the parsed content.
91
+
92
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
93
+ """
94
+ return AsyncPropertiesResourceWithRawResponse(self)
95
+
96
+ @cached_property
97
+ def with_streaming_response(self) -> AsyncPropertiesResourceWithStreamingResponse:
98
+ """
99
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
100
+
101
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
102
+ """
103
+ return AsyncPropertiesResourceWithStreamingResponse(self)
104
+
105
+ async def create(
106
+ self,
107
+ request_id: str,
108
+ *,
109
+ properties: Optional[Dict[str, str]],
110
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
111
+ # The extra values given here take precedence over values defined on the client or passed to this method.
112
+ extra_headers: Headers | None = None,
113
+ extra_query: Query | None = None,
114
+ extra_body: Body | None = None,
115
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
116
+ ) -> PropertiesResponse:
117
+ """
118
+ Create properties for a Request
119
+
120
+ Args:
121
+ extra_headers: Send extra headers
122
+
123
+ extra_query: Add additional query parameters to the request
124
+
125
+ extra_body: Add additional JSON properties to the request
126
+
127
+ timeout: Override the client-level default timeout for this request, in seconds
128
+ """
129
+ if not request_id:
130
+ raise ValueError(f"Expected a non-empty value for `request_id` but received {request_id!r}")
131
+ return await self._post(
132
+ f"/api/v1/requests/{request_id}/properties",
133
+ body=await async_maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
134
+ options=make_request_options(
135
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
136
+ ),
137
+ cast_to=PropertiesResponse,
138
+ )
139
+
140
+
141
+ class PropertiesResourceWithRawResponse:
142
+ def __init__(self, properties: PropertiesResource) -> None:
143
+ self._properties = properties
144
+
145
+ self.create = to_raw_response_wrapper(
146
+ properties.create,
147
+ )
148
+
149
+
150
+ class AsyncPropertiesResourceWithRawResponse:
151
+ def __init__(self, properties: AsyncPropertiesResource) -> None:
152
+ self._properties = properties
153
+
154
+ self.create = async_to_raw_response_wrapper(
155
+ properties.create,
156
+ )
157
+
158
+
159
+ class PropertiesResourceWithStreamingResponse:
160
+ def __init__(self, properties: PropertiesResource) -> None:
161
+ self._properties = properties
162
+
163
+ self.create = to_streamed_response_wrapper(
164
+ properties.create,
165
+ )
166
+
167
+
168
+ class AsyncPropertiesResourceWithStreamingResponse:
169
+ def __init__(self, properties: AsyncPropertiesResource) -> None:
170
+ self._properties = properties
171
+
172
+ self.create = async_to_streamed_response_wrapper(
173
+ properties.create,
174
+ )
@@ -0,0 +1,102 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from ..._compat import cached_property
6
+ from .properties import (
7
+ PropertiesResource,
8
+ AsyncPropertiesResource,
9
+ PropertiesResourceWithRawResponse,
10
+ AsyncPropertiesResourceWithRawResponse,
11
+ PropertiesResourceWithStreamingResponse,
12
+ AsyncPropertiesResourceWithStreamingResponse,
13
+ )
14
+ from ..._resource import SyncAPIResource, AsyncAPIResource
15
+
16
+ __all__ = ["RequestsResource", "AsyncRequestsResource"]
17
+
18
+
19
+ class RequestsResource(SyncAPIResource):
20
+ @cached_property
21
+ def properties(self) -> PropertiesResource:
22
+ return PropertiesResource(self._client)
23
+
24
+ @cached_property
25
+ def with_raw_response(self) -> RequestsResourceWithRawResponse:
26
+ """
27
+ This property can be used as a prefix for any HTTP method call to return the
28
+ the raw response object instead of the parsed content.
29
+
30
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
31
+ """
32
+ return RequestsResourceWithRawResponse(self)
33
+
34
+ @cached_property
35
+ def with_streaming_response(self) -> RequestsResourceWithStreamingResponse:
36
+ """
37
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
+
39
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
40
+ """
41
+ return RequestsResourceWithStreamingResponse(self)
42
+
43
+
44
+ class AsyncRequestsResource(AsyncAPIResource):
45
+ @cached_property
46
+ def properties(self) -> AsyncPropertiesResource:
47
+ return AsyncPropertiesResource(self._client)
48
+
49
+ @cached_property
50
+ def with_raw_response(self) -> AsyncRequestsResourceWithRawResponse:
51
+ """
52
+ This property can be used as a prefix for any HTTP method call to return the
53
+ the raw response object instead of the parsed content.
54
+
55
+ For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
56
+ """
57
+ return AsyncRequestsResourceWithRawResponse(self)
58
+
59
+ @cached_property
60
+ def with_streaming_response(self) -> AsyncRequestsResourceWithStreamingResponse:
61
+ """
62
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63
+
64
+ For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
65
+ """
66
+ return AsyncRequestsResourceWithStreamingResponse(self)
67
+
68
+
69
+ class RequestsResourceWithRawResponse:
70
+ def __init__(self, requests: RequestsResource) -> None:
71
+ self._requests = requests
72
+
73
+ @cached_property
74
+ def properties(self) -> PropertiesResourceWithRawResponse:
75
+ return PropertiesResourceWithRawResponse(self._requests.properties)
76
+
77
+
78
+ class AsyncRequestsResourceWithRawResponse:
79
+ def __init__(self, requests: AsyncRequestsResource) -> None:
80
+ self._requests = requests
81
+
82
+ @cached_property
83
+ def properties(self) -> AsyncPropertiesResourceWithRawResponse:
84
+ return AsyncPropertiesResourceWithRawResponse(self._requests.properties)
85
+
86
+
87
+ class RequestsResourceWithStreamingResponse:
88
+ def __init__(self, requests: RequestsResource) -> None:
89
+ self._requests = requests
90
+
91
+ @cached_property
92
+ def properties(self) -> PropertiesResourceWithStreamingResponse:
93
+ return PropertiesResourceWithStreamingResponse(self._requests.properties)
94
+
95
+
96
+ class AsyncRequestsResourceWithStreamingResponse:
97
+ def __init__(self, requests: AsyncRequestsResource) -> None:
98
+ self._requests = requests
99
+
100
+ @cached_property
101
+ def properties(self) -> AsyncPropertiesResourceWithStreamingResponse:
102
+ return AsyncPropertiesResourceWithStreamingResponse(self._requests.properties)
payi/types/__init__.py CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from .csat import Csat as Csat
6
5
  from .cost_data import CostData as CostData
7
6
  from .cost_details import CostDetails as CostDetails
8
7
  from .billing_model import BillingModel as BillingModel
@@ -15,10 +14,8 @@ from .default_response import DefaultResponse as DefaultResponse
15
14
  from .category_response import CategoryResponse as CategoryResponse
16
15
  from .paged_budget_list import PagedBudgetList as PagedBudgetList
17
16
  from .budget_list_params import BudgetListParams as BudgetListParams
18
- from .csat_create_params import CsatCreateParams as CsatCreateParams
19
17
  from .ingest_bulk_params import IngestBulkParams as IngestBulkParams
20
18
  from .ingest_event_param import IngestEventParam as IngestEventParam
21
- from .experience_instance import ExperienceInstance as ExperienceInstance
22
19
  from .ingest_units_params import IngestUnitsParams as IngestUnitsParams
23
20
  from .budget_create_params import BudgetCreateParams as BudgetCreateParams
24
21
  from .budget_update_params import BudgetUpdateParams as BudgetUpdateParams
@@ -30,6 +27,7 @@ from .category_resource_response import CategoryResourceResponse as CategoryReso
30
27
  from .billing_model_create_params import BillingModelCreateParams as BillingModelCreateParams
31
28
  from .billing_model_list_response import BillingModelListResponse as BillingModelListResponse
32
29
  from .billing_model_update_params import BillingModelUpdateParams as BillingModelUpdateParams
30
+ from .experience_instance_response import ExperienceInstanceResponse as ExperienceInstanceResponse
33
31
  from .price_modifier_create_params import PriceModifierCreateParams as PriceModifierCreateParams
34
32
  from .price_modifier_update_params import PriceModifierUpdateParams as PriceModifierUpdateParams
35
33
  from .category_list_resources_response import CategoryListResourcesResponse as CategoryListResourcesResponse
@@ -18,7 +18,7 @@ class BillingModel(BaseModel):
18
18
 
19
19
  name: str
20
20
 
21
- type: Literal["costplus"]
21
+ type: Literal["invalid", "costplus", "subscription", "hybrid"]
22
22
 
23
23
  updated_on: datetime
24
24
 
@@ -11,7 +11,7 @@ __all__ = ["BillingModelCreateParams"]
11
11
  class BillingModelCreateParams(TypedDict, total=False):
12
12
  name: Required[str]
13
13
 
14
- type: Required[Literal["costplus"]]
14
+ type: Required[Literal["invalid", "costplus", "subscription", "hybrid"]]
15
15
 
16
16
  default_price_modifier: Optional[float]
17
17
 
@@ -9,7 +9,7 @@ __all__ = ["BillingModelUpdateParams"]
9
9
 
10
10
 
11
11
  class BillingModelUpdateParams(TypedDict, total=False):
12
- type: Required[Literal["costplus"]]
12
+ type: Required[Literal["invalid", "costplus", "subscription", "hybrid"]]
13
13
 
14
14
  default_price_modifier: Optional[float]
15
15
 
@@ -1,12 +1,15 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ from typing import Dict
3
4
 
4
5
  from .._models import BaseModel
5
6
 
6
- __all__ = ["ExperienceInstance"]
7
+ __all__ = ["ExperienceInstanceResponse"]
7
8
 
8
9
 
9
- class ExperienceInstance(BaseModel):
10
+ class ExperienceInstanceResponse(BaseModel):
10
11
  experience_id: str
11
12
 
13
+ properties: Dict[str, str]
14
+
12
15
  request_id: str
@@ -2,8 +2,12 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from .csat_response import CsatResponse as CsatResponse
5
6
  from .experience_type import ExperienceType as ExperienceType
6
7
  from .type_list_params import TypeListParams as TypeListParams
8
+ from .csat_create_params import CsatCreateParams as CsatCreateParams
7
9
  from .type_create_params import TypeCreateParams as TypeCreateParams
8
10
  from .type_list_response import TypeListResponse as TypeListResponse
9
11
  from .type_update_params import TypeUpdateParams as TypeUpdateParams
12
+ from .properties_response import PropertiesResponse as PropertiesResponse
13
+ from .property_create_params import PropertyCreateParams as PropertyCreateParams
@@ -1,10 +1,10 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
 
4
- from .._models import BaseModel
4
+ from ..._models import BaseModel
5
5
 
6
- __all__ = ["Csat"]
6
+ __all__ = ["CsatResponse"]
7
7
 
8
8
 
9
- class Csat(BaseModel):
9
+ class CsatResponse(BaseModel):
10
10
  request_id: str
@@ -0,0 +1,11 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["PropertiesResponse"]
8
+
9
+
10
+ class PropertiesResponse(BaseModel):
11
+ request_id: Optional[str] = None
@@ -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 import Dict, Optional
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["PropertyCreateParams"]
9
+
10
+
11
+ class PropertyCreateParams(TypedDict, total=False):
12
+ properties: Required[Optional[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_create_params import PropertyCreateParams as PropertyCreateParams
@@ -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 import Dict, Optional
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["PropertyCreateParams"]
9
+
10
+
11
+ class PropertyCreateParams(TypedDict, total=False):
12
+ properties: Required[Optional[Dict[str, str]]]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a30
3
+ Version: 0.1.0a32
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
@@ -314,18 +314,19 @@ can also get all the extra fields on the Pydantic model as a dict with
314
314
 
315
315
  You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
316
316
 
317
- - Support for proxies
318
- - Custom transports
317
+ - Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
318
+ - Custom [transports](https://www.python-httpx.org/advanced/transports/)
319
319
  - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
320
320
 
321
321
  ```python
322
+ import httpx
322
323
  from payi import Payi, DefaultHttpxClient
323
324
 
324
325
  client = Payi(
325
326
  # Or use the `PAYI_BASE_URL` env var
326
327
  base_url="http://my.test.server.example.com:8083",
327
328
  http_client=DefaultHttpxClient(
328
- proxies="http://my.test.proxy.example.com",
329
+ proxy="http://my.test.proxy.example.com",
329
330
  transport=httpx.HTTPTransport(local_address="0.0.0.0"),
330
331
  ),
331
332
  )