ofxstatement-nordigen 0.1__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ofxstatement-nordigen might be problematic. Click here for more details.
- ofxstatement_nordigen/schemas.py +12 -11
- {ofxstatement_nordigen-0.1.dist-info → ofxstatement_nordigen-0.1.1.dist-info}/METADATA +1 -1
- ofxstatement_nordigen-0.1.1.dist-info/RECORD +8 -0
- {ofxstatement_nordigen-0.1.dist-info → ofxstatement_nordigen-0.1.1.dist-info}/WHEEL +1 -1
- ofxstatement_nordigen-0.1.dist-info/RECORD +0 -8
- {ofxstatement_nordigen-0.1.dist-info → ofxstatement_nordigen-0.1.1.dist-info}/entry_points.txt +0 -0
- {ofxstatement_nordigen-0.1.dist-info → ofxstatement_nordigen-0.1.1.dist-info}/top_level.txt +0 -0
ofxstatement_nordigen/schemas.py
CHANGED
|
@@ -22,24 +22,25 @@ class Amount(BaseModel):
|
|
|
22
22
|
return value
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
class
|
|
26
|
-
|
|
25
|
+
class Account(BaseModel):
|
|
26
|
+
bban: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CurrencyExchange(BaseModel):
|
|
27
30
|
sourceCurrency: Optional[Currency] = None
|
|
31
|
+
targetCurrency: Optional[Currency] = None
|
|
32
|
+
unitCurrency: Optional[Currency] = None
|
|
28
33
|
exchangeRate: Optional[float] = None
|
|
34
|
+
instructedAmount: Optional[Amount] = None
|
|
29
35
|
|
|
30
|
-
@field_validator("targetCurrency", "
|
|
36
|
+
@field_validator("sourceCurrency", "targetCurrency", "unitCurrency", mode="before")
|
|
31
37
|
def validate_currency(cls, value):
|
|
32
38
|
if isinstance(value, str):
|
|
33
39
|
return Currency(value)
|
|
34
40
|
return value
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
bban: Optional[str] = None
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class ReportExchangeRate(BaseModel):
|
|
42
|
-
instructedAmount: Optional[InstructedAmount] = None
|
|
42
|
+
class Config:
|
|
43
|
+
arbitrary_types_allowed = True
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
class NordigenTransactionModel(BaseModel):
|
|
@@ -56,7 +57,7 @@ class NordigenTransactionModel(BaseModel):
|
|
|
56
57
|
creditorAgent: Optional[str] = None
|
|
57
58
|
creditorId: Optional[str] = None
|
|
58
59
|
creditorName: Optional[str] = None
|
|
59
|
-
currencyExchange: Optional[
|
|
60
|
+
currencyExchange: Optional[CurrencyExchange] = None
|
|
60
61
|
debtorAccount: Optional[Account] = None
|
|
61
62
|
debtorAgent: Optional[str] = None
|
|
62
63
|
debtorName: Optional[str] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ofxstatement-nordigen
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: ofxstatement plugin for Nordigen bank statements
|
|
5
5
|
Author-email: Jimmy Stammers <jimmy.stammers@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/jstammers/ofxstatement-nordigen/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
ofxstatement_nordigen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
ofxstatement_nordigen/plugin.py,sha256=P74OSBt-4SkXHuHa0MREMayd9Um_mwp0jKgPndMAhb0,2533
|
|
3
|
+
ofxstatement_nordigen/schemas.py,sha256=15XdqsSBhyEDbk-gaCwlkaEDkPIfXuSYxfF0iEWaC0U,2606
|
|
4
|
+
ofxstatement_nordigen-0.1.1.dist-info/METADATA,sha256=n3n1jQtr_oEXs7ZmJEpT47JiqegUAFlfHtL2GG6OU5c,2678
|
|
5
|
+
ofxstatement_nordigen-0.1.1.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
6
|
+
ofxstatement_nordigen-0.1.1.dist-info/entry_points.txt,sha256=u2VbBVZyOs-NBZwsS0wBZMwiczusBhgkWBrhSrcckvA,70
|
|
7
|
+
ofxstatement_nordigen-0.1.1.dist-info/top_level.txt,sha256=gxcEQgvstWr0jhEqaT70JODD71i507SJ06YeA5KIUj4,22
|
|
8
|
+
ofxstatement_nordigen-0.1.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
ofxstatement_nordigen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
ofxstatement_nordigen/plugin.py,sha256=P74OSBt-4SkXHuHa0MREMayd9Um_mwp0jKgPndMAhb0,2533
|
|
3
|
-
ofxstatement_nordigen/schemas.py,sha256=8n4iXQjnHHHrKF_ZdEJRs6zcKCbidWu61PQmyVfzUUI,2561
|
|
4
|
-
ofxstatement_nordigen-0.1.dist-info/METADATA,sha256=QNFTJR7YfNTr3Oiu2K06SFsRezFSaDIccqF0wSW0A1M,2676
|
|
5
|
-
ofxstatement_nordigen-0.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
6
|
-
ofxstatement_nordigen-0.1.dist-info/entry_points.txt,sha256=u2VbBVZyOs-NBZwsS0wBZMwiczusBhgkWBrhSrcckvA,70
|
|
7
|
-
ofxstatement_nordigen-0.1.dist-info/top_level.txt,sha256=gxcEQgvstWr0jhEqaT70JODD71i507SJ06YeA5KIUj4,22
|
|
8
|
-
ofxstatement_nordigen-0.1.dist-info/RECORD,,
|
{ofxstatement_nordigen-0.1.dist-info → ofxstatement_nordigen-0.1.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|