code: public function setType($type)
      {
          if (! Type::isValidWebhookType($type)) {
              throw new \Exception(sprintf('The action "%s" isn\'t supported!', $type));
          }
  
          $this->type = $type;
  
          return $this;
      }
docs: @param string $type
  
  @return Payload
  @throws \Exception