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
48 changes: 29 additions & 19 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: 4a1f09b41b735b85927b1dfdd9395e0b
docChecksum: fea1a55cceed516c00d4145edceb5006
docVersion: 1.0.0
speakeasyVersion: 1.790.3
generationVersion: 2.918.4
releaseVersion: 2.2.16
configChecksum: 80f1ce4d5efbf20b04f18ea61dafbeba
releaseVersion: 2.2.17
configChecksum: 4d55fa8530480a75db5a2b7871a4c812
repoURL: https://github.com/gr4vy/gr4vy-python.git
installationURL: https://github.com/gr4vy/gr4vy-python.git
published: true
persistentEdits:
generation_id: db248595-d0b8-45e8-8850-84bbb25f56b0
pristine_commit_hash: 8eedf49e7e15ae22b96d67862d1a3ef7e99027b7
pristine_tree_hash: 5b8ef9824048287607092218c2340584c5a0b08f
generation_id: be52cf8e-b6e2-49d2-8900-97d3deeaa974
pristine_commit_hash: 0272c91997954fbe4d8128cea0f1b567c70e94a5
pristine_tree_hash: b866f5d3a3dcaef6745b7e99f4bec38d7f8ce78f
features:
python:
additionalDependencies: 1.1.0
Expand Down Expand Up @@ -328,8 +328,8 @@ trackedFiles:
pristine_git_object: 4cfabb755f278b6ecbcd12d3be9b93ea9401f3a0
docs/models/buyer.md:
id: b158b496cf37
last_write_checksum: sha1:0ba5edb0cd433b08c73669da9fe74ed5a4a4b2fd
pristine_git_object: ecbadb66c0921dcca0df6205f65a91c9ded2bf46
last_write_checksum: sha1:51c1e0ad76ef4eb08aeaabc53dde480d52eb7fec
pristine_git_object: e9df1433ca927d2fd50bf564243ac8f748523379
docs/models/buyercreate.md:
id: e7543b89f97f
last_write_checksum: sha1:7691e4f613ba212659dd3673c47f42bbdf353a13
Expand Down Expand Up @@ -2796,8 +2796,8 @@ trackedFiles:
pristine_git_object: cb9c15d314c1930557401074329ed7a737147919
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:fac847f1bb43fc8a4243cfce3f2f92b3882a9ad6
pristine_git_object: a960840b9e6b438b5e1e24404766d096e56c7605
last_write_checksum: sha1:566e93f5104de5520d81dce3511919f171cdca70
pristine_git_object: b8b1fb86edba433b7abb1af1b757a6d7a42ea417
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710
Expand All @@ -2824,8 +2824,8 @@ trackedFiles:
pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd
src/gr4vy/_version.py:
id: 1b5ad1da47aa
last_write_checksum: sha1:29d669c1aa55d0a07bfa7229b25ab5e44dbd6307
pristine_git_object: 0c25fe92bcc356ccd47bd2b9b024dd4f729604bb
last_write_checksum: sha1:10b60e5182e5fa3087ac1093187ecb149a4379b0
pristine_git_object: 6b98ee60b5bbe271f0e8dfe3383efaf1b8c1e7b2
src/gr4vy/account_updater.py:
id: 6dc8f39e2fb9
last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b
Expand Down Expand Up @@ -3180,8 +3180,8 @@ trackedFiles:
pristine_git_object: 679499db83eba544d96287d25b2dcd7fa8670616
src/gr4vy/models/buyer.py:
id: 00e2d1cefee3
last_write_checksum: sha1:6a40e4dddfd6f27fb499ef8f716d508beda4dbf9
pristine_git_object: 3d016f43cccd4db40bcc9d159c065f143c3f0275
last_write_checksum: sha1:58daa1cb2ce791efd4a3566b9d76bc4a3e53c81e
pristine_git_object: eb2833cb5e028170391bcad91a70f0a90a415f54
src/gr4vy/models/buyercreate.py:
id: a77b7335440c
last_write_checksum: sha1:b558f9f031a05b3bcb71fe5a26a4722aff32177b
Expand Down Expand Up @@ -5053,7 +5053,7 @@ examples:
x-gr4vy-merchant-account-id: "default"
responses:
"200":
application/json: {"items": [{"type": "buyer", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}, {"type": "buyer", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}], "limit": 20}
application/json: {"items": [{"type": "buyer", "id": "fe26475d-ec3e-4884-9553-f7356683f7f9", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}, {"type": "buyer", "id": "fe26475d-ec3e-4884-9553-f7356683f7f9", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}], "limit": 20}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
Expand Down Expand Up @@ -5090,7 +5090,7 @@ examples:
application/json: {}
responses:
"201":
application/json: {"type": "buyer", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
application/json: {"type": "buyer", "id": "fe26475d-ec3e-4884-9553-f7356683f7f9", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
Expand Down Expand Up @@ -5126,7 +5126,7 @@ examples:
x-gr4vy-merchant-account-id: "default"
responses:
"200":
application/json: {"type": "buyer", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
application/json: {"type": "buyer", "id": "fe26475d-ec3e-4884-9553-f7356683f7f9", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
Expand Down Expand Up @@ -5165,7 +5165,7 @@ examples:
application/json: {}
responses:
"200":
application/json: {"type": "buyer", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
application/json: {"type": "buyer", "id": "fe26475d-ec3e-4884-9553-f7356683f7f9", "merchant_account_id": "default", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
Expand Down Expand Up @@ -9185,7 +9185,17 @@ examplesVersion: 1.0.2
generatedTests: {}
releaseNotes: |
## Python SDK Changes:
* `gr4vy.transactions.create()`: `request.description` **Added**
* `gr4vy.buyers.list()`: `response.items[].id` **Changed** (Breaking ⚠️)
* `gr4vy.buyers.create()`: `response.id` **Changed** (Breaking ⚠️)
* `gr4vy.buyers.get()`: `response.id` **Changed** (Breaking ⚠️)
* `gr4vy.buyers.update()`: `response.id` **Changed** (Breaking ⚠️)
* `gr4vy.payment_methods.list()`: `response.items[].buyer.id` **Changed** (Breaking ⚠️)
* `gr4vy.payment_methods.create()`: `response.buyer.id` **Changed** (Breaking ⚠️)
* `gr4vy.payment_methods.get()`: `response.buyer.id` **Changed** (Breaking ⚠️)
* `gr4vy.payment_methods.update()`: `response.buyer.id` **Changed** (Breaking ⚠️)
* `gr4vy.gift_cards.get()`: `response.buyer.id` **Changed** (Breaking ⚠️)
* `gr4vy.gift_cards.create()`: `response.buyer.id` **Changed** (Breaking ⚠️)
* `gr4vy.gift_cards.list()`: `response.items[].buyer.id` **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 @@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 2.2.16
version: 2.2.17
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.790.3
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:347e988c91ee21c0f8ada92c9c05c5dc2ea9deb363cb64a38c21300d05a4857f
sourceBlobDigest: sha256:c9d5ad68847d584274b2b43486cb70a559efea825b220718b6d1900757ecdb09
sourceRevisionDigest: sha256:b2a27c9b846fbdb3fd3d4814f4431d94a421956daa03c250eef8c085a330259a
sourceBlobDigest: sha256:3a080f0a8c97d2b7891a7d383fc7196b4a356c70967ff296b4560bc5f7444327
tags:
- latest
- 1.0.0
targets:
python:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:347e988c91ee21c0f8ada92c9c05c5dc2ea9deb363cb64a38c21300d05a4857f
sourceBlobDigest: sha256:c9d5ad68847d584274b2b43486cb70a559efea825b220718b6d1900757ecdb09
sourceRevisionDigest: sha256:b2a27c9b846fbdb3fd3d4814f4431d94a421956daa03c250eef8c085a330259a
sourceBlobDigest: sha256:3a080f0a8c97d2b7891a7d383fc7196b4a356c70967ff296b4560bc5f7444327
codeSamplesNamespace: openapi-python-code-samples
codeSamplesRevisionDigest: sha256:42ef444ff0ce71b70eaca7fcab2de7e6232cf9d879a25ecaf1c98e798ad3ec1a
codeSamplesRevisionDigest: sha256:be36ce51eb79d1002bd21785cb7023ba033f5c9f84526ab8af1a048add3fe344
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 @@ -2298,4 +2298,14 @@ Based on:
### Generated
- [python v2.2.16] .
### Releases
- [PyPI v2.2.16] https://pypi.org/project/gr4vy/2.2.16 - .
- [PyPI v2.2.16] https://pypi.org/project/gr4vy/2.2.16 - .

## 2026-07-23 09:59:11
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.790.3 (2.918.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v2.2.17] .
### Releases
- [PyPI v2.2.17] https://pypi.org/project/gr4vy/2.2.17 - .
2 changes: 1 addition & 1 deletion docs/models/buyer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `type` | *Optional[Literal["buyer"]]* | :heavy_minus_sign: | Always `buyer`. | buyer |
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID for the buyer. | fe26475d-ec3e-4884-9553-f7356683f7f9 |
| `id` | *str* | :heavy_check_mark: | The ID for the buyer. | fe26475d-ec3e-4884-9553-f7356683f7f9 |
| `merchant_account_id` | *str* | :heavy_check_mark: | The ID of the merchant account this buyer belongs to. | default |
| `display_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The display name for the buyer. | John Doe |
| `external_identifier` | *OptionalNullable[str]* | :heavy_minus_sign: | The merchant identifier for this buyer. | buyer-12345 |
Expand Down
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.2.16"
version = "2.2.17"
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.2.16"
__version__: str = "2.2.17"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.918.4"
__user_agent__: str = "speakeasy-sdk/python 2.2.16 2.918.4 1.0.0 gr4vy"
__user_agent__: str = "speakeasy-sdk/python 2.2.17 2.918.4 1.0.0 gr4vy"

try:
if __package__ is not None:
Expand Down
19 changes: 6 additions & 13 deletions src/gr4vy/models/buyer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@


class BuyerTypedDict(TypedDict):
id: str
r"""The ID for the buyer."""
merchant_account_id: str
r"""The ID of the merchant account this buyer belongs to."""
created_at: datetime
Expand All @@ -21,8 +23,6 @@ class BuyerTypedDict(TypedDict):
r"""The date this buyer was last updated at."""
type: Literal["buyer"]
r"""Always `buyer`."""
id: NotRequired[Nullable[str]]
r"""The ID for the buyer."""
display_name: NotRequired[Nullable[str]]
r"""The display name for the buyer."""
external_identifier: NotRequired[Nullable[str]]
Expand All @@ -34,6 +34,9 @@ class BuyerTypedDict(TypedDict):


class Buyer(BaseModel):
id: str
r"""The ID for the buyer."""

merchant_account_id: str
r"""The ID of the merchant account this buyer belongs to."""

Expand All @@ -49,9 +52,6 @@ class Buyer(BaseModel):
] = "buyer"
r"""Always `buyer`."""

id: OptionalNullable[str] = UNSET
r"""The ID for the buyer."""

display_name: OptionalNullable[str] = UNSET
r"""The display name for the buyer."""

Expand All @@ -69,21 +69,14 @@ def serialize_model(self, handler):
optional_fields = set(
[
"type",
"id",
"display_name",
"external_identifier",
"billing_details",
"account_number",
]
)
nullable_fields = set(
[
"id",
"display_name",
"external_identifier",
"billing_details",
"account_number",
]
["display_name", "external_identifier", "billing_details", "account_number"]
)
serialized = handler(self)
m = {}
Expand Down
Loading