-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace LoBrs\Calendly\Models; | ||
|
||
use LoBrs\Calendly\Exceptions\ApiErrorException; | ||
use LoBrs\Calendly\Exceptions\InvalidArgumentException; | ||
use LoBrs\Calendly\Traits\Listable; | ||
use LoBrs\Calendly\Traits\Timeable; | ||
use LoBrs\Calendly\Utils\PaginatedList; | ||
|
||
/** | ||
* @property string $uri | ||
* @property string $organization | ||
* @property string $name | ||
* @property array $questions | ||
*/ | ||
class RoutingForm extends BaseModel | ||
{ | ||
static string $resource = "routing_forms"; | ||
|
||
use Timeable; | ||
use Listable; | ||
|
||
/** | ||
* View routing form submissions associated with the routing form's URI. | ||
* | ||
* @param array $options | ||
* @return PaginatedList<RoutingFormSubmission> | ||
* @throws ApiErrorException|InvalidArgumentException | ||
*/ | ||
public function getRoutingFormSubmissions(array $options = []): PaginatedList { | ||
return RoutingFormSubmission::paginate(array_merge([ | ||
"form" => $this->uri, | ||
], $options)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace LoBrs\Calendly\Models; | ||
|
||
use LoBrs\Calendly\Traits\Listable; | ||
use LoBrs\Calendly\Traits\Timeable; | ||
|
||
/** | ||
* Routing form submission from users. Includes questions and answers. | ||
* | ||
* @property string $uri | ||
* @property string $routing_form | ||
* @property array $questions_and_answers | ||
* @property $tracking | ||
* @property $result | ||
* @property string $submitter | ||
* @property string $submitter_type | ||
*/ | ||
class RoutingFormSubmission extends BaseModel | ||
{ | ||
static string $resource = "routing_form_submissions"; | ||
|
||
use Timeable; | ||
use Listable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters