Skip to content

Instantly share code, notes, and snippets.

@Kalyse
Last active August 29, 2015 14:10
Show Gist options
  • Save Kalyse/122227abd108ab42c60f to your computer and use it in GitHub Desktop.
Save Kalyse/122227abd108ab42c60f to your computer and use it in GitHub Desktop.
Schema Property
{
"id": "1",
"name": "Belle Vista",
"active": true,
"meta": {
"externalBookNowUrl": "https://www.bookingpage.com/payments/id/1234",
"events": {
"enquiry": [
{
"strategy": "email",
"priority": 100,
"args": {
"toEmail": "sendenquiries+here@gmail.com"
}
},
{
"strategy": "webhook",
"priority": 500,
"args": {
"endpoint": "https://inbound.example.com/api/enquiries/property/1"
}
}
]
}
},
"amenitites": [
{
"namespace": "Amenity\\Outdoor",
"name": "Table and Chairs",
"comment": "It's round"
},
{
"namespace": "Amenity\\General",
"name": "Heater"
},
{
"namespace": "Theme",
"name": "Sun, Sea, Sand"
}
],
"attributes": {
"propertyType": "Beach Hut",
"address": {
"lat": 34.05534,
"lng": 52.2534,
"address1": "Line 1",
"address2": "Line 2",
"address3": "Line 3",
"city": "Torquay",
"country": "England",
"region": "Somewhee",
"unitAptHouseNumberName": "213",
"zipPostCode": "213",
"stateProvince": "Devon"
},
"arrivalInstructions": {
"managerContact": "+4412345678912",
"managerEmail": "email@example.com",
"managerName": "Bob Dylan",
"instructions": {
"en": "You can arrive at any time between XYZ and I will be at the office of XYZ"
}
},
"externalId": "11245.AD",
"externalBrandKey": "Company",
"size": 200,
"bathrooms": 2,
"bedrooms": 3,
"maxGuests": 6,
"maxGuestsChildren": 2,
"maxGuestsBabies": 2,
"rentalOnFloor": null,
"checkInTime": "15:00",
"checkOutTime": "10:00",
"managerSpeaks": [
"English",
"German"
],
"shortDescription": {
"en": "This is a short description"
}
},
"suitability": [
{
"type": "smoking",
"value": true,
"label": "Suitable for Smokers"
},
{
"type": "elderly",
"value": false,
"label": "Suitable for Elderly"
}
],
"descriptions": {
"en": {
"propertyDescription": "Thisisalongdescriptionforpropertydescriptionanddetailsabouttherental",
"locationDescription": "Thisisalongdescriptionforlocationinformationandsurroundinginformation",
"paymentDescription": "Thisisalongdescriptionforpaymentdescriptionandterms",
"travelDescription": "Thisisalongdescriptionfortravelinformation"
},
"fr": {
"propertyDescription": "Thisisalongdescriptionforpropertydescriptionanddetailsabouttherental",
"locationDescription": "Thisisalongdescriptionforlocationinformationandsurroundinginformation",
"paymentDescription": "Thisisalongdescriptionforpaymentdescriptionandterms",
"travelDescription": "Thisisalongdescriptionfortravelinformation"
}
},
"location": {
"woeid": 123456789,
"lat": 1.6795027256011963,
"lng": 42.56408086500546,
"city": "Torquay",
"region": "Somewhee",
"country": "AD",
"zipPostCode": "90120"
},
"pricing": {
"summary": {
"currency": "EUR",
"pricingLow": 100,
"pricingHigh": 220
},
"fees": {
"earlyCheckIn": {
"amount": 45,
"isTaxableBy" : [ "VAT" , "local"],
"comments": {
"en": "This is a description for early checkin"
}
},
"lateCheckIn": {
"amount": 45
},
"lateCheckOut": {
"amount": 45
},
"cleaning": {
"isTaxable" : [ "local" ],
"amount": 150,
"currency": "GBP"
},
"security": {
"amount": 450,
"currency": "USD",
"isRefundable": true
},
"serviceCharge" : {
"amount" : 15
},
"bookingCharge" : {
"amount" : 40
},
"touristCharge" : {
"amount" : 20
}
},
"taxes": [
{
"percentage": 15,
"type": "VAT"
},
{
"percentage": 55,
"type": "local"
}
],
"rates": {
"name": "ItalianLakeSeasons",
"currency": "EUR",
"base": {
"weekly": 600,
"nightly": 100
},
"ranges": [
{
"name": "Spring 2014",
"startDate": "2014-01-01",
"endDate": "2014-03-01",
"minStay": 3,
"cutOffDays": 3,
"standardNightPrice": 100,
"standardWeekPrice": 800,
"changeovers": {
"arrival": [
1,
2,
3,
4,
5,
6,
7
],
"departure": [
1,
2,
3,
4,
5,
6,
7
]
},
"prices": {
"weekly": [
{
"minDurationLength": 14,
"amount": 600
}
],
"nightly": [
{
"minDurationLength": 3,
"nights": [
1,
2,
3,
4
],
"amount": 150
},
{
"minDurationLength": 20,
"nights": [
1,
2,
3,
4,
5,
6,
7
],
"amount": 20
},
{
"minDurationLength": null,
"nights": [
6,
7
],
"amount": 35
}
]
}
}
]
}
},
"feeds": [
{
"type": "ical",
"url": "http://www.exmapleaddress.com"
},
{
"type": "quote",
"url": "http://www.kliktestserer.com/api/quotes?propertyId=%{externalId}&checkInDate=%{checkInDate}&checkOutDate=%{checkOutDate}"
}
],
"availability": {
"startDatum": "2013-01-01",
"availability": "NNNNNNNNNYYYYYYYYYNNNNNQQQNNNNNNNNNN"
},
"rooms": [
{
"namespace": "Room\\Bedroom",
"name": "Master Bedroom",
"isCommunalSpace": false,
"comments": {
"en": "This is a description for Bedroom",
"fr": "I can not speak french to provide a french description...."
},
"items": [
{
"name": "Standard Single",
"quantity": 1,
"sleeps": 1
}
]
},
{
"namespace": "Room\\Bathroom",
"name": "Bathroom",
"items": [
{
"name": "Shower",
"quantity": 1
},
{
"name": "Bath",
"quantity": 1
}
]
}
],
"images": [
{
"url": "http: //web.example.com/ImagesIps/Zoom/AD/AD1550.200a_s.jpg",
"position": 0,
"isFeatured": true,
"comment": "PicturetakenfromtheKitchen",
"caption": {
"en": "This is a caption in English",
"fr": "I can not speak french to provide a french caption...."
},
"type": "Landscape"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment