diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 5b7ebf09..eec64eab 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,24 +1,24 @@
lockVersion: 2.0.0
id: 833c6a67-4a4a-4ef1-ba24-165a29264e4a
management:
- docChecksum: 3e1040dcbd621917ed9cc0c0b0b1d1cb
+ docChecksum: f38f0294458f2a2809b7041c8d833b69
docVersion: 1.0.0
- speakeasyVersion: 1.786.1
- generationVersion: 2.913.3
- releaseVersion: 2.2.1
- configChecksum: 2d11b526b17b245dd5893918468f7518
+ speakeasyVersion: 1.787.0
+ generationVersion: 2.914.0
+ releaseVersion: 2.2.2
+ configChecksum: d2f104e0bad48e02aa0b83e367721c19
repoURL: https://github.com/gr4vy/gr4vy-python.git
installationURL: https://github.com/gr4vy/gr4vy-python.git
published: true
persistentEdits:
- generation_id: a083d37f-7f2b-481b-aa13-e317fa20cb86
- pristine_commit_hash: 153cbca0c46936c3b1550907cc1d4004c12ff099
- pristine_tree_hash: 06a04820bb5345bfa815bda00a862be2c818ab9f
+ generation_id: 1cf93a03-25d3-4732-87e2-4f04891cf924
+ pristine_commit_hash: b2e66213ffe2b95edf60d0e0c2ee5a5832d7b365
+ pristine_tree_hash: e7c01dc40569fb75888a6f594c8abc1915c9a2f3
features:
python:
additionalDependencies: 1.1.0
constsAndDefaults: 1.0.7
- core: 6.0.32
+ core: 6.0.33
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.1
envVarSecurityUsage: 0.3.3
@@ -1944,8 +1944,8 @@ trackedFiles:
pristine_git_object: 2f582028e7247589fa15ebc19c92e618b1ec269e
docs/models/refund.md:
id: 3be36b1a2825
- last_write_checksum: sha1:2fa86e07647644e2c424a89c39ea160d54559857
- pristine_git_object: acb9e1ce3d88ccb71a71db3171d1422722b86d0a
+ last_write_checksum: sha1:7e82f63f6a6644bdbc3cb620c02bc79aa57891a8
+ pristine_git_object: 0d2df50e159f7d6f20eac5fc52f6679c64e6d6bc
docs/models/refunds.md:
id: 56cad80f02e4
last_write_checksum: sha1:142d11ec89618ca4f0d7d8c6637dfb354d3fe6cf
@@ -2692,8 +2692,8 @@ trackedFiles:
pristine_git_object: cb9c15d314c1930557401074329ed7a737147919
pyproject.toml:
id: 5d07e7d72637
- last_write_checksum: sha1:a18a74245fe0d68e5ad416a4985dbd34be25de07
- pristine_git_object: 0889560f4656cb02fdf29c4549f22ced7779fa9f
+ last_write_checksum: sha1:5c443a2e03001c67b670379d09f2b078886117e0
+ pristine_git_object: 3a531d74cae7aa3bc02858fa4bb1b7295400c6de
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:63a92abbd1de3323613f0d4c1ae4412076577710
@@ -2720,8 +2720,8 @@ trackedFiles:
pristine_git_object: f8ef109bb6a9dbe37d0a7092606176a0738986fd
src/gr4vy/_version.py:
id: 1b5ad1da47aa
- last_write_checksum: sha1:06edf3974ca3391f8f6e70edb945c4e1d6ce974e
- pristine_git_object: 265e0e112a555b9034e75901d3e3d88bba3848d7
+ last_write_checksum: sha1:93cecc20fcb47d3d1ae9b5aeebfd98c16c929069
+ pristine_git_object: 6a9146a501f23e3948120bbd1b156b82c27783a2
src/gr4vy/account_updater.py:
id: 6dc8f39e2fb9
last_write_checksum: sha1:fabc79a59dd06fb927ce2d834fbafbcad5836a4b
@@ -4204,8 +4204,8 @@ trackedFiles:
pristine_git_object: 0f6c37ecb659dabfa3a94e68a4245888f0095708
src/gr4vy/models/refund.py:
id: 8aa63978d78c
- last_write_checksum: sha1:63f066382d875fd371807ad6d22d89767a315359
- pristine_git_object: 1c476e76cd3db5ec1ce8bbfc67e0bbd4cfa3a47e
+ last_write_checksum: sha1:48210c9787846da7109f872e9604969ce5a79909
+ pristine_git_object: c0bdf9acf22bd31664e3494476673283918350ce
src/gr4vy/models/refunds.py:
id: a78ea31739c4
last_write_checksum: sha1:003e76598757f529d1e691ae605eb6fea2ad954b
@@ -6680,7 +6680,7 @@ examples:
x-gr4vy-merchant-account-id: "default"
responses:
"200":
- application/json: {"items": [{"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "USD", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}, {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "USD", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}, {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "USD", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}], "limit": 20}
+ application/json: {"items": [{"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "USD", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}, {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "USD", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}, {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "USD", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}], "limit": 20}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
@@ -6719,7 +6719,7 @@ examples:
application/json: {}
responses:
"201":
- application/json: {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "EUR", "amount": 1299, "target_type": "gift-card-redemption", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
+ application/json: {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "failed", "currency": "EUR", "amount": 1299, "target_type": "gift-card-redemption", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
@@ -6756,7 +6756,7 @@ examples:
x-gr4vy-merchant-account-id: "default"
responses:
"200":
- application/json: {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "declined", "currency": "EUR", "amount": 1299, "target_type": "gift-card-redemption", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
+ application/json: {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "declined", "currency": "EUR", "amount": 1299, "target_type": "gift-card-redemption", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
@@ -6795,7 +6795,7 @@ examples:
application/json: {"reason": "Refund due to user request.", "external_identifier": "refund-12345"}
responses:
"201":
- application/json: {"items": [{"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "voided", "currency": "GBP", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}, {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "voided", "currency": "GBP", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}], "limit": 20}
+ application/json: {"items": [{"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "voided", "currency": "GBP", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}, {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "voided", "currency": "GBP", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}], "limit": 20}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
@@ -6831,7 +6831,7 @@ examples:
x-gr4vy-merchant-account-id: "default"
responses:
"200":
- application/json: {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "succeeded", "currency": "EUR", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00"}
+ application/json: {"type": "refund", "id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211", "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591", "status": "succeeded", "currency": "EUR", "amount": 1299, "target_type": "payment-method", "reconciliation_id": "7jZXl4gBUNl0CnaLEnfXbt", "transaction_reconciliation_id": "aLEnfXbt7jZXl4gBUNl0Cn", "created_at": "2013-07-16T19:23:00.000+00:00", "updated_at": "2013-07-16T19:23:00.000+00:00", "settled_amount": 1100, "settled": true}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
@@ -8771,7 +8771,13 @@ 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.reports.list()`: `response.items[].spec.model.enum(ai_insights)` **Added**\n* `gr4vy.reports.create()`: \n * `request.spec.union(ai_insights)` **Added**\n * `response.spec.model.enum(ai_insights)` **Added**\n* `gr4vy.reports.get()`: `response.spec.model.enum(ai_insights)` **Added**\n* `gr4vy.reports.put()`: `response.spec.model.enum(ai_insights)` **Added**\n"
+releaseNotes: |
+ ## Python SDK Changes:
+ * `gr4vy.transactions.refunds.list()`: `response.items[]` **Changed**
+ * `gr4vy.transactions.refunds.create()`: `response` **Changed**
+ * `gr4vy.transactions.refunds.get()`: `response` **Changed**
+ * `gr4vy.transactions.refunds.all.create()`: `response.items[]` **Changed**
+ * `gr4vy.refunds.get()`: `response` **Changed**
generatedFiles:
- .gitattributes
- .vscode/settings.json
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index a5eb7d05..bf37304c 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
- version: 2.2.1
+ version: 2.2.2
additionalDependencies:
dev:
freezegun: ^1.5.1
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 532cca93..5c49c6d2 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,9 +1,9 @@
-speakeasyVersion: 1.786.1
+speakeasyVersion: 1.787.0
sources:
openapi:
sourceNamespace: openapi
- sourceRevisionDigest: sha256:19741839fc357f624c791cf18002f14fdde42f928b5c771e65c9b783bee174cf
- sourceBlobDigest: sha256:18b69f4cd9bf693d835c9f853181389c9f42c5e9442c2a1be92a440f69068e97
+ sourceRevisionDigest: sha256:a1db8c15f417c9dc5589583862fe8ebe1dd66bac25d0d138177d0d8416bcd2b5
+ sourceBlobDigest: sha256:10f8f9202d53e7ee403525a2e1cd8f77461e32b414a980c09fe9cf476d499d94
tags:
- latest
- 1.0.0
@@ -11,10 +11,10 @@ targets:
python:
source: openapi
sourceNamespace: openapi
- sourceRevisionDigest: sha256:19741839fc357f624c791cf18002f14fdde42f928b5c771e65c9b783bee174cf
- sourceBlobDigest: sha256:18b69f4cd9bf693d835c9f853181389c9f42c5e9442c2a1be92a440f69068e97
+ sourceRevisionDigest: sha256:a1db8c15f417c9dc5589583862fe8ebe1dd66bac25d0d138177d0d8416bcd2b5
+ sourceBlobDigest: sha256:10f8f9202d53e7ee403525a2e1cd8f77461e32b414a980c09fe9cf476d499d94
codeSamplesNamespace: openapi-python-code-samples
- codeSamplesRevisionDigest: sha256:71be4422fcdff11eab459a8828c7ca5912dc5427523de361e720c1e33fcf9536
+ codeSamplesRevisionDigest: sha256:e4cf7e376b09084fcf10617af339bc2a13792efbce7e16a7c11ed962f2237c48
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index 4ca78d70..1b9f5747 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -2148,4 +2148,14 @@ Based on:
### Generated
- [python v2.2.1] .
### Releases
-- [PyPI v2.2.1] https://pypi.org/project/gr4vy/2.2.1 - .
\ No newline at end of file
+- [PyPI v2.2.1] https://pypi.org/project/gr4vy/2.2.1 - .
+
+## 2026-07-01 01:08:22
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v2.2.2] .
+### Releases
+- [PyPI v2.2.2] https://pypi.org/project/gr4vy/2.2.2 - .
\ No newline at end of file
diff --git a/docs/models/refund.md b/docs/models/refund.md
index acb9e1ce..0d2df50e 100644
--- a/docs/models/refund.md
+++ b/docs/models/refund.md
@@ -24,4 +24,7 @@
| `creator` | [OptionalNullable[models.Creator]](../models/creator.md) | :heavy_minus_sign: | The user that created this resource | {
"email_address": "jhon.doe@gr4vy.com",
"id": "07e70d14-a0c0-4ff5-bd4a-509959af0e4d",
"name": "Jhon Doe"
} |
| `error_code` | *OptionalNullable[str]* | :heavy_minus_sign: | The standardized error code set by Gr4vy. | service_error |
| `raw_response_code` | *OptionalNullable[str]* | :heavy_minus_sign: | This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services. | E104 |
-| `raw_response_description` | *OptionalNullable[str]* | :heavy_minus_sign: | This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services. | Missing redirect URL |
\ No newline at end of file
+| `raw_response_description` | *OptionalNullable[str]* | :heavy_minus_sign: | This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services. | Missing redirect URL |
+| `settled_currency` | *OptionalNullable[str]* | :heavy_minus_sign: | The ISO 4217 currency code of this refund's settlement. | USD |
+| `settled_amount` | *Optional[int]* | :heavy_minus_sign: | The net amount settled for this refund, in the smallest currency unit (for example, cents or pence). | 1100 |
+| `settled` | *bool* | :heavy_check_mark: | Indicates whether this refund has been settled. | true |
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 0889560f..3a531d74 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[project]
name = "gr4vy"
-version = "2.2.1"
+version = "2.2.2"
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 265e0e11..6a9146a5 100644
--- a/src/gr4vy/_version.py
+++ b/src/gr4vy/_version.py
@@ -3,10 +3,10 @@
import importlib.metadata
__title__: str = "gr4vy"
-__version__: str = "2.2.1"
+__version__: str = "2.2.2"
__openapi_doc_version__: str = "1.0.0"
-__gen_version__: str = "2.913.3"
-__user_agent__: str = "speakeasy-sdk/python 2.2.1 2.913.3 1.0.0 gr4vy"
+__gen_version__: str = "2.914.0"
+__user_agent__: str = "speakeasy-sdk/python 2.2.2 2.914.0 1.0.0 gr4vy"
try:
if __package__ is not None:
diff --git a/src/gr4vy/models/refund.py b/src/gr4vy/models/refund.py
index 1c476e76..c0bdf9ac 100644
--- a/src/gr4vy/models/refund.py
+++ b/src/gr4vy/models/refund.py
@@ -33,6 +33,8 @@ class RefundTypedDict(TypedDict):
r"""The date this refund was created at."""
updated_at: datetime
r"""The date this refund was last updated at."""
+ settled: bool
+ r"""Indicates whether this refund has been settled."""
type: Literal["refund"]
r"""Always `refund`."""
payment_service_refund_id: NotRequired[Nullable[str]]
@@ -53,6 +55,10 @@ class RefundTypedDict(TypedDict):
r"""This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services."""
raw_response_description: NotRequired[Nullable[str]]
r"""This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services."""
+ settled_currency: NotRequired[Nullable[str]]
+ r"""The ISO 4217 currency code of this refund's settlement."""
+ settled_amount: NotRequired[int]
+ r"""The net amount settled for this refund, in the smallest currency unit (for example, cents or pence)."""
class Refund(BaseModel):
@@ -84,6 +90,9 @@ class Refund(BaseModel):
updated_at: datetime
r"""The date this refund was last updated at."""
+ settled: bool
+ r"""Indicates whether this refund has been settled."""
+
TYPE: Annotated[
Annotated[
Optional[Literal["refund"]], AfterValidator(validate_const("refund"))
@@ -119,6 +128,12 @@ class Refund(BaseModel):
raw_response_description: OptionalNullable[str] = UNSET
r"""This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services."""
+ settled_currency: OptionalNullable[str] = UNSET
+ r"""The ISO 4217 currency code of this refund's settlement."""
+
+ settled_amount: Optional[int] = 0
+ r"""The net amount settled for this refund, in the smallest currency unit (for example, cents or pence)."""
+
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(
@@ -133,6 +148,8 @@ def serialize_model(self, handler):
"error_code",
"raw_response_code",
"raw_response_description",
+ "settled_currency",
+ "settled_amount",
]
)
nullable_fields = set(
@@ -146,6 +163,7 @@ def serialize_model(self, handler):
"error_code",
"raw_response_code",
"raw_response_description",
+ "settled_currency",
]
)
serialized = handler(self)