Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
{
  "actions":[
    {
      "type":"decline",
      "label":"Decline",
      "labelDone":"Declined",
      "labelType":"error"
    },
    {
      "type":"accept",
      "label":"Accept",
      "labelDone":"Accepted",
      "labelType":"success",
      "information":{
        "messageToGuest":{
          "required":false,
          "type":"text",
          "label":"MessageCover letter to guest",
          "defaultValue":"Thank you very much for your request, we willare contacthappy youto asaccept soon as possible.the order"
        },
        "internalComment":{
          "required":false,
          "type":"string",
          "label":"Internal comment",
          "defaultValue":"RightImplement after vacationthe holiday"
        },
        "booleanValue":{
          "required":true,
          "type":"boolean",
          "label":"Send to guest",
          "defaultValue":true
        },
        "time":{
          "required":true,
          "type":"time",
          "label":"Time",
          "defaultValue":"12:00"
        },
        "date":{
          "required":true,
          "type":"date",
          "label":"Date",
          "defaultValue":"29.08.2018"
        },
        "dateTime":{
          "required":true,
          "type":"dateTime",
          "label":"Date + /Time",
          "defaultValue":"29.08.2018 12:00"
        },
        "usernumber":{
          "required":true,
          "type":"usernumber",
          "label":"ResponsibleCosts",
          "defaultValue":[12.4,
            "7657meta":{
           ] "min":10,
       },
        "numbermax":{13,
            "requiredstep":true,0.1
          }
      "type":"number",  },
        "labelselect1":"Workload",{
          "defaultValuerequired":12.4true,
          "metatype":{"enum",
            "minlabel":10"small selection",

           "maxdefaultValue":13"1",
            "stepmeta":0.1{
          }   "options":[
     },         "select1":{
          "required":true,
          "typevalue":"enum1",
          "label":"small Options",             "defaultValue"label":"Option 1",
 
        "meta":{         },
   "options":[               {
                "value":"121",
                "label":"Option 121"
              },
              {
                "value":"2131",
                "label":"Option 2131"
              },
            ]
  {        }
        "value":"31",},
        "select2": {
      "label":"Option 31"       "required": true,
      }        "type": "enum",
   ]           }
 "label": "little selection",
      },        "defaultValue": "select21":{,
           "required":true,
          "type"meta":"enum",
    {
      "label":"enormous options",           "defaultValueoptions":"1", [
         "meta":{             "options":[
   {
          {                 "value": "11",
                          "label": "Option 11"
                      },
              {        {
         "value":"211",                 "labelvalue": "Option 211",
              },            "label": "Option 211"
 {                 "value":"311",    },
            "label":"Option 311"         {
     },               {      "value": "311",
         "value":"1",                 "label": "Option 1"311"
                      },
               {       {
         "value":"21",                 "labelvalue": "1"Option,
21"               },           "label": "Option 1"
  {                    "value":"31",},
                  "label":"Option 31"   {
           }             ]  "value": "21",
       }         }       }   "label": "Option }21"
  ]
}

This is how the buttons will be displayed to the customer:

image-20240529-144605.pngImage Removed

As soon as the customer triggers the action “Accept” a form with the information pops up:

image-20240529-144440.pngImage Removed

After clicking “Send”, a request is sent to the webhook of the partner:

Codeblock
{
  "responseType":"accept",
  "hotelkitID":"73014444213",
  "messageToGuest":"Thank you for your request, we will contact you as soon as possible.",
  "internalComment":"Right after vacation",
  "booleanValue":true,
  "time":"12:00",
  "date":"29.08.2018",
  "dateTime":"29.08.2018 12:00",
  "user":[
    7657
  ],
  "number":12.4,
  "select1":"1",
  "select2":"1"
}                    },
                      {
                          "value": "31",
                          "label": "Option 31"
                      }
                  ]
              }
          }
      }
    }
  ]
}

This is how the buttons will be displayed to the customer:

image-20240529-144605.pngImage Added

As soon as the customer triggers the action “Accept” a form with the information pops up:

image-20240529-144440.pngImage Added

After clicking “Send”, a request is sent to the webhook of the partner:

Codeblock
{
  "responseType":"accept",
  "hotelkitID":"73014444213",
  "messageToGuest":"Thank you very much for your request, we are happy to accept the order",
  "internalComment":"Implement after the holiday",
  "booleanValue":true,
  "time":"12:00",
  "date":"29.08.2018",
  "dateTime":"29.08.2018 12:00",
  "number":12.4,
  "select1":"1",
  "select2":"1"
}

Not present in the screenshot and the example listed is the option that a user has to be chosen.

Codeblock
"user":{
          "required":true,
          "type":"user",
          "label":"Responsible",
          "defaultValue":[
            "7657"
          ]
        }

The response will look like this:

Codeblock
"user":[
    7657
  ],