diff --git a/gopay/enums.py b/gopay/enums.py index 1dc772d..5194bb0 100644 --- a/gopay/enums.py +++ b/gopay/enums.py @@ -82,6 +82,8 @@ class PaymentInstrument(StrEnum): ACCOUNT = "ACCOUNT" APPLE_PAY = "APPLE_PAY" CLICK_TO_PAY = "CLICK_TO_PAY" + TWISTO = "TWISTO" + SKIPPAY = "SKIPPAY" class StatementGeneratingFormat(StrEnum): @@ -269,3 +271,7 @@ class PaymentSubStatus(StrEnum): class ContentType(StrEnum): FORM = "application/x-www-form-urlencoded" JSON = "application/json" + +class BnplType(StrEnum): + DEFERRED_PAYMENT = "DEFERRED_PAYMENT" + PAY_IN_THREE = "PAY_IN_THREE" diff --git a/pyproject.toml b/pyproject.toml index b7e872b..05242da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ name = "gopay" packages = [{include = "gopay"}] readme = "README.md" repository = "https://github.com/gopaycommunity/gopay-python-api" -version = "2.1.0" +version = "2.2.0" [tool.poetry.dependencies] deprecated = "^1.2.14" diff --git a/tests/conftest.py b/tests/conftest.py index 35d4a46..a701c9c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,7 +3,7 @@ import pytest import gopay -from gopay.enums import BankSwiftCode, Currency, Language, PaymentInstrument +from gopay.enums import BankSwiftCode, Currency, Language, PaymentInstrument, BnplType from gopay.http import Request, Response @@ -61,13 +61,18 @@ def base_payment() -> dict: "allowed_payment_instruments": [ PaymentInstrument.BANK_ACCOUNT, PaymentInstrument.PAYMENT_CARD, + # PaymentInstrument.TWISTO, + # PaymentInstrument.SKIPPAY ], + # "default_payment_instrument": PaymentInstrument.TWISTO, "allowed_swifts": [ BankSwiftCode.CESKA_SPORITELNA, BankSwiftCode.RAIFFEISENBANK, ], - #'default_swift': BankSwiftCode.CESKA_SPORITELNA, - #'default_payment_instrument': PaymentInstrument.BANK_ACCOUNT, + # "allowed_bnpl_types": [BnplType.DEFERRED_PAYMENT, BnplType.PAY_IN_THREE], + # "default_bnpl_type": BnplType.DEFERRED_PAYMENT, + "default_swift": BankSwiftCode.CESKA_SPORITELNA, + "default_payment_instrument": PaymentInstrument.BANK_ACCOUNT, "contact": { "email": "test.test@gopay.cz", },