diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 0dbb4c1d..a2179dfc 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: 54f26c733193fa74f9aa1b5e79603164
+ docChecksum: 3c724130280f67ad1af75e496deee4bd
docVersion: 1.0.0
- speakeasyVersion: 1.812.0
- generationVersion: 2.968.1
- releaseVersion: 2.4.43
- configChecksum: 68b59dcf9792148a399a2b5577f663c9
+ speakeasyVersion: 1.812.1
+ generationVersion: 2.968.17
+ releaseVersion: 2.4.44
+ configChecksum: 204baf60067d3c248b549e95a7698659
repoURL: https://github.com/gr4vy/gr4vy-python.git
installationURL: https://github.com/gr4vy/gr4vy-python.git
published: true
persistentEdits:
- generation_id: c7f53031-75e1-473c-a372-3ffb596a5ec9
- pristine_commit_hash: be709a08aab2771efcc75155f21b721a63c89741
- pristine_tree_hash: 6a90b92d3be1770a0a38180fb696139346813f5a
+ generation_id: 847170e1-a8b3-4c0d-9a52-a74ca3f0a601
+ pristine_commit_hash: f62b6fe1a4c13f119b210376e3fdd725e43239ab
+ pristine_tree_hash: a626103e837507f745baa20a7601924e1783021c
features:
python:
additionalDependencies: 1.1.0
@@ -703,6 +703,10 @@ trackedFiles:
id: 5c2a7568ffde
last_write_checksum: sha1:94b8de8f53e4ae5aa23776367cd8584e15bcce5f
pristine_git_object: 44b18a51cf4f53fb7cda13f2924b5f5e7643273d
+ docs/models/cybersourcecardoptions.md:
+ id: 52a4f4439d62
+ last_write_checksum: sha1:1c5e7d092c196bd64aa6559a0925ee23d99ed44e
+ pristine_git_object: 26a686bff740c160a6c0404cd208c5d6ebd90172
docs/models/cybersourceoptions.md:
id: c5d2c1818465
last_write_checksum: sha1:0c47dc6e9cbba71a3ac1d5e2988aef2f550931a2
@@ -1635,6 +1639,10 @@ trackedFiles:
id: b071d5a509cc
last_write_checksum: sha1:09a04749333ab50ae806c3ac6adcaa90d54df0f1
pristine_git_object: d6094ac2c6e0326c039dad2f6b89158694ef6aa7
+ docs/models/mastercardcardoptions.md:
+ id: 85014f792cc8
+ last_write_checksum: sha1:b1e4f5c6eae5021575d48d23ec3dd3147b7a0bc1
+ pristine_git_object: 6ae324fd9af79e22fb21dd5584fe1fed6996b54a
docs/models/mattildatapioptions.md:
id: 44ebba151746
last_write_checksum: sha1:73b954f790bcac981542fdabf8f7bbbb4ff89cc9
@@ -2371,6 +2379,14 @@ trackedFiles:
id: f23ee0355e68
last_write_checksum: sha1:aa0ee18ba612830248502afabcc1f356f2195f1d
pristine_git_object: 7fd8fe67e5a756f97355962a067a1cc8bcd5f507
+ docs/models/submerchantaddressoptions.md:
+ id: f057b51d92b4
+ last_write_checksum: sha1:cc0213300f4c13b9f6c8d6a49209b756e5d0c8eb
+ pristine_git_object: 70ae64c27e46d7dc422586e652ecf21e3cf8eea9
+ docs/models/submerchantoptions.md:
+ id: d9b5fc6f1e0b
+ last_write_checksum: sha1:de9ae3daafb0d50fd54c925656a0f7f5cbbb8f44
+ pristine_git_object: 68adfd3016b50749b20df88aa773d0c07e372d69
docs/models/subscriptionfrequencyunit.md:
id: 7c4c5c7b32f4
last_write_checksum: sha1:7a63a4a2d09dedb9454cea0a57ba17b02f42a307
@@ -2529,8 +2545,8 @@ trackedFiles:
pristine_git_object: e602a67e734781d6191b3d7877be574779918646
docs/models/transactionconnectionoptions.md:
id: 4c92c21f3107
- last_write_checksum: sha1:22f67cc07503288e36f7602ec838264ddb0d4b47
- pristine_git_object: ed1f50f481b3023e581a7fad85136ed1e9b0decc
+ last_write_checksum: sha1:5d849ff85ef49533d81c1baffcbb43e2135affcf
+ pristine_git_object: 85c4ed3218ff246c82d305de7dd2011776b8bec6
docs/models/transactioncreate.md:
id: 2eccca1e0d3d
last_write_checksum: sha1:1ea9c882d238d1a0b302925e50ab5200ba00b58b
@@ -2961,8 +2977,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
- last_write_checksum: sha1:fb684185f252cebc22603bc4a56821eacaf3a817
- pristine_git_object: a6a145d98cdfd143a88bc6dee7b2883a7abc5dab
+ last_write_checksum: sha1:1fca947e743c2cd1fd2aa4c00586e28c89663ff0
+ pristine_git_object: a0400b379b6c33b605c1e7be1d26780b003bc7db
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710
@@ -2989,8 +3005,8 @@ trackedFiles:
pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd
src/gr4vy/_version.py:
id: 1b5ad1da47aa
- last_write_checksum: sha1:dd58ecd3f90a951b5007d4687d0a3c7ca3aeb87d
- pristine_git_object: 69d706806af67681a209a0d60d8a1c16da136a28
+ last_write_checksum: sha1:b177cabc51dc68a8d45e6eecdab37ed68722e731
+ pristine_git_object: b9a9c54d98606d248532cd9a453b98829fb6edf0
src/gr4vy/account_updater.py:
id: 6dc8f39e2fb9
last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b
@@ -3157,8 +3173,8 @@ trackedFiles:
pristine_git_object: becb7dcefb2ea12bf3e199ed39ece68944623c13
src/gr4vy/models/__init__.py:
id: 427cc7fddfe2
- last_write_checksum: sha1:e92922dbb67005aa8ea1bcf7775606654516f706
- pristine_git_object: 58c43845bf9562b62bb9891692ba754febcef199
+ last_write_checksum: sha1:6849ee3d957aa58dbabd1dd07f74178c0c12f826
+ pristine_git_object: eb7ce725da78e418e174ecc9a6507ef434939f83
src/gr4vy/models/accountsreceivablesreportspec.py:
id: cc6a9368f988
last_write_checksum: sha1:4f404eb37f5ce14315f1800a5a0c45964f87d7d3
@@ -3603,6 +3619,10 @@ trackedFiles:
id: fccf9974e2f8
last_write_checksum: sha1:54c23d4a4a3588a57ac7f022ec458ea45b02fc12
pristine_git_object: bcad3f973c5a19f29d6464d34c077284c283877e
+ src/gr4vy/models/cybersourcecardoptions.py:
+ id: 53fa5adb60d8
+ last_write_checksum: sha1:97690a793ed5882b2ec01600230e67a88808508c
+ pristine_git_object: 4d16921aadda62c40f08744fef4b51bf027a0092
src/gr4vy/models/cybersourceoptions.py:
id: d90919e61a28
last_write_checksum: sha1:c46e159ebbc1731cf66b88c46dd78f90eedbaa68
@@ -4179,6 +4199,10 @@ trackedFiles:
id: 3db9b8525a5c
last_write_checksum: sha1:b3e976af3d92c0b5f7728e027bc9617ecf7a02e8
pristine_git_object: 627d0ea7e9ec95abdb74dbc696224047da3fe14d
+ src/gr4vy/models/mastercardcardoptions.py:
+ id: 09387104bffa
+ last_write_checksum: sha1:4c32f2a00317f4c3defab0a0654db3215b96e18e
+ pristine_git_object: 43a5f3c1220cacc89e99bff4aca9a88237bac389
src/gr4vy/models/mattildatapioptions.py:
id: 0f2489008cf3
last_write_checksum: sha1:f8848401bdf0358252f6f185ca60b38c9f184027
@@ -4791,6 +4815,14 @@ trackedFiles:
id: e528180f8162
last_write_checksum: sha1:15484914617c2b95b0f1bebb261d61ee9592afb4
pristine_git_object: 34f64428a70ac7ceeb28b2b4d8e28f8e235e7052
+ src/gr4vy/models/submerchantaddressoptions.py:
+ id: 38345d690025
+ last_write_checksum: sha1:095adb58bd48543554340e730808d31259a3be14
+ pristine_git_object: 652254a20d805827f35d6180fc99bfc6166765b9
+ src/gr4vy/models/submerchantoptions.py:
+ id: b85302ccbac8
+ last_write_checksum: sha1:54ae9c84810e43e67789606c8b7a77fba7201355
+ pristine_git_object: 7d752c36a88759593c0c100436561f51a8fda8a0
src/gr4vy/models/suspend_payment_method_network_tokenop.py:
id: 56f58d7fc722
last_write_checksum: sha1:7f1e3d1213ee8a9734f1b9efcb1af5c2b1d0b87c
@@ -4913,8 +4945,8 @@ trackedFiles:
pristine_git_object: c4b53b87f1d0edd5f26f934494cd6ada3010f4c4
src/gr4vy/models/transactionconnectionoptions.py:
id: e12dfa576d74
- last_write_checksum: sha1:58a1e0ff3e375dd8b52c109e1fcbf0a8fa431f0c
- pristine_git_object: e02c2094238046fab808e5fe4dc615983d583b4b
+ last_write_checksum: sha1:76babd70ecb86bb45c62f78ba05e6bd6f9e01556
+ pristine_git_object: 2e8db387fb4059d7cda4c460cd3dfd8bbe9b88aa
src/gr4vy/models/transactioncreate.py:
id: 640e0433670e
last_write_checksum: sha1:8a2ac069bbaf557a17b99c01f8bde4574e350e3d
@@ -9621,7 +9653,11 @@ 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"
+releaseNotes: |
+ ## Python SDK Changes:
+ * `gr4vy.transactions.create()`: `request.connection_options` **Changed**
+ * `gr4vy.transactions.update()`: `request.connection_options` **Changed**
+ * `gr4vy.payment_links.create()`: `request.connection_options` **Changed**
generatedFiles:
- .gitattributes
- .vscode/settings.json
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 476426e4..83d0c9ab 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
- version: 2.4.43
+ version: 2.4.44
additionalDependencies:
dev:
freezegun: ^1.5.1
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index a860c5e1..5575ad58 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,9 +1,9 @@
-speakeasyVersion: 1.812.0
+speakeasyVersion: 1.812.1
sources:
openapi:
sourceNamespace: openapi
- sourceRevisionDigest: sha256:28729a092b2a88b74fcef6d4a082e386fe45ccf521cc91c8555ff847e0c86581
- sourceBlobDigest: sha256:8f300a99164aa31a0ed73024ac2bcc12ca649923b96a20f13c92804fff5bf507
+ sourceRevisionDigest: sha256:e32b840cebfe631835fb72d5848d14763d091ac40f4edcd4e39e136308d582a3
+ sourceBlobDigest: sha256:abb3a1a338f4eabd26c89514e8db8299ce0065a9486bf98deeb48eb7f28638d9
tags:
- latest
- 1.0.0
@@ -11,10 +11,10 @@ targets:
python:
source: openapi
sourceNamespace: openapi
- sourceRevisionDigest: sha256:28729a092b2a88b74fcef6d4a082e386fe45ccf521cc91c8555ff847e0c86581
- sourceBlobDigest: sha256:8f300a99164aa31a0ed73024ac2bcc12ca649923b96a20f13c92804fff5bf507
+ sourceRevisionDigest: sha256:e32b840cebfe631835fb72d5848d14763d091ac40f4edcd4e39e136308d582a3
+ sourceBlobDigest: sha256:abb3a1a338f4eabd26c89514e8db8299ce0065a9486bf98deeb48eb7f28638d9
codeSamplesNamespace: openapi-python-code-samples
- codeSamplesRevisionDigest: sha256:b6e7a1215f881287fc432125c03f9c0d659a5ae0777edf872ff9f6960c931da9
+ codeSamplesRevisionDigest: sha256:cb435f0c2bc732b544120daeb788ec912dddf6ee425b4bbc60897508dedfa3a9
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index 5980991f..c46f3aba 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -2898,4 +2898,14 @@ Based on:
### Generated
- [python v2.4.43] .
### Releases
-- [PyPI v2.4.43] https://pypi.org/project/gr4vy/2.4.43 - .
\ No newline at end of file
+- [PyPI v2.4.43] https://pypi.org/project/gr4vy/2.4.43 - .
+
+## 2026-11-26 14:32:50
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.812.1 (2.968.17) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v2.4.44] .
+### Releases
+- [PyPI v2.4.44] https://pypi.org/project/gr4vy/2.4.44 - .
\ No newline at end of file
diff --git a/docs/models/cybersourcecardoptions.md b/docs/models/cybersourcecardoptions.md
new file mode 100644
index 00000000..26a686bf
--- /dev/null
+++ b/docs/models/cybersourcecardoptions.md
@@ -0,0 +1,14 @@
+# CybersourceCardOptions
+
+Connection options for Cybersource card payments.
+
+
+## Fields
+
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `sub_merchant` | [OptionalNullable[models.SubMerchantOptions]](../models/submerchantoptions.md) | :heavy_minus_sign: | The PayFac sub-merchant to send when the connection sponsors the card's scheme. | {
"address": {
"city": "Sydney",
"country": "AU",
"line1": "1 Example St",
"postal_code": "2000",
"state": "NSW"
},
"email": "ops@submerchant.com.au",
"id": "SM-12345",
"legal_name": "Registered legal name",
"mcc": "5812",
"name": "Trading name",
"phone": "+61200000000",
"website": "https://submerchant.com.au"
} |
+| `meta_key_merchant_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration. | merchant-1234 |
+| `merchant_defined_information` | Dict[str, *str*] | :heavy_minus_sign: | A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string. | {
"1": "data"
} |
+| `ship_to_method` | *OptionalNullable[str]* | :heavy_minus_sign: | The shipping method for this transaction. | sameday |
+| `comments` | *OptionalNullable[str]* | :heavy_minus_sign: | Brief description of the order or any comment you wish to add to the order. | This order is for a new customer |
\ No newline at end of file
diff --git a/docs/models/mastercardcardoptions.md b/docs/models/mastercardcardoptions.md
new file mode 100644
index 00000000..6ae324fd
--- /dev/null
+++ b/docs/models/mastercardcardoptions.md
@@ -0,0 +1,10 @@
+# MastercardCardOptions
+
+Connection options for Mastercard Gateway (MPGS) card payments.
+
+
+## Fields
+
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `sub_merchant` | [OptionalNullable[models.SubMerchantOptions]](../models/submerchantoptions.md) | :heavy_minus_sign: | The PayFac sub-merchant to send when the connection sponsors the card's scheme. | {
"address": {
"city": "Sydney",
"country": "AU",
"line1": "1 Example St",
"postal_code": "2000",
"state": "NSW"
},
"email": "ops@submerchant.com.au",
"id": "SM-12345",
"legal_name": "Registered legal name",
"mcc": "5812",
"name": "Trading name",
"phone": "+61200000000",
"website": "https://submerchant.com.au"
} |
\ No newline at end of file
diff --git a/docs/models/submerchantaddressoptions.md b/docs/models/submerchantaddressoptions.md
new file mode 100644
index 00000000..70ae64c2
--- /dev/null
+++ b/docs/models/submerchantaddressoptions.md
@@ -0,0 +1,14 @@
+# SubMerchantAddressOptions
+
+The address of a PayFac sub-merchant.
+
+
+## Fields
+
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
+| `line1` | *str* | :heavy_check_mark: | The first line of the address. | 1 Example St |
+| `city` | *str* | :heavy_check_mark: | The city. | Sydney |
+| `state` | *str* | :heavy_check_mark: | The state or province. | NSW |
+| `postal_code` | *str* | :heavy_check_mark: | The postal code. | 2000 |
+| `country` | *str* | :heavy_check_mark: | The ISO 3166-1 alpha-2 country code. | **Example 1:** DE
**Example 2:** GB
**Example 3:** US |
\ No newline at end of file
diff --git a/docs/models/submerchantoptions.md b/docs/models/submerchantoptions.md
new file mode 100644
index 00000000..68adfd30
--- /dev/null
+++ b/docs/models/submerchantoptions.md
@@ -0,0 +1,20 @@
+# SubMerchantOptions
+
+A PayFac sub-merchant to send with the transaction.
+
+Only used when the connection sponsors the card's scheme as a PayFac, and
+ignored otherwise.
+
+
+## Fields
+
+| Field | Type | Required | Description | Example |
+| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
+| `id` | *str* | :heavy_check_mark: | The sub-merchant's identifier. | SM-12345 |
+| `name` | *str* | :heavy_check_mark: | The sub-merchant's trading name. On Amex, the connection's PayFac name and this name must not exceed 36 characters combined. | Trading name |
+| `legal_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The sub-merchant's registered legal name. | Registered legal name |
+| `mcc` | *str* | :heavy_check_mark: | The sub-merchant's 4-digit merchant category code. | 5812 |
+| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | The sub-merchant's email address. Sent on Cybersource, not sent on Mastercard Gateway. | ops@submerchant.com.au |
+| `phone` | *OptionalNullable[str]* | :heavy_minus_sign: | The sub-merchant's phone number. | +61200000000 |
+| `website` | *OptionalNullable[str]* | :heavy_minus_sign: | The sub-merchant's website. Sent as the merchant descriptor URL on Cybersource, not sent on Mastercard Gateway. | https://submerchant.com.au |
+| `address` | [models.SubMerchantAddressOptions](../models/submerchantaddressoptions.md) | :heavy_check_mark: | The address of a PayFac sub-merchant. | |
\ No newline at end of file
diff --git a/docs/models/transactionconnectionoptions.md b/docs/models/transactionconnectionoptions.md
index ed1f50f4..85c4ed32 100644
--- a/docs/models/transactionconnectionoptions.md
+++ b/docs/models/transactionconnectionoptions.md
@@ -29,7 +29,7 @@
| `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. |
+| `cybersource_card` | [OptionalNullable[models.CybersourceCardOptions]](../models/cybersourcecardoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `cybersource-card` connector. |
| `cybersource_ideal` | [OptionalNullable[models.CybersourceOptions]](../models/cybersourceoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `cybersource-ideal` connector. |
| `cybersource_kcp` | [OptionalNullable[models.CybersourceOptions]](../models/cybersourceoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `cybersource-kcp` connector. |
| `dlocal_card` | [OptionalNullable[models.DlocalCardOptions]](../models/dlocalcardoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `dlocal-card` connector. |
@@ -47,6 +47,7 @@
| `gocardless_gocardless` | [OptionalNullable[models.GoCardlessOptions]](../models/gocardlessoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `gocardless-gocardless` connector. |
| `latitude_latitude` | [OptionalNullable[models.LatitudeOptions]](../models/latitudeoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `latitude-latitude` connector. |
| `latitude_latitudeds` | [OptionalNullable[models.LatitudeOptions]](../models/latitudeoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `latitude-latitudeds` connector. |
+| `mastercard_card` | [OptionalNullable[models.MastercardCardOptions]](../models/mastercardcardoptions.md) | :heavy_minus_sign: | Custom options to be passed to the `mastercard-card` connector. |
| `mattilda_tapi` | [OptionalNullable[models.MattildaTapiOptions]](../models/mattildatapioptions.md) | :heavy_minus_sign: | Custom options to be passed to the `mattilda-tapi` connector. |
| `mattilda_tapifintechs` | [OptionalNullable[models.MattildaTapiOptions]](../models/mattildatapioptions.md) | :heavy_minus_sign: | Custom options to be passed to the `mattilda-tapifintechs` connector. |
| `monato_spei` | [OptionalNullable[models.MonatoSpeiOptions]](../models/monatospeioptions.md) | :heavy_minus_sign: | Custom options to be passed to the `monato-spei` connector. |
diff --git a/pyproject.toml b/pyproject.toml
index a6a145d9..a0400b37 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[project]
name = "gr4vy"
-version = "2.4.43"
+version = "2.4.44"
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 69d70680..b9a9c54d 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.43"
+__version__: str = "2.4.44"
__openapi_doc_version__: str = "1.0.0"
-__gen_version__: str = "2.968.1"
-__user_agent__: str = "speakeasy-sdk/python 2.4.43 2.968.1 1.0.0 gr4vy"
+__gen_version__: str = "2.968.17"
+__user_agent__: str = "speakeasy-sdk/python 2.4.44 2.968.17 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 58c43845..eb7ce725 100644
--- a/src/gr4vy/models/__init__.py
+++ b/src/gr4vy/models/__init__.py
@@ -373,6 +373,10 @@
CybersourceAntiFraudOptions,
CybersourceAntiFraudOptionsTypedDict,
)
+ from .cybersourcecardoptions import (
+ CybersourceCardOptions,
+ CybersourceCardOptionsTypedDict,
+ )
from .cybersourceoptions import CybersourceOptions, CybersourceOptionsTypedDict
from .definitionfield import DefinitionField, DefinitionFieldTypedDict
from .definitionfieldformat import DefinitionFieldFormat
@@ -978,6 +982,10 @@
ListTransactionsResponse,
ListTransactionsResponseTypedDict,
)
+ from .mastercardcardoptions import (
+ MastercardCardOptions,
+ MastercardCardOptionsTypedDict,
+ )
from .mattildatapioptions import MattildaTapiOptions, MattildaTapiOptionsTypedDict
from .merchantaccount import MerchantAccount, MerchantAccountTypedDict
from .merchantaccountcreate import (
@@ -1367,6 +1375,11 @@
StripeConnectOptionsTypedDict,
)
from .stripeoptions import StripeOptions, StripeOptionsTypedDict
+ from .submerchantaddressoptions import (
+ SubMerchantAddressOptions,
+ SubMerchantAddressOptionsTypedDict,
+ )
+ from .submerchantoptions import SubMerchantOptions, SubMerchantOptionsTypedDict
from .suspend_payment_method_network_tokenop import (
SuspendPaymentMethodNetworkTokenGlobals,
SuspendPaymentMethodNetworkTokenGlobalsTypedDict,
@@ -1900,6 +1913,8 @@
"CryptogramTypedDict",
"CybersourceAntiFraudOptions",
"CybersourceAntiFraudOptionsTypedDict",
+ "CybersourceCardOptions",
+ "CybersourceCardOptionsTypedDict",
"CybersourceOptions",
"CybersourceOptionsTypedDict",
"DefinitionField",
@@ -2341,6 +2356,8 @@
"ListTransactionsResponseTypedDict",
"Loc",
"LocTypedDict",
+ "MastercardCardOptions",
+ "MastercardCardOptionsTypedDict",
"MattildaTapiOptions",
"MattildaTapiOptionsTypedDict",
"MerchantAccount",
@@ -2670,6 +2687,10 @@
"StripeConnectOptionsTypedDict",
"StripeOptions",
"StripeOptionsTypedDict",
+ "SubMerchantAddressOptions",
+ "SubMerchantAddressOptionsTypedDict",
+ "SubMerchantOptions",
+ "SubMerchantOptionsTypedDict",
"SubscriptionFrequencyUnit",
"SuspendPaymentMethodNetworkTokenGlobals",
"SuspendPaymentMethodNetworkTokenGlobalsTypedDict",
@@ -3144,6 +3165,8 @@
"CVVResponseCode": ".cvvresponsecode",
"CybersourceAntiFraudOptions": ".cybersourceantifraudoptions",
"CybersourceAntiFraudOptionsTypedDict": ".cybersourceantifraudoptions",
+ "CybersourceCardOptions": ".cybersourcecardoptions",
+ "CybersourceCardOptionsTypedDict": ".cybersourcecardoptions",
"CybersourceOptions": ".cybersourceoptions",
"CybersourceOptionsTypedDict": ".cybersourceoptions",
"DefinitionField": ".definitionfield",
@@ -3583,6 +3606,8 @@
"ListTransactionsRequestTypedDict": ".list_transactionsop",
"ListTransactionsResponse": ".list_transactionsop",
"ListTransactionsResponseTypedDict": ".list_transactionsop",
+ "MastercardCardOptions": ".mastercardcardoptions",
+ "MastercardCardOptionsTypedDict": ".mastercardcardoptions",
"MattildaTapiOptions": ".mattildatapioptions",
"MattildaTapiOptionsTypedDict": ".mattildatapioptions",
"MerchantAccount": ".merchantaccount",
@@ -3908,6 +3933,10 @@
"StripeConnectOptionsTypedDict": ".stripeconnectoptions",
"StripeOptions": ".stripeoptions",
"StripeOptionsTypedDict": ".stripeoptions",
+ "SubMerchantAddressOptions": ".submerchantaddressoptions",
+ "SubMerchantAddressOptionsTypedDict": ".submerchantaddressoptions",
+ "SubMerchantOptions": ".submerchantoptions",
+ "SubMerchantOptionsTypedDict": ".submerchantoptions",
"SuspendPaymentMethodNetworkTokenGlobals": ".suspend_payment_method_network_tokenop",
"SuspendPaymentMethodNetworkTokenGlobalsTypedDict": ".suspend_payment_method_network_tokenop",
"SuspendPaymentMethodNetworkTokenRequest": ".suspend_payment_method_network_tokenop",
diff --git a/src/gr4vy/models/cybersourcecardoptions.py b/src/gr4vy/models/cybersourcecardoptions.py
new file mode 100644
index 00000000..4d16921a
--- /dev/null
+++ b/src/gr4vy/models/cybersourcecardoptions.py
@@ -0,0 +1,99 @@
+"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
+
+from __future__ import annotations
+from .submerchantoptions import SubMerchantOptions, SubMerchantOptionsTypedDict
+from gr4vy.types import (
+ BaseModel,
+ Nullable,
+ OptionalNullable,
+ UNSET,
+ UNSET_SENTINEL,
+ current_exclude_none,
+ serialize_with_info,
+)
+from gr4vy.types.basemodel import current_filtered_dump
+from pydantic import model_serializer
+from typing import Dict
+from typing_extensions import NotRequired, TypedDict
+
+
+class CybersourceCardOptionsTypedDict(TypedDict):
+ r"""Connection options for Cybersource card payments."""
+
+ sub_merchant: NotRequired[Nullable[SubMerchantOptionsTypedDict]]
+ r"""The PayFac sub-merchant to send when the connection sponsors the card's scheme."""
+ meta_key_merchant_id: NotRequired[Nullable[str]]
+ r"""The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration."""
+ merchant_defined_information: NotRequired[Nullable[Dict[str, str]]]
+ r"""A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string."""
+ ship_to_method: NotRequired[Nullable[str]]
+ r"""The shipping method for this transaction."""
+ comments: NotRequired[Nullable[str]]
+ r"""Brief description of the order or any comment you wish to add to the order."""
+
+
+class CybersourceCardOptions(BaseModel):
+ r"""Connection options for Cybersource card payments."""
+
+ sub_merchant: OptionalNullable[SubMerchantOptions] = UNSET
+ r"""The PayFac sub-merchant to send when the connection sponsors the card's scheme."""
+
+ meta_key_merchant_id: OptionalNullable[str] = UNSET
+ r"""The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration."""
+
+ merchant_defined_information: OptionalNullable[Dict[str, str]] = UNSET
+ r"""A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string."""
+
+ ship_to_method: OptionalNullable[str] = UNSET
+ r"""The shipping method for this transaction."""
+
+ comments: OptionalNullable[str] = UNSET
+ r"""Brief description of the order or any comment you wish to add to the order."""
+
+ @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(
+ [
+ "sub_merchant",
+ "meta_key_merchant_id",
+ "merchant_defined_information",
+ "ship_to_method",
+ "comments",
+ ]
+ )
+ nullable_fields = set(
+ [
+ "sub_merchant",
+ "meta_key_merchant_id",
+ "merchant_defined_information",
+ "ship_to_method",
+ "comments",
+ ]
+ )
+ 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/mastercardcardoptions.py b/src/gr4vy/models/mastercardcardoptions.py
new file mode 100644
index 00000000..43a5f3c1
--- /dev/null
+++ b/src/gr4vy/models/mastercardcardoptions.py
@@ -0,0 +1,62 @@
+"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
+
+from __future__ import annotations
+from .submerchantoptions import SubMerchantOptions, SubMerchantOptionsTypedDict
+from gr4vy.types import (
+ BaseModel,
+ Nullable,
+ OptionalNullable,
+ UNSET,
+ UNSET_SENTINEL,
+ current_exclude_none,
+ serialize_with_info,
+)
+from gr4vy.types.basemodel import current_filtered_dump
+from pydantic import model_serializer
+from typing_extensions import NotRequired, TypedDict
+
+
+class MastercardCardOptionsTypedDict(TypedDict):
+ r"""Connection options for Mastercard Gateway (MPGS) card payments."""
+
+ sub_merchant: NotRequired[Nullable[SubMerchantOptionsTypedDict]]
+ r"""The PayFac sub-merchant to send when the connection sponsors the card's scheme."""
+
+
+class MastercardCardOptions(BaseModel):
+ r"""Connection options for Mastercard Gateway (MPGS) card payments."""
+
+ sub_merchant: OptionalNullable[SubMerchantOptions] = UNSET
+ r"""The PayFac sub-merchant to send when the connection sponsors the card's scheme."""
+
+ @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(["sub_merchant"])
+ nullable_fields = set(["sub_merchant"])
+ 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/submerchantaddressoptions.py b/src/gr4vy/models/submerchantaddressoptions.py
new file mode 100644
index 00000000..652254a2
--- /dev/null
+++ b/src/gr4vy/models/submerchantaddressoptions.py
@@ -0,0 +1,39 @@
+"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
+
+from __future__ import annotations
+from gr4vy.types import BaseModel
+from typing_extensions import TypedDict
+
+
+class SubMerchantAddressOptionsTypedDict(TypedDict):
+ r"""The address of a PayFac sub-merchant."""
+
+ line1: str
+ r"""The first line of the address."""
+ city: str
+ r"""The city."""
+ state: str
+ r"""The state or province."""
+ postal_code: str
+ r"""The postal code."""
+ country: str
+ r"""The ISO 3166-1 alpha-2 country code."""
+
+
+class SubMerchantAddressOptions(BaseModel):
+ r"""The address of a PayFac sub-merchant."""
+
+ line1: str
+ r"""The first line of the address."""
+
+ city: str
+ r"""The city."""
+
+ state: str
+ r"""The state or province."""
+
+ postal_code: str
+ r"""The postal code."""
+
+ country: str
+ r"""The ISO 3166-1 alpha-2 country code."""
diff --git a/src/gr4vy/models/submerchantoptions.py b/src/gr4vy/models/submerchantoptions.py
new file mode 100644
index 00000000..7d752c36
--- /dev/null
+++ b/src/gr4vy/models/submerchantoptions.py
@@ -0,0 +1,108 @@
+"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
+
+from __future__ import annotations
+from .submerchantaddressoptions import (
+ SubMerchantAddressOptions,
+ SubMerchantAddressOptionsTypedDict,
+)
+from gr4vy.types import (
+ BaseModel,
+ Nullable,
+ OptionalNullable,
+ UNSET,
+ UNSET_SENTINEL,
+ current_exclude_none,
+ serialize_with_info,
+)
+from gr4vy.types.basemodel import current_filtered_dump
+from pydantic import model_serializer
+from typing_extensions import NotRequired, TypedDict
+
+
+class SubMerchantOptionsTypedDict(TypedDict):
+ r"""A PayFac sub-merchant to send with the transaction.
+
+ Only used when the connection sponsors the card's scheme as a PayFac, and
+ ignored otherwise.
+ """
+
+ id: str
+ r"""The sub-merchant's identifier."""
+ name: str
+ r"""The sub-merchant's trading name. On Amex, the connection's PayFac name and this name must not exceed 36 characters combined."""
+ mcc: str
+ r"""The sub-merchant's 4-digit merchant category code."""
+ address: SubMerchantAddressOptionsTypedDict
+ r"""The address of a PayFac sub-merchant."""
+ legal_name: NotRequired[Nullable[str]]
+ r"""The sub-merchant's registered legal name."""
+ email: NotRequired[Nullable[str]]
+ r"""The sub-merchant's email address. Sent on Cybersource, not sent on Mastercard Gateway."""
+ phone: NotRequired[Nullable[str]]
+ r"""The sub-merchant's phone number."""
+ website: NotRequired[Nullable[str]]
+ r"""The sub-merchant's website. Sent as the merchant descriptor URL on Cybersource, not sent on Mastercard Gateway."""
+
+
+class SubMerchantOptions(BaseModel):
+ r"""A PayFac sub-merchant to send with the transaction.
+
+ Only used when the connection sponsors the card's scheme as a PayFac, and
+ ignored otherwise.
+ """
+
+ id: str
+ r"""The sub-merchant's identifier."""
+
+ name: str
+ r"""The sub-merchant's trading name. On Amex, the connection's PayFac name and this name must not exceed 36 characters combined."""
+
+ mcc: str
+ r"""The sub-merchant's 4-digit merchant category code."""
+
+ address: SubMerchantAddressOptions
+ r"""The address of a PayFac sub-merchant."""
+
+ legal_name: OptionalNullable[str] = UNSET
+ r"""The sub-merchant's registered legal name."""
+
+ email: OptionalNullable[str] = UNSET
+ r"""The sub-merchant's email address. Sent on Cybersource, not sent on Mastercard Gateway."""
+
+ phone: OptionalNullable[str] = UNSET
+ r"""The sub-merchant's phone number."""
+
+ website: OptionalNullable[str] = UNSET
+ r"""The sub-merchant's website. Sent as the merchant descriptor URL on Cybersource, not sent on Mastercard Gateway."""
+
+ @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(["legal_name", "email", "phone", "website"])
+ nullable_fields = set(["legal_name", "email", "phone", "website"])
+ 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 e02c2094..2e8db387 100644
--- a/src/gr4vy/models/transactionconnectionoptions.py
+++ b/src/gr4vy/models/transactionconnectionoptions.py
@@ -14,6 +14,10 @@
CybersourceAntiFraudOptions,
CybersourceAntiFraudOptionsTypedDict,
)
+from .cybersourcecardoptions import (
+ CybersourceCardOptions,
+ CybersourceCardOptionsTypedDict,
+)
from .cybersourceoptions import CybersourceOptions, CybersourceOptionsTypedDict
from .dlocalcardoptions import DlocalCardOptions, DlocalCardOptionsTypedDict
from .dlocaloptions import DlocalOptions, DlocalOptionsTypedDict
@@ -29,6 +33,7 @@
from .gocardlessoptions import GoCardlessOptions, GoCardlessOptionsTypedDict
from .klarnaoptions import KlarnaOptions, KlarnaOptionsTypedDict
from .latitudeoptions import LatitudeOptions, LatitudeOptionsTypedDict
+from .mastercardcardoptions import MastercardCardOptions, MastercardCardOptionsTypedDict
from .mattildatapioptions import MattildaTapiOptions, MattildaTapiOptionsTypedDict
from .mockcardoptions import MockCardOptions, MockCardOptionsTypedDict
from .monatospeioptions import MonatoSpeiOptions, MonatoSpeiOptionsTypedDict
@@ -120,7 +125,7 @@ class TransactionConnectionOptionsTypedDict(TypedDict):
r"""Custom options to be passed to the `chaseorbital-card` connector."""
cybersource_anti_fraud: NotRequired[Nullable[CybersourceAntiFraudOptionsTypedDict]]
r"""Custom options to be passed to the `cybersource-anti-fraud` connector."""
- cybersource_card: NotRequired[Nullable[CybersourceOptionsTypedDict]]
+ cybersource_card: NotRequired[Nullable[CybersourceCardOptionsTypedDict]]
r"""Custom options to be passed to the `cybersource-card` connector."""
cybersource_ideal: NotRequired[Nullable[CybersourceOptionsTypedDict]]
r"""Custom options to be passed to the `cybersource-ideal` connector."""
@@ -156,6 +161,8 @@ class TransactionConnectionOptionsTypedDict(TypedDict):
r"""Custom options to be passed to the `latitude-latitude` connector."""
latitude_latitudeds: NotRequired[Nullable[LatitudeOptionsTypedDict]]
r"""Custom options to be passed to the `latitude-latitudeds` connector."""
+ mastercard_card: NotRequired[Nullable[MastercardCardOptionsTypedDict]]
+ r"""Custom options to be passed to the `mastercard-card` connector."""
mattilda_tapi: NotRequired[Nullable[MattildaTapiOptionsTypedDict]]
r"""Custom options to be passed to the `mattilda-tapi` connector."""
mattilda_tapifintechs: NotRequired[Nullable[MattildaTapiOptionsTypedDict]]
@@ -335,7 +342,8 @@ class TransactionConnectionOptions(BaseModel):
r"""Custom options to be passed to the `cybersource-anti-fraud` connector."""
cybersource_card: Annotated[
- OptionalNullable[CybersourceOptions], pydantic.Field(alias="cybersource-card")
+ OptionalNullable[CybersourceCardOptions],
+ pydantic.Field(alias="cybersource-card"),
] = UNSET
r"""Custom options to be passed to the `cybersource-card` connector."""
@@ -427,6 +435,11 @@ class TransactionConnectionOptions(BaseModel):
] = UNSET
r"""Custom options to be passed to the `latitude-latitudeds` connector."""
+ mastercard_card: Annotated[
+ OptionalNullable[MastercardCardOptions], pydantic.Field(alias="mastercard-card")
+ ] = UNSET
+ r"""Custom options to be passed to the `mastercard-card` connector."""
+
mattilda_tapi: Annotated[
OptionalNullable[MattildaTapiOptions], pydantic.Field(alias="mattilda-tapi")
] = UNSET
@@ -615,6 +628,7 @@ def serialize_model(self, handler):
"gocardless-gocardless",
"latitude-latitude",
"latitude-latitudeds",
+ "mastercard-card",
"mattilda-tapi",
"mattilda-tapifintechs",
"monato-spei",
@@ -688,6 +702,7 @@ def serialize_model(self, handler):
"gocardless-gocardless",
"latitude-latitude",
"latitude-latitudeds",
+ "mastercard-card",
"mattilda-tapi",
"mattilda-tapifintechs",
"monato-spei",