Skip to content

Commit 0bf3ef9

Browse files
authored
Merge pull request #35 from gopaycommunity/hotfix/GPMAIN-7759-bnpl
Hotfix/gpmain 7759 bnpl
2 parents 35ae41e + 15d59f7 commit 0bf3ef9

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

‎gopay/enums.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ class PaymentInstrument(StrEnum):
8282
ACCOUNT = "ACCOUNT"
8383
APPLE_PAY = "APPLE_PAY"
8484
CLICK_TO_PAY = "CLICK_TO_PAY"
85+
TWISTO = "TWISTO"
86+
SKIPPAY = "SKIPPAY"
8587

8688

8789
class StatementGeneratingFormat(StrEnum):
@@ -269,3 +271,7 @@ class PaymentSubStatus(StrEnum):
269271
class ContentType(StrEnum):
270272
FORM = "application/x-www-form-urlencoded"
271273
JSON = "application/json"
274+
275+
class BnplType(StrEnum):
276+
DEFERRED_PAYMENT = "DEFERRED_PAYMENT"
277+
PAY_IN_THREE = "PAY_IN_THREE"

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name = "gopay"
1414
packages = [{include = "gopay"}]
1515
readme = "README.md"
1616
repository = "https://github.com/gopaycommunity/gopay-python-api"
17-
version = "2.1.0"
17+
version = "2.2.0"
1818

1919
[tool.poetry.dependencies]
2020
deprecated = "^1.2.14"

‎tests/conftest.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55
import gopay
6-
from gopay.enums import BankSwiftCode, Currency, Language, PaymentInstrument
6+
from gopay.enums import BankSwiftCode, Currency, Language, PaymentInstrument, BnplType
77
from gopay.http import Request, Response
88

99

@@ -61,13 +61,18 @@ def base_payment() -> dict:
6161
"allowed_payment_instruments": [
6262
PaymentInstrument.BANK_ACCOUNT,
6363
PaymentInstrument.PAYMENT_CARD,
64+
# PaymentInstrument.TWISTO,
65+
# PaymentInstrument.SKIPPAY
6466
],
67+
# "default_payment_instrument": PaymentInstrument.TWISTO,
6568
"allowed_swifts": [
6669
BankSwiftCode.CESKA_SPORITELNA,
6770
BankSwiftCode.RAIFFEISENBANK,
6871
],
69-
#'default_swift': BankSwiftCode.CESKA_SPORITELNA,
70-
#'default_payment_instrument': PaymentInstrument.BANK_ACCOUNT,
72+
# "allowed_bnpl_types": [BnplType.DEFERRED_PAYMENT, BnplType.PAY_IN_THREE],
73+
# "default_bnpl_type": BnplType.DEFERRED_PAYMENT,
74+
"default_swift": BankSwiftCode.CESKA_SPORITELNA,
75+
"default_payment_instrument": PaymentInstrument.BANK_ACCOUNT,
7176
"contact": {
7277
"email": "test.test@gopay.cz",
7378
},

0 commit comments

Comments
 (0)