Skip to content

Commit bdff167

Browse files
committed
Added BnplType enum
1 parent 6f76d67 commit bdff167

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎gopay/enums.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,7 @@ class PaymentSubStatus(StrEnum):
271271
class ContentType(StrEnum):
272272
FORM = "application/x-www-form-urlencoded"
273273
JSON = "application/json"
274+
275+
class BnplType(StrEnum):
276+
DEFERRED_PAYMENT = "DEFERRED_PAYMENT"
277+
PAY_IN_THREE = "PAY_IN_THREE"

‎tests/conftest.py‎

Lines changed: 3 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

@@ -69,8 +69,8 @@ def base_payment() -> dict:
6969
BankSwiftCode.CESKA_SPORITELNA,
7070
BankSwiftCode.RAIFFEISENBANK,
7171
],
72-
# "allowed_bnpl_types": ["THIRDS", "LATER"],
73-
# "default_bnpl_type": "THIRDS",
72+
# "allowed_bnpl_types": [BnplType.DEFERRED_PAYMENT, BnplType.PAY_IN_THREE],
73+
# "default_bnpl_type": BnplType.DEFERRED_PAYMENT,
7474
"default_swift": BankSwiftCode.CESKA_SPORITELNA,
7575
"default_payment_instrument": PaymentInstrument.BANK_ACCOUNT,
7676
"contact": {

0 commit comments

Comments
 (0)