Skip to content

Commit

Permalink
add roomType field
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsan authored Nov 19, 2021
1 parent 11df198 commit 7c40367
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ShortFareHotel.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ class ShortFareHotel {
this.tc = undefined // tenantCode
this.hc = undefined // hotelCode
this.rc = undefined // rateCode
this.rt = undefined // roomType
this.cid = undefined // checkInDate
this.cod = undefined // checkOutDate
this.n = undefined // nights
this.g = undefined // guests
this.c = undefined // currencyCode
this.p = undefined // totalPrice
this.ca = undefined // createdAt
this.ua = undefined // createdAt
this.ua = undefined // updatedAt
this.si = undefined // sourceId
}

Expand Down Expand Up @@ -63,6 +64,18 @@ class ShortFareHotel {

this.rc = v
}

get roomType () {
return this.rt
}

set roomType (v) {
// if (!_3to5upperCasedLettersRegExp.test(v)) {
// throw new Error(`rateCode [${v}] does not match ${_3to5upperCasedLettersRegExp}`)
// }

this.rt = v
}

get checkInDate () {
return this.cid
Expand Down

0 comments on commit 7c40367

Please sign in to comment.