Versions Compared

Key

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

...

Code Block
themeMidnight
{
  "paymentMethods": [
    {
      "paymentMethod": "MASTER_CARD",
      "untilDaysBeforeArrival": 0,
      "paymentFee": {
        "feeType": "PERCENTAGE",
        "amount": 0.990,
        "currency": "EUR",
        "maxAmount": 100,
        "minAmount": 10
      },
      "description": "This is the first rate of the payment"
    }
  ],
  "paymentRates": {
    "ratePaidOnBooking": {
      "feeType": "PERCENTAGE",
      "amount": 0.990,
      "currency": "EUR",
      "maxAmount": 100,
      "minAmount": 10
    },
    "ratesPerDate": [
      {
        "daysBeforeArrival": 10,
        "rateAmount": {
          "feeType": "PERCENTAGE",
          "amount": 0.990,
          "currency": "EUR",
          "maxAmount": 100,
          "minAmount": 10
        }
      }
    ]
  }
}

...

Code Block
themeMidnight
{

 "isServiceFeeRefunded": true,

 "cancellationPoliciesPerDate": [

   {

     "daysBeforeArrival": 20,

     "cancellationFee": {

       "feeType": "PERCENTAGE",

       "amount": 0.990,

       "currency": "USD",

       "maxAmount": null,

       "minAmount": 100

     }

   },

{

     "daysBeforeArrival": 0, //daysBeforeArrival must be 0 for the cancellation policy line which is closest to the check-in date. In this example, it means this condition applies to days 0 to 19 before check-in.

     "cancellationFee": {

       "feeType": "PERCENTAGE",

       "amount": 0.110,

       "currency": "USD",

       "maxAmount": null,

       "minAmount": 100

     }

   }

 ]

}

...