Skip to content

Commit

Permalink
🐛 Fix bug self._phone_number with plus sign to `self.phone_number_w…
Browse files Browse the repository at this point in the history
…ithout_plus_sign`
  • Loading branch information
GLEF1X committed Sep 2, 2022
1 parent ac947ab commit ca36945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions glQiwiApi/qiwi/clients/wallet/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def get_identification(self) -> Identification:
"""
return await self._request_service.execute_api_method(
GetIdentification(),
phone_number=self._phone_number,
phone_number=self.phone_number_without_plus_sign,
)

async def get_limits(self, limit_types: Sequence[str] = ALL_LIMIT_TYPES) -> Dict[str, Limit]:
Expand Down Expand Up @@ -384,7 +384,7 @@ async def get_list_of_balances(self) -> List[Balance]:
async def get_balance(self, *, account_number: int = 1) -> AmountWithCurrency:
resp: List[Balance] = await self._request_service.execute_api_method(
GetBalances(),
phone_number=self._phone_number,
phone_number=self.phone_number_without_plus_sign,
)
return resp[account_number - 1].balance # type: ignore

Expand Down Expand Up @@ -539,7 +539,7 @@ async def buy_qiwi_master_package(self) -> PaymentInfo: # pragma: no cover
You can choose these rights when creating a new api token, to use api QIWI Master
"""
return await self._request_service.execute_api_method(
BuyQIWIMasterPackage(phone_number=self._phone_number)
BuyQIWIMasterPackage(phone_number=self.phone_number_without_plus_sign)
)

async def issue_qiwi_master_card(
Expand Down
2 changes: 0 additions & 2 deletions glQiwiApi/types/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import Hashable

from pydantic import BaseConfig, BaseModel

from glQiwiApi.utils.compat import json
Expand Down

0 comments on commit ca36945

Please sign in to comment.