From 27a216a778bbe80f2d48474feed16862236c78f1 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:12:42 +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 67b90679..a841579e 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 7ff43536733bc24d2fefda60772cd076c850a498 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:44 +0000 Subject: [PATCH 2/2] chore: generate code --- .../sdk/models/RefundTransactionRequest.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/sumup/sdk/models/RefundTransactionRequest.java b/src/main/java/com/sumup/sdk/models/RefundTransactionRequest.java index 6723625f..a4f667eb 100644 --- a/src/main/java/com/sumup/sdk/models/RefundTransactionRequest.java +++ b/src/main/java/com/sumup/sdk/models/RefundTransactionRequest.java @@ -4,12 +4,12 @@ /** Optional amount for partial refunds of transactions. */ public record RefundTransactionRequest( /** - * 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. */ - Float amount) { + Long amount) { /** * Creates a builder for RefundTransactionRequest. * @@ -21,20 +21,20 @@ public static Builder builder() { /** Builder for RefundTransactionRequest instances. */ public static final class Builder { - private Float amount; + private Long amount; private Builder() {} /** * Sets the value for {@code amount}. * - * @param amount 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. + * @param amount 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. * @return This builder instance. */ - public Builder amount(Float amount) { + public Builder amount(Long amount) { this.amount = amount; return this; }