spree_core 6.0.5 → 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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/jobs/spree/payments/handle_modification_webhook_job.rb +93 -0
  3. data/app/jobs/spree/payments/handle_webhook_job.rb +4 -2
  4. data/app/maintenance_tasks/spree/maintenance_tasks/upgrade/backfill_settlement_statuses.rb +40 -0
  5. data/app/models/concerns/spree/customer_methods.rb +1 -1
  6. data/app/models/concerns/spree/product_scopes.rb +5 -2
  7. data/app/models/concerns/spree/purchase/payment_processing.rb +11 -0
  8. data/app/models/concerns/spree/purchase/purchase_order.rb +21 -0
  9. data/app/models/concerns/spree/purchase/totals.rb +3 -2
  10. data/app/models/concerns/spree/ransackable_attributes.rb +81 -4
  11. data/app/models/concerns/spree/settlement_status.rb +29 -0
  12. data/app/models/concerns/spree/stores/markets.rb +0 -30
  13. data/app/models/spree/base.rb +3 -3
  14. data/app/models/spree/category.rb +53 -32
  15. data/app/models/spree/collection_rule.rb +5 -1
  16. data/app/models/spree/export.rb +3 -1
  17. data/app/models/spree/exports/products.rb +9 -1
  18. data/app/models/spree/fulfillment.rb +23 -6
  19. data/app/models/spree/fulfillment_group.rb +2 -2
  20. data/app/models/spree/gateway/bogus.rb +41 -2
  21. data/app/models/spree/gift_card.rb +14 -2
  22. data/app/models/spree/media.rb +1 -1
  23. data/app/models/spree/option_type.rb +1 -0
  24. data/app/models/spree/order.rb +10 -4
  25. data/app/models/spree/order_group.rb +2 -2
  26. data/app/models/spree/payment/custom_events.rb +2 -1
  27. data/app/models/spree/payment/processing.rb +20 -3
  28. data/app/models/spree/payment.rb +186 -7
  29. data/app/models/spree/payment_capture_event.rb +2 -0
  30. data/app/models/spree/payment_method/store_credit.rb +6 -0
  31. data/app/models/spree/payment_method.rb +54 -2
  32. data/app/models/spree/payment_response.rb +19 -0
  33. data/app/models/spree/payment_session.rb +15 -3
  34. data/app/models/spree/payment_split.rb +14 -2
  35. data/app/models/spree/price.rb +1 -0
  36. data/app/models/spree/product.rb +4 -4
  37. data/app/models/spree/purchase_order.rb +20 -3
  38. data/app/models/spree/refund.rb +7 -1
  39. data/app/models/spree/return.rb +7 -1
  40. data/app/models/spree/search_provider/base.rb +10 -0
  41. data/app/models/spree/search_provider/database.rb +8 -5
  42. data/app/models/spree/store.rb +22 -0
  43. data/app/models/spree/store_credit.rb +1 -1
  44. data/app/models/spree/variant.rb +33 -0
  45. data/app/presenters/spree/csv/product_variant_presenter.rb +17 -8
  46. data/app/serializers/spree/emails/store_serializer.rb +1 -1
  47. data/app/services/spree/carts/split_by_seller.rb +4 -13
  48. data/app/services/spree/orders/create_from_cart.rb +2 -0
  49. data/app/services/spree/orders/update_statuses.rb +4 -2
  50. data/app/services/spree/store_credits/apply.rb +1 -1
  51. data/app/subscribers/spree/order_status_subscriber.rb +4 -3
  52. data/app/subscribers/spree/payment_split_subscriber.rb +39 -21
  53. data/app/subscribers/spree/seller_transfer_reversal_subscriber.rb +19 -7
  54. data/app/tools/spree/agent_tools/query_report.rb +116 -14
  55. data/app/workflows/spree/carts/complete.rb +1 -19
  56. data/app/workflows/spree/carts/recalculate_totals.rb +3 -3
  57. data/app/workflows/spree/orders/cancel.rb +19 -0
  58. data/app/workflows/spree/orders/complete.rb +7 -1
  59. data/app/workflows/spree/payments/capture.rb +99 -5
  60. data/app/workflows/spree/payments/handle_modification_webhook.rb +218 -0
  61. data/app/workflows/spree/payments/handle_webhook.rb +7 -1
  62. data/app/workflows/spree/payments/process.rb +47 -4
  63. data/app/workflows/spree/payments/void.rb +4 -1
  64. data/app/workflows/spree/products/approve.rb +17 -0
  65. data/app/workflows/spree/refunds/create.rb +10 -1
  66. data/app/workflows/spree/refunds/order_payments.rb +3 -1
  67. data/config/locales/be.yml +2 -2
  68. data/config/locales/bg.yml +4 -4
  69. data/config/locales/en.yml +8 -0
  70. data/config/locales/ru.yml +3 -3
  71. data/db/migrate/20261116100001_add_status_to_spree_payment_capture_events_and_refunds.rb +17 -0
  72. data/lib/spree/agent_tool.rb +11 -4
  73. data/lib/spree/core/dependencies.rb +1 -0
  74. data/lib/spree/core/version.rb +1 -1
  75. data/lib/spree/reporting/adapters/live.rb +69 -8
  76. data/lib/spree/reporting/default_vocabulary.rb +10 -4
  77. data/lib/spree/reporting/query.rb +4 -1
  78. data/lib/spree/reporting/registry.rb +50 -3
  79. data/lib/spree/testing_support/factories/payment_capture_event_factory.rb +10 -0
  80. data/lib/spree/testing_support/factories/refund_factory.rb +10 -0
  81. data/lib/spree/upgrades/5_6_to_6_0/manifest.yml +57 -0
  82. metadata +23 -4
@@ -65,7 +65,7 @@ module Spree
65
65
 
66
66
  query.aggregated_metrics.group_by(&:base).each do |base, metrics|
67
67
  scope = base_scope(base, range, grouped: grouped)
68
- selects = metrics.map { |m| "#{resolve_sql(m.sql_for(grouped: grouped))} AS #{metric_alias(m)}" }
68
+ selects = metrics.map { |m| "#{metric_sql(m, scope: scope, grouped: grouped)} AS #{metric_alias(m)}" }
69
69
 
70
70
  if grouped
71
71
  dimension_selects = query.dimensions.map do |d|
@@ -111,6 +111,49 @@ module Spree
111
111
  scope.reorder(nil)
112
112
  end
113
113
 
114
+ # A metric's aggregate for this query, resolved against the scope it
115
+ # runs on. A metric reading a joined row (grouped_sql) only reads it
116
+ # when the scope actually carries that join — grouping by product
117
+ # never joins discounts, so it falls back to the per-line subquery.
118
+ #
119
+ # The subquery form receives the filters on the dimensions that read
120
+ # the same joined rows (%{dimension_filters}): filtered to one
121
+ # promotion, a line also carrying another must contribute only the
122
+ # filtered promotion's money, not the line's combined discount.
123
+ def metric_sql(metric, scope:, grouped:)
124
+ joins = grouped ? carried_joins(scope) : []
125
+ format(metric.sql_for(grouped: grouped, joins: joins),
126
+ placeholders.merge(dimension_filters: joined_row_filters(metric)))
127
+ end
128
+
129
+ # The joins the scope carries, in ActiveRecord's joins format. Compared
130
+ # by full association path (Reporting.join_paths): a join reached
131
+ # through another base's path (`{ order: :ship_address }`) is not the
132
+ # base's own `:ship_address`, and `{ variant: :product }` does not
133
+ # bring in `{ variant: { product: :product_categories } }`.
134
+ def carried_joins(scope)
135
+ scope.joins_values + scope.left_outer_joins_values
136
+ end
137
+
138
+ # Extra subquery conditions for the filters on dimensions that read
139
+ # the rows this metric's grouped_joins would join. Values bind through
140
+ # Arel quoting and the column is a validated identifier.
141
+ def joined_row_filters(metric)
142
+ return '' if metric.grouped_joins.blank?
143
+
144
+ query.filters.filter_map do |filter|
145
+ dimension = filter[:dimension]
146
+ next unless dimension.base == metric.base
147
+ # The dimension's column must live on rows the subquery itself
148
+ # reads: one joining past them (`{ promotion_discounts: :promotion }`)
149
+ # would name a table the subquery has no FROM entry for.
150
+ next if dimension.joins.blank?
151
+ next unless Reporting.joins_cover?(metric.grouped_joins, dimension.joins)
152
+
153
+ " AND #{in_predicate(qualified_column(dimension), filter[:values]).to_sql}"
154
+ end.join
155
+ end
156
+
114
157
  # Dimension joins are declared from their own base; they only apply
115
158
  # when the executing scope is that base (an :orders-based metric never
116
159
  # joins line-item tables — validate_bases! guarantees compatibility).
@@ -141,13 +184,18 @@ module Spree
141
184
  metric = filter[:metric]
142
185
  next unless names.include?(metric.name)
143
186
 
144
- # The value rides as a bind rather than an interpolation: it is
145
- # the only piece of request data that reaches the statement, and
146
- # the aggregate beside it is registered SQL.
187
+ # The value is quoted by Arel rather than interpolated: it is the
188
+ # only piece of request data that reaches the comparison, and the
189
+ # aggregate beside it is registered SQL. Not a `?` bind: the
190
+ # aggregate can carry quoted filter values of its own (a coupon
191
+ # code containing `?`), and ActiveRecord would count those as
192
+ # placeholders too and refuse the statement.
147
193
  scope = scope.having(
148
- Arel.sql("#{resolve_sql(metric.sql_for(grouped: true))} " \
149
- "#{COMPARISONS.fetch(filter[:op]).first} ?"),
150
- filter[:value]
194
+ Arel::Nodes::InfixOperation.new(
195
+ COMPARISONS.fetch(filter[:op]).first,
196
+ Arel::Nodes::Grouping.new(Arel.sql(metric_sql(metric, scope: scope, grouped: true))),
197
+ Arel::Nodes.build_quoted(filter[:value])
198
+ )
151
199
  )
152
200
  end
153
201
 
@@ -170,11 +218,24 @@ module Spree
170
218
  table = scope.klass.arel_table
171
219
  ids = join_for(base_relation(base, range), dimension, base).where(predicate).select(table[:id])
172
220
  scope = scope.where(table[:id].in(ids.arel))
221
+ # When the grouped query already joins the rows this filter
222
+ # reads, the id subquery alone keeps every joined row of a
223
+ # matching line: filtered to one promotion and grouped by
224
+ # promotion, a line carrying two would still report the other
225
+ # one's group. Narrow the joined rows themselves as well.
226
+ scope = scope.where(predicate) if joins_rows_of?(scope, dimension, base)
173
227
  end
174
228
  end
175
229
  scope
176
230
  end
177
231
 
232
+ # Only when the scope carries the dimension's whole join path: grouped
233
+ # by product, a category filter's product_categories table is not in
234
+ # the FROM clause even though its first hop (variant) is.
235
+ def joins_rows_of?(scope, dimension, base)
236
+ dimension.base == base && Reporting.joins_cover?(carried_joins(scope), dimension.joins)
237
+ end
238
+
178
239
  # `column IN (values)` as an Arel node. The column is a validated
179
240
  # identifier (see #qualified_column) and the values bind as parameters,
180
241
  # so no request data reaches the statement as text.
@@ -236,7 +297,7 @@ module Spree
236
297
  def apply_sql_sort(scope, metrics)
237
298
  return scope unless metrics.any? { |m| m.name == sort_metric.name }
238
299
 
239
- scope.order(Arel.sql("#{resolve_sql(sort_metric.sql_for(grouped: true))} " \
300
+ scope.order(Arel.sql("#{metric_sql(sort_metric, scope: scope, grouped: true)} " \
240
301
  "#{query.sort[:direction] == :desc ? 'DESC' : 'ASC'}"))
241
302
  .limit(query.limit)
242
303
  end
@@ -84,13 +84,18 @@ module Spree
84
84
  # off: a subquery over the line gives both rows the combined figure, and
85
85
  # the breakdown then adds up to double what the store discounted.
86
86
  #
87
- # The grouped query is the only one that carries the join (Decision 13),
88
- # so the dimensionless total uses the subquery form below instead.
87
+ # Only a query grouped by a promotion dimension carries the join
88
+ # (Decision 13), so the dimensionless total and breakdowns by any other
89
+ # dimension use the subquery form below instead (see grouped_joins).
89
90
  PROMOTION_DISCOUNTS_JOINED = 'SUM(-COALESCE(%{discounts}.amount, 0))'.freeze
90
91
 
92
+ # Unaliased so a promotion or coupon filter (%{dimension_filters}, which
93
+ # names %{discounts}.promotion_id) narrows these rows: filtered to one
94
+ # promotion, a line carrying two must count only that promotion's money.
91
95
  PROMOTION_DISCOUNTS_SUBQUERY = <<~SQL.squish.freeze
92
- SUM(COALESCE((SELECT -SUM(d.amount) FROM %{discounts} d
93
- WHERE d.line_item_id = %{line_items}.id AND d.kind = 'promotion'), 0))
96
+ SUM(COALESCE((SELECT -SUM(%{discounts}.amount) FROM %{discounts}
97
+ WHERE %{discounts}.line_item_id = %{line_items}.id AND %{discounts}.kind = 'promotion'
98
+ %{dimension_filters}), 0))
94
99
  SQL
95
100
 
96
101
  # Checkouts that used a promotion. Counted in checkouts rather than
@@ -406,6 +411,7 @@ module Spree
406
411
 
407
412
  metric :promotion_discounts, sql: PROMOTION_DISCOUNTS_SUBQUERY,
408
413
  grouped_sql: PROMOTION_DISCOUNTS_JOINED,
414
+ grouped_joins: [:promotion_discounts],
409
415
  base: :line_items, format: :money,
410
416
  subject: -> { Spree::Promotion }, key_scope: 'read_promotions'
411
417
  # Counted in checkouts, not orders: a basket spanning several sellers
@@ -201,7 +201,10 @@ module Spree
201
201
  dimension = registry.dimension!(member_name(name, 'dimension'))
202
202
 
203
203
  if dimension.time?
204
- grain = (grain || dimension.grains.first).to_sym
204
+ grain = dimension.grains.first if ['', nil].include?(grain)
205
+ raise InvalidQuery, "grain for #{dimension.name} must be a string" unless grain.is_a?(String) || grain.is_a?(Symbol)
206
+
207
+ grain = grain.to_sym
205
208
  unless dimension.grains.include?(grain)
206
209
  raise InvalidQuery, "invalid grain #{grain} for #{dimension.name}. Valid grains: #{dimension.grains.join(', ')}"
207
210
  end
@@ -1,5 +1,29 @@
1
1
  module Spree
2
2
  module Reporting
3
+ # Every association path a joins spec reaches, in ActiveRecord's joins
4
+ # format: `[{ variant: { product: :product_categories } }]` reaches
5
+ # [:variant], [:variant, :product] and [:variant, :product, :product_categories].
6
+ # Comparing paths rather than top-level names keeps a nested join from
7
+ # passing for its first hop alone.
8
+ #
9
+ # @param joins [Symbol, String, Hash, Array, nil]
10
+ # @return [Array<Array<Symbol>>]
11
+ def self.join_paths(joins, prefix = [])
12
+ case joins
13
+ when Hash
14
+ joins.flat_map { |name, nested| [prefix + [name.to_sym]] + join_paths(nested, prefix + [name.to_sym]) }
15
+ when Array then joins.flat_map { |join| join_paths(join, prefix) }
16
+ when Symbol, String then [prefix + [joins.to_sym]]
17
+ else []
18
+ end.uniq
19
+ end
20
+
21
+ # Whether the joins carried cover every association path the required
22
+ # joins reach.
23
+ def self.joins_cover?(carried, required)
24
+ (join_paths(required) - join_paths(carried)).empty?
25
+ end
26
+
3
27
  # A metric aggregates rows into one number.
4
28
  #
5
29
  # @!attribute sql
@@ -26,16 +50,35 @@ module Spree
26
50
  # @!attribute grouped_sql
27
51
  # Optional aggregate used only for the grouped query, where dimension
28
52
  # joins are present. See #sql_for.
53
+ # @!attribute grouped_joins
54
+ # The dimension joins grouped_sql reads from. The grouped query carries
55
+ # only the joins of the dimensions it groups by, so grouped_sql applies
56
+ # only when one of them brought these in; any other grouping falls back
57
+ # to `sql`. Required with grouped_sql. A `sql` that reads the same rows
58
+ # through a subquery may embed `%{dimension_filters}`, which receives the
59
+ # filters on dimensions joining those rows as extra AND conditions.
29
60
  # @!attribute suggests
30
61
  # Metric to reach for instead when this one is refused for a breakdown
31
62
  # it cannot answer — named in the error so a caller learns the
32
63
  # vocabulary from the refusal rather than by trial.
33
64
  Metric = Struct.new(:name, :sql, :base, :format, :ratio, :subject, :key_scope,
34
- :requires_grouping, :suggests, :grouped_sql, keyword_init: true) do
65
+ :requires_grouping, :suggests, :grouped_sql, :grouped_joins, keyword_init: true) do
35
66
  # The aggregate to use when the query carries its dimension joins. A
36
67
  # metric whose money lives on a joined row reads it directly there, and
37
- # falls back to `sql` for the dimensionless total, which has no joins.
38
- def sql_for(grouped:) = (grouped && grouped_sql.presence) || sql
68
+ # falls back to `sql` when that row is not joined: for the dimensionless
69
+ # total, which has no joins, and for a breakdown by a dimension that does
70
+ # not join it (promotion discounts by seller), where the joined table is
71
+ # not in the FROM clause at all.
72
+ #
73
+ # @param grouped [Boolean] whether this is the grouped query
74
+ # @param joins [Array<Symbol, Hash>] the joins the grouped query carries,
75
+ # in ActiveRecord's joins format
76
+ # @return [String]
77
+ def sql_for(grouped:, joins: [])
78
+ return sql unless grouped && grouped_sql.present? && grouped_joins.present?
79
+
80
+ Reporting.joins_cover?(joins, grouped_joins) ? grouped_sql : sql
81
+ end
39
82
 
40
83
  def derived? = ratio.present?
41
84
 
@@ -230,6 +273,10 @@ module Spree
230
273
  raise ArgumentError, "metric #{name} declares a subject and must also declare its key_scope"
231
274
  end
232
275
 
276
+ if opts[:grouped_sql].present? && opts[:grouped_joins].blank?
277
+ raise ArgumentError, "metric #{name} declares grouped_sql and must also declare the grouped_joins it reads"
278
+ end
279
+
233
280
  opts[:format] ||= :integer
234
281
  @metrics[name] = Metric.new(name: name, **opts)
235
282
  end
@@ -2,5 +2,15 @@ FactoryBot.define do
2
2
  factory :payment_capture_event, class: Spree::PaymentCaptureEvent do
3
3
  payment
4
4
  amount { 10.0 }
5
+ status { 'completed' }
6
+
7
+ trait :requested do
8
+ status { 'requested' }
9
+ transaction_id { "capture-#{SecureRandom.hex(6)}" }
10
+ end
11
+
12
+ trait :failed do
13
+ status { 'failed' }
14
+ end
5
15
  end
6
16
  end
@@ -6,6 +6,16 @@ FactoryBot.define do
6
6
  transaction_id { generate(:refund_transaction_id) }
7
7
  association(:payment, status: 'completed')
8
8
  association(:reason, factory: :refund_reason)
9
+ status { 'completed' }
10
+
11
+ trait :requested do
12
+ status { 'requested' }
13
+ end
14
+
15
+ trait :failed do
16
+ status { 'failed' }
17
+ failure_reason { 'Refused by the provider' }
18
+ end
9
19
  end
10
20
 
11
21
  factory :default_refund_reason, class: Spree::RefundReason do
@@ -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
@@ -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"
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.5
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-16 00:00:00.000000000 Z
13
+ date: 2026-11-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n-tasks
@@ -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
@@ -2357,9 +2376,9 @@ licenses:
2357
2376
  - BSD-3-Clause
2358
2377
  metadata:
2359
2378
  bug_tracker_uri: https://github.com/spree/spree/issues
2360
- changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.5
2379
+ changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.6
2361
2380
  documentation_uri: https://spreecommerce.org/docs/
2362
- source_code_uri: https://github.com/spree/spree/tree/v6.0.5
2381
+ source_code_uri: https://github.com/spree/spree/tree/v6.0.6
2363
2382
  post_install_message:
2364
2383
  rdoc_options: []
2365
2384
  require_paths: