Skip to content

Commit

Permalink
fix financial api url error
Browse files Browse the repository at this point in the history
  • Loading branch information
dev_chenjaiwen committed Nov 19, 2021
1 parent 7b19a69 commit 92fd41b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/FikaAmazonAPI/Services/ApiUrls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public static string ListFinancialEventGroups
public static string ListFinancialEventsByOrderId(string orderId) => $"{_resourceBaseUrl}/orders/{orderId}/financialEvents";
public static string ListFinancialEvents
{
get => $"{_resourceBaseUrl}/listFinancialEvents";
get => $"{_resourceBaseUrl}/financialEvents";
}
}

Expand Down
4 changes: 2 additions & 2 deletions Source/FikaAmazonAPI/Services/FinancialService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public IList<FinancialEvents> ListFinancialEvents(ParameterListFinancialEvents p

var parameter = parameterListFinancials.getParameters();

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

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


CreateAuthorizedRequest(FinanceApiUrls.ListFinancialEventGroups, RestSharp.Method.GET, queryParameters);
CreateAuthorizedRequest(FinanceApiUrls.ListFinancialEvents, RestSharp.Method.GET, queryParameters);
var response = ExecuteRequest<ListFinancialEventsResponse>();
return response.Payload;
}
Expand Down

0 comments on commit 92fd41b

Please sign in to comment.