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":"Cover letter to guest",
          "defaultValue":"Thank you very much for your request, we are happy to accept the order"
        },
        "internalComment":{
          "required":false,
          "type":"string",
          "label":"Internal comment",
          "defaultValue":"Implement after the 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"
        },
        "numberuser":{
          "required":true,
          "type":"numberuser",
          "label":"CostsResponsible",
          "defaultValue":12.4,[
            "meta":{7657"
          ]
    "min":10,    },
        "maxnumber":13,
 {
          "steprequired":0.1true,
          }"type":"number",
        },         "select1":{"label":"Costs",
          "requireddefaultValue":true12.4,
          "typemeta":"enum",{
            "labelmin":"small selection",10,
            "defaultValuemax":"1"13,
            "metastep":{0.1
          }
 "options":[       },
       { "select1":{
          "required":true,
          "valuetype":"1enum",
          "label":"small selection",
    "label      "defaultValue":"Option 1",
          "meta":{
     },       "options":[
       {       {
         "value"       "value":"211",
                "label":"Option 211"
              },
              {
                "value":"3121",
                "label":"Option 3121"
              },
            ]  {
        }         }"value":"31",
        "select2": {       "label":"Option 31"
      "required": true,       }
       "type": "enum",    ]
          "label": "little selection",}
        },
        "defaultValueselect2": "1",{
              "metarequired": {
true,
                 "optionstype": ["enum",
              "label": "little selection",
     {           "defaultValue": "1",
               "valuemeta": "11",
  {
                       "labeloptions": "Option 11"
[
                     },                       {
                          "value": "21111",
                          "label": "Option 21111"
                      },
                      {
                          "value": "311211",
                          "label": "Option 311211"
                      },
                      {
                          "value": "1311",
                          "label": "Option 1311"
                      },
                      {
                          "value": "211",
                          "label": "Option 211"
                      },
                      {
                          "value": "3121",
                          "label": "Option 3121"
                      },
                      {
          ]                }"value": "31",
          }       }     }   ]
}

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 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
  ], "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-20240530-080901.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",
  "user":[
    7657
  ],
  "number":12.4,
  "select1":"1",
  "select2":"1"
}