From c6c3c8cb35481e377a19de4b0676533f8cfd4c33 Mon Sep 17 00:00:00 2001 From: "sumup-release-bot[bot]" <241716704+sumup-release-bot[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:13:29 +0000 Subject: [PATCH 1/2] chore: synced local 'openapi.json' with remote 'specs/openapi31.json' --- openapi.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/openapi.json b/openapi.json index 67b9067..a841579 100644 --- a/openapi.json +++ b/openapi.json @@ -2363,10 +2363,10 @@ "description": "Optional amount for partial refunds of transactions.", "properties": { "amount": { - "type": "number", - "format": "float", - "description": "Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", - "example": 5 + "type": "integer", + "description": "Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", + "example": 500, + "minimum": 0 } } }, @@ -2378,7 +2378,7 @@ "PartialRefund": { "summary": "Partial refund", "value": { - "amount": 24.42 + "amount": 2442 } } } @@ -14104,10 +14104,10 @@ "description": "Optional amount for partial refunds of transactions.", "properties": { "amount": { - "type": "number", - "format": "float", - "description": "Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", - "example": 5 + "type": "integer", + "description": "Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", + "example": 500, + "minimum": 0 } } }, @@ -14119,7 +14119,7 @@ "PartialRefund": { "summary": "Partial refund", "value": { - "amount": 24.42 + "amount": 2442 } } } From 3c9d163d22120c80eb8dc17faa423c83b76a6aa6 Mon Sep 17 00:00:00 2001 From: "sumup-release-bot[bot]" <241716704+sumup-release-bot[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:14:10 +0000 Subject: [PATCH 2/2] chore: generate code --- sdk/src/resources/transactions.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sdk/src/resources/transactions.rs b/sdk/src/resources/transactions.rs index e3b5e30..9b99a67 100644 --- a/sdk/src/resources/transactions.rs +++ b/sdk/src/resources/transactions.rs @@ -1749,15 +1749,18 @@ pub enum ListParamsTypesItem { )] #[builder(doc)] pub struct RefundRequest { - /// Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. + /// Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. /// - /// Example: `5` + /// Constraints: + /// - value >= 0 + /// + /// Example: `500` #[serde(skip_serializing_if = "Option::is_none")] #[builder( default, setter(strip_option, doc = "Sets [`amount`](RefundRequest::amount).") )] - pub amount: Option, + pub amount: Option, } /// The transaction was refunded in full or partially based on the request. pub type RefundResponse = serde_json::Value;