-
Notifications
You must be signed in to change notification settings - Fork 0
/
BookFlight.ts
44 lines (39 loc) · 984 Bytes
/
BookFlight.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import {
Wakanow,
} from "../src";
import { config } from "./config";
const wakanowNode = new Wakanow("development" , config.accessToken);
wakanowNode.flightResource.flightBooking(
{
PassengerDetails: [
{
PassengerType: "Adult",
FirstName: "Adeniyi",
MiddleName: "",
LastName: "Adedotun",
DateOfBirth: "09/14/1990",
PhoneNumber: "+0902343423",
Address: "No 43, Lagos Str.",
PassportNumber: "",
ExpiryDate: "",
PassportIssuingAuthority: "",
Email: "olas1@gmail.com",
Gender: "Female",
Title: "Ms",
City: "nisun",
Country: "Nigeria",
CountryCode: "NG",
PostalCode: "100001",
},
],
BookingItemModels: [{
ProductType: "Flight",
BookingData: config.bookingData,
BookingId: "1707310600002",
TargetCurrency: "NGN",
},
],
},
).then((response) => {
console.log("response", response);
});