@@ -106,31 +106,31 @@ public function upsertRegex(array $data): array
106106 }
107107
108108 /**
109- * Get a bounce regex rule by its hash .
109+ * Get a bounce regex rule by its id .
110110 *
111- * GET /api/v2/bounces/regex/{regexHash }
111+ * GET /api/v2/bounces/regex/{ruleId }
112112 *
113- * @param string $regexHash The regex hash
113+ * @param int $ruleId The regex id
114114 * @return array The regex data
115115 * @throws ApiException If an API error occurs
116116 */
117- public function getRegexByHash ( string $ regexHash ): array
117+ public function getOne ( int $ ruleId ): array
118118 {
119- return $ this ->client ->get ('bounces/regex/ ' . rawurlencode ( $ regexHash ) );
119+ return $ this ->client ->get ('bounces/regex/ ' . $ ruleId );
120120 }
121121
122122 /**
123- * Delete a bounce regex rule by its hash .
123+ * Delete a bounce regex rule by its id .
124124 *
125- * DELETE /api/v2/bounces/regex/{regexHash }
125+ * DELETE /api/v2/bounces/regex/{ruleId }
126126 *
127- * @param string $regexHash The regex hash
127+ * @param int $ruleId The regex id
128128 * @return array Empty response on success
129129 * @throws ApiException If an API error occurs
130130 */
131- public function deleteRegexByHash ( string $ regexHash ): array
131+ public function delete ( int $ ruleId ): array
132132 {
133- return $ this ->client ->delete ('bounces/regex/ ' . rawurlencode ( $ regexHash ) );
133+ return $ this ->client ->delete ('bounces/regex/ ' . $ ruleId );
134134 }
135135
136136 /**
0 commit comments