From 03d35fc950b8320210fee877fd25d6a63d51d15d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 11 Nov 2026 12:10:57 +0000 Subject: [PATCH] ## Python SDK Changes: * `gr4vy.payment_links.create()`: * `request.intent.enum(prefer_authorize)` **Added** * `response.intent.enum(prefer_authorize)` **Added** * `gr4vy.payment_links.list()`: `response.items[].intent.enum(prefer_authorize)` **Added** * `gr4vy.payment_links.get()`: `response.intent.enum(prefer_authorize)` **Added** --- .speakeasy/gen.lock | 57 ++++++++++++++++----------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 ++--- RELEASES.md | 12 +++++- docs/models/paymentlink.md | 2 +- docs/models/paymentlinkcreate.md | 2 +- docs/models/paymentlinkintent.md | 19 +++++++++ docs/sdks/paymentlinkssdk/README.md | 2 +- pyproject.toml | 2 +- src/gr4vy/_version.py | 4 +- src/gr4vy/models/__init__.py | 3 ++ src/gr4vy/models/paymentlink.py | 6 +-- src/gr4vy/models/paymentlinkcreate.py | 6 +-- src/gr4vy/models/paymentlinkintent.py | 15 +++++++ src/gr4vy/payment_links_sdk.py | 4 +- 15 files changed, 101 insertions(+), 45 deletions(-) create mode 100644 docs/models/paymentlinkintent.md create mode 100644 src/gr4vy/models/paymentlinkintent.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index cb69c76d..ce714375 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: 3d44114b274fa4f6b89d33846615b155 + docChecksum: 15b22d472f4e6220f4aa285149067757 docVersion: 1.0.0 speakeasyVersion: 1.808.1 generationVersion: 2.960.8 - releaseVersion: 2.4.35 - configChecksum: 375e5aabdca00852effda9c4f7500fa6 + releaseVersion: 2.4.36 + configChecksum: 4ecd535024ae1230564de5111adea039 repoURL: https://github.com/gr4vy/gr4vy-python.git installationURL: https://github.com/gr4vy/gr4vy-python.git published: true persistentEdits: - generation_id: 19c14392-b470-4df7-a678-7e8215737777 - pristine_commit_hash: 7ba8d27b0d982c8edea828a3fda7d6f5e1822408 - pristine_tree_hash: 017f7d7e96388bd52d459e5a648ee5a793205fc6 + generation_id: c1e5f300-6564-466a-9d71-4477fec13375 + pristine_commit_hash: 2f938d5d5b826476c604753b5b144bd7a702c298 + pristine_tree_hash: 054a2f200804606a973ddb6abab070cc859e6a22 features: python: additionalDependencies: 1.1.0 @@ -1749,12 +1749,16 @@ trackedFiles: pristine_git_object: 0a97cc762e1c41a26e1424ff4dc07584f8e8d6f0 docs/models/paymentlink.md: id: b2924fda489a - last_write_checksum: sha1:ad99c3b07231da3e24a8c36da9ad3c941a4aa2d6 - pristine_git_object: 227a525244c75442c842c7fecd3c6d80d6410e75 + last_write_checksum: sha1:ac151d1e0261f01e231327acc9c95901437065e9 + pristine_git_object: b33b7def347737e2a8a187d8f89c5b657f1bc54e docs/models/paymentlinkcreate.md: id: f540e80d1489 - last_write_checksum: sha1:5249c82d81087009a42cd214c13507310d9f5cfb - pristine_git_object: 74c5160e1860eb3e2c077a2b989b69a4296efa35 + last_write_checksum: sha1:755a48f764d15e7b374a03b7308bf394bf50a183 + pristine_git_object: e63012a5356c54f4be8b5c6ff5a77b1deeb9bf3f + docs/models/paymentlinkintent.md: + id: ba77cf600fdb + last_write_checksum: sha1:c28d263fffb280eb6250dd2c5fcbb56f38b13750 + pristine_git_object: 507b57d57987ffc61e97a809bc10c5e23087b15a docs/models/paymentlinks.md: id: 174693489d9c last_write_checksum: sha1:b3324bd45e4ac6987b7f474bbffb23a5dbe4256d @@ -2837,8 +2841,8 @@ trackedFiles: pristine_git_object: 89ec3cf32a63c8081a0d008f89895cf6c6754e7d docs/sdks/paymentlinkssdk/README.md: id: 443d95cf5bd0 - last_write_checksum: sha1:91c82d51df45e827060a3e70f119580d3b447c71 - pristine_git_object: 7bb0d5e7ca79ca38c962e3eee1d03cffa8f87dcd + last_write_checksum: sha1:90e9b2ceee6233b64e65095d10fb9f77c4ad4256 + pristine_git_object: b688acc6fe8d024fd3efd80d2ab81169b58bce0a docs/sdks/paymentmethodsnetworktokens/README.md: id: badc1bd37263 last_write_checksum: sha1:77099f5f9141a143c4d715d5a85d69fba350fc54 @@ -2921,8 +2925,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:9202090ea08ef2d6e466385c54ade863f73dd99f - pristine_git_object: 828f18379e7f13cc035b8d55009176b8d50492f8 + last_write_checksum: sha1:ae6a6cfddfd4b28d912ae7b040fdc8c14e361f5f + pristine_git_object: c6d39a39f9962c8149c2d66b3d34e832c6568bdc scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710 @@ -2949,8 +2953,8 @@ trackedFiles: pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd src/gr4vy/_version.py: id: 1b5ad1da47aa - last_write_checksum: sha1:6ab4d5eeb66ae9ad5a4aa13fe79461b86e6dae56 - pristine_git_object: 698089b7ea950813c18f92a7635712a3fb778374 + last_write_checksum: sha1:2a9c1b8b12a79115d89ec8509c309c828a5a331d + pristine_git_object: b107dc83f02cf7be0e399d207e54b852e8b66f58 src/gr4vy/account_updater.py: id: 6dc8f39e2fb9 last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b @@ -3117,8 +3121,8 @@ trackedFiles: pristine_git_object: becb7dcefb2ea12bf3e199ed39ece68944623c13 src/gr4vy/models/__init__.py: id: 427cc7fddfe2 - last_write_checksum: sha1:8f32e63533e8389579803c01518f878729b3f744 - pristine_git_object: feef22e90cb6ff421d1af3190534567377c9ea4c + last_write_checksum: sha1:735153388ba9398a23d82a3fd045f97667a06bea + pristine_git_object: 83ecccd18f01c5a89f9d18ed35d73478363574a0 src/gr4vy/models/accountsreceivablesreportspec.py: id: cc6a9368f988 last_write_checksum: sha1:4f404eb37f5ce14315f1800a5a0c45964f87d7d3 @@ -4241,12 +4245,16 @@ trackedFiles: pristine_git_object: 63115bc4049992bf1210dbf035d22c64ae623d5f src/gr4vy/models/paymentlink.py: id: 47106b89b1d1 - last_write_checksum: sha1:f66f9602b5bac53d7a5719733a1176bee2b30c93 - pristine_git_object: fa99dd1ad0e8e209ea7679d1dc2a993a18877c8a + last_write_checksum: sha1:c2973fa813ee3d39003e325144b6fd1335319149 + pristine_git_object: b65f4ff313df493926fbe68206c96da7f92d043b src/gr4vy/models/paymentlinkcreate.py: id: fe02bafa886f - last_write_checksum: sha1:46de2ac989cc8c7c3f3c5d4c330bdbd51455d142 - pristine_git_object: 9bcf392200eae0efea8a5736cfe1ac017ac8e072 + last_write_checksum: sha1:e0e678c6651c878ae3e01c4d20ce0e3d84d412d2 + pristine_git_object: 6a8d81c20bd27f9ec25ee0ae7e233689150567ff + src/gr4vy/models/paymentlinkintent.py: + id: a72f6ffc1d00 + last_write_checksum: sha1:da2e3c1c584da650c55c5e78d2f1692498947ef4 + pristine_git_object: cf3e15efd142b1660d5feef4f077dc2885897d99 src/gr4vy/models/paymentlinks.py: id: 7093cb5f2185 last_write_checksum: sha1:c4eba20ea6525c9992e21b3a6ac9fa308d854fb7 @@ -5049,8 +5057,8 @@ trackedFiles: pristine_git_object: 43e9a9177b474eb1b11cb8b611707aa1cd27597e src/gr4vy/payment_links_sdk.py: id: 86fd2e455dc3 - last_write_checksum: sha1:b0eb055997958f83fbc15cf16fd7f878fa316b9f - pristine_git_object: c7302ba540699f4a8556f18c46cc257c8df0c640 + last_write_checksum: sha1:09be31393b79f898df5743b55c731b5862aa1103 + pristine_git_object: 6519356f10d15f065359bd9eaa75bf938b12a6b6 src/gr4vy/payment_methods_network_tokens.py: id: 18b5696a2982 last_write_checksum: sha1:a291718370f4e68d0a83477ec26e78e0013bdc40 @@ -9529,6 +9537,7 @@ 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_links.create()`: \n * `request.intent.enum(prefer_authorize)` **Added**\n * `response.intent.enum(prefer_authorize)` **Added**\n* `gr4vy.payment_links.list()`: `response.items[].intent.enum(prefer_authorize)` **Added**\n* `gr4vy.payment_links.get()`: `response.intent.enum(prefer_authorize)` **Added**\n" generatedFiles: - .gitattributes - .vscode/settings.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index d8244a35..651d8ea1 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.4.35 + version: 2.4.36 additionalDependencies: dev: freezegun: ^1.5.1 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index eb1b61ed..db47f7b1 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.808.1 sources: openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:9ae687ba371bd9b4d6a858aa32a537f4e823860370e6489e910f2e2b0241719f - sourceBlobDigest: sha256:817dc730700f9bb3596743b462456d5d5dae3b2af0a1aecc823a6ee05ec4a742 + sourceRevisionDigest: sha256:c74b6ee408f7db0dea77acf3336a2483f62645052b03a9470213a757c5d7fde1 + sourceBlobDigest: sha256:4050be44e6a27a59881fc6da2ece8833e617544fc749057886e746428d8b30ba tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: python: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:9ae687ba371bd9b4d6a858aa32a537f4e823860370e6489e910f2e2b0241719f - sourceBlobDigest: sha256:817dc730700f9bb3596743b462456d5d5dae3b2af0a1aecc823a6ee05ec4a742 + sourceRevisionDigest: sha256:c74b6ee408f7db0dea77acf3336a2483f62645052b03a9470213a757c5d7fde1 + sourceBlobDigest: sha256:4050be44e6a27a59881fc6da2ece8833e617544fc749057886e746428d8b30ba codeSamplesNamespace: openapi-python-code-samples - codeSamplesRevisionDigest: sha256:a1d8a3f4000ca9ca4299560943c3ae98c17829ff2f8a710cbaf61f6ac5b0163c + codeSamplesRevisionDigest: sha256:29fb98e6e6f8ae36738aa8078003c9dfef0f67b2876856512ebf6b30f6332c05 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index a40cd970..74a307fa 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2818,4 +2818,14 @@ Based on: ### Generated - [python v2.4.35] . ### Releases -- [PyPI v2.4.35] https://pypi.org/project/gr4vy/2.4.35 - . \ No newline at end of file +- [PyPI v2.4.35] https://pypi.org/project/gr4vy/2.4.35 - . + +## 2026-11-11 12:09:11 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.4.36] . +### Releases +- [PyPI v2.4.36] https://pypi.org/project/gr4vy/2.4.36 - . \ No newline at end of file diff --git a/docs/models/paymentlink.md b/docs/models/paymentlink.md index 227a5252..b33b7def 100644 --- a/docs/models/paymentlink.md +++ b/docs/models/paymentlink.md @@ -22,7 +22,7 @@ | `amount` | *int* | :heavy_check_mark: | The amount for the payment link. | 1299 | | `country` | *str* | :heavy_check_mark: | The country code for the payment link. | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | | `currency` | *str* | :heavy_check_mark: | The currency code for the payment link. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | -| `intent` | [models.TransactionIntent](../models/transactionintent.md) | :heavy_check_mark: | N/A | | +| `intent` | [models.PaymentLinkIntent](../models/paymentlinkintent.md) | :heavy_check_mark: | N/A | | | `return_url` | *OptionalNullable[str]* | :heavy_minus_sign: | The return URL after payment completion. | https://merchant.example.com/return | | `cart_items` | List[[models.CartItem](../models/cartitem.md)] | :heavy_check_mark: | The cart items for the payment link. | [
{
"amount": {
"currency": "USD",
"value": 500
},
"name": "Widget",
"quantity": 2
}
] | | `airline` | [Nullable[models.Airline]](../models/airline.md) | :heavy_check_mark: | The airline addendum data which describes the airline booking associated with this payment link. | | diff --git a/docs/models/paymentlinkcreate.md b/docs/models/paymentlinkcreate.md index 74c5160e..e63012a5 100644 --- a/docs/models/paymentlinkcreate.md +++ b/docs/models/paymentlinkcreate.md @@ -21,7 +21,7 @@ | `amount` | *int* | :heavy_check_mark: | The amount for the payment link. | 1299 | | `country` | *str* | :heavy_check_mark: | The country code for the payment link. | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | | `currency` | *str* | :heavy_check_mark: | The currency code for the payment link. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | -| `intent` | [Optional[models.TransactionIntent]](../models/transactionintent.md) | :heavy_minus_sign: | N/A | | +| `intent` | [Optional[models.PaymentLinkIntent]](../models/paymentlinkintent.md) | :heavy_minus_sign: | N/A | | | `return_url` | *OptionalNullable[str]* | :heavy_minus_sign: | The return URL after payment completion. | https://merchant.example.com/return | | `cart_items` | List[[models.CartItem](../models/cartitem.md)] | :heavy_minus_sign: | The cart items for the payment link. | | | `airline` | [OptionalNullable[models.Airline]](../models/airline.md) | :heavy_minus_sign: | The airline addendum data which describes the airline booking associated with this payment link. | | diff --git a/docs/models/paymentlinkintent.md b/docs/models/paymentlinkintent.md new file mode 100644 index 00000000..507b57d5 --- /dev/null +++ b/docs/models/paymentlinkintent.md @@ -0,0 +1,19 @@ +# PaymentLinkIntent + +## Example Usage + +```python +from gr4vy.models import PaymentLinkIntent + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: PaymentLinkIntent = "authorize" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"authorize"` +- `"capture"` +- `"prefer_authorize"` diff --git a/docs/sdks/paymentlinkssdk/README.md b/docs/sdks/paymentlinkssdk/README.md index 7bb0d5e7..b688acc6 100644 --- a/docs/sdks/paymentlinkssdk/README.md +++ b/docs/sdks/paymentlinkssdk/README.md @@ -54,7 +54,7 @@ with Gr4vy( | `merchant_message` | *OptionalNullable[str]* | :heavy_minus_sign: | A message from the merchant. | Thank you for your purchase! | | `merchant_terms_and_conditions_url` | *OptionalNullable[str]* | :heavy_minus_sign: | URL to the merchant's terms and conditions. | https://merchant.example.com/terms | | `merchant_favicon_url` | *OptionalNullable[str]* | :heavy_minus_sign: | URL to the merchant's favicon. | https://merchant.example.com/favicon.ico | -| `intent` | [Optional[models.TransactionIntent]](../../models/transactionintent.md) | :heavy_minus_sign: | N/A | | +| `intent` | [Optional[models.PaymentLinkIntent]](../../models/paymentlinkintent.md) | :heavy_minus_sign: | N/A | | | `return_url` | *OptionalNullable[str]* | :heavy_minus_sign: | The return URL after payment completion. | https://merchant.example.com/return | | `cart_items` | List[[models.CartItem](../../models/cartitem.md)] | :heavy_minus_sign: | The cart items for the payment link. | | | `airline` | [OptionalNullable[models.Airline]](../../models/airline.md) | :heavy_minus_sign: | The airline addendum data which describes the airline booking associated with this payment link. | | diff --git a/pyproject.toml b/pyproject.toml index 828f1837..c6d39a39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "gr4vy" -version = "2.4.35" +version = "2.4.36" 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 698089b7..b107dc83 100644 --- a/src/gr4vy/_version.py +++ b/src/gr4vy/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "gr4vy" -__version__: str = "2.4.35" +__version__: str = "2.4.36" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.960.8" -__user_agent__: str = "speakeasy-sdk/python 2.4.35 2.960.8 1.0.0 gr4vy" +__user_agent__: str = "speakeasy-sdk/python 2.4.36 2.960.8 1.0.0 gr4vy" try: if __package__ is not None: diff --git a/src/gr4vy/models/__init__.py b/src/gr4vy/models/__init__.py index feef22e9..83ecccd1 100644 --- a/src/gr4vy/models/__init__.py +++ b/src/gr4vy/models/__init__.py @@ -1033,6 +1033,7 @@ from .oxxooptions import OxxoOptions, OxxoOptionsTypedDict from .paymentlink import PaymentLink, PaymentLinkTypedDict from .paymentlinkcreate import PaymentLinkCreate, PaymentLinkCreateTypedDict + from .paymentlinkintent import PaymentLinkIntent from .paymentlinks import PaymentLinks, PaymentLinksTypedDict from .paymentlinkstatus import PaymentLinkStatus from .paymentmethod import PaymentMethod, PaymentMethodTypedDict @@ -2367,6 +2368,7 @@ "PaymentLink", "PaymentLinkCreate", "PaymentLinkCreateTypedDict", + "PaymentLinkIntent", "PaymentLinkStatus", "PaymentLinkTypedDict", "PaymentLinks", @@ -3595,6 +3597,7 @@ "PaymentLinkTypedDict": ".paymentlink", "PaymentLinkCreate": ".paymentlinkcreate", "PaymentLinkCreateTypedDict": ".paymentlinkcreate", + "PaymentLinkIntent": ".paymentlinkintent", "PaymentLinks": ".paymentlinks", "PaymentLinksTypedDict": ".paymentlinks", "PaymentLinkStatus": ".paymentlinkstatus", diff --git a/src/gr4vy/models/paymentlink.py b/src/gr4vy/models/paymentlink.py index fa99dd1a..b65f4ff3 100644 --- a/src/gr4vy/models/paymentlink.py +++ b/src/gr4vy/models/paymentlink.py @@ -3,11 +3,11 @@ from __future__ import annotations from .airline import Airline, AirlineTypedDict from .cartitem import CartItem, CartItemTypedDict +from .paymentlinkintent import PaymentLinkIntent from .paymentlinkstatus import PaymentLinkStatus from .shippingdetails import ShippingDetails, ShippingDetailsTypedDict from .statementdescriptor import StatementDescriptor, StatementDescriptorTypedDict from .transactionbuyer import TransactionBuyer, TransactionBuyerTypedDict -from .transactionintent import TransactionIntent from .transactionpaymentsource import TransactionPaymentSource from datetime import datetime from gr4vy.types import ( @@ -39,7 +39,7 @@ class PaymentLinkTypedDict(TypedDict): r"""The country code for the payment link.""" currency: str r"""The currency code for the payment link.""" - intent: TransactionIntent + intent: PaymentLinkIntent cart_items: Nullable[List[CartItemTypedDict]] r"""The cart items for the payment link.""" airline: Nullable[AirlineTypedDict] @@ -109,7 +109,7 @@ class PaymentLink(BaseModel): currency: str r"""The currency code for the payment link.""" - intent: TransactionIntent + intent: PaymentLinkIntent cart_items: Nullable[List[CartItem]] r"""The cart items for the payment link.""" diff --git a/src/gr4vy/models/paymentlinkcreate.py b/src/gr4vy/models/paymentlinkcreate.py index 9bcf3922..6a8d81c2 100644 --- a/src/gr4vy/models/paymentlinkcreate.py +++ b/src/gr4vy/models/paymentlinkcreate.py @@ -4,12 +4,12 @@ from .airline import Airline, AirlineTypedDict from .cartitem import CartItem, CartItemTypedDict from .guestbuyer import GuestBuyer, GuestBuyerTypedDict +from .paymentlinkintent import PaymentLinkIntent from .statementdescriptor import StatementDescriptor, StatementDescriptorTypedDict from .transactionconnectionoptions import ( TransactionConnectionOptions, TransactionConnectionOptionsTypedDict, ) -from .transactionintent import TransactionIntent from .transactionpaymentsource import TransactionPaymentSource from datetime import datetime from gr4vy.types import ( @@ -60,7 +60,7 @@ class PaymentLinkCreateTypedDict(TypedDict): r"""URL to the merchant's terms and conditions.""" merchant_favicon_url: NotRequired[Nullable[str]] r"""URL to the merchant's favicon.""" - intent: NotRequired[TransactionIntent] + intent: NotRequired[PaymentLinkIntent] return_url: NotRequired[Nullable[str]] r"""The return URL after payment completion.""" cart_items: NotRequired[Nullable[List[CartItemTypedDict]]] @@ -128,7 +128,7 @@ class PaymentLinkCreate(BaseModel): merchant_favicon_url: OptionalNullable[str] = UNSET r"""URL to the merchant's favicon.""" - intent: Optional[TransactionIntent] = None + intent: Optional[PaymentLinkIntent] = None return_url: OptionalNullable[str] = UNSET r"""The return URL after payment completion.""" diff --git a/src/gr4vy/models/paymentlinkintent.py b/src/gr4vy/models/paymentlinkintent.py new file mode 100644 index 00000000..cf3e15ef --- /dev/null +++ b/src/gr4vy/models/paymentlinkintent.py @@ -0,0 +1,15 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from gr4vy.types import UnrecognizedStr +from typing import Literal, Union + + +PaymentLinkIntent = Union[ + Literal[ + "authorize", + "capture", + "prefer_authorize", + ], + UnrecognizedStr, +] diff --git a/src/gr4vy/payment_links_sdk.py b/src/gr4vy/payment_links_sdk.py index c7302ba5..6519356f 100644 --- a/src/gr4vy/payment_links_sdk.py +++ b/src/gr4vy/payment_links_sdk.py @@ -41,7 +41,7 @@ def create( merchant_message: OptionalNullable[str] = UNSET, merchant_terms_and_conditions_url: OptionalNullable[str] = UNSET, merchant_favicon_url: OptionalNullable[str] = UNSET, - intent: Optional[models.TransactionIntent] = None, + intent: Optional[models.PaymentLinkIntent] = None, return_url: OptionalNullable[str] = UNSET, cart_items: OptionalNullable[ Union[Iterable[models.CartItem], Iterable[models.CartItemTypedDict]] @@ -277,7 +277,7 @@ async def create_async( merchant_message: OptionalNullable[str] = UNSET, merchant_terms_and_conditions_url: OptionalNullable[str] = UNSET, merchant_favicon_url: OptionalNullable[str] = UNSET, - intent: Optional[models.TransactionIntent] = None, + intent: Optional[models.PaymentLinkIntent] = None, return_url: OptionalNullable[str] = UNSET, cart_items: OptionalNullable[ Union[Iterable[models.CartItem], Iterable[models.CartItemTypedDict]]