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
20 changes: 1 addition & 19 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
},
Expand Down
19 changes: 1 addition & 18 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 3 additions & 21 deletions sumup/transactions/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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.
"""


Expand Down Expand Up @@ -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[
Expand Down
Loading