|
3 | 3 |
|
4 | 4 | namespace FortnoxAPILibrary
|
5 | 5 | {
|
| 6 | + /// <summary> |
| 7 | + /// Base settings for filtering search results. |
| 8 | + /// More info at official <see href="https://developer.fortnox.se/general/parameters/">documentation</see> |
| 9 | + /// </summary> |
6 | 10 | public class BaseSearch
|
7 | 11 | {
|
| 12 | + /// <summary> |
| 13 | + /// Limit search result to entities modified after specified date |
| 14 | + /// </summary> |
8 | 15 | [SearchParameter]
|
9 | 16 | public DateTime? LastModified { get; set; }
|
10 | 17 |
|
| 18 | + /// <summary> |
| 19 | + /// Limit search result to entities relevant to specified financial year |
| 20 | + /// </summary> |
11 | 21 | [SearchParameter("financialyear")]
|
12 | 22 | public long? FinancialYearID { get; set; }
|
13 | 23 |
|
| 24 | + /// <summary> |
| 25 | + /// Limit search result to entities relevant to financial year to which this date belongs. |
| 26 | + /// Note, financial years don't overlap, therefore a date defines one (or none) financial year |
| 27 | + /// </summary> |
14 | 28 | [SearchParameter]
|
15 | 29 | public DateTime? FinancialYearDate { get; set; }
|
16 | 30 |
|
| 31 | + /// <summary> |
| 32 | + /// Limits search result to entities with date (e.g. InvoiceDate) after specified date |
| 33 | + /// Only available for invoices, orders, offers and vouchers. |
| 34 | + /// </summary> |
17 | 35 | [SearchParameter]
|
18 | 36 | public DateTime? FromDate { get; set; }
|
19 | 37 |
|
| 38 | + /// <summary> |
| 39 | + /// Limits search result to entities with date (e.g. InvoiceDate) before specified date |
| 40 | + /// Only available for invoices, orders, offers and vouchers. |
| 41 | + /// </summary> |
20 | 42 | [SearchParameter]
|
21 | 43 | public DateTime? ToDate { get; set; }
|
22 | 44 |
|
23 |
| - |
| 45 | + /// <summary> |
| 46 | + /// Defines order for search result |
| 47 | + /// </summary> |
24 | 48 | [SearchParameter]
|
25 | 49 | public Sort.Order? SortOrder { get; set; }
|
26 | 50 |
|
| 51 | + /// <summary> |
| 52 | + /// Defines page size for the search result. If undefined, API uses page size 100. |
| 53 | + /// APIConstants.MaxLimit and APIConstants.Unlimited can be used. |
| 54 | + /// </summary> |
27 | 55 | [SearchParameter]
|
28 | 56 | public int? Limit { get; set; }
|
29 | 57 |
|
| 58 | + /// <summary> |
| 59 | + /// Defines which page should be retrieved. If undefined, API uses page 1 |
| 60 | + /// </summary> |
30 | 61 | [SearchParameter]
|
31 | 62 | public int? Page { get; set; }
|
32 | 63 |
|
| 64 | + /// <summary> |
| 65 | + /// Skips specified amount of entities from search result. If undefined, API uses 0 |
| 66 | + /// </summary> |
33 | 67 | [SearchParameter]
|
34 | 68 | public int? Offset { get; set; }
|
35 | 69 |
|
|
0 commit comments