Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Structure

Excerpt


FieldTypeRequiredDescription
rateListList<rateRate>falselist of rate.
accommodationListList<accommodationAccommodation>falselist of accommodation.
intervalListList<intervalInterval>falselist of intervals.
updateAmountBooleanfalseupdate amount.
amountBigDecimalfalseamount.
updateClosedBooleanfalseupdate closed.
closedBooleanfalseclosed or open.
updateMinStayBooleanfalseupdate minStay.
minStayIntegerfalseminStay number of nights.
updateMaxStayBooleanfalseupdate maxStay.
maxStayIntegerfalsemaxStay number of  nights.
updateClosedToArrivalBooleanfalseupdate closedToArrival.
closedToArrivalBooleanfalseis closedToArrival.
updateClosedToDepartureBooleanfalseupdate closedToDeparture.
closedToDepartureBooleanfalseis closedToDeparture.
updatePercentDiscountBooleanfalseupdate percent of Discount.
percentDiscountBigDecimalfalsepercent of Discount.
updateAmountDiscountBooleanfalseupdate amountDiscount.
amountDiscountBigDecimalfalseimport of Discount.



JSON representation

Code Block
languagepowershell
themeDJango
{
  "rateList":[
      {"id":2},
      {"id":17},
      {"id":32},
      {"id":92}
  ],
  "intervalList": [
    {
      "startDate": "2023-10-23",
      "endDate": "2023-10-31",
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": true,
      "sunday": true
    },
    {
      "startDate": "2023-11-19",
      "endDate": "2023-11-30",
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": true,
      "sunday": true
    }
  ],
  "accommodationList": [
    692,
    707,
    722,
    737,
    752,
    767,
    782,
    797,
    812
  ],
  "closed": false,
  "closedToArrival": true,
  "closedToDeparture": false,
  "maxStay": "7",
  "minStay": "1",
  "updateClosed": true,
  "updateClosedToArrival": true,
  "updateClosedToDeparture": true,
  "updateMaxStay": true,
  "updateMinStay": true
}