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 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.") ] ]