Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some endpoints by upgrading them to v2, fix all the tests #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nemtajo
Copy link

@nemtajo nemtajo commented Mar 20, 2023

Ran all the tests, all are passing now

@nemtajo
Copy link
Author

nemtajo commented May 1, 2023

Hi, can you please review the PR?

@nemtajo
Copy link
Author

nemtajo commented Sep 4, 2023

Hi @tsolakoua @minjikarin @anthonyroux
Can someone please review the PR?
It has been almost 6 months since it was opened.
Many thanks,
Nemanja

@@ -61,7 +61,7 @@ public FlightOffer[] get(Params _params)
{
try
{
Response response = client.get("/v1/shopping/flight-offers", _params);
Response response = client.get("/v2/shopping/flight-offers", _params);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual and correct API call of the Flight Offers Search API is at this class. It seems at the file FlightOffers.cs it hasn't been removed from the past.

@@ -13,7 +13,10 @@ public class TravelRestrictionsTest
public void Get_Restrictions()
{
var amadeus = GetAmadeusBuild();
DiseaseAreaReport response = amadeus.dutyOfCare.diseases.covid19AreaReport.get(Params.with("countryCode", "US"));
DiseaseAreaReport response = amadeus.dutyOfCare.diseases.covid19AreaReport.get(Params
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Travel Restrictions API has been recently completely decommissioned, so there is no need to update this anymore.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants