From 6b94d0148c005e4f25e418d9eb6ad92cc1417602 Mon Sep 17 00:00:00 2001 From: "raul@facturapi.io" Date: Thu, 5 Mar 2026 12:33:09 -0600 Subject: [PATCH] chore(catalogComercioExt): add new method for comercio exterior catalog --- src/Resources/ComercioExteriorCatalogs.php | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/Resources/ComercioExteriorCatalogs.php diff --git a/src/Resources/ComercioExteriorCatalogs.php b/src/Resources/ComercioExteriorCatalogs.php new file mode 100644 index 0000000..37c524e --- /dev/null +++ b/src/Resources/ComercioExteriorCatalogs.php @@ -0,0 +1,30 @@ + "0101", "page" => 0, "limit" => 10]) + * @return JSON search result + * @throws Facturapi_Exception + */ + public function searchTariffFractions($params = null) + { + try { + return json_decode( + $this->execute_get_request( + $this->get_request_url("tariff-fractions") . $this->array_to_params($params) + ) + ); + } catch (Facturapi_Exception $e) { + throw new Facturapi_Exception('Unable to search tariff fractions: ' . $e->getMessage()); + } + } +}