diff --git a/index.js b/index.js index fa9b0d4..bff34ad 100644 --- a/index.js +++ b/index.js @@ -618,6 +618,7 @@ class Plugin { email: R.path(['emailAddress'], holder), phone: R.pathOr('', ['phone'], holder), bookingRefID: reference, + bookingPartnerId: bookingPartnerId, ...R.omit(['iat', 'currency'], dataForBooking), // notes, }, diff --git a/index.test.js b/index.test.js index 1233e2c..050127d 100644 --- a/index.test.js +++ b/index.test.js @@ -40,7 +40,7 @@ describe('search tests', () => { const token = { endpoint: process.env.ti2_bonza_endpoint, apiKey: process.env.ti2_bonza_apiKey, - bookingPartnerId: 181 + bookingPartnerId: 181, }; const dateFormat = 'DD/MM/YYYY'; const dateFormatCB = 'YYYY-MM-DD'; @@ -179,7 +179,7 @@ describe('search tests', () => { expect(availabilityKey).toBeTruthy(); }); let booking; - const reference = faker.datatype.uuid(); + const bookingRefId = faker.datatype.uuid(); it('should be able to create a booking', async () => { const fullName = faker.name.findName().split(' '); const retVal = await app.createBooking({ @@ -214,7 +214,7 @@ describe('search tests', () => { phone: "888888877", country: faker.address.countryCode(), }, - reference, + reference: bookingRefId, }, }); expect(retVal.booking).toBeTruthy();