From 828c5a07c3d3f820e3cb5c87875704cf32baebe8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 26 Nov 2026 09:30:13 +0000 Subject: [PATCH] ## Python SDK Changes: * `gr4vy.transactions.create()`: * `request.connection_options.chaseorbital_bank` **Added** * `gr4vy.transactions.update()`: * `request.connection_options.chaseorbital_bank` **Added** * `gr4vy.payment_links.create()`: * `request.connection_options.chaseorbital_bank` **Added** --- .speakeasy/gen.lock | 45 +++++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +-- RELEASES.md | 12 +++- docs/models/authorizationmethod.md | 18 +++++ docs/models/chasebankoptions.md | 8 +++ docs/models/transactionconnectionoptions.md | 1 + pyproject.toml | 2 +- src/gr4vy/_version.py | 4 +- src/gr4vy/models/__init__.py | 11 +++ src/gr4vy/models/chasebankoptions.py | 68 +++++++++++++++++++ .../models/transactionconnectionoptions.py | 10 +++ 12 files changed, 165 insertions(+), 26 deletions(-) create mode 100644 docs/models/authorizationmethod.md create mode 100644 docs/models/chasebankoptions.md create mode 100644 src/gr4vy/models/chasebankoptions.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 38f12f63..0dbb4c1d 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: 0a1de34d045cacd342816d98c69d8c71 + docChecksum: 54f26c733193fa74f9aa1b5e79603164 docVersion: 1.0.0 speakeasyVersion: 1.812.0 generationVersion: 2.968.1 - releaseVersion: 2.4.42 - configChecksum: 3f4bc203ee7e4dc0d01046806b788873 + releaseVersion: 2.4.43 + configChecksum: 68b59dcf9792148a399a2b5577f663c9 repoURL: https://github.com/gr4vy/gr4vy-python.git installationURL: https://github.com/gr4vy/gr4vy-python.git published: true persistentEdits: - generation_id: e20f27b8-d98a-48ec-b57b-6206db0498f4 - pristine_commit_hash: 007a5828c3cc95754bf1ce7c389ac40b6d413671 - pristine_tree_hash: db88b1c2a6fffa48aff0e5c1ff743e728e70aee4 + generation_id: c7f53031-75e1-473c-a372-3ffb596a5ec9 + pristine_commit_hash: be709a08aab2771efcc75155f21b721a63c89741 + pristine_tree_hash: 6a90b92d3be1770a0a38180fb696139346813f5a features: python: additionalDependencies: 1.1.0 @@ -299,6 +299,10 @@ trackedFiles: id: ce2d02af2908 last_write_checksum: sha1:0e742e24c5e88e7466c77003c5bb4a0f24aa6c48 pristine_git_object: c1b476619b0e9bc071db8b14efb80ab6d12ea5e8 + docs/models/authorizationmethod.md: + id: 5b05c5a6a924 + last_write_checksum: sha1:58e72003f9b21112bba01163c0802ecad18870b6 + pristine_git_object: c4ebbc44cce01c1282eaf7dfd543003c8c4135b1 docs/models/avsresponsecode.md: id: 134d82e4904c last_write_checksum: sha1:b7a4d67647744fc47d3cf20ac62f485174cac69e @@ -431,6 +435,10 @@ trackedFiles: id: 48af6006cbed last_write_checksum: sha1:5ae66f6a7fdab977029492602f4cd72b36f02d8a pristine_git_object: 05db3400323dd9ae4e9819e1626731ffef2bd3f5 + docs/models/chasebankoptions.md: + id: a41531f2438f + last_write_checksum: sha1:053e75aaf39e4358e666b9667ce6fe09df9da47e + pristine_git_object: bd62f671f9979079b96153bc0403df8fdb53259a docs/models/chaseoptions.md: id: 52e385f89b96 last_write_checksum: sha1:254f90381cbf29fd856d915293384d2f63e8d63b @@ -2521,8 +2529,8 @@ trackedFiles: pristine_git_object: e602a67e734781d6191b3d7877be574779918646 docs/models/transactionconnectionoptions.md: id: 4c92c21f3107 - last_write_checksum: sha1:0f307e8266b9b3642822da1feb97fda484b33017 - pristine_git_object: 3469937872e055dcec1195a7b88f7f6e415284be + last_write_checksum: sha1:22f67cc07503288e36f7602ec838264ddb0d4b47 + pristine_git_object: ed1f50f481b3023e581a7fad85136ed1e9b0decc docs/models/transactioncreate.md: id: 2eccca1e0d3d last_write_checksum: sha1:1ea9c882d238d1a0b302925e50ab5200ba00b58b @@ -2953,8 +2961,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:23f6ce23d147cba9eff6c0ee5f86791218e25c47 - pristine_git_object: 910c717bf74e3818092db51e1c7ac678ee2b16b4 + last_write_checksum: sha1:fb684185f252cebc22603bc4a56821eacaf3a817 + pristine_git_object: a6a145d98cdfd143a88bc6dee7b2883a7abc5dab scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710 @@ -2981,8 +2989,8 @@ trackedFiles: pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd src/gr4vy/_version.py: id: 1b5ad1da47aa - last_write_checksum: sha1:b7bf74c8c4c99c74129418fb0cda801f6c882b61 - pristine_git_object: 90e5f4d31cf532f4c0430585b64c62f2e03563cd + last_write_checksum: sha1:dd58ecd3f90a951b5007d4687d0a3c7ca3aeb87d + pristine_git_object: 69d706806af67681a209a0d60d8a1c16da136a28 src/gr4vy/account_updater.py: id: 6dc8f39e2fb9 last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b @@ -3149,8 +3157,8 @@ trackedFiles: pristine_git_object: becb7dcefb2ea12bf3e199ed39ece68944623c13 src/gr4vy/models/__init__.py: id: 427cc7fddfe2 - last_write_checksum: sha1:4b97fd4fc7878622a786eba985a90b54f4e07e39 - pristine_git_object: 49597761548d329f671e234c70f42e9f298c1e6f + last_write_checksum: sha1:e92922dbb67005aa8ea1bcf7775606654516f706 + pristine_git_object: 58c43845bf9562b62bb9891692ba754febcef199 src/gr4vy/models/accountsreceivablesreportspec.py: id: cc6a9368f988 last_write_checksum: sha1:4f404eb37f5ce14315f1800a5a0c45964f87d7d3 @@ -3419,6 +3427,10 @@ trackedFiles: id: d15a00b63a00 last_write_checksum: sha1:b3ea21499376033e77c05ec4f460fe7f946cfca1 pristine_git_object: c5f5299bf315dac1f2efe22825d861c9a96958f1 + src/gr4vy/models/chasebankoptions.py: + id: 92386aa8db16 + last_write_checksum: sha1:10303cfb0e355dfd4df1aef3096869df5e99912c + pristine_git_object: b4ffdc397dbadb2114e765a7b983fa73f0ca55b6 src/gr4vy/models/chaseoptions.py: id: 871df09f4301 last_write_checksum: sha1:115da210f41aad609376650b3f842742fcae402d @@ -4901,8 +4913,8 @@ trackedFiles: pristine_git_object: c4b53b87f1d0edd5f26f934494cd6ada3010f4c4 src/gr4vy/models/transactionconnectionoptions.py: id: e12dfa576d74 - last_write_checksum: sha1:9ad83132d288ac9624be7d05fb0c447bf6149057 - pristine_git_object: 3ae1c0fccd29eaed80a157d2e17aa411b5a7e2b5 + last_write_checksum: sha1:58a1e0ff3e375dd8b52c109e1fcbf0a8fa431f0c + pristine_git_object: e02c2094238046fab808e5fe4dc615983d583b4b src/gr4vy/models/transactioncreate.py: id: 640e0433670e last_write_checksum: sha1:8a2ac069bbaf557a17b99c01f8bde4574e350e3d @@ -9609,6 +9621,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.transactions.create()`: \n * `request.connection_options.chaseorbital_bank` **Added**\n* `gr4vy.transactions.update()`: \n * `request.connection_options.chaseorbital_bank` **Added**\n* `gr4vy.payment_links.create()`: \n * `request.connection_options.chaseorbital_bank` **Added**\n" generatedFiles: - .gitattributes - .vscode/settings.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 15ef34d9..476426e4 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.4.42 + version: 2.4.43 additionalDependencies: dev: freezegun: ^1.5.1 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d56966e3..a860c5e1 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.812.0 sources: openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:4907a887f39a7b7fb3abaf195f533738152c1d1422d16616a8cf5600ebd5b417 - sourceBlobDigest: sha256:6b1f3577fbd93b44bc3726ee5c062c469ebe47de18b551cff8384bcb3e4003fe + sourceRevisionDigest: sha256:28729a092b2a88b74fcef6d4a082e386fe45ccf521cc91c8555ff847e0c86581 + sourceBlobDigest: sha256:8f300a99164aa31a0ed73024ac2bcc12ca649923b96a20f13c92804fff5bf507 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: python: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:4907a887f39a7b7fb3abaf195f533738152c1d1422d16616a8cf5600ebd5b417 - sourceBlobDigest: sha256:6b1f3577fbd93b44bc3726ee5c062c469ebe47de18b551cff8384bcb3e4003fe + sourceRevisionDigest: sha256:28729a092b2a88b74fcef6d4a082e386fe45ccf521cc91c8555ff847e0c86581 + sourceBlobDigest: sha256:8f300a99164aa31a0ed73024ac2bcc12ca649923b96a20f13c92804fff5bf507 codeSamplesNamespace: openapi-python-code-samples - codeSamplesRevisionDigest: sha256:fa554a5061f03173429cef18115d29596c734307e9a28f869ebe02f2a379ba4c + codeSamplesRevisionDigest: sha256:b6e7a1215f881287fc432125c03f9c0d659a5ae0777edf872ff9f6960c931da9 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 1993f73d..5980991f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2888,4 +2888,14 @@ Based on: ### Generated - [python v2.4.42] . ### Releases -- [PyPI v2.4.42] https://pypi.org/project/gr4vy/2.4.42 - . \ No newline at end of file +- [PyPI v2.4.42] https://pypi.org/project/gr4vy/2.4.42 - . + +## 2026-11-26 09:28:30 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.812.0 (2.968.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.4.43] . +### Releases +- [PyPI v2.4.43] https://pypi.org/project/gr4vy/2.4.43 - . \ No newline at end of file diff --git a/docs/models/authorizationmethod.md b/docs/models/authorizationmethod.md new file mode 100644 index 00000000..c4ebbc44 --- /dev/null +++ b/docs/models/authorizationmethod.md @@ -0,0 +1,18 @@ +# AuthorizationMethod + +## Example Usage + +```python +from gr4vy.models import AuthorizationMethod + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: AuthorizationMethod = "mail" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"mail"` +- `"telephone"` diff --git a/docs/models/chasebankoptions.md b/docs/models/chasebankoptions.md new file mode 100644 index 00000000..bd62f671 --- /dev/null +++ b/docs/models/chasebankoptions.md @@ -0,0 +1,8 @@ +# ChaseBankOptions + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `authorization_method` | [OptionalNullable[models.AuthorizationMethod]](../models/authorizationmethod.md) | :heavy_minus_sign: | How the account holder authorized a `moto` or `recurring` ACH debit: by mail (sent to Chase as a written authorization) or by telephone. Only valid with the `moto` or `recurring` payment source. When omitted, the debit is sent as authorized over the internet. | telephone | \ No newline at end of file diff --git a/docs/models/transactionconnectionoptions.md b/docs/models/transactionconnectionoptions.md index 34699378..ed1f50f4 100644 --- a/docs/models/transactionconnectionoptions.md +++ b/docs/models/transactionconnectionoptions.md @@ -26,6 +26,7 @@ | `adyen_vipps` | [OptionalNullable[models.AdyenOptions]](../models/adyenoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `adyen-vipps` connector. | | `affirm_affirm` | [OptionalNullable[models.AffirmOptions]](../models/affirmoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `affirm-affirm` connector. | | `braintree_card` | [OptionalNullable[models.BraintreeOptions]](../models/braintreeoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `braintree-card` connector. | +| `chaseorbital_bank` | [OptionalNullable[models.ChaseBankOptions]](../models/chasebankoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `chaseorbital-bank` connector. | | `chaseorbital_card` | [OptionalNullable[models.ChaseOptions]](../models/chaseoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `chaseorbital-card` connector. | | `cybersource_anti_fraud` | [OptionalNullable[models.CybersourceAntiFraudOptions]](../models/cybersourceantifraudoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `cybersource-anti-fraud` connector. | | `cybersource_card` | [OptionalNullable[models.CybersourceOptions]](../models/cybersourceoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `cybersource-card` connector. | diff --git a/pyproject.toml b/pyproject.toml index 910c717b..a6a145d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "gr4vy" -version = "2.4.42" +version = "2.4.43" 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 90e5f4d3..69d70680 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.42" +__version__: str = "2.4.43" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.968.1" -__user_agent__: str = "speakeasy-sdk/python 2.4.42 2.968.1 1.0.0 gr4vy" +__user_agent__: str = "speakeasy-sdk/python 2.4.43 2.968.1 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 49597761..58c43845 100644 --- a/src/gr4vy/models/__init__.py +++ b/src/gr4vy/models/__init__.py @@ -176,6 +176,11 @@ ) from .cartitem import CartItem, CartItemTypedDict from .certificatealgorithm import CertificateAlgorithm + from .chasebankoptions import ( + AuthorizationMethod, + ChaseBankOptions, + ChaseBankOptionsTypedDict, + ) from .chaseoptions import ChaseOptions, ChaseOptionsTypedDict from .checkoutpayoutoptions import ( CheckoutPayoutOptions, @@ -1708,6 +1713,7 @@ "AuditLogEntryTypedDict", "AuditLogEntryUser", "AuditLogEntryUserTypedDict", + "AuthorizationMethod", "BACSBankPaymentMethodCreate", "BACSBankPaymentMethodCreateTypedDict", "BankAccountHolder", @@ -1764,6 +1770,8 @@ "CartItem", "CartItemTypedDict", "CertificateAlgorithm", + "ChaseBankOptions", + "ChaseBankOptionsTypedDict", "ChaseOptions", "ChaseOptionsTypedDict", "CheckoutPayoutOptions", @@ -3002,6 +3010,9 @@ "CartItem": ".cartitem", "CartItemTypedDict": ".cartitem", "CertificateAlgorithm": ".certificatealgorithm", + "AuthorizationMethod": ".chasebankoptions", + "ChaseBankOptions": ".chasebankoptions", + "ChaseBankOptionsTypedDict": ".chasebankoptions", "ChaseOptions": ".chaseoptions", "ChaseOptionsTypedDict": ".chaseoptions", "CheckoutPayoutOptions": ".checkoutpayoutoptions", diff --git a/src/gr4vy/models/chasebankoptions.py b/src/gr4vy/models/chasebankoptions.py new file mode 100644 index 00000000..b4ffdc39 --- /dev/null +++ b/src/gr4vy/models/chasebankoptions.py @@ -0,0 +1,68 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from gr4vy.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, + current_exclude_none, + serialize_with_info, +) +from gr4vy.types.basemodel import current_filtered_dump +from pydantic import model_serializer +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +AuthorizationMethod = Union[ + Literal[ + "mail", + "telephone", + ], + UnrecognizedStr, +] + + +class ChaseBankOptionsTypedDict(TypedDict): + authorization_method: NotRequired[Nullable[AuthorizationMethod]] + r"""How the account holder authorized a `moto` or `recurring` ACH debit: by mail (sent to Chase as a written authorization) or by telephone. Only valid with the `moto` or `recurring` payment source. When omitted, the debit is sent as authorized over the internet.""" + + +class ChaseBankOptions(BaseModel): + authorization_method: OptionalNullable[AuthorizationMethod] = UNSET + r"""How the account holder authorized a `moto` or `recurring` ACH debit: by mail (sent to Chase as a written authorization) or by telephone. Only valid with the `moto` or `recurring` payment source. When omitted, the debit is sent as authorized over the internet.""" + + @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(["authorization_method"]) + nullable_fields = set(["authorization_method"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m diff --git a/src/gr4vy/models/transactionconnectionoptions.py b/src/gr4vy/models/transactionconnectionoptions.py index 3ae1c0fc..e02c2094 100644 --- a/src/gr4vy/models/transactionconnectionoptions.py +++ b/src/gr4vy/models/transactionconnectionoptions.py @@ -8,6 +8,7 @@ from .adyensepaoptions import AdyenSepaOptions, AdyenSepaOptionsTypedDict from .affirmoptions import AffirmOptions, AffirmOptionsTypedDict from .braintreeoptions import BraintreeOptions, BraintreeOptionsTypedDict +from .chasebankoptions import ChaseBankOptions, ChaseBankOptionsTypedDict from .chaseoptions import ChaseOptions, ChaseOptionsTypedDict from .cybersourceantifraudoptions import ( CybersourceAntiFraudOptions, @@ -113,6 +114,8 @@ class TransactionConnectionOptionsTypedDict(TypedDict): r"""Custom options to be passed to the `affirm-affirm` connector.""" braintree_card: NotRequired[Nullable[BraintreeOptionsTypedDict]] r"""Custom options to be passed to the `braintree-card` connector.""" + chaseorbital_bank: NotRequired[Nullable[ChaseBankOptionsTypedDict]] + r"""Custom options to be passed to the `chaseorbital-bank` connector.""" chaseorbital_card: NotRequired[Nullable[ChaseOptionsTypedDict]] r"""Custom options to be passed to the `chaseorbital-card` connector.""" cybersource_anti_fraud: NotRequired[Nullable[CybersourceAntiFraudOptionsTypedDict]] @@ -315,6 +318,11 @@ class TransactionConnectionOptions(BaseModel): ] = UNSET r"""Custom options to be passed to the `braintree-card` connector.""" + chaseorbital_bank: Annotated[ + OptionalNullable[ChaseBankOptions], pydantic.Field(alias="chaseorbital-bank") + ] = UNSET + r"""Custom options to be passed to the `chaseorbital-bank` connector.""" + chaseorbital_card: Annotated[ OptionalNullable[ChaseOptions], pydantic.Field(alias="chaseorbital-card") ] = UNSET @@ -586,6 +594,7 @@ def serialize_model(self, handler): "adyen-vipps", "affirm-affirm", "braintree-card", + "chaseorbital-bank", "chaseorbital-card", "cybersource-anti-fraud", "cybersource-card", @@ -658,6 +667,7 @@ def serialize_model(self, handler): "adyen-vipps", "affirm-affirm", "braintree-card", + "chaseorbital-bank", "chaseorbital-card", "cybersource-anti-fraud", "cybersource-card",