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
}
}
}
diff --git a/src/SumUp/Models/TransactionsRefundRequest.g.cs b/src/SumUp/Models/TransactionsRefundRequest.g.cs
index d2c8ffb..df75d41 100644
--- a/src/SumUp/Models/TransactionsRefundRequest.g.cs
+++ b/src/SumUp/Models/TransactionsRefundRequest.g.cs
@@ -7,7 +7,7 @@ namespace SumUp;
/// Optional amount for partial refunds of transactions.
public sealed partial class TransactionsRefundRequest
{
- /// 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.
[JsonPropertyName("amount")]
- public float? Amount { get; set; }
+ public int? Amount { get; set; }
}
\ No newline at end of file