payi 0.1.0a18__tar.gz → 0.1.0a19__tar.gz

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 (125) hide show
  1. payi-0.1.0a19/.release-please-manifest.json +3 -0
  2. {payi-0.1.0a18 → payi-0.1.0a19}/CHANGELOG.md +14 -0
  3. {payi-0.1.0a18 → payi-0.1.0a19}/PKG-INFO +6 -6
  4. {payi-0.1.0a18 → payi-0.1.0a19}/README.md +5 -5
  5. {payi-0.1.0a18 → payi-0.1.0a19}/pyproject.toml +4 -1
  6. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_client.py +24 -24
  7. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_version.py +1 -1
  8. {payi-0.1.0a18 → payi-0.1.0a19}/tests/conftest.py +3 -3
  9. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_client.py +63 -127
  10. payi-0.1.0a18/.release-please-manifest.json +0 -3
  11. {payi-0.1.0a18 → payi-0.1.0a19}/.gitignore +0 -0
  12. {payi-0.1.0a18 → payi-0.1.0a19}/CONTRIBUTING.md +0 -0
  13. {payi-0.1.0a18 → payi-0.1.0a19}/LICENSE +0 -0
  14. {payi-0.1.0a18 → payi-0.1.0a19}/SECURITY.md +0 -0
  15. {payi-0.1.0a18 → payi-0.1.0a19}/api.md +0 -0
  16. {payi-0.1.0a18 → payi-0.1.0a19}/bin/check-release-environment +0 -0
  17. {payi-0.1.0a18 → payi-0.1.0a19}/bin/publish-pypi +0 -0
  18. {payi-0.1.0a18 → payi-0.1.0a19}/examples/.keep +0 -0
  19. {payi-0.1.0a18 → payi-0.1.0a19}/mypy.ini +0 -0
  20. {payi-0.1.0a18 → payi-0.1.0a19}/noxfile.py +0 -0
  21. {payi-0.1.0a18 → payi-0.1.0a19}/release-please-config.json +0 -0
  22. {payi-0.1.0a18 → payi-0.1.0a19}/requirements-dev.lock +0 -0
  23. {payi-0.1.0a18 → payi-0.1.0a19}/requirements.lock +0 -0
  24. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/__init__.py +0 -0
  25. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_base_client.py +0 -0
  26. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_compat.py +0 -0
  27. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_constants.py +0 -0
  28. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_exceptions.py +0 -0
  29. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_files.py +0 -0
  30. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_models.py +0 -0
  31. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_qs.py +0 -0
  32. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_resource.py +0 -0
  33. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_response.py +0 -0
  34. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_streaming.py +0 -0
  35. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_types.py +0 -0
  36. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/__init__.py +0 -0
  37. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_logs.py +0 -0
  38. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_proxy.py +0 -0
  39. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_reflection.py +0 -0
  40. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_streams.py +0 -0
  41. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_sync.py +0 -0
  42. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_transform.py +0 -0
  43. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_typing.py +0 -0
  44. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/_utils/_utils.py +0 -0
  45. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/lib/.keep +0 -0
  46. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/lib/helpers.py +0 -0
  47. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/py.typed +0 -0
  48. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/__init__.py +0 -0
  49. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/budgets/__init__.py +0 -0
  50. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/budgets/budgets.py +0 -0
  51. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/budgets/tags.py +0 -0
  52. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/categories/__init__.py +0 -0
  53. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/categories/categories.py +0 -0
  54. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/categories/resources.py +0 -0
  55. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/experiences/__init__.py +0 -0
  56. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/experiences/experiences.py +0 -0
  57. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/experiences/types.py +0 -0
  58. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/resources/ingest.py +0 -0
  59. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/__init__.py +0 -0
  60. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budget_create_params.py +0 -0
  61. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budget_history_response.py +0 -0
  62. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budget_list_params.py +0 -0
  63. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budget_response.py +0 -0
  64. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budget_update_params.py +0 -0
  65. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/__init__.py +0 -0
  66. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/budget_tags.py +0 -0
  67. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_create_params.py +0 -0
  68. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_create_response.py +0 -0
  69. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_delete_response.py +0 -0
  70. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_list_response.py +0 -0
  71. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_remove_params.py +0 -0
  72. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_remove_response.py +0 -0
  73. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_update_params.py +0 -0
  74. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/budgets/tag_update_response.py +0 -0
  75. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/bulk_ingest_response.py +0 -0
  76. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/categories/__init__.py +0 -0
  77. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/categories/resource_create_params.py +0 -0
  78. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/categories/resource_list_response.py +0 -0
  79. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/category_delete_resource_response.py +0 -0
  80. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/category_delete_response.py +0 -0
  81. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/category_list_resources_response.py +0 -0
  82. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/category_list_response.py +0 -0
  83. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/category_resource_response.py +0 -0
  84. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/category_response.py +0 -0
  85. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/cost_data.py +0 -0
  86. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/cost_details.py +0 -0
  87. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/default_response.py +0 -0
  88. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/experience_instance.py +0 -0
  89. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/experiences/__init__.py +0 -0
  90. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/experiences/experience_type.py +0 -0
  91. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/experiences/type_create_params.py +0 -0
  92. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/experiences/type_list_response.py +0 -0
  93. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/experiences/type_update_params.py +0 -0
  94. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/ingest_bulk_params.py +0 -0
  95. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/ingest_event_param.py +0 -0
  96. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/ingest_response.py +0 -0
  97. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/ingest_units_params.py +0 -0
  98. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/paged_budget_list.py +0 -0
  99. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/requests_data.py +0 -0
  100. {payi-0.1.0a18 → payi-0.1.0a19}/src/payi/types/total_cost_data.py +0 -0
  101. {payi-0.1.0a18 → payi-0.1.0a19}/tests/__init__.py +0 -0
  102. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/__init__.py +0 -0
  103. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/budgets/__init__.py +0 -0
  104. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/budgets/test_tags.py +0 -0
  105. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/categories/__init__.py +0 -0
  106. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/categories/test_resources.py +0 -0
  107. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/experiences/__init__.py +0 -0
  108. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/experiences/test_types.py +0 -0
  109. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/test_budgets.py +0 -0
  110. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/test_categories.py +0 -0
  111. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/test_experiences.py +0 -0
  112. {payi-0.1.0a18 → payi-0.1.0a19}/tests/api_resources/test_ingest.py +0 -0
  113. {payi-0.1.0a18 → payi-0.1.0a19}/tests/sample_file.txt +0 -0
  114. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_deepcopy.py +0 -0
  115. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_extract_files.py +0 -0
  116. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_files.py +0 -0
  117. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_models.py +0 -0
  118. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_qs.py +0 -0
  119. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_required_args.py +0 -0
  120. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_response.py +0 -0
  121. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_streaming.py +0 -0
  122. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_transform.py +0 -0
  123. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_utils/test_proxy.py +0 -0
  124. {payi-0.1.0a18 → payi-0.1.0a19}/tests/test_utils/test_typing.py +0 -0
  125. {payi-0.1.0a18 → payi-0.1.0a19}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.19"
3
+ }
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.19 (2024-08-09)
4
+
5
+ Full Changelog: [v0.1.0-alpha.18...v0.1.0-alpha.19](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.18...v0.1.0-alpha.19)
6
+
7
+ ### Features
8
+
9
+ * **api:** update via SDK Studio ([#89](https://github.com/Pay-i/pay-i-python/issues/89)) ([b031428](https://github.com/Pay-i/pay-i-python/commit/b03142879e9d1798d08288578d078eab98e86353))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **ci:** bump prism mock server version ([#91](https://github.com/Pay-i/pay-i-python/issues/91)) ([6cd2937](https://github.com/Pay-i/pay-i-python/commit/6cd29379f24f7a7d261ed6beea8e4833e01eacfd))
15
+ * **internal:** ensure package is importable in lint cmd ([#92](https://github.com/Pay-i/pay-i-python/issues/92)) ([5af85e5](https://github.com/Pay-i/pay-i-python/commit/5af85e57dac94be4da96b45b406e683701150365))
16
+
3
17
  ## 0.1.0-alpha.18 (2024-08-08)
4
18
 
5
19
  Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a18
3
+ Version: 0.1.0a19
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
@@ -63,7 +63,7 @@ from payi import Payi
63
63
 
64
64
  client = Payi(
65
65
  # This is the default and can be omitted
66
- payi_api_key=os.environ.get("PAYI_API_KEY"),
66
+ api_key=os.environ.get("PAYI_API_KEY"),
67
67
  )
68
68
 
69
69
  budget_response = client.budgets.create(
@@ -73,10 +73,10 @@ budget_response = client.budgets.create(
73
73
  print(budget_response.request_id)
74
74
  ```
75
75
 
76
- While you can provide a `payi_api_key` keyword argument,
76
+ While you can provide an `api_key` keyword argument,
77
77
  we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
78
- to add `PAYI_API_KEY="My Payi API Key"` to your `.env` file
79
- so that your Payi API Key is not stored in source control.
78
+ to add `PAYI_API_KEY="My API Key"` to your `.env` file
79
+ so that your API Key is not stored in source control.
80
80
 
81
81
  ## Async usage
82
82
 
@@ -89,7 +89,7 @@ from payi import AsyncPayi
89
89
 
90
90
  client = AsyncPayi(
91
91
  # This is the default and can be omitted
92
- payi_api_key=os.environ.get("PAYI_API_KEY"),
92
+ api_key=os.environ.get("PAYI_API_KEY"),
93
93
  )
94
94
 
95
95
 
@@ -29,7 +29,7 @@ from payi import Payi
29
29
 
30
30
  client = Payi(
31
31
  # This is the default and can be omitted
32
- payi_api_key=os.environ.get("PAYI_API_KEY"),
32
+ api_key=os.environ.get("PAYI_API_KEY"),
33
33
  )
34
34
 
35
35
  budget_response = client.budgets.create(
@@ -39,10 +39,10 @@ budget_response = client.budgets.create(
39
39
  print(budget_response.request_id)
40
40
  ```
41
41
 
42
- While you can provide a `payi_api_key` keyword argument,
42
+ While you can provide an `api_key` keyword argument,
43
43
  we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
44
- to add `PAYI_API_KEY="My Payi API Key"` to your `.env` file
45
- so that your Payi API Key is not stored in source control.
44
+ to add `PAYI_API_KEY="My API Key"` to your `.env` file
45
+ so that your API Key is not stored in source control.
46
46
 
47
47
  ## Async usage
48
48
 
@@ -55,7 +55,7 @@ from payi import AsyncPayi
55
55
 
56
56
  client = AsyncPayi(
57
57
  # This is the default and can be omitted
58
- payi_api_key=os.environ.get("PAYI_API_KEY"),
58
+ api_key=os.environ.get("PAYI_API_KEY"),
59
59
  )
60
60
 
61
61
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "payi"
3
- version = "0.1.0-alpha.18"
3
+ version = "0.1.0-alpha.19"
4
4
  description = "The official Python library for the payi API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -76,10 +76,13 @@ format = { chain = [
76
76
  "lint" = { chain = [
77
77
  "check:ruff",
78
78
  "typecheck",
79
+ "check:importable",
79
80
  ]}
80
81
  "check:ruff" = "ruff check ."
81
82
  "fix:ruff" = "ruff check --fix ."
82
83
 
84
+ "check:importable" = "python -c 'import payi'"
85
+
83
86
  typecheck = { chain = [
84
87
  "typecheck:pyright",
85
88
  "typecheck:mypy"
@@ -54,12 +54,12 @@ class Payi(SyncAPIClient):
54
54
  with_streaming_response: PayiWithStreamedResponse
55
55
 
56
56
  # client options
57
- payi_api_key: str
57
+ api_key: str
58
58
 
59
59
  def __init__(
60
60
  self,
61
61
  *,
62
- payi_api_key: str | None = None,
62
+ api_key: str | None = None,
63
63
  base_url: str | httpx.URL | None = None,
64
64
  timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
65
65
  max_retries: int = DEFAULT_MAX_RETRIES,
@@ -81,15 +81,15 @@ class Payi(SyncAPIClient):
81
81
  ) -> None:
82
82
  """Construct a new synchronous payi client instance.
83
83
 
84
- This automatically infers the `payi_api_key` argument from the `PAYI_API_KEY` environment variable if it is not provided.
84
+ This automatically infers the `api_key` argument from the `PAYI_API_KEY` environment variable if it is not provided.
85
85
  """
86
- if payi_api_key is None:
87
- payi_api_key = os.environ.get("PAYI_API_KEY")
88
- if payi_api_key is None:
86
+ if api_key is None:
87
+ api_key = os.environ.get("PAYI_API_KEY")
88
+ if api_key is None:
89
89
  raise PayiError(
90
- "The payi_api_key client option must be set either by passing payi_api_key to the client or by setting the PAYI_API_KEY environment variable"
90
+ "The api_key client option must be set either by passing api_key to the client or by setting the PAYI_API_KEY environment variable"
91
91
  )
92
- self.payi_api_key = payi_api_key
92
+ self.api_key = api_key
93
93
 
94
94
  if base_url is None:
95
95
  base_url = os.environ.get("PAYI_BASE_URL")
@@ -122,8 +122,8 @@ class Payi(SyncAPIClient):
122
122
  @property
123
123
  @override
124
124
  def auth_headers(self) -> dict[str, str]:
125
- payi_api_key = self.payi_api_key
126
- return {"Authorization": payi_api_key}
125
+ api_key = self.api_key
126
+ return {"Authorization": api_key}
127
127
 
128
128
  @property
129
129
  @override
@@ -137,7 +137,7 @@ class Payi(SyncAPIClient):
137
137
  def copy(
138
138
  self,
139
139
  *,
140
- payi_api_key: str | None = None,
140
+ api_key: str | None = None,
141
141
  base_url: str | httpx.URL | None = None,
142
142
  timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
143
143
  http_client: httpx.Client | None = None,
@@ -171,7 +171,7 @@ class Payi(SyncAPIClient):
171
171
 
172
172
  http_client = http_client or self._client
173
173
  return self.__class__(
174
- payi_api_key=payi_api_key or self.payi_api_key,
174
+ api_key=api_key or self.api_key,
175
175
  base_url=base_url or self.base_url,
176
176
  timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
177
177
  http_client=http_client,
@@ -228,12 +228,12 @@ class AsyncPayi(AsyncAPIClient):
228
228
  with_streaming_response: AsyncPayiWithStreamedResponse
229
229
 
230
230
  # client options
231
- payi_api_key: str
231
+ api_key: str
232
232
 
233
233
  def __init__(
234
234
  self,
235
235
  *,
236
- payi_api_key: str | None = None,
236
+ api_key: str | None = None,
237
237
  base_url: str | httpx.URL | None = None,
238
238
  timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
239
239
  max_retries: int = DEFAULT_MAX_RETRIES,
@@ -255,15 +255,15 @@ class AsyncPayi(AsyncAPIClient):
255
255
  ) -> None:
256
256
  """Construct a new async payi client instance.
257
257
 
258
- This automatically infers the `payi_api_key` argument from the `PAYI_API_KEY` environment variable if it is not provided.
258
+ This automatically infers the `api_key` argument from the `PAYI_API_KEY` environment variable if it is not provided.
259
259
  """
260
- if payi_api_key is None:
261
- payi_api_key = os.environ.get("PAYI_API_KEY")
262
- if payi_api_key is None:
260
+ if api_key is None:
261
+ api_key = os.environ.get("PAYI_API_KEY")
262
+ if api_key is None:
263
263
  raise PayiError(
264
- "The payi_api_key client option must be set either by passing payi_api_key to the client or by setting the PAYI_API_KEY environment variable"
264
+ "The api_key client option must be set either by passing api_key to the client or by setting the PAYI_API_KEY environment variable"
265
265
  )
266
- self.payi_api_key = payi_api_key
266
+ self.api_key = api_key
267
267
 
268
268
  if base_url is None:
269
269
  base_url = os.environ.get("PAYI_BASE_URL")
@@ -296,8 +296,8 @@ class AsyncPayi(AsyncAPIClient):
296
296
  @property
297
297
  @override
298
298
  def auth_headers(self) -> dict[str, str]:
299
- payi_api_key = self.payi_api_key
300
- return {"Authorization": payi_api_key}
299
+ api_key = self.api_key
300
+ return {"Authorization": api_key}
301
301
 
302
302
  @property
303
303
  @override
@@ -311,7 +311,7 @@ class AsyncPayi(AsyncAPIClient):
311
311
  def copy(
312
312
  self,
313
313
  *,
314
- payi_api_key: str | None = None,
314
+ api_key: str | None = None,
315
315
  base_url: str | httpx.URL | None = None,
316
316
  timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
317
317
  http_client: httpx.AsyncClient | None = None,
@@ -345,7 +345,7 @@ class AsyncPayi(AsyncAPIClient):
345
345
 
346
346
  http_client = http_client or self._client
347
347
  return self.__class__(
348
- payi_api_key=payi_api_key or self.payi_api_key,
348
+ api_key=api_key or self.api_key,
349
349
  base_url=base_url or self.base_url,
350
350
  timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
351
351
  http_client=http_client,
@@ -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.18" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.19" # x-release-please-version
@@ -26,7 +26,7 @@ def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
26
26
 
27
27
  base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
28
28
 
29
- payi_api_key = "My Payi API Key"
29
+ api_key = "My API Key"
30
30
 
31
31
 
32
32
  @pytest.fixture(scope="session")
@@ -35,7 +35,7 @@ def client(request: FixtureRequest) -> Iterator[Payi]:
35
35
  if not isinstance(strict, bool):
36
36
  raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
37
37
 
38
- with Payi(base_url=base_url, payi_api_key=payi_api_key, _strict_response_validation=strict) as client:
38
+ with Payi(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client:
39
39
  yield client
40
40
 
41
41
 
@@ -45,5 +45,5 @@ async def async_client(request: FixtureRequest) -> AsyncIterator[AsyncPayi]:
45
45
  if not isinstance(strict, bool):
46
46
  raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
47
47
 
48
- async with AsyncPayi(base_url=base_url, payi_api_key=payi_api_key, _strict_response_validation=strict) as client:
48
+ async with AsyncPayi(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client:
49
49
  yield client