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
7 changes: 4 additions & 3 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8060,6 +8060,7 @@
"enum": [
"ALELO",
"AMEX",
"BANCOMAT",
"CONECS",
"CUP",
"DINERS",
Expand Down Expand Up @@ -8476,14 +8477,14 @@
"type": "string"
},
"tip_amount": {
"description": "Optional tip amount in minor units, added on top of total_amount.",
"example": 100,
"description": "Portion of total_amount that is a tip, in minor units.",
"example": 200,
"type": "integer"
},
"total_amount": {
"allOf": [
{
"description": "Amount structure. The amount is represented as an integer value altogether with the currency and the minor unit. For example, MXN 10.00 is represented as value 1000 with minor unit of 2.",
"description": "Amount charged on the reader, including any tip. The amount is represented as an integer value altogether with the currency and the minor unit. For example, MXN 10.00 is represented as value 1000 with minor unit of 2.",
"example": {
"currency": "MXN",
"value": 1000
Expand Down
5 changes: 1 addition & 4 deletions sumup/readers/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ class CreateGoReaderCheckoutBodyInput(typing_extensions.TypedDict, total=False):
affiliate: typing_extensions.NotRequired[CreateGoReaderCheckoutBodyAffiliateInput]
tip_amount: typing_extensions.NotRequired[
typing_extensions.Annotated[
int,
typing_extensions.Doc(
"Optional tip amount in minor units, added on top of total_amount."
),
int, typing_extensions.Doc("Portion of total_amount that is a tip, in minor units.")
]
]

Expand Down
8 changes: 3 additions & 5 deletions sumup/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ class BusinessProfile(pydantic.BaseModel):
typing.Literal[
"ALELO",
"AMEX",
"BANCOMAT",
"CONECS",
"CUP",
"DINERS",
Expand Down Expand Up @@ -3960,7 +3961,7 @@ class ReaderPaymentRequestParams(pydantic.BaseModel):

tip_amount: int | None = None
"""
Optional tip amount in minor units, added on top of total_amount.
Portion of total_amount that is a tip, in minor units.
"""


Expand All @@ -3977,10 +3978,7 @@ class ReaderPaymentRequestParamsDict(typing_extensions.TypedDict, total=False):
affiliate: typing_extensions.NotRequired[ReaderPaymentRequestParamsAffiliateInput]
tip_amount: typing_extensions.NotRequired[
typing_extensions.Annotated[
int,
typing_extensions.Doc(
"Optional tip amount in minor units, added on top of total_amount."
),
int, typing_extensions.Doc("Portion of total_amount that is a tip, in minor units.")
]
]

Expand Down
Loading