From 0f0e7ca6c5053fb9d763c2bbd9760c37d5640f6b 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:37 +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 40955551acbe7974f9ef48a8c36eacb5d26c8720 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:14:13 +0000 Subject: [PATCH 2/2] chore: generate SDK --- lib/sumup/types.rb | 4 ++-- sig/sumup/types.rbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sumup/types.rb b/lib/sumup/types.rb index 38ed29c..8dd6331 100644 --- a/lib/sumup/types.rb +++ b/lib/sumup/types.rb @@ -2880,8 +2880,8 @@ class ReceiptTransactionVatRatesItem < Model class RefundTransactionRequest < Model ## # :attr_reader: 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. - field :amount, :number, wire: "amount", required: false + # 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. + field :amount, :integer, wire: "amount", required: false end class RefundTransactionResponse < Model diff --git a/sig/sumup/types.rbs b/sig/sumup/types.rbs index 6d9c324..2843178 100644 --- a/sig/sumup/types.rbs +++ b/sig/sumup/types.rbs @@ -849,7 +849,7 @@ module SumUp attr_reader vat: (Numeric)? end class RefundTransactionRequest < Model - attr_reader amount: (Numeric)? + attr_reader amount: (Integer)? end class RefundTransactionResponse < Model end