Skip to content

Commit

Permalink
Merge pull request #6 from Trevypants/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Trevypants authored May 19, 2024
2 parents fce4886 + 7bc2279 commit f864425
Show file tree
Hide file tree
Showing 39 changed files with 437 additions and 353 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ The SDK currently supports the following APIs:
- [x] Create a counterparty (Personal)
- [x] Create a counterparty (Business)
- [x] Validate an account name (CoP)
- [ ] Foreign exchange
- [x] Foreign exchange
- [x] Get an exchange rate
- [ ] Exchange money
- [x] Exchange money
- [ ] Payment drafts
- [x] Retrieve all payments drafts
- [ ] Create a payment draft
Expand Down
79 changes: 35 additions & 44 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name = "pyrevolut"
version = "0.6.0"
description = "An unofficial Python API Wrapper for the Revolut Business API"
authors = ["Trevor Visser <trevor.visser@gmail.com>"]
license = "MIT"
homepage = "https://github.com/Trevypants/pyrevolut"
readme = "README.md"

[tool.poetry.scripts]
Expand All @@ -17,7 +19,7 @@ pycountry = "^23.12.11"
phonenumbers = "^8.13.36"
pendulum = "^3.0.0"
pyjwt = { extras = ["crypto"], version = "^2.8.0" }
cryptography = "^42.0.7"
cryptography = "^41.0.3"
authlib = "^1.3.0"
typer = "^0.12.3"

Expand Down
3 changes: 1 addition & 2 deletions pyrevolut/api/accounts/resources/account.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Annotated
from uuid import UUID
from decimal import Decimal

from pydantic import BaseModel, Field
from pydantic_extra_types.currency_code import Currency
Expand All @@ -23,7 +22,7 @@ class ResourceAccount(BaseModel):
Field(description="The account name."),
] = None
balance: Annotated[
Decimal,
float,
Field(description="The current balance on the account."),
]
currency: Annotated[
Expand Down
Loading

0 comments on commit f864425

Please sign in to comment.