File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 7
7
/**
8
8
* @method static bool canPromptTouchID()
9
9
* @method static bool promptTouchID(string $reason)
10
+ * @method static bool canEncrypt()
11
+ * @method static string encrypt(string $string)
12
+ * @method static string decrypt(string $string)
10
13
* @method static array printers()
11
14
* @method static void print(string $html, ?\Native\Laravel\DataObjects\Printer $printer = null)
12
15
* @method static string printToPDF(string $reason)
Original file line number Diff line number Diff line change @@ -22,6 +22,25 @@ public function promptTouchID(string $reason): bool
22
22
])->successful ();
23
23
}
24
24
25
+ public function canEncrypt (): bool
26
+ {
27
+ return $ this ->client ->get ('system/can-encrypt ' )->json ('result ' );
28
+ }
29
+
30
+ public function encrypt (string $ string ): ?string
31
+ {
32
+ return $ this ->client ->post ('system/encrypt ' , [
33
+ 'string ' => $ string ,
34
+ ])->json ('result ' );
35
+ }
36
+
37
+ public function decrypt (string $ string ): ?string
38
+ {
39
+ return $ this ->client ->post ('system/decrypt ' , [
40
+ 'string ' => $ string ,
41
+ ])->json ('result ' );
42
+ }
43
+
25
44
/**
26
45
* @return array<\Native\Laravel\DataObjects\Printer>
27
46
*/
You can’t perform that action at this time.
0 commit comments