From fb9c7f5ec6e6916d98d943d0d944cad07d0eed15 Mon Sep 17 00:00:00 2001 From: appscisumup Date: Wed, 14 Oct 2026 21:39:37 +0000 Subject: [PATCH 1/2] chore: synced local 'openapi.json' with remote 'specs/openapi31.json' --- openapi.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openapi.json b/openapi.json index cc14b16..d530258 100644 --- a/openapi.json +++ b/openapi.json @@ -8060,6 +8060,7 @@ "enum": [ "ALELO", "AMEX", + "BANCOMAT", "CONECS", "CUP", "DINERS", @@ -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 From a09acd096ebc5166796c25f5b989ea937c27df1e Mon Sep 17 00:00:00 2001 From: "sumup-release-bot[bot]" <241716704+sumup-release-bot[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 21:42:28 +0000 Subject: [PATCH 2/2] chore: generate code --- sumup/readers/resource.py | 5 +---- sumup/types/__init__.py | 8 +++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/sumup/readers/resource.py b/sumup/readers/resource.py index 444eef8..178f9d8 100644 --- a/sumup/readers/resource.py +++ b/sumup/readers/resource.py @@ -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.") ] ] diff --git a/sumup/types/__init__.py b/sumup/types/__init__.py index 9befaf0..40df54b 100644 --- a/sumup/types/__init__.py +++ b/sumup/types/__init__.py @@ -577,6 +577,7 @@ class BusinessProfile(pydantic.BaseModel): typing.Literal[ "ALELO", "AMEX", + "BANCOMAT", "CONECS", "CUP", "DINERS", @@ -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. """ @@ -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.") ] ]