Skip to content

Commit

Permalink
Merge pull request #197 from amadeus4dev/travel-restrictionsv2-remove
Browse files Browse the repository at this point in the history
Remove Travel Restrictions v2
  • Loading branch information
minjikarin authored Aug 31, 2023
2 parents fed62d0 + 90f5dd7 commit 63d1747
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 112 deletions.
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,17 +531,6 @@ amadeus.analytics.itineraryPriceMetrics.get({
departureDate: '2022-03-13',
})

// Travel Restrictions
// The Travel Restrictions API provides up-to-date data on COVID-19 caseloads and travel restrictions for over 200 countries and territories,
// as well as hundreds of cities and regions worldwide.

// Travel Restrictions API v2
amadeus.dutyOfCare.diseases.covid19Report.get({
countryCode: 'US',
cityCode: 'NYC',
language: 'EN'
});

//Cars & Transfers APIs
// Transfer Search API: Search Transfer
amadeus.shopping.transferOffers.post(JSON.stringify(body));
Expand Down
13 changes: 0 additions & 13 deletions spec/amadeus/namespaces.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ describe('Namespaces', () => {
expect(amadeus.location.analytics).toBeDefined();
expect(amadeus.location.analytics.categoryRatedAreas).toBeDefined();

expect(amadeus.dutyOfCare).toBeDefined();
expect(amadeus.dutyOfCare.diseases).toBeDefined();
expect(amadeus.dutyOfCare.diseases.covid19Report).toBeDefined();

expect(amadeus.airline.destinations).toBeDefined();
});

Expand Down Expand Up @@ -158,8 +154,6 @@ describe('Namespaces', () => {

expect(amadeus.location.analytics.categoryRatedAreas.get).toBeDefined();

expect(amadeus.dutyOfCare.diseases.covid19Report.get).toBeDefined();

expect(amadeus.airline.destinations.get).toBeDefined();
});

Expand Down Expand Up @@ -532,13 +526,6 @@ describe('Namespaces', () => {
.toHaveBeenCalledWith('/v1/shopping/flight-offers/upselling', {});
});

it('.amadeus.dutyOfCare.diseases.covid19Report.get', () => {
amadeus.client.get = jest.fn();
amadeus.dutyOfCare.diseases.covid19Report.get();
expect(amadeus.client.get)
.toHaveBeenCalledWith('/v2/duty-of-care/diseases/covid19-area-report', {});
});

it('.amadeus.airline.destinations.get', () => {
amadeus.client.get = jest.fn();
amadeus.airline.destinations.get();
Expand Down
2 changes: 0 additions & 2 deletions src/amadeus.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Safety from './amadeus/namespaces/safety';
import Schedule from './amadeus/namespaces/schedule';
import Analytics from './amadeus/namespaces/analytics';
import Location from './amadeus/namespaces/location';
import DutyOfCare from './amadeus/namespaces/duty_of_care';
import Airline from './amadeus/namespaces/airline';


Expand Down Expand Up @@ -80,7 +79,6 @@ class Amadeus {
this.schedule = new Schedule(this.client);
this.analytics = new Analytics(this.client);
this.location = new Location(this.client);
this.dutyOfCare = new DutyOfCare(this.client);
this.airline = new Airline(this.client);
}

Expand Down
19 changes: 0 additions & 19 deletions src/amadeus/namespaces/duty_of_care.js

This file was deleted.

22 changes: 0 additions & 22 deletions src/amadeus/namespaces/duty_of_care/diseases.js

This file was deleted.

45 changes: 0 additions & 45 deletions src/amadeus/namespaces/duty_of_care/diseases/covid19_report.js

This file was deleted.

0 comments on commit 63d1747

Please sign in to comment.