diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 10153fd7..3fc0053a 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: 3ff5ec3a29f7331aec283e0601ad095b
+ docChecksum: ad21ac0a798b5264ff96fc3600ab5d34
docVersion: 1.0.0
speakeasyVersion: 1.813.1
generationVersion: 2.969.4
- releaseVersion: 2.4.45
- configChecksum: e9c259c8018d432191acdbb6476d4ddd
+ releaseVersion: 2.4.46
+ configChecksum: 841cdb0244cb72c6e6f0a72c2566f40a
repoURL: https://github.com/gr4vy/gr4vy-python.git
installationURL: https://github.com/gr4vy/gr4vy-python.git
published: true
persistentEdits:
- generation_id: d6f7786c-ad5d-4688-8d10-b5bca5ea7a11
- pristine_commit_hash: 7a3caf8a97f97ae2f6da990eef540ef964a4f9f4
- pristine_tree_hash: 25459bb390d43e4549e80cce20f709012c91d1cf
+ generation_id: 85202b71-9606-4081-b297-4921cc812db5
+ pristine_commit_hash: 371db79115fa0166816db24c493d130fc590e664
+ pristine_tree_hash: 80b92cb88a73bc932907f6bea2411bb76d19f449
features:
python:
additionalDependencies: 1.1.0
@@ -869,28 +869,40 @@ trackedFiles:
pristine_git_object: a2cb7ae8e398441c9bcff742623a9a4c0688ba28
docs/models/dlocalpixsubscriptionamountoptions.md:
id: 6de69e31842e
- last_write_checksum: sha1:bd7a97fcea46a9fce0ae6edf30a8ba6d0a0f941c
- pristine_git_object: dc31d1df308bd6591961c79876d20e4d87d53bbe
+ last_write_checksum: sha1:6f52d679d6bc685bd899803fe4a5db35ab6b0ac4
+ pristine_git_object: 1af66d465811a019c9f50e98b3e502bc219ca461
docs/models/dlocalpixsubscriptionamountoptionstype.md:
id: 3a8b14f5ec73
- last_write_checksum: sha1:39f9e216c1f5e1fbf5ffc979d06e94eb575cdec1
- pristine_git_object: e898e5c09c66e2c39e882bca5204ac535f5cf50e
+ last_write_checksum: sha1:3fc877e2ce9f1f64a5289eee71ae7503af1a6eaa
+ pristine_git_object: cfb8427adad66fb166433c0ce0fc008a4097ac68
docs/models/dlocalpixsubscriptionoptions.md:
id: a305eb34b8d9
- last_write_checksum: sha1:ed2b7bcd89c5b83e0546d665792661df44dc85c3
- pristine_git_object: bff6045f9438607e45c390649bb2bfef5c2eec1e
+ last_write_checksum: sha1:51975a808eb6d54f43931667f909cd16054ab11f
+ pristine_git_object: f5396f8969d2907bc2a6ac9807339db77c8fc50f
+ docs/models/dlocalpixsubscriptionoptionsfrequency.md:
+ id: fcdfc52d7582
+ last_write_checksum: sha1:a5f015a96bdf3b69eacdcbd15babc55d08b7f1b2
+ pristine_git_object: 0a3b402e1dce721e511225b6b348d5fb223dff7d
docs/models/dlocalupioptions.md:
id: a2b899266b4f
- last_write_checksum: sha1:5acf85f99436082cca7652a77c1cdc4b6a21ed96
- pristine_git_object: c0feaf9f2b1bf3d8e4e88d8b41a8bd1d61f63881
- docs/models/dlocalupirecurringinfooptions.md:
- id: 8b39d5b6248a
- last_write_checksum: sha1:05af72675cde971087c84af5de022517ec94f5cf
- pristine_git_object: 4b2d5bdb629c4d968a884913876069b2c9930fb7
- docs/models/dlocalupiwalletoptions.md:
- id: 7895d6310098
- last_write_checksum: sha1:f13aecf555a11161c418581a054beb61471e844c
- pristine_git_object: 2228499d5e496bce509674603391f4d46a4ad05b
+ last_write_checksum: sha1:b7d275670cbe4e86befe3f1432e103861b586629
+ pristine_git_object: 465870718f33cf8508c5135cc5ce9e378dfe846c
+ docs/models/dlocalupisubscriptionamountoptions.md:
+ id: "029472190356"
+ last_write_checksum: sha1:26c59893590a949b89eb8bcab31b8e5c07b850a2
+ pristine_git_object: 8aaa355679b45702185494e23616ddc4979666ab
+ docs/models/dlocalupisubscriptionamountoptionstype.md:
+ id: 0ee80e1298cf
+ last_write_checksum: sha1:1f37696c02879aaacceafad414d6376664a252be
+ pristine_git_object: 2e15656f4509bcfe376608bed87ddb182c24039e
+ docs/models/dlocalupisubscriptionoptions.md:
+ id: 78af3025da8e
+ last_write_checksum: sha1:07163ca0caf940cc8d6d1a0fd855f9bd83b815da
+ pristine_git_object: d983ac56b88158dbbfc8a2fa5520db6563664564
+ docs/models/dlocalupisubscriptionoptionsfrequency.md:
+ id: 9b9f05584d5d
+ last_write_checksum: sha1:de378e87c6b10a60679e31321443f88eabbec66b
+ pristine_git_object: 59fa9f65015d440736657fa5459b8c6836e1cdbb
docs/models/dlocalwalletoptions.md:
id: cebcecf111be
last_write_checksum: sha1:18f36bb27eabe1260557cde12862f8d40a17c0a3
@@ -995,10 +1007,6 @@ trackedFiles:
id: 890d742efb98
last_write_checksum: sha1:d1281d87b8084566200b819bf579a98cdcf8e720
pristine_git_object: 49f18ee73874ea0c38c37161ebcdced4bab59767
- docs/models/frequency.md:
- id: 1afa3fb14066
- last_write_checksum: sha1:067bfe0b28c8bcf443beae7fdba716335cab7a8e
- pristine_git_object: 1850b0c4c1ed4d7bf02789c48f1e590dc3cde786
docs/models/getapikeypairrequest.md:
id: 4ef916599a11
last_write_checksum: sha1:9cbb3b6f736242c96eefd5292fed1704d6a7ec47
@@ -2387,10 +2395,6 @@ trackedFiles:
id: d9b5fc6f1e0b
last_write_checksum: sha1:de9ae3daafb0d50fd54c925656a0f7f5cbbb8f44
pristine_git_object: 68adfd3016b50749b20df88aa773d0c07e372d69
- docs/models/subscriptionfrequencyunit.md:
- id: 7c4c5c7b32f4
- last_write_checksum: sha1:7a63a4a2d09dedb9454cea0a57ba17b02f42a307
- pristine_git_object: 881b9965d17ad7ef9428bb42adda01bd64b77763
docs/models/suspendpaymentmethodnetworktokenglobals.md:
id: 24ba3c5c1cce
last_write_checksum: sha1:4f80c977f0fc635e8250a6c8033a3c9f302dc24f
@@ -2977,8 +2981,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
- last_write_checksum: sha1:25d496b13f1b4f0e67cb20c10207c513f771d0a6
- pristine_git_object: ee93d6c84440e3fff1d21a8be9f914050ca40033
+ last_write_checksum: sha1:865b0fd38e7e7c4a0791e5894ffa4719c5f70b5c
+ pristine_git_object: f4556e0c5991744082b3590160c24d3ecff0b897
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710
@@ -3005,8 +3009,8 @@ trackedFiles:
pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd
src/gr4vy/_version.py:
id: 1b5ad1da47aa
- last_write_checksum: sha1:a6d34e4e9fd5cb2f09d9b102961aba48c36a6b0d
- pristine_git_object: 29e8e71508f2c3aa9f6c76b99c8f7d1ef5ea1599
+ last_write_checksum: sha1:ea234dc9c7c5e6bb21238b1be8a32c5a2f915a3a
+ pristine_git_object: 96073a8926e8107139baadb40eb5319100bede20
src/gr4vy/account_updater.py:
id: 6dc8f39e2fb9
last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b
@@ -3173,8 +3177,8 @@ trackedFiles:
pristine_git_object: becb7dcefb2ea12bf3e199ed39ece68944623c13
src/gr4vy/models/__init__.py:
id: 427cc7fddfe2
- last_write_checksum: sha1:6849ee3d957aa58dbabd1dd07f74178c0c12f826
- pristine_git_object: eb7ce725da78e418e174ecc9a6507ef434939f83
+ last_write_checksum: sha1:70f9e6722c7c4364cf73a48d6d343f032e4226d6
+ pristine_git_object: b9f3444e3beb27f8eaec61f3b96c69cc412b358a
src/gr4vy/models/accountsreceivablesreportspec.py:
id: cc6a9368f988
last_write_checksum: sha1:4f404eb37f5ce14315f1800a5a0c45964f87d7d3
@@ -3737,24 +3741,24 @@ trackedFiles:
pristine_git_object: c11fd71dcfa44b5597620f37a3797c7439338b18
src/gr4vy/models/dlocalpixsubscriptionamountoptions.py:
id: 7610ea3fb73b
- last_write_checksum: sha1:b25b6ff18da571294e3783d582976bcbfc1b6d77
- pristine_git_object: af32a9bed6616c3846ac12282389fb7f3a2fbc2c
+ last_write_checksum: sha1:3c4bb598f4d29a1f1838a7f41b5c698ab645c456
+ pristine_git_object: 96c3c0c9ce4e7ea5ddc3a175ed98d55996e93cbe
src/gr4vy/models/dlocalpixsubscriptionoptions.py:
id: 216ff5c57579
- last_write_checksum: sha1:3d6ef9a58d940a522b82162dea9b74cd9a77885f
- pristine_git_object: 55b96334bb8912203ca321ce518c8c5a4ac95678
+ last_write_checksum: sha1:8b90c9f5d709c52b72a81c82219476792777f6c3
+ pristine_git_object: 397b1696a2b95ff51a55e7d0ff11a483e62d314e
src/gr4vy/models/dlocalupioptions.py:
id: d31af8d25176
- last_write_checksum: sha1:c3afd6f6521171b5b2fb09658d84aaeae6532f19
- pristine_git_object: 90ec81a5da4a4954366e0df8a89d2552974ce49a
- src/gr4vy/models/dlocalupirecurringinfooptions.py:
- id: c6918e07579d
- last_write_checksum: sha1:791e2af0511e7fd60b9b6026615f1e24a490e9e1
- pristine_git_object: 311d44262c2495c8b341549944034e839148f189
- src/gr4vy/models/dlocalupiwalletoptions.py:
- id: "460313141724"
- last_write_checksum: sha1:27ca83b6edea2f73888310b44d5738fb4de91c06
- pristine_git_object: d6eeaec3febc3e9a38148fdd6eda2d5fa25ada00
+ last_write_checksum: sha1:c480875d1dc90ceb0e26bb138413fed4b38c151e
+ pristine_git_object: 23bcb371cccbf66f8701c4b36d65e734a1bc47e0
+ src/gr4vy/models/dlocalupisubscriptionamountoptions.py:
+ id: 0640b69bd103
+ last_write_checksum: sha1:96d37c896f661d3c43ae7f5a596cc2058a6c82b7
+ pristine_git_object: 9349e791d16ab0a1fd89092aea4ec7be2d46fa60
+ src/gr4vy/models/dlocalupisubscriptionoptions.py:
+ id: 427e8497c51b
+ last_write_checksum: sha1:eb63e9d80bcc354c45ff693f81e1959164ad270d
+ pristine_git_object: a243e294234c848ac9cc25bdaf06cb4ed4d86c85
src/gr4vy/models/dlocalwalletoptions.py:
id: 485448c851d9
last_write_checksum: sha1:955e6116649190b06b27f8c2612478fd2d18d451
@@ -9653,7 +9657,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.three_d_secure_data.union(ThreeDSecureDataV2)` **Changed**\n"
+releaseNotes: "## Python SDK Changes:\n* `gr4vy.transactions.create()`: \n * `request.connection_options.dlocal_upi` **Changed** (Breaking ⚠️)\n* `gr4vy.transactions.update()`: \n * `request.connection_options.dlocal_upi` **Changed** (Breaking ⚠️)\n* `gr4vy.payment_links.create()`: \n * `request.connection_options.dlocal_upi` **Changed** (Breaking ⚠️)\n"
generatedFiles:
- .gitattributes
- .vscode/settings.json
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 719f1c82..fa50c58b 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
- version: 2.4.45
+ version: 2.4.46
additionalDependencies:
dev:
freezegun: ^1.5.1
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index d1a22cdf..ac7b33a1 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -2,8 +2,8 @@ speakeasyVersion: 1.813.1
sources:
openapi:
sourceNamespace: openapi
- sourceRevisionDigest: sha256:740ce8f15c7e2bca88efee1040c2326a4408088d1e53817ed29c73522e8aa9b0
- sourceBlobDigest: sha256:5d9ac253c716e22d243ccd7792a225d7d4d6b4839648b6a1f5d7642ea078d5c5
+ sourceRevisionDigest: sha256:1abbd4833e2d3a310c33e2c57490ef029a1f763d66c641187a509e71251e42e8
+ sourceBlobDigest: sha256:13cf47896bd6e5c747e470ff12676a9771fd55ac878b1e1806fe377593b7498f
tags:
- latest
- 1.0.0
@@ -11,10 +11,10 @@ targets:
python:
source: openapi
sourceNamespace: openapi
- sourceRevisionDigest: sha256:740ce8f15c7e2bca88efee1040c2326a4408088d1e53817ed29c73522e8aa9b0
- sourceBlobDigest: sha256:5d9ac253c716e22d243ccd7792a225d7d4d6b4839648b6a1f5d7642ea078d5c5
+ sourceRevisionDigest: sha256:1abbd4833e2d3a310c33e2c57490ef029a1f763d66c641187a509e71251e42e8
+ sourceBlobDigest: sha256:13cf47896bd6e5c747e470ff12676a9771fd55ac878b1e1806fe377593b7498f
codeSamplesNamespace: openapi-python-code-samples
- codeSamplesRevisionDigest: sha256:c44eef492abab12659cd275fcd4285671ab67666b299391c19bfca3b37f1352c
+ codeSamplesRevisionDigest: sha256:a238bae8bdb8db7d6a2b747757838ebf9fd7cd7603c899e66d792803f9cec527
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index ef7905c0..6e31a6d2 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -2918,4 +2918,14 @@ Based on:
### Generated
- [python v2.4.45] .
### Releases
-- [PyPI v2.4.45] https://pypi.org/project/gr4vy/2.4.45 - .
\ No newline at end of file
+- [PyPI v2.4.45] https://pypi.org/project/gr4vy/2.4.45 - .
+
+## 2026-11-30 14:03:57
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.813.1 (2.969.4) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v2.4.46] .
+### Releases
+- [PyPI v2.4.46] https://pypi.org/project/gr4vy/2.4.46 - .
\ No newline at end of file
diff --git a/docs/models/dlocalpixsubscriptionamountoptions.md b/docs/models/dlocalpixsubscriptionamountoptions.md
index dc31d1df..1af66d46 100644
--- a/docs/models/dlocalpixsubscriptionamountoptions.md
+++ b/docs/models/dlocalpixsubscriptionamountoptions.md
@@ -3,8 +3,8 @@
## Fields
-| Field | Type | Required | Description | Example |
-| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
-| `type` | [models.DlocalPIXSubscriptionAmountOptionsType](../models/dlocalpixsubscriptionamountoptionstype.md) | :heavy_check_mark: | Indicates the amount type unit for the subscription. Allowed values are: `FIXED`, `VARIABLE`. | FIXED |
-| `value` | *OptionalNullable[str]* | :heavy_minus_sign: | Fixed subscription amount in local currency. Required only for fixed amount subscriptions depending on the payment method. | 10.00 |
-| `min_value` | *Nullable[str]* | :heavy_check_mark: | Minimum payer enrollment limit, not minimum recurring charge amount. | 10.00 |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
+| `type` | [models.DlocalPIXSubscriptionAmountOptionsType](../models/dlocalpixsubscriptionamountoptionstype.md) | :heavy_check_mark: | Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`. | FIXED |
+| `value` | *OptionalNullable[str]* | :heavy_minus_sign: | Fixed subscription amount in local currency. Required only for fixed amount subscriptions. | 25.00 |
+| `min_value` | *Nullable[str]* | :heavy_check_mark: | Minimum payer enrollment limit, not minimum recurring charge amount. | 10.00 |
\ No newline at end of file
diff --git a/docs/models/dlocalpixsubscriptionamountoptionstype.md b/docs/models/dlocalpixsubscriptionamountoptionstype.md
index e898e5c0..cfb8427a 100644
--- a/docs/models/dlocalpixsubscriptionamountoptionstype.md
+++ b/docs/models/dlocalpixsubscriptionamountoptionstype.md
@@ -1,6 +1,6 @@
# DlocalPIXSubscriptionAmountOptionsType
-Indicates the amount type unit for the subscription. Allowed values are: `FIXED`, `VARIABLE`.
+Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`.
## Example Usage
diff --git a/docs/models/dlocalpixsubscriptionoptions.md b/docs/models/dlocalpixsubscriptionoptions.md
index bff6045f..f5396f89 100644
--- a/docs/models/dlocalpixsubscriptionoptions.md
+++ b/docs/models/dlocalpixsubscriptionoptions.md
@@ -5,7 +5,7 @@
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
-| `amount` | [OptionalNullable[models.DlocalPIXSubscriptionAmountOptions]](../models/dlocalpixsubscriptionamountoptions.md) | :heavy_minus_sign: | Passes `subscription.amount` to the dLocal API for those connectors that need it. | {
"min_value": "10.00",
"type": "FIXED",
"value": "589.01"
} |
-| `frequency` | [models.Frequency](../models/frequency.md) | :heavy_check_mark: | Indicates the frequency unit for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, `ANNUAL`. | WEEKLY |
-| `start_date` | *OptionalNullable[str]* | :heavy_minus_sign: | Defines subscription start date. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not specified, The default is the current date. | 2030-12-01 |
-| `end_date` | *OptionalNullable[str]* | :heavy_minus_sign: | Defines subscription expiration date. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not provided, the subscription will not expire. | 2030-12-01 |
\ No newline at end of file
+| `start_date` | *OptionalNullable[str]* | :heavy_minus_sign: | Defines subscription start date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not specified, the default is the current date. | 2030-12-01 |
+| `end_date` | *OptionalNullable[str]* | :heavy_minus_sign: | Defines subscription expiration date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not provided, the subscription will not expire. | 2031-12-01 |
+| `amount` | [OptionalNullable[models.DlocalPIXSubscriptionAmountOptions]](../models/dlocalpixsubscriptionamountoptions.md) | :heavy_minus_sign: | Passes `subscription.amount` to the dLocal API for those connectors that need it. | {
"min_value": null,
"type": "FIXED",
"value": "589.01"
} |
+| `frequency` | [models.DlocalPIXSubscriptionOptionsFrequency](../models/dlocalpixsubscriptionoptionsfrequency.md) | :heavy_check_mark: | Indicates the frequency unit for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, `ANNUAL`. | WEEKLY |
\ No newline at end of file
diff --git a/docs/models/frequency.md b/docs/models/dlocalpixsubscriptionoptionsfrequency.md
similarity index 70%
rename from docs/models/frequency.md
rename to docs/models/dlocalpixsubscriptionoptionsfrequency.md
index 1850b0c4..0a3b402e 100644
--- a/docs/models/frequency.md
+++ b/docs/models/dlocalpixsubscriptionoptionsfrequency.md
@@ -1,14 +1,14 @@
-# Frequency
+# DlocalPIXSubscriptionOptionsFrequency
Indicates the frequency unit for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, `ANNUAL`.
## Example Usage
```python
-from gr4vy.models import Frequency
+from gr4vy.models import DlocalPIXSubscriptionOptionsFrequency
# Open enum: unrecognized values are captured as UnrecognizedStr
-value: Frequency = "WEEKLY"
+value: DlocalPIXSubscriptionOptionsFrequency = "WEEKLY"
```
diff --git a/docs/models/dlocalupioptions.md b/docs/models/dlocalupioptions.md
index c0feaf9f..46587071 100644
--- a/docs/models/dlocalupioptions.md
+++ b/docs/models/dlocalupioptions.md
@@ -3,6 +3,6 @@
## Fields
-| Field | Type | Required | Description |
-| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
-| `wallet` | [OptionalNullable[models.DlocalUPIWalletOptions]](../models/dlocalupiwalletoptions.md) | :heavy_minus_sign: | Passes `wallet` data to the dLocal API for those connectors that need it. |
\ No newline at end of file
+| Field | Type | Required | Description | Example |
+| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
+| `subscription` | [OptionalNullable[models.DlocalUPISubscriptionOptions]](../models/dlocalupisubscriptionoptions.md) | :heavy_minus_sign: | Passes `subscription` data to the dLocal API when enrolling a UPI recurring mandate. Required to tokenize a recurring payment. | {
"amount": {
"max_value": "500.00",
"type": "VARIABLE"
},
"frequency": "MONTHLY"
} |
\ No newline at end of file
diff --git a/docs/models/dlocalupirecurringinfooptions.md b/docs/models/dlocalupirecurringinfooptions.md
deleted file mode 100644
index 4b2d5bdb..00000000
--- a/docs/models/dlocalupirecurringinfooptions.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DlocalUPIRecurringInfoOptions
-
-
-## Fields
-
-| Field | Type | Required | Description | Example |
-| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| `subscription_frequency_unit` | [models.SubscriptionFrequencyUnit](../models/subscriptionfrequencyunit.md) | :heavy_check_mark: | Indicates the frequency unit for the subscription. Allowed values are: `DAY`, `WEEK`, `MONTH`, `BI_MONTHLY`, `QUARTER`, `SEMI_ANNUALLY`, `YEAR`, `ONDEMAND`. | MONTH |
-| `subscription_frequency` | *int* | :heavy_check_mark: | Indicates the frequency for the subscription. | 1 |
-| `subscription_start_at` | *str* | :heavy_check_mark: | Indicates the start date for the subscription in format `YYYYMMDD`. | 20231201 |
-| `subscription_end_at` | *str* | :heavy_check_mark: | Indicates the end date for the subscription in format `YYYYMMDD`. | 20241201 |
\ No newline at end of file
diff --git a/docs/models/dlocalupisubscriptionamountoptions.md b/docs/models/dlocalupisubscriptionamountoptions.md
new file mode 100644
index 00000000..8aaa3556
--- /dev/null
+++ b/docs/models/dlocalupisubscriptionamountoptions.md
@@ -0,0 +1,10 @@
+# DlocalUPISubscriptionAmountOptions
+
+
+## Fields
+
+| Field | Type | Required | Description | Example |
+| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
+| `type` | [models.DlocalUPISubscriptionAmountOptionsType](../models/dlocalupisubscriptionamountoptionstype.md) | :heavy_check_mark: | Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`. | FIXED |
+| `value` | *OptionalNullable[str]* | :heavy_minus_sign: | Fixed subscription amount in local currency. Required only for fixed amount subscriptions. | 25.00 |
+| `max_value` | *OptionalNullable[str]* | :heavy_minus_sign: | Maximum amount in local currency that can be charged for the subsequent recurring payments. Required only for variable amount subscriptions. | 500.00 |
\ No newline at end of file
diff --git a/docs/models/dlocalupisubscriptionamountoptionstype.md b/docs/models/dlocalupisubscriptionamountoptionstype.md
new file mode 100644
index 00000000..2e15656f
--- /dev/null
+++ b/docs/models/dlocalupisubscriptionamountoptionstype.md
@@ -0,0 +1,20 @@
+# DlocalUPISubscriptionAmountOptionsType
+
+Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`.
+
+## Example Usage
+
+```python
+from gr4vy.models import DlocalUPISubscriptionAmountOptionsType
+
+# Open enum: unrecognized values are captured as UnrecognizedStr
+value: DlocalUPISubscriptionAmountOptionsType = "FIXED"
+```
+
+
+## Values
+
+This is an open enum. Unrecognized values will not fail type checks.
+
+- `"FIXED"`
+- `"VARIABLE"`
diff --git a/docs/models/dlocalupisubscriptionoptions.md b/docs/models/dlocalupisubscriptionoptions.md
new file mode 100644
index 00000000..d983ac56
--- /dev/null
+++ b/docs/models/dlocalupisubscriptionoptions.md
@@ -0,0 +1,11 @@
+# DlocalUPISubscriptionOptions
+
+
+## Fields
+
+| Field | Type | Required | Description | Example |
+| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
+| `start_date` | *OptionalNullable[str]* | :heavy_minus_sign: | Defines subscription start date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not specified, the default is the current date. | 2030-12-01 |
+| `end_date` | *OptionalNullable[str]* | :heavy_minus_sign: | Defines subscription expiration date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not provided, the subscription will not expire. | 2031-12-01 |
+| `amount` | [models.DlocalUPISubscriptionAmountOptions](../models/dlocalupisubscriptionamountoptions.md) | :heavy_check_mark: | N/A | |
+| `frequency` | [models.DlocalUPISubscriptionOptionsFrequency](../models/dlocalupisubscriptionoptionsfrequency.md) | :heavy_check_mark: | Indicates the frequency for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `SEMI_ANNUAL`, `ANNUAL`. | MONTHLY |
\ No newline at end of file
diff --git a/docs/models/dlocalupisubscriptionoptionsfrequency.md b/docs/models/dlocalupisubscriptionoptionsfrequency.md
new file mode 100644
index 00000000..59fa9f65
--- /dev/null
+++ b/docs/models/dlocalupisubscriptionoptionsfrequency.md
@@ -0,0 +1,22 @@
+# DlocalUPISubscriptionOptionsFrequency
+
+Indicates the frequency for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `SEMI_ANNUAL`, `ANNUAL`.
+
+## Example Usage
+
+```python
+from gr4vy.models import DlocalUPISubscriptionOptionsFrequency
+
+# Open enum: unrecognized values are captured as UnrecognizedStr
+value: DlocalUPISubscriptionOptionsFrequency = "WEEKLY"
+```
+
+
+## Values
+
+This is an open enum. Unrecognized values will not fail type checks.
+
+- `"WEEKLY"`
+- `"MONTHLY"`
+- `"SEMI_ANNUAL"`
+- `"ANNUAL"`
diff --git a/docs/models/dlocalupiwalletoptions.md b/docs/models/dlocalupiwalletoptions.md
deleted file mode 100644
index 2228499d..00000000
--- a/docs/models/dlocalupiwalletoptions.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# DlocalUPIWalletOptions
-
-
-## Fields
-
-| Field | Type | Required | Description | Example |
-| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
-| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Passes `wallet.name` to the dLocal API for those connectors that need it. | John Doe |
-| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Passes `wallet.email` to the dLocal API for those connectors that need it. | john@example.com |
-| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | Passes `wallet.token` to the dLocal API for those connectors that need it. | 123456 |
-| `username` | *OptionalNullable[str]* | :heavy_minus_sign: | Passes `wallet.username` to the dLocal API for those connectors that need it. | johnd |
-| `verify` | *OptionalNullable[bool]* | :heavy_minus_sign: | Passes `wallet.verify` to the dLocal API for those connectors that need it. | true |
-| `recurring_info` | [OptionalNullable[models.DlocalUPIRecurringInfoOptions]](../models/dlocalupirecurringinfooptions.md) | :heavy_minus_sign: | Passes `wallet.recurring_info` to the dLocal API for those connectors that need it. | {
"subscription_end_at": "20241201",
"subscription_frequency": 1,
"subscription_frequency_unit": "MONTH",
"subscription_start_at": "20231201"
} |
\ No newline at end of file
diff --git a/docs/models/subscriptionfrequencyunit.md b/docs/models/subscriptionfrequencyunit.md
deleted file mode 100644
index 881b9965..00000000
--- a/docs/models/subscriptionfrequencyunit.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# SubscriptionFrequencyUnit
-
-Indicates the frequency unit for the subscription. Allowed values are: `DAY`, `WEEK`, `MONTH`, `BI_MONTHLY`, `QUARTER`, `SEMI_ANNUALLY`, `YEAR`, `ONDEMAND`.
-
-## Example Usage
-
-```python
-from gr4vy.models import SubscriptionFrequencyUnit
-
-# Open enum: unrecognized values are captured as UnrecognizedStr
-value: SubscriptionFrequencyUnit = "MONTH"
-```
-
-
-## Values
-
-This is an open enum. Unrecognized values will not fail type checks.
-
-- `"MONTH"`
-- `"WEEK"`
-- `"BI_MONTHLY"`
-- `"ONDEMAND"`
-- `"QUARTER"`
-- `"YEAR"`
-- `"SEMI_ANNUALLY"`
-- `"DAY"`
diff --git a/pyproject.toml b/pyproject.toml
index ee93d6c8..f4556e0c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[project]
name = "gr4vy"
-version = "2.4.45"
+version = "2.4.46"
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 29e8e715..96073a89 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.45"
+__version__: str = "2.4.46"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.969.4"
-__user_agent__: str = "speakeasy-sdk/python 2.4.45 2.969.4 1.0.0 gr4vy"
+__user_agent__: str = "speakeasy-sdk/python 2.4.46 2.969.4 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 eb7ce725..b9f3444e 100644
--- a/src/gr4vy/models/__init__.py
+++ b/src/gr4vy/models/__init__.py
@@ -479,18 +479,19 @@
)
from .dlocalpixsubscriptionoptions import (
DlocalPIXSubscriptionOptions,
+ DlocalPIXSubscriptionOptionsFrequency,
DlocalPIXSubscriptionOptionsTypedDict,
- Frequency,
)
from .dlocalupioptions import DlocalUPIOptions, DlocalUPIOptionsTypedDict
- from .dlocalupirecurringinfooptions import (
- DlocalUPIRecurringInfoOptions,
- DlocalUPIRecurringInfoOptionsTypedDict,
- SubscriptionFrequencyUnit,
+ from .dlocalupisubscriptionamountoptions import (
+ DlocalUPISubscriptionAmountOptions,
+ DlocalUPISubscriptionAmountOptionsType,
+ DlocalUPISubscriptionAmountOptionsTypedDict,
)
- from .dlocalupiwalletoptions import (
- DlocalUPIWalletOptions,
- DlocalUPIWalletOptionsTypedDict,
+ from .dlocalupisubscriptionoptions import (
+ DlocalUPISubscriptionOptions,
+ DlocalUPISubscriptionOptionsFrequency,
+ DlocalUPISubscriptionOptionsTypedDict,
)
from .dlocalwalletoptions import DlocalWalletOptions, DlocalWalletOptionsTypedDict
from .ecommpayoptions import EcommpayOptions, EcommpayOptionsTypedDict
@@ -1996,13 +1997,16 @@
"DlocalPIXSubscriptionAmountOptionsType",
"DlocalPIXSubscriptionAmountOptionsTypedDict",
"DlocalPIXSubscriptionOptions",
+ "DlocalPIXSubscriptionOptionsFrequency",
"DlocalPIXSubscriptionOptionsTypedDict",
"DlocalUPIOptions",
"DlocalUPIOptionsTypedDict",
- "DlocalUPIRecurringInfoOptions",
- "DlocalUPIRecurringInfoOptionsTypedDict",
- "DlocalUPIWalletOptions",
- "DlocalUPIWalletOptionsTypedDict",
+ "DlocalUPISubscriptionAmountOptions",
+ "DlocalUPISubscriptionAmountOptionsType",
+ "DlocalUPISubscriptionAmountOptionsTypedDict",
+ "DlocalUPISubscriptionOptions",
+ "DlocalUPISubscriptionOptionsFrequency",
+ "DlocalUPISubscriptionOptionsTypedDict",
"DlocalWalletOptions",
"DlocalWalletOptionsTypedDict",
"EcommpayOptions",
@@ -2049,7 +2053,6 @@
"ForterAntiFraudOptionsDiscountCouponDiscountAmountTypedDict",
"ForterAntiFraudOptionsDiscountTypedDict",
"ForterAntiFraudOptionsTypedDict",
- "Frequency",
"GetAPIKeyPairRequest",
"GetAPIKeyPairRequestTypedDict",
"GetBuyerGlobals",
@@ -2691,7 +2694,6 @@
"SubMerchantAddressOptionsTypedDict",
"SubMerchantOptions",
"SubMerchantOptionsTypedDict",
- "SubscriptionFrequencyUnit",
"SuspendPaymentMethodNetworkTokenGlobals",
"SuspendPaymentMethodNetworkTokenGlobalsTypedDict",
"SuspendPaymentMethodNetworkTokenRequest",
@@ -3247,15 +3249,16 @@
"DlocalPIXSubscriptionAmountOptionsType": ".dlocalpixsubscriptionamountoptions",
"DlocalPIXSubscriptionAmountOptionsTypedDict": ".dlocalpixsubscriptionamountoptions",
"DlocalPIXSubscriptionOptions": ".dlocalpixsubscriptionoptions",
+ "DlocalPIXSubscriptionOptionsFrequency": ".dlocalpixsubscriptionoptions",
"DlocalPIXSubscriptionOptionsTypedDict": ".dlocalpixsubscriptionoptions",
- "Frequency": ".dlocalpixsubscriptionoptions",
"DlocalUPIOptions": ".dlocalupioptions",
"DlocalUPIOptionsTypedDict": ".dlocalupioptions",
- "DlocalUPIRecurringInfoOptions": ".dlocalupirecurringinfooptions",
- "DlocalUPIRecurringInfoOptionsTypedDict": ".dlocalupirecurringinfooptions",
- "SubscriptionFrequencyUnit": ".dlocalupirecurringinfooptions",
- "DlocalUPIWalletOptions": ".dlocalupiwalletoptions",
- "DlocalUPIWalletOptionsTypedDict": ".dlocalupiwalletoptions",
+ "DlocalUPISubscriptionAmountOptions": ".dlocalupisubscriptionamountoptions",
+ "DlocalUPISubscriptionAmountOptionsType": ".dlocalupisubscriptionamountoptions",
+ "DlocalUPISubscriptionAmountOptionsTypedDict": ".dlocalupisubscriptionamountoptions",
+ "DlocalUPISubscriptionOptions": ".dlocalupisubscriptionoptions",
+ "DlocalUPISubscriptionOptionsFrequency": ".dlocalupisubscriptionoptions",
+ "DlocalUPISubscriptionOptionsTypedDict": ".dlocalupisubscriptionoptions",
"DlocalWalletOptions": ".dlocalwalletoptions",
"DlocalWalletOptionsTypedDict": ".dlocalwalletoptions",
"EcommpayOptions": ".ecommpayoptions",
diff --git a/src/gr4vy/models/dlocalpixsubscriptionamountoptions.py b/src/gr4vy/models/dlocalpixsubscriptionamountoptions.py
index af32a9be..96c3c0c9 100644
--- a/src/gr4vy/models/dlocalpixsubscriptionamountoptions.py
+++ b/src/gr4vy/models/dlocalpixsubscriptionamountoptions.py
@@ -24,27 +24,27 @@
],
UnrecognizedStr,
]
-r"""Indicates the amount type unit for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
+r"""Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
class DlocalPIXSubscriptionAmountOptionsTypedDict(TypedDict):
type: DlocalPIXSubscriptionAmountOptionsType
- r"""Indicates the amount type unit for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
+ r"""Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
min_value: Nullable[str]
r"""Minimum payer enrollment limit, not minimum recurring charge amount."""
value: NotRequired[Nullable[str]]
- r"""Fixed subscription amount in local currency. Required only for fixed amount subscriptions depending on the payment method."""
+ r"""Fixed subscription amount in local currency. Required only for fixed amount subscriptions."""
class DlocalPIXSubscriptionAmountOptions(BaseModel):
type: DlocalPIXSubscriptionAmountOptionsType
- r"""Indicates the amount type unit for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
+ r"""Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
min_value: Nullable[str]
r"""Minimum payer enrollment limit, not minimum recurring charge amount."""
value: OptionalNullable[str] = UNSET
- r"""Fixed subscription amount in local currency. Required only for fixed amount subscriptions depending on the payment method."""
+ r"""Fixed subscription amount in local currency. Required only for fixed amount subscriptions."""
@model_serializer(mode="wrap")
def _serialize_model_with_info(self, handler, info):
diff --git a/src/gr4vy/models/dlocalpixsubscriptionoptions.py b/src/gr4vy/models/dlocalpixsubscriptionoptions.py
index 55b96334..397b1696 100644
--- a/src/gr4vy/models/dlocalpixsubscriptionoptions.py
+++ b/src/gr4vy/models/dlocalpixsubscriptionoptions.py
@@ -21,7 +21,7 @@
from typing_extensions import NotRequired, TypedDict
-Frequency = Union[
+DlocalPIXSubscriptionOptionsFrequency = Union[
Literal[
"WEEKLY",
"MONTHLY",
@@ -35,36 +35,36 @@
class DlocalPIXSubscriptionOptionsTypedDict(TypedDict):
- frequency: Frequency
+ frequency: DlocalPIXSubscriptionOptionsFrequency
r"""Indicates the frequency unit for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, `ANNUAL`."""
- amount: NotRequired[Nullable[DlocalPIXSubscriptionAmountOptionsTypedDict]]
- r"""Passes `subscription.amount` to the dLocal API for those connectors that need it."""
start_date: NotRequired[Nullable[str]]
- r"""Defines subscription start date. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not specified, The default is the current date."""
+ r"""Defines subscription start date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not specified, the default is the current date."""
end_date: NotRequired[Nullable[str]]
- r"""Defines subscription expiration date. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not provided, the subscription will not expire."""
+ r"""Defines subscription expiration date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not provided, the subscription will not expire."""
+ amount: NotRequired[Nullable[DlocalPIXSubscriptionAmountOptionsTypedDict]]
+ r"""Passes `subscription.amount` to the dLocal API for those connectors that need it."""
class DlocalPIXSubscriptionOptions(BaseModel):
- frequency: Frequency
+ frequency: DlocalPIXSubscriptionOptionsFrequency
r"""Indicates the frequency unit for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, `ANNUAL`."""
- amount: OptionalNullable[DlocalPIXSubscriptionAmountOptions] = UNSET
- r"""Passes `subscription.amount` to the dLocal API for those connectors that need it."""
-
start_date: OptionalNullable[str] = UNSET
- r"""Defines subscription start date. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not specified, The default is the current date."""
+ r"""Defines subscription start date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not specified, the default is the current date."""
end_date: OptionalNullable[str] = UNSET
- r"""Defines subscription expiration date. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not provided, the subscription will not expire."""
+ r"""Defines subscription expiration date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not provided, the subscription will not expire."""
+
+ amount: OptionalNullable[DlocalPIXSubscriptionAmountOptions] = UNSET
+ r"""Passes `subscription.amount` to the dLocal API for those connectors that need it."""
@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(["amount", "start_date", "end_date"])
- nullable_fields = set(["amount", "start_date", "end_date"])
+ optional_fields = set(["start_date", "end_date", "amount"])
+ nullable_fields = set(["start_date", "end_date", "amount"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
diff --git a/src/gr4vy/models/dlocalupioptions.py b/src/gr4vy/models/dlocalupioptions.py
index 90ec81a5..23bcb371 100644
--- a/src/gr4vy/models/dlocalupioptions.py
+++ b/src/gr4vy/models/dlocalupioptions.py
@@ -1,9 +1,9 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
-from .dlocalupiwalletoptions import (
- DlocalUPIWalletOptions,
- DlocalUPIWalletOptionsTypedDict,
+from .dlocalupisubscriptionoptions import (
+ DlocalUPISubscriptionOptions,
+ DlocalUPISubscriptionOptionsTypedDict,
)
from gr4vy.types import (
BaseModel,
@@ -20,21 +20,21 @@
class DlocalUPIOptionsTypedDict(TypedDict):
- wallet: NotRequired[Nullable[DlocalUPIWalletOptionsTypedDict]]
- r"""Passes `wallet` data to the dLocal API for those connectors that need it."""
+ subscription: NotRequired[Nullable[DlocalUPISubscriptionOptionsTypedDict]]
+ r"""Passes `subscription` data to the dLocal API when enrolling a UPI recurring mandate. Required to tokenize a recurring payment."""
class DlocalUPIOptions(BaseModel):
- wallet: OptionalNullable[DlocalUPIWalletOptions] = UNSET
- r"""Passes `wallet` data to the dLocal API for those connectors that need it."""
+ subscription: OptionalNullable[DlocalUPISubscriptionOptions] = UNSET
+ r"""Passes `subscription` data to the dLocal API when enrolling a UPI recurring mandate. Required to tokenize a recurring payment."""
@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(["wallet"])
- nullable_fields = set(["wallet"])
+ optional_fields = set(["subscription"])
+ nullable_fields = set(["subscription"])
exclude_none = current_exclude_none()
skip_filtered = exclude_none is False or current_filtered_dump()
serialized = handler(self)
diff --git a/src/gr4vy/models/dlocalupirecurringinfooptions.py b/src/gr4vy/models/dlocalupirecurringinfooptions.py
deleted file mode 100644
index 311d4426..00000000
--- a/src/gr4vy/models/dlocalupirecurringinfooptions.py
+++ /dev/null
@@ -1,47 +0,0 @@
-"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
-
-from __future__ import annotations
-from gr4vy.types import BaseModel, UnrecognizedStr
-from typing import Literal, Union
-from typing_extensions import TypedDict
-
-
-SubscriptionFrequencyUnit = Union[
- Literal[
- "MONTH",
- "WEEK",
- "BI_MONTHLY",
- "ONDEMAND",
- "QUARTER",
- "YEAR",
- "SEMI_ANNUALLY",
- "DAY",
- ],
- UnrecognizedStr,
-]
-r"""Indicates the frequency unit for the subscription. Allowed values are: `DAY`, `WEEK`, `MONTH`, `BI_MONTHLY`, `QUARTER`, `SEMI_ANNUALLY`, `YEAR`, `ONDEMAND`."""
-
-
-class DlocalUPIRecurringInfoOptionsTypedDict(TypedDict):
- subscription_frequency_unit: SubscriptionFrequencyUnit
- r"""Indicates the frequency unit for the subscription. Allowed values are: `DAY`, `WEEK`, `MONTH`, `BI_MONTHLY`, `QUARTER`, `SEMI_ANNUALLY`, `YEAR`, `ONDEMAND`."""
- subscription_frequency: int
- r"""Indicates the frequency for the subscription."""
- subscription_start_at: str
- r"""Indicates the start date for the subscription in format `YYYYMMDD`."""
- subscription_end_at: str
- r"""Indicates the end date for the subscription in format `YYYYMMDD`."""
-
-
-class DlocalUPIRecurringInfoOptions(BaseModel):
- subscription_frequency_unit: SubscriptionFrequencyUnit
- r"""Indicates the frequency unit for the subscription. Allowed values are: `DAY`, `WEEK`, `MONTH`, `BI_MONTHLY`, `QUARTER`, `SEMI_ANNUALLY`, `YEAR`, `ONDEMAND`."""
-
- subscription_frequency: int
- r"""Indicates the frequency for the subscription."""
-
- subscription_start_at: str
- r"""Indicates the start date for the subscription in format `YYYYMMDD`."""
-
- subscription_end_at: str
- r"""Indicates the end date for the subscription in format `YYYYMMDD`."""
diff --git a/src/gr4vy/models/dlocalupisubscriptionamountoptions.py b/src/gr4vy/models/dlocalupisubscriptionamountoptions.py
new file mode 100644
index 00000000..9349e791
--- /dev/null
+++ b/src/gr4vy/models/dlocalupisubscriptionamountoptions.py
@@ -0,0 +1,79 @@
+"""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
+
+
+DlocalUPISubscriptionAmountOptionsType = Union[
+ Literal[
+ "FIXED",
+ "VARIABLE",
+ ],
+ UnrecognizedStr,
+]
+r"""Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
+
+
+class DlocalUPISubscriptionAmountOptionsTypedDict(TypedDict):
+ type: DlocalUPISubscriptionAmountOptionsType
+ r"""Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
+ value: NotRequired[Nullable[str]]
+ r"""Fixed subscription amount in local currency. Required only for fixed amount subscriptions."""
+ max_value: NotRequired[Nullable[str]]
+ r"""Maximum amount in local currency that can be charged for the subsequent recurring payments. Required only for variable amount subscriptions."""
+
+
+class DlocalUPISubscriptionAmountOptions(BaseModel):
+ type: DlocalUPISubscriptionAmountOptionsType
+ r"""Indicates the amount type for the subscription. Allowed values are: `FIXED`, `VARIABLE`."""
+
+ value: OptionalNullable[str] = UNSET
+ r"""Fixed subscription amount in local currency. Required only for fixed amount subscriptions."""
+
+ max_value: OptionalNullable[str] = UNSET
+ r"""Maximum amount in local currency that can be charged for the subsequent recurring payments. Required only for variable amount subscriptions."""
+
+ @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(["value", "max_value"])
+ nullable_fields = set(["value", "max_value"])
+ 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/dlocalupisubscriptionoptions.py b/src/gr4vy/models/dlocalupisubscriptionoptions.py
new file mode 100644
index 00000000..a243e294
--- /dev/null
+++ b/src/gr4vy/models/dlocalupisubscriptionoptions.py
@@ -0,0 +1,88 @@
+"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
+
+from __future__ import annotations
+from .dlocalupisubscriptionamountoptions import (
+ DlocalUPISubscriptionAmountOptions,
+ DlocalUPISubscriptionAmountOptionsTypedDict,
+)
+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
+
+
+DlocalUPISubscriptionOptionsFrequency = Union[
+ Literal[
+ "WEEKLY",
+ "MONTHLY",
+ "SEMI_ANNUAL",
+ "ANNUAL",
+ ],
+ UnrecognizedStr,
+]
+r"""Indicates the frequency for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `SEMI_ANNUAL`, `ANNUAL`."""
+
+
+class DlocalUPISubscriptionOptionsTypedDict(TypedDict):
+ amount: DlocalUPISubscriptionAmountOptionsTypedDict
+ frequency: DlocalUPISubscriptionOptionsFrequency
+ r"""Indicates the frequency for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `SEMI_ANNUAL`, `ANNUAL`."""
+ start_date: NotRequired[Nullable[str]]
+ r"""Defines subscription start date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not specified, the default is the current date."""
+ end_date: NotRequired[Nullable[str]]
+ r"""Defines subscription expiration date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not provided, the subscription will not expire."""
+
+
+class DlocalUPISubscriptionOptions(BaseModel):
+ amount: DlocalUPISubscriptionAmountOptions
+
+ frequency: DlocalUPISubscriptionOptionsFrequency
+ r"""Indicates the frequency for the subscription. Allowed values are: `WEEKLY`, `MONTHLY`, `SEMI_ANNUAL`, `ANNUAL`."""
+
+ start_date: OptionalNullable[str] = UNSET
+ r"""Defines subscription start date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not specified, the default is the current date."""
+
+ end_date: OptionalNullable[str] = UNSET
+ r"""Defines subscription expiration date. Must be provided in ISO 8601 format (`YYYY-MM-DD`). If not provided, the subscription will not expire."""
+
+ @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(["start_date", "end_date"])
+ nullable_fields = set(["start_date", "end_date"])
+ 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/dlocalupiwalletoptions.py b/src/gr4vy/models/dlocalupiwalletoptions.py
deleted file mode 100644
index d6eeaec3..00000000
--- a/src/gr4vy/models/dlocalupiwalletoptions.py
+++ /dev/null
@@ -1,90 +0,0 @@
-"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
-
-from __future__ import annotations
-from .dlocalupirecurringinfooptions import (
- DlocalUPIRecurringInfoOptions,
- DlocalUPIRecurringInfoOptionsTypedDict,
-)
-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 DlocalUPIWalletOptionsTypedDict(TypedDict):
- name: NotRequired[Nullable[str]]
- r"""Passes `wallet.name` to the dLocal API for those connectors that need it."""
- email: NotRequired[Nullable[str]]
- r"""Passes `wallet.email` to the dLocal API for those connectors that need it."""
- token: NotRequired[Nullable[str]]
- r"""Passes `wallet.token` to the dLocal API for those connectors that need it."""
- username: NotRequired[Nullable[str]]
- r"""Passes `wallet.username` to the dLocal API for those connectors that need it."""
- verify: NotRequired[Nullable[bool]]
- r"""Passes `wallet.verify` to the dLocal API for those connectors that need it."""
- recurring_info: NotRequired[Nullable[DlocalUPIRecurringInfoOptionsTypedDict]]
- r"""Passes `wallet.recurring_info` to the dLocal API for those connectors that need it."""
-
-
-class DlocalUPIWalletOptions(BaseModel):
- name: OptionalNullable[str] = UNSET
- r"""Passes `wallet.name` to the dLocal API for those connectors that need it."""
-
- email: OptionalNullable[str] = UNSET
- r"""Passes `wallet.email` to the dLocal API for those connectors that need it."""
-
- token: OptionalNullable[str] = UNSET
- r"""Passes `wallet.token` to the dLocal API for those connectors that need it."""
-
- username: OptionalNullable[str] = UNSET
- r"""Passes `wallet.username` to the dLocal API for those connectors that need it."""
-
- verify: OptionalNullable[bool] = UNSET
- r"""Passes `wallet.verify` to the dLocal API for those connectors that need it."""
-
- recurring_info: OptionalNullable[DlocalUPIRecurringInfoOptions] = UNSET
- r"""Passes `wallet.recurring_info` to the dLocal API for those connectors that need it."""
-
- @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(
- ["name", "email", "token", "username", "verify", "recurring_info"]
- )
- nullable_fields = set(
- ["name", "email", "token", "username", "verify", "recurring_info"]
- )
- 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