1 | <?php |
||
7 | class Form extends BaseClass |
||
8 | { |
||
9 | /** The URI of the action */ |
||
10 | const URI = 'https://api.signere.no/api/Form'; |
||
11 | |||
12 | /** |
||
13 | * Gets all forms to the authenticated documentprovider. |
||
14 | * |
||
15 | * @return object |
||
16 | */ |
||
17 | 1 | public function get() |
|
33 | |||
34 | /** |
||
35 | * Gets all signed forms to the authenticated documentprovider |
||
36 | * filtered by the input parameters provided. |
||
37 | * |
||
38 | * @param string|null $formId |
||
39 | * @param Carbon|null $from |
||
40 | * @param Carbon|null $to |
||
41 | * @return object |
||
42 | */ |
||
43 | 1 | public function getAllSigned(string $formId = null, Carbon $from = null, Carbon $to = null) |
|
65 | |||
66 | /** |
||
67 | * Gets the attachements to the form. |
||
68 | * |
||
69 | * @param string $formId |
||
70 | * @param string $formSignId |
||
71 | * @param string $attachReference |
||
72 | * @return object |
||
73 | */ |
||
74 | 1 | public function getAttachments(string $formId, string $formSignId, string $attachReference) |
|
96 | |||
97 | /** |
||
98 | * Gets a signed form from DocumentID. |
||
99 | * |
||
100 | * @param string $documentId |
||
101 | * @return object |
||
102 | */ |
||
103 | 1 | public function getSignedByDocId(string $documentId) |
|
119 | |||
120 | /** |
||
121 | * Gets a signed form from formId and formSessionId. |
||
122 | * |
||
123 | * @param string $formId |
||
124 | * @param string $formSessionId |
||
125 | * @return object |
||
126 | */ |
||
127 | 1 | public function getSignedBySessionId(string $formId, string $formSessionId) |
|
148 | |||
149 | /** |
||
150 | * Enables the form. |
||
151 | * |
||
152 | * @param string $formId |
||
153 | * @return object |
||
154 | */ |
||
155 | 1 | public function enable(string $formId) |
|
172 | |||
173 | /** |
||
174 | * Disables the form. |
||
175 | * |
||
176 | * @param string $formId |
||
177 | * @return object |
||
178 | */ |
||
179 | 1 | public function disable(string $formId) |
|
196 | } |
||
197 |