Skip to content

Commit 92fd41b

Browse files
author
dev_chenjaiwen
committed
fix financial api url error
1 parent 7b19a69 commit 92fd41b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/FikaAmazonAPI/Services/ApiUrls.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public static string ListFinancialEventGroups
328328
public static string ListFinancialEventsByOrderId(string orderId) => $"{_resourceBaseUrl}/orders/{orderId}/financialEvents";
329329
public static string ListFinancialEvents
330330
{
331-
get => $"{_resourceBaseUrl}/listFinancialEvents";
331+
get => $"{_resourceBaseUrl}/financialEvents";
332332
}
333333
}
334334

Source/FikaAmazonAPI/Services/FinancialService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public IList<FinancialEvents> ListFinancialEvents(ParameterListFinancialEvents p
7575

7676
var parameter = parameterListFinancials.getParameters();
7777

78-
CreateAuthorizedRequest(FinanceApiUrls.ListFinancialEventGroups, RestSharp.Method.GET, parameter);
78+
CreateAuthorizedRequest(FinanceApiUrls.ListFinancialEvents, RestSharp.Method.GET, parameter);
7979
var response = ExecuteRequest<ListFinancialEventsResponse>();
8080

8181
list.Add(response.Payload.FinancialEvents);
@@ -97,7 +97,7 @@ private ListFinancialEventsPayload GetFinancialEventsByNextToken(string nextToke
9797
queryParameters.Add(new KeyValuePair<string, string>("NextToken", nextToken));
9898

9999

100-
CreateAuthorizedRequest(FinanceApiUrls.ListFinancialEventGroups, RestSharp.Method.GET, queryParameters);
100+
CreateAuthorizedRequest(FinanceApiUrls.ListFinancialEvents, RestSharp.Method.GET, queryParameters);
101101
var response = ExecuteRequest<ListFinancialEventsResponse>();
102102
return response.Payload;
103103
}

0 commit comments

Comments
 (0)