Difference between revisions of "User getTransactionHistory"
Line 2: | Line 2: | ||
= User_getTransactionHistory = | = User_getTransactionHistory = | ||
− | |||
− | |||
− | |||
{{CGscriptMethods_Template|ReturnType=Array of Array|Name=<nowiki>User_getTransactionHistory</nowiki>|Parameters= | {{CGscriptMethods_Template|ReturnType=Array of Array|Name=<nowiki>User_getTransactionHistory</nowiki>|Parameters= | ||
Line 14: | Line 11: | ||
|InClass=<nowiki>User</nowiki> | |InClass=<nowiki>User</nowiki> | ||
|Description=<nowiki>Get history of all transactions for a user in period.</nowiki>}} | |Description=<nowiki>Get history of all transactions for a user in period.</nowiki>}} | ||
− | |||
− | |||
− | |||
− | |||
== Return type == | == Return type == |
Revision as of 06:10, 2 June 2020
User_getTransactionHistory
- Array of Array User_getTransactionHistory(int userResourceId "Resource id of user") - Get history of all transactions for a user.
- Array of Array User_getTransactionHistory(int userResourceId "Resource id of user", array fromDate "Date to calculate from", array toDate "Date to calculate to") - Get history of all transactions for a user in period.
Return type
Array of transactions, ordered by their date. Each transaction contains: Id, Date, Amount, Description, Type of Transaction, Order_class
Example
User_getTransactionHistory (10768810);
/*
{
{134911,{2013,9,4,10,50,7,300,36},100,Tak for deltagelse i undersøgelse (CG0373),ManualTransaction,Empty},
{731452,{2018,6,21,8,33,53,700,25},-30,Pay point for order:11494,OrderTransaction,Order},
...}
*/