about summary refs log tree commit diff stats
path: root/src/Item
diff options
context:
space:
mode:
Diffstat (limited to 'src/Item')
-rw-r--r--src/Item/BudgetTransaction.php1
-rw-r--r--src/Item/LedgerPosting.php11
-rw-r--r--src/Item/LedgerTransaction.php11
-rw-r--r--src/Item/RegisterTransaction.php3
4 files changed, 25 insertions, 1 deletions
diff --git a/src/Item/BudgetTransaction.php b/src/Item/BudgetTransaction.php
index e4899f9..e073ed2 100644
--- a/src/Item/BudgetTransaction.php
+++ b/src/Item/BudgetTransaction.php
@@ -7,4 +7,5 @@ class BudgetTransaction {
     public $category = [];
     public $in;
     public $out;
+    public $currency;
 }
diff --git a/src/Item/LedgerPosting.php b/src/Item/LedgerPosting.php
new file mode 100644
index 0000000..79aeb49
--- /dev/null
+++ b/src/Item/LedgerPosting.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace YnabLedger\Item;
+
+class LedgerPosting {
+    public $account = [];
+    public $isVirtual = false;
+    public $amount;
+    public $currency;
+    public $note;
+}
diff --git a/src/Item/LedgerTransaction.php b/src/Item/LedgerTransaction.php
new file mode 100644
index 0000000..ebe26e8
--- /dev/null
+++ b/src/Item/LedgerTransaction.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace YnabLedger\Item;
+
+class LedgerTransaction {
+    public $date;
+    public $state;
+    public $payee;
+    public $note;
+    public $postings = [];
+}
diff --git a/src/Item/RegisterTransaction.php b/src/Item/RegisterTransaction.php
index b676640..3c9842a 100644
--- a/src/Item/RegisterTransaction.php
+++ b/src/Item/RegisterTransaction.php
@@ -11,5 +11,6 @@ class RegisterTransaction {
     public $memo;
     public $out;
     public $in;
-    public $cleared = false;
+    public $currency;
+    public $cleared;
 }