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
4 changes: 2 additions & 2 deletions lib/sumup/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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
2 changes: 1 addition & 1 deletion sig/sumup/types.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading