Browse code

Added README.md appinfo/info.xml appinfo/signature.json lib/Controller/AuthorApiController.php and the providers directory

DoubleBastionAdmin authored on 20/08/2022 16:33:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,52 @@
1
+<?php
2
+
3
+namespace Telnyx;
4
+
5
+/**
6
+ * Class PortingOrder
7
+ *
8
+ * @package Telnyx
9
+ */
10
+class PortingOrder extends ApiResource
11
+{
12
+    const OBJECT_NAME = "porting_order";
13
+
14
+    use ApiOperations\All;
15
+    use ApiOperations\Create;
16
+    use ApiOperations\Retrieve;
17
+    use ApiOperations\Update;
18
+    use ApiOperations\Delete;
19
+
20
+
21
+    /**
22
+     * Download a porting order loa template
23
+     *
24
+     * @param array|null $params
25
+     * @param array|string|null $options
26
+     *
27
+     * @return
28
+     */
29
+    public function loa_template($params = null, $options = null)
30
+    {
31
+        $url = $this->instanceUrl() . '/loa_template';
32
+        list($response, $opts) = $this->_request('get', $url, $params, $options);
33
+        $this->refreshFrom($response, $opts);
34
+        return $this;
35
+    }
36
+
37
+    /**
38
+     * Confirms the porting order is ready to be actioned
39
+     *
40
+     * @param array|null $params
41
+     * @param array|string|null $options
42
+     *
43
+     * @return
44
+     */
45
+    public function confirm($params = null, $options = null)
46
+    {
47
+        $url = $this->instanceUrl() . '/actions/confirm';
48
+        list($response, $opts) = $this->_request('post', $url, $params, $options);
49
+        $this->refreshFrom($response, $opts);
50
+        return $this;
51
+    }
52
+}