Releases: comfino/sdk-for-magento2
Releases · comfino/sdk-for-magento2
Release list
1.0.0
Added
- Initial release of the Comfino SDK adapter layer for Magento 2.
MagentoHttpClientAdapter— PSR-18ClientInterfacewrapping Magento's native HTTP client with support for all HTTP methods and timeout escalation for automatic retries.MagentoCacheAdapter— PSR-6CacheItemPoolInterfaceandTaggableCacheItemPoolInterfacewrapping Magento's native cache with tag-based invalidation support (invalidateTag()/invalidateTags()).CacheItem— PSR-6CacheItemInterfaceandTaggableCacheItemInterfacewith per-item tag management.MagentoServerRequestConverter— Converts Magento request objects to PSR-7ServerRequestInterfacefor webhook processing.MagentoCartBuilder— Converts MagentoQuoteandOrderentities to ComfinoCartDTOs, including single-product carts for the widget / product-type-filter use case.MagentoCustomerBuilder— Extracts customer and shipping address data from MagentoOrderentities, with billing/shipping fallback logic for virtual orders.MagentoPlatformInfo—PlatformInfoInterfaceimplementation that reads shop name, Magento version, locale, currency, domain, and database version from Magento's native services.MagentoLanguageProvider—LanguageProviderInterfaceimplementation that returns a normalized ISO 639-1 language code from the current store locale.MagentoShopEnvironmentBuilder— Detects the active Magento frontend theme and edition, resolves the theme family, and assembles the shop environment payload for the Comfino frontend.Bootstrapinitializer for wiring all SDK services with Magento framework components via DI.
Changed
- Updated transitive dependencies:
php-api-client(addsGetCreditors,AllowedProductConfigDTO, and related request/response classes) andphp-sdk(addsSettingsManager::getCreditors(),SettingsManager::getAllowedProductsConfig(),AllowedProductsConfigBuilder,PaywallConfig/OrderFactoryoptionalallowedProductsConfigarguments). - Updated
MagentoCartBuilderTestto reflect the revisedAbstractCartBuildercontract: when shipping has no VAT,getDeliveryNetCost()now returns the gross value (notnull) andgetDeliveryTaxValue()returns0; for explicit 0% VAT products,getNetPrice()returns the gross price (notnull).
Fixed
MagentoHttpClientAdapternow forwards response headers (includingContent-Type) to the PSR-7 response object. Without this fix, the SDK's response deserializer could not detect JSON content and raisedResponseValidationErroron every API call.