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
22 changes: 11 additions & 11 deletions src/main/java/com/sumup/sdk/models/RefundTransactionRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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;
}
Expand Down
Loading