Skip to content

Commit

Permalink
revert: Unecessary breaking changes
Browse files Browse the repository at this point in the history
As requested
  • Loading branch information
Tommaso-n authored Sep 1, 2020
1 parent 2d41ae9 commit a71819a
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import find_packages, setup

NAME = "ynab-sdk"
VERSION = "0.2.2"
VERSION = "0.2.3"
REQUIRES = ["requests", "python-dateutil", "redis"]


Expand Down
4 changes: 2 additions & 2 deletions ynab_sdk/api/models/responses/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

@dataclass
class Account:
account_id: str
id: str
name: str
account_type: str
type: str
on_budget: bool
closed: bool
note: Optional[str]
Expand Down
4 changes: 2 additions & 2 deletions ynab_sdk/api/models/responses/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

@dataclass
class Account:
account_id: str
id: str
name: str
account_type: str
type: str
on_budget: bool
closed: bool
note: Optional[str]
Expand Down
22 changes: 11 additions & 11 deletions ynab_sdk/api/models/responses/budget_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

@dataclass
class Account:
account_id: str
id: str
name: str
account_type: str
type: str
on_budget: bool
closed: bool
note: str
Expand Down Expand Up @@ -52,7 +52,7 @@ def from_dict(obj: Any) -> "Account":

@dataclass
class Category:
category_id: str
id: str
category_group_id: str
name: str
hidden: bool
Expand Down Expand Up @@ -121,7 +121,7 @@ def from_dict(obj: Any) -> "Category":

@dataclass
class CategoryGroup:
category_group_id: str
id: str
name: str
hidden: Optional[bool]
deleted: bool
Expand Down Expand Up @@ -180,7 +180,7 @@ def from_dict(obj: Any) -> "CurrencyFormat":

@dataclass
class DateFormat:
date_format: str
format: str

@staticmethod
def from_dict(obj: Any) -> "DateFormat":
Expand All @@ -191,7 +191,7 @@ def from_dict(obj: Any) -> "DateFormat":

@dataclass
class Month:
month_name: str
month: str
note: str
income: int
budgeted: int
Expand Down Expand Up @@ -232,7 +232,7 @@ def from_dict(obj: Any) -> "Month":

@dataclass
class PayeeLocation:
payee_location_id: str
id: str
payee_id: str
latitude: str
longitude: str
Expand All @@ -251,7 +251,7 @@ def from_dict(obj: Any) -> "PayeeLocation":

@dataclass
class Subtransaction:
sub_transaction_id: str
id: str
scheduled_transaction_id: Optional[str]
amount: int
memo: str
Expand Down Expand Up @@ -296,7 +296,7 @@ def from_dict(obj: Any) -> "Subtransaction":

@dataclass
class ScheduledTransaction:
scheduled_transaction_id: str
id: str
date_first: str
date_next: str
frequency: str
Expand Down Expand Up @@ -342,7 +342,7 @@ def from_dict(obj: Any) -> "ScheduledTransaction":

@dataclass
class Transaction:
transaction_id: str
id: str
date: str
amount: int
memo: Optional[str]
Expand Down Expand Up @@ -413,7 +413,7 @@ def from_dict(obj: Any) -> "Transaction":

@dataclass
class Budget:
budget_id: str
id: str
name: str
last_modified_on: datetime
first_month: str
Expand Down
2 changes: 1 addition & 1 deletion ynab_sdk/api/models/responses/budget_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def from_dict(obj: Any) -> "CurrencyFormat":

@dataclass
class DateFormat:
date_format: str
format: str

@staticmethod
def from_dict(obj: Any) -> "DateFormat":
Expand Down
2 changes: 1 addition & 1 deletion ynab_sdk/api/models/responses/budget_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def from_dict(obj: Any) -> "DateFormat":

@dataclass
class Budget:
budget_id: str
id: str
name: str
last_modified_on: datetime
first_month: str
Expand Down
4 changes: 2 additions & 2 deletions ynab_sdk/api/models/responses/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@dataclass
class Category:
category_id: str
id: str
category_group_id: str
name: str
hidden: bool
Expand Down Expand Up @@ -65,7 +65,7 @@ def from_dict(obj: Any) -> "Category":

@dataclass
class CategoryGroup:
category_group_id: str
id: str
name: str
hidden: bool
deleted: bool
Expand Down
2 changes: 1 addition & 1 deletion ynab_sdk/api/models/responses/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@dataclass
class Category:
category_id: str
id: str
category_group_id: str
name: str
hidden: bool
Expand Down
2 changes: 1 addition & 1 deletion ynab_sdk/api/models/responses/payee.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@dataclass
class Payee:
payee_id: str
id: str
name: str
transfer_account_id: Optional[str]
deleted: bool
Expand Down
2 changes: 1 addition & 1 deletion ynab_sdk/api/models/responses/payees.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@dataclass
class Payee:
payee_id: str
id: str
name: str
transfer_account_id: Optional[str]
deleted: bool
Expand Down
4 changes: 2 additions & 2 deletions ynab_sdk/api/models/responses/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@dataclass
class Subtransaction:
sub_transaction_id: str
id: str
transaction_id: str
amount: int
memo: Optional[str]
Expand Down Expand Up @@ -40,7 +40,7 @@ def from_dict(obj: Any) -> "Subtransaction":

@dataclass
class Transaction:
transaction_id: str
id: str
date: str
amount: int
memo: Optional[str]
Expand Down

0 comments on commit a71819a

Please sign in to comment.