-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from yoomoney/release/v2.3.0
Release/2.3.0
- Loading branch information
Showing
9 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
### v2.3.0 от 22.03.2022 | ||
* Добавлен метод оплаты через СБП | ||
|
||
### v2.2.3 от 30.12.2021 | ||
* Небольшой рефакторинг | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
|
||
__author__ = "YooMoney" | ||
__email__ = '[email protected]' | ||
__version__ = '2.2.3' | ||
__version__ = '2.3.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/yookassa/domain/models/payment_data/request/payment_data_sbp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
from yookassa.domain.common.payment_method_type import PaymentMethodType | ||
from yookassa.domain.models.payment_data.payment_data import PaymentData | ||
|
||
|
||
class PaymentDataSbp(PaymentData): | ||
def __init__(self, *args, **kwargs): | ||
super(PaymentDataSbp, self).__init__(*args, **kwargs) | ||
if self.type is None or self.type is not PaymentMethodType.SBP: | ||
self.type = PaymentMethodType.SBP |
10 changes: 10 additions & 0 deletions
10
src/yookassa/domain/models/payment_data/response/payment_data_sbp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
from yookassa.domain.common.payment_method_type import PaymentMethodType | ||
from yookassa.domain.models.payment_data.payment_data import ResponsePaymentData | ||
|
||
|
||
class PaymentDataSbp(ResponsePaymentData): | ||
def __init__(self, *args, **kwargs): | ||
super(PaymentDataSbp, self).__init__(*args, **kwargs) | ||
if self.type is None or self.type is not PaymentMethodType.SBP: | ||
self.type = PaymentMethodType.SBP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters