Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
},
Expand All @@ -2378,7 +2378,7 @@
"PartialRefund": {
"summary": "Partial refund",
"value": {
"amount": 24.42
"amount": 2442
}
}
}
Expand Down Expand Up @@ -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
}
}
},
Expand All @@ -14119,7 +14119,7 @@
"PartialRefund": {
"summary": "Partial refund",
"value": {
"amount": 24.42
"amount": 2442
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/SumUp/Models/TransactionsRefundRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace SumUp;
/// <summary>Optional amount for partial refunds of transactions.</summary>
public sealed partial class TransactionsRefundRequest
{
/// <summary>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.</summary>
/// <summary>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.</summary>
[JsonPropertyName("amount")]
public float? Amount { get; set; }
public int? Amount { get; set; }
}
Loading