Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 833c6a67-4a4a-4ef1-ba24-165a29264e4a
management:
docChecksum: 39ec84519837d1d96408f4e8a63f291a
docChecksum: 3a13ee635448973551a554dab5c911ac
docVersion: 1.0.0
speakeasyVersion: 1.806.0
generationVersion: 2.956.1
releaseVersion: 2.4.33
configChecksum: 36f63fba8931c93120e03151d1fd3fc9
releaseVersion: 2.4.34
configChecksum: b962a5536b01397f30d73237e93f72e4
repoURL: https://github.com/gr4vy/gr4vy-python.git
installationURL: https://github.com/gr4vy/gr4vy-python.git
published: true
persistentEdits:
generation_id: 49a1f16c-baef-474b-9738-60707c927ead
pristine_commit_hash: bc2f93c2c0f2ee19d19123d61120a0d26aca613c
pristine_tree_hash: c9b070bfe4606f46e11e6695fdee642964ad00df
generation_id: 9985989a-5847-40fc-8631-0421fb9c5b95
pristine_commit_hash: 15bc822a1acd8a64fbab44baedf33366c9cfe857
pristine_tree_hash: 8e7b6e3b48273ea745acafbf53d425c272bcc1a4
features:
python:
additionalDependencies: 1.1.0
Expand Down Expand Up @@ -1801,8 +1801,8 @@ trackedFiles:
pristine_git_object: 95b5fbca5a9f93da5b4ad66d85e67f6ebbab8759
docs/models/paymentoption.md:
id: 19cfeb30fff6
last_write_checksum: sha1:b7c0c1aa367b298e6db6e4d19fe510b71b585407
pristine_git_object: 541618556108d0182bf9b5af196be804dd27aaaa
last_write_checksum: sha1:1483df1c1b86cb6b25d713729ca64713b9a3e437
pristine_git_object: a2ee2e88eb066e5b94192c85f5558d065fffcb74
docs/models/paymentoptioncontext.md:
id: c5ffbc8082cf
last_write_checksum: sha1:cda46bbd9d26dc2c4cb0da85934775cff17c19b1
Expand Down Expand Up @@ -2921,8 +2921,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:69cd3c04484063e21c4960566b490cab91b1d9b6
pristine_git_object: c9d513c5c9dad4163e706b7e26366f008e8f2639
last_write_checksum: sha1:bc18425f2645aa55fbfc7dd5f5c78e5a3ac93f88
pristine_git_object: 397bc2927334c4fcd7000dab0ecd4407aa6a459a
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710
Expand All @@ -2949,8 +2949,8 @@ trackedFiles:
pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd
src/gr4vy/_version.py:
id: 1b5ad1da47aa
last_write_checksum: sha1:58a8f7f5fbab3535bf2b12558fee058aafb611ed
pristine_git_object: dc1fc68a6fee43668926150a791f8bd7b137da02
last_write_checksum: sha1:276369597629bedda9cd2d545e1af85d370be9c0
pristine_git_object: 307c9710b0196773f128feb14f92c9d6c2f3e4d2
src/gr4vy/account_updater.py:
id: 6dc8f39e2fb9
last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b
Expand Down Expand Up @@ -4293,8 +4293,8 @@ trackedFiles:
pristine_git_object: abc9d2d945505c1c81f5ad43fa02276dc28d3609
src/gr4vy/models/paymentoption.py:
id: 14989a8d7e20
last_write_checksum: sha1:9a9ed906391fcc81dc8dc11e2768b3d1dfe0b106
pristine_git_object: a5c5a0d55a5bca3e18fda0b527d19ee9d5d830d3
last_write_checksum: sha1:e845bc703261563f6360112b69603c4f46fbda53
pristine_git_object: 7da77bcfcb06992ce394209137f2815208c6d633
src/gr4vy/models/paymentoptioncontext.py:
id: ff2fd46cd842
last_write_checksum: sha1:149114684ce95cced7fc4fa73b5b755a3d71aa2f
Expand Down Expand Up @@ -7272,7 +7272,7 @@ examples:
application/json: {"locale": "en"}
responses:
"200":
application/json: {"items": [{"type": "payment-option", "method": "<value>", "mode": "card", "can_store_payment_method": true, "can_delay_capture": false}]}
application/json: {"items": [{"type": "payment-option", "method": "<value>", "icon_url": "https://legal-fibre.com/", "mode": "card", "label": "<value>", "can_store_payment_method": true, "can_delay_capture": false}]}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
Expand Down Expand Up @@ -9529,7 +9529,9 @@ examples:
application/json: {"type": "error", "code": "gateway_timeout", "status": 504, "message": "Request could not be processed"}
examplesVersion: 1.0.2
generatedTests: {}
releaseNotes: "## Python SDK Changes:\n* `gr4vy.payment_methods.create()`: \n * `request_body.union(CardPaymentMethodCreate).preferred_scheme` **Added**\n* `gr4vy.transactions.create()`: `request.payment_method` **Changed**\n"
releaseNotes: |
## Python SDK Changes:
* `gr4vy.payment_options.list()`: `response.items[]` **Changed** (Breaking ⚠️)
generatedFiles:
- .gitattributes
- .vscode/settings.json
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 2.4.33
version: 2.4.34
additionalDependencies:
dev:
freezegun: ^1.5.1
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.806.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:7a718135b8ce96ec23d935cc26ce328e1059bae401451add860c68d759db0e36
sourceBlobDigest: sha256:6e22b67958c92a9351ba83822aa02f7ae834421bb979583e4f3df9cdea5e8ed0
sourceRevisionDigest: sha256:46960229a6445b684c148d058cc21349a23d3554984f569534170397e4e18707
sourceBlobDigest: sha256:9cbc4cbf04a73dabfde466549871e7ea8f3948b622ba606cb4468e495dea71a5
tags:
- latest
- 1.0.0
targets:
python:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:7a718135b8ce96ec23d935cc26ce328e1059bae401451add860c68d759db0e36
sourceBlobDigest: sha256:6e22b67958c92a9351ba83822aa02f7ae834421bb979583e4f3df9cdea5e8ed0
sourceRevisionDigest: sha256:46960229a6445b684c148d058cc21349a23d3554984f569534170397e4e18707
sourceBlobDigest: sha256:9cbc4cbf04a73dabfde466549871e7ea8f3948b622ba606cb4468e495dea71a5
codeSamplesNamespace: openapi-python-code-samples
codeSamplesRevisionDigest: sha256:2caa3478e175cfaff0c306ea68e709596d7773a5b67fe2a595ae4f078fc889c0
codeSamplesRevisionDigest: sha256:d78920cab87d53298fd8fa13c70dc28f45ea003adc5d1f57a3c7f54301edbd9c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2798,4 +2798,14 @@ Based on:
### Generated
- [python v2.4.33] .
### Releases
- [PyPI v2.4.33] https://pypi.org/project/gr4vy/2.4.33 - .
- [PyPI v2.4.33] https://pypi.org/project/gr4vy/2.4.33 - .

## 2026-11-09 08:28:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.806.0 (2.956.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v2.4.34] .
### Releases
- [PyPI v2.4.34] https://pypi.org/project/gr4vy/2.4.34 - .
4 changes: 2 additions & 2 deletions docs/models/paymentoption.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `type` | *Optional[Literal["payment-option"]]* | :heavy_minus_sign: | N/A | |
| `method` | *str* | :heavy_check_mark: | N/A | |
| `icon_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
| `icon_url` | *str* | :heavy_check_mark: | N/A | |
| `mode` | [models.Mode](../models/mode.md) | :heavy_check_mark: | N/A | card |
| `label` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
| `label` | *str* | :heavy_check_mark: | N/A | |
| `can_store_payment_method` | *bool* | :heavy_check_mark: | N/A | |
| `can_delay_capture` | *bool* | :heavy_check_mark: | N/A | |
| `context` | [OptionalNullable[models.Context]](../models/context.md) | :heavy_minus_sign: | N/A | |
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[project]
name = "gr4vy"
version = "2.4.33"
version = "2.4.34"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Gr4vy" },]
readme = "README-PYPI.md"
Expand Down
4 changes: 2 additions & 2 deletions src/gr4vy/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "gr4vy"
__version__: str = "2.4.33"
__version__: str = "2.4.34"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.956.1"
__user_agent__: str = "speakeasy-sdk/python 2.4.33 2.956.1 1.0.0 gr4vy"
__user_agent__: str = "speakeasy-sdk/python 2.4.34 2.956.1 1.0.0 gr4vy"

try:
if __package__ is not None:
Expand Down
16 changes: 8 additions & 8 deletions src/gr4vy/models/paymentoption.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,24 @@

class PaymentOptionTypedDict(TypedDict):
method: str
icon_url: str
mode: Mode
label: str
can_store_payment_method: bool
can_delay_capture: bool
type: Literal["payment-option"]
icon_url: NotRequired[Nullable[str]]
label: NotRequired[Nullable[str]]
context: NotRequired[Nullable[ContextTypedDict]]


class PaymentOption(BaseModel):
method: str

icon_url: str

mode: Mode

label: str

can_store_payment_method: bool

can_delay_capture: bool
Expand All @@ -75,19 +79,15 @@ class PaymentOption(BaseModel):
pydantic.Field(alias="type"),
] = "payment-option"

icon_url: OptionalNullable[str] = UNSET

label: OptionalNullable[str] = UNSET

context: OptionalNullable[Context] = UNSET

@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
return serialize_with_info(self.serialize_model, handler, info)

def serialize_model(self, handler):
optional_fields = set(["type", "icon_url", "label", "context"])
nullable_fields = set(["icon_url", "label", "context"])
optional_fields = set(["type", "context"])
nullable_fields = set(["context"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
Expand Down
Loading