diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ba9bdfd3..2b8dfdab 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 833c6a67-4a4a-4ef1-ba24-165a29264e4a management: - docChecksum: a45933674c087ff96b76b13817909fc5 + docChecksum: b7503127f454eadbafa2c7c738aa9cc5 docVersion: 1.0.0 speakeasyVersion: 1.791.1 generationVersion: 2.926.2 - releaseVersion: 2.3.2 - configChecksum: 03775d66e484d56f94dacef07c5474bd + releaseVersion: 2.3.3 + configChecksum: a19d9a039c6da4e79bb2f220f5e5a6af repoURL: https://github.com/gr4vy/gr4vy-python.git installationURL: https://github.com/gr4vy/gr4vy-python.git published: true persistentEdits: - generation_id: 90c09972-aeb2-47a3-bd8d-1a5dac9c08ad - pristine_commit_hash: a382403199bfbf93582fdf917162b3d0eae1e680 - pristine_tree_hash: 145cfef9df41e2b9ab14fd3f20e7f90700451a2d + generation_id: a9133b63-db5f-4485-8de6-ab697b012841 + pristine_commit_hash: d669f4e77b564df3fd8b80ee9262ec796aeba9c4 + pristine_tree_hash: 88dbd45dc1ae8ce67eaaa8ecd10fc16867fcea62 features: python: additionalDependencies: 1.1.0 @@ -2377,8 +2377,8 @@ trackedFiles: pristine_git_object: d2f2f1b9ed54bf1439bd346b6ecddfc5fbe17f2c docs/models/transaction.md: id: 24ab0958a449 - last_write_checksum: sha1:329aba89e040b5bcf7e744b98084b24fdf2dee3c - pristine_git_object: 012c8b295eece1093a2600676084c9730f5a8d31 + last_write_checksum: sha1:bc5316d0bba9578ff28b132c9eceef1c418437ad + pristine_git_object: ee08bb9f8e1a87c6b75b03f62e8c438442b0cd16 docs/models/transactionaction.md: id: 5f03c1427673 last_write_checksum: sha1:5c7feaaf0b1cff6c198d59bdacd98037c2385390 @@ -2473,8 +2473,8 @@ trackedFiles: pristine_git_object: 913e63e5283dd1f1ec983459127266ac9c60881c docs/models/transactionsummary.md: id: 67e790637e68 - last_write_checksum: sha1:430fe26dd2758366a2af2b77238e4a04378b84fd - pristine_git_object: b68fe387ffe60756129b100c82f1cb3df0589f09 + last_write_checksum: sha1:a15a972eaf668b901015427c8a97759c56b92c8f + pristine_git_object: e40fa5a608eddf55b8b95dbffe909b9f5014089e docs/models/transactionthreedsecuresummary.md: id: 3440c6822ffe last_write_checksum: sha1:aee89cd9a9ed83b580c09150e14767db6cff3880 @@ -2837,8 +2837,8 @@ trackedFiles: pristine_git_object: cb9c15d314c1930557401074329ed7a737147919 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:962ed9c8ecb9bd5b7c35134989f0694bc6db15d6 - pristine_git_object: 34385efa1cd6de2fccb759d2fd79a359186f5e22 + last_write_checksum: sha1:7c98f3b300aa98797af2e57bce90e2c1bb02941a + pristine_git_object: 13bc36c35f4ef366591863a516b1b2f6b213c1d0 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710 @@ -2865,8 +2865,8 @@ trackedFiles: pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd src/gr4vy/_version.py: id: 1b5ad1da47aa - last_write_checksum: sha1:3cd112618e66b662b5badbfd5332141fdd59c4af - pristine_git_object: ccbdc08d0a393f81375546320fead06721668de4 + last_write_checksum: sha1:41f11cef3fc7b338f37ad820be8ed0ec0017c958 + pristine_git_object: ac186c951de90c20679522d2d844291818884368 src/gr4vy/account_updater.py: id: 6dc8f39e2fb9 last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b @@ -4685,8 +4685,8 @@ trackedFiles: pristine_git_object: 62507ba7df10fddcb97924f3ee740ad5f9554587 src/gr4vy/models/transaction.py: id: 7b4f25439f19 - last_write_checksum: sha1:dd0cb357fb5d2150785f95102951be91812735f5 - pristine_git_object: 5eb07d69a4ad93af302151eab3a7c78f6fbfbd9e + last_write_checksum: sha1:dd7ad0777ad1d75e686b2aeaf470e11d0fa14753 + pristine_git_object: 6d9d1e2758e3e9989f59342809fd342e239d3ffe src/gr4vy/models/transactionaction.py: id: 37b8b7f1e4b4 last_write_checksum: sha1:e2437f1b231eb3dd7f7cc955dfcd1633f3acbbe7 @@ -4777,8 +4777,8 @@ trackedFiles: pristine_git_object: 37848d5549bb364300d203f15bfc65027512fb39 src/gr4vy/models/transactionsummary.py: id: f6d5ef4e39f9 - last_write_checksum: sha1:b981e28df7a11807d50758f4b23b0ca36eaecccd - pristine_git_object: 34a8fad3a73bf19359cf3c17e7d4a5b5ba823ad2 + last_write_checksum: sha1:67085ac0579b0b6ba7c9097e392736162800b7f9 + pristine_git_object: 39b4ec656ccfe51a7e0a25bacda8ff561deb8bc3 src/gr4vy/models/transactionthreedsecuresummary.py: id: 0605662319b6 last_write_checksum: sha1:9ebc143ef75816d85d3c5ecbb81c522c642aa9ef @@ -9318,7 +9318,16 @@ 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.transactions.create()`: \n * `request.connection_options.dlocal_card` **Added**\n* `gr4vy.transactions.update()`: \n * `request.connection_options.dlocal_card` **Added**\n* `gr4vy.payment_links.create()`: \n * `request.connection_options.dlocal_card` **Added**\n" +releaseNotes: | + ## Python SDK Changes: + * `gr4vy.transactions.list()`: `response.items[].reauthorized_from_transaction_id` **Added** + * `gr4vy.transactions.create()`: `response.reauthorized_from_transaction_id` **Added** + * `gr4vy.transactions.get()`: `response.reauthorized_from_transaction_id` **Added** + * `gr4vy.transactions.update()`: `response.reauthorized_from_transaction_id` **Added** + * `gr4vy.transactions.capture()`: `response.union(Transaction).reauthorized_from_transaction_id` **Added** + * `gr4vy.transactions.void()`: `response.union(Transaction).reauthorized_from_transaction_id` **Added** + * `gr4vy.transactions.cancel()`: `response.transaction.reauthorized_from_transaction_id` **Added** + * `gr4vy.transactions.sync()`: `response.reauthorized_from_transaction_id` **Added** generatedFiles: - .gitattributes - .vscode/settings.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a47149e6..7477bd75 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.3.2 + version: 2.3.3 additionalDependencies: dev: freezegun: ^1.5.1 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 91cf1de6..799ea90e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.791.1 sources: openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:5c256f9d5b9ebc3dddb392e181076a1c346b06ab801aedc9dbe885cf548cffec - sourceBlobDigest: sha256:0a461261e6f47ac194319637e62da1970c01554380c859044ec97e16f05d46a5 + sourceRevisionDigest: sha256:1ef80d137149d5b6a1021c2d6254c1c3cf69039fa8454c4eef3cd12369efd5f1 + sourceBlobDigest: sha256:db386d25db50ff49acbbe429a67fc3e199bb7ab486e25a722a898bbe0f76319c tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: python: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:5c256f9d5b9ebc3dddb392e181076a1c346b06ab801aedc9dbe885cf548cffec - sourceBlobDigest: sha256:0a461261e6f47ac194319637e62da1970c01554380c859044ec97e16f05d46a5 + sourceRevisionDigest: sha256:1ef80d137149d5b6a1021c2d6254c1c3cf69039fa8454c4eef3cd12369efd5f1 + sourceBlobDigest: sha256:db386d25db50ff49acbbe429a67fc3e199bb7ab486e25a722a898bbe0f76319c codeSamplesNamespace: openapi-python-code-samples - codeSamplesRevisionDigest: sha256:0e7be0a10a75199a1c69f3b8cc5c7b445ccdaa67a05a2c19d3cc387b5570673f + codeSamplesRevisionDigest: sha256:1c152714e559b87148556ff15454b338c8942607c3daf0956946f52150aeb134 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 8eb52375..13937497 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2358,4 +2358,14 @@ Based on: ### Generated - [python v2.3.2] . ### Releases -- [PyPI v2.3.2] https://pypi.org/project/gr4vy/2.3.2 - . \ No newline at end of file +- [PyPI v2.3.2] https://pypi.org/project/gr4vy/2.3.2 - . + +## 2026-08-03 15:11:10 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.791.1 (2.926.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.3.3] . +### Releases +- [PyPI v2.3.3] https://pypi.org/project/gr4vy/2.3.3 - . \ No newline at end of file diff --git a/docs/models/transaction.md b/docs/models/transaction.md index 012c8b29..ee08bb9f 100644 --- a/docs/models/transaction.md +++ b/docs/models/transaction.md @@ -39,6 +39,7 @@ A full transaction resource. | `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time when the transaction was created, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 | | `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time when the transaction was last updated, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 | | `disputed` | *bool* | :heavy_check_mark: | Indicates whether this transaction has been disputed. | true | +| `reauthorized_from_transaction_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The identifier of the transaction from which this transaction was reauthorized. | 4137b1cf-39ac-42a8-bad6-1c680d5dab6b | | `airline` | [OptionalNullable[models.Airline]](../models/airline.md) | :heavy_minus_sign: | Contains information about an airline travel, if applicable. | | | `auth_response_code` | *OptionalNullable[str]* | :heavy_minus_sign: | This is the response description received from the processor. | 00 | | `avs_response_code` | [OptionalNullable[models.AVSResponseCode]](../models/avsresponsecode.md) | :heavy_minus_sign: | The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. | match | diff --git a/docs/models/transactionsummary.md b/docs/models/transactionsummary.md index b68fe387..e40fa5a6 100644 --- a/docs/models/transactionsummary.md +++ b/docs/models/transactionsummary.md @@ -38,4 +38,5 @@ A transaction, summarised | `gift_card_service` | [OptionalNullable[models.GiftCardService]](../models/giftcardservice.md) | :heavy_minus_sign: | The gift card service used for this transaction. | | | `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time when the transaction was created, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 | | `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time when the transaction was last updated, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 | -| `disputed` | *bool* | :heavy_check_mark: | Indicates whether this transaction has been disputed. | true | \ No newline at end of file +| `disputed` | *bool* | :heavy_check_mark: | Indicates whether this transaction has been disputed. | true | +| `reauthorized_from_transaction_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The identifier of the transaction from which this transaction was reauthorized. | 4137b1cf-39ac-42a8-bad6-1c680d5dab6b | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 34385efa..13bc36c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "gr4vy" -version = "2.3.2" +version = "2.3.3" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Gr4vy" },] readme = "README-PYPI.md" diff --git a/src/gr4vy/_version.py b/src/gr4vy/_version.py index ccbdc08d..ac186c95 100644 --- a/src/gr4vy/_version.py +++ b/src/gr4vy/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "gr4vy" -__version__: str = "2.3.2" +__version__: str = "2.3.3" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.926.2" -__user_agent__: str = "speakeasy-sdk/python 2.3.2 2.926.2 1.0.0 gr4vy" +__user_agent__: str = "speakeasy-sdk/python 2.3.3 2.926.2 1.0.0 gr4vy" try: if __package__ is not None: diff --git a/src/gr4vy/models/transaction.py b/src/gr4vy/models/transaction.py index 5eb07d69..6d9d1e27 100644 --- a/src/gr4vy/models/transaction.py +++ b/src/gr4vy/models/transaction.py @@ -116,6 +116,8 @@ class TransactionTypedDict(TypedDict): r"""The identifier for the checkout session this transaction is associated with.""" gift_card_service: NotRequired[Nullable[GiftCardServiceTypedDict]] r"""The gift card service used for this transaction.""" + reauthorized_from_transaction_id: NotRequired[Nullable[str]] + r"""The identifier of the transaction from which this transaction was reauthorized.""" airline: NotRequired[Nullable[AirlineTypedDict]] r"""Contains information about an airline travel, if applicable.""" auth_response_code: NotRequired[Nullable[str]] @@ -302,6 +304,9 @@ class Transaction(BaseModel): gift_card_service: OptionalNullable[GiftCardService] = UNSET r"""The gift card service used for this transaction.""" + reauthorized_from_transaction_id: OptionalNullable[str] = UNSET + r"""The identifier of the transaction from which this transaction was reauthorized.""" + airline: OptionalNullable[Airline] = UNSET r"""Contains information about an airline travel, if applicable.""" @@ -418,6 +423,7 @@ def serialize_model(self, handler): "shipping_details", "checkout_session_id", "gift_card_service", + "reauthorized_from_transaction_id", "airline", "auth_response_code", "avs_response_code", @@ -468,6 +474,7 @@ def serialize_model(self, handler): "shipping_details", "checkout_session_id", "gift_card_service", + "reauthorized_from_transaction_id", "airline", "auth_response_code", "avs_response_code", diff --git a/src/gr4vy/models/transactionsummary.py b/src/gr4vy/models/transactionsummary.py index 34a8fad3..39b4ec65 100644 --- a/src/gr4vy/models/transactionsummary.py +++ b/src/gr4vy/models/transactionsummary.py @@ -92,6 +92,8 @@ class TransactionSummaryTypedDict(TypedDict): r"""The identifier for the checkout session this transaction is associated with.""" gift_card_service: NotRequired[Nullable[GiftCardServiceTypedDict]] r"""The gift card service used for this transaction.""" + reauthorized_from_transaction_id: NotRequired[Nullable[str]] + r"""The identifier of the transaction from which this transaction was reauthorized.""" class TransactionSummary(BaseModel): @@ -197,6 +199,9 @@ class TransactionSummary(BaseModel): gift_card_service: OptionalNullable[GiftCardService] = UNSET r"""The gift card service used for this transaction.""" + reauthorized_from_transaction_id: OptionalNullable[str] = UNSET + r"""The identifier of the transaction from which this transaction was reauthorized.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -217,6 +222,7 @@ def serialize_model(self, handler): "shipping_details", "checkout_session_id", "gift_card_service", + "reauthorized_from_transaction_id", ] ) nullable_fields = set( @@ -235,6 +241,7 @@ def serialize_model(self, handler): "shipping_details", "checkout_session_id", "gift_card_service", + "reauthorized_from_transaction_id", ] ) serialized = handler(self)