Releases: FacturAPI/facturapi-php
Releases · FacturAPI/facturapi-php
4.1.0
Added
- Organization team/access management methods:
listTeamAccess,retrieveTeamAccess,removeTeamAccesslistSentTeamInvites,inviteUserToTeam,cancelTeamInvitelistReceivedTeamInvites,respondTeamInvitelistTeamRoles,listTeamRoleTemplates,listTeamRoleOperationsretrieveTeamRole,createTeamRole,updateTeamRole,deleteTeamRole
Changed
organizations.checkDomainAvailability($query)is now the canonical method for domain checks.organizations.checkDomainIsAvailable(...)remains available as a deprecated alias for v4 compatibility.
4.0.0
🚨 Breaking Changes
- Impact: update required only if you use PHP < 8.2 or relied on the positional
apiVersionconstructor argument. - Bumped minimum supported PHP version to
>=8.2. - Simplified SDK constructor to a single optional
configparameter:apiVersion(defaults tov2)timeout(seconds)httpClient(PSR-18 client, advanced)
- Removed support for the positional
apiVersionconstructor argument.
Safe Update (No Migration Needed)
- You can update without code changes if:
- Your project already runs on PHP
>=8.2. - You instantiate the SDK as
new Facturapi($apiKey)(single API key argument). - If you use Composer, keep loading
vendor/autoload.phpas usual. - If you do not use Composer, load
src/Facturapi.phpdirectly.
- Your project already runs on PHP
Deprecations (Non-Breaking)
- Snake_case aliases remain functional in v4, but are deprecated and will be removed in v5.
Facturapi_Exceptionremains functional in v4 through a compatibility alias, but is deprecated and will be removed in v5.
Improvements
- Added camelCase method names for invoice/receipt/retention actions.
- Kept snake_case aliases for transition compatibility.
- Enabled strict TLS verification by default for HTTP requests.
Webhooks::validateSignature()now verifies locally by default when payload includesbody/payload,signature, andwebhookSecret, with automatic fallback to API validation.- Added
ComercioExteriorCatalogsto the mainFacturapiclient. - Standardized constructor argument names to camelCase.
- Standardized internal protected method names to camelCase.
- Renamed exception class to
FacturapiExceptionand keptFacturapi_Exceptionas a compatibility alias.
3.7.0
What changed
- Added
ComercioExteriorCatalogs::searchTariffFractionssupport for Comercio Exterior catalog queries. - Added deploy automation from
mainusing semver + release notes defined inVERSION.
3.6.0
What's Changed
- chore(catalogs): add methods for catalogs cartaporte by @raul-facturapi in #39
- chore(retentions): update cancel retentions method by @raul-facturapi in #41
Full Changelog: 3.5.0...3.6.0
v3.5.0
Customer Edit links
Support customer edit links
3.2.0
What's Changed
- fix(conditionalPut): add ternary in $body for encode json or send null by @raul-facturapi in #35
Full Changelog: 3.1.0...3.2.0
3.1.0
What's Changed
- chore(list_delete): add new api keys live methods by @raul-facturapi in #33
- Add validation for signature webhook responses by @raul-facturapi in #34
Full Changelog: 3.0.1...3.1.0
3.0.1
What's Changed
- fix(execute_post): accept and validate nullish body in execute post m… by @raul-facturapi in #32
- Fix to solve draft methods, now the function
execute_JSON_post_requestwill accept null as parameter
Full Changelog: 3.0.0...3.0.1
3.0.0
Added
- Add crud series method in org by @raul-facturapi in #28
Breaking changes
- Throw error object in unsuccesful responses by @raul-facturapi in #30:
Add exceptions for all responses methods (GET, POST, PUT, DEL) if range status is >= 400. Instead of validate an error with the fieldok=false, you'll be able to catch the exceptions withtry-catch. The object error is returned purely without destructuring as it was before with POST method.
Full Changelog: 2.7.1...3.0.0