Skip to content

<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /changelog/Changelog.4.125.md for this page in Markdown format</div>

Home | Changelog

Version 4 ​

version 4.125 ​

  • [4.125.0] feat(rest/product): filter[priceDrop]=1|0 on GET /rest/product/product keeps the products with a genuine Omnibus price drop (or all the others), using the same rules as the verdict the storefront and the price-tracking graph display, so a headless client can offer a yes/no "Discount" facet (#876)
  • [4.125.0] fix(checkout): confirming or cancelling the same PENDING order twice at once no longer runs the side effects twice — the PENDING -> PAID and PENDING -> CANCELED transitions are now a single conditional write, and only the call whose write changed the order dispatches OrderPaid / OrderCanceled or restores stock. A confirm racing a gateway signal no longer sends a second confirmation email, fires the ERP webhook twice or decrements gift stock twice, and overlapping cancels no longer restore stock twice. A cancel whose stock release fails now rolls back and leaves the order PENDING instead of leaving it CANCELED with its stock never returned (#880)
  • [4.125.0] fix(price-tracking): the Omnibus price-drop verdict (GET /rest/product/price-tracking/graph, the storefront «Πτώση Τιμής» badge and the headless app) is now built on the real selling price instead of the newest tracked row, so a stale or stopped price-tracking feed can hide a price-drop claim but no longer invent one (#876)
  • [4.125.0] feat(rest/auth): POST /rest/auth/customer/logout and POST /rest/auth/admin/logout revoke the presented refresh token; idempotent, always 200, no access token needed (Advisable-com/ecommercen#790)
  • [4.125.0] fix(customer): the storefront change-password form no longer reports "password updated" when the write failed: it shows the generic "try again" message and the form again (Advisable-com/ecommercen#873)
  • [4.125.0] fix(customer): a password reset (REST reset-password and the storefront reset form) and a password change on the storefront account page now revoke every REST refresh token the customer holds, ending their other sessions (Advisable-com/ecommercen#790)
  • [4.125.0] fix(rest/checkout): promotional gifts are awarded as the WeCare storefront awards them. gift_user_choice_count is the number of DISTINCT pool products the customer receives: 0, or a count at or above the in-stock pool, awards the whole pool automatically; otherwise the customer must pick exactly that many distinct pool products, and any other selection (none, too few, too many, a duplicate, a product outside the in-stock pool) is refused with 422 gift_selection_invalid on POST /rest/checkout/place-order instead of being trimmed; when a collection order is also under the collection minimum, collection_below_minimum is reported first. Every awarded product is given at the EARNED count (earned 2 → 2 of each), capped so the units awarded never exceed the gift's remaining stock; a gift too low on stock to give each product one unit is not awarded or listed. POST /rest/checkout/totals quotes the same award and lists refused selections as invalidGiftSelections; GET /rest/cart gifts publishes selectCount, quantityPerProduct and autoAwards, and giftsNearMiss publishes selectCount (Advisable-com/ecommercen#761)
  • [4.125.0] fix(checkout/vivawallet): POST /rest/checkout/confirm-payment/{orderId} now counts Viva BitPay (42) and Payconiq (58) charges as payments. The #865 charge allow-list had missed both. They failed closed, so a paid order by either method stayed PENDING. Pay On Delivery (68) stays excluded on purpose: the money is not in at placement (#865)
  • [4.125.0] fix(domains): locale-scoped translation filters (filter[name.{lang}], filter[slug.{lang}] and every other translations key a ListRequest declares) now filter on all 19 list endpoints that used to answer 500 for them: product/promo, product/tag, product/tag-category, product/line, product/attribute, product/attribute-group, product/variation, product/variation-group, product/variation-value, product/badge, product/supplier, product/related-group, cms/offer, cms/offer-category, event/event, event/event-category, order/store, promotion/gift, transporter. BuildsFilterSpecifications::filterSpecification() now routes every translations filter through one shared Support\Repository\Specification\FilterByTranslation subquery, built from the repository's own translations relation, so a domain no longer needs its own specification class (Advisable-com/ecommercen#762)
  • [4.125.0] fix(domains): a read whose SQL the database rejects now throws a typed QueryFailedException that is logged with the driver's error and the statement (its literal values replaced by ?, so no email, token or id reaches the log), instead of dying in count_all_results() with Call to a member function num_rows() on bool. A rejected match() / get() no longer reads as "no rows" (an empty list, or a 404 on /item and /{id}) (Advisable-com/ecommercen#763)
  • [4.125.0] fix(eshop): a gift rule whose reward pool is empty is no longer shown as earned — a rule that never had any gift_choices rows slipped past Adv_gifts_model::filterApplicableGiftRules() (only a pool emptied by stock was dropped), so the cart announced a gift that checkout, which already skips an empty pool, never awarded. Rule 13 (cheapest required product free) is unchanged (#686)
  • [4.125.0] feat(rest/order): pbbExpiresAt on GET /rest/order/order (index, /item, /{id}) — the deadline of a Pay by Bank payment code, computed by the same rule the CancelIncompleteOrders job enforces (entry_datetime + PAY_BY_BANK/EXPIRATION, 24 h fallback), now one class, Advisable\Domains\Checkout\Payment\PayByBankExpiration, that the job delegates to (#870)
  • [4.125.0] fix(paybybank): every PayByBank\Config construction (modern place-order and polling, Factories::payByBank(), the legacy status job, admin order creation and order-model cancellation) takes its expiration from PayByBankExpiration::secondsFrom(), so the gateway's payment_code_life, the cancellation job and pbbExpiresAt share one validated value; the storefront's Pay by Bank success view and order-created mail still compute their hours from the raw setting (follow-up; client forks override those views) (#870)
  • [4.125.0] fix(checkout/vivawallet): POST /rest/checkout/confirm-payment/{orderId} now verifies a vivawallet order server-side by the order code stored at placement (Viva merchant GET /api/transactions/?ordercode=), so a paid order confirms without the client forwarding Viva's transaction id; the transactionId request field is removed. The order is confirmed only when a returned transaction names the stored order code, is completed (F), is a charge type and matches the order total. A missing MERCHANT_ID / API_KEY fails closed: vivawallet is not advertised by payment-methods, is refused by place-order, and confirm-payment answers confirmed: false (#865)
  • [4.125.0] fix(checkout): POST /rest/checkout/place-order refuses a payway with no registered adapter with 422 payway_not_available before anything is written, instead of writing the order and answering 400 (#865)
  • [4.125.0] fix(domains): translation updates no longer delete and re-insert _mui rows. In all 38 modern domains, WriteService::update() now upserts each sent language in place by (fk, lang): a sent language keeps its row id and only the sent fields change (an explicit null is written); a language not sent is kept; a new language is added as one row; duplicate languages in one payload are merged (later wins); translations: [] changes nothing. Update can no longer remove a language. (Advisable-com/ecommercen#857)
  • [4.125.0] feat(checkout): collection at a store on REST — place-order and totals take a storeId and write the order as the storefront's ORDER_ADDRESS_ESHOP (no courier, no shipping, blank shipping_*), under one CollectionPolicy that refuses a store with a courier, an unknown or inactive store, cash on delivery collected, pay-at-store without a store, and a cart under the merchant's minimum; the minimum is published on GET /rest/storefront-config (#853)
  • [4.125.0] fix(checkout): POST /rest/checkout/shipping no longer prices every courier at 0 for pay-at-store — collection is a storeId, never a courier (#853)
  • [4.125.0] fix(checkout): REST orders carry the storefront's initial sms_status, so a collection order gets its "ready for pickup" SMS (#853)
  • [4.125.0] fix(checkout): read a transporter's DELIVERY_OPTION_TYPE as the storefront does — no row or an empty value is home delivery only, and a SmartPoint carrier needs a pickup point only for 0/2 — so POST /rest/checkout/shipping stops demanding a locker for a carrier the merchant never configured for points (GTV2 on WeCare); DHL and ASAP always require their carrier data, which is not a pickup point (#852)
  • [4.125.0] fix(rest/product): variation group names (product_variations_mui) are now keyed by the variation's own group, not by the variation id. DELETE rest/product/variation/{id} no longer deletes any product_variations_mui rows (it used to delete the rows of the group whose id equalled the variation id), and POST rest/product/variation / POST rest/product/variation/{id} with translations now write the variation's own group name (they used to write the group whose id equalled the variation id) (Advisable-com/ecommercen#864)
  • [4.125.0] fix(mcp): the MCP connector now negotiates protocolVersion on initialize — a supported requested version (2024-11-05, 2025-03-26, 2025-06-18, 2025-11-25) is echoed back, anything else gets the latest (2025-11-25), instead of always answering 2025-11-25 (#861)
  • [4.125.0] feat(rest/product): the storefront's own "Top Sellers" on GET /rest/product/product — sort=sales, filter[topSeller] and an isTopSeller field, all from one definition of the ranking the storefront badges «Top Seller» (order lines per product in the tmp_shop_order_basket window); hits counts page views and is not that ranking (#854)
  • [4.125.0] feat(rest/customer): DELETE /rest/customer/me — a signed-in customer deletes their own account (password-confirmed, throttled); required by the app stores for any app that lets people create an account (Advisable-com/ecommercen#855)
  • [4.125.0] fix(customer): deleting or sanitising a customer now erases their personal data everywhere — every entry point (storefront "delete my account", admin sanitise, the guest-sanitising job, REST) runs one complete erasure; the legacy sanitiser left reviews, marketing consents, contact messages, the message log, segment memberships, marketplace and gift-card buyer data, REST sessions, audit payloads and postal/region/county data behind (Advisable-com/ecommercen#855)
  • [4.125.0] fix(audit): request bodies no longer store secrets — passwords, tokens and card codes are masked before they reach user_audit_logs.params, and a one-time patcher masks the rows already written (Advisable-com/ecommercen#855)

Notes

  • [4.125.0] REQUIRES php migrator.php migrate:
    • 20261003120000_create_product_price_drop.php — creates product_price_drop, the persisted Omnibus price-drop verdict behind filter[priceDrop] (#876)
    • 20260929120000_redact_audit_log_secrets.php — runs Patches\RedactAuditLogSecrets, which masks secret-looking keys in existing user_audit_logs.params rows, a page at a time (#855)
  • [4.125.0] Check for overrides: Advisable\Domains\Product\PriceTracking\Jobs\TrackPrices::__construct() gains required PriceDropRefresher and CurrentPrice arguments, and GraphService::productPricesBulk() gains an optional second argument; a fork that extends or re-declares either, or the Product container.php PriceTracking block, must follow.
  • [4.125.0] Check for overrides: the 3600-second freshness window is the constant PriceDropStore::FRESH_FOR_SECONDS, chosen for the modern TrackPrices job running every 5 minutes. A fork that schedules TrackPrices less often than hourly (for example every 6 hours) gets an EMPTY filter[priceDrop]=1 most of the time, and =0 returns the whole catalogue; raise the constant (override PriceDropStore and the FilterByPriceDrop argument) or schedule the job at least hourly.
  • [4.125.0] Check for overrides: the filter only works where the MODERN TrackPrices job is scheduled. Forks still on the legacy AdvTrackPrices job never fill product_price_drop, so filter[priceDrop]=1 returns nothing and =0 returns everything until they move to the modern job.
  • [4.125.0] Check for overrides: TrackPrices now pages shop_product with an explicit ORDER BY id ASC (LIMIT/OFFSET needs a stable order), which changes the recording loop's query; a fork overriding the job's paging must keep a stable order.
  • [4.125.0] UI Update: the stored verdict is computed with the product's default VAT rate and no viewer context, so on forks with enableOrderVatManipulation the filter can list a product whose badge is hidden for a particular viewer.
  • [4.125.0] UI Update: send filter[priceDrop]=1 for the discounted set and =0 for the rest; read pagination.total for the facet count (it composes with the other filters). The set is empty right after deploy until the price-tracking job has run once (within 5 minutes), and empties if that job stops for an hour.
  • [4.125.0] UI Update: REST contract note 1.105. POST /rest/checkout/confirm-payment/{orderId} and POST /rest/checkout/cancel-payment/{orderId} answer a call that lost a race to another confirmation or cancellation with the same shape they already use for an order that was settled before the call: confirmed: false with reason: already_paid (or invalid_status), and canceled: false with reason: already_canceled (or invalid_status). Previously the loser answered confirmed: true / canceled: true. A client that treats status: PAID (or CANCELED) in the response as the outcome needs no change; one that reads confirmed / canceled as "I did it" should read status instead.
  • [4.125.0] Check for overrides: PaymentConfirmationService::confirmPayment() and cancelPayment() now return Advisable\Domains\Checkout\PaymentTransition (Applied, AlreadyApplied, Rejected) instead of bool; isSettled() is true for the first two and matches the old true. A fork that overrides either method, overrides the controller actions Rest\Checkout\Controllers\Checkout::confirmPayment() / cancelPayment() or Rest\Order\Controllers\Order::cancel() (which now compare the result with PaymentTransition::Applied / AlreadyApplied / Rejected instead of using it as a bool), or calls the service methods and tests the result as a bool (if ($service->confirmPayment(...)) is now always truthy), must adopt the enum. Order\Order\WriteService gains transitionStatus() and transactional(), and Order\Order\Repository\WriteRepository gains transitionStatus(); a fork that replaces either class through a DI alias must provide them. The PaymentConfirmationService constructor is unchanged.
  • [4.125.0] Check for overrides: Advisable\Domains\Product\PriceTracking\GraphService::__construct() gains required PriceDropVerdictCalculator and CurrentPrice arguments, and its protected methods (productPricesFromChanges, loadChanges, the timeline and reference-price helpers) moved to PriceDropVerdictCalculator. A fork that extends or re-declares GraphService, or the Product container.php PriceTracking block, must follow.
  • [4.125.0] UI Update: shouldDisplay and discountPass are now false for a product whose newest tracked price differs from its real selling price, and discountPass requires the reference price to be strictly above the real price; saveValue is measured against the real price and is STILL returned when the claim is hidden, so a client must show a saving or a price-drop badge only when discountPass (and shouldDisplay) is true, never on the presence of saveValue. The response shape is unchanged. A storefront that rendered a claim from the newest tracked row will stop doing so for those products, which is the intended fix.
  • [4.125.0] UI Update: REST contract note 1.103. New routes POST /rest/auth/customer/logout and POST /rest/auth/admin/logout (and their locale twins), body { "refresh_token": "…" }, response always 200 { "message": "Logged out." } — also for an unknown, already-revoked, malformed or missing token; 500 only on a real database failure. A client should call it with its stored refresh token when the user signs out, and may retry it freely. An access token already issued stays valid until it expires; discard it locally.
  • [4.125.0] Behaviour change: a password reset, or a password change on the storefront account page, ends the customer's REST sessions — their refresh tokens are deleted, so an app or headless storefront is signed out when its access token expires (at most JWT_ACCESS_TOKEN_EXPIRY, 1 hour by default) and the customer signs in again with the new password. The revocation runs before the password write: if it fails, the password is not changed (REST reset: 500, the link stays valid; storefront forms: a generic "try again" message with the form again). A failed password write is reported the same way instead of as success, and a reset link consumed between the check and the write now gets the invalid-link answer (REST 422 {errors: {token: "Invalid token."&#125;&#125;; storefront: the invalid-link message) instead of "Password updated.". POST /rest/customer/me/password is unchanged and does not revoke: the customer holds a single refresh token, and it is the caller's.
  • [4.125.0] Check for overrides: Adv_customer::update_my_password() and setNewPasswordForm() now revoke REST sessions before the password write and show customer.password.recover.alert.error when that fails (new protected helpers revokeRestSessionsBeforePasswordWrite() / reportPasswordWriteFailure()); a client controller overriding either must do the same. Adv_customer_model::resetPassword() now reads the customer by the reset token, calls the new public revokeRestSessions() (which throws RuntimeException on a DB error) and only then writes the password; a client Customer_model overriding resetPassword() must revoke first itself to keep the guarantee. Advisable\Rest\Auth\RefreshTokenModel gained revoke(). update_my_password() now writes through the new Adv_customer_model::updatePassword() (throws RuntimeException on a driver error; a zero-row write is not a failure) instead of update_customer(); an override of the action must use it, or check the write itself, to keep the failure message. A fork whose application/config/rest_routes.php diverges from its upstream merge base must add the four logout routes by hand (a fork whose copy is unmodified gets them from the 3-way merge): POST rest/auth/customer/logout and POST rest/auth/admin/logout, plus their (\w{2})/ locale twins, otherwise logout answers 404 after the upstream merge.
  • [4.125.0] Not in scope: refresh-token rotation, hashing refresh tokens at rest (with an index on the lookup column) and multi-device sessions are follow-ups on #790; refresh is unchanged.
  • [4.125.0] UI Update: REST contract note 1.102. BEHAVIOUR CHANGE: before this, REST capped the TOTAL gift units at the earned count, silently dropped picks beyond it, and awarded nothing for a multi-product pool without a selection. A client that posts one selectedGifts entry per product with qty = earned units, or relies on extra picks being dropped, must now send exactly selectCount distinct products per gift (render selectCount, not giftUserChoiceCount); qty is ignored except that qty &lt;= 0 withdraws the entry. Handle the new 422 code. DEPLOY ORDER: release the client build that reads selectCount first, deploy the backend the same day, and raise the APP_UPDATE minimum version so builds that still cap picks at earnedCount are retired. This is BREAKING for those builds. The OpenAPI JSON is regenerated at the release cut.
  • [4.125.0] Stock: each awarded product is a basket row, and its quantity is the earned count CAPPED so that products awarded × quantity never exceeds gifts.remaining (GiftChoicePolicy::quantityPerProduct() = min(earned, intdiv(remaining, N)), N = the whole in-stock pool when no choice is needed, else the number of picks; unlimited when remaining is NULL). So the award fits gifts.remaining at placement and the paid-order decrement (DecrementGiftStockOnPaidListener → Gift\Repository\WriteRepository::decrementRemaining(), guarded remaining >= units) can take it, and a limited promotion keeps counting down. A concurrent online order can still drain remaining before the paid confirmation (pre-existing, #203/#688); that fails in the customer's favour. A gift whose stock cannot give each product one unit is treated as EXHAUSTED: not awarded by /place-order or /totals, not listed in GET /rest/cart gifts, and never a gift_selection_invalid refusal (no selection could fix it). The same cap governs the cart, the quote and the order. LEGACY DIVERGENCE: the rendered storefront is unchanged — it caps only the earned count at remaining and gives it per posted product, so there units can exceed remaining and updateCounter() drives it negative; REST now awards fewer units than the storefront whenever stock is that low.
  • [4.125.0] Check for overrides: Adv_gifts_model::getGiftForProductsInCart() now also returns gift_user_choice_count and remaining per gift. A fork overriding it without calling the parent loses those keys, and REST then treats every such gift as count 0 — the whole pool — with UNLIMITED stock (no cap), which can over-issue a limited gift. GiftMatcher::match() and PlaceOrderData::$selectedGifts / normalizeSelectedGifts() changed shape from [giftId => [productId => qty]] to [giftId => [productId, ...]], and GiftOutcome gained a third constructor argument (selectionViolations, defaulted).
  • [4.125.0] Check for overrides (views): WeCare's checkoutProcessing.php posts giftCountToGive per pool product, which is what REST now does. Upstream's default main (and default) view posts 1 per product whenever the awarded pool holds more than one product (the earned count only for a single-product pool), so a fork on the upstream view keeps awarding 1 each on the rendered storefront while REST awards the earned count: the two channels diverge for multi-product awards with an earned count above 1.
  • [4.125.0] Check for overrides: Advisable\Rest\Checkout\Controllers\Checkout::VIVA_CHARGE_TRANSACTION_TYPES gained 42 and 58. A fork that copies the list must add both.
  • [4.125.0] UI Update: REST contract note 1.101. The 19 endpoints above now return only the rows whose translation matches, where they used to answer 500. Exact keys match exactly, Partial keys match a substring with % and _ taken literally, and a {lang} key matches that locale only. product/related-group's filter[name] has no locale, so it matches in any locale. A query the database rejects is still a 500. On the generic list/show/item actions it now carries their {"success":false,"message":"Error retrieving entit…: Database &lt;operation> query failed."} body. The redacted SQL and the driver error go to the log only, never into the response.
  • [4.125.0] event/category: that route was reported as 404. It is really published as rest/event/event-category, which had the same 500 and is fixed here.
  • [4.125.0] Check for overrides: there are four additions and no signature changes. The shared FilterByTranslation handles Exact and Partial only and throws \LogicException for any other filter type, and a new Support\Repository\SqlRedactor redacts the logged SQL. The trait gains translationFilterSpecification(), BaseRepository gains relationLocalKey() and logQueryFailure(), and Product\Variation\Repository\Repository overrides relationLocalKey() to anchor translations on group_id. A fork Service that overrides filterSpecification() and does not handle translations itself should delegate to translationFilterSpecification() instead of operatorFilterSpecification() for those filters. A fork repository that keys a translations relation on a column other than its primary key, the way Variation does, must override relationLocalKey().
  • [4.125.0] Per-domain FilterByTranslation classes are kept. The 19 existing domain classes and their Service overrides are unchanged, and client forks copy and reference them.
  • [4.125.0] UI Update: REST contract note 1.100. The GET /rest/cart gifts block no longer lists a non-rule-13 gift rule with an empty reward pool, whether the pool was never filled or was emptied by stock. The legacy storefront cart's gifts payload (AdvCartResource::getGiftRules()) and the admin order editor's gift-rule list change the same way. What an order is awarded does not change. Headless clients that already filter out rules with an empty reward pool themselves now have a redundant filter; it is harmless and can be removed.
  • [4.125.0] Check for overrides: a fork overriding Adv_gifts_model::filterApplicableGiftRules(), or copying its old isset($availableGiftRule->choices[$productReqOptionType]) && count(...) &lt; 1 guard (the isset(...choices[1]) form) elsewhere, must adopt the new predicate, count($availableGiftRule->choices[$productReqOptionType] ?? []) &lt; 1, which also drops a rule with no gift_choices rows (no choices key at all); otherwise that rule is still shown as earned.
  • [4.125.0] Behaviour change: an unset, empty or non-numeric PAY_BY_BANK/EXPIRATION now sends payment_code_life=24 (hours) to the Pay by Bank gateway instead of 0 on the REST place-order path — and on the legacy paths (storefront checkout via Factories::payByBank(), the admin order-create hook, order-model cancellation, PayByBankGetStatus, and the gateway cancel inside CancelIncompleteOrders) it no longer throws a TypeError out of PayByBank\Config's int constructor. A valid configured value sends exactly the same hours as before (seconds rounded up to whole hours, unchanged). Unusable values are not only unset, empty or non-numeric ones: free text such as "3 hours" used to be cast to (int) 3, so the REST place-order and polling paths sent payment_code_life=1, and now sends 24; zero and negative values used to send 0 and now send 24 as well (the rest_api_versions entry says "non-positive").
  • [4.125.0] Check for overrides: a fork overriding getPayByBankSettings(), AdvFactories::payByBank(), AdvPayByBankGetStatus::payByBankFactory(), Adv_orders_admin::createAdminPayByBankOrder() or the Adv_order_model PayByBank cancel block, and building PayByBank\Config itself, should pass PayByBankExpiration::secondsFrom(&lt;raw value>) as the expiration to stay aligned.
  • [4.125.0] UI Update: headless clients show a Pay by Bank order's payment-code deadline from pbbExpiresAt — ISO 8601 with offset (e.g. 2026-09-30T14:05:00+03:00), authenticated-only like pbbPaymentCode, null unless the order is paybybank with a code issued, and present whatever the status. Read the deadline from it rather than re-deriving it from entryDatetime: the window is the deployment's PAY_BY_BANK/EXPIRATION setting, which clients cannot see.
  • [4.125.0] Check for overrides: Advisable\Rest\Order\Controllers\Order::__construct() gains a required PayByBankExpiration $payByBankExpiration argument after TrackingUrlResolver $trackingUrlResolver (wired by name in src/Rest/Order/container.php) — a fork that redeclares the constructor or its container definition must pass it. AdvCancelIncompleteOrders::payByBankExpirationSeconds() keeps its signature and is still what cancelPendingPayByBank() applies, so an override of it still wins; it now delegates to a new protected payByBankExpiration() factory, and orderEntryDate() parses through Advisable\Domains\Order\Order\EntryDatetime::parse() (same semantics, same log line).
  • [4.125.0] Check for overrides: Advisable\Rest\Checkout\Controllers\Checkout — gained protected vivaOrderTransactions(Config): OrderTransactions (a test seam); the private verifyWithGateway() and verifyVivaWalletPayment() lost their transaction-id parameter, and gatewayConfirms(), transactionBelongsToOrderCode() and amountConfirms() were removed in favour of a settlement check over Viva's transaction list. A fork that overrides Checkout, or copies those private methods, must reconcile with the new verification. confirmPayment() no longer reads the request body.
  • [4.125.0] Check for overrides: Advisable\VivaWallet\Config — $recurringUrl renamed to $transactionsUrl (same values) and hasMerchantCredentials() added; isConfigured() is unchanged. Any fork code reading $recurringUrl must switch to $transactionsUrl.
  • [4.125.0] Check for overrides: Advisable\Domains\Checkout\PlaceOrderService::placeOrder() gate 0 now also refuses a payway with no registered adapter (422 payway_not_available, before any write), and PaymentInitializerFactory::registerVivaWallet() additionally requires hasMerchantCredentials(). A fork that overrides either must carry the new checks.
  • [4.125.0] UI Update: REST contract change for headless storefronts. confirm-payment no longer accepts transactionId / transaction_id; a client that still sends it is ignored (same result as one that does not), so the Viva t return-URL parameter no longer needs to be forwarded. place-order answers 422 payway_not_available (not 400) for a payway with no registered adapter.
  • [4.125.0] Deployment action — fail-closed, not backward compatible by default. A deployment that upgrades without VIVAWALLET.MERCHANT_ID and VIVAWALLET.API_KEY set registers no vivawallet adapter for the external channel: vivawallet silently disappears from GET /rest/checkout/payment-methods, place-order refuses it with 422 payway_not_available, and confirm-payment answers confirmed: false — nothing is logged, it is simply a missing payway. To restore it, save the Viva merchant id and API key in admin under Payment settings → Viva Wallet (Merchant Id, Api key) — the same pair the Viva webhook verification already uses. There is no migration to run. The legacy storefront Viva path is unchanged.
  • [4.125.0] Why: delete + re-insert re-keyed every translation row on each update (breaking anything keyed on _mui.id, e.g. client id-keyed bridges — see #863) and deleted omitted languages and columns.
  • [4.125.0] Side fix: a REST update by a non-ADVISABLE caller no longer blanks translation slug / url / redirect_url (field protection strips them before the write).
  • [4.125.0] Side fix: an exception inside a write service's transaction now rolls back explicitly (previously a long-lived process such as the MCP server or a CLI job could keep a partial write).
  • [4.125.0] Data: existing duplicate rows and already-damaged data are NOT repaired (#863 for the bridge; #698 for UNIQUE(fk, lang)).
  • [4.125.0] Check for overrides: MuiWriteRepository::replaceForEntity() is REMOVED in all 38 domains, replaced by upsertForEntity(int|string $entityId, array $translations, array $insertRows = []) ($translations = present-only rows; $insertRows = the full toArray() rows used when a language is new, so a language added via update is stored exactly as create would store it). All 38 …\Repository\MuiWriteRepository classes now extend the new abstract Advisable\Domains\Support\Repository\BaseMuiWriteRepository (properties $table, $foreignKey; insertForEntity / deleteForEntity signatures are now int|string). Every …\MuiWriteData now uses Advisable\Domains\Support\Data\TracksPresentColumns and must declare columnAliases(). WriteService::parseMuiData() gained a bool $presentOnly = false parameter. Each WriteService also gained a private parseMuiInsertRows() (private; context only, for forks that copy WriteService bodies). Advisable\Domains\Support\Repository\BaseWriteRepository::transactional() now catches any Throwable, calls CI3 trans_rollback() and rethrows (success path unchanged) — a fork overriding transactional() or relying on an exception leaving the transaction open must re-check. A fork class extending any of these, or a fork DTO subclass, must be reconciled. Fork COPIES of integration tests: test_update_replaces_translations was renamed test_update_upserts_translations (now in ALL 38 domains) and test_round_trip now expects the unsent language to survive everywhere. Fork checkouts carrying copies of tests/Integration/Domains/** (Evaspharmacy, Evripidis, FastpassAdmin, Joypharmacy, Pharm16, SeajetsAdmin, Smile, Wecare; measured 2026-09-30) hold them byte-identical to develop, so the upstream merge brings the rewritten tests with no conflict; only a fork that has edited its copy of test_update_replaces_translations / test_round_trip needs to reconcile it. Smile: custom/Translation/ProductTranslationWriter.php still works unchanged (it sends complete rows), but its docblock (:17-24) still describes delete + re-insert and should be corrected on the merge.
  • [4.125.0] UI Update: REST contract note 1.97 — behaviour change on every write endpoint accepting translations; the OpenAPI descriptions are updated (regenerated at the release cut). A client that relied on omission or [] to delete a language has no replacement via update.
  • [4.125.0] Deployment note / UI Update — BREAKING for headless clients; ship the client release FIRST. After this deploys, a client that still treats paid_at_store as a payway on a courier order breaks at the QUOTE step, not only at the charge: POST /rest/checkout/totals and POST /rest/checkout/place-order answer 422 payway_requires_store for paid_at_store without a storeId, and POST /rest/checkout/shipping now prices every courier normally for paid_at_store (the #568 AC5 zeroing is reversed), so a client that read a €0 row there as "pay at the shop" now shows a courier price. Known affected: the WeCare app up to and including 1.4.0. Every client must send storeId (a store from GET /rest/order/store?filter[active]=1, not a transportId) for paid_at_store — and should gate pay-at-store / collection on collection.minimumCartTotal from GET /rest/storefront-config — in a release that is live before this ships. New 422 error.codes on place-order and totals: store_and_transporter, store_not_available, payway_not_allowed_for_collection, payway_requires_store, collection_below_minimum (with error.minimumCartTotal / error.cartTotal). No migration: store_id and sms_status already exist on shop_order, and the minimum is the existing registry key the admin already edits.
  • [4.125.0] Behaviour change — REST orders can now be texted. shop_order.sms_status is now written on EVERY REST order the storefront's setUpAdminOrderDataSmsValid() would set it on — not only collection orders: a REST courier order whose payway is listed in registry SMS / FOR_PAYWAY now gets 1 (SMS-capable phone) or 0, where before this change every REST order was NULL. The order-SMS jobs gate on this column (AdvSendEmailAndSMSBasedOnSentStatus and AdvSendEmailAndSMSBasedOnFromStoreStatus send the SMS only when sms_status == 1), so a merchant with FOR_PAYWAY configured starts texting REST customers on those jobs' next run after deploy — the same messages its storefront orders already get. This is deliberate legacy parity. Check the SMS provider credentials and the FOR_PAYWAY selection on each deployment (staging especially) before deploying; an empty FOR_PAYWAY keeps REST courier orders NULL, while collection orders are always evaluated, as on the storefront.
  • [4.125.0] Check for overrides: Advisable\Domains\Checkout\PlaceOrderService::__construct() gains two REQUIRED arguments, CollectionPolicy $collectionPolicy and OrderSmsStatus $orderSmsStatus, after CashOnDeliveryPolicy $cashOnDeliveryPolicy and before ?Registry $registry; a fork that redeclares the constructor or instantiates the service by hand must pass them (the container autowires both). Advisable\Rest\Checkout\Controllers\Checkout::__construct() gains a trailing required CollectionPolicy $collectionPolicy. StorefrontConfigProvider::__construct() gains a trailing required CollectionConfigResolver $collection. ShippingCalculator drops its paid_at_store zeroing. In PlaceOrderService::placeOrder() the guest customer is now created after the cart's items and totals are read (step 2 moved below step 4), so a refusal that needs the cart still leaves no guest row. A fork that overrides placeOrder() or builds its own shop_order row does not get the new store_id / sms_status columns.
  • [4.125.0] Check for overrides: new Advisable\Domains\Checkout\DeliveryOptionType holds the setting's vocabulary (SETTING_KEY, ALL, HOME_ONLY, PICKUP_ONLY, DEFAULT) and the storefront's reading of it. Advisable\Domains\Checkout\CashOnDeliveryPolicy loses the public constants SETTING_DELIVERY_OPTION_TYPE and DELIVERY_OPTION_TYPE_SMART_POINT_ONLY — use DeliveryOptionType::SETTING_KEY / DeliveryOptionType::PICKUP_ONLY.
  • [4.125.0] UI Update: POST /rest/checkout/shipping rows — deliveryOptionType is the PICKUP-POINT policy only and reads "1" for an unconfigured transporter (was "0"); requiresCarrierData is the one signal to collect carrier data (a pickup point, a DHL product code, an ASAP service) and is now always true for DHL and ASAP. A client showing a locker picker whenever requiresCarrierData is true stops showing one for an unconfigured SmartPoint carrier. codAllowed, place-order and totals are unchanged.
  • [4.125.0] Cause: product_variations_mui holds a variation group's name keyed by group_id. The modern Variation\WriteService used the variation id as that key, so updating or deleting variation N rewrote or deleted group N's name.
  • [4.125.0] Data note: rows already misplaced on live installs are NOT repaired by this change.
  • [4.125.0] Check for overrides: no public or protected signatures changed; the only addition is a new private method resolveGroupId() on Advisable\Domains\Product\Variation\WriteService, so there is no compile impact. A fork overriding Variation\WriteService::delete() / create() / update(), or calling Variation\Repository\MuiWriteRepository::insertForEntity() / replaceForEntity() / deleteForEntity() with a variation id, should re-check it: that argument is the variation GROUP id.
  • [4.125.0] UI Update: REST contract note 1.94. Variation.translations is now documented in OpenAPI as the group's name, shared by all variations in the group. Behaviour changes are as in the entry above; the OpenAPI JSON is regenerated at the release cut.
  • [4.125.0] Check for overrides: Advisable\Mcp\Server\McpServerFactory::create() — gained a trailing ?\Mcp\Schema\Enum\ProtocolVersion $protocolVersion = null parameter. A client Custom\ subclass overriding create() must add it and call setProtocolVersion() or delegate to parent::create(); otherwise PHP fatals on the incompatible declaration, and the override would also skip negotiation.
  • [4.125.0] Check for overrides: Advisable\Rest\Product\Controllers\Product::__construct() gains a required TopSellers $topSellers argument after WriteService $writeService (wired by name in src/Rest/Product/container.php) — a fork that redeclares the constructor or its container definition must pass it. Advisable\Rest\Support\Controllers\HandlesRestfulActions gains a protected no-op hook, prepareForOutput(array $entities): void, called from index() and view() — a fork controller that overrides either wholesale bypasses it.
  • [4.125.0] UI Update: headless clients list best sellers with filter[topSeller]=1&sort=-sales,id — the storefront's badged set (at most 500, fewer when fewer products sold) with pagination.total as its real size; every product-endpoint row carries isTopSeller for a «Top Seller» badge (products embedded in other resources do not). Everything reads the window cronjob updateTempOrderBasketTable builds: before it has run the set is empty and the sort is a no-op, exactly as the storefront shows no best sellers then.
  • [4.125.0] What erasure does, and why — Advisable\Domains\Customer\Customer\Erasure\CustomerErasure, one step per data set, one transaction, fails loud (ErasureFailed) and nothing is reported deleted:
    • DELETED: product reviews (the product's stored rating is recomputed), the review-request log, wish-list, tags/campaigns, segment memberships, SMS-marketing consents, contact messages, the message log, the REST cart, REST refresh tokens, waiting-list requests, blog comments by the customer's address, staff notes about the customer and their orders.
    • KEPT, every personal field cleared: orders, gift-card orders, marketplace orders and Skroutz invoice details (tax records; the billing/shipping country is kept for VAT), and the customer row itself (flagged is_sanitized, unusable password, access revoked).
    • KEPT for security, identity and payload cleared: the customer's REST_CUSTOMER audit rows.
    • Personal columns become NULL (NOT NULL ones ''), the address a unique undeliverable placeholder — no longer random UUIDs, which did not fit the 20-character phone columns.
  • [4.125.0] Completeness is enforced: CustomerErasureCoverageTest (Database suite) reads the migrated schema and fails when a customer-linked column (a table with customer_id / user_id / mail / email) holds a personal-looking column that no erasure step claims and ErasureCoverage::RETAINED does not justify. A new table holding customer data must decide what account deletion does to it.
  • [4.125.0] Check for overrides: Adv_sanitize_model lost its protected helpers (userSanitize, orderSanitize, wishListSanitize, reviewsSanitize, customersTagsSanitize, waitingListSanitize) and sanitizeAll() now delegates to CustomerErasure and throws ErasureFailed on failure. A client Sanitize_model overriding any helper must move that behaviour into an erasure step (rebind CustomerErasure's $steps in the client container). A client-only table or column that holds customer data belongs in a client step or in the retained list.
  • [4.125.0] Check for overrides: Advisable\Rest\Customer\Controllers\Customer::__construct() gained AccountDeletionService $accountDeletion and LoginThrottle $throttle, wired in src/Rest/Customer/container.php.
  • [4.125.0] Not in scope: the storefront route is still a GET with no confirmation (#846); it now erases completely, but its HTTP method and confirmation are a separate change.
  • [4.125.0] UI Update: REST contract note 1.92. New route DELETE /rest/customer/me (and its locale twin), customer auth, body { "password": "…" }: 200 {success, message} on deletion; 400 without a password; 401 on a wrong one; 429 with Retry-After after repeated failures (the sign-in throttle's limits, own realm); 404 no such customer; 500 when the erasure did not complete (rolled back, nothing deleted). The client must discard its tokens on 200 — an access token already issued stays valid until it expires, but nothing can renew it.