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
2 changes: 1 addition & 1 deletion codegen/pkg/builder/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (c *SchemaProxyCollection) collectSchemasInResponse(op *v3.Operation) {

// Collect the schemas that are referenced in the request parameters of the given operation.
func (c *SchemaProxyCollection) collectSchemasInParams(op *v3.Operation) {
if op.RequestBody == nil {
if len(op.Parameters) == 0 {
return
}

Expand Down
108 changes: 82 additions & 26 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2249,6 +2249,18 @@
}
}
},
{
"name": "entry_modes[]",
"in": "query",
"description": "Filters the returned results by the specified list of entry modes.",
"required": false,
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EntryModeFilter"
}
}
},
{
"name": "types",
"in": "query",
Expand Down Expand Up @@ -6197,6 +6209,18 @@
"type": "string"
}
},
"EntryModesFilter": {
"name": "entry_modes[]",
"in": "query",
"description": "Filters the returned results by the specified list of entry modes.",
"required": false,
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EntryModeFilter"
}
}
},
"GeoCoordinatesFilter": {
"name": "geo_coordinates",
"in": "query",
Expand Down Expand Up @@ -8266,32 +8290,32 @@
"description": "Entry mode of the payment details.",
"type": "string",
"enum": [
"BOLETO",
"SOFORT",
"IDEAL",
"BANCONTACT",
"EPS",
"MYBANK",
"SATISPAY",
"BLIK",
"P24",
"GIROPAY",
"PIX",
"QR_CODE_PIX",
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"NONE",
"CHIP",
"MANUAL_ENTRY",
"CUSTOMER_ENTRY",
"MAGSTRIPE_FALLBACK",
"MAGSTRIPE",
"DIRECT_DEBIT",
"CONTACTLESS",
"MOTO",
"CONTACTLESS_MAGSTRIPE",
"N/A"
"none",
"magstripe",
"chip",
"manual entry",
"customer entry",
"magstripe fallback",
"contactless",
"moto",
"contactless magstripe",
"boleto",
"direct debit",
"sofort",
"ideal",
"bancontact",
"eps",
"mybank",
"satispay",
"blik",
"p24",
"giropay",
"pix",
"qr code pix",
"apple pay",
"google pay",
"paypal",
"na"
]
},
"CardType": {
Expand Down Expand Up @@ -11068,6 +11092,38 @@
"date_of_birth",
"address"
]
},
"EntryModeFilter": {
"description": "Entry mode value accepted by the `entry_modes[]` filter.",
"type": "string",
"enum": [
"BOLETO",
"SOFORT",
"IDEAL",
"BANCONTACT",
"EPS",
"MYBANK",
"SATISPAY",
"BLIK",
"P24",
"GIROPAY",
"PIX",
"QR_CODE_PIX",
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"NONE",
"CHIP",
"MANUAL_ENTRY",
"CUSTOMER_ENTRY",
"MAGSTRIPE_FALLBACK",
"MAGSTRIPE",
"DIRECT_DEBIT",
"CONTACTLESS",
"MOTO",
"CONTACTLESS_MAGSTRIPE",
"N/A"
]
}
},
"examples": {
Expand Down
52 changes: 26 additions & 26 deletions sumup/checkouts/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,32 +158,32 @@ class TransactionBase(pydantic.BaseModel):


EntryMode = typing.Literal[
"APPLE_PAY",
"BANCONTACT",
"BLIK",
"BOLETO",
"CHIP",
"CONTACTLESS",
"CONTACTLESS_MAGSTRIPE",
"CUSTOMER_ENTRY",
"DIRECT_DEBIT",
"EPS",
"GIROPAY",
"GOOGLE_PAY",
"IDEAL",
"MAGSTRIPE",
"MAGSTRIPE_FALLBACK",
"MANUAL_ENTRY",
"MOTO",
"MYBANK",
"N/A",
"NONE",
"P24",
"PAYPAL",
"PIX",
"QR_CODE_PIX",
"SATISPAY",
"SOFORT",
"apple pay",
"bancontact",
"blik",
"boleto",
"chip",
"contactless",
"contactless magstripe",
"customer entry",
"direct debit",
"eps",
"giropay",
"google pay",
"ideal",
"magstripe",
"magstripe fallback",
"manual entry",
"moto",
"mybank",
"na",
"none",
"p24",
"paypal",
"pix",
"qr code pix",
"satispay",
"sofort",
]


Expand Down
2 changes: 2 additions & 0 deletions sumup/transactions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
CardType,
Currency,
EntryMode,
EntryModeFilter,
Error,
Event,
EventId,
Expand Down Expand Up @@ -54,6 +55,7 @@
"CardType",
"Currency",
"EntryMode",
"EntryModeFilter",
"Error",
"Event",
"EventId",
Expand Down
7 changes: 7 additions & 0 deletions sumup/transactions/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from .._service import Resource, AsyncResource, HeaderTypes
from .._exceptions import APIError
from .types import (
EntryModeFilter,
Link,
PaymentType,
TransactionFull,
Expand Down Expand Up @@ -60,6 +61,12 @@ class ListTransactionsV21Params(pydantic.BaseModel):

changes_since: typing.Optional[datetime.datetime] = None

entry_modes: typing.Optional[list[EntryModeFilter]] = pydantic.Field(
default=None,
serialization_alias="entry_modes[]",
validation_alias=pydantic.AliasChoices("entry_modes[]", "entry_modes"),
)

limit: typing.Optional[int] = None

newest_ref: typing.Optional[str] = None
Expand Down
82 changes: 56 additions & 26 deletions sumup/transactions/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,32 +103,32 @@ class TransactionBase(pydantic.BaseModel):


EntryMode = typing.Literal[
"APPLE_PAY",
"BANCONTACT",
"BLIK",
"BOLETO",
"CHIP",
"CONTACTLESS",
"CONTACTLESS_MAGSTRIPE",
"CUSTOMER_ENTRY",
"DIRECT_DEBIT",
"EPS",
"GIROPAY",
"GOOGLE_PAY",
"IDEAL",
"MAGSTRIPE",
"MAGSTRIPE_FALLBACK",
"MANUAL_ENTRY",
"MOTO",
"MYBANK",
"N/A",
"NONE",
"P24",
"PAYPAL",
"PIX",
"QR_CODE_PIX",
"SATISPAY",
"SOFORT",
"apple pay",
"bancontact",
"blik",
"boleto",
"chip",
"contactless",
"contactless magstripe",
"customer entry",
"direct debit",
"eps",
"giropay",
"google pay",
"ideal",
"magstripe",
"magstripe fallback",
"manual entry",
"moto",
"mybank",
"na",
"none",
"p24",
"paypal",
"pix",
"qr code pix",
"satispay",
"sofort",
]


Expand Down Expand Up @@ -844,3 +844,33 @@ class TransactionHistory(pydantic.BaseModel):
Email address of the registered user (merchant) to whom the payment is made.
Format: email
"""


EntryModeFilter = typing.Literal[
"APPLE_PAY",
"BANCONTACT",
"BLIK",
"BOLETO",
"CHIP",
"CONTACTLESS",
"CONTACTLESS_MAGSTRIPE",
"CUSTOMER_ENTRY",
"DIRECT_DEBIT",
"EPS",
"GIROPAY",
"GOOGLE_PAY",
"IDEAL",
"MAGSTRIPE",
"MAGSTRIPE_FALLBACK",
"MANUAL_ENTRY",
"MOTO",
"MYBANK",
"N/A",
"NONE",
"P24",
"PAYPAL",
"PIX",
"QR_CODE_PIX",
"SATISPAY",
"SOFORT",
]
Loading