From a1ed27a82cf3765cddbbf9325d53126591a62edf 2013-12-16 06:38:45 From: Joar Wandborg Date: 2013-12-16 06:38:45 Subject: [PATCH] Addded tests/ folder with example payloads --- diff --git a/tests/post-transactions.json b/tests/post-transactions.json new file mode 100644 index 0000000000000000000000000000000000000000..f51b5e3124f0bfc2666bbbd6da27ff788928a5ff --- /dev/null +++ b/tests/post-transactions.json @@ -0,0 +1,54 @@ +{ + "transactions": [ + { + "__type__": "Transaction", + "date": "2013-01-01", + "payee": "Kindly T. Donor", + "postings": [ + { + "__type__": "Posting", + "account": "Income:Foo:Donation", + "amount": { + "__type__": "Amount", + "amount": "-100", + "symbol": "$" + } + }, + { + "__type__": "Posting", + "account": "Assets:Checking", + "amount": { + "__type__": "Amount", + "amount": "100", + "symbol": "$" + } + } + ] + }, + { + "__type__": "Transaction", + "date": "2013-03-15", + "payee": "Another J. Donor", + "postings": [ + { + "__type__": "Posting", + "account": "Income:Foo:Donation", + "amount": { + "__type__": "Amount", + "amount": "-400", + "symbol": "$" + } + }, + { + "__type__": "Posting", + "account": "Assets:Checking", + "amount": { + "__type__": "Amount", + "amount": "400", + "symbol": "$" + } + } + ] + } + ] +} diff --git a/tests/update-transaction.json b/tests/update-transaction.json new file mode 100644 index 0000000000000000000000000000000000000000..72dbb64d2368965d96d1d922e70b8aa587c16ae5 --- /dev/null +++ b/tests/update-transaction.json @@ -0,0 +1,27 @@ +{ + "transaction": { + "__type__": "Transaction", + "date": "2013-01-01", + "payee": "Kindly T. Donor", + "postings": [ + { + "__type__": "Posting", + "account": "Income:Foo:Donation", + "amount": { + "__type__": "Amount", + "amount": "-100", + "symbol": "$" + } + }, + { + "__type__": "Posting", + "account": "Assets:Checking", + "amount": { + "__type__": "Amount", + "amount": "100", + "symbol": "$" + } + } + ] + } +}