gr4vy 1.1.25__py3-none-any.whl → 1.1.27__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.
- gr4vy/_version.py +3 -3
- gr4vy/models/__init__.py +14 -0
- gr4vy/models/browse_payment_method_definitions_getop.py +36 -0
- gr4vy/sdk.py +193 -3
- {gr4vy-1.1.25.dist-info → gr4vy-1.1.27.dist-info}/METADATA +22 -49
- {gr4vy-1.1.25.dist-info → gr4vy-1.1.27.dist-info}/RECORD +7 -6
- {gr4vy-1.1.25.dist-info → gr4vy-1.1.27.dist-info}/WHEEL +0 -0
gr4vy/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "gr4vy"
|
|
6
|
-
__version__: str = "1.1.
|
|
6
|
+
__version__: str = "1.1.27"
|
|
7
7
|
__openapi_doc_version__: str = "1.0.0"
|
|
8
|
-
__gen_version__: str = "2.674.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 1.1.
|
|
8
|
+
__gen_version__: str = "2.674.3"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.1.27 2.674.3 1.0.0 gr4vy"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
gr4vy/models/__init__.py
CHANGED
|
@@ -89,6 +89,12 @@ if TYPE_CHECKING:
|
|
|
89
89
|
BraintreeDynamicDataFieldsOptionsTypedDict,
|
|
90
90
|
)
|
|
91
91
|
from .braintreeoptions import BraintreeOptions, BraintreeOptionsTypedDict
|
|
92
|
+
from .browse_payment_method_definitions_getop import (
|
|
93
|
+
BrowsePaymentMethodDefinitionsGetGlobals,
|
|
94
|
+
BrowsePaymentMethodDefinitionsGetGlobalsTypedDict,
|
|
95
|
+
BrowsePaymentMethodDefinitionsGetRequest,
|
|
96
|
+
BrowsePaymentMethodDefinitionsGetRequestTypedDict,
|
|
97
|
+
)
|
|
92
98
|
from .browserinfo import BrowserInfo, BrowserInfoTypedDict, UserDevice
|
|
93
99
|
from .buyer import Buyer, BuyerTypedDict
|
|
94
100
|
from .buyercreate import BuyerCreate, BuyerCreateTypedDict
|
|
@@ -1208,6 +1214,10 @@ __all__ = [
|
|
|
1208
1214
|
"BraintreeDynamicDataFieldsOptionsTypedDict",
|
|
1209
1215
|
"BraintreeOptions",
|
|
1210
1216
|
"BraintreeOptionsTypedDict",
|
|
1217
|
+
"BrowsePaymentMethodDefinitionsGetGlobals",
|
|
1218
|
+
"BrowsePaymentMethodDefinitionsGetGlobalsTypedDict",
|
|
1219
|
+
"BrowsePaymentMethodDefinitionsGetRequest",
|
|
1220
|
+
"BrowsePaymentMethodDefinitionsGetRequestTypedDict",
|
|
1211
1221
|
"BrowserInfo",
|
|
1212
1222
|
"BrowserInfoTypedDict",
|
|
1213
1223
|
"Buyer",
|
|
@@ -2089,6 +2099,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2089
2099
|
"BraintreeDynamicDataFieldsOptionsTypedDict": ".braintreedynamicdatafieldsoptions",
|
|
2090
2100
|
"BraintreeOptions": ".braintreeoptions",
|
|
2091
2101
|
"BraintreeOptionsTypedDict": ".braintreeoptions",
|
|
2102
|
+
"BrowsePaymentMethodDefinitionsGetGlobals": ".browse_payment_method_definitions_getop",
|
|
2103
|
+
"BrowsePaymentMethodDefinitionsGetGlobalsTypedDict": ".browse_payment_method_definitions_getop",
|
|
2104
|
+
"BrowsePaymentMethodDefinitionsGetRequest": ".browse_payment_method_definitions_getop",
|
|
2105
|
+
"BrowsePaymentMethodDefinitionsGetRequestTypedDict": ".browse_payment_method_definitions_getop",
|
|
2092
2106
|
"BrowserInfo": ".browserinfo",
|
|
2093
2107
|
"BrowserInfoTypedDict": ".browserinfo",
|
|
2094
2108
|
"UserDevice": ".browserinfo",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from gr4vy.types import BaseModel
|
|
5
|
+
from gr4vy.utils import FieldMetadata, HeaderMetadata
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BrowsePaymentMethodDefinitionsGetGlobalsTypedDict(TypedDict):
|
|
12
|
+
merchant_account_id: NotRequired[str]
|
|
13
|
+
r"""The ID of the merchant account to use for this request."""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class BrowsePaymentMethodDefinitionsGetGlobals(BaseModel):
|
|
17
|
+
merchant_account_id: Annotated[
|
|
18
|
+
Optional[str],
|
|
19
|
+
pydantic.Field(alias="x-gr4vy-merchant-account-id"),
|
|
20
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
21
|
+
] = None
|
|
22
|
+
r"""The ID of the merchant account to use for this request."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class BrowsePaymentMethodDefinitionsGetRequestTypedDict(TypedDict):
|
|
26
|
+
merchant_account_id: NotRequired[str]
|
|
27
|
+
r"""The ID of the merchant account to use for this request."""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class BrowsePaymentMethodDefinitionsGetRequest(BaseModel):
|
|
31
|
+
merchant_account_id: Annotated[
|
|
32
|
+
Optional[str],
|
|
33
|
+
pydantic.Field(alias="x-gr4vy-merchant-account-id"),
|
|
34
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
35
|
+
] = None
|
|
36
|
+
r"""The ID of the merchant account to use for this request."""
|
gr4vy/sdk.py
CHANGED
|
@@ -5,13 +5,15 @@ from .httpclient import AsyncHttpClient, ClientOwner, HttpClient, close_clients
|
|
|
5
5
|
from .sdkconfiguration import SDKConfiguration
|
|
6
6
|
from .utils.logger import Logger, get_default_logger
|
|
7
7
|
from .utils.retries import RetryConfig
|
|
8
|
-
from gr4vy import models, utils
|
|
9
|
-
from gr4vy._hooks import SDKHooks
|
|
8
|
+
from gr4vy import errors, models, utils
|
|
9
|
+
from gr4vy._hooks import HookContext, SDKHooks
|
|
10
10
|
from gr4vy.models import internal
|
|
11
11
|
from gr4vy.types import OptionalNullable, UNSET
|
|
12
|
+
from gr4vy.utils import get_security_from_env
|
|
13
|
+
from gr4vy.utils.unmarshal_json_response import unmarshal_json_response
|
|
12
14
|
import httpx
|
|
13
15
|
import importlib
|
|
14
|
-
from typing import Any, Callable, Dict, Optional, TYPE_CHECKING, Union, cast
|
|
16
|
+
from typing import Any, Callable, Dict, Mapping, Optional, TYPE_CHECKING, Union, cast
|
|
15
17
|
import weakref
|
|
16
18
|
|
|
17
19
|
if TYPE_CHECKING:
|
|
@@ -245,3 +247,191 @@ class Gr4vy(BaseSDK):
|
|
|
245
247
|
):
|
|
246
248
|
await self.sdk_configuration.async_client.aclose()
|
|
247
249
|
self.sdk_configuration.async_client = None
|
|
250
|
+
|
|
251
|
+
def browse_payment_method_definitions_get(
|
|
252
|
+
self,
|
|
253
|
+
*,
|
|
254
|
+
merchant_account_id: Optional[str] = None,
|
|
255
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
256
|
+
server_url: Optional[str] = None,
|
|
257
|
+
timeout_ms: Optional[int] = None,
|
|
258
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
259
|
+
) -> Any:
|
|
260
|
+
r"""Browse
|
|
261
|
+
|
|
262
|
+
:param merchant_account_id: The ID of the merchant account to use for this request.
|
|
263
|
+
:param retries: Override the default retry configuration for this method
|
|
264
|
+
:param server_url: Override the default server URL for this method
|
|
265
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
266
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
267
|
+
"""
|
|
268
|
+
base_url = None
|
|
269
|
+
url_variables = None
|
|
270
|
+
if timeout_ms is None:
|
|
271
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
272
|
+
|
|
273
|
+
if server_url is not None:
|
|
274
|
+
base_url = server_url
|
|
275
|
+
else:
|
|
276
|
+
base_url = self._get_url(base_url, url_variables)
|
|
277
|
+
|
|
278
|
+
request = models.BrowsePaymentMethodDefinitionsGetRequest(
|
|
279
|
+
merchant_account_id=merchant_account_id,
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
req = self._build_request(
|
|
283
|
+
method="GET",
|
|
284
|
+
path="/payment-method-definitions",
|
|
285
|
+
base_url=base_url,
|
|
286
|
+
url_variables=url_variables,
|
|
287
|
+
request=request,
|
|
288
|
+
request_body_required=False,
|
|
289
|
+
request_has_path_params=False,
|
|
290
|
+
request_has_query_params=True,
|
|
291
|
+
user_agent_header="user-agent",
|
|
292
|
+
accept_header_value="application/json",
|
|
293
|
+
http_headers=http_headers,
|
|
294
|
+
_globals=models.BrowsePaymentMethodDefinitionsGetGlobals(
|
|
295
|
+
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
296
|
+
),
|
|
297
|
+
security=self.sdk_configuration.security,
|
|
298
|
+
timeout_ms=timeout_ms,
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
if retries == UNSET:
|
|
302
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
303
|
+
retries = self.sdk_configuration.retry_config
|
|
304
|
+
else:
|
|
305
|
+
retries = utils.RetryConfig(
|
|
306
|
+
"backoff", utils.BackoffStrategy(200, 200, 1, 1000), True
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
retry_config = None
|
|
310
|
+
if isinstance(retries, utils.RetryConfig):
|
|
311
|
+
retry_config = (retries, ["5XX"])
|
|
312
|
+
|
|
313
|
+
http_res = self.do_request(
|
|
314
|
+
hook_ctx=HookContext(
|
|
315
|
+
config=self.sdk_configuration,
|
|
316
|
+
base_url=base_url or "",
|
|
317
|
+
operation_id="browse_payment_method_definitions_get",
|
|
318
|
+
oauth2_scopes=[],
|
|
319
|
+
security_source=get_security_from_env(
|
|
320
|
+
self.sdk_configuration.security, models.Security
|
|
321
|
+
),
|
|
322
|
+
),
|
|
323
|
+
request=req,
|
|
324
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
325
|
+
retry_config=retry_config,
|
|
326
|
+
)
|
|
327
|
+
|
|
328
|
+
response_data: Any = None
|
|
329
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
330
|
+
return unmarshal_json_response(Any, http_res)
|
|
331
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
332
|
+
response_data = unmarshal_json_response(
|
|
333
|
+
errors.HTTPValidationErrorData, http_res
|
|
334
|
+
)
|
|
335
|
+
raise errors.HTTPValidationError(response_data, http_res)
|
|
336
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
337
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
338
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
339
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
340
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
341
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
342
|
+
|
|
343
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
344
|
+
|
|
345
|
+
async def browse_payment_method_definitions_get_async(
|
|
346
|
+
self,
|
|
347
|
+
*,
|
|
348
|
+
merchant_account_id: Optional[str] = None,
|
|
349
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
350
|
+
server_url: Optional[str] = None,
|
|
351
|
+
timeout_ms: Optional[int] = None,
|
|
352
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
353
|
+
) -> Any:
|
|
354
|
+
r"""Browse
|
|
355
|
+
|
|
356
|
+
:param merchant_account_id: The ID of the merchant account to use for this request.
|
|
357
|
+
:param retries: Override the default retry configuration for this method
|
|
358
|
+
:param server_url: Override the default server URL for this method
|
|
359
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
360
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
361
|
+
"""
|
|
362
|
+
base_url = None
|
|
363
|
+
url_variables = None
|
|
364
|
+
if timeout_ms is None:
|
|
365
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
366
|
+
|
|
367
|
+
if server_url is not None:
|
|
368
|
+
base_url = server_url
|
|
369
|
+
else:
|
|
370
|
+
base_url = self._get_url(base_url, url_variables)
|
|
371
|
+
|
|
372
|
+
request = models.BrowsePaymentMethodDefinitionsGetRequest(
|
|
373
|
+
merchant_account_id=merchant_account_id,
|
|
374
|
+
)
|
|
375
|
+
|
|
376
|
+
req = self._build_request_async(
|
|
377
|
+
method="GET",
|
|
378
|
+
path="/payment-method-definitions",
|
|
379
|
+
base_url=base_url,
|
|
380
|
+
url_variables=url_variables,
|
|
381
|
+
request=request,
|
|
382
|
+
request_body_required=False,
|
|
383
|
+
request_has_path_params=False,
|
|
384
|
+
request_has_query_params=True,
|
|
385
|
+
user_agent_header="user-agent",
|
|
386
|
+
accept_header_value="application/json",
|
|
387
|
+
http_headers=http_headers,
|
|
388
|
+
_globals=models.BrowsePaymentMethodDefinitionsGetGlobals(
|
|
389
|
+
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
390
|
+
),
|
|
391
|
+
security=self.sdk_configuration.security,
|
|
392
|
+
timeout_ms=timeout_ms,
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
if retries == UNSET:
|
|
396
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
397
|
+
retries = self.sdk_configuration.retry_config
|
|
398
|
+
else:
|
|
399
|
+
retries = utils.RetryConfig(
|
|
400
|
+
"backoff", utils.BackoffStrategy(200, 200, 1, 1000), True
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
retry_config = None
|
|
404
|
+
if isinstance(retries, utils.RetryConfig):
|
|
405
|
+
retry_config = (retries, ["5XX"])
|
|
406
|
+
|
|
407
|
+
http_res = await self.do_request_async(
|
|
408
|
+
hook_ctx=HookContext(
|
|
409
|
+
config=self.sdk_configuration,
|
|
410
|
+
base_url=base_url or "",
|
|
411
|
+
operation_id="browse_payment_method_definitions_get",
|
|
412
|
+
oauth2_scopes=[],
|
|
413
|
+
security_source=get_security_from_env(
|
|
414
|
+
self.sdk_configuration.security, models.Security
|
|
415
|
+
),
|
|
416
|
+
),
|
|
417
|
+
request=req,
|
|
418
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
419
|
+
retry_config=retry_config,
|
|
420
|
+
)
|
|
421
|
+
|
|
422
|
+
response_data: Any = None
|
|
423
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
424
|
+
return unmarshal_json_response(Any, http_res)
|
|
425
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
426
|
+
response_data = unmarshal_json_response(
|
|
427
|
+
errors.HTTPValidationErrorData, http_res
|
|
428
|
+
)
|
|
429
|
+
raise errors.HTTPValidationError(response_data, http_res)
|
|
430
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
431
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
432
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
433
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
434
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
435
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
436
|
+
|
|
437
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: gr4vy
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.27
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Gr4vy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -387,6 +387,9 @@ except ValueError as error:
|
|
|
387
387
|
|
|
388
388
|
* [list](https://github.com/gr4vy/gr4vy-python/blob/master/docs/sdks/balances/README.md#list) - List gift card balances
|
|
389
389
|
|
|
390
|
+
### [Gr4vy SDK](https://github.com/gr4vy/gr4vy-python/blob/master/docs/sdks/gr4vy/README.md)
|
|
391
|
+
|
|
392
|
+
* [browse_payment_method_definitions_get](https://github.com/gr4vy/gr4vy-python/blob/master/docs/sdks/gr4vy/README.md#browse_payment_method_definitions_get) - Browse
|
|
390
393
|
|
|
391
394
|
### [merchant_accounts](https://github.com/gr4vy/gr4vy-python/blob/master/docs/sdks/merchantaccountssdk/README.md)
|
|
392
395
|
|
|
@@ -588,14 +591,9 @@ with Gr4vy(
|
|
|
588
591
|
bearer_auth=os.getenv("GR4VY_BEARER_AUTH", ""),
|
|
589
592
|
) as g_client:
|
|
590
593
|
|
|
591
|
-
res = g_client.
|
|
592
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
593
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
594
|
-
],
|
|
594
|
+
res = g_client.browse_payment_method_definitions_get(,
|
|
595
595
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
|
596
596
|
|
|
597
|
-
assert res is not None
|
|
598
|
-
|
|
599
597
|
# Handle response
|
|
600
598
|
print(res)
|
|
601
599
|
|
|
@@ -614,12 +612,7 @@ with Gr4vy(
|
|
|
614
612
|
bearer_auth=os.getenv("GR4VY_BEARER_AUTH", ""),
|
|
615
613
|
) as g_client:
|
|
616
614
|
|
|
617
|
-
res = g_client.
|
|
618
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
619
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
620
|
-
])
|
|
621
|
-
|
|
622
|
-
assert res is not None
|
|
615
|
+
res = g_client.browse_payment_method_definitions_get()
|
|
623
616
|
|
|
624
617
|
# Handle response
|
|
625
618
|
print(res)
|
|
@@ -645,7 +638,6 @@ with Gr4vy(
|
|
|
645
638
|
```python
|
|
646
639
|
from gr4vy import Gr4vy, errors
|
|
647
640
|
import os
|
|
648
|
-
from typing import Literal
|
|
649
641
|
|
|
650
642
|
|
|
651
643
|
with Gr4vy(
|
|
@@ -655,12 +647,7 @@ with Gr4vy(
|
|
|
655
647
|
res = None
|
|
656
648
|
try:
|
|
657
649
|
|
|
658
|
-
res = g_client.
|
|
659
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
660
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
661
|
-
])
|
|
662
|
-
|
|
663
|
-
assert res is not None
|
|
650
|
+
res = g_client.browse_payment_method_definitions_get()
|
|
664
651
|
|
|
665
652
|
# Handle response
|
|
666
653
|
print(res)
|
|
@@ -675,29 +662,25 @@ with Gr4vy(
|
|
|
675
662
|
print(e.raw_response)
|
|
676
663
|
|
|
677
664
|
# Depending on the method different errors may be thrown
|
|
678
|
-
if isinstance(e, errors.
|
|
679
|
-
print(e.data.
|
|
680
|
-
print(e.data.code) # Optional[str]
|
|
681
|
-
print(e.data.status) # Optional[int]
|
|
682
|
-
print(e.data.message) # Optional[str]
|
|
683
|
-
print(e.data.details) # Optional[List[models.ErrorDetail]]
|
|
665
|
+
if isinstance(e, errors.HTTPValidationError):
|
|
666
|
+
print(e.data.detail) # Optional[List[models.ValidationError]]
|
|
684
667
|
```
|
|
685
668
|
|
|
686
669
|
### Error Classes
|
|
687
670
|
**Primary errors:**
|
|
688
671
|
* [`Gr4vyError`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/gr4vyerror.py): The base class for HTTP error responses.
|
|
689
|
-
* [`Error400`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error400.py): The request was invalid. Status code `400`.
|
|
690
|
-
* [`Error401`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error401.py): The request was unauthorized. Status code `401`.
|
|
691
|
-
* [`Error403`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error403.py): The credentials were invalid or the caller did not have permission to act on the resource. Status code `403`.
|
|
692
|
-
* [`Error404`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error404.py): The resource was not found. Status code `404`.
|
|
693
|
-
* [`Error405`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error405.py): The request method was not allowed. Status code `405`.
|
|
694
|
-
* [`Error409`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error409.py): A duplicate record was found. Status code `409`.
|
|
695
|
-
* [`Error425`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error425.py): The request was too early. Status code `425`.
|
|
696
|
-
* [`Error429`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error429.py): Too many requests were made. Status code `429`.
|
|
697
|
-
* [`Error500`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error500.py): The server encountered an error. Status code `500`.
|
|
698
|
-
* [`Error502`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error502.py): The server encountered an error. Status code `502`.
|
|
699
|
-
* [`Error504`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error504.py): The server encountered an error. Status code `504`.
|
|
672
|
+
* [`Error400`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error400.py): The request was invalid. Status code `400`. *
|
|
673
|
+
* [`Error401`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error401.py): The request was unauthorized. Status code `401`. *
|
|
674
|
+
* [`Error403`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error403.py): The credentials were invalid or the caller did not have permission to act on the resource. Status code `403`. *
|
|
675
|
+
* [`Error404`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error404.py): The resource was not found. Status code `404`. *
|
|
676
|
+
* [`Error405`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error405.py): The request method was not allowed. Status code `405`. *
|
|
677
|
+
* [`Error409`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error409.py): A duplicate record was found. Status code `409`. *
|
|
700
678
|
* [`HTTPValidationError`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/httpvalidationerror.py): Validation Error. Status code `422`. *
|
|
679
|
+
* [`Error425`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error425.py): The request was too early. Status code `425`. *
|
|
680
|
+
* [`Error429`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error429.py): Too many requests were made. Status code `429`. *
|
|
681
|
+
* [`Error500`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error500.py): The server encountered an error. Status code `500`. *
|
|
682
|
+
* [`Error502`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error502.py): The server encountered an error. Status code `502`. *
|
|
683
|
+
* [`Error504`](https://github.com/gr4vy/gr4vy-python/blob/master/./src/gr4vy/errors/error504.py): The server encountered an error. Status code `504`. *
|
|
701
684
|
|
|
702
685
|
<details><summary>Less common errors (5)</summary>
|
|
703
686
|
|
|
@@ -749,12 +732,7 @@ with Gr4vy(
|
|
|
749
732
|
bearer_auth=os.getenv("GR4VY_BEARER_AUTH", ""),
|
|
750
733
|
) as g_client:
|
|
751
734
|
|
|
752
|
-
res = g_client.
|
|
753
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
754
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
755
|
-
])
|
|
756
|
-
|
|
757
|
-
assert res is not None
|
|
735
|
+
res = g_client.browse_payment_method_definitions_get()
|
|
758
736
|
|
|
759
737
|
# Handle response
|
|
760
738
|
print(res)
|
|
@@ -775,12 +753,7 @@ with Gr4vy(
|
|
|
775
753
|
bearer_auth=os.getenv("GR4VY_BEARER_AUTH", ""),
|
|
776
754
|
) as g_client:
|
|
777
755
|
|
|
778
|
-
res = g_client.
|
|
779
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
780
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
781
|
-
])
|
|
782
|
-
|
|
783
|
-
assert res is not None
|
|
756
|
+
res = g_client.browse_payment_method_definitions_get()
|
|
784
757
|
|
|
785
758
|
# Handle response
|
|
786
759
|
print(res)
|
|
@@ -2,7 +2,7 @@ gr4vy/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
|
|
|
2
2
|
gr4vy/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
|
|
3
3
|
gr4vy/_hooks/sdkhooks.py,sha256=3jKTs2B1lcAxBMJge9C-qL0RGbKGLcrHvikzi67Tbdo,2493
|
|
4
4
|
gr4vy/_hooks/types.py,sha256=0O7dbbolkiFAnHkNULvwoLsiXJu0_Wmhev163bvZbW8,3039
|
|
5
|
-
gr4vy/_version.py,sha256=
|
|
5
|
+
gr4vy/_version.py,sha256=LIjllwDFwRnCQD--o3jeOoOOyurOsbCbZEEIFD9KRhk,454
|
|
6
6
|
gr4vy/account_updater.py,sha256=AIu37O0v3fkWjbcbZJf1MI32lpVnIWynRmd1ys_cSnk,477
|
|
7
7
|
gr4vy/all.py,sha256=WwnLoNn3RgXNpf4Xoz12ct94JD7NMpLz-kzesHHh4m8,15172
|
|
8
8
|
gr4vy/audit_logs.py,sha256=iAT3rnS0NYNKZGw5IVl_MC_RPAHMJNXHfd_K--HIplU,17015
|
|
@@ -40,7 +40,7 @@ gr4vy/gift_cards_sdk.py,sha256=hgGnEm1_4pvLndCFebzr5QmqqbzkTb2vfyNVl2HpRnU,57363
|
|
|
40
40
|
gr4vy/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
41
41
|
gr4vy/jobs.py,sha256=WHx0epnlxOMHFSXTJPwuI5dhOO_acGTX72Lbz6fvD8A,14565
|
|
42
42
|
gr4vy/merchant_accounts_sdk.py,sha256=TGwGZqyD_b7xR2pggTsOa3H813-zhakhtjS9d_NsfmA,80907
|
|
43
|
-
gr4vy/models/__init__.py,sha256=
|
|
43
|
+
gr4vy/models/__init__.py,sha256=PD6bXr5clDiVZlT1KsaSEZAwooHJc6QsA8wBlPY-_Ow,130505
|
|
44
44
|
gr4vy/models/accountsreceivablesreportspec.py,sha256=X4YKJ5TII4KFi1I47BYt1Egxsfs84EaqXsb7g90IpLw,1012
|
|
45
45
|
gr4vy/models/accountupdaterinquirysummary.py,sha256=rOJn5uG7cNFUkd6BbsAve6ueUlAJzU5_d_zeDu6RBTg,1097
|
|
46
46
|
gr4vy/models/accountupdaterjob.py,sha256=JKuRwrc5yYSAQ9lD5Ta4MALtfXBF7tn_37lllQsH2B0,1972
|
|
@@ -75,6 +75,7 @@ gr4vy/models/billingdetails_input.py,sha256=_dAZlZgDxhrByze2tF5cRYmg8Qrm3hNcNCk3
|
|
|
75
75
|
gr4vy/models/billingdetails_output.py,sha256=x-hzFKeM5zkpVYFbwKTMtsmV_vftRhZBtTSxcRdLgxs,3006
|
|
76
76
|
gr4vy/models/braintreedynamicdatafieldsoptions.py,sha256=k1wWtn_Be2zyK7Q4iqa03w5V7KN-qWBcP4IXAqaSOBk,2060
|
|
77
77
|
gr4vy/models/braintreeoptions.py,sha256=A8igahmK4kHgOhZ0tUHjwaDFpqy0K0nnSb5fZcfXwBQ,2701
|
|
78
|
+
gr4vy/models/browse_payment_method_definitions_getop.py,sha256=5KwHBcFbni4TY3GOXXbrBrnmTTUYKT5NdXF1oDJ3oSM,1338
|
|
78
79
|
gr4vy/models/browserinfo.py,sha256=zDTJTe2gbG0JDBIEAGEg4k215XTd4HLKY7Y_sFWrciU,2649
|
|
79
80
|
gr4vy/models/buyer.py,sha256=KEN4eeI7HSPr8NcrR8ieEhwCeqZpALWHwCebfRSeL7U,3569
|
|
80
81
|
gr4vy/models/buyercreate.py,sha256=bFhAzie6osvQYc8YSlCwwZuEIaTmgmddVpD607fbHNQ,2555
|
|
@@ -398,7 +399,7 @@ gr4vy/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
|
398
399
|
gr4vy/refunds_sdk.py,sha256=kpU3NaVMsgKxhWblTF-jfAl_Cdpw1HqARP81TypFsjs,13551
|
|
399
400
|
gr4vy/report_executions_sdk.py,sha256=He-YQa3iTStnx2xAx8jfpnj8qX4vO4_cVHgvuVCWqos,18877
|
|
400
401
|
gr4vy/reports_sdk.py,sha256=TFAORPDv-jvsfStTk-lS07dTJ-ym4RKlmzi4YzeOcEk,59455
|
|
401
|
-
gr4vy/sdk.py,sha256=
|
|
402
|
+
gr4vy/sdk.py,sha256=6-KTKax7c6x8src5o6RD5SK77RFtZ1QYoikXeOMC-mo,17882
|
|
402
403
|
gr4vy/sdkconfiguration.py,sha256=aBQ8gY9aOjf1TL0kSLat8hEIoH4lCE9_PhihyhBpRE4,1985
|
|
403
404
|
gr4vy/sessions.py,sha256=yg9L1vMfHT6dNc6zjthULHFS2dC67QzXCv5WUFMn3DI,41609
|
|
404
405
|
gr4vy/transactions.py,sha256=nWi-T4cxdahtSb1riH5FJry_AM5RwbixGDoqCTTUeWs,151221
|
|
@@ -424,6 +425,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
|
|
|
424
425
|
gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
425
426
|
gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
426
427
|
gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
|
|
427
|
-
gr4vy-1.1.
|
|
428
|
-
gr4vy-1.1.
|
|
429
|
-
gr4vy-1.1.
|
|
428
|
+
gr4vy-1.1.27.dist-info/METADATA,sha256=M9Iq5w3YhW5WDRCzeBVzY48SUwBHpRbnBoTLxH5i9wI,43155
|
|
429
|
+
gr4vy-1.1.27.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
430
|
+
gr4vy-1.1.27.dist-info/RECORD,,
|
|
File without changes
|