From cff74a35befc9009af08c3015ce38a089aee5269 Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 08:30:41 +0100 Subject: [PATCH 1/8] Clean up CHANGELOG and UPGRADE files --- CHANGELOG-1.0.md | 179 ------------------- CHANGELOG-1.1.md | 36 ---- CHANGELOG-1.2.md | 16 -- CHANGELOG-1.3.md | 21 --- CHANGELOG-1.4.md | 14 -- CHANGELOG-1.5.md | 12 -- UPGRADE-1.0.md | 442 ----------------------------------------------- UPGRADE-1.1.md | 13 -- UPGRADE-1.2.md | 5 - UPGRADE-1.3.md | 32 ---- UPGRADE-1.4.md | 212 ----------------------- UPGRADE-1.5.md | 25 --- UPGRADE-1.6.md | 106 ------------ 13 files changed, 1113 deletions(-) delete mode 100644 CHANGELOG-1.0.md delete mode 100644 CHANGELOG-1.1.md delete mode 100644 CHANGELOG-1.2.md delete mode 100644 CHANGELOG-1.3.md delete mode 100644 CHANGELOG-1.4.md delete mode 100644 CHANGELOG-1.5.md delete mode 100644 UPGRADE-1.0.md delete mode 100644 UPGRADE-1.1.md delete mode 100644 UPGRADE-1.2.md delete mode 100644 UPGRADE-1.3.md delete mode 100644 UPGRADE-1.4.md delete mode 100644 UPGRADE-1.5.md delete mode 100644 UPGRADE-1.6.md diff --git a/CHANGELOG-1.0.md b/CHANGELOG-1.0.md deleted file mode 100644 index 088b7134..00000000 --- a/CHANGELOG-1.0.md +++ /dev/null @@ -1,179 +0,0 @@ -# CHANGELOG - -### v1.0.2 (2022-01-25) - -- [#330](https://github.com/Sylius/RefundPlugin/issues/330) Use PHP 7.4 syntax ([@GSadee](https://github.com/GSadee)) -- [#333](https://github.com/Sylius/RefundPlugin/issues/333) [Maintenance] Change names of CHANGELOG and UPGRADE files for v1.0 ([@GSadee](https://github.com/GSadee)) -- [#336](https://github.com/Sylius/RefundPlugin/issues/336) Github templates ([@Zales0123](https://github.com/Zales0123)) -- [#343](https://github.com/Sylius/RefundPlugin/issues/343) Resolve added to parameter to make usage of proper path possible ([@TheMilek](https://github.com/TheMilek)) - -### v1.0.1 (2021-07-27) - -- [#328](https://github.com/Sylius/RefundPlugin/issues/328) fix for `doctrine:schema:update` ([@Przemysław eRIZ Pawliczuk](https://github.com/er1z)), ([@Zales0123](https://github.com/Zales0123)) - -### v1.0.0 (2021-07-14) - -- [#306](https://github.com/Sylius/RefundPlugin/issues/306) Change order number to Order relation on Refund ([@Zales0123](https://github.com/Zales0123)) -- [#307](https://github.com/Sylius/RefundPlugin/issues/307) [RefundPayment] Change order number to Order relation on RefundPayment ([@GSadee](https://github.com/GSadee)) -- [#309](https://github.com/Sylius/RefundPlugin/issues/309) Order refund admin show rebuild ([@Tomanhez](https://github.com/Tomanhez)) -- [#310](https://github.com/Sylius/RefundPlugin/issues/310) Replace deprecated twig extension ([@Tomanhez](https://github.com/Tomanhez)) -- [#308](https://github.com/Sylius/RefundPlugin/issues/308) Logo as parameter ([@Mateuszry](https://github.com/Mateuszry)) -- [#313](https://github.com/Sylius/RefundPlugin/issues/313) Change CustomerBillingData to resource and create via factory ([@arti0090](https://github.com/arti0090)) -- [#314](https://github.com/Sylius/RefundPlugin/issues/314) Add backward compatibility for old refund buses ([@Tomanhez](https://github.com/Tomanhez)) -- [#317](https://github.com/Sylius/RefundPlugin/issues/317) Replace Sonata block events with Sylius template events ([@GSadee](https://github.com/GSadee)) -- [#316](https://github.com/Sylius/RefundPlugin/issues/316) fix original payment method of refund ([@AdamKasp](https://github.com/AdamKasp)) -- [#318](https://github.com/Sylius/RefundPlugin/issues/318) Fix plugin versions in UPGRADE file ([@GSadee](https://github.com/GSadee)) -- [#315](https://github.com/Sylius/RefundPlugin/issues/315) Shop billing data as resource ([@SirDomin](https://github.com/SirDomin)) -- [#312](https://github.com/Sylius/RefundPlugin/issues/312) Improve dx with extending refund type ([@AdamKasp](https://github.com/AdamKasp)) -- [#320](https://github.com/Sylius/RefundPlugin/issues/320) [RefundPayment] Make the Refund customization easier ([@GSadee](https://github.com/GSadee)) -- [#321](https://github.com/Sylius/RefundPlugin/issues/321) Minor improvements for RefundFactory and RefundPaymentFactory ([@GSadee](https://github.com/GSadee)) -- [#322](https://github.com/Sylius/RefundPlugin/issues/322) Change to a more meaningful message in factory exception ([@GSadee](https://github.com/GSadee)) -- [#323](https://github.com/Sylius/RefundPlugin/issues/323) Improve customization of RefundType ([@Tomanhez](https://github.com/Tomanhez), [@GSadee](https://github.com/GSadee)) -- [#324](https://github.com/Sylius/RefundPlugin/issues/324) Upgrade to stable Sylius 1.10 ([@GSadee](https://github.com/GSadee)) -- [#325](https://github.com/Sylius/RefundPlugin/issues/325) [Maintenance] Update README ([@GSadee](https://github.com/GSadee)) - -### v1.0.0-RC.11 (2021-06-18) - -- [#314](https://github.com/Sylius/RefundPlugin/issues/314) Add backward compatibility for old refund buses ([@Tomanhez](https://github.com/Tomanhez)) -- [#316](https://github.com/Sylius/RefundPlugin/issues/316) fix original payment method of refund ([@AdamKasp](https://github.com/AdamKasp)) - -### v1.0.0-RC.10 (2021-06-02) - -- [#282](https://github.com/Sylius/RefundPlugin/issues/282) [Maintenance] Upgrade PHPSpec package ([@GSadee](https://github.com/GSadee)) -- [#283](https://github.com/Sylius/RefundPlugin/issues/283) [Maintenance] Upgrade PHPUnit package ([@GSadee](https://github.com/GSadee)) -- [#284](https://github.com/Sylius/RefundPlugin/issues/284) [Maintenance] Upgrade PHPStan packages ([@GSadee](https://github.com/GSadee)) -- [#285](https://github.com/Sylius/RefundPlugin/issues/285) Remove AdminApi dependencies ([@Tomanhez](https://github.com/Tomanhez)) -- [#288](https://github.com/Sylius/RefundPlugin/issues/288) bus-unification ([@SirDomin](https://github.com/SirDomin)) -- [#289](https://github.com/Sylius/RefundPlugin/issues/289) [CreditMemo] Replace unnecessary custom ChannelFilter with the Sylius entity filter ([@GSadee](https://github.com/GSadee)) -- [#291](https://github.com/Sylius/RefundPlugin/issues/291) Remove support for Sylius 1.8 ([@pamil](https://github.com/pamil)) -- [#294](https://github.com/Sylius/RefundPlugin/issues/294) Added Dutch messages translations ([@j92](https://github.com/j92)) -- [#293](https://github.com/Sylius/RefundPlugin/issues/293) Added Dutch flash message translations ([@j92](https://github.com/j92)) -- [#295](https://github.com/Sylius/RefundPlugin/issues/295) [CreditMemo] Refactor creating CreditMemo to use a factory ([@GSadee](https://github.com/GSadee)) -- [#296](https://github.com/Sylius/RefundPlugin/issues/296) Always create RefundPayment after CreditMemo ([@Zales0123](https://github.com/Zales0123)) -- [#292](https://github.com/Sylius/RefundPlugin/issues/292) Use creditMemoLogoPath ([@j92](https://github.com/j92)) -- [#297](https://github.com/Sylius/RefundPlugin/issues/297) Add interface prefix to number generator ([@GSadee](https://github.com/GSadee)) -- [#301](https://github.com/Sylius/RefundPlugin/issues/301) Fix build for version 5.3.0 of symfony/http-foundation ([@GSadee](https://github.com/GSadee)) -- [#300](https://github.com/Sylius/RefundPlugin/issues/300) Use explicit bus in handlers configurations ([@GSadee](https://github.com/GSadee)) -- [#299](https://github.com/Sylius/RefundPlugin/issues/299) Refactor credit memo number generator ([@GSadee](https://github.com/GSadee)) -- [#303](https://github.com/Sylius/RefundPlugin/issues/303) Change mink-debug-extension and remove unnedded params ([@arti0090](https://github.com/arti0090)) -- [#302](https://github.com/Sylius/RefundPlugin/issues/302) Use interfaces instead of FQCN as services ids + minor files refactor ([@GSadee](https://github.com/GSadee)) -- [#304](https://github.com/Sylius/RefundPlugin/issues/304) Remove unneeded exclude from GitHub Actions ([@GSadee](https://github.com/GSadee)) -- [#298](https://github.com/Sylius/RefundPlugin/issues/298) Add sylius 1.10 to composer and workflow ([@arti0090](https://github.com/arti0090)) -- [#305](https://github.com/Sylius/RefundPlugin/issues/305) Bring back easy-coding-standard + apply CS fixes ([@GSadee](https://github.com/GSadee)) - -### v1.0.0-RC.9 (2021-04-13) - -- [#273](https://github.com/Sylius/RefundPlugin/issues/273) Refunding multiple shipments ([@GSadee](https://github.com/GSadee)) -- [#274](https://github.com/Sylius/RefundPlugin/issues/274) [CreditMemo] Add scenarios for viewing multiple shipments on credit memo ([@GSadee](https://github.com/GSadee)) -- [#275](https://github.com/Sylius/RefundPlugin/issues/275) docs: new release ([@xchopin](https://github.com/xchopin)) -- [#280](https://github.com/Sylius/RefundPlugin/issues/280) Polish translations ([@mysiar](https://github.com/mysiar)) -- [#281](https://github.com/Sylius/RefundPlugin/issues/281) Remove conflict for Api-Platform with Sylius/Sylius ^1.9 ([@Tomanhez](https://github.com/Tomanhez)) - -### v1.0.0-RC.8 (2021-03-18) - -- [#232](https://github.com/Sylius/RefundPlugin/issues/232) Drop unused order state-machine transtion to fully refunded ([@GSadee](https://github.com/GSadee)) -- [#263](https://github.com/Sylius/RefundPlugin/issues/263) Check proper state during resolving order refunded state ([@GSadee](https://github.com/GSadee)) -- [#265](https://github.com/Sylius/RefundPlugin/issues/265) Toggle doctrine migration ([@arti0090](https://github.com/arti0090)) -- [#267](https://github.com/Sylius/RefundPlugin/issues/267) Update installation guides to install proper version of plugin ([@GSadee](https://github.com/GSadee)) -- [#268](https://github.com/Sylius/RefundPlugin/issues/268) update installation guides for sylius 1.8 ([@arti0090](https://github.com/arti0090), [@GSadee](https://github.com/GSadee)) -- [#264](https://github.com/Sylius/RefundPlugin/issues/264) Taxes displayed properly on credit memo ([@AdamKasp](https://github.com/AdamKasp), [@GSadee](https://github.com/GSadee)) -- [#270](https://github.com/Sylius/RefundPlugin/issues/270) Unify custom exceptions ([@GSadee](https://github.com/GSadee)) -- [#272](https://github.com/Sylius/RefundPlugin/issues/272) Add missing note about changes in constructor of ShipmentLineItemsConverter ([@GSadee](https://github.com/GSadee)) -- [#271](https://github.com/Sylius/RefundPlugin/issues/271) Unify service definitions of line items converters ([@GSadee](https://github.com/GSadee)) - -### v1.0.0-RC.7 (2021-03-04) - -### Added -- [#261](https://github.com/Sylius/RefundPlugin/issues/261) Update GitHub Actions to run on Sylius 1.9 instead of 1.9-beta ([@GSadee](https://github.com/GSadee)) - -### Fixed -- [#260](https://github.com/Sylius/RefundPlugin/issues/260) Fix OrderItemsTaxesApplicator with removed units ([@aleho](https://github.com/aleho)) - -### v1.0.0-RC.6 (2021-02-18) - -### Added -- [#242](https://github.com/Sylius/RefundPlugin/issues/242) Refunding shipments with taxes ([@GSadee](https://github.com/GSadee)) -- [#255](https://github.com/Sylius/RefundPlugin/issues/255) Refund shipping cost with promotion applied ([@GSadee](https://github.com/GSadee)) -- [#254](https://github.com/Sylius/RefundPlugin/issues/254) Allow for Sylius 1.8 & 1.9 and Symfony 4.4 & 5.2 ([@pamil](https://github.com/pamil), [@GSadee](https://github.com/GSadee)) - -### Changed -- [#238](https://github.com/Sylius/RefundPlugin/issues/238) [Maintenance] Remove security checker config ([@clem21](https://github.com/clem21)) -- [#217](https://github.com/Sylius/RefundPlugin/issues/217) Add missing french translations ([@Nek-](https://github.com/Nek-)) -- [#209](https://github.com/Sylius/RefundPlugin/issues/209) Fix wrong type error if the error in some cases ([@Nek-](https://github.com/Nek-)) -- [#243](https://github.com/Sylius/RefundPlugin/issues/243) [Minor] Clean up behat scenarios ([@clem21](https://github.com/clem21)) -- [#244](https://github.com/Sylius/RefundPlugin/issues/244) [Maintenance] Drop Sylius 1.7 support ([@GSadee](https://github.com/GSadee)) -- [#245](https://github.com/Sylius/RefundPlugin/issues/245) Remove final tags from resource entities ([@GSadee](https://github.com/GSadee)) -- [#248](https://github.com/Sylius/RefundPlugin/issues/248) [Shipment] Improve interface inheritance ([@GSadee](https://github.com/GSadee)) -- [#250](https://github.com/Sylius/RefundPlugin/issues/250) [Pdf] set translation credit memo locale ([@SirDomin](https://github.com/SirDomin)) -- [#256](https://github.com/Sylius/RefundPlugin/issues/256) Make OrderShipmentTaxesApplicator final service again ([@GSadee](https://github.com/GSadee)) -- [#257](https://github.com/Sylius/RefundPlugin/issues/257) [Adjustment] Update down methods of duplicated migrations not to execute if the changes already exist in db ([@GSadee](https://github.com/GSadee)) - -### Fixed -- [#236](https://github.com/Sylius/RefundPlugin/issues/236) fix doctrine migration sql ([@arti0090](https://github.com/arti0090)) -- [#234](https://github.com/Sylius/RefundPlugin/issues/234) [UI/UX] Refund float price ([@TheGrimmChester](https://github.com/TheGrimmChester)) -- [#216](https://github.com/Sylius/RefundPlugin/issues/216) Refund list view fails if CreditMemo entity has been overridden ([@luca-rath](https://github.com/luca-rath)) -- [#240](https://github.com/Sylius/RefundPlugin/issues/240) [BUG] Credit memos and refund payment appears in different order ([@clem21](https://github.com/clem21)) -- [#251](https://github.com/Sylius/RefundPlugin/issues/251) Fix failing build ([@SirDomin](https://github.com/SirDomin)) - -### v1.0.0-RC.5 (2020-11-30) - -### Changed -- [#227](https://github.com/Sylius/RefundPlugin/issues/227) Switch from Travis to GitHub Actions ([@pamil](https://github.com/pamil)) -- [#230](https://github.com/Sylius/RefundPlugin/issues/230) Support Sylius 1.7 again ([@Zales0123](https://github.com/Zales0123)) - -### Fixed -- [#228](https://github.com/Sylius/RefundPlugin/issues/228) Fix Doctrine/Migrations configuration ([@Zales0123](https://github.com/Zales0123)) - -### v1.0.0-RC.4 (2020-10-22) - -### Changed -- [#205](https://github.com/Sylius/RefundPlugin/issues/205) Switch to Doctrine/Migrations 3.0 ([@pamil](https://github.com/pamil), [@GSadee](https://github.com/GSadee)) -- [#222](https://github.com/Sylius/RefundPlugin/issues/222) Add check for not sending emails when refund validation fails ([@GSadee](https://github.com/GSadee)) -- [#224](https://github.com/Sylius/RefundPlugin/issues/224) [Docs] Update README and UPGRADE files ([@lchrusciel](https://github.com/lchrusciel)) - -### Fixed -- [#223](https://github.com/Sylius/RefundPlugin/issues/223) Making the RefundFactory implement the factory interface ([@mamazu](https://github.com/mamazu)) - -### v1.0.0-RC.3 (2020-04-28) - -### Added -- [#195](https://github.com/Sylius/RefundPlugin/issues/195) feat: add french translation ([@Gregcop1](https://github.com/Gregcop1)) - -### Changed -- [#198](https://github.com/Sylius/RefundPlugin/issues/198) Minor restyle of order credit memo list ui ([@diimpp](https://github.com/diimpp)) -- [#197](https://github.com/Sylius/RefundPlugin/issues/197) Convert RefundPayment state values to lowercase ([@diimpp](https://github.com/diimpp)) -- [#200](https://github.com/Sylius/RefundPlugin/issues/200) Misc refactor ([@diimpp](https://github.com/diimpp)) -- [#202](https://github.com/Sylius/RefundPlugin/issues/202) [DB] Remove `COMMENT` database configuration ([@lchrusciel](https://github.com/lchrusciel)) -- [#206](https://github.com/Sylius/RefundPlugin/issues/206) [Doc] Update UPGRADE file ([@lchrusciel](https://github.com/lchrusciel)) - -### Fixed -- [#199](https://github.com/Sylius/RefundPlugin/issues/199) Fix getId/id return typehints for entities ([@diimpp](https://github.com/diimpp)) -- [#203](https://github.com/Sylius/RefundPlugin/issues/203) Fix 'Unknown "locale" filter' error ([@dunglas](https://github.com/dunglas)) -- [#204](https://github.com/Sylius/RefundPlugin/issues/204) Migrations: fix compatibility with MySQL 8 ([@dunglas](https://github.com/dunglas)) - -### v1.0.0-RC.2 (2020-01-31) - -- [#177](https://github.com/Sylius/RefundPlugin/issues/177) Update README with refunds payment information ([@AdamKasp](https://github.com/AdamKasp)) -- [#179](https://github.com/Sylius/RefundPlugin/issues/179) [CreditMemo] Rework credit memo ([@GSadee](https://github.com/GSadee)) -- [#182](https://github.com/Sylius/RefundPlugin/issues/182) [TaxItem] Make tax item a resource ([@GSadee](https://github.com/GSadee)) -- [#181](https://github.com/Sylius/RefundPlugin/issues/181) Extract tax rate provider from line items converter ([@GSadee](https://github.com/GSadee)) -- [#180](https://github.com/Sylius/RefundPlugin/issues/180) [Refunds] Disable refund when order is free ([@AdamKasp](https://github.com/AdamKasp)) -- [#183](https://github.com/Sylius/RefundPlugin/issues/183) Code standards fixes ([@AdamKasp](https://github.com/AdamKasp)) - -### v1.0.0-RC.1 (2020-01-15) - -- [#172](https://github.com/Sylius/RefundPlugin/issues/172) Navigation via breadcrumbs between credit memo - Order and refund page - order ([@Zales0123](https://github.com/Zales0123), [@AdamKasp](https://github.com/AdamKasp)) -- [#174](https://github.com/Sylius/RefundPlugin/issues/174) [CreditMemo] Remove unused service from credit memo generator ([@GSadee](https://github.com/GSadee)) -- [#173](https://github.com/Sylius/RefundPlugin/issues/173) [CreditMemo] Add tax items to credit memo ([@GSadee](https://github.com/GSadee)) -- [#175](https://github.com/Sylius/RefundPlugin/issues/175) Configuring supported gateways instead of hardcoding them ([@Zales0123](https://github.com/Zales0123)) - -### v0.10.1 (2019-12-18) - -- [#170](https://github.com/Sylius/RefundPlugin/issues/170) Various fixes including doctrine mapping exception ([@loevgaard](https://github.com/loevgaard)) - -### v0.10.0 (2019-12-06) - -- [#150](https://github.com/Sylius/RefundPlugin/issues/150) [DX][Twig] Extract even more templates ([@Zales0123](https://github.com/Zales0123)) -- [#162](https://github.com/Sylius/RefundPlugin/issues/162) Change server to new symfony server ([@AdamKasp](https://github.com/AdamKasp)) -- [#167](https://github.com/Sylius/RefundPlugin/issues/167) [Refund] Do not expose exception messages to the customer ([@lchrusciel](https://github.com/lchrusciel), [@Zales0123](https://github.com/Zales0123)) -- [#168](https://github.com/Sylius/RefundPlugin/issues/168) Allow for Messenger 4.3 and 4.4 ([@pamil](https://github.com/pamil)) diff --git a/CHANGELOG-1.1.md b/CHANGELOG-1.1.md deleted file mode 100644 index 647cfc39..00000000 --- a/CHANGELOG-1.1.md +++ /dev/null @@ -1,36 +0,0 @@ -# CHANGELOG - -### v1.1.2 (2022-04-27) - -- [#363](https://github.com/Sylius/RefundPlugin/issues/363) Use mapped superclasses for entities ([@aleho](https://github.com/aleho)) -- [#364](https://github.com/Sylius/RefundPlugin/issues/364) [Maintenance] Support PHP 8.1 ([@GSadee](https://github.com/GSadee)) -- [#366](https://github.com/Sylius/RefundPlugin/issues/366) [Templates] Remove redundant template overriding ([@coldic3](https://github.com/coldic3)) -- [#368](https://github.com/Sylius/RefundPlugin/issues/368) Update supported branches in README file ([@GSadee](https://github.com/GSadee)) - -### v1.1.1 (2022-03-31) - -- [#350](https://github.com/Sylius/RefundPlugin/issues/350) [Maintenance] Add information about supported branches ([@GSadee](https://github.com/GSadee)) -- [#354](https://github.com/Sylius/RefundPlugin/issues/354) [Maintenance] Fix header of information about supported branches ([@GSadee](https://github.com/GSadee)) -- [#358](https://github.com/Sylius/RefundPlugin/issues/358) [Maintenance] Bump up Sylius versions to fix the build ([@GSadee](https://github.com/GSadee)) -- [#355](https://github.com/Sylius/RefundPlugin/issues/355) [GitHub Actions] Configure workflow to run on the workflow_dispatch event ([@GSadee](https://github.com/GSadee)) -- [#359](https://github.com/Sylius/RefundPlugin/issues/359) [Credit Memo] Sorting credit memos by order numbers ([@ernestWarwas](https://github.com/ernestWarwas)) -- [#361](https://github.com/Sylius/RefundPlugin/issues/361) Enable local file access in CreditMemoPdfFileGenerator ([@coldic3](https://github.com/coldic3)) - -### v1.1.0 (2022-02-17) - -- [#326](https://github.com/Sylius/RefundPlugin/issues/326) Do not require visibility in PHPSpec functions ([@GSadee](https://github.com/GSadee)) -- [#328](https://github.com/Sylius/RefundPlugin/issues/328) fix for `doctrine:schema:update` ([@Zales0123](https://github.com/Zales0123)) -- [#330](https://github.com/Sylius/RefundPlugin/issues/330) Use PHP 7.4 syntax ([@GSadee](https://github.com/GSadee)) -- [#333](https://github.com/Sylius/RefundPlugin/issues/333) [Maintenance] Change names of CHANGELOG and UPGRADE files for v1.0 ([@GSadee](https://github.com/GSadee)) -- [#331](https://github.com/Sylius/RefundPlugin/issues/331) [Maintenance] Create empty UPGRADE file for v1.1 ([@GSadee](https://github.com/GSadee)) -- [#334](https://github.com/Sylius/RefundPlugin/issues/334) [Maintenance] Update docblocks about deprecated methods ([@GSadee](https://github.com/GSadee)) -- [#335](https://github.com/Sylius/RefundPlugin/issues/335) [Maintenance] Minor installation guide improvements ([@GSadee](https://github.com/GSadee)) -- [#336](https://github.com/Sylius/RefundPlugin/issues/336) Github templates ([@Zales0123](https://github.com/Zales0123)) -- [#337](https://github.com/Sylius/RefundPlugin/issues/337) Drop support for Sylius 1.9 & Symfony 5.2 ([@GSadee](https://github.com/GSadee)) -- [#339](https://github.com/Sylius/RefundPlugin/issues/339) Drop support for PHP 7.4 ([@GSadee](https://github.com/GSadee)) -- [#341](https://github.com/Sylius/RefundPlugin/issues/341) Remove unneded exclusion from GitHub Actions configuration ([@GSadee](https://github.com/GSadee)) -- [#342](https://github.com/Sylius/RefundPlugin/issues/342) Upgrade node in GitHub Actions builds ([@GSadee](https://github.com/GSadee)) -- [#340](https://github.com/Sylius/RefundPlugin/issues/340) Drop support for Symfony 5.3 ([@GSadee](https://github.com/GSadee)) -- [#343](https://github.com/Sylius/RefundPlugin/issues/343) Resolve added to parameter to make usage of proper path possible ([@TheMilek](https://github.com/TheMilek)) -- [#345](https://github.com/Sylius/RefundPlugin/issues/345) New PDF layout ([@kulczy](https://github.com/kulczy)) -- [#346](https://github.com/Sylius/RefundPlugin/issues/346) [Maintenance] Support stable Sylius v1.11.0 ([@GSadee](https://github.com/GSadee)) diff --git a/CHANGELOG-1.2.md b/CHANGELOG-1.2.md deleted file mode 100644 index 94c75c07..00000000 --- a/CHANGELOG-1.2.md +++ /dev/null @@ -1,16 +0,0 @@ -# CHANGELOG - -### v1.2.1 (2022-11-14) - -- [#371](https://github.com/Sylius/RefundPlugin/issues/371) [Maintenance] Update README and PR template ([@GSadee](https://github.com/GSadee)) -- [#374](https://github.com/Sylius/RefundPlugin/issues/374) [Behat] Split suites into separate files + remove whitespaces from tags ([@GSadee](https://github.com/GSadee)) -- [#375](https://github.com/Sylius/RefundPlugin/issues/375) [Maintenance] Allow flex plugin during plugin installation ([@lchrusciel](https://github.com/lchrusciel)) -- [#379](https://github.com/Sylius/RefundPlugin/issues/379) [GitHub Actions] Configure global flex to fix the build ([@GSadee](https://github.com/GSadee)) -- [#391](https://github.com/Sylius/RefundPlugin/issues/391) Add missing csrf_token field ([@jakubtobiasz](https://github.com/jakubtobiasz)) - -### v1.2.0 (2022-04-27) - -- [#362](https://github.com/Sylius/RefundPlugin/issues/362) [Maintenance] Add TwigToPdfGenerator ([@coldic3](https://github.com/coldic3)) -- [#365](https://github.com/Sylius/RefundPlugin/issues/365) [Templates][Admin] Replace templates overriding with events ([@coldic3](https://github.com/coldic3)) -- [#367](https://github.com/Sylius/RefundPlugin/issues/367) [Maintenance] Optional pdf generator ([@Rafikooo](https://github.com/Rafikooo), [@GSadee](https://github.com/GSadee)) -- [#370](https://github.com/Sylius/RefundPlugin/issues/370) [GitHub Actions] Include build with PDF generation disabled to the main workflow ([@GSadee](https://github.com/GSadee)) diff --git a/CHANGELOG-1.3.md b/CHANGELOG-1.3.md deleted file mode 100644 index 6b18c4b1..00000000 --- a/CHANGELOG-1.3.md +++ /dev/null @@ -1,21 +0,0 @@ -# CHANGELOG - -### v1.3.1 (2023-06-29) - -- [#393](https://github.com/Sylius/RefundPlugin/issues/393) [Maintenance] Update README and PR template ([@GSadee](https://github.com/GSadee)) -- [#394](https://github.com/Sylius/RefundPlugin/issues/394) [Maintenance] Remove wkhtmltopdf binary ([@coldic3](https://github.com/coldic3)) -- [#402](https://github.com/Sylius/RefundPlugin/issues/402) [UI] Remove import with redundant macro ([@coldic3](https://github.com/coldic3)) -- [#403](https://github.com/Sylius/RefundPlugin/issues/403) Use sylius_admin.path_name for route prefix ([@mneuville](https://github.com/mneuville)) -- [#412](https://github.com/Sylius/RefundPlugin/issues/412) [Composer] Require php-http/message-factory package ([@GSadee](https://github.com/GSadee)) -- [#214](https://github.com/Sylius/RefundPlugin/issues/214) [DX] Easier tests for RefundUnits message ([@Nek-](https://github.com/Nek-), [@GSadee](https://github.com/GSadee)) - -### v1.3.0 (2022-11-14) - -- [#373](https://github.com/Sylius/RefundPlugin/issues/373) Save credit memos on server during generation ([@GSadee](https://github.com/GSadee)) -- [#378](https://github.com/Sylius/RefundPlugin/issues/378) Drop support for Sylius 1.10 ([@GSadee](https://github.com/GSadee)) -- [#381](https://github.com/Sylius/RefundPlugin/issues/381) [Maintenance] Remove redundant configuration ([@coldic3](https://github.com/coldic3)) -- [#384](https://github.com/Sylius/RefundPlugin/issues/384) [Maintenance] Drop support for Symfony 4.4 ([@coldic3](https://github.com/coldic3)) -- [#387](https://github.com/Sylius/RefundPlugin/issues/387) [Behat] Move scenario from Plus ([@TheMilek](https://github.com/TheMilek)) -- [#385](https://github.com/Sylius/RefundPlugin/issues/385) [Maintenance] Add support for Sylius 1.12 with Symfony 5.4 ([@coldic3](https://github.com/coldic3)) -- [#386](https://github.com/Sylius/RefundPlugin/issues/386) Add Symfony 6 support ([@coldic3](https://github.com/coldic3), [@GSadee](https://github.com/GSadee)) -- [#388](https://github.com/Sylius/RefundPlugin/issues/388) [Templates] Adjust to the new Sylius shop UI styles ([@coldic3](https://github.com/coldic3)) diff --git a/CHANGELOG-1.4.md b/CHANGELOG-1.4.md deleted file mode 100644 index a5229c22..00000000 --- a/CHANGELOG-1.4.md +++ /dev/null @@ -1,14 +0,0 @@ -# CHANGELOG - -### v1.4.0 (2023-06-29) - -- [#395](https://github.com/Sylius/RefundPlugin/issues/395) [Config] Move SyliusTemplateEvents to the separate configuration file ([@Rafikooo](https://github.com/Rafikooo)) -- [#401](https://github.com/Sylius/RefundPlugin/issues/401) [Maintenance] Adjust Messenger env variables ([@GSadee](https://github.com/GSadee)) -- [#396](https://github.com/Sylius/RefundPlugin/issues/396) `SyliusTemplateEvents` introduced on the `Refund` view ([@Rafikooo](https://github.com/Rafikooo)) -- [#405](https://github.com/Sylius/RefundPlugin/issues/405) [Maintenance] Bump up Sylius Coding Standard ([@coldic3](https://github.com/coldic3)) -- [#406](https://github.com/Sylius/RefundPlugin/issues/406) Make UnitRefundedEventListener listen for all events implementing UnitRefundedInterface ([@coldic3](https://github.com/coldic3)) -- [#404](https://github.com/Sylius/RefundPlugin/issues/404) Units refunded flow improvements ([@coldic3](https://github.com/coldic3)) -- [#407](https://github.com/Sylius/RefundPlugin/issues/407) Validate if refunded units belong to an order ([@coldic3](https://github.com/coldic3)) -- [#408](https://github.com/Sylius/RefundPlugin/issues/408) Introduce tags autoconfiguration ([@coldic3](https://github.com/coldic3)) -- [#409](https://github.com/Sylius/RefundPlugin/issues/409) Improve extendibility of OrderRefundsListAction ([@coldic3](https://github.com/coldic3)) - diff --git a/CHANGELOG-1.5.md b/CHANGELOG-1.5.md deleted file mode 100644 index b632e39c..00000000 --- a/CHANGELOG-1.5.md +++ /dev/null @@ -1,12 +0,0 @@ -# CHANGELOG - -### v1.5.0 (2024-04-26) - -- [#413](https://github.com/Sylius/RefundPlugin/issues/413) Adjust supported versions in README file ([@GSadee](https://github.com/GSadee)) -- [#414](https://github.com/Sylius/RefundPlugin/issues/414) [RefundUnitsConverter] Change interface method signature ([@Rafikooo](https://github.com/Rafikooo)) -- [#419](https://github.com/Sylius/RefundPlugin/issues/419) [Maintenance][CI] Disable php 8.0 with symfony 6 pipes ([@NoResponseMate](https://github.com/NoResponseMate)) -- [#420](https://github.com/Sylius/RefundPlugin/issues/420) [Maintenance] Add missing deprecations to CreditMemoEmailSender ([@NoResponseMate](https://github.com/NoResponseMate)) -- [#421](https://github.com/Sylius/RefundPlugin/issues/421) [Maintenance] Update License ([@NoResponseMate](https://github.com/NoResponseMate)) -- [#423](https://github.com/Sylius/RefundPlugin/issues/423) Add missing factory for line items ([@NoResponseMate](https://github.com/NoResponseMate)) -- [#424](https://github.com/Sylius/RefundPlugin/issues/424) Update plugin to sylius 1.13. ([@BartoszWojdalowicz](https://github.com/BartoszWojdalowicz)) -- [#427](https://github.com/Sylius/RefundPlugin/issues/427) Bump Sylius 1.13 to stable v1.13.0 version ([@GSadee](https://github.com/GSadee)) diff --git a/UPGRADE-1.0.md b/UPGRADE-1.0.md deleted file mode 100644 index 30b1464c..00000000 --- a/UPGRADE-1.0.md +++ /dev/null @@ -1,442 +0,0 @@ -### UPGRADE FROM 1.0.1 TO 1.0.2 - -1. The return types of `Sylius\RefundPlugin\Entity\CustomerBillingDataInterface` method has been changed: - - ```diff - + public function getFirstName(): ?string; - - public function getFirstName(): string; - + public function getLastName(): ?string; - - public function getLastName(): string; - + public function getStreet(): ?string; - - public function getStreet(): string; - + public function getPostcode(): ?string; - - public function getPostcode(): string; - + public function getCountryCode(): ?string; - - public function getCountryCode(): string; - + public function getCity(): ?string; - - public function getCity(): string; - ``` - -1. The return types of `Sylius\RefundPlugin\Entity\CreditMemoInterface` method has been changed: - - ```diff - + public function getNumber(): ?string; - - public function getNumber(): string; - + public function getOrder(): ?OrderInterface; - - public function getOrder(): OrderInterface; - + public function getCurrencyCode(): ?string; - - public function getCurrencyCode(): string; - + public function getLocaleCode(): ?string; - - public function getLocaleCode(): string; - + public function getChannel(): ?ChannelInterface; - - public function getChannel(): ChannelInterface; - + public function getComment(): ?string; - - public function getComment(): string; - + public function getIssuedAt(): ?\DateTimeImmutable; - - public function getIssuedAt(): \DateTimeImmutable; - + public function getFrom(): ?CustomerBillingDataInterface; - - public function getFrom(): CustomerBillingDataInterface; - ``` - -### UPGRADE FROM 1.0.0-RC.11 TO 1.0.0 - -1. `orderNumber` field on `Sylius\RefundPlugin\Entity\Refund` and `Sylius\RefundPlugin\Entity\RefundPayment` has been removed - and replaced with relation to `Order` entity. - -1. `Sylius\RefundPlugin\Entity\RefundInterface::getOrderNumber` function is left due to easier and smoother upgrades, - but is also deprecated and will be removed in the `v1.0.0` release. Use `Sylius\RefundPlugin\Entity\RefundInterface::getOrder` instead. - -1. `Sylius\RefundPlugin\Entity\RefundPaymentInterface::getOrderNumber` function is left due to easier and smoother upgrades, - but is also deprecated and will be removed in the `v1.0.0` release. Use `Sylius\RefundPlugin\Entity\RefundPaymentInterface::getOrder` instead. - -1. `Sylius\RefundPlugin\Creator\RefundCreator` takes `Sylius\Component\Core\Repository\OrderRepositoryInterface` - as the 3rd argument. - -1. `Sylius\RefundPlugin\ProcessManager\RefundPaymentProcessManager` takes `Sylius\Component\Core\Repository\OrderRepositoryInterface` - as the 4th argument. - -1. `Sylius\RefundPlugin\Provider\OrderRefundedTotalProviderInterface::invoke` takes `OrderInterface $order` as an argument - instead of `string $orderNumber` - -1. `Sylius\RefundPlugin\Factory\RefundPaymentFactory::createWithData` takes `OrderInterface $order` as an argument - instead of `string $orderNumber` - -1. The constructor of `Sylius\RefundPlugin\Provider\DefaultRelatedPaymentIdProvider` has been removed. - -1. Constructor of `Sylius\RefundPlugin\Entity\CustomerBillingData` has been removed and now `CustomerBillingData` entity - is created by `Sylius\RefundPlugin\Factory\CustomerBillingDataFactory`. - -1. Constructor of `Sylius\RefundPlugin\Entity\ShopBillingData` has been removed and now `ShopBillingData` entity - is created by `Sylius\RefundPlugin\Factory\ShopBillingDataFactory`. - -1. The constructor of `Sylius\RefundPlugin\Generator\CreditMemoGenerator` has been changed: - - ```diff - public function __construct( - LineItemsConverterInterface $lineItemsConverter, - LineItemsConverterInterface $shipmentLineItemsConverter, - TaxItemsGeneratorInterface $taxItemsGenerator, - CreditMemoFactoryInterface $creditMemoFactory, - + CustomerBillingDataFactoryInterface $customerBillingDataFactory, - + ShopBillingDataFactoryInterface $shopBillingDataFactory - ) { - ... - } - ``` - -1. The `id` method from `Sylius\RefundPlugin\Entity\CustomerBillingData` has its return type removed: - - ```diff - - public function id(): ?int; - + public function id(); - ``` - - -1. The getter methods of `Sylius\RefundPlugin\Entity\CustomerBillingData` are now deprecated and will be replaced with: - - ```diff - - public function id(): ?int - + public function getId() - - public function firstName(): string - + public function getFirstName(): string - - public function lastName(): string - + public function getLastName(): string - - public function fullName(): string - + public function getFullName(): string - - public function street(): string - + public function getStreet(): string - - public function postcode(): string - + public function getPostcode(): string - - public function city(): string - + public function getCity(): string - - public function company(): ?string - + public function getCompany(): ?string - - public function provinceName(): ?string - + public function getProvinceName(): ?string - - public function provinceCode(): ?string - + public function getProvinceCode(): ?string - ``` - -1. `sylius_refund_plugin.block_event_listener.account.order_show` and `sylius_refund_plugin.block_event_listener.order_show.credit_memos` - listeners have been replaced by `sylius_ui` configuration - -1. `Sylius\RefundPlugin\Factory\RefundPaymentFactoryInterface` and `Sylius\RefundPlugin\Factory\RefundPaymentFactory` - service definitions have been removed and replaced by default resource factory `sylius_refund.factory.refund_payment` - -1. The constructor of `Sylius\RefundPlugin\Factory\RefundPaymentFactory` has been changed: - - ```diff - - public function __construct(PaymentMethodRepositoryInterface $paymentMethodRepository) - + public function __construct(string $className) - { - - $this->paymentMethodRepository = $paymentMethodRepository; - + $this->className = $className; - } - ``` - -1. The `createWithData` method of `Sylius\RefundPlugin\Factory\RefundPaymentFactoryInterface` has been changed: - - ```diff - public function createWithData( - OrderInterface $order, - int $amount, - string $currencyCode, - string $state, - - int $paymentMethodId - + PaymentMethodInterface $paymentMethod - ): RefundPaymentInterface; - ``` - -1. The definition of `Sylius\RefundPlugin\ProcessManager\RefundPaymentProcessManager` has been changed: - - ```diff - - - - - - + - - + - - - - - -1. The constructor of `Sylius\RefundPlugin\Creator\RefundUnitsCommandCreator` has been changed: - - ```diff - - public function __construct(UnitRefundTotalCalculatorInterface $unitRefundTotalCalculator) - + public function __construct(RefundUnitsConverterInterface $refundUnitsConverter) - { - - $this->unitRefundTotalCalculator = $unitRefundTotalCalculator; - + $this->refundUnitsConverter = $refundUnitsConverter; - } - ``` - -1. The constructor of `Sylius\RefundPlugin\Twig\OrderRefundsExtension` has been changed: - - ```diff - public function __construct( - OrderRefundedTotalProviderInterface $orderRefundedTotalProvider, - UnitRefundedTotalProviderInterface $unitRefundedTotalProvider, - UnitRefundingAvailabilityCheckerInterface $unitRefundingAvailabilityChecker, - OrderRepositoryInterface $orderRepository, - RepositoryInterface $refundPaymentRepository - RepositoryInterface $refundPaymentRepository, - + RefundTypeFactoryInterface $refundTypeFactory - ) { - ... - } - ``` - -1. Return type on `getType` method of `Sylius\RefundPlugin\Entity\Refund` and `Sylius\RefundPlugin\Entity\RefundInterface` has been changed from `RefundType` to `RefundTypeInterface` - -1. Return type on `convertToPHPValue` method of `Sylius\RefundPlugin\Entity\Type\RefundEnumType` has been changed from `RefundType` to `RefundTypeInterface` - -1. We replaced `RefundType` with `RefundTypeInterface` in the given list of classes: - * `Sylius\RefundPlugin\Creator\RefundCreator` - * `Sylius\RefundPlugin\Checker\UnitRefundingAvailabilityChecker` - * `Sylius\RefundPlugin\Entity\Type\RefundEnumType` - * `Sylius\RefundPlugin\Entity\Refund` - * `Sylius\RefundPlugin\Factory\RefundFactory` - * `Sylius\RefundPlugin\Provider\RemainingTotalProvider` - * `Sylius\RefundPlugin\Provider\UnitRefundedTotalProvider` - * `Sylius\RefundPlugin\Validator\RefundAmountValidator` - -1. `Sylius\RefundPlugin\Model\RefundType` implements `Sylius\RefundPlugin\Model\RefundTypeInterface` and consts `ORDER_ITEM_UNIT` and `SHIPMENT` has been moved to `RefundTypeInterface` - -1. Service `Sylius\RefundPlugin\Twig\OrderRefundsExtension` has been changed: - - ```diff - - - - - - - + - - - ``` - -1. The constructor of `Sylius\RefundPlugin\Twig\OrderRefundsExtension` has been changed: - - ```diff - public function __construct( - OrderRefundedTotalProviderInterface $orderRefundedTotalProvider, - UnitRefundedTotalProviderInterface $unitRefundedTotalProvider, - UnitRefundingAvailabilityCheckerInterface $unitRefundingAvailabilityChecker, - OrderRepositoryInterface $orderRepository, - RepositoryInterface $refundPaymentRepository - RepositoryInterface $refundPaymentRepository, - + RefundTypeFactoryInterface $refundTypeFactory - ) { - ... - } - ``` - -### UPGRADE FROM 1.0.0-RC.9 TO 1.0.0-RC.10 - -1. Support for Sylius 1.8 has been dropped, upgrade your application to [Sylius 1.9](https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.9.md) -or [Sylius 1.10](https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.10.md). - -1. Remove usage of: - * `Sylius\RefundPlugin\Entity\AdjustmentInterface` - * `Sylius\RefundPlugin\Entity\AdjustmentTrait` - * `Sylius\RefundPlugin\Entity\ShipmentInterface` - * `Sylius\RefundPlugin\Entity\ShipmentTrait` - -1. Delete removed migrations from the migrations table by running: - ``` - bin/console doctrine:migrations:version Sylius\\RefundPlugin\\Migrations\\Version20201208105207 --delete - bin/console doctrine:migrations:version Sylius\\RefundPlugin\\Migrations\\Version20201130071338 --delete - bin/console doctrine:migrations:version Sylius\\RefundPlugin\\Migrations\\Version20201204071301 --delete - ``` - -1. Command bus `sylius_refund_plugin.command_bus` has been replaced with `sylius.command_bus`. - -1. Event bus `sylius_refund_plugin.event_bus` has been replaced with `sylius.event_bus`. - -1. `Sylius\RefundPlugin\Grid\Filter\ChannelFilter` and `Sylius\RefundPlugin\Form\Type\ChannelFilterType` services -have been removed and channel filter configuration in grid has been replaced by entity filter. - -1. Constructor of `Sylius\RefundPlugin\Entity\CreditMemo` has been removed and now `CreditMemo` entity -is created by `Sylius\RefundPlugin\Factory\CreditMemoFactory`. - -1. The constructor of `Sylius\RefundPlugin\Generator\CreditMemoGenerator` has been changed: - - ```diff - public function __construct( - LineItemsConverterInterface $lineItemsConverter, - LineItemsConverterInterface $shipmentLineItemsConverter, - TaxItemsGeneratorInterface $taxItemsGenerator, - - NumberGenerator $creditMemoNumberGenerator, - - CurrentDateTimeImmutableProviderInterface $currentDateTimeImmutableProvider, - - CreditMemoIdentifierGeneratorInterface $uuidCreditMemoIdentifierGenerator - + CreditMemoFactoryInterface $creditMemoFactory - ) { - ... - } - ``` - -1. Post-units refunded process (containing credit memo and refund payment generation) was changed to synchronous step. Refund payment is therefore -always generated after credit memo. Technical changes: - * `Sylius\RefundPlugin\ProcessManager\CreditMemoProcessManager` and `Sylius\RefundPlugin\ProcessManager\RefundPaymentProcessManager` no longer - directly listen to `Sylius\RefundPlugin\Event\UnitsRefunded` event. `Sylius\RefundPlugin\ProcessManager\UnitsRefundedProcessManager` uses them to - facilitate post-units refunding process. - * Their `__invoke` methods were replaced by `Sylius\RefundPlugin\ProcessManager\UnitsRefundedProcessStepInterface::next(UnitsRefunded $unitsRefunded)`. - -1. `Sylius\RefundPlugin\Generator\NumberGenerator` has been changed to `Sylius\RefundPlugin\Generator\CreditMemoNumberGeneratorInterface` -and its method has been changed from `public function generate(): string` to `public function generate(OrderInterface $order, \DateTimeInterface $issuedAt): string`. - -1. Service name and definition has been changed from `Sylius\RefundPlugin\Generator\SequentialNumberGenerator` to `Sylius\RefundPlugin\Generator\SequentialCreditMemoNumberGenerator` -and its last argument `CurrentDateTimeImmutableProviderInterface $currentDateTimeImmutableProvider` has been removed from constructor. - -### UPGRADE FROM 1.0.0-RC.7 TO 1.0.0-RC.8 - -1. The `fully_refunded` state and the `refund` transition have been removed from `sylius_order` state machine. - -1. `Sylius\RefundPlugin\Provider\LabelBasedTaxRateProvider` has been changed to `Sylius\RefundPlugin\Provider\TaxRateProvider`. - -1. The method `Sylius\RefundPlugin\Provider\TaxRateProviderInterface` has been changed -from `provide(OrderItemUnitInterface $orderItemUnit): ?string` to `provide(AdjustableInterface $adjustable): ?string`. - -1. The `TaxRateProviderInterface $taxRateProvider` has been added as the second argument in constructor of `Sylius\RefundPlugin\Converter\ShipmentLineItemsConverter` - -1. Service definition for `Sylius\RefundPlugin\Converter\ShipmentLineItemsConverter` has been changed from -`Sylius\RefundPlugin\Converter\ShipmentLineItemsConverterInterface` to `Sylius\RefundPlugin\Converter\ShipmentLineItemsConverter` - -1. `Sylius\RefundPlugin\Converter\LineItemsConverter` has been changed to `Sylius\RefundPlugin\Converter\OrderItemUnitLineItemsConverter` -and its service definition has been changed from `Sylius\RefundPlugin\Converter\LineItemsConverterInterface` to `Sylius\RefundPlugin\Converter\OrderItemUnitLineItemsConverter` - -1. The suffix `Exception` has been removed from classes: - * `Sylius\RefundPlugin\Exception\InvalidRefundAmountException` - * `Sylius\RefundPlugin\Exception\OrderNotAvailableForRefundingException` - * `Sylius\RefundPlugin\Exception\UnitAlreadyRefundedException` - -### UPGRADE FROM 1.0.0-RC.5 TO 1.0.0-RC.6 - -1. The `Version20201208105207.php` migration was added which extends existing adjustments with additional details (context). Depending on the type of adjustment, additionally defined information are: - * Taxation details (percentage and relation to tax rate) - * Shipping details (shipping relation) - * Taxation for shipping (combined details of percentage and shipping relation) - - This data is fetched based on two assumptions: - * Order level taxes relates to shipping only (default Sylius behaviour) - * Tax rate name has not change since the time, the first order has been placed - - If these are not true, please adjust migration accordingly to your need. To exclude following migration from execution run following code: - ``` - bin/console doctrine:migrations:version 'Sylius\RefundPlugin\Migrations\Version20201208105207' --add - ``` - -1. Add traits that enhance Adjustment and Shipment models from Sylius. These traits are not covered by -the backward compatibility promise and it will be removed after update Sylius to 1.9. It is a duplication of a logic -from Sylius to provide proper adjustments handling. - -```php - $this->adjustments */ - $this->adjustments = new ArrayCollection(); - } -} - -``` - -### UPGRADE FROM 1.0.0-RC.3 TO 1.0.0-RC.4 - -1. Upgrade your application to [Sylius 1.8](https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.8.md). - -1. Remove previously copied migration files (You may check names of migrations to remove [here](https://github.com/Sylius/RefundPlugin/pull/205/commits/82e09b5bd8fa179da79870c9cb838d7ca289737a)). - -### UPGRADE FROM 1.0.0-RC.2 TO 1.0.0-RC.3 - -1. `Sylius\RefundPlugin\Entity\RefundPaymentInterface` state constants values were changed to lowercase. Backward compatibility provided by migration. - -1. Adjust new templates from the plugin (ref. [PR #198](https://github.com/Sylius/RefundPlugin/pull/198)) - - > :warning: Check in your git repository, what has changed and only adjust templates where needed - - ```bash - cp -R vendor/sylius/refund-plugin/src/Resources/views/SyliusAdminBundle/* templates/bundles/SyliusAdminBundle/ - ``` - -1. Copy new migrations - - ```bash - cp -R vendor/sylius/refund-plugin/migrations/{Version20200306145439.php,Version20200306153205.php,Version20200310094633.php,Version20200310185620.php} src/Migrations - ``` - -1. Change usage of `Sylius\RefundPlugin\Entity\SequenceInterface` to `Sylius\RefundPlugin\Entity\CreditMemoSequenceInterface` - -1. Change usage of `Sylius\RefundPlugin\Provider\CurrentDateTimeProviderInterface` to `Sylius\RefundPlugin\Provider\CurrentDateTimeImmutableProviderInterface` - -### UPGRADE FROM 1.0.0-RC.1 TO 1.0.0-RC.2 - -1. `Sylius\RefundPlugin\Entity\CreditMemoUnit` was changed to `Sylius\RefundPlugin\Entity\LineItem` which is a resource entity now. - -2. `Sylius\RefundPlugin\Generator\CreditMemoUnitGeneratorInterface` was changed to `Sylius\RefundPlugin\Converter\LineItemsConverterInterface`. - -3. `Sylius\RefundPlugin\Generator\OrderItemUnitCreditMemoUnitGenerator` was changed to `Sylius\RefundPlugin\Converter\LineItemsConverter`. - -4. `Sylius\RefundPlugin\Generator\ShipmentCreditMemoUnitGenerator` was changed to `Sylius\RefundPlugin\Converter\ShipmentLineItemsConverter`. - -5. `Sylius\RefundPlugin\Entity\TaxItem` became a resource entity. - -There are no migrations that provide backward compatibility, save current credit memos before upgrading the version of plugin. - -### UPGRADE FROM 0.10.1 TO 1.0.0-RC.1 - -1. `OfflineRefundPaymentMethodsProvider` renamed to `SupportedRefundPaymentMethodsProvider` with the supported gateways array as the 2nd argument -(by default only `offline` gateway is passed and therefore supported). - -### UPGRADE FROM 0.8.0 TO 0.9.0 - -1. Removed ``CreditMemoChannel`` and replaced by ``Sylius\Component\Core\Model\ChannelInterface``. - -2. Replaced ``CustomerBillingData`` and ``ShopBillingData`` value objects by entities with ``CustomerBillingDataInterface`` and ``ShopBillingDataInterface`` interfaces. diff --git a/UPGRADE-1.1.md b/UPGRADE-1.1.md deleted file mode 100644 index 1ae53d4d..00000000 --- a/UPGRADE-1.1.md +++ /dev/null @@ -1,13 +0,0 @@ -### UPGRADE FROM 1.1.0 TO 1.1.1 - -1. `Sylius\RefundPlugin\Generator\CreditMemoPdfFileGenerator` takes `Sylius\RefundPlugin\Generator\PdfOptionsGeneratorInterface` as the seventh argument. - -### UPGRADE FROM 1.0.X TO 1.1.0 - -1. Support for Sylius 1.9 has been dropped, upgrade your application to [Sylius 1.10](https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.10.md) - or to [Sylius 1.11](https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.11.md) as this is the recommended Sylius version - to use with RefundPlugin since 1.1.0. - -2. Support for Symfony 5 has been bumped up to 5.4. - -3. Support for PHP 7.4 has been dropped. diff --git a/UPGRADE-1.2.md b/UPGRADE-1.2.md deleted file mode 100644 index 58eb9510..00000000 --- a/UPGRADE-1.2.md +++ /dev/null @@ -1,5 +0,0 @@ -### UPGRADE FROM 1.1.X TO 1.2.0 - -1. Following templates are not overridden by the plugin. If you do not override them by yourself, you can delete them now: - * `templates/bundles/SyliusAdminBundle/Order/Show/_payment.html.twig` - * `templates/bundles/SyliusAdminBundle/Order/Show/_payments.html.twig` diff --git a/UPGRADE-1.3.md b/UPGRADE-1.3.md deleted file mode 100644 index 6712de81..00000000 --- a/UPGRADE-1.3.md +++ /dev/null @@ -1,32 +0,0 @@ -### UPGRADE FROM 1.2.X TO 1.3.0 - -1. Support for Sylius 1.12 has been added, it is now the recommended Sylius version to use with RefundPlugin. - -2. Support for Sylius 1.10 has been dropped, upgrade your application to [Sylius 1.11](https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.11.md). - or to [Sylius 1.12](https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.12.md). - -3. Support for Symfony 6 has been added. - -4. Support for Symfony 4.4 has been dropped. - -5. Not passing the `$creditMemoFileNameGenerator` to `Sylius\RefundPlugin\Generator\CreditMemoPdfFileGenerator` constructor - is deprecated since 1.3 version and will be prohibited in 2.0. - -6. Not passing the `$creditMemoPdfFileGenerator`, the `$creditMemoFileManager` and the `$hasEnabledPdfFileGenerator` - to `Sylius\RefundPlugin\CommandHandler\GenerateCreditMemoHandler` constructor is deprecated since 1.3 version and will be prohibited in 2.0. - -7. Not passing the `$creditMemoFileResolver` and the `$creditMemoFilePathResolver` to `Sylius\RefundPlugin\Sender\CreditMemoEmailSender` - constructor is deprecated since 1.3 version and will be prohibited in 2.0. - -8. The first argument of `Sylius\RefundPlugin\Action\Admin\DownloadCreditMemoAction` and `Sylius\RefundPlugin\Action\Shop\DownloadCreditMemoAction` - controllers has been changed: - -```php - public function __construct( - - private CreditMemoPdfFileGeneratorInterface $creditMemoPdfFileGenerator, - + private CreditMemoFilePathResolverInterface $creditMemoFileResolver, - //... - ) { - //... - } -``` diff --git a/UPGRADE-1.4.md b/UPGRADE-1.4.md deleted file mode 100644 index 690debbb..00000000 --- a/UPGRADE-1.4.md +++ /dev/null @@ -1,212 +0,0 @@ -### UPGRADE FROM 1.3.X TO 1.4.0 - -1. The `Sylius\RefundPlugin\Listener\ShipmentRefundedEventListener` has been removed in favor of - `Sylius\RefundPlugin\Listener\UnitRefundedEventListener` and the `UnitRefundedEventListener` listens now to all - events implementing `Sylius\RefundPlugin\Event\UnitRefundedInterface`. - -#### Backward compatible changes - -All changes below are backward compatible, but we recommend upgrading to 1.4 as in the next major version we remove -deprecated code: - -1. The constructor of the `Sylius\RefundPlugin\Command\GenerateCreditMemo` command has been changed: - - ```diff - public function __construct( - private string $orderNumber, - private int $total, - - /** @var array|OrderItemUnitRefund[] */ - + /** @var array|UnitRefundInterface[] */ - private array $units, - - /** @var array|ShipmentRefund[] */ - - private array $shipments, - private string $comment, - ) { - // ... - } - ``` - - and `Sylius\RefundPlugin\Command\GenerateCreditMemo::shipments` method has been removed. - -2. The constructor of the `Sylius\RefundPlugin\Command\RefundUnits` command has been changed: - - ```diff - public function __construct( - private string $orderNumber, - - /** @var array|OrderItemUnitRefund[] */ - + /** @var array|UnitRefundInterface[] */ - private array $units, - - /** @var array|ShipmentRefund[] */ - - private array $shipments, - + private int $paymentMethodId, - private string $comment, - ) { - // ... - } - ``` - - and `Sylius\RefundPlugin\Command\RefundUnits::shipments` method has been removed. - -3. The constructor of the `Sylius\RefundPlugin\CommandHandler\RefundUnitsHandler` has been changed: - - ```diff - public function __construct( - - private RefunderInterface $orderUnitsRefunder, - - private RefunderInterface $orderShipmentsRefunder, - + private iterable $refunders, - private MessageBusInterface $eventBus, - private OrderRepositoryInterface $orderRepository, - private RefundUnitsCommandValidatorInterface $refundUnitsCommandValidator, - ) { - // ... - } - ``` - -4. The `Sylius\RefundPlugin\Converter\LineItemsConverterInterface` interface implemented by - `Sylius\RefundPlugin\Converter\OrderItemUnitLineItemsConverter` and `Sylius\RefundPlugin\Converter\ShipmentLineItemsConverter` - has been replaced with `Sylius\RefundPlugin\Converter\LineItemsConverterUnitRefundAwareInterface`. - -5. The interface method `Sylius\RefundPlugin\Converter\RefundUnitsConverterInterface::convert` has been changed: - - ```diff - - public function convert(array $units, RefundTypeInterface $refundType, string $unitRefundClass): array; - + public function convert(array $units, string $unitRefundClass): array; - ``` - -6. The constructor of the `Sylius\RefundPlugin\Creator\RefundUnitsCommandCreator` has been changed: - - ```diff - - public function __construct(private RefundUnitsConverterInterface $refundUnitsConverter) - + public function __construct(private RequestToRefundUnitsConverterInterface $requestToRefundUnitsConverter) - { - // ... - } - ``` - -7. The `Sylius\RefundPlugin\Creator\RefundUnitsCommandCreatorInterface` interface has been replaced with - `Sylius\RefundPlugin\Converter\RequestCommandCreatorInterface`. - -8. The constructor of the `Sylius\RefundPlugin\Event\UnitsRefunded` event has been changed: - - ```diff - public function __construct( - private string $orderNumber, - + /** @var array|UnitRefundInterface[] */ - private array $units, - - private array $shipments, - private int $paymentMethodId, - private int $amount, - private string $currencyCode, - private string $comment, - ) { - // ... - } - ``` - - and `Sylius\RefundPlugin\Event\UnitsRefunded::shipments` method has been removed. - -9. The constructor of the `Sylius\RefundPlugin\Generator\CreditMemoGenerator` has been changed: - - ```diff - public function __construct( - private LineItemsConverterInterface $lineItemsConverter, - - private LineItemsConverterInterface $shipmentLineItemsConverter, - private TaxItemsGeneratorInterface $taxItemsGenerator, - private CreditMemoFactoryInterface $creditMemoFactory, - private CustomerBillingDataFactoryInterface $customerBillingDataFactory, - private ShopBillingDataFactoryInterface $shopBillingDataFactory, - ) { - // ... - } - ``` - -10. The interface method `Sylius\RefundPlugin\Generator\CreditMemoGeneratorInterface::generate` has been changed: - - ```diff - public function generate( - OrderInterface $order, - int $total, - array $units, - - array $shipments, - string $comment - ): CreditMemoInterface; - ``` - -11. A static method has been added to the `Sylius\RefundPlugin\Model\UnitRefundInterface` interface: - - ```diff - + public static function type(): RefundType; - ``` - -12. The constructor of the `Sylius\RefundPlugin\Provider\RemainingTotalProvider` has been changed: - - ```diff - public function __construct( - - private RepositoryInterface $orderItemUnitRepository, - - private RepositoryInterface $adjustmentRepository, - + private ServiceProviderInterface $refundUnitTotalProvider, - private RepositoryInterface $refundRepository, - ) { - // ... - } - ``` - -13. The constructor of the `Sylius\RefundPlugin\Refunder\OrderItemUnitsRefunder` has been changed: - - ```diff - public function __construct( - private RefundCreatorInterface $refundCreator, - private MessageBusInterface $eventBus, - + private UnitRefundFilterInterface $unitRefundFilter, - ) { - // ... - } - ``` - -14. The constructor of the `Sylius\RefundPlugin\Refunder\OrderShipmentsRefunder` has been changed: - - ```diff - public function __construct( - private RefundCreatorInterface $refundCreator, - private MessageBusInterface $eventBus, - + private UnitRefundFilterInterface $unitRefundFilter, - ) { - // ... - } - ``` - -15. The interface method `Sylius\RefundPlugin\Validator\RefundAmountValidatorInterface::validateUnits` has been changed: - - ```diff - - public function validateUnits(array $unitRefunds, RefundTypeInterface $refundType): void; - + public function validateUnits(array $unitRefunds): void; - ``` - -16. The constructor of the `Sylius\RefundPlugin\Validator\RefundUnitsCommandValidator` has been changed: - - ```diff - public function __construct( - private OrderRefundingAvailabilityCheckerInterface $orderRefundingAvailabilityChecker, - private RefundAmountValidatorInterface $refundAmountValidator, - + private iterator $refundUnitsBelongingToOrderValidators, - ) { - // ... - } - ``` - -17. A static method has been added to the `Sylius\RefundPlugin\Provider\RefundUnitTotalProviderInterface` interface: - - ```diff - + public static function refundType(): string; - ``` - - and it replaces the `refund_type` attribute for the `sylius_refund.refund_unit_total_provider` tag. - Therefore, the `refund_type` attribute becomes deprecated as well. - -18. The interface method `Sylius\RefundPlugin\Provider\RefundPaymentMethodsProviderInterface::findForChannel` has been - replaced with `Sylius\RefundPlugin\Provider\RefundPaymentMethodsProviderInterface::findForOrder`: - - ```diff - - public function findForChannel(ChannelInterface $channel): array; - + public function findForOrder(OrderInterface $order): array; - ``` diff --git a/UPGRADE-1.5.md b/UPGRADE-1.5.md deleted file mode 100644 index 9c3413d6..00000000 --- a/UPGRADE-1.5.md +++ /dev/null @@ -1,25 +0,0 @@ -### UPGRADE FROM 1.4.X TO 1.5.0 - -1. Passing `$creditMemoPdfFileGenerator` and `$fileManager` to the constructor of - `Sylius\RefundPlugin\Sender\CreditMemoEmailSender` as the first and third - arguments respectively has been deprecated and will be prohibited in 2.0. - -2. The `Sylius\RefundPlugin\File\FileManagerInterface` interface, - `Sylius\RefundPlugin\File\TemporaryFileManager` class and - service with id `Sylius\RefundPlugin\File\TemporaryFileManager` - have all been deprecated and will be removed in 2.0. There is no replacement. - -3. A factory for the `Sylius\RefundPlugin\Entity\LineItem` has been added with service id `Sylius\RefundPlugin\Factory\LineItemFactoryInterface`. - It is recommended to use it instead of instantiating the `LineItem` directly. - -4. Not passing an instance of `Sylius\RefundPlugin\Factory\LineItemFactoryInterface` to the - constructors of `Sylius\RefundPlugin\Converter\LineItem\OrderItemUnitLineItemsConverter` and - `Sylius\RefundPlugin\Converter\LineItem\ShipmentLineItemsConverter` - has been deprecated and will be prohibited in 2.0. - -5. Support for Sylius 1.13 has been added, it is now the recommended Sylius version to use with RefundPlugin. - -6. Support for Sylius 1.11 has been dropped, upgrade your application to [Sylius 1.12](https://github.com/Sylius/Sylius/blob/1.12/UPGRADE-1.12.md). - or to [Sylius 1.13](https://github.com/Sylius/Sylius/blob/1.13/UPGRADE-1.13.md). - -7. Support for PHP 8.0 has been dropped. diff --git a/UPGRADE-1.6.md b/UPGRADE-1.6.md deleted file mode 100644 index 74ab386f..00000000 --- a/UPGRADE-1.6.md +++ /dev/null @@ -1,106 +0,0 @@ -### UPGRADE FROM 1.5.X TO 1.6.0 - -1. Support for Sylius 1.12 has been dropped, upgrade your application to [Sylius 1.13](https://github.com/Sylius/Sylius/blob/1.13/UPGRADE-1.13.md). - or to [Sylius 1.14](https://github.com/Sylius/Sylius/blob/1.14/UPGRADE-1.14.md). - -1. Passing an instance of `SM\Factory\FactoryInterface` as a constructor argument to the below classes has been deprecated - and will not be possible in RefundPlugin 2.0. Pass an instance of `Sylius\Abstraction\StateMachine\StateMachineInterface`. - - Applies to classes: - - `Sylius\RefundPlugin\StateResolver\OrderFullyRefundedStateResolver` - - `Sylius\RefundPlugin\StateResolver\OrderPartiallyRefundedStateResolver` - - `Sylius\RefundPlugin\StateResolver\RefundPaymentCompletedStateApplier` - -1. Aliases for the following services have been introduced to standardize service IDs and will replace the incorrect IDs - in RefundPlugin 2.0. The old service IDs are now deprecated and will be removed in RefundPlugin 2.0. - Please update your service definitions accordingly to ensure compatibility with next major version of RefundPlugin. - - | Old ID | New ID | - |-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------| - | `sylius_refund_plugin.repository.credit_memo_sequence` | `sylius_refund.repository.credit_memo_sequence` | - | `Sylius\RefundPlugin\Action\Admin\DownloadCreditMemoAction` | `sylius_refund.controller.admin.download_credit_memo` | - | `Sylius\RefundPlugin\Action\Admin\OrderRefundsListAction` | `sylius_refund.controller.admin.order_refunds_list` | - | `Sylius\RefundPlugin\Action\Admin\RefundUnitsAction` | `sylius_refund.controller.admin.refund_units` | - | `Sylius\RefundPlugin\Action\Admin\SendCreditMemoAction` | `sylius_refund.controller.admin.send_credit_memo` | - | `Sylius\RefundPlugin\Action\CompleteRefundPaymentAction` | `sylius_refund.controller.complete_refund_payment` | - | `Sylius\RefundPlugin\Action\Shop\DownloadCreditMemoAction` | `sylius_refund.controller.shop.download_credit_memo` | - | `Sylius\RefundPlugin\Checker\OrderRefundingAvailabilityChecker` | `sylius_refund.checker.order_refunding_availability` | - | `Sylius\RefundPlugin\Checker\OrderRefundsListAvailabilityChecker` | `sylius_refund.checker.order_refunds_list_availability` | - | `Sylius\RefundPlugin\CommandHandler\GenerateCreditMemoHandler` | `sylius_refund.command_handler.generate_credit_memo` | - | `Sylius\RefundPlugin\CommandHandler\RefundUnitsHandler` | `sylius_refund.command_handler.refund_units` | - | `Sylius\RefundPlugin\CommandHandler\SendCreditMemoHandler` | `sylius_refund.command_handler.send_credit_memo` | - | `Sylius\RefundPlugin\Converter\LineItem\OrderItemUnitLineItemsConverter` | `sylius_refund.converter.line_items.order_item_unit` | - | `Sylius\RefundPlugin\Converter\LineItem\ShipmentLineItemsConverter` | `sylius_refund.converter.line_items.shipment` | - | `Sylius\RefundPlugin\Doctrine\ORM\CountOrderItemUnitRefundsBelongingToOrderQuery` | `sylius_refund.doctrine.orm.query.count_order_item_unit_refunds_belonging_to_order` | - | `Sylius\RefundPlugin\Doctrine\ORM\CountShipmentRefundsBelongingToOrderQuery` | `sylius_refund.doctrine.orm.query.count_shipment_refunds_belonging_to_order` | - | `Sylius\RefundPlugin\Factory\CreditMemoFactory` | `sylius_refund.custom_factory.credit_memo` | - | `Sylius\RefundPlugin\Factory\CustomerBillingDataFactory` | `sylius_refund.custom_factory.customer_billing_data` | - | `Sylius\RefundPlugin\Factory\ShopBillingDataFactory` | `sylius_refund.custom_factory.shop_billing_data` | - | `Sylius\RefundPlugin\Listener\CreditMemoGeneratedEventListener` | `sylius_refund.listener.credit_memo_generated` | - | `Sylius\RefundPlugin\Listener\UnitRefundedEventListener` | `sylius_refund.listener.unit_refunded` | - | `Sylius\RefundPlugin\Menu\AdminMainMenuListener` | `sylius_refund.listener.admin_main_menu` | - | `Sylius\RefundPlugin\Menu\OrderShowMenuListener` | `sylius_refund.listener.order_show_menu` | - | `Sylius\RefundPlugin\ProcessManager\CreditMemoProcessManager` | `sylius_refund.process_manager.credit_memo` | - | `Sylius\RefundPlugin\ProcessManager\RefundPaymentProcessManager` | `sylius_refund.process_manager.refund_payment` | - | `Sylius\RefundPlugin\Refunder\OrderItemUnitsRefunder` | `sylius_refund.refunder.order_item_units` | - | `Sylius\RefundPlugin\Provider\OrderItemUnitTotalProvider` | `sylius_refund.provider.order_item_unit_total` | - | `Sylius\RefundPlugin\Refunder\OrderShipmentsRefunder` | `sylius_refund.refunder.order_shipments` | - | `Sylius\RefundPlugin\Provider\ShipmentTotalProvider` | `sylius_refund.provider.shipment_total` | - | `Sylius\RefundPlugin\Twig\OrderRefundsExtension` | `sylius_refund.twig.extension.order_refunds` | - | `Sylius\RefundPlugin\Validator\OrderItemUnitRefundsBelongingToOrderValidator` | `sylius_refund.validator.order_item_unit_refunds_belonging_to_order` | - | `Sylius\RefundPlugin\Validator\ShipmentRefundsBelongingToOrderValidator` | `sylius_refund.validator.shipment_refunds_belonging_to_order` | - -1. For the following services, new aliases have been added, these aliases will become the primary services IDs - in RefundPlugin 2.0, while the current service IDs will be converted into aliases: - - | Current ID | New Alias | - |----------------------------------------------------------------------------------|-----------------------------------------------------------------| - | `Sylius\RefundPlugin\Calculator\UnitRefundTotalCalculatorInterface` | `sylius_refund.calculator.unit_refund_total` | - | `Sylius\RefundPlugin\Checker\CreditMemoCustomerRelationCheckerInterface` | `sylius_refund.checker.credit_memo_customer_relation` | - | `Sylius\RefundPlugin\Checker\OrderFullyRefundedTotalCheckerInterface` | `sylius_refund.checker.order_fully_refunded_total` | - | `Sylius\RefundPlugin\Checker\UnitRefundingAvailabilityCheckerInterface` | `sylius_refund.checker.unit_refunding_availability` | - | `Sylius\RefundPlugin\Converter\LineItem\LineItemsConverterInterface` | `sylius_refund.converter.line_items` | - | `Sylius\RefundPlugin\Converter\RefundUnitsConverterInterface` | `sylius_refund.converter.refund_units` | - | `Sylius\RefundPlugin\Converter\Request\RequestToOrderItemUnitRefundConverter` | `sylius_refund.converter.request_to_order_item_unit_refund` | - | `Sylius\RefundPlugin\Converter\Request\RequestToRefundUnitsConverterInterface` | `sylius_refund.converter.request_to_refund_units` | - | `Sylius\RefundPlugin\Converter\Request\RequestToShipmentRefundConverter` | `sylius_refund.converter.request_to_shipment_refund` | - | `Sylius\RefundPlugin\Creator\RefundCreatorInterface` | `sylius_refund.creator.refund` | - | `Sylius\RefundPlugin\Creator\RequestCommandCreatorInterface` | `sylius_refund.creator.request_command` | - | `Sylius\RefundPlugin\Factory\CreditMemoSequenceFactoryInterface` | `sylius_refund.factory.credit_memo_sequence` | - | `Sylius\RefundPlugin\Factory\LineItemFactoryInterface` | `sylius_refund.factory.line_item` | - | `Sylius\RefundPlugin\Factory\RefundTypeFactoryInterface` | `sylius_refund.factory.refund_type` | - | `Sylius\RefundPlugin\Filter\UnitRefundFilterInterface` | `sylius_refund.filter.unit_refund` | - | `Sylius\RefundPlugin\Generator\CreditMemoFileNameGeneratorInterface` | `sylius_refund.generator.credit_memo_file_name` | - | `Sylius\RefundPlugin\Generator\CreditMemoGeneratorInterface` | `sylius_refund.generator.credit_memo` | - | `Sylius\RefundPlugin\Generator\CreditMemoIdentifierGeneratorInterface` | `sylius_refund.generator.credit_memo_identifier` | - | `Sylius\RefundPlugin\Generator\CreditMemoNumberGeneratorInterface` | `sylius_refund.generator.credit_memo_number` | - | `Sylius\RefundPlugin\Generator\CreditMemoPdfFileGeneratorInterface` | `sylius_refund.generator.credit_memo_pdf_file` | - | `Sylius\RefundPlugin\Generator\PdfOptionsGeneratorInterface` | `sylius_refund.generator.pdf_options` | - | `Sylius\RefundPlugin\Generator\TaxItemsGeneratorInterface` | `sylius_refund.generator.tax_items` | - | `Sylius\RefundPlugin\Generator\TwigToPdfGeneratorInterface` | `sylius_refund.generator.twig_to_pdf` | - | `Sylius\RefundPlugin\Manager\CreditMemoFileManagerInterface` | `sylius_refund.manager.credit_memo_file` | - | `Sylius\RefundPlugin\ProcessManager\UnitsRefundedProcessManagerInterface` | `sylius_refund.process_manager.units_refunded` | - | `Sylius\RefundPlugin\Provider\CreditMemoFileProviderInterface` | `sylius_refund.provider.credit_memo_file` | - | `Sylius\RefundPlugin\Provider\CurrentDateTimeImmutableProviderInterface` | `sylius_refund.provider.current_date_time_immutable` | - | `Sylius\RefundPlugin\Provider\OrderRefundedTotalProviderInterface` | `sylius_refund.provider.order_refunded_total` | - | `Sylius\RefundPlugin\Provider\RefundedShipmentFeeProviderInterface` | `sylius_refund.provider.refunded_shipment_fee` | - | `Sylius\RefundPlugin\Provider\RefundPaymentMethodsProviderInterface` | `sylius_refund.provider.refund_payment_methods` | - | `Sylius\RefundPlugin\Provider\RelatedPaymentIdProviderInterface` | `sylius_refund.provider.related_payment_id` | - | `Sylius\RefundPlugin\Provider\RemainingTotalProviderInterface` | `sylius_refund.provider.remaining_total` | - | `Sylius\RefundPlugin\Provider\TaxRateProviderInterface` | `sylius_refund.provider.tax_rate` | - | `Sylius\RefundPlugin\Resolver\CreditMemoFilePathResolverInterface` | `sylius_refund.resolver.credit_memo_file_path` | - | `Sylius\RefundPlugin\Resolver\CreditMemoFileResolverInterface` | `sylius_refund.resolver.credit_memo_file` | - | `Sylius\RefundPlugin\ResponseBuilder\CreditMemoFileResponseBuilderInterface` | `sylius_refund.response_builder.credit_memo_file` | - | `Sylius\RefundPlugin\Sender\CreditMemoEmailSenderInterface` | `sylius_refund.email_sender.credit_memo` | - | `Sylius\RefundPlugin\StateResolver\OrderFullyRefundedStateResolverInterface` | `sylius_refund.state_resolver.order_fully_refunded` | - | `Sylius\RefundPlugin\StateResolver\OrderPartiallyRefundedStateResolverInterface` | `sylius_refund.state_resolver.order_partially_refunded` | - | `Sylius\RefundPlugin\StateResolver\RefundPaymentCompletedStateApplierInterface` | `sylius_refund.state_resolver.refund_payment_completed_applier` | - | `Sylius\RefundPlugin\Validator\RefundAmountValidatorInterface` | `sylius_refund.validator.refund_amount` | - | `Sylius\RefundPlugin\Validator\RefundUnitsCommandValidatorInterface` | `sylius_refund.validator.refund_units_command` | - -1. The following old parameters have been deprecated and will be removed in RefundPlugin 2.0. Use the corresponding new parameters instead: - - | Old parameter | New parameter | - |------------------------------------|------------------------------------| - | `default_logo_file` | `sylius_refund.default_logo_file` | - | `sylius.refund.template.logo_file` | `sylius_refund.template.logo_file` | From 68a242cc693e883d1e598179ac7862ed8f40e8ee Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 09:31:14 +0100 Subject: [PATCH 2/8] Replace services' ids with new aliases --- UPGRADE-2.0.md | 88 ++++++++++++++++++- src/Resources/config/services.xml | 28 +++--- src/Resources/config/services/actions.xml | 18 ++-- src/Resources/config/services/checkers.xml | 18 ++-- src/Resources/config/services/command_bus.xml | 9 +- src/Resources/config/services/converters.xml | 26 +++--- src/Resources/config/services/creators.xml | 8 +- src/Resources/config/services/event_bus.xml | 16 ++-- src/Resources/config/services/factories.xml | 24 ++--- src/Resources/config/services/filters.xml | 4 +- src/Resources/config/services/generators.xml | 32 +++---- src/Resources/config/services/listeners.xml | 6 +- src/Resources/config/services/providers.xml | 42 +++++---- src/Resources/config/services/queries.xml | 12 ++- src/Resources/config/services/resolvers.xml | 8 +- .../config/services/state_resolvers.xml | 12 +-- src/Resources/config/services/validators.xml | 14 ++- 17 files changed, 213 insertions(+), 152 deletions(-) diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index dec0a48c..fabdff5c 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -3,7 +3,6 @@ 1. The way of customizing resource definition has been changed. Before: - ```yaml sylius_resource: resources: @@ -12,7 +11,6 @@ ``` After: - ```yaml sylius_refund: resources: @@ -26,3 +24,89 @@ ```bash bin/console doctrine:migrations:migrate --no-interaction ``` + +1. Aliases introduced in RefundPlugin 1.6 have now become the primary service IDs in RefundPlugin 2.0. + The old service IDs have been removed, and all references must be updated accordingly: + + | Old ID | New ID | + |-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------| + | `sylius_refund_plugin.repository.credit_memo_sequence` | `sylius_refund.repository.credit_memo_sequence` | + | `Sylius\RefundPlugin\Action\Admin\DownloadCreditMemoAction` | `sylius_refund.controller.admin.download_credit_memo` | + | `Sylius\RefundPlugin\Action\Admin\OrderRefundsListAction` | `sylius_refund.controller.admin.order_refunds_list` | + | `Sylius\RefundPlugin\Action\Admin\RefundUnitsAction` | `sylius_refund.controller.admin.refund_units` | + | `Sylius\RefundPlugin\Action\Admin\SendCreditMemoAction` | `sylius_refund.controller.admin.send_credit_memo` | + | `Sylius\RefundPlugin\Action\CompleteRefundPaymentAction` | `sylius_refund.controller.complete_refund_payment` | + | `Sylius\RefundPlugin\Action\Shop\DownloadCreditMemoAction` | `sylius_refund.controller.shop.download_credit_memo` | + | `Sylius\RefundPlugin\Checker\OrderRefundingAvailabilityChecker` | `sylius_refund.checker.order_refunding_availability` | + | `Sylius\RefundPlugin\Checker\OrderRefundsListAvailabilityChecker` | `sylius_refund.checker.order_refunds_list_availability` | + | `Sylius\RefundPlugin\CommandHandler\GenerateCreditMemoHandler` | `sylius_refund.command_handler.generate_credit_memo` | + | `Sylius\RefundPlugin\CommandHandler\RefundUnitsHandler` | `sylius_refund.command_handler.refund_units` | + | `Sylius\RefundPlugin\CommandHandler\SendCreditMemoHandler` | `sylius_refund.command_handler.send_credit_memo` | + | `Sylius\RefundPlugin\Converter\LineItem\OrderItemUnitLineItemsConverter` | `sylius_refund.converter.line_items.order_item_unit` | + | `Sylius\RefundPlugin\Converter\LineItem\ShipmentLineItemsConverter` | `sylius_refund.converter.line_items.shipment` | + | `Sylius\RefundPlugin\Doctrine\ORM\CountOrderItemUnitRefundsBelongingToOrderQuery` | `sylius_refund.doctrine.orm.query.count_order_item_unit_refunds_belonging_to_order` | + | `Sylius\RefundPlugin\Doctrine\ORM\CountShipmentRefundsBelongingToOrderQuery` | `sylius_refund.doctrine.orm.query.count_shipment_refunds_belonging_to_order` | + | `Sylius\RefundPlugin\Factory\CreditMemoFactory` | `sylius_refund.custom_factory.credit_memo` | + | `Sylius\RefundPlugin\Factory\CustomerBillingDataFactory` | `sylius_refund.custom_factory.customer_billing_data` | + | `Sylius\RefundPlugin\Factory\ShopBillingDataFactory` | `sylius_refund.custom_factory.shop_billing_data` | + | `Sylius\RefundPlugin\Listener\CreditMemoGeneratedEventListener` | `sylius_refund.listener.credit_memo_generated` | + | `Sylius\RefundPlugin\Listener\UnitRefundedEventListener` | `sylius_refund.listener.unit_refunded` | + | `Sylius\RefundPlugin\Menu\AdminMainMenuListener` | `sylius_refund.listener.admin_main_menu` | + | `Sylius\RefundPlugin\Menu\OrderShowMenuListener` | `sylius_refund.listener.order_show_menu` | + | `Sylius\RefundPlugin\ProcessManager\CreditMemoProcessManager` | `sylius_refund.process_manager.credit_memo` | + | `Sylius\RefundPlugin\ProcessManager\RefundPaymentProcessManager` | `sylius_refund.process_manager.refund_payment` | + | `Sylius\RefundPlugin\Provider\OrderItemUnitTotalProvider` | `sylius_refund.provider.order_item_unit_total` | + | `Sylius\RefundPlugin\Provider\ShipmentTotalProvider` | `sylius_refund.provider.shipment_total` | + | `Sylius\RefundPlugin\Refunder\OrderItemUnitsRefunder` | `sylius_refund.refunder.order_item_units` | + | `Sylius\RefundPlugin\Refunder\OrderShipmentsRefunder` | `sylius_refund.refunder.order_shipments` | + | `Sylius\RefundPlugin\Twig\OrderRefundsExtension` | `sylius_refund.twig.extension.order_refunds` | + | `Sylius\RefundPlugin\Validator\OrderItemUnitRefundsBelongingToOrderValidator` | `sylius_refund.validator.order_item_unit_refunds_belonging_to_order` | + | `Sylius\RefundPlugin\Validator\ShipmentRefundsBelongingToOrderValidator` | `sylius_refund.validator.shipment_refunds_belonging_to_order` | + +1. The following services had new aliases added in RefundPlugin 1.6. In RefundPlugin 2.0, these aliases have become + the primary service IDs, and the old service IDs remain as aliases: + + | Old ID | New Id | + |----------------------------------------------------------------------------------|-----------------------------------------------------------------| + | `Sylius\RefundPlugin\Calculator\UnitRefundTotalCalculatorInterface` | `sylius_refund.calculator.unit_refund_total` | + | `Sylius\RefundPlugin\Checker\CreditMemoCustomerRelationCheckerInterface` | `sylius_refund.checker.credit_memo_customer_relation` | + | `Sylius\RefundPlugin\Checker\OrderFullyRefundedTotalCheckerInterface` | `sylius_refund.checker.order_fully_refunded_total` | + | `Sylius\RefundPlugin\Checker\UnitRefundingAvailabilityCheckerInterface` | `sylius_refund.checker.unit_refunding_availability` | + | `Sylius\RefundPlugin\Converter\LineItem\LineItemsConverterInterface` | `sylius_refund.converter.line_items` | + | `Sylius\RefundPlugin\Converter\RefundUnitsConverterInterface` | `sylius_refund.converter.refund_units` | + | `Sylius\RefundPlugin\Converter\Request\RequestToOrderItemUnitRefundConverter` | `sylius_refund.converter.request_to_order_item_unit_refund` | + | `Sylius\RefundPlugin\Converter\Request\RequestToRefundUnitsConverterInterface` | `sylius_refund.converter.request_to_refund_units` | + | `Sylius\RefundPlugin\Converter\Request\RequestToShipmentRefundConverter` | `sylius_refund.converter.request_to_shipment_refund` | + | `Sylius\RefundPlugin\Creator\RefundCreatorInterface` | `sylius_refund.creator.refund` | + | `Sylius\RefundPlugin\Creator\RequestCommandCreatorInterface` | `sylius_refund.creator.request_command` | + | `Sylius\RefundPlugin\Factory\CreditMemoSequenceFactoryInterface` | `sylius_refund.factory.credit_memo_sequence` | + | `Sylius\RefundPlugin\Factory\LineItemFactoryInterface` | `sylius_refund.factory.line_item` | + | `Sylius\RefundPlugin\Factory\RefundTypeFactoryInterface` | `sylius_refund.factory.refund_type` | + | `Sylius\RefundPlugin\Filter\UnitRefundFilterInterface` | `sylius_refund.filter.unit_refund` | + | `Sylius\RefundPlugin\Generator\CreditMemoFileNameGeneratorInterface` | `sylius_refund.generator.credit_memo_file_name` | + | `Sylius\RefundPlugin\Generator\CreditMemoGeneratorInterface` | `sylius_refund.generator.credit_memo` | + | `Sylius\RefundPlugin\Generator\CreditMemoIdentifierGeneratorInterface` | `sylius_refund.generator.credit_memo_identifier` | + | `Sylius\RefundPlugin\Generator\CreditMemoNumberGeneratorInterface` | `sylius_refund.generator.credit_memo_number` | + | `Sylius\RefundPlugin\Generator\CreditMemoPdfFileGeneratorInterface` | `sylius_refund.generator.credit_memo_pdf_file` | + | `Sylius\RefundPlugin\Generator\PdfOptionsGeneratorInterface` | `sylius_refund.generator.pdf_options` | + | `Sylius\RefundPlugin\Generator\TaxItemsGeneratorInterface` | `sylius_refund.generator.tax_items` | + | `Sylius\RefundPlugin\Generator\TwigToPdfGeneratorInterface` | `sylius_refund.generator.twig_to_pdf` | + | `Sylius\RefundPlugin\Manager\CreditMemoFileManagerInterface` | `sylius_refund.manager.credit_memo_file` | + | `Sylius\RefundPlugin\ProcessManager\UnitsRefundedProcessManagerInterface` | `sylius_refund.process_manager.units_refunded` | + | `Sylius\RefundPlugin\Provider\CreditMemoFileProviderInterface` | `sylius_refund.provider.credit_memo_file` | + | `Sylius\RefundPlugin\Provider\CurrentDateTimeImmutableProviderInterface` | `sylius_refund.provider.current_date_time_immutable` | + | `Sylius\RefundPlugin\Provider\OrderRefundedTotalProviderInterface` | `sylius_refund.provider.order_refunded_total` | + | `Sylius\RefundPlugin\Provider\RefundedShipmentFeeProviderInterface` | `sylius_refund.provider.refunded_shipment_fee` | + | `Sylius\RefundPlugin\Provider\RefundPaymentMethodsProviderInterface` | `sylius_refund.provider.refund_payment_methods` | + | `Sylius\RefundPlugin\Provider\RelatedPaymentIdProviderInterface` | `sylius_refund.provider.related_payment_id` | + | `Sylius\RefundPlugin\Provider\RemainingTotalProviderInterface` | `sylius_refund.provider.remaining_total` | + | `Sylius\RefundPlugin\Provider\TaxRateProviderInterface` | `sylius_refund.provider.tax_rate` | + | `Sylius\RefundPlugin\Resolver\CreditMemoFilePathResolverInterface` | `sylius_refund.resolver.credit_memo_file_path` | + | `Sylius\RefundPlugin\Resolver\CreditMemoFileResolverInterface` | `sylius_refund.resolver.credit_memo_file` | + | `Sylius\RefundPlugin\ResponseBuilder\CreditMemoFileResponseBuilderInterface` | `sylius_refund.response_builder.credit_memo_file` | + | `Sylius\RefundPlugin\Sender\CreditMemoEmailSenderInterface` | `sylius_refund.email_sender.credit_memo` | + | `Sylius\RefundPlugin\StateResolver\OrderFullyRefundedStateResolverInterface` | `sylius_refund.state_resolver.order_fully_refunded` | + | `Sylius\RefundPlugin\StateResolver\OrderPartiallyRefundedStateResolverInterface` | `sylius_refund.state_resolver.order_partially_refunded` | + | `Sylius\RefundPlugin\StateResolver\RefundPaymentCompletedStateApplierInterface` | `sylius_refund.state_resolver.refund_payment_completed_applier` | + | `Sylius\RefundPlugin\Validator\RefundAmountValidatorInterface` | `sylius_refund.validator.refund_amount` | + | `Sylius\RefundPlugin\Validator\RefundUnitsCommandValidatorInterface` | `sylius_refund.validator.refund_units_command` | diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index 16e5c82e..e9f456b6 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -31,31 +31,29 @@ - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Calculator\UnitRefundTotalCalculatorInterface instead. - + - - + - - + @@ -64,15 +62,13 @@ - - + Sylius\RefundPlugin\Entity\CreditMemoSequence - - + null null @@ -80,7 +76,7 @@ - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Sender\CreditMemoEmailSenderInterface instead. @@ -89,15 +85,15 @@ The "%service_id%" service is deprecated and will be removed in RefundPlugin 2.0, there is no replacement. - - + + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\ResponseBuilder\CreditMemoFileResponseBuilderInterface instead. - + - + diff --git a/src/Resources/config/services/actions.xml b/src/Resources/config/services/actions.xml index 69ab7003..e882725b 100644 --- a/src/Resources/config/services/actions.xml +++ b/src/Resources/config/services/actions.xml @@ -19,22 +19,20 @@ - + %sylius_refund.pdf_generator.enabled% - - + %sylius_refund.pdf_generator.enabled% - - + @@ -42,9 +40,8 @@ - - + @@ -52,23 +49,20 @@ - - + - - + - diff --git a/src/Resources/config/services/checkers.xml b/src/Resources/config/services/checkers.xml index 1c8d3076..cdad0b76 100644 --- a/src/Resources/config/services/checkers.xml +++ b/src/Resources/config/services/checkers.xml @@ -19,37 +19,35 @@ - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Checker\CreditMemoCustomerRelationCheckerInterface instead. - + - - + - - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Checker\OrderFullyRefundedTotalCheckerInterface instead. - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Checker\UnitRefundingAvailabilityCheckerInterface instead. diff --git a/src/Resources/config/services/command_bus.xml b/src/Resources/config/services/command_bus.xml index 7a85220e..d332c0d4 100644 --- a/src/Resources/config/services/command_bus.xml +++ b/src/Resources/config/services/command_bus.xml @@ -19,16 +19,15 @@ - + - - + @@ -37,13 +36,11 @@ - - + - diff --git a/src/Resources/config/services/converters.xml b/src/Resources/config/services/converters.xml index 5be6c0e2..b9701f32 100644 --- a/src/Resources/config/services/converters.xml +++ b/src/Resources/config/services/converters.xml @@ -20,60 +20,58 @@ - + - + - + - + - + - + - + - The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Converter\LineItem\OrderItemUnitLineItemsConverter instead. - + - The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Converter\LineItem\ShipmentLineItemsConverter instead. - + - + diff --git a/src/Resources/config/services/creators.xml b/src/Resources/config/services/creators.xml index 0174e347..ee68a717 100644 --- a/src/Resources/config/services/creators.xml +++ b/src/Resources/config/services/creators.xml @@ -19,21 +19,21 @@ - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Creator\RefundCreatorInterface instead. - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Creator\RequestCommandCreatorInterface instead. diff --git a/src/Resources/config/services/event_bus.xml b/src/Resources/config/services/event_bus.xml index fbda7f61..1e9428ef 100644 --- a/src/Resources/config/services/event_bus.xml +++ b/src/Resources/config/services/event_bus.xml @@ -19,28 +19,26 @@ - + - - + - - + - + @@ -50,12 +48,10 @@ - - + - diff --git a/src/Resources/config/services/factories.xml b/src/Resources/config/services/factories.xml index e5f8a102..f62032e0 100644 --- a/src/Resources/config/services/factories.xml +++ b/src/Resources/config/services/factories.xml @@ -19,24 +19,25 @@ - - + + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Factory\CreditMemoSequenceFactoryInterface instead. - + %sylius_refund.refund_type% - + - + %sylius_refund.model.line_item.class% - + - - - diff --git a/src/Resources/config/services/filters.xml b/src/Resources/config/services/filters.xml index 29d729e5..ed0be70d 100644 --- a/src/Resources/config/services/filters.xml +++ b/src/Resources/config/services/filters.xml @@ -19,7 +19,7 @@ - - + + diff --git a/src/Resources/config/services/generators.xml b/src/Resources/config/services/generators.xml index 23ec0bd7..c936fa35 100644 --- a/src/Resources/config/services/generators.xml +++ b/src/Resources/config/services/generators.xml @@ -19,35 +19,35 @@ - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Generator\CreditMemoNumberGeneratorInterface instead. - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Generator\CreditMemoGeneratorInterface instead. - + - + null null @@ -58,32 +58,32 @@ - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Generator\CreditMemoPdfFileGeneratorInterface instead. - - + + - - + + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Generator\CreditMemoIdentifierGeneratorInterface instead. - + %knp_snappy.pdf.options% %sylius_refund.pdf_generator.allowed_files% - + - + - + diff --git a/src/Resources/config/services/listeners.xml b/src/Resources/config/services/listeners.xml index 96545f0f..5541cdb0 100644 --- a/src/Resources/config/services/listeners.xml +++ b/src/Resources/config/services/listeners.xml @@ -19,15 +19,13 @@ - + - - + - diff --git a/src/Resources/config/services/providers.xml b/src/Resources/config/services/providers.xml index 1b1e0e3d..31a49d5e 100644 --- a/src/Resources/config/services/providers.xml +++ b/src/Resources/config/services/providers.xml @@ -25,80 +25,78 @@ - + - + - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Provider\RefundedShipmentFeeProviderInterface instead. - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Provider\OrderRefundedTotalProviderInterface instead. - + - + - - + - - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Provider\RemainingTotalProviderInterface instead. - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Provider\UnitRefundedTotalProviderInterface instead. - + %sylius_refund.supported_gateways% - + - - + + diff --git a/src/Resources/config/services/queries.xml b/src/Resources/config/services/queries.xml index cefc7186..0da69616 100644 --- a/src/Resources/config/services/queries.xml +++ b/src/Resources/config/services/queries.xml @@ -19,14 +19,18 @@ - + - - + - diff --git a/src/Resources/config/services/resolvers.xml b/src/Resources/config/services/resolvers.xml index ed669044..f607826b 100644 --- a/src/Resources/config/services/resolvers.xml +++ b/src/Resources/config/services/resolvers.xml @@ -19,17 +19,17 @@ - + - + - + %sylius_refund.credit_memo_save_path% - + diff --git a/src/Resources/config/services/state_resolvers.xml b/src/Resources/config/services/state_resolvers.xml index 1e40cd32..304e0bc8 100644 --- a/src/Resources/config/services/state_resolvers.xml +++ b/src/Resources/config/services/state_resolvers.xml @@ -19,32 +19,32 @@ - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\StateResolver\OrderFullyRefundedStateResolverInterface instead. - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\StateResolver\OrderPartiallyRefundedStateResolverInterface instead. - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\StateResolver\RefundPaymentCompletedStateApplierInterface instead. diff --git a/src/Resources/config/services/validators.xml b/src/Resources/config/services/validators.xml index 98073614..fb00669b 100644 --- a/src/Resources/config/services/validators.xml +++ b/src/Resources/config/services/validators.xml @@ -19,34 +19,32 @@ - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Validator\RefundUnitsCommandValidatorInterface instead. - + - - + - - + - + The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Validator\RefundAmountValidatorInterface instead. From 586805f01f3ee00693a97db890ca307539f2137e Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 10:07:25 +0100 Subject: [PATCH 3/8] Replace deprecated parameters --- UPGRADE-2.0.md | 7 +++++++ src/Resources/config/services.xml | 7 ++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index fabdff5c..eb2f6b31 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -110,3 +110,10 @@ | `Sylius\RefundPlugin\StateResolver\RefundPaymentCompletedStateApplierInterface` | `sylius_refund.state_resolver.refund_payment_completed_applier` | | `Sylius\RefundPlugin\Validator\RefundAmountValidatorInterface` | `sylius_refund.validator.refund_amount` | | `Sylius\RefundPlugin\Validator\RefundUnitsCommandValidatorInterface` | `sylius_refund.validator.refund_units_command` | + +1. The following parameters have been renamed: + + | Old parameter | New parameter | + |------------------------------------|------------------------------------| + | `default_logo_file` | `sylius_refund.default_logo_file` | + | `sylius.refund.template.logo_file` | `sylius_refund.template.logo_file` | diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index e9f456b6..a97a6ed1 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -21,11 +21,8 @@ - @SyliusRefundPlugin/Resources/assets/sylius-logo.png - %env(default:sylius_refund.default_logo_file:resolve:SYLIUS_REFUND_LOGO_FILE)% - - %default_logo_file% - %sylius.refund.template.logo_file% + @SyliusRefundPlugin/Resources/assets/sylius-logo.png + %env(default:sylius_refund.default_logo_file:resolve:SYLIUS_REFUND_LOGO_FILE)% From 772fbaa5d04d95dbca7cf9b343651a0063717d6c Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 10:27:33 +0100 Subject: [PATCH 4/8] Change configuration root --- UPGRADE-2.0.md | 26 ++++++++++++----------- src/DependencyInjection/Configuration.php | 2 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index eb2f6b31..8870c417 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -2,22 +2,15 @@ 1. The way of customizing resource definition has been changed. - Before: - ```yaml - sylius_resource: + ```diff + - sylius_resource: + + sylius_refund: resources: - sylius_refund.sample_resource: + - sylius_refund.sample_resource: + + sample_resource: ... ``` - After: - ```yaml - sylius_refund: - resources: - sample_resource: - ... - ``` - 1. Doctrine migrations have been regenerated, meaning all previous migration files have been removed and their content is now in a single migration file. To apply the new migration and get rid of the old entries run migrations as usual: @@ -117,3 +110,12 @@ |------------------------------------|------------------------------------| | `default_logo_file` | `sylius_refund.default_logo_file` | | `sylius.refund.template.logo_file` | `sylius_refund.template.logo_file` | + +1. The following configuration parameters have been renamed: + + ```diff + - sylius_refund_plugin: + + sylius_refund: + pdf_generator: + ... + ``` diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 8c544081..e4ce713b 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -40,7 +40,7 @@ final class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder(): TreeBuilder { - $treeBuilder = new TreeBuilder('sylius_refund_plugin'); + $treeBuilder = new TreeBuilder('sylius_refund'); $rootNode = $treeBuilder->getRootNode(); $this->addResourcesSection($rootNode); From bdb8e2b0d5698ea87af60e682be9bfd75df5b44f Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 10:33:41 +0100 Subject: [PATCH 5/8] Replace buses by Sylius ones --- UPGRADE-2.0.md | 3 +++ src/Resources/config/app/config.yml | 12 ------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index 8870c417..dfe275bf 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -119,3 +119,6 @@ pdf_generator: ... ``` + +1. The buses `sylius_refund_plugin.command_bus` and `sylius_refund_plugin.event_bus` have been replaced + accordingly by `sylius.command_bus` and `sylius.event_bus`. diff --git a/src/Resources/config/app/config.yml b/src/Resources/config/app/config.yml index d2f5177a..7a567d20 100644 --- a/src/Resources/config/app/config.yml +++ b/src/Resources/config/app/config.yml @@ -19,18 +19,6 @@ sylius_mailer: subject: Units refunded template: "@SyliusRefundPlugin/Email/unitsRefunded.html.twig" -framework: - messenger: - buses: - sylius.command_bus: &command_bus - middleware: - - 'validation' - - 'doctrine_transaction' - sylius.event_bus: &event_bus - default_middleware: allow_no_handlers - sylius_refund_plugin.command_bus: *command_bus - sylius_refund_plugin.event_bus: *event_bus - winzou_state_machine: sylius_refund_refund_payment: class: Sylius\RefundPlugin\Entity\RefundPayment From 8cc41f4a5f079b3381347d9f00831cf3e803a669 Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 11:11:01 +0100 Subject: [PATCH 6/8] Remove deprecated aliases --- UPGRADE-2.0.md | 7 +++++++ src/Resources/config/services/converters.xml | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index dfe275bf..05b2bdd7 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -104,6 +104,13 @@ | `Sylius\RefundPlugin\Validator\RefundAmountValidatorInterface` | `sylius_refund.validator.refund_amount` | | `Sylius\RefundPlugin\Validator\RefundUnitsCommandValidatorInterface` | `sylius_refund.validator.refund_units_command` | +1. The following deprecated aliases have been removed, use the service IDs instead: + + | Old alias ID | Service Id | + |-----------------------------------------------------------------|------------------------------------------------------| + | `Sylius\RefundPlugin\Converter\OrderItemUnitLineItemsConverter` | `sylius_refund.converter.line_items.order_item_unit` | + | `Sylius\RefundPlugin\Converter\ShipmentLineItemsConverter` | `sylius_refund.converter.line_items.shipment` | + 1. The following parameters have been renamed: | Old parameter | New parameter | diff --git a/src/Resources/config/services/converters.xml b/src/Resources/config/services/converters.xml index b9701f32..3d87b085 100644 --- a/src/Resources/config/services/converters.xml +++ b/src/Resources/config/services/converters.xml @@ -55,9 +55,6 @@ - - The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Converter\LineItem\OrderItemUnitLineItemsConverter instead. - @@ -65,9 +62,6 @@ - - The "%alias_id%" service alias is deprecated and will be removed in RefundPlugin 2.0, use Sylius\RefundPlugin\Converter\LineItem\ShipmentLineItemsConverter instead. - From 4bb36df8b7377b0977e7c8ce5dfae13473de3c12 Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 14:40:12 +0100 Subject: [PATCH 7/8] Remove default false values for autowire and autoconfigure --- src/Resources/config/services.xml | 2 +- src/Resources/config/services/actions.xml | 2 +- src/Resources/config/services/checkers.xml | 2 +- src/Resources/config/services/command_bus.xml | 2 +- src/Resources/config/services/converters.xml | 2 +- src/Resources/config/services/creators.xml | 2 +- src/Resources/config/services/event_bus.xml | 2 +- src/Resources/config/services/factories.xml | 2 +- src/Resources/config/services/filters.xml | 2 +- src/Resources/config/services/generators.xml | 2 +- src/Resources/config/services/listeners.xml | 2 +- src/Resources/config/services/providers.xml | 2 +- src/Resources/config/services/queries.xml | 2 +- src/Resources/config/services/state_resolvers.xml | 2 +- src/Resources/config/services/validators.xml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index a97a6ed1..12394f3c 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -26,7 +26,7 @@ - + diff --git a/src/Resources/config/services/actions.xml b/src/Resources/config/services/actions.xml index e882725b..8c974564 100644 --- a/src/Resources/config/services/actions.xml +++ b/src/Resources/config/services/actions.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/checkers.xml b/src/Resources/config/services/checkers.xml index cdad0b76..d45b10f9 100644 --- a/src/Resources/config/services/checkers.xml +++ b/src/Resources/config/services/checkers.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/command_bus.xml b/src/Resources/config/services/command_bus.xml index d332c0d4..acdc9f26 100644 --- a/src/Resources/config/services/command_bus.xml +++ b/src/Resources/config/services/command_bus.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/converters.xml b/src/Resources/config/services/converters.xml index 3d87b085..d0aca320 100644 --- a/src/Resources/config/services/converters.xml +++ b/src/Resources/config/services/converters.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + - + diff --git a/src/Resources/config/services/event_bus.xml b/src/Resources/config/services/event_bus.xml index 1e9428ef..13fefa1a 100644 --- a/src/Resources/config/services/event_bus.xml +++ b/src/Resources/config/services/event_bus.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/factories.xml b/src/Resources/config/services/factories.xml index f62032e0..ca816fe3 100644 --- a/src/Resources/config/services/factories.xml +++ b/src/Resources/config/services/factories.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/filters.xml b/src/Resources/config/services/filters.xml index ed0be70d..4a704cac 100644 --- a/src/Resources/config/services/filters.xml +++ b/src/Resources/config/services/filters.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/generators.xml b/src/Resources/config/services/generators.xml index c936fa35..016771fd 100644 --- a/src/Resources/config/services/generators.xml +++ b/src/Resources/config/services/generators.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/listeners.xml b/src/Resources/config/services/listeners.xml index 5541cdb0..9d9d42ce 100644 --- a/src/Resources/config/services/listeners.xml +++ b/src/Resources/config/services/listeners.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + diff --git a/src/Resources/config/services/providers.xml b/src/Resources/config/services/providers.xml index 31a49d5e..09939b38 100644 --- a/src/Resources/config/services/providers.xml +++ b/src/Resources/config/services/providers.xml @@ -23,7 +23,7 @@ - + diff --git a/src/Resources/config/services/queries.xml b/src/Resources/config/services/queries.xml index 0da69616..44bd0a37 100644 --- a/src/Resources/config/services/queries.xml +++ b/src/Resources/config/services/queries.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + - + diff --git a/src/Resources/config/services/validators.xml b/src/Resources/config/services/validators.xml index fb00669b..cdfefdaf 100644 --- a/src/Resources/config/services/validators.xml +++ b/src/Resources/config/services/validators.xml @@ -17,7 +17,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - + From c9408d484a75db1512729515d068cacbe2bd2efb Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 25 Nov 2024 14:56:06 +0100 Subject: [PATCH 8/8] Make services private by default --- UPGRADE-2.0.md | 6 ++++++ src/Resources/config/services/checkers.xml | 2 -- src/Resources/config/services/command_bus.xml | 2 -- src/Resources/config/services/converters.xml | 2 -- src/Resources/config/services/creators.xml | 2 -- src/Resources/config/services/event_bus.xml | 7 +++---- src/Resources/config/services/factories.xml | 2 -- src/Resources/config/services/filters.xml | 2 -- src/Resources/config/services/generators.xml | 2 -- src/Resources/config/services/providers.xml | 2 -- src/Resources/config/services/queries.xml | 2 -- src/Resources/config/services/resolvers.xml | 2 -- src/Resources/config/services/state_resolvers.xml | 2 -- src/Resources/config/services/validators.xml | 2 -- 14 files changed, 9 insertions(+), 28 deletions(-) diff --git a/UPGRADE-2.0.md b/UPGRADE-2.0.md index 05b2bdd7..ec29d691 100644 --- a/UPGRADE-2.0.md +++ b/UPGRADE-2.0.md @@ -129,3 +129,9 @@ 1. The buses `sylius_refund_plugin.command_bus` and `sylius_refund_plugin.event_bus` have been replaced accordingly by `sylius.command_bus` and `sylius.event_bus`. + +1. The visibility of services has been changed to `private` by default. This change enhances the performance + and maintainability of the application and also follows Symfony's best practices for service encapsulation. + + Exceptions: + - Services required by Symfony to be `public` (e.g., controllers, event listeners) remain public. diff --git a/src/Resources/config/services/checkers.xml b/src/Resources/config/services/checkers.xml index d45b10f9..61f6c7fd 100644 --- a/src/Resources/config/services/checkers.xml +++ b/src/Resources/config/services/checkers.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - diff --git a/src/Resources/config/services/command_bus.xml b/src/Resources/config/services/command_bus.xml index acdc9f26..7735d9db 100644 --- a/src/Resources/config/services/command_bus.xml +++ b/src/Resources/config/services/command_bus.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - diff --git a/src/Resources/config/services/converters.xml b/src/Resources/config/services/converters.xml index d0aca320..5be09f48 100644 --- a/src/Resources/config/services/converters.xml +++ b/src/Resources/config/services/converters.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - - - diff --git a/src/Resources/config/services/event_bus.xml b/src/Resources/config/services/event_bus.xml index 13fefa1a..f6aa7859 100644 --- a/src/Resources/config/services/event_bus.xml +++ b/src/Resources/config/services/event_bus.xml @@ -17,14 +17,12 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - - + - + @@ -32,6 +30,7 @@ diff --git a/src/Resources/config/services/factories.xml b/src/Resources/config/services/factories.xml index ca816fe3..feee39a1 100644 --- a/src/Resources/config/services/factories.xml +++ b/src/Resources/config/services/factories.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - diff --git a/src/Resources/config/services/filters.xml b/src/Resources/config/services/filters.xml index 4a704cac..ee832b96 100644 --- a/src/Resources/config/services/filters.xml +++ b/src/Resources/config/services/filters.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - diff --git a/src/Resources/config/services/generators.xml b/src/Resources/config/services/generators.xml index 016771fd..9b33652d 100644 --- a/src/Resources/config/services/generators.xml +++ b/src/Resources/config/services/generators.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - diff --git a/src/Resources/config/services/providers.xml b/src/Resources/config/services/providers.xml index 09939b38..5549f36c 100644 --- a/src/Resources/config/services/providers.xml +++ b/src/Resources/config/services/providers.xml @@ -23,8 +23,6 @@ - - diff --git a/src/Resources/config/services/queries.xml b/src/Resources/config/services/queries.xml index 44bd0a37..1377e753 100644 --- a/src/Resources/config/services/queries.xml +++ b/src/Resources/config/services/queries.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - - - diff --git a/src/Resources/config/services/state_resolvers.xml b/src/Resources/config/services/state_resolvers.xml index 8e18ef4d..77ceaea8 100644 --- a/src/Resources/config/services/state_resolvers.xml +++ b/src/Resources/config/services/state_resolvers.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - - diff --git a/src/Resources/config/services/validators.xml b/src/Resources/config/services/validators.xml index cdfefdaf..8a9a3b14 100644 --- a/src/Resources/config/services/validators.xml +++ b/src/Resources/config/services/validators.xml @@ -17,8 +17,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" > - -