payi 0.1.0a21__py3-none-any.whl → 0.1.0a23__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 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 python_bitness == "32bit":
2001
+ if sys.maxsize <= 2**32:
2002
2002
  return "x32"
2003
2003
 
2004
2004
  if machine:
payi/_client.py CHANGED
@@ -94,7 +94,7 @@ class Payi(SyncAPIClient):
94
94
  if base_url is None:
95
95
  base_url = os.environ.get("PAYI_BASE_URL")
96
96
  if base_url is None:
97
- base_url = f"https://apim-payi-prod-eastus.azure-api.net"
97
+ base_url = f"https://api.pay-i.com"
98
98
 
99
99
  super().__init__(
100
100
  version=__version__,
@@ -268,7 +268,7 @@ class AsyncPayi(AsyncAPIClient):
268
268
  if base_url is None:
269
269
  base_url = os.environ.get("PAYI_BASE_URL")
270
270
  if base_url is None:
271
- base_url = f"https://apim-payi-prod-eastus.azure-api.net"
271
+ base_url = f"https://api.pay-i.com"
272
272
 
273
273
  super().__init__(
274
274
  version=__version__,
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
@@ -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.21" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.23" # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a21
3
+ Version: 0.1.0a23
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
@@ -1,17 +1,17 @@
1
1
  payi/__init__.py,sha256=LWpfR6WSMPTnmmx3ToqqZ0A8CNduLcuxY1SSOqhPxuk,2381
2
- payi/_base_client.py,sha256=ceMQR7sfWlJfFsA91UJzG4MT-QnPJ3jhqe-EpEmpRBo,66460
3
- payi/_client.py,sha256=RxYPuTG7ZWoSmp_FrUVcWyC_64nov_7_OvrwEM_8NN0,16672
2
+ payi/_base_client.py,sha256=xgy0VhpF1500GXK7p5Ht6LpyO_D6SQgS80Hch9w9q0U,66414
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=3METTz2oSlPfVcHL0fZ-L5IPnvckZDkgEe1H58mRsFE,28210
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=uIzHKQnRW3xF8AwVnDGbcxga9x8qelZPjxp9xnCrPBo,165
14
+ payi/_version.py,sha256=JpzaHNK2tGmA6esXZHcHhBDhEvoJp6x6ie42VWTkZwE,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
@@ -77,7 +77,7 @@ payi/types/experiences/experience_type.py,sha256=KKjkfI0eaoB1TmTlA4UpHKa2fB1q0zX
77
77
  payi/types/experiences/type_create_params.py,sha256=8dNpffodzeD5vm3s6UJrZVOG7YsiTkXo7viDnoEoCZY,311
78
78
  payi/types/experiences/type_list_response.py,sha256=DgkPLw40oUqBETLePVMVenstMsGG12rZRU9w6kgQN28,280
79
79
  payi/types/experiences/type_update_params.py,sha256=ziUJASn8QF_5nSp5lohT0HLK0tTOciT-X35CVH9dA5Q,329
80
- payi-0.1.0a21.dist-info/METADATA,sha256=zdplHN3Shh0ZB_N7StZ_Y4hcXeDzgdy0HvrB4XCcRJc,12006
81
- payi-0.1.0a21.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
82
- payi-0.1.0a21.dist-info/licenses/LICENSE,sha256=8vX1pjh3esb6D5DvXAf6NxiBcVyon8aHWNJCxmmHXeY,11334
83
- payi-0.1.0a21.dist-info/RECORD,,
80
+ payi-0.1.0a23.dist-info/METADATA,sha256=gYYuo8NNhK0lnrqDa2PKlwN_TZBcnK2BVt8fp31nEcQ,12006
81
+ payi-0.1.0a23.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
82
+ payi-0.1.0a23.dist-info/licenses/LICENSE,sha256=8vX1pjh3esb6D5DvXAf6NxiBcVyon8aHWNJCxmmHXeY,11334
83
+ payi-0.1.0a23.dist-info/RECORD,,