Addded tests/ folder with example payloads
This commit is contained in:
parent
c10b6ec72e
commit
a1ed27a82c
2 changed files with 81 additions and 0 deletions
54
tests/post-transactions.json
Normal file
54
tests/post-transactions.json
Normal file
|
@ -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": "$"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
27
tests/update-transaction.json
Normal file
27
tests/update-transaction.json
Normal file
|
@ -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": "$"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue