-
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 #9 from yoomoney/release/v2.1.5
Release/2.1.5
- Loading branch information
Showing
7 changed files
with
65 additions
and
4 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 |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
|
||
__author__ = "YooMoney" | ||
__email__ = '[email protected]' | ||
__version__ = '2.1.4' | ||
__version__ = '2.1.5' |
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
27 changes: 27 additions & 0 deletions
27
src/yookassa/domain/models/confirmation/request/confirmation_mobile_application.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,27 @@ | ||
# -*- coding: utf-8 -*- | ||
from yookassa.domain.common.confirmation_type import ConfirmationType | ||
from yookassa.domain.models.confirmation.request.confirmation_request import ConfirmationRequest | ||
|
||
|
||
class ConfirmationMobileApplication(ConfirmationRequest): | ||
""" | ||
Class representing mobile_application confirmation data object | ||
""" | ||
__return_url = None | ||
|
||
def __init__(self, *args, **kwargs): | ||
super(ConfirmationMobileApplication, self).__init__(*args, **kwargs) | ||
if self.type is None or self.type is not ConfirmationType.MOBILE_APPLICATION: | ||
self.type = ConfirmationType.MOBILE_APPLICATION | ||
|
||
@property | ||
def return_url(self): | ||
return self.__return_url | ||
|
||
@return_url.setter | ||
def return_url(self, value): | ||
cast_value = str(value) | ||
if cast_value: | ||
self.__return_url = cast_value | ||
else: | ||
raise ValueError('Invalid returnUrl value') |
23 changes: 23 additions & 0 deletions
23
src/yookassa/domain/models/confirmation/response/confirmation_mobile_application.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,23 @@ | ||
# -*- coding: utf-8 -*- | ||
from yookassa.domain.common.confirmation_type import ConfirmationType | ||
from yookassa.domain.models.confirmation.confirmation import Confirmation | ||
|
||
|
||
class ConfirmationMobileApplication(Confirmation): | ||
""" | ||
Class representing mobile_application confirmation data object | ||
""" | ||
__confirmation_url = None | ||
|
||
def __init__(self, *args, **kwargs): | ||
super(ConfirmationMobileApplication, self).__init__(*args, **kwargs) | ||
if self.type is None or self.type is not ConfirmationType.MOBILE_APPLICATION: | ||
self.type = ConfirmationType.MOBILE_APPLICATION | ||
|
||
@property | ||
def confirmation_url(self): | ||
return self.__confirmation_url | ||
|
||
@confirmation_url.setter | ||
def confirmation_url(self, value): | ||
self.__confirmation_url = value |
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