From d04ab39d81949d088c3479b944b028b8d513514f Mon Sep 17 00:00:00 2001 From: appscisumup Date: Fri, 19 Dec 2025 14:40:44 +0000 Subject: [PATCH 1/3] chore: synced local 'openapi.json' with remote 'specs/openapi.json' --- openapi.json | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/openapi.json b/openapi.json index a567a84c..cad45cbd 100755 --- a/openapi.json +++ b/openapi.json @@ -6728,25 +6728,7 @@ "readOnly": true }, "type": { - "description": "Issuing card network of the payment card.", - "type": "string", - "enum": [ - "AMEX", - "CUP", - "DINERS", - "DISCOVER", - "ELO", - "ELV", - "HIPERCARD", - "JCB", - "MAESTRO", - "MASTERCARD", - "VISA", - "VISA_ELECTRON", - "VISA_VPAY", - "UNKNOWN" - ], - "readOnly": true + "$ref": "#/components/schemas/CardType" } } }, From caba5b91aa1390b89ca9a8e4086e234d5fea5bfc Mon Sep 17 00:00:00 2001 From: appscisumup Date: Fri, 19 Dec 2025 14:40:44 +0000 Subject: [PATCH 2/3] chore: synced local 'openapi.yaml' with remote 'specs/openapi.yaml' --- openapi.yaml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 4206a5e3..feb217dc 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -4509,24 +4509,7 @@ components: minLength: 4 readOnly: true type: - description: Issuing card network of the payment card. - type: string - enum: - - AMEX - - CUP - - DINERS - - DISCOVER - - ELO - - ELV - - HIPERCARD - - JCB - - MAESTRO - - MASTERCARD - - VISA - - VISA_ELECTRON - - VISA_VPAY - - UNKNOWN - readOnly: true + $ref: '#/components/schemas/CardType' Checkout: description: Details of the payment checkout. type: object From 2a181727f7148eec5e232914f610b98980951c5c Mon Sep 17 00:00:00 2001 From: "sumup-bot[bot]" <241716704+sumup-bot[bot]@users.noreply.github.com> Date: Fri, 19 Dec 2025 14:42:00 +0000 Subject: [PATCH 3/3] chore: generate code --- sumup/transactions/types.py | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/sumup/transactions/types.py b/sumup/transactions/types.py index c00249f4..450452a1 100755 --- a/sumup/transactions/types.py +++ b/sumup/transactions/types.py @@ -219,7 +219,7 @@ class TransactionMixinHistory(pydantic.BaseModel): Indication of the precision of the geographical position received from the payment terminal. """ -CardResponseType = typing.Literal[ +CardType = typing.Literal[ "AMEX", "CUP", "DINERS", @@ -250,10 +250,9 @@ class CardResponse(pydantic.BaseModel): Max length: 4 """ - type: typing.Optional[CardResponseType] = None + type: typing.Optional[CardType] = None """ - Issuing card network of the payment card. - Read only + Issuing card network of the payment card used for the transaction. """ @@ -745,23 +744,6 @@ class TransactionFull(pydantic.BaseModel): """ -CardType = typing.Literal[ - "AMEX", - "CUP", - "DINERS", - "DISCOVER", - "ELO", - "ELV", - "HIPERCARD", - "JCB", - "MAESTRO", - "MASTERCARD", - "UNKNOWN", - "VISA", - "VISA_ELECTRON", - "VISA_VPAY", -] - TransactionHistoryStatus = typing.Literal["CANCELLED", "FAILED", "PENDING", "SUCCESSFUL"] TransactionHistoryPayoutPlan = typing.Literal[