File tree Expand file tree Collapse file tree 3 files changed +47
-1
lines changed
src/Gateways/Asaas/Resources/Pix Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 27
27
$ phpay
28
28
->pix ()
29
29
->destroy (ID_PIX_KEY );
30
+
31
+ $ phpay
32
+ ->pix ()
33
+ ->staticQrCode ($ staticQrCodeParams );
34
+
35
+ $ phpay
36
+ ->pix ()
37
+ ->destroyStaticQrCode ($ statiQrCodeId );
Original file line number Diff line number Diff line change @@ -42,4 +42,20 @@ public function getAll(): array;
42
42
* @return bool
43
43
*/
44
44
public function destroy (string $ id ): bool ;
45
+
46
+ /**
47
+ * static qr code
48
+ *
49
+ * @param array<mixed> $params
50
+ * @return array<mixed>
51
+ */
52
+ public function staticQrCode (array $ params ): array ;
53
+
54
+ /**
55
+ * destroy static qr code
56
+ *
57
+ * @param string $id
58
+ * @return bool
59
+ */
60
+ public function destroyStaticQrCode (string $ id ): bool ;
45
61
}
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ public function getAll(): array
88
88
$ params = [
89
89
'offset ' => 0 ,
90
90
'limit ' => 100 ,
91
- 'status ' => 'ACTIVE ' ,
92
91
];
93
92
}
94
93
@@ -105,4 +104,27 @@ public function destroy(string $id): bool
105
104
{
106
105
return $ this ->delete ("pix/addressKeys/ {$ id }" );
107
106
}
107
+
108
+ /**
109
+ * static qr code
110
+ *
111
+ * @param array<mixed> $params
112
+ * @return array<mixed>
113
+ * @see params in https://docs.asaas.com/reference/create-static-qrcode
114
+ */
115
+ public function staticQrCode (array $ params ): array
116
+ {
117
+ return $ this ->post ('pix/qrCodes/static ' , $ params );
118
+ }
119
+
120
+ /**
121
+ * destroy static qr code
122
+ *
123
+ * @param string $id
124
+ * @return bool
125
+ */
126
+ public function destroyStaticQrCode (string $ id ): bool
127
+ {
128
+ return $ this ->delete ("pix/qrCodes/static/ {$ id }" );
129
+ }
108
130
}
You can’t perform that action at this time.
0 commit comments