spree_core 6.0.4 → 6.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/jobs/spree/imports/create_rows_job.rb +4 -2
- data/app/jobs/spree/imports/process_rows_job.rb +4 -2
- data/app/jobs/spree/payments/handle_modification_webhook_job.rb +93 -0
- data/app/jobs/spree/payments/handle_webhook_job.rb +4 -2
- data/app/jobs/spree/products/auto_match_taxons_job.rb +5 -2
- data/app/jobs/spree/search_provider/index_job.rb +8 -0
- data/app/jobs/spree/search_provider/remove_job.rb +3 -0
- data/app/jobs/spree/stock_locations/stock_items/create_job.rb +5 -2
- data/app/mailers/spree/base_mailer.rb +1 -1
- data/app/maintenance_tasks/spree/maintenance_tasks/upgrade/backfill_settlement_statuses.rb +40 -0
- data/app/models/concerns/spree/acted_by.rb +2 -2
- data/app/models/concerns/spree/customer_methods.rb +7 -5
- data/app/models/concerns/spree/deprecated_customer_alias.rb +11 -3
- data/app/models/concerns/spree/derived_number.rb +1 -1
- data/app/models/concerns/spree/has_custom_fields.rb +12 -10
- data/app/models/concerns/spree/integrations_concern.rb +5 -3
- data/app/models/concerns/spree/label_translatable.rb +4 -4
- data/app/models/concerns/spree/metadata.rb +3 -3
- data/app/models/concerns/spree/presentation_translatable.rb +1 -1
- data/app/models/concerns/spree/product_scopes.rb +5 -2
- data/app/models/concerns/spree/purchase/addresses.rb +8 -5
- data/app/models/concerns/spree/purchase/deprecated_aliases.rb +2 -2
- data/app/models/concerns/spree/purchase/payment_processing.rb +11 -0
- data/app/models/concerns/spree/purchase/purchase_order.rb +21 -0
- data/app/models/concerns/spree/purchase/totals.rb +3 -2
- data/app/models/concerns/spree/ransackable_attributes.rb +81 -4
- data/app/models/concerns/spree/settlement_status.rb +29 -0
- data/app/models/concerns/spree/stores/markets.rb +4 -32
- data/app/models/concerns/spree/user_address.rb +5 -2
- data/app/models/concerns/spree/user_methods.rb +2 -2
- data/app/models/spree/address.rb +29 -14
- data/app/models/spree/asset.rb +3 -3
- data/app/models/spree/base.rb +4 -4
- data/app/models/spree/calculator/shipping/flat_rate.rb +6 -4
- data/app/models/spree/cart.rb +2 -2
- data/app/models/spree/category.rb +61 -38
- data/app/models/spree/classification.rb +2 -2
- data/app/models/spree/collection_rule.rb +5 -1
- data/app/models/spree/current.rb +19 -0
- data/app/models/spree/custom_field.rb +6 -6
- data/app/models/spree/custom_field_definition.rb +10 -7
- data/app/models/spree/delivery_method.rb +21 -15
- data/app/models/spree/delivery_rate.rb +1 -1
- data/app/models/spree/digital.rb +1 -1
- data/app/models/spree/digital_asset.rb +2 -2
- data/app/models/spree/digital_link.rb +4 -4
- data/app/models/spree/export.rb +32 -3
- data/app/models/spree/exports/products.rb +9 -1
- data/app/models/spree/fulfillment/custom_events.rb +18 -10
- data/app/models/spree/fulfillment.rb +53 -29
- data/app/models/spree/fulfillment_group.rb +2 -2
- data/app/models/spree/fulfillment_item.rb +3 -3
- data/app/models/spree/fulfilment_changer.rb +1 -1
- data/app/models/spree/gateway/bogus.rb +41 -2
- data/app/models/spree/gift_card.rb +26 -14
- data/app/models/spree/import.rb +23 -15
- data/app/models/spree/import_row.rb +6 -6
- data/app/models/spree/inventory_unit.rb +1 -1
- data/app/models/spree/invitation.rb +8 -4
- data/app/models/spree/line_item.rb +10 -8
- data/app/models/spree/media.rb +3 -3
- data/app/models/spree/metafield.rb +1 -1
- data/app/models/spree/metafield_definition.rb +1 -1
- data/app/models/spree/metafields.rb +2 -2
- data/app/models/spree/option_type.rb +27 -0
- data/app/models/spree/option_value.rb +3 -3
- data/app/models/spree/order.rb +97 -49
- data/app/models/spree/order_group.rb +2 -2
- data/app/models/spree/order_inventory.rb +2 -2
- data/app/models/spree/order_merger.rb +2 -2
- data/app/models/spree/order_updater.rb +34 -20
- data/app/models/spree/payment/custom_events.rb +2 -1
- data/app/models/spree/payment/processing.rb +20 -3
- data/app/models/spree/payment.rb +194 -15
- data/app/models/spree/payment_capture_event.rb +2 -0
- data/app/models/spree/payment_method/store_credit.rb +6 -0
- data/app/models/spree/payment_method.rb +65 -11
- data/app/models/spree/payment_response.rb +19 -0
- data/app/models/spree/payment_session.rb +15 -3
- data/app/models/spree/payment_split.rb +14 -2
- data/app/models/spree/price.rb +20 -8
- data/app/models/spree/price_list.rb +12 -6
- data/app/models/spree/price_rules/zone_rule.rb +1 -1
- data/app/models/spree/product.rb +30 -28
- data/app/models/spree/product_category.rb +3 -3
- data/app/models/spree/promotion/rules/category.rb +27 -10
- data/app/models/spree/promotion/rules/country.rb +1 -1
- data/app/models/spree/promotion/rules/taxon.rb +4 -2
- data/app/models/spree/promotion/rules/user.rb +1 -1
- data/app/models/spree/promotion_action.rb +1 -1
- data/app/models/spree/promotion_rule_category.rb +5 -5
- data/app/models/spree/promotion_rule_taxon.rb +2 -2
- data/app/models/spree/prototype.rb +4 -1
- data/app/models/spree/purchase_order.rb +20 -3
- data/app/models/spree/refund.rb +7 -1
- data/app/models/spree/return.rb +7 -1
- data/app/models/spree/return_authorization_reason.rb +3 -3
- data/app/models/spree/return_reason.rb +1 -1
- data/app/models/spree/search_provider/base.rb +12 -2
- data/app/models/spree/search_provider/database.rb +8 -5
- data/app/models/spree/search_provider.rb +7 -5
- data/app/models/spree/shipment.rb +4 -1
- data/app/models/spree/shipping_method.rb +4 -1
- data/app/models/spree/shipping_rate.rb +1 -1
- data/app/models/spree/stock/coordinator.rb +2 -2
- data/app/models/spree/stock/estimator.rb +7 -5
- data/app/models/spree/stock/package.rb +10 -8
- data/app/models/spree/stock_item.rb +1 -1
- data/app/models/spree/stock_level/custom_events.rb +1 -1
- data/app/models/spree/stock_level.rb +1 -1
- data/app/models/spree/stock_location.rb +12 -8
- data/app/models/spree/stock_movement.rb +6 -6
- data/app/models/spree/stock_reservation.rb +5 -5
- data/app/models/spree/store.rb +64 -16
- data/app/models/spree/store_credit.rb +3 -3
- data/app/models/spree/store_credit_category.rb +5 -5
- data/app/models/spree/store_credit_type.rb +2 -2
- data/app/models/spree/subscriber.rb +7 -7
- data/app/models/spree/tax_rate.rb +5 -5
- data/app/models/spree/taxon.rb +3 -3
- data/app/models/spree/taxon_rule.rb +2 -2
- data/app/models/spree/taxonomy.rb +1 -1
- data/app/models/spree/variant.rb +45 -10
- data/app/models/spree/variant_media.rb +1 -1
- data/app/models/spree/wished_item.rb +1 -1
- data/app/models/spree/wishlist.rb +2 -2
- data/app/models/spree/wishlist_item/custom_events.rb +2 -2
- data/app/models/spree/zone.rb +1 -1
- data/app/models/spree/zone_member.rb +1 -1
- data/app/presenters/spree/csv/product_variant_presenter.rb +17 -8
- data/app/serializers/spree/emails/store_serializer.rb +1 -1
- data/app/services/spree/carts/associate.rb +6 -2
- data/app/services/spree/carts/create.rb +1 -1
- data/app/services/spree/carts/destroy.rb +1 -1
- data/app/services/spree/carts/remove_item.rb +1 -1
- data/app/services/spree/carts/remove_line_item.rb +2 -2
- data/app/services/spree/carts/remove_out_of_stock_items.rb +3 -1
- data/app/services/spree/carts/set_quantity.rb +2 -2
- data/app/services/spree/carts/split_by_seller.rb +4 -13
- data/app/services/spree/carts/update.rb +17 -0
- data/app/services/spree/checkout/add_store_credit.rb +3 -3
- data/app/services/spree/checkout/remove_store_credit.rb +2 -2
- data/app/services/spree/imports/row_processors/product_variant.rb +19 -0
- data/app/services/spree/orders/approve.rb +3 -3
- data/app/services/spree/orders/create_from_cart.rb +2 -0
- data/app/services/spree/orders/create_user_account.rb +2 -2
- data/app/services/spree/orders/update_statuses.rb +4 -2
- data/app/services/spree/products/auto_match_taxons.rb +5 -2
- data/app/services/spree/shipments/update.rb +2 -2
- data/app/services/spree/stock_locations/stock_items/create.rb +5 -2
- data/app/services/spree/stock_reservations/extend.rb +3 -1
- data/app/services/spree/stock_reservations/reserve.rb +3 -1
- data/app/services/spree/store_credits/apply.rb +1 -1
- data/app/services/spree/taxons/add_products.rb +4 -2
- data/app/services/spree/taxons/regenerate_products.rb +5 -2
- data/app/services/spree/taxons/remove_products.rb +4 -2
- data/app/subscribers/spree/order_status_subscriber.rb +4 -3
- data/app/subscribers/spree/payment_split_subscriber.rb +39 -21
- data/app/subscribers/spree/seller_transfer_reversal_subscriber.rb +19 -7
- data/app/tools/spree/agent_tools/query_report.rb +116 -14
- data/app/workflows/spree/carts/add_item.rb +1 -1
- data/app/workflows/spree/carts/complete.rb +1 -19
- data/app/workflows/spree/carts/recalculate.rb +1 -1
- data/app/workflows/spree/carts/recalculate_totals.rb +3 -3
- data/app/workflows/spree/fulfillments/update.rb +1 -1
- data/app/workflows/spree/orders/cancel.rb +22 -1
- data/app/workflows/spree/orders/complete.rb +7 -1
- data/app/workflows/spree/payments/capture.rb +101 -7
- data/app/workflows/spree/payments/handle_modification_webhook.rb +218 -0
- data/app/workflows/spree/payments/handle_webhook.rb +7 -1
- data/app/workflows/spree/payments/process.rb +47 -4
- data/app/workflows/spree/payments/void.rb +4 -1
- data/app/workflows/spree/products/approve.rb +17 -0
- data/app/workflows/spree/refunds/create.rb +10 -1
- data/app/workflows/spree/refunds/order_payments.rb +3 -1
- data/app/workflows/spree/seller_transfers/create.rb +1 -1
- data/config/locales/be.yml +2 -2
- data/config/locales/bg.yml +4 -4
- data/config/locales/en.yml +12 -0
- data/config/locales/ru.yml +3 -3
- data/db/migrate/20260710000001_rename_taxons_to_categories.rb +1 -1
- data/db/migrate/20260728000004_rename_shipping_to_fulfillment_and_delivery.rb +1 -1
- data/db/migrate/20260806000001_add_store_id_to_spree_tax_rates_and_categories.rb +1 -1
- data/db/migrate/20260807130001_add_country_state_codes_to_consumers.rb +1 -1
- data/db/migrate/20260809000001_rename_metafields_to_custom_fields.rb +1 -1
- data/db/migrate/20260809150001_promote_shipping_categories_to_delivery_profiles.rb +1 -1
- data/db/migrate/20260811000001_add_delivery_tracking_to_fulfillments.rb +1 -1
- data/db/migrate/20260824000001_add_store_to_spree_media.rb +1 -1
- data/db/migrate/20260828100001_unify_import_and_export_tenancy.rb +1 -1
- data/db/migrate/20261016000001_remove_default_from_spree_tax_rates_included_in_price.rb +1 -1
- data/db/migrate/20261116100001_add_status_to_spree_payment_capture_events_and_refunds.rb +17 -0
- data/lib/spree/agent_tool.rb +11 -4
- data/lib/spree/agent_tools/default_catalog.rb +2 -2
- data/lib/spree/agent_tools/legacy_tools.rb +1 -1
- data/lib/spree/core/dependencies.rb +11 -10
- data/lib/spree/core/engine.rb +4 -0
- data/lib/spree/core/number_generator.rb +4 -3
- data/lib/spree/core/preferences/preferable.rb +1 -1
- data/lib/spree/core/preferences/preferable_class_methods.rb +5 -1
- data/lib/spree/core/pricing/resolver.rb +2 -2
- data/lib/spree/core/version.rb +1 -1
- data/lib/spree/core.rb +37 -10
- data/lib/spree/i18n.rb +6 -2
- data/lib/spree/localized_number.rb +1 -1
- data/lib/spree/removed_apis.rb +274 -0
- data/lib/spree/reporting/adapters/live.rb +69 -8
- data/lib/spree/reporting/default_vocabulary.rb +11 -5
- data/lib/spree/reporting/query.rb +4 -1
- data/lib/spree/reporting/registry.rb +50 -3
- data/lib/spree/testing_support/factories/digital_asset_factory.rb +1 -1
- data/lib/spree/testing_support/factories/payment_capture_event_factory.rb +10 -0
- data/lib/spree/testing_support/factories/refund_factory.rb +10 -0
- data/lib/spree/testing_support/factories/stock_level_factory.rb +1 -1
- data/lib/spree/testing_support/factories/taxon_factory.rb +1 -1
- data/lib/spree/testing_support/factories/taxonomy_factory.rb +1 -1
- data/lib/spree/testing_support/factories/wishlist_item_factory.rb +1 -1
- data/lib/spree/testing_support/i18n.rb +7 -2
- data/lib/spree/testing_support/order_walkthrough.rb +5 -2
- data/lib/spree/upgrades/5_6_to_6_0/manifest.yml +71 -14
- data/lib/tasks/carts_migration.rake +1 -1
- data/lib/tasks/categories_and_collections.rake +1 -1
- data/lib/tasks/deliveries_migration.rake +1 -1
- data/lib/tasks/delivery_method_rules_migration.rake +1 -1
- data/lib/tasks/delivery_migration.rake +1 -1
- data/lib/tasks/delivery_profiles_migration.rake +2 -2
- data/lib/tasks/fold_store_credit_categories.rake +1 -1
- data/lib/tasks/migrate_country_state_codes.rake +1 -1
- data/lib/tasks/migrate_returns.rake +4 -4
- data/lib/tasks/migrate_rich_text_to_columns.rake +1 -1
- data/lib/tasks/store_settings.rake +1 -1
- data/lib/tasks/typed_stock_movements_migration.rake +1 -1
- metadata +26 -6
|
@@ -68,7 +68,7 @@ steps:
|
|
|
68
68
|
polymorphic type column an extension points at media rows.
|
|
69
69
|
|
|
70
70
|
Run immediately after db:migrate. Spree::Asset stays readable as a
|
|
71
|
-
deprecated alias until 6.
|
|
71
|
+
deprecated alias until 6.3, so code referencing it keeps working either
|
|
72
72
|
way; this step is about the stored strings.
|
|
73
73
|
|
|
74
74
|
Idempotent — rows already saying Spree::Media are left alone.
|
|
@@ -205,7 +205,7 @@ steps:
|
|
|
205
205
|
|
|
206
206
|
Only copies where an Action Text row exists, so content already in the
|
|
207
207
|
column is never overwritten. Source rows are left in place as the rollback
|
|
208
|
-
path and are dropped with the Action Text tables in 6.
|
|
208
|
+
path and are dropped with the Action Text tables in 6.3. Idempotent.
|
|
209
209
|
|
|
210
210
|
- id: migrate_shipping_to_delivery
|
|
211
211
|
name: "Backfill fulfillment & delivery naming"
|
|
@@ -247,7 +247,7 @@ steps:
|
|
|
247
247
|
inside the other profile if both links were intended. Run after
|
|
248
248
|
migrate_shipping_to_delivery (it reads the backfilled fulfillment
|
|
249
249
|
providers). Idempotent — processed rows gain a store_id and drop out of
|
|
250
|
-
the work set. spree_shipping_method_categories survives to 6.
|
|
250
|
+
the work set. spree_shipping_method_categories survives to 6.3 as the
|
|
251
251
|
source and rollback reference.
|
|
252
252
|
|
|
253
253
|
- id: migrate_fulfillment_statuses
|
|
@@ -388,7 +388,7 @@ steps:
|
|
|
388
388
|
Reads the legacy tables by name (the legacy models are gone in 6.0) and
|
|
389
389
|
writes history without validation, so rows referencing deleted variants
|
|
390
390
|
or stock locations still copy. The legacy tables stay in place as a
|
|
391
|
-
safety net and are dropped in 6.
|
|
391
|
+
safety net and are dropped in 6.3.
|
|
392
392
|
|
|
393
393
|
Resumable by construction: the legacy number is copied onto the new
|
|
394
394
|
record and uniquely indexed there, so the task scopes itself to the
|
|
@@ -437,7 +437,7 @@ steps:
|
|
|
437
437
|
a fulfillment shipped before the task runs never gets an allocation,
|
|
438
438
|
and dispatch only ships allocated units, so its stock is never
|
|
439
439
|
decremented twice. originator_type and originator_id stay in place as
|
|
440
|
-
the rollback path and are dropped in 6.
|
|
440
|
+
the rollback path and are dropped in 6.3. Tune the load size with
|
|
441
441
|
BATCH_SIZE (default 5000).
|
|
442
442
|
|
|
443
443
|
- id: backfill_delivery_and_stock_store_ids
|
|
@@ -446,7 +446,7 @@ steps:
|
|
|
446
446
|
notes: |
|
|
447
447
|
Delivery methods and stock locations carry a store_id in Spree 6.
|
|
448
448
|
Unassigned rows go to the default store; additional stores manage
|
|
449
|
-
their own records afterwards. The NOT NULL constraints land in 6.
|
|
449
|
+
their own records afterwards. The NOT NULL constraints land in 6.3.
|
|
450
450
|
Idempotent.
|
|
451
451
|
|
|
452
452
|
- id: migrate_tax_zones
|
|
@@ -476,7 +476,7 @@ steps:
|
|
|
476
476
|
afterwards. Category names become unique per store rather than globally,
|
|
477
477
|
so installs that relied on global names may need to reconcile duplicates
|
|
478
478
|
once several stores hold tax configuration. The NOT NULL constraints land
|
|
479
|
-
in 6.
|
|
479
|
+
in 6.3. Idempotent.
|
|
480
480
|
|
|
481
481
|
- id: backfill_market_tax_inclusive
|
|
482
482
|
name: "Decide whether each market's prices include tax"
|
|
@@ -524,7 +524,7 @@ steps:
|
|
|
524
524
|
orders that predate markets. Channel needs no step here — the 5.4→5.5
|
|
525
525
|
manifest's channels step already backfills channel_id on every upgrade
|
|
526
526
|
path. Run before the cart conversion so converted carts inherit
|
|
527
|
-
resolved values. The NOT NULL constraints on spree_orders land in 6.
|
|
527
|
+
resolved values. The NOT NULL constraints on spree_orders land in 6.3.
|
|
528
528
|
Idempotent.
|
|
529
529
|
|
|
530
530
|
- id: migrate_incomplete_orders_to_carts
|
|
@@ -573,7 +573,7 @@ steps:
|
|
|
573
573
|
a non-default value of its own.
|
|
574
574
|
|
|
575
575
|
Remove the settings from your initializer afterwards — the globals are
|
|
576
|
-
deprecated and are deleted in 6.
|
|
576
|
+
deprecated and are deleted in 6.3.
|
|
577
577
|
|
|
578
578
|
Idempotent: each store is visited at most once, recorded in its metadata,
|
|
579
579
|
so a later run never undoes a change made in the dashboard after the
|
|
@@ -594,8 +594,8 @@ steps:
|
|
|
594
594
|
own setting. Run after store_settings_backfill_from_config so the store
|
|
595
595
|
they inherit from already holds the right value.
|
|
596
596
|
|
|
597
|
-
The auto_capture column stays readable as a fallback
|
|
598
|
-
is dropped in 6.
|
|
597
|
+
The auto_capture column stays readable as a fallback until 6.3 and
|
|
598
|
+
is dropped in 6.3. Idempotent — only rows without a capture_method are
|
|
599
599
|
written.
|
|
600
600
|
|
|
601
601
|
- id: store_regional_settings
|
|
@@ -632,6 +632,12 @@ steps:
|
|
|
632
632
|
do not carry it, so a filter naming two or more option types matches
|
|
633
633
|
nothing until the index is rebuilt.
|
|
634
634
|
|
|
635
|
+
Option values are now indexed only from variants that are not
|
|
636
|
+
discontinued and have a price (unless the store shows products without
|
|
637
|
+
one), with a second set for the "in stock" filter, and `in_stock` counts
|
|
638
|
+
backorderable stock as the database provider does. Until the rebuild,
|
|
639
|
+
an option filter combined with "in stock" matches nothing.
|
|
640
|
+
|
|
635
641
|
Safe to run at any time and safe to repeat; it re-enqueues every product.
|
|
636
642
|
|
|
637
643
|
- id: fold_store_credit_categories
|
|
@@ -642,7 +648,7 @@ steps:
|
|
|
642
648
|
originator (return, exchange, claim, gift card) plus the memo, so this
|
|
643
649
|
copies each legacy category name into the memo of credits that have
|
|
644
650
|
none. Admin-written memos are never overwritten. Idempotent, and a
|
|
645
|
-
no-op once the legacy tables are dropped in 6.
|
|
651
|
+
no-op once the legacy tables are dropped in 6.3.
|
|
646
652
|
|
|
647
653
|
- id: migrate_stripe_webhook_keys
|
|
648
654
|
name: "Move Stripe webhook signing secrets onto the gateway"
|
|
@@ -660,7 +666,7 @@ steps:
|
|
|
660
666
|
Until this runs, a gateway carrying a pre-6.0 endpoint has no signing
|
|
661
667
|
secret and rejects incoming webhooks. Idempotent — gateways that already
|
|
662
668
|
hold a secret are skipped, and the legacy tables stay in place as a
|
|
663
|
-
rollback path until they are dropped in 6.
|
|
669
|
+
rollback path until they are dropped in 6.3.
|
|
664
670
|
|
|
665
671
|
- id: migrate_paypal_payments
|
|
666
672
|
name: "Give PayPal payments taken before 6.0 the PayPal order id"
|
|
@@ -696,6 +702,57 @@ steps:
|
|
|
696
702
|
|
|
697
703
|
Idempotent.
|
|
698
704
|
|
|
705
|
+
- id: backfill_settlement_statuses
|
|
706
|
+
name: "Mark existing capture events and refunds as completed"
|
|
707
|
+
task_class: "Spree::MaintenanceTasks::Upgrade::BackfillSettlementStatuses"
|
|
708
|
+
notes: |
|
|
709
|
+
Capture events and refunds gained a status in a 6.0 patch release: a
|
|
710
|
+
payment provider may now accept a capture or refund and report its
|
|
711
|
+
outcome later by webhook, and the row waits as requested until it does.
|
|
712
|
+
The migration adds the column empty. This marks every existing row
|
|
713
|
+
completed, since that money already moved. Until it runs, an empty status
|
|
714
|
+
reads as completed, so no total changes.
|
|
715
|
+
|
|
716
|
+
Stores already on 6.0 run it after updating to that patch release, with
|
|
717
|
+
`spree upgrade --step backfill_settlement_statuses`.
|
|
718
|
+
|
|
719
|
+
Idempotent, and supports a dry run.
|
|
720
|
+
|
|
721
|
+
- id: migrate_adyen_payments
|
|
722
|
+
name: "Give Adyen payments taken before 6.0 their PSP reference"
|
|
723
|
+
task_class: "SpreeAdyen::MaintenanceTasks::MigratePayments"
|
|
724
|
+
optional: true
|
|
725
|
+
notes: |
|
|
726
|
+
Only runs when spree_adyen is installed; skipped otherwise.
|
|
727
|
+
|
|
728
|
+
In 6.0 an Adyen payment keeps its PSP reference in its metadata, where
|
|
729
|
+
captures, cancels, refunds and the dashboard link read it. This copies it
|
|
730
|
+
there for payments from the 5.x legacy checkout, moves the capture and
|
|
731
|
+
cancellation references 5.x kept in custom fields, and marks payments
|
|
732
|
+
left in 5.x's capture_pending or void_pending as captured or void.
|
|
733
|
+
Payment-session payments 5.x never gave a PSP reference cannot be
|
|
734
|
+
recovered: they are counted and logged by id, to handle in Adyen, as are
|
|
735
|
+
the payments it marks done.
|
|
736
|
+
|
|
737
|
+
Stores already on 6.0 run it with `spree upgrade --step migrate_adyen_payments`.
|
|
738
|
+
Supports a dry run, and is idempotent.
|
|
739
|
+
|
|
740
|
+
- id: configure_adyen_gateways
|
|
741
|
+
name: "Configure each Adyen payment method's webhook and keys"
|
|
742
|
+
task: "spree:upgrade:configure_adyen_gateways"
|
|
743
|
+
optional: true
|
|
744
|
+
notes: |
|
|
745
|
+
Only runs when spree_adyen is installed; skipped otherwise.
|
|
746
|
+
|
|
747
|
+
Moves each Adyen method's previous HMAC key out of its metadata, which
|
|
748
|
+
the Admin API returns, into a secret preference, then configures the
|
|
749
|
+
method: client key, allowed origins, and a webhook on the 6.0 URL. A
|
|
750
|
+
webhook 5.x left on /adyen/webhooks is moved in place, keeping its key
|
|
751
|
+
and the deliveries Adyen queued for it.
|
|
752
|
+
|
|
753
|
+
Stores already on 6.0 run it with `spree upgrade --step configure_adyen_gateways`.
|
|
754
|
+
Idempotent.
|
|
755
|
+
|
|
699
756
|
- id: backfill_import_export_tenancy
|
|
700
757
|
name: "Place every import in a store, and a seller where one ran it"
|
|
701
758
|
task: "spree:upgrade:backfill_import_export_tenancy"
|
|
@@ -711,7 +768,7 @@ steps:
|
|
|
711
768
|
are invisible to every scoped query, including the admin list.
|
|
712
769
|
|
|
713
770
|
The owner_type/owner_id columns stay in place as this step's source and
|
|
714
|
-
its rollback path; they are dropped in 6.
|
|
771
|
+
its rollback path; they are dropped in 6.3, along with the deprecated
|
|
715
772
|
Import#owner reader. Exports need no data step — they have always had a
|
|
716
773
|
store, and their seller_id column is new for everyone.
|
|
717
774
|
|
|
@@ -29,7 +29,7 @@ namespace :spree do
|
|
|
29
29
|
stats = Hash.new(0)
|
|
30
30
|
|
|
31
31
|
# spree_state_changes has no model anymore (removed in 6.0; the table
|
|
32
|
-
# survives until 6.
|
|
32
|
+
# survives until 6.3 as legacy data), so read it anonymously.
|
|
33
33
|
state_changes = Class.new(ActiveRecord::Base) { self.table_name = 'spree_state_changes' }
|
|
34
34
|
|
|
35
35
|
incomplete = Spree::Order.unscoped.where(completed_at: nil, canceled_at: nil)
|
|
@@ -132,7 +132,7 @@ namespace :spree do
|
|
|
132
132
|
puts "\n migrated #{migrated}, skipped #{skipped}, failed #{failed}. (Manual categories stay as categories.)"
|
|
133
133
|
|
|
134
134
|
# Sever the taxonomy structure from the surviving (manual) categories — in 6.0
|
|
135
|
-
# categories are store-owned; Taxonomy + the taxonomy_id column drop in 6.
|
|
135
|
+
# categories are store-owned; Taxonomy + the taxonomy_id column drop in 6.3.
|
|
136
136
|
puts 'Severing taxonomy links from surviving categories...'
|
|
137
137
|
|
|
138
138
|
# Drop legacy taxonomy roots (parentless, taxonomy-backed containers) left with no
|
|
@@ -14,7 +14,7 @@ namespace :spree do
|
|
|
14
14
|
created = 0
|
|
15
15
|
skipped = 0
|
|
16
16
|
|
|
17
|
-
# The column is dropped in 6.
|
|
17
|
+
# The column is dropped in 6.3; until then the model reads tracking from
|
|
18
18
|
# the delivery, so the legacy value is read straight off the row.
|
|
19
19
|
fulfillments = Spree::Fulfillment.unscoped.
|
|
20
20
|
where.not(tracking: [nil, '']).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# 5.6 → 6.0: fold the FlatRate calculator's eligibility bound preferences
|
|
4
4
|
# into DeliveryMethodRule rows (docs/plans/6.0-delivery-method-rules.md).
|
|
5
5
|
# The calculator preferences keep working as a deprecation bridge through
|
|
6
|
-
# 6.0; this task moves the data so the bridge can drop in 6.
|
|
6
|
+
# 6.0; this task moves the data so the bridge can drop in 6.3.
|
|
7
7
|
namespace :spree do
|
|
8
8
|
desc 'Convert FlatRate calculator eligibility bounds into delivery method rules'
|
|
9
9
|
task migrate_calculator_bounds_to_delivery_method_rules: :environment do
|
|
@@ -11,7 +11,7 @@ namespace :spree do
|
|
|
11
11
|
say = ->(message) { puts message }
|
|
12
12
|
|
|
13
13
|
# 1. Stored polymorphic class names. spree_state_changes has no model
|
|
14
|
-
# anymore (removed in 6.0; the table survives until 6.
|
|
14
|
+
# anymore (removed in 6.0; the table survives until 6.3 as legacy data),
|
|
15
15
|
# so it is read through an anonymous ActiveRecord class.
|
|
16
16
|
state_changes = Class.new(ActiveRecord::Base) { self.table_name = 'spree_state_changes' }
|
|
17
17
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# deliberately left out: store assignment, kind detection, folding
|
|
8
8
|
# non-narrowing categories into the store default, and re-homing methods
|
|
9
9
|
# from the legacy method↔category m:n (spree_shipping_method_categories,
|
|
10
|
-
# which survives to 6.
|
|
10
|
+
# which survives to 6.3 as this task's source and rollback reference).
|
|
11
11
|
namespace :spree do
|
|
12
12
|
desc 'Assign 5.x shipping-category rows their store, kind and methods as delivery profiles'
|
|
13
13
|
task migrate_delivery_profiles: :environment do
|
|
@@ -104,6 +104,6 @@ namespace :spree do
|
|
|
104
104
|
puts "store #{store.code}: #{count} unassigned products moved to the default profile" if count.positive?
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
puts 'migrate_delivery_profiles done. spree_shipping_method_categories is kept until 6.
|
|
107
|
+
puts 'migrate_delivery_profiles done. spree_shipping_method_categories is kept until 6.3 as the rollback reference.'
|
|
108
108
|
end
|
|
109
109
|
end
|
|
@@ -6,7 +6,7 @@ namespace :spree do
|
|
|
6
6
|
credit exists is its originator (return, exchange, claim, gift card)
|
|
7
7
|
plus the free-text memo — so this keeps the only information a
|
|
8
8
|
category row held visible in the dashboard once the column and table
|
|
9
|
-
are dropped in 6.
|
|
9
|
+
are dropped in 6.3.
|
|
10
10
|
|
|
11
11
|
Only credits with a blank memo are touched, so nothing an admin wrote
|
|
12
12
|
is overwritten. Idempotent — a credit whose memo is already filled is
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Defined here rather than in lib/spree/core/ — this is a one-release upgrade
|
|
2
|
-
# step that dies with the country and state tables in 6.
|
|
2
|
+
# step that dies with the country and state tables in 6.3, not engine
|
|
3
3
|
# infrastructure. Same placement as Spree::ReturnsMigrator in a sibling task.
|
|
4
4
|
module Spree
|
|
5
5
|
# Copies country and state foreign keys onto the ISO string columns that
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Defined here rather than in lib/spree/core/ — this is a one-release upgrade
|
|
2
|
-
# step that dies with the legacy tables in 6.
|
|
2
|
+
# step that dies with the legacy tables in 6.3, not engine infrastructure.
|
|
3
3
|
# Same placement as Spree::TypedAdjustmentsMigration in the sibling task.
|
|
4
4
|
module Spree
|
|
5
5
|
# Copies the legacy ReturnAuthorization chain onto the 6.0 Return and
|
|
@@ -28,7 +28,7 @@ module Spree
|
|
|
28
28
|
@failed = []
|
|
29
29
|
# Schema facts, fixed for the life of the run. The column outlives the
|
|
30
30
|
# table by a release: Spree::Refund stopped declaring the association
|
|
31
|
-
# in 6.0 and the column drops in 6.
|
|
31
|
+
# in 6.0 and the column drops in 6.3.
|
|
32
32
|
@relink_refunds = connection.table_exists?('spree_reimbursements') &&
|
|
33
33
|
connection.column_exists?(Spree::Refund.table_name, :reimbursement_id)
|
|
34
34
|
end
|
|
@@ -248,7 +248,7 @@ module Spree
|
|
|
248
248
|
#
|
|
249
249
|
# Addresses spree_refunds.reimbursement_id by column name rather than
|
|
250
250
|
# through the association: Spree::Refund no longer declares it in 6.0,
|
|
251
|
-
# and the column itself is dropped in 6.
|
|
251
|
+
# and the column itself is dropped in 6.3.
|
|
252
252
|
def relink_refunds(items, record)
|
|
253
253
|
return unless @relink_refunds
|
|
254
254
|
|
|
@@ -281,7 +281,7 @@ namespace :spree do
|
|
|
281
281
|
|
|
282
282
|
Reads the legacy tables by name through throwaway model classes; the
|
|
283
283
|
legacy models themselves are deleted in 6.0. The tables stay in place as
|
|
284
|
-
a rollback safety net and drop in 6.
|
|
284
|
+
a rollback safety net and drop in 6.3.
|
|
285
285
|
|
|
286
286
|
A row that can't be converted is reported and skipped so one bad
|
|
287
287
|
authorization doesn't stop the batch, but the task then aborts, because
|
|
@@ -22,7 +22,7 @@ namespace :spree do
|
|
|
22
22
|
Idempotent — a row whose column already matches the sanitized Action Text
|
|
23
23
|
body is skipped, and writes go through +update_all+ so timestamps and
|
|
24
24
|
webhooks don't churn. Source rows are left in place as the rollback path and
|
|
25
|
-
are dropped with the Action Text tables in 6.
|
|
25
|
+
are dropped with the Action Text tables in 6.3.
|
|
26
26
|
DESC
|
|
27
27
|
task migrate_rich_text_to_columns: :environment do
|
|
28
28
|
# Action Text is not loaded by Spree any more — 6.0 stores rich text in its
|
|
@@ -58,7 +58,7 @@ namespace :spree do
|
|
|
58
58
|
Idempotent: each store is copied to at most once and stores already
|
|
59
59
|
carrying a non-default value are left alone, so a merchant's own change
|
|
60
60
|
is never overwritten. Remove the settings from your initializer
|
|
61
|
-
afterwards — the globals are deprecated and are deleted in 6.
|
|
61
|
+
afterwards — the globals are deprecated and are deleted in 6.3.
|
|
62
62
|
DESC
|
|
63
63
|
task backfill_from_config: :environment do
|
|
64
64
|
changed = Spree::StoreSettingsBackfill::MOVED_SETTINGS.reject do |name, config|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Defined here rather than in lib/spree/core/ — this is a one-release upgrade
|
|
4
|
-
# step that dies with the polymorphic originator in 6.
|
|
4
|
+
# step that dies with the polymorphic originator in 6.3, not engine
|
|
5
5
|
# infrastructure. Same placement as Spree::ReturnsMigrator in a sibling task.
|
|
6
6
|
module Spree
|
|
7
7
|
# Types the legacy stock-movement history and reconciles open fulfillments
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0.
|
|
4
|
+
version: 6.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Schofield
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-11-
|
|
13
|
+
date: 2026-11-23 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: i18n-tasks
|
|
@@ -142,14 +142,14 @@ dependencies:
|
|
|
142
142
|
requirements:
|
|
143
143
|
- - "~>"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 6.0.0.
|
|
145
|
+
version: 6.0.0.rc3
|
|
146
146
|
type: :runtime
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: 6.0.0.
|
|
152
|
+
version: 6.0.0.rc3
|
|
153
153
|
- !ruby/object:Gem::Dependency
|
|
154
154
|
name: friendly_id
|
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -212,6 +212,20 @@ dependencies:
|
|
|
212
212
|
- - "~>"
|
|
213
213
|
- !ruby/object:Gem::Version
|
|
214
214
|
version: '2.4'
|
|
215
|
+
- !ruby/object:Gem::Dependency
|
|
216
|
+
name: regexp_parser
|
|
217
|
+
requirement: !ruby/object:Gem::Requirement
|
|
218
|
+
requirements:
|
|
219
|
+
- - "<"
|
|
220
|
+
- !ruby/object:Gem::Version
|
|
221
|
+
version: 2.13.2
|
|
222
|
+
type: :runtime
|
|
223
|
+
prerelease: false
|
|
224
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
225
|
+
requirements:
|
|
226
|
+
- - "<"
|
|
227
|
+
- !ruby/object:Gem::Version
|
|
228
|
+
version: 2.13.2
|
|
215
229
|
- !ruby/object:Gem::Dependency
|
|
216
230
|
name: jwt
|
|
217
231
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -694,6 +708,7 @@ files:
|
|
|
694
708
|
- app/jobs/spree/maintenance_tasks/run_job.rb
|
|
695
709
|
- app/jobs/spree/orders/finalize_stale_drafts_job.rb
|
|
696
710
|
- app/jobs/spree/payments/cancel_unused_sessions_job.rb
|
|
711
|
+
- app/jobs/spree/payments/handle_modification_webhook_job.rb
|
|
697
712
|
- app/jobs/spree/payments/handle_webhook_job.rb
|
|
698
713
|
- app/jobs/spree/price_lists/sync_currencies_job.rb
|
|
699
714
|
- app/jobs/spree/product_types/apply_to_products_job.rb
|
|
@@ -725,6 +740,7 @@ files:
|
|
|
725
740
|
- app/mailers/spree/seller_user_mailer.rb
|
|
726
741
|
- app/mailers/spree/webhook_mailer.rb
|
|
727
742
|
- app/maintenance_tasks/spree/maintenance_tasks/upgrade/backfill_order_markets.rb
|
|
743
|
+
- app/maintenance_tasks/spree/maintenance_tasks/upgrade/backfill_settlement_statuses.rb
|
|
728
744
|
- app/maintenance_tasks/spree/maintenance_tasks/upgrade/capture_methods.rb
|
|
729
745
|
- app/maintenance_tasks/spree/maintenance_tasks/upgrade/deliveries.rb
|
|
730
746
|
- app/maintenance_tasks/spree/maintenance_tasks/upgrade/order_coupon_codes.rb
|
|
@@ -814,6 +830,7 @@ files:
|
|
|
814
830
|
- app/models/concerns/spree/search_indexable.rb
|
|
815
831
|
- app/models/concerns/spree/searchable.rb
|
|
816
832
|
- app/models/concerns/spree/secret_preferences.rb
|
|
833
|
+
- app/models/concerns/spree/settlement_status.rb
|
|
817
834
|
- app/models/concerns/spree/signed_id_attachments.rb
|
|
818
835
|
- app/models/concerns/spree/single_store_resource.rb
|
|
819
836
|
- app/models/concerns/spree/store_data_sources.rb
|
|
@@ -1550,6 +1567,7 @@ files:
|
|
|
1550
1567
|
- app/workflows/spree/orders/upsert_items.rb
|
|
1551
1568
|
- app/workflows/spree/payment_sessions/complete.rb
|
|
1552
1569
|
- app/workflows/spree/payments/capture.rb
|
|
1570
|
+
- app/workflows/spree/payments/handle_modification_webhook.rb
|
|
1553
1571
|
- app/workflows/spree/payments/handle_webhook.rb
|
|
1554
1572
|
- app/workflows/spree/payments/process.rb
|
|
1555
1573
|
- app/workflows/spree/payments/void.rb
|
|
@@ -1985,6 +2003,7 @@ files:
|
|
|
1985
2003
|
- db/migrate/20261030100001_scope_payment_sources_profile_id_uniqueness_to_payment_method.rb
|
|
1986
2004
|
- db/migrate/20261031000001_add_last_active_at_to_spree_admin_users.rb
|
|
1987
2005
|
- db/migrate/20261031100001_delete_orphaned_spree_option_value_variants.rb
|
|
2006
|
+
- db/migrate/20261116100001_add_status_to_spree_payment_capture_events_and_refunds.rb
|
|
1988
2007
|
- db/sample_data/channels.rb
|
|
1989
2008
|
- db/sample_data/collections.rb
|
|
1990
2009
|
- db/sample_data/custom_field_definitions.rb
|
|
@@ -2101,6 +2120,7 @@ files:
|
|
|
2101
2120
|
- lib/spree/migrations.rb
|
|
2102
2121
|
- lib/spree/money.rb
|
|
2103
2122
|
- lib/spree/number_generators/registry.rb
|
|
2123
|
+
- lib/spree/removed_apis.rb
|
|
2104
2124
|
- lib/spree/reporting.rb
|
|
2105
2125
|
- lib/spree/reporting/adapters/base.rb
|
|
2106
2126
|
- lib/spree/reporting/adapters/live.rb
|
|
@@ -2356,9 +2376,9 @@ licenses:
|
|
|
2356
2376
|
- BSD-3-Clause
|
|
2357
2377
|
metadata:
|
|
2358
2378
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
2359
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.
|
|
2379
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.6
|
|
2360
2380
|
documentation_uri: https://spreecommerce.org/docs/
|
|
2361
|
-
source_code_uri: https://github.com/spree/spree/tree/v6.0.
|
|
2381
|
+
source_code_uri: https://github.com/spree/spree/tree/v6.0.6
|
|
2362
2382
|
post_install_message:
|
|
2363
2383
|
rdoc_options: []
|
|
2364
2384
|
require_paths:
|