| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function allowed(): array |
||
| 21 | { |
||
| 22 | return [ |
||
| 23 | 'id' => 'string', // The id of the resource. |
||
| 24 | 'url' => 'string', // The URL that Bookeo will request when an event triggers the webhook. The protocol must be https, |
||
| 25 | 'domain' => 'string', // What type of object this webhook applies to = ['bookings' or 'seatblocks' or 'resourceblocks' or 'customers' or 'payments'], |
||
| 26 | 'type' => 'string', // What type of operation triggers this webhook = ['created' or 'updated' or 'deleted'], |
||
| 27 | 'blockedTime' => 'string:datetime', // If this field is present, it indicates that the webhook was blocked at this time. The blockedReason will indicate the reason for the block. Typically, a webhook gets blocked when too many consecutive notifications are dropped due to repeat conection errors. Once a webhook is blocked, no more notifications will be sent to it. Your application will need to fix the cause of the block, and then create a new webhook. [read-only], |
||
| 28 | 'blockedReason' => 'string', // The reason why the webhook was blocked. [read-only] |
||
| 29 | ]; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |