File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Source/FikaAmazonAPI.SampleCode Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
- using System ;
1
+ using FikaAmazonAPI . AmazonSpApiSDK . Models . Finances ;
2
+ using System ;
2
3
using System . Collections . Generic ;
3
4
using System . Linq ;
4
5
using System . Text ;
@@ -14,15 +15,27 @@ public FinancialSample(AmazonConnection amazonConnection)
14
15
this . amazonConnection = amazonConnection ;
15
16
}
16
17
17
- public void ListFinancialEventGroups ( )
18
+ public IList < FinancialEventGroup > ListFinancialEventGroups ( )
18
19
{
19
- amazonConnection . Financial . ListFinancialEventGroups ( new Parameter . Finance . ParameterListFinancialEventGroup ( )
20
+ return amazonConnection . Financial . ListFinancialEventGroups ( new Parameter . Finance . ParameterListFinancialEventGroup ( )
20
21
{
21
22
FinancialEventGroupStartedAfter = DateTime . UtcNow . AddDays ( - 10 ) ,
22
23
FinancialEventGroupStartedBefore = DateTime . UtcNow . AddDays ( - 1 ) ,
23
24
MaxResultsPerPage = 55
24
25
} ) ;
26
+ }
25
27
28
+ public List < FinancialEvents > ListFinancialEventsByGroupId ( string financialGroupId )
29
+ {
30
+ var financialEventsWithoutParams = amazonConnection . Financial . ListFinancialEventsByGroupId ( financialGroupId ) ;
31
+ var financialEventsWithParams = amazonConnection . Financial . ListFinancialEventsByGroupId ( financialGroupId ,
32
+ new Parameter . Finance . ParameterListFinancialEventsByGroupId ( )
33
+ {
34
+ PostedAfter = DateTime . UtcNow . AddDays ( - 170 ) ,
35
+ PostedBefore = DateTime . UtcNow . AddMinutes ( - 60 ) ,
36
+ MaxResultsPerPage = 55
37
+ } ) ;
38
+ return financialEventsWithParams ;
26
39
}
27
40
}
28
41
}
You can’t perform that action at this time.
0 commit comments