Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add the Integrations Admin: API, SDK and dashboard for provider credentials

Damian Legawiec78bf912245c9
diff --git a/CLAUDE.md b/CLAUDE.md
index 58f48b7391..28c4a6b136 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -27,7 +27,7 @@ Active plans (6.0 target, work pending):
- `6.0-tax-provider.md` — Per-Market TaxProvider, replaces TaxRate.adjust + Calculator; TaxRate gets direct country/state FKs (tax decoupled from Zone; Zone model dropped in 6.0 via `6.0-delivery-zones.md`); reference provider: Avalara (decisions.md 2026-07-30)
- `6.0-delivery-rate-provider.md` — Per-DeliveryMethod DeliveryRateProvider wrapping Stock::Estimator (calculators stay — 2026-07-27 reversal), `store_id` on ShippingMethod, enriched DeliveryRate (carrier/service/date/metadata); monorepo ships one reference multi-carrier provider (**EasyPost** — decisions.md 2026-08-06 reversal: BYOCA fit for larger merchants + only maintained official Ruby SDK; Shippo's ruby gem dead since 2020); method rows stay regional (no cross-market method entity)
- `6.0-delivery-zones.md` — Zone → DeliveryZone with postal-code-range/prefix members (country-scoped); owns the full ~183-reference Zone consumer inventory; `Spree::Zone` dropped entirely by end of 6.0 (2026-07-27 — 6.0 is the breaking-change window)
-- `6.0-integrations-admin.md` — `Spree::Integration` as the single credential surface for all provider seams (delivery rates/tax/fulfillment/pickup points): explicit `Spree.integrations` registry, Admin API v3 CRUD + types discovery (reusing `PreferenceSchema`/`Masking` — secrets are `:password` preferences), dashboard `/settings/integrations` gallery grouped by `integration_group`. Verify-before-activate (`active: true` runs `can_connect?`, 422 on failure), ephemeral connection status. Constraints now: provider gems ship an Integration subclass (no env-var credential contracts for per-store providers); no per-provider credential UIs — pickers deep-link to the integrations page.
+- `6.0-integrations-admin.md` — **Implemented (2026-08-06).** `Spree::Integration` as the single credential surface for all provider seams (delivery rates/tax/fulfillment/pickup points): explicit `Spree.integrations` registry, Admin API v3 CRUD + types discovery (reusing `PreferenceSchema`/`Masking` — secrets are `:password` preferences), dashboard `/settings/integrations` gallery grouped by `integration_group`. Verify-before-activate (`active: true` runs `can_connect?`, 422 on failure), ephemeral connection status. Constraints now: provider gems ship an Integration subclass (no env-var credential contracts for per-store providers); no per-provider credential UIs — pickers deep-link to the integrations page.
- `6.0-rich-text-descriptions.md` — Drop ActionText **entirely** at 6.0 (incl. CustomFields::RichText values + Order/User internal notes; gem dependency removed), store sanitized HTML in text columns, serve `field` + `field_html`, **write via `field_html`** (read/write symmetry). description_html serializer shipped 5.4; sanitizer shipped in **5.6.2** with a permissive-but-safe configurable allowlist + `sanitize_rich_text` step in the 5.5→5.6 upgrade manifest (decisions.md 2026-07-27/28), tightened to the Tiptap set at 6.0
- `6.0-inventory-operations.md` — StockTransfer lifecycle (draft → ready_to_ship → in_transit → received with partial receive), new `Spree::PurchaseOrder` + `Spree::Supplier` (renamed from Vendor — `Spree::Vendor` is the marketplace seller, see decisions.md 2026-07-14) replacing today's "external receive" hack, variant + stock-location stock history panels. Consumes the typed-movement primitives from `6.0-typed-stock-movements.md`.
- `6.0-replace-taxons-with-categories.md` — Split Taxon into Category (hierarchy) + Collection (flat/rule-based). **Shipped to 6-0-dev (PR #14302):** the Category surface (5.5–5.6) plus the 6.0 core — `spree_taxons`→`spree_categories` table rename + inheritance flip (`Spree::Category < Spree.base_class`, `Spree::Taxon` alias kept), the full `Collection` stack (model + rules + DB/Meilisearch manual sort + API), the taxon→category/collection data migration, and de-ruling Category. Pending (all 6.1): channel-aware `CollectionRules::AvailableOn` (ships interim now, rides with channels) + dropping `spree_taxon_rules`/`Taxonomy`. No brand feature in 6.0 — brands are modeled as a Category/Collection; `brand_taxon`/`brand_name` removed with `Taxonomy`.
@@ -80,6 +80,7 @@ Shipped plans:
| `spree/core` | Ruby gem — models, services, business logic (`spree_core`) |
| `spree/api` | Ruby gem — Store & Admin REST APIs (`spree_api`) |
| `spree/emails` | Ruby gem — transactional emails (optional). Rebuilt + modernized in 5.6. The default email stack for installations without a storefront app (e.g. mobile apps); headless storefronts may instead own consumer emails via webhooks. |
+| `spree/easypost` | Ruby gem (`spree_easypost`, optional) — reference `DeliveryRateProvider`: live EasyPost carrier rates + per-store credentials via `SpreeEasyPost::Integration`. |
| `spree/dashboard` | Ruby gem (`spree_dashboard`, optional) — hosts a built React Dashboard at `/dashboard` from `Spree::Dashboard.dist_path` / `SPREE_DASHBOARD_DIST_PATH` (single-node topology). Successor slot to `spree_admin` at 6.0. |
| `packages/dashboard` | `@spree/dashboard` — React SPA admin dashboard (Spree 6.0, replaces `spree/admin`). The deployable app shell, routes, schemas, resource hooks, locales. |
| `packages/dashboard-ui` | `@spree/dashboard-ui` — design system. Shadcn primitives + headless composed components + tokens. Source-only; consumer compiles via Vite/Tailwind. **Components are headless: data comes via props, no provider/hook imports.** |
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yaml
index 85818b604c..1f8d409469 100644
--- a/docs/api-reference/store.yaml
+++ b/docs/api-reference/store.yaml
@@ -87,16 +87,16 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImExMTAwMTQ2LWIyN2ItNDBiNi04NTFhLWNmYjE4YTRhYjczZSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDM0MjY5fQ.sky_6S65j-6RTgawukhtPK8LtIUbgGcM2CyUzo45mM0
- refresh_token: qMk9xke4yiYLD8jQUzaVEtfs
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjdkZjA0MzYzLTZhYmUtNDFiMC1iNDI2LTc1NjU1NTM4ZDhhYSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDQ4NTA5fQ.DK2U12X83qkwU0sDESLS3WDVPeaHbZLYXepnI77eA_o
+ refresh_token: YFe8tXg639PEcQZeoCLMfHcj
user:
id: cust_UkLWZg9DAJ
- first_name: Mitzie
- last_name: Wehner
+ first_name: Apryl
+ last_name: Wiegand
phone:
accepts_email_marketing: false
- full_name: Mitzie Wehner
+ full_name: Apryl Wiegand
available_store_credit_total: '0'
display_available_store_credit_total: "$0.00"
addresses: []
@@ -194,16 +194,16 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6Ijg5MDVhYzFjLTdlMGYtNGRiZC04YTRjLTdmOGUzNjFmM2E5YSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDM0MjY5fQ.-E5AbyOtdcsFXhOckxA0YvBSHlg4_2FnfZRenA9E1DY
- refresh_token: sw24UDLbihwRYcd5WHNqAFrR
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImZiNTJmOGM0LTAwYTItNGVhYS04NDNhLWMxNDdlOWZkZDhlNiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDQ4NTA5fQ.7OugEQdfAA_5xH9rZOHKwuRdPX19qCykaGAZjAhIoO8
+ refresh_token: pPTjFCBqzzQDdz8HQY7mJ1kN
user:
id: cust_UkLWZg9DAJ
- first_name: Dominick
- last_name: Douglas
+ first_name: Darnell
+ last_name: Kiehn
phone:
accepts_email_marketing: false
- full_name: Dominick Douglas
+ full_name: Darnell Kiehn
available_store_credit_total: '0'
display_available_store_credit_total: "$0.00"
addresses: []
@@ -393,16 +393,16 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjUyYTMzZTIxLTEzMDMtNGVhNy05MTExLTVjZWQ0NjQ1YTIwOCIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDM0MjczfQ.CRJH3LZeWrxaep6x1klcQdzhyKAc31UJIJfysHW9_mw
- refresh_token: VHMn9YkqHnpLqNwTMWXMP2LA
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImJhMzViZTlhLTVkN2YtNDBiYS1hYTc5LThmNmI3YzNjZWU5ZiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDQ4NTE1fQ.C3KslBW4tr3TnquwcV_ZacHpDeqcxD5qxWmG5Z8oQgg
+ refresh_token: bwJDGrzApB7s2oBvgttNjQNt
user:
id: cust_UkLWZg9DAJ
- first_name: Anton
- last_name: Frami
+ first_name: Sharonda
+ last_name: Larkin
phone:
accepts_email_marketing: false
- full_name: Anton Frami
+ full_name: Sharonda Larkin
available_store_credit_total: '0'
display_available_store_credit_total: "$0.00"
addresses: []
@@ -879,8 +879,8 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 129495
- slug: product-129495
+ name: Product 1291956
+ slug: product-1291956
meta_title:
meta_description:
meta_keywords:
@@ -892,27 +892,12 @@ paths:
in_stock: false
backorderable: true
available: true
- description: Reiciendis expedita eveniet nihil doloremque dolor
- amet officia laudantium. Sed nisi itaque nobis id exercitationem
- repellat. Reiciendis voluptatem iste corrupti eius impedit consequatur
- sapiente accusamus. Similique quasi magnam libero iure. Quidem
- labore officia veritatis reiciendis corrupti mollitia ad. Repudiandae
- nobis ad adipisci nulla totam. Quis inventore quidem velit earum
- aperiam ipsum doloribus. Recusandae ad adipisci corrupti dolorem
- quia tempora. Dicta aut iusto ratione tempora provident magnam
- eaque. Eveniet eius sequi nobis ipsam. Saepe voluptatum repellat
- cum aliquid nulla et ab non. Provident officia ex repellat dolores
- id. Rerum error nulla nobis quas. Labore explicabo molestiae sit
- nobis earum. Totam similique aperiam fugit nesciunt ipsam possimus.
- Eligendi officiis asperiores minima nostrum autem repellendus
- iste. Necessitatibus labore inventore esse quos quasi temporibus
- quibusdam tempore. Earum cum quo nulla quidem vel soluta ex.
- description_html: |-
- Reiciendis expedita eveniet nihil doloremque dolor amet officia laudantium. Sed nisi itaque nobis id exercitationem repellat. Reiciendis voluptatem iste corrupti eius impedit consequatur sapiente accusamus. Similique quasi magnam libero iure.
- Quidem labore officia veritatis reiciendis corrupti mollitia ad. Repudiandae nobis ad adipisci nulla totam. Quis inventore quidem velit earum aperiam ipsum doloribus.
- Recusandae ad adipisci corrupti dolorem quia tempora. Dicta aut iusto ratione tempora provident magnam eaque. Eveniet eius sequi nobis ipsam.
- Saepe voluptatum repellat cum aliquid nulla et ab non. Provident officia ex repellat dolores id. Rerum error nulla nobis quas.
- Labore explicabo molestiae sit nobis earum. Totam similique aperiam fugit nesciunt ipsam possimus. Eligendi officiis asperiores minima nostrum autem repellendus iste. Necessitatibus labore inventore esse quos quasi temporibus quibusdam tempore. Earum cum quo nulla quidem vel soluta ex.
+ description: Optio inventore rerum sapiente voluptate ad quia. Iure
+ repudiandae occaecati dicta animi alias expedita inventore. Quas
+ deleniti quia vitae illo.
+ description_html: Optio inventore rerum sapiente voluptate ad quia.
+ Iure repudiandae occaecati dicta animi alias expedita inventore.
+ Quas deleniti quia vitae illo.
default_variant_id: variant_UkLWZg9DAJ
thumbnail_url:
tags: []
@@ -1067,8 +1052,8 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 1716739
- slug: product-1716739
+ name: Product 1719413
+ slug: product-1719413
meta_title:
meta_description:
meta_keywords:
@@ -1097,8 +1082,8 @@ paths:
price_list_id:
original_price:
- id: prod_gbHJdmfrXB
- name: Product 1721196
- slug: product-1721196
+ name: Product 1723010
+ slug: product-1723010
meta_title:
meta_description:
meta_keywords:
@@ -1110,29 +1095,29 @@ paths:
in_stock: false
backorderable: true
available: true
- description: Nihil error quasi dignissimos in consectetur possimus.
- Voluptate occaecati consequatur maiores dolorum magni beatae perferendis.
- Veniam error rerum mollitia hic omnis sit repudiandae. Non reprehenderit
- repellendus nulla eveniet. Itaque dolorum explicabo perspiciatis
- exercitationem reprehenderit maiores ab. Voluptatem ex saepe maxime
- ipsum perferendis veniam voluptates. Suscipit nam quos magni doloribus.
- Dignissimos mollitia placeat eum blanditiis numquam iusto beatae.
- Omnis quidem deserunt accusantium molestiae praesentium. Odit
- odio reiciendis magni ducimus. Iste explicabo aperiam inventore
- officia magnam quidem earum. Odio reiciendis aperiam suscipit
- possimus eaque animi quasi. Nemo libero dolores at ducimus. Neque
- eveniet quo laboriosam cumque necessitatibus adipisci repudiandae.
- Ratione quas excepturi iusto ducimus accusamus corporis. Alias
- at fugit id dolor. Hic quibusdam expedita blanditiis voluptatibus
- sapiente itaque consectetur. Nisi et non labore enim fugiat ut
- similique. Id tempora quos rerum sint. Est sit optio soluta laudantium
- temporibus.
+ description: Ut eum eveniet voluptatem saepe. Voluptates minima
+ eos consequuntur a. Voluptas aliquid rerum libero blanditiis.
+ Voluptatem modi mollitia accusantium tempore ratione quasi. Culpa
+ incidunt magnam similique tempora quia perferendis assumenda doloribus.
+ Explicabo ex provident consequatur dicta. Voluptas rerum est odio
+ ea nihil dolores illo doloremque. Inventore distinctio eaque nam
+ tempore expedita provident ut. Quasi autem dolore facilis reiciendis
+ animi nostrum molestias. Quos quasi animi corrupti iusto natus
+ cum quas. Natus excepturi repellat placeat esse dolorem ab dolorum
+ minus. Optio impedit qui cum consequatur quaerat eligendi rem.
+ Accusantium cumque id sed molestias excepturi ab facere. Ratione
+ rerum vero at ipsum officiis porro exercitationem. Voluptates
+ ipsa tempore nulla repellat eaque aperiam natus dolor. Facilis
+ molestiae labore deserunt repellat ipsum dolores. Suscipit nesciunt
+ aut fugiat a ipsam autem accusantium. Placeat quibusdam illum
+ eaque reiciendis accusamus quos. Dolorum veniam error voluptatem
+ nam officiis sapiente.
description_html: |-
- Nihil error quasi dignissimos in consectetur possimus. Voluptate occaecati consequatur maiores dolorum magni beatae perferendis. Veniam error rerum mollitia hic omnis sit repudiandae.
- Non reprehenderit repellendus nulla eveniet. Itaque dolorum explicabo perspiciatis exercitationem reprehenderit maiores ab. Voluptatem ex saepe maxime ipsum perferendis veniam voluptates. Suscipit nam quos magni doloribus. Dignissimos mollitia placeat eum blanditiis numquam iusto beatae.
- Omnis quidem deserunt accusantium molestiae praesentium. Odit odio reiciendis magni ducimus. Iste explicabo aperiam inventore officia magnam quidem earum. Odio reiciendis aperiam suscipit possimus eaque animi quasi.
- Nemo libero dolores at ducimus. Neque eveniet quo laboriosam cumque necessitatibus adipisci repudiandae. Ratione quas excepturi iusto ducimus accusamus corporis. Alias at fugit id dolor.
- Hic quibusdam expedita blanditiis voluptatibus sapiente itaque consectetur. Nisi et non labore enim fugiat ut similique. Id tempora quos rerum sint. Est sit optio soluta laudantium temporibus.
+ Ut eum eveniet voluptatem saepe. Voluptates minima eos consequuntur a. Voluptas aliquid rerum libero blanditiis. Voluptatem modi mollitia accusantium tempore ratione quasi. Culpa incidunt magnam similique tempora quia perferendis assumenda doloribus.
+ Explicabo ex provident consequatur dicta. Voluptas rerum est odio ea nihil dolores illo doloremque. Inventore distinctio eaque nam tempore expedita provident ut. Quasi autem dolore facilis reiciendis animi nostrum molestias.
+ Quos quasi animi corrupti iusto natus cum quas. Natus excepturi repellat placeat esse dolorem ab dolorum minus. Optio impedit qui cum consequatur quaerat eligendi rem. Accusantium cumque id sed molestias excepturi ab facere.
+ Ratione rerum vero at ipsum officiis porro exercitationem. Voluptates ipsa tempore nulla repellat eaque aperiam natus dolor. Facilis molestiae labore deserunt repellat ipsum dolores.
+ Suscipit nesciunt aut fugiat a ipsam autem accusantium. Placeat quibusdam illum eaque reiciendis accusamus quos. Dolorum veniam error voluptatem nam officiis sapiente.
default_variant_id: variant_EfhxLZ9ck8
thumbnail_url:
tags: []
@@ -1234,8 +1219,8 @@ paths:
application/json:
example:
id: prod_UkLWZg9DAJ
- name: Product 1993830
- slug: product-1993830
+ name: Product 1991180
+ slug: product-1991180
meta_title:
meta_description:
meta_keywords:
@@ -1269,7 +1254,7 @@ paths:
amount_in_cents: 999
currency: USD
display_amount: "$9.99"
- recorded_at: '2026-07-22T15:38:02Z'
+ recorded_at: '2026-07-22T19:35:26Z'
schema:
"$ref": "#/components/schemas/Product"
'404':
@@ -1519,7 +1504,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_gbHJdmfrXB
- token: aeiQHcVzXoyteuvQhwwFPsyK
+ token: 16nLQDuPfp7Cxw4qWrGkiz8t
email:
customer_note:
currency: USD
@@ -1578,8 +1563,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1041231
- slug: product-1041231
+ name: Product 1046279
+ slug: product-1046279
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1624,7 +1609,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: hjBaxRS1bmwVd4TTyfAnLPEj
+ token: 2rNE1eUBBMZ9P3V1dYkA7KXx
email:
customer_note:
currency: USD
@@ -1683,8 +1668,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1032154
- slug: product-1032154
+ name: Product 1039421
+ slug: product-1039421
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1802,7 +1787,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: NTqeY5zAmK5WV35U1m18wEzR
+ token: wLN1fuhf3LC4AhatNGc3Sc1b
email:
customer_note:
currency: USD
@@ -1967,7 +1952,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: g7x4spVBsFWo74JNTyMN1sAD
+ token: dyHuaWjtLM3AFycwCXXnvaTc
email:
customer_note:
currency: USD
@@ -1975,7 +1960,7 @@ paths:
total_quantity: 0
warnings:
- code: line_item_removed
- message: Product 1088421 was removed because it was sold out
+ message: Product 1086484 was removed because it was sold out
line_item_id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
coupon_code:
@@ -2117,7 +2102,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: vCwg1hw7VWk8ZxH4QiHCgaev
+ token: xV3G3QHJiYoZFN6wqWsuFf7G
email:
customer_note: Leave at door
currency: USD
@@ -2172,8 +2157,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1096256
- slug: product-1096256
+ name: Product 109348
+ slug: product-109348
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -2392,8 +2377,8 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: iNjmDJX3orT2tSJQ1D7oK41Q
+ token: shBYK89r7yrz8VviJ1JAxE9U
customer_note:
currency: USD
locale: en
@@ -2444,8 +2429,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1112306
- slug: product-1112306
+ name: Product 1112162
+ slug: product-1112162
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -2599,8 +2584,8 @@ paths:
market_id: mkt_UkLWZg9DAJ
cart_id: cart_UkLWZg9DAJ
channel_id: ch_UkLWZg9DAJ
- number: R036840634
+ number: R221352155
customer_note:
currency: USD
locale: en
@@ -2608,7 +2593,7 @@ paths:
coupon_code:
fulfillment_status: backorder
payment_status: paid
- completed_at: '2026-08-06T15:37:50.566Z'
+ completed_at: '2026-08-06T19:35:11.545Z'
item_total: '10.0'
display_item_total: "$10.00"
adjustment_total: '0.0'
@@ -2640,8 +2625,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1144709
- slug: product-1144709
+ name: Product 1148911
+ slug: product-1148911
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -2666,7 +2651,7 @@ paths:
digital_links: []
fulfillments:
- id: ful_gbHJdmfrXB
- number: F50041337161
+ number: F01798836736
tracking:
tracking_url:
pickup_point_data:
@@ -2700,7 +2685,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: NY
- name: Demetrius Lehner
+ name: Ingeborg Volkman
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -2735,8 +2720,8 @@ paths:
payments:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
- response_code: BGS-06d790f7e2c9
- number: PTT7VYAB
+ response_code: BGS-5e8e6fa7fda2
+ number: PA7NRM7D
amount: '20.0'
display_amount: "$20.00"
status: completed
@@ -2892,7 +2877,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: wkrmzeDNZHZN8vMks7qbdNW6
+ token: SV866WN2Gp16BNyeaS959dyM
email:
customer_note:
currency: USD
@@ -2950,8 +2935,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1405593
- slug: product-1405593
+ name: Product 1403829
+ slug: product-1403829
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3080,7 +3065,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: uK4QfijyC5JQsCdSSBr9yZDu
+ token: ATZgwGp4hbKcwFkHB7VhfKSV
email:
customer_note:
currency: USD
@@ -3135,8 +3120,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1427000
- slug: product-1427000
+ name: Product 142165
+ slug: product-142165
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3254,8 +3239,8 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: SnvAtZ2Q9M7iMotQTR7HGpCi
+ token: 56Qp5GhwMgeQRKxZ7Gyw9xcW
customer_note:
currency: USD
locale: en
@@ -3303,8 +3288,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1445363
- slug: product-1445363
+ name: Product 14473
+ slug: product-14473
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3329,7 +3314,7 @@ paths:
digital_links: []
fulfillments:
- id: ful_UkLWZg9DAJ
- number: F32745298512
+ number: F92763895526
tracking:
tracking_url:
pickup_point_data:
@@ -3363,7 +3348,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: NY
- name: Georgianna Labadie
+ name: Lesley Bernhard
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3521,7 +3506,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: 4r8pw4TqFzo4TxJ6ZxhgcaiD
+ token: Ep4xuLTQ3vg8D76jFTsKd1Ff
email:
customer_note:
currency: USD
@@ -3572,8 +3557,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1463892
- slug: product-1463892
+ name: Product 1469406
+ slug: product-1469406
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3600,8 +3585,8 @@ paths:
payments:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
- response_code: 1-SC-20260806153756658034
- number: PWJ7HI47
+ response_code: 1-SC-20260806193518606088
+ number: PV9Q7MMU
amount: '10.0'
display_amount: "$10.00"
status: checkout
@@ -3757,7 +3742,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: tMML3fVMTUwuri3urCRJsc4L
+ token: DDh7856pV8pfKoE2S6d974zS
email:
customer_note:
currency: USD
@@ -3812,8 +3797,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1502547
- slug: product-1502547
+ name: Product 1506673
+ slug: product-1506673
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3840,8 +3825,8 @@ paths:
payments:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
- response_code: 1-SC-20260806153757024261
- number: PI0U5EJH
+ response_code: 1-SC-20260806193519097499
+ number: P278EXBS
amount: '10.0'
display_amount: "$10.00"
status: invalid
@@ -3948,7 +3933,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: nYRg85x7ikBJVvrJf6rgZkAf
+ token: R6hdKenoJ4gkNWLtZSd1dhjq
email:
customer_note:
currency: USD
@@ -3956,10 +3941,10 @@ paths:
total_quantity: 2
warnings:
- code: delivery_unavailable
- message: Product 1537997 cannot be delivered to the selected address
+ message: Product 1531928 cannot be delivered to the selected address
line_item_id: li_UkLWZg9DAJ
- code: delivery_unavailable
- message: Product 1543664 cannot be delivered to the selected address
+ message: Product 154548 cannot be delivered to the selected address
line_item_id: li_gbHJdmfrXB
coupon_code:
item_total: '29.99'
@@ -4009,8 +3994,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1537997
- slug: product-1537997
+ name: Product 1531928
+ slug: product-1531928
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -4039,8 +4024,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1543664
- slug: product-1543664
+ name: Product 154548
+ slug: product-154548
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -4178,7 +4163,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: eoCDdS3CkHyfrmzXfiEbE12S
+ token: oQDn3igJyS97LqT9gDtFXTxo
email:
customer_note:
currency: USD
@@ -4229,8 +4214,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1578535
- slug: product-1578535
+ name: Product 1572940
+ slug: product-1572940
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -4348,7 +4333,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: w7VsKkfiUWmXRBbUUSMhhTAM
+ token: EYQAxqqk7xZpw5c8xdZFqBJU
email:
customer_note:
currency: USD
@@ -4488,9 +4473,9 @@ paths:
id: ps_gbHJdmfrXB
status: pending
currency: USD
- external_id: bogus_b7e547c7ab6ae43404d38eb1
+ external_id: bogus_4a3a25825dcec624b11ec9f0
external_data:
- client_secret: bogus_secret_17ddb40ee172eb36
+ client_secret: bogus_secret_8fbafaf05f8920ac
customer_external_id:
expires_at:
amount: '10.0'
@@ -4589,7 +4574,7 @@ paths:
id: ps_UkLWZg9DAJ
status: pending
currency: USD
- external_id: bogus_17e72cd004b6d32144a7151f
+ external_id: bogus_9768785dc1a3fbbc497a54bb
external_data:
client_secret: secret_123
customer_external_id:
@@ -4652,7 +4637,7 @@ paths:
id: ps_UkLWZg9DAJ
status: pending
currency: USD
- external_id: bogus_b2bbebc3cda93d365b9b853b
+ external_id: bogus_bdcf20347668987e76ba2b2c
external_data:
client_secret: secret_123
customer_external_id:
@@ -4755,7 +4740,7 @@ paths:
id: ps_UkLWZg9DAJ
status: completed
currency: USD
- external_id: bogus_7e8a10787c27cac96434678e
+ external_id: bogus_ddc3dddc904885575c142edb
external_data:
client_secret: secret_123
customer_external_id:
@@ -4854,7 +4839,7 @@ paths:
id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
response_code:
- number: PUPDBW9T
+ number: PY6KBJY3
amount: '10.0'
display_amount: "$10.00"
status: checkout
@@ -4963,7 +4948,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: WhhYif9Zyai7mrWjgDuBboJ5
+ token: 4aThVc7Mn1ecknadc8wvosQV
email:
customer_note:
currency: USD
@@ -5014,8 +4999,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 2191130
- slug: product-2191130
+ name: Product 2199950
+ slug: product-2199950
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -5042,8 +5027,8 @@ paths:
payments:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
- response_code: 1-SC-20260806153804524287
- number: PBKZUKZ3
+ response_code: 1-SC-20260806193529173491
+ number: PHY7ZRF4
amount: '10.0'
display_amount: "$10.00"
status: checkout
@@ -5163,7 +5148,7 @@ paths:
channel_id: ch_UkLWZg9DAJ
preferred_stock_location_id:
number: cart_UkLWZg9DAJ
- token: DQRUJw9LTNCqTA13T43mJTyC
+ token: tSu8yFEALcpjshM1aSwEixTH
email:
customer_note:
currency: USD
@@ -5218,8 +5203,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 2219169
- slug: product-2219169
+ name: Product 221529
+ slug: product-221529
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -5334,7 +5319,7 @@ paths:
market_id: mkt_UkLWZg9DAJ
cart_id:
channel_id: ch_UkLWZg9DAJ
- number: R675776516
+ number: R563210785
customer_note:
currency: USD
@@ -5343,7 +5328,7 @@ paths:
coupon_code:
fulfillment_status:
payment_status:
- completed_at: '2026-08-06T15:37:59.415Z'
+ completed_at: '2026-08-06T19:35:22.220Z'
item_total: '10.0'
display_item_total: "$10.00"
adjustment_total: '0.0'
@@ -5375,8 +5360,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1616138
- slug: product-1616138
+ name: Product 1612163
+ slug: product-1612163
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -5401,7 +5386,7 @@ paths:
digital_links: []
fulfillments:
- id: ful_UkLWZg9DAJ
- number: F53961012863
+ number: F72312627371
tracking: U10000
tracking_url:
pickup_point_data:
@@ -5435,7 +5420,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: NY
- name: Viva Rutherford
+ name: Olivia Heaney
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6390,8 +6375,8 @@ paths:
market_id: mkt_UkLWZg9DAJ
cart_id:
channel_id: ch_UkLWZg9DAJ
- number: R145162621
+ number: R856998164
customer_note:
currency: USD
locale: en
@@ -6399,7 +6384,7 @@ paths:
coupon_code:
fulfillment_status:
payment_status:
- completed_at: '2026-08-06T15:37:54.115Z'
+ completed_at: '2026-08-06T19:35:16.001Z'
item_total: '10.0'
display_item_total: "$10.00"
adjustment_total: '0.0'
@@ -6431,8 +6416,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1305583
- slug: product-1305583
+ name: Product 1304015
+ slug: product-1304015
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -6457,7 +6442,7 @@ paths:
digital_links: []
fulfillments:
- id: ful_UkLWZg9DAJ
- number: F48124210255
+ number: F84078870375
tracking: U10000
tracking_url:
pickup_point_data:
@@ -6491,7 +6476,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: NY
- name: Leta Watsica
+ name: Pattie Conn
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6671,8 +6656,8 @@ paths:
market_id: mkt_UkLWZg9DAJ
cart_id:
channel_id: ch_UkLWZg9DAJ
- number: R842026446
+ number: R200778197
customer_note:
currency: USD
locale: en
@@ -6680,7 +6665,7 @@ paths:
coupon_code:
fulfillment_status:
payment_status:
- completed_at: '2026-08-06T15:37:54.387Z'
+ completed_at: '2026-08-06T19:35:16.232Z'
item_total: '10.0'
display_item_total: "$10.00"
adjustment_total: '0.0'
@@ -6712,8 +6697,8 @@ paths:
preorder_ships_at:
quantity: 1
currency: USD
- name: Product 1324728
- slug: product-1324728
+ name: Product 1326869
+ slug: product-1326869
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -6738,7 +6723,7 @@ paths:
digital_links: []
fulfillments:
- id: ful_UkLWZg9DAJ
- number: F68143195377
+ number: F86829812152
tracking: U10000
tracking_url:
pickup_point_data:
@@ -6772,7 +6757,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: NY
- name: Eura Ziemann
+ name: Connie Nader
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6908,8 +6893,8 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjNjN2Y4YTVhLWUwOGEtNDFjMi04ZGVlLTdkNzg5ODE5YzUzZSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDM0Mjc0fQ.n49vf8yRDGbdcLJxY_i8KKdrXCdI2-U8uVE5QB0KbMM
- refresh_token: EQ2f8JrgcKHtfMA5573eG2MT
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjJkN2Y2ODk3LTczNTMtNDVhYy1iZjU5LTc2ZWQxNzdiNzMzMyIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzg2MDQ4NTE2fQ.Aw0zzgk8sKIi3HOiG-l1h3RvyeacT5vRt_KFDG2r5kk
+ refresh_token: n2JGsWNy7BwvMczZht369KJv
user:
id: cust_UkLWZg9DAJ
@@ -6926,10 +6911,10 @@ paths:
newsletter_subscriber:
id: sub_UkLWZg9DAJ
- created_at: '2026-08-06T15:37:54.588Z'
- updated_at: '2026-08-06T15:37:54.590Z'
+ created_at: '2026-08-06T19:35:16.500Z'
+ updated_at: '2026-08-06T19:35:16.503Z'
verified: true
- verified_at: '2026-08-06T15:37:54Z'
+ verified_at: '2026-08-06T19:35:16Z'
customer_id: cust_UkLWZg9DAJ
customer_groups: []
schema:
@@ -7032,12 +7017,12 @@ paths:
application/json:
example:
id: cust_UkLWZg9DAJ
- first_name: Latisha
- last_name: Lindgren
+ first_name: Michaela
+ last_name: Ullrich
phone: 555-555-0199
accepts_email_marketing: false
- full_name: Latisha Lindgren
+ full_name: Michaela Ullrich
available_store_credit_total: '0'
display_available_store_credit_total: "$0.00"
addresses:
@@ -7173,7 +7158,7 @@ paths:
application/json:
example:
id: cust_UkLWZg9DAJ
first_name: Updated
last_name: Name
phone: 555-555-0199
@@ -7364,7 +7349,7 @@ paths:
example:
data:
- id: gc_UkLWZg9DAJ
- code: BE3A4822E918E550
+ code: C1B4195CBA8C9DFC
status: active
currency: USD
amount: '10.0'
@@ -7460,7 +7445,7 @@ paths:
application/json:
example:
id: gc_UkLWZg9DAJ
- code: 270022DB988FFC86
+ code: E4835489C866A427
status: active
currency: USD
amount: '10.0'
@@ -7532,8 +7517,8 @@ paths:
example:
id: pss_gbHJdmfrXB
status: pending
- external_id: bogus_seti_18b6ae7b142d985094c9acbc
- external_client_secret: bogus_seti_secret_b67565e5f9b8f29c
+ external_id: bogus_seti_49bf960a0bc1b3f35a5ea8b2
+ external_client_secret: bogus_seti_secret_928561da89187ffd
external_data: {}
payment_method_id: pm_UkLWZg9DAJ
payment_source_id:
@@ -7632,8 +7617,8 @@ paths:
example:
id: pss_UkLWZg9DAJ
status: pending
- external_id: seti_test_975701777e1ea1e78de21a09
- external_client_secret: seti_secret_1150d72c731d8f4a49c44a9f
+ external_id: seti_test_2ca8059e20ea1c3ef7598e64
+ external_client_secret: seti_secret_76e56d138d8ce35a74b0e03f
external_data:
client_secret: secret_123
payment_method_id: pm_UkLWZg9DAJ
@@ -7709,8 +7694,8 @@ paths:
example:
id: pss_UkLWZg9DAJ
status: completed
- external_id: seti_test_7c3fd4c6975f94fdea7c3e53
- external_client_secret: seti_secret_5ac8997d0a7993b638444308
+ external_id: seti_test_c7e9c020a499323913c87558
+ external_client_secret: seti_secret_6318315d208d2168ae67a402
external_data:
client_secret: secret_123
payment_method_id: pm_UkLWZg9DAJ
@@ -8654,7 +8639,7 @@ paths:
data:
- id: wl_UkLWZg9DAJ
name: My Wishlist
- token: LNb8DPjVcE7JzLGqrKg1pyWG
+ token: ZT7GTpYvdH4kThcF4NKF4K48
is_default: false
is_private: true
meta:
@@ -8730,7 +8715,7 @@ paths:
example:
id: wl_gbHJdmfrXB
name: Birthday Ideas
- token: MaFKeYRASyGtpXs6XgpPUFf7
+ token: KJymRqAuDD3dvP5kM2neE82k
is_default: false
is_private: true
schema:
@@ -8831,7 +8816,7 @@ paths:
example:
id: wl_UkLWZg9DAJ
name: My Wishlist
- token: 6MK5M9136VthSuyRyfdWJo9i
+ token: Ub7dErqk9cNeLCyEXsytqDdM
is_default: false
is_private: true
schema:
@@ -8893,7 +8878,7 @@ paths:
example:
id: wl_UkLWZg9DAJ
name: Updated Name
- token: Kdb4MMsTNaRXGy1vfCgvmPBC
+ token: wrQ4A9YUQZv5v5eCzzvoctsp
is_default: false
is_private: true
schema:
@@ -9175,11 +9160,11 @@ paths:
application/json:
example:
id: sub_UkLWZg9DAJ
- created_at: '2026-08-06T15:37:58.582Z'
- updated_at: '2026-08-06T15:37:58.583Z'
+ created_at: '2026-08-06T19:35:21.212Z'
+ updated_at: '2026-08-06T19:35:21.213Z'
verified: true
- verified_at: '2026-08-06T15:37:58Z'
+ verified_at: '2026-08-06T19:35:21Z'
customer_id: cust_UkLWZg9DAJ
schema:
"$ref": "#/components/schemas/NewsletterSubscriber"
@@ -9258,10 +9243,10 @@ paths:
example:
id: sub_UkLWZg9DAJ
- created_at: '2026-08-06T15:37:58.658Z'
- updated_at: '2026-08-06T15:37:58.674Z'
+ created_at: '2026-08-06T19:35:21.243Z'
+ updated_at: '2026-08-06T19:35:21.256Z'
verified: true
- verified_at: '2026-08-06T15:37:58Z'
+ verified_at: '2026-08-06T19:35:21Z'
customer_id:
schema:
"$ref": "#/components/schemas/NewsletterSubscriber"
@@ -9431,7 +9416,7 @@ paths:
body_html: ''
- id: pol_OIJLhNcSbf
name: Privacy Policy
- slug: privacy-policy-a14591fa-add7-41a3-b3b6-402cae3f789f
+ slug: privacy-policy-75062192-0431-4cfb-b071-0b2e5e4f06c5
body: We respect your privacy.
body_html: |
<div class="trix-content">
diff --git a/docs/plans/6.0-integrations-admin.md b/docs/plans/6.0-integrations-admin.md
index 9b9b0afc83..e9356d902c 100644
--- a/docs/plans/6.0-integrations-admin.md
+++ b/docs/plans/6.0-integrations-admin.md
@@ -1,11 +1,17 @@
# Integrations Admin
-**Status:** Design Finalized (open questions resolved interactively 2026-08-06)
+**Status:** Implemented (2026-08-06) — see "Implementation status"
**Target:** Spree 6.0
**Depends on:** `6.0-delivery-rate-provider.md` (EasyPost — the first real Integration consumer), `6.0-fulfillment-and-delivery.md` (pickup point providers resolve credentials here), `6.0-tax-provider.md` (Avalara Integration subclass). Coordinates with: `6.0-admin-api.md`, `6.0-admin-spa.md`, `5.5-admin-api-key-scopes.md` (new `read_integrations`/`write_integrations` scopes)
**Author:** Damian + Claude
**Last updated:** 2026-08-06
+## Implementation status (2026-08-06)
+
+Shipped in one wave, all suites green: `PreferenceSchema` on `Spree::Integration` with `registers_subclasses_via` over the (already existing) `Spree.integrations` registry, type-registration and **verify-before-activate** validations on the model, the unique `(store_id, type)` index, and `read_integrations`/`write_integrations` API-key scopes. Admin API v3: full CRUD via the shared `SubclassedResource` concern (registry-resolved types, typed preference setters, masked-secret round-trip guard for free), plus `GET /integrations/types` (gallery source with per-store `connected`) and `POST /:id/test`. SDK: `adminClient.integrations` with hand-written type/params definitions and the generated `Integration` type. Dashboard: `/settings/integrations` gallery grouped by `integration_group` with a connect/configure sheet (`PreferencesForm`, active toggle, inline test-connection, destructive-confirmed disconnect), settings-nav entry, i18n in all six locales. rswag coverage + regenerated OpenAPI/CLI specs.
+
+Two notes beyond the design below: (1) the model's type-registration validation is skipped while the registry is empty — core ships no integrations, and the admin API resolves types through the registry regardless, so the escape keeps bare-core installs and factories working; (2) `Spree::Integration.api_type` derives the wire shorthand from the **outer module** for classes named exactly `Integration` (`SpreeEasyPost::Integration` → `easy_post`) — the gem convention makes demodulized names collide on `integration`.
+
## Summary
Make `Spree::Integration` the single credential surface for every provider seam — delivery rates (EasyPost), tax (Avalara), fulfillment, pickup point networks (InPost), and future gateways of any kind — and give it the admin surface it has never had: an Admin API v3 resource plus a dashboard "Integrations" settings page where a merchant sees, in one place, everything connected to the current store. The model shipped in 5.x (`spree_integrations`: per-store, typed, preferences, `active`, `can_connect?`) but has **zero subclasses in core, no registry, no API, and no UI** — every capability on it is currently unexercised. This plan is the missing half: providers stay stateless strategy objects; Integrations own the credentials; the dashboard owns the visibility.
diff --git a/packages/admin-sdk/examples/integrations/create.ts b/packages/admin-sdk/examples/integrations/create.ts
new file mode 100644
index 0000000000..1f41f04e84
--- /dev/null
+++ b/packages/admin-sdk/examples/integrations/create.ts
@@ -0,0 +1,16 @@
+import { createAdminClient } from '@spree/admin-sdk'
+
+const client = createAdminClient({
+ baseUrl: 'https://your-store.com',
+ secretKey: 'sk_xxx',
+})
+
+// region:example
+const integration = await client.integrations.create({
+ type: 'carrier',
+ preferences: { api_key: 'sk-secret', account_number: '42' },
+})
+
+// endregion:example
+
+export { integration }
diff --git a/packages/admin-sdk/examples/integrations/list.ts b/packages/admin-sdk/examples/integrations/list.ts
new file mode 100644
index 0000000000..2418048f9f
--- /dev/null
+++ b/packages/admin-sdk/examples/integrations/list.ts
@@ -0,0 +1,13 @@
+import { createAdminClient } from '@spree/admin-sdk'
+
+const client = createAdminClient({
+ baseUrl: 'https://your-store.com',
+ secretKey: 'sk_xxx',
+})
+
+// region:example
+const { data: integrations } = await client.integrations.list()
+
+// endregion:example
+
+export { integrations }
diff --git a/packages/admin-sdk/examples/integrations/test.ts b/packages/admin-sdk/examples/integrations/test.ts
new file mode 100644
index 0000000000..72034299dc
--- /dev/null
+++ b/packages/admin-sdk/examples/integrations/test.ts
@@ -0,0 +1,13 @@
+import { createAdminClient } from '@spree/admin-sdk'
+
+const client = createAdminClient({
+ baseUrl: 'https://your-store.com',
+ secretKey: 'sk_xxx',
+})
+
+// region:example
+const result = await client.integrations.test('int_abc123')
+
+// endregion:example
+
+export { result }
diff --git a/packages/admin-sdk/examples/integrations/types.ts b/packages/admin-sdk/examples/integrations/types.ts
new file mode 100644
index 0000000000..8f17c9fc68
--- /dev/null
+++ b/packages/admin-sdk/examples/integrations/types.ts
@@ -0,0 +1,13 @@
+import { createAdminClient } from '@spree/admin-sdk'
+
+const client = createAdminClient({
+ baseUrl: 'https://your-store.com',
+ secretKey: 'sk_xxx',
+})
+
+// region:example
+const { data: integrationTypes } = await client.integrations.types()
+
+// endregion:example
+
+export { integrationTypes }
diff --git a/packages/admin-sdk/src/admin-client.ts b/packages/admin-sdk/src/admin-client.ts
index dfe54df911..e3c0b92954 100644
--- a/packages/admin-sdk/src/admin-client.ts
+++ b/packages/admin-sdk/src/admin-client.ts
@@ -142,6 +142,9 @@ import type {
GiftCardUpdateParams,
ImportCompleteMappingParams,
ImportCreateParams,
+ IntegrationCreateParams,
+ IntegrationTypeDefinition,
+ IntegrationUpdateParams,
InvitationAcceptParams,
InvitationCreateParams,
LineItemCreateParams,
@@ -238,6 +241,7 @@ import type {
GiftCardBatch,
Import,
ImportRow,
+ Integration,
Invitation,
LineItem,
Locale,
@@ -1753,6 +1757,52 @@ export class AdminClient {
this.request<{ data: PaymentMethodType[] }>('GET', '/payment_methods/types', options),
}
+ // ============================================
+ // Integrations (admin-only — provider credentials per store)
+ // ============================================
+
+ readonly integrations = {
+ list: (
+ params?: ListParams & Record<string, unknown>,
+ options?: RequestOptions,
+ ): Promise<PaginatedResponse<Integration>> =>
+ this.request<PaginatedResponse<Integration>>('GET', '/integrations', {
+ ...options,
+ params: params ? transformListParams(params) : undefined,
+ }),
+
+ get: (id: string, options?: RequestOptions): Promise<Integration> =>
+ this.request<Integration>('GET', `/integrations/${id}`, options),
+
+ create: (params: IntegrationCreateParams, options?: RequestOptions): Promise<Integration> =>
+ this.request<Integration>('POST', '/integrations', { ...options, body: params }),
+
+ update: (
+ id: string,
+ params: IntegrationUpdateParams,
+ options?: RequestOptions,
+ ): Promise<Integration> =>
+ this.request<Integration>('PATCH', `/integrations/${id}`, { ...options, body: params }),
+
+ delete: (id: string, options?: RequestOptions): Promise<void> =>
+ this.request<void>('DELETE', `/integrations/${id}`, options),
+
+ /** Registered integration types with schemas and per-store connected state. */
+ types: (options?: RequestOptions): Promise<{ data: IntegrationTypeDefinition[] }> =>
+ this.request<{ data: IntegrationTypeDefinition[] }>('GET', '/integrations/types', options),
+
+ /** Live connection check; nothing is persisted. */
+ test: (
+ id: string,
+ options?: RequestOptions,
+ ): Promise<{ connected: boolean; error_message: string | null }> =>
+ this.request<{ connected: boolean; error_message: string | null }>(
+ 'POST',
+ `/integrations/${id}/test`,
+ options,
+ ),
+ }
+
// ============================================
// Price Lists (admin-only — wholesale, regional, volume pricing)
// ============================================
diff --git a/packages/admin-sdk/src/params.ts b/packages/admin-sdk/src/params.ts
index 77fca012e1..c98f14f996 100644
--- a/packages/admin-sdk/src/params.ts
+++ b/packages/admin-sdk/src/params.ts
@@ -1397,6 +1397,41 @@ export interface PaymentMethodUpdateParams {
*/
export type PaymentMethodType = ResourceTypeDefinition
+/**
+ * One entry returned by `GET /integrations/types` — every registered
+ * integration with its configuration schema and whether the current store
+ * has it connected. This is the gallery source for the integrations
+ * settings page.
+ */
+export interface IntegrationTypeDefinition {
+ /** Wire shorthand (`Spree::Integration.api_type`), not the Ruby class name. */
+ type: string
+ name: string
+ /** Display grouping, e.g. `shipping`, `tax`; null for ungrouped. */
+ group: string | null
+ icon: string | null
+ preference_schema: { key: string; type: string; default: unknown }[]
+ /** Whether the current store already holds credentials for this type. */
+ connected: boolean
+}
+
+export interface IntegrationCreateParams {
+ /** Wire shorthand from `integrations.types()`. */
+ type: string
+ /** Activation runs the connection check server-side and 422s on failure. */
+ active?: boolean
+ /**
+ * Credential values; secret (`password`-typed) preferences come back
+ * masked, and submitting a masked value back keeps the stored secret.
+ */
+ preferences?: Record<string, unknown>
+}
+
+export interface IntegrationUpdateParams {
+ active?: boolean
+ preferences?: Record<string, unknown>
+}
+
/**
* API shorthand for an export type (`Spree::Export.api_type`), not the Ruby
* class name. The server validates `type` against the configured allowlist
diff --git a/packages/admin-sdk/src/types/generated/Integration.ts b/packages/admin-sdk/src/types/generated/Integration.ts
new file mode 100644
index 0000000000..bace1ef785
--- /dev/null
+++ b/packages/admin-sdk/src/types/generated/Integration.ts
@@ -0,0 +1,17 @@
+// Typelizer digest c130808f6213c3b4dc8a02568d441fde
+//
+// DO NOT MODIFY: This file was automatically generated by Typelizer.
+
+interface Integration {
+ id: string;
+ name: string;
+ active: boolean;
+ created_at: string;
+ updated_at: string;
+ type: string;
+ group: string | null;
+ preferences: Record<string, unknown>;
+ preference_schema: Array<{ key: string; type: string; default: unknown }>;
+}
+
+export default Integration;
diff --git a/packages/admin-sdk/src/types/index.ts b/packages/admin-sdk/src/types/index.ts
index c875bbe587..fc5d999ced 100644
--- a/packages/admin-sdk/src/types/index.ts
+++ b/packages/admin-sdk/src/types/index.ts
@@ -47,6 +47,7 @@ export type { default as GiftCardBatch } from './generated/GiftCardBatch'
export type { default as Import } from './generated/Import'
export type { default as ImportMapping } from './generated/ImportMapping'
export type { default as ImportRow } from './generated/ImportRow'
+export type { default as Integration } from './generated/Integration'
export type { default as Invitation } from './generated/Invitation'
export type { default as LineItem } from './generated/LineItem'
export type { default as Market } from './generated/Market'
diff --git a/packages/dashboard-core/src/lib/permissions.ts b/packages/dashboard-core/src/lib/permissions.ts
index 66f512fd08..4b7084bff4 100644
--- a/packages/dashboard-core/src/lib/permissions.ts
+++ b/packages/dashboard-core/src/lib/permissions.ts
@@ -30,6 +30,7 @@ export const Subject = {
ClaimReason: 'Spree::ClaimReason',
RefundReason: 'Spree::RefundReason',
CustomFieldDefinition: 'Spree::CustomFieldDefinition',
+ Integration: 'Spree::Integration',
PaymentMethod: 'Spree::PaymentMethod',
DeliveryMethod: 'Spree::DeliveryMethod',
DeliveryZone: 'Spree::DeliveryZone',
diff --git a/packages/dashboard-starter/src/routeTree.gen.ts b/packages/dashboard-starter/src/routeTree.gen.ts
index e619c8a509..3b1b3338f8 100644
--- a/packages/dashboard-starter/src/routeTree.gen.ts
+++ b/packages/dashboard-starter/src/routeTree.gen.ts
@@ -38,6 +38,7 @@ import { Route as SettingsReasonsRouteImport } from './../../dashboard/src/route
import { Route as SettingsProductTypesRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/product-types'
import { Route as SettingsPaymentMethodsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/payment-methods'
import { Route as SettingsMarketsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/markets'
+import { Route as SettingsIntegrationsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/integrations'
import { Route as SettingsEmailsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/emails'
import { Route as SettingsDeliveryZonesRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/delivery-zones'
import { Route as SettingsDeliveryMethodsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/delivery-methods'
@@ -216,6 +217,11 @@ const SettingsMarketsRoute = SettingsMarketsRouteImport.update({
path: '/markets',
getParentRoute: () => SettingsRoute,
} as any)
+const SettingsIntegrationsRoute = SettingsIntegrationsRouteImport.update({
+ id: '/integrations',
+ path: '/integrations',
+ getParentRoute: () => SettingsRoute,
+} as any)
const SettingsEmailsRoute = SettingsEmailsRouteImport.update({
id: '/emails',
path: '/emails',
@@ -417,6 +423,7 @@ export interface FileRoutesByFullPath {
'/$storeId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
'/$storeId/settings/delivery-zones': typeof SettingsDeliveryZonesRoute
'/$storeId/settings/emails': typeof SettingsEmailsRoute
+ '/$storeId/settings/integrations': typeof SettingsIntegrationsRoute
'/$storeId/settings/markets': typeof SettingsMarketsRoute
'/$storeId/settings/payment-methods': typeof SettingsPaymentMethodsRoute
'/$storeId/settings/product-types': typeof SettingsProductTypesRoute
@@ -477,6 +484,7 @@ export interface FileRoutesByTo {
'/$storeId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
'/$storeId/settings/delivery-zones': typeof SettingsDeliveryZonesRoute
'/$storeId/settings/emails': typeof SettingsEmailsRoute
+ '/$storeId/settings/integrations': typeof SettingsIntegrationsRoute
'/$storeId/settings/markets': typeof SettingsMarketsRoute
'/$storeId/settings/payment-methods': typeof SettingsPaymentMethodsRoute
'/$storeId/settings/product-types': typeof SettingsProductTypesRoute
@@ -541,6 +549,7 @@ export interface FileRoutesById {
'/_authenticated/$storeId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
'/_authenticated/$storeId/settings/delivery-zones': typeof SettingsDeliveryZonesRoute
'/_authenticated/$storeId/settings/emails': typeof SettingsEmailsRoute
+ '/_authenticated/$storeId/settings/integrations': typeof SettingsIntegrationsRoute
'/_authenticated/$storeId/settings/markets': typeof SettingsMarketsRoute
'/_authenticated/$storeId/settings/payment-methods': typeof SettingsPaymentMethodsRoute
'/_authenticated/$storeId/settings/product-types': typeof SettingsProductTypesRoute
@@ -605,6 +614,7 @@ export interface FileRouteTypes {
| '/$storeId/settings/delivery-methods'
| '/$storeId/settings/delivery-zones'
| '/$storeId/settings/emails'
+ | '/$storeId/settings/integrations'
| '/$storeId/settings/markets'
| '/$storeId/settings/payment-methods'
| '/$storeId/settings/product-types'
@@ -665,6 +675,7 @@ export interface FileRouteTypes {
| '/$storeId/settings/delivery-methods'
| '/$storeId/settings/delivery-zones'
| '/$storeId/settings/emails'
+ | '/$storeId/settings/integrations'
| '/$storeId/settings/markets'
| '/$storeId/settings/payment-methods'
| '/$storeId/settings/product-types'
@@ -728,6 +739,7 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/settings/delivery-methods'
| '/_authenticated/$storeId/settings/delivery-zones'
| '/_authenticated/$storeId/settings/emails'
+ | '/_authenticated/$storeId/settings/integrations'
| '/_authenticated/$storeId/settings/markets'
| '/_authenticated/$storeId/settings/payment-methods'
| '/_authenticated/$storeId/settings/product-types'
@@ -970,6 +982,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SettingsMarketsRouteImport
parentRoute: typeof SettingsRoute
}
+ '/_authenticated/$storeId/settings/integrations': {
+ id: '/_authenticated/$storeId/settings/integrations'
+ path: '/integrations'
+ fullPath: '/$storeId/settings/integrations'
+ preLoaderRoute: typeof SettingsIntegrationsRouteImport
+ parentRoute: typeof SettingsRoute
+ }
'/_authenticated/$storeId/settings/emails': {
id: '/_authenticated/$storeId/settings/emails'
path: '/emails'
@@ -1205,6 +1224,7 @@ interface SettingsRouteChildren {
SettingsDeliveryMethodsRoute: typeof SettingsDeliveryMethodsRoute
SettingsDeliveryZonesRoute: typeof SettingsDeliveryZonesRoute
SettingsEmailsRoute: typeof SettingsEmailsRoute
+ SettingsIntegrationsRoute: typeof SettingsIntegrationsRoute
SettingsMarketsRoute: typeof SettingsMarketsRoute
SettingsPaymentMethodsRoute: typeof SettingsPaymentMethodsRoute
SettingsProductTypesRoute: typeof SettingsProductTypesRoute
@@ -1228,6 +1248,7 @@ const SettingsRouteChildren: SettingsRouteChildren = {
SettingsDeliveryMethodsRoute: SettingsDeliveryMethodsRoute,
SettingsDeliveryZonesRoute: SettingsDeliveryZonesRoute,
SettingsEmailsRoute: SettingsEmailsRoute,
+ SettingsIntegrationsRoute: SettingsIntegrationsRoute,
SettingsMarketsRoute: SettingsMarketsRoute,
SettingsPaymentMethodsRoute: SettingsPaymentMethodsRoute,
SettingsProductTypesRoute: SettingsProductTypesRoute,
diff --git a/packages/dashboard/src/hooks/use-integrations.ts b/packages/dashboard/src/hooks/use-integrations.ts
new file mode 100644
index 0000000000..25c5f2db06
--- /dev/null
+++ b/packages/dashboard/src/hooks/use-integrations.ts
@@ -0,0 +1,58 @@
+import type {
+ Integration,
+ IntegrationCreateParams,
+ IntegrationUpdateParams,
+} from '@spree/admin-sdk'
+import { adminClient, useResourceKey, useResourceMutation } from '@spree/dashboard-core'
+import { useMutation, useQuery } from '@tanstack/react-query'
+import i18n from 'i18next'
+
+export function useIntegrations() {
+ return useQuery({
+ queryKey: useResourceKey('integrations'),
+ queryFn: () => adminClient.integrations.list({ limit: 100 }),
+ })
+}
+
+export function useIntegrationTypes() {
+ return useQuery({
+ queryKey: useResourceKey('integrations', 'types'),
+ queryFn: () => adminClient.integrations.types(),
+ staleTime: 1000 * 60 * 30,
+ })
+}
+
+export function useCreateIntegration() {
+ return useResourceMutation<Integration, Error, IntegrationCreateParams>({
+ mutationFn: (params) => adminClient.integrations.create(params),
+ invalidate: [['integrations']],
+ successMessage: i18n.t('admin.integrations.messages.connected'),
+ errorMessage: i18n.t('admin.errors.failed_to_create'),
+ })
+}
+
+export function useUpdateIntegration(id: string) {
+ return useResourceMutation<Integration, Error, IntegrationUpdateParams>({
+ mutationFn: (params) => adminClient.integrations.update(id, params),
+ invalidate: [['integrations']],
+ successMessage: i18n.t('admin.integrations.messages.updated'),
+ errorMessage: i18n.t('admin.errors.failed_to_update'),
+ })
+}
+
+export function useDeleteIntegration() {
+ return useResourceMutation<void, Error, string>({
+ mutationFn: (id) => adminClient.integrations.delete(id),
+ invalidate: [['integrations']],
+ successMessage: i18n.t('admin.integrations.messages.disconnected'),
+ errorMessage: i18n.t('admin.errors.failed_to_delete'),
+ })
+}
+
+// Plain mutation: the result is displayed inline in the sheet, not toasted —
+// a failed check is expected output, not an error condition.
+export function useTestIntegration() {
+ return useMutation({
+ mutationFn: (id: string) => adminClient.integrations.test(id),
+ })
+}
diff --git a/packages/dashboard/src/locales/ar.json b/packages/dashboard/src/locales/ar.json
index 1bb184c6e1..20ad5ab37e 100644
--- a/packages/dashboard/src/locales/ar.json
+++ b/packages/dashboard/src/locales/ar.json
@@ -3166,6 +3166,7 @@
"allowed_origins": "المصادر المسموح بها",
"api_keys": "مفاتيح API",
"channels": "قنوات البيع",
+ "integrations": "التكاملات",
"custom_field_definitions": "الحقول المخصصة",
"delivery_methods": "طرق التوصيل",
"delivery_zones": "مناطق التوصيل",
@@ -3347,6 +3348,50 @@
"saved": "تم حفظ الترجمات",
"source": "المصدر",
"title": "الترجمات"
+ },
+ "integrations": {
+ "title": "التكاملات",
+ "description": "اربط خدمات المزوّدين بهذا المتجر. تُخزَّن بيانات الاعتماد لكل متجر ويستخدمها مزوّدو التوصيل والضرائب وغيرهم.",
+ "empty": {
+ "title": "لا توجد تكاملات مثبّتة",
+ "description": "تأتي التكاملات مع إضافات المزوّدين. ثبّت حزمة مزوّد وستظهر تكاملاتها هنا."
+ },
+ "status": {
+ "active": "مفعّل",
+ "connected_inactive": "متصل (غير مفعّل)",
+ "not_connected": "غير متصل"
+ },
+ "connect_cta": "اتصال",
+ "configure_cta": "إعداد",
+ "view_cta": "عرض",
+ "connect_description": "أدخل بيانات اعتماد هذا المزوّد. الحفظ يخزّنها؛ والتفعيل يتحقق من الاتصال.",
+ "edit_description": "حدّث بيانات الاعتماد أو التفعيل. القيم السرّية مقنّعة؛ اتركها دون تغيير للاحتفاظ بالسر المخزّن.",
+ "active_toggle": {
+ "label": "مفعّل",
+ "help": "التفعيل يتحقق من الاتصال ويجعل التكامل متاحًا للمزوّدين."
+ },
+ "test": {
+ "label": "الاتصال",
+ "run": "اختبار الاتصال",
+ "testing": "جارٍ الاختبار…",
+ "success": "نجح الاتصال.",
+ "failure": "فشل الاتصال."
+ },
+ "disconnect": "قطع الاتصال",
+ "disconnect_confirm": {
+ "title": "قطع اتصال التكامل",
+ "message": "هل تريد قطع اتصال {{name}}؟ ستُحذف بيانات الاعتماد المخزّنة وسيتوقف المزوّدون الذين يستخدمونها عن العمل."
+ },
+ "messages": {
+ "connected": "تم توصيل التكامل",
+ "updated": "تم تحديث التكامل",
+ "disconnected": "تم قطع اتصال التكامل"
+ },
+ "groups": {
+ "shipping": "الشحن",
+ "tax": "الضرائب",
+ "other": "أخرى"
+ }
}
}
}
diff --git a/packages/dashboard/src/locales/de.json b/packages/dashboard/src/locales/de.json
index 4ed98cfaa7..490efed5e2 100644
--- a/packages/dashboard/src/locales/de.json
+++ b/packages/dashboard/src/locales/de.json
@@ -3160,6 +3160,7 @@
"allowed_origins": "Zugelassene Ursprünge",
"api_keys": "API-Schlüssel",
"channels": "Verkaufskanäle",
+ "integrations": "Integrationen",
"custom_field_definitions": "Benutzerdefinierte Felder",
"delivery_methods": "Versandarten",
"delivery_zones": "Lieferzonen",
@@ -3341,6 +3342,50 @@
"saved": "Übersetzungen gespeichert",
"source": "Quelle",
"title": "Übersetzungen"
+ },
+ "integrations": {
+ "title": "Integrationen",
+ "description": "Verbinden Sie Anbieterdienste mit diesem Shop. Zugangsdaten werden pro Shop gespeichert und von Versand-, Steuer- und anderen Anbietern genutzt.",
+ "empty": {
+ "title": "Keine Integrationen installiert",
+ "description": "Integrationen werden mit Anbieter-Erweiterungen ausgeliefert. Installieren Sie ein Anbieter-Gem, und die Integrationen erscheinen hier."
+ },
+ "status": {
+ "active": "Aktiv",
+ "connected_inactive": "Verbunden (inaktiv)",
+ "not_connected": "Nicht verbunden"
+ },
+ "connect_cta": "Verbinden",
+ "configure_cta": "Konfigurieren",
+ "view_cta": "Ansehen",
+ "connect_description": "Geben Sie die Zugangsdaten für diesen Anbieter ein. Speichern legt sie ab; das Aktivieren prüft die Verbindung.",
+ "edit_description": "Zugangsdaten oder Aktivierung ändern. Geheime Werte sind maskiert; unverändert lassen, um das gespeicherte Geheimnis zu behalten.",
+ "active_toggle": {
+ "label": "Aktiv",
+ "help": "Die Aktivierung prüft die Verbindung und stellt die Integration den Anbietern zur Verfügung."
+ },
+ "test": {
+ "label": "Verbindung",
+ "run": "Verbindung testen",
+ "testing": "Wird getestet…",
+ "success": "Verbindung erfolgreich.",
+ "failure": "Verbindung fehlgeschlagen."
+ },
+ "disconnect": "Trennen",
+ "disconnect_confirm": {
+ "title": "Integration trennen",
+ "message": "{{name}} trennen? Die gespeicherten Zugangsdaten werden gelöscht und Anbieter, die sie nutzen, funktionieren nicht mehr."
+ },
+ "messages": {
+ "connected": "Integration verbunden",
+ "updated": "Integration aktualisiert",
+ "disconnected": "Integration getrennt"
+ },
+ "groups": {
+ "shipping": "Versand",
+ "tax": "Steuern",
+ "other": "Sonstige"
+ }
}
}
}
diff --git a/packages/dashboard/src/locales/en.json b/packages/dashboard/src/locales/en.json
index 76d2b361e1..2b5f222074 100644
--- a/packages/dashboard/src/locales/en.json
+++ b/packages/dashboard/src/locales/en.json
@@ -3160,6 +3160,7 @@
"allowed_origins": "Allowed origins",
"api_keys": "API keys",
"channels": "Sales channels",
+ "integrations": "Integrations",
"custom_field_definitions": "Custom fields",
"delivery_methods": "Delivery methods",
"delivery_zones": "Delivery zones",
@@ -3341,6 +3342,50 @@
"saved": "Translations saved",
"source": "Source",
"title": "Translations"
+ },
+ "integrations": {
+ "title": "Integrations",
+ "description": "Connect provider services to this store. Credentials are stored per store and used by delivery, tax and other providers.",
+ "empty": {
+ "title": "No integrations installed",
+ "description": "Integrations ship with provider extensions. Install a provider gem and its integrations appear here."
+ },
+ "status": {
+ "active": "Active",
+ "connected_inactive": "Connected (inactive)",
+ "not_connected": "Not connected"
+ },
+ "connect_cta": "Connect",
+ "configure_cta": "Configure",
+ "view_cta": "View",
+ "connect_description": "Enter the credentials for this provider. Saving stores them; switching it active verifies the connection.",
+ "edit_description": "Update credentials or activation. Secret values are masked; leave them unchanged to keep the stored secret.",
+ "active_toggle": {
+ "label": "Active",
+ "help": "Activation verifies the connection and makes the integration available to providers."
+ },
+ "test": {
+ "label": "Connection",
+ "run": "Test connection",
+ "testing": "Testing…",
+ "success": "Connection successful.",
+ "failure": "Connection failed."
+ },
+ "disconnect": "Disconnect",
+ "disconnect_confirm": {
+ "title": "Disconnect integration",
+ "message": "Disconnect {{name}}? Its stored credentials are deleted and providers using it stop working."
+ },
+ "messages": {
+ "connected": "Integration connected",
+ "updated": "Integration updated",
+ "disconnected": "Integration disconnected"
+ },
+ "groups": {
+ "shipping": "Shipping",
+ "tax": "Tax",
+ "other": "Other"
+ }
}
}
}
diff --git a/packages/dashboard/src/locales/fr.json b/packages/dashboard/src/locales/fr.json
index 09608b7ee9..5afcb61b0a 100644
--- a/packages/dashboard/src/locales/fr.json
+++ b/packages/dashboard/src/locales/fr.json
@@ -3160,6 +3160,7 @@
"allowed_origins": "Origines autorisées",
"api_keys": "Clés API",
"channels": "Canaux de vente",
+ "integrations": "Intégrations",
"custom_field_definitions": "Champs personnalisés",
"delivery_methods": "Méthodes de livraison",
"delivery_zones": "Zones de livraison",
@@ -3341,6 +3342,50 @@
"saved": "Traductions enregistrées",
"source": "Source",
"title": "Traductions"
+ },
+ "integrations": {
+ "title": "Intégrations",
+ "description": "Connectez des services fournisseurs à cette boutique. Les identifiants sont stockés par boutique et utilisés par les fournisseurs de livraison, de taxes et autres.",
+ "empty": {
+ "title": "Aucune intégration installée",
+ "description": "Les intégrations sont fournies par les extensions. Installez une gem fournisseur et ses intégrations apparaîtront ici."
+ },
+ "status": {
+ "active": "Active",
+ "connected_inactive": "Connectée (inactive)",
+ "not_connected": "Non connectée"
+ },
+ "connect_cta": "Connecter",
+ "configure_cta": "Configurer",
+ "view_cta": "Voir",
+ "connect_description": "Saisissez les identifiants de ce fournisseur. L'enregistrement les stocke ; l'activation vérifie la connexion.",
+ "edit_description": "Modifiez les identifiants ou l'activation. Les valeurs secrètes sont masquées ; laissez-les inchangées pour conserver le secret stocké.",
+ "active_toggle": {
+ "label": "Active",
+ "help": "L'activation vérifie la connexion et rend l'intégration disponible pour les fournisseurs."
+ },
+ "test": {
+ "label": "Connexion",
+ "run": "Tester la connexion",
+ "testing": "Test en cours…",
+ "success": "Connexion réussie.",
+ "failure": "Échec de la connexion."
+ },
+ "disconnect": "Déconnecter",
+ "disconnect_confirm": {
+ "title": "Déconnecter l'intégration",
+ "message": "Déconnecter {{name}} ? Ses identifiants stockés seront supprimés et les fournisseurs qui les utilisent cesseront de fonctionner."
+ },
+ "messages": {
+ "connected": "Intégration connectée",
+ "updated": "Intégration mise à jour",
+ "disconnected": "Intégration déconnectée"
+ },
+ "groups": {
+ "shipping": "Livraison",
+ "tax": "Taxes",
+ "other": "Autres"
+ }
}
}
}
diff --git a/packages/dashboard/src/locales/pl.json b/packages/dashboard/src/locales/pl.json
index e74c3fb7fe..98c4e4c087 100644
--- a/packages/dashboard/src/locales/pl.json
+++ b/packages/dashboard/src/locales/pl.json
@@ -3202,6 +3202,7 @@
"allowed_origins": "Dozwolone źródła",
"api_keys": "Klucze API",
"channels": "Kanały sprzedaży",
+ "integrations": "Integracje",
"custom_field_definitions": "Pola niestandardowe",
"delivery_methods": "Metody dostawy",
"delivery_zones": "Strefy dostawy",
@@ -3383,6 +3384,50 @@
"saved": "Tłumaczenia zapisane",
"source": "Źródło",
"title": "Tłumaczenia"
+ },
+ "integrations": {
+ "title": "Integracje",
+ "description": "Połącz usługi dostawców z tym sklepem. Dane dostępowe są przechowywane per sklep i używane przez dostawców dostaw, podatków i innych.",
+ "empty": {
+ "title": "Brak zainstalowanych integracji",
+ "description": "Integracje pochodzą z rozszerzeń dostawców. Zainstaluj gem dostawcy, a jego integracje pojawią się tutaj."
+ },
+ "status": {
+ "active": "Aktywna",
+ "connected_inactive": "Połączona (nieaktywna)",
+ "not_connected": "Niepołączona"
+ },
+ "connect_cta": "Połącz",
+ "configure_cta": "Konfiguruj",
+ "view_cta": "Zobacz",
+ "connect_description": "Wprowadź dane dostępowe tego dostawcy. Zapis je przechowuje; aktywacja weryfikuje połączenie.",
+ "edit_description": "Zmień dane dostępowe lub aktywację. Wartości tajne są maskowane; pozostaw je bez zmian, aby zachować zapisany sekret.",
+ "active_toggle": {
+ "label": "Aktywna",
+ "help": "Aktywacja weryfikuje połączenie i udostępnia integrację dostawcom."
+ },
+ "test": {
+ "label": "Połączenie",
+ "run": "Testuj połączenie",
+ "testing": "Testowanie…",
+ "success": "Połączenie udane.",
+ "failure": "Połączenie nieudane."
+ },
+ "disconnect": "Rozłącz",
+ "disconnect_confirm": {
+ "title": "Rozłącz integrację",
+ "message": "Rozłączyć {{name}}? Zapisane dane dostępowe zostaną usunięte, a korzystający z nich dostawcy przestaną działać."
+ },
+ "messages": {
+ "connected": "Integracja połączona",
+ "updated": "Integracja zaktualizowana",
+ "disconnected": "Integracja rozłączona"
+ },
+ "groups": {
+ "shipping": "Dostawa",
+ "tax": "Podatki",
+ "other": "Inne"
+ }
}
}
}
diff --git a/packages/dashboard/src/locales/zh-CN.json b/packages/dashboard/src/locales/zh-CN.json
index 89df19b6bf..28746fe6c5 100644
--- a/packages/dashboard/src/locales/zh-CN.json
+++ b/packages/dashboard/src/locales/zh-CN.json
@@ -3160,6 +3160,7 @@
"allowed_origins": "允许的来源",
"api_keys": "API 密钥",
"channels": "销售渠道",
+ "integrations": "集成",
"custom_field_definitions": "自定义字段",
"delivery_methods": "配送方式",
"delivery_zones": "配送区域",
@@ -3341,6 +3342,50 @@
"saved": "翻译已保存",
"source": "源",
"title": "翻译"
+ },
+ "integrations": {
+ "title": "集成",
+ "description": "将服务提供方连接到此商店。凭据按商店存储,供配送、税务及其他提供方使用。",
+ "empty": {
+ "title": "未安装任何集成",
+ "description": "集成随提供方扩展一起提供。安装提供方 gem 后,其集成将显示在此处。"
+ },
+ "status": {
+ "active": "已启用",
+ "connected_inactive": "已连接(未启用)",
+ "not_connected": "未连接"
+ },
+ "connect_cta": "连接",
+ "configure_cta": "配置",
+ "view_cta": "查看",
+ "connect_description": "输入此提供方的凭据。保存即存储;启用时会验证连接。",
+ "edit_description": "更新凭据或启用状态。机密值已被遮盖;保持不变即可保留已存储的机密。",
+ "active_toggle": {
+ "label": "启用",
+ "help": "启用会验证连接,并使该集成可供提供方使用。"
+ },
+ "test": {
+ "label": "连接",
+ "run": "测试连接",
+ "testing": "正在测试…",
+ "success": "连接成功。",
+ "failure": "连接失败。"
+ },
+ "disconnect": "断开连接",
+ "disconnect_confirm": {
+ "title": "断开集成",
+ "message": "断开 {{name}}?其存储的凭据将被删除,使用它的提供方将停止工作。"
+ },
+ "messages": {
+ "connected": "集成已连接",
+ "updated": "集成已更新",
+ "disconnected": "集成已断开"
+ },
+ "groups": {
+ "shipping": "配送",
+ "tax": "税务",
+ "other": "其他"
+ }
}
}
}
diff --git a/packages/dashboard/src/nav/settings.ts b/packages/dashboard/src/nav/settings.ts
index 9465c04170..025c020998 100644
--- a/packages/dashboard/src/nav/settings.ts
+++ b/packages/dashboard/src/nav/settings.ts
@@ -7,6 +7,7 @@ import {
MailIcon,
MapIcon,
PercentIcon,
+ PlugIcon,
RadioTowerIcon,
RotateCcwIcon,
ShapesIcon,
@@ -152,6 +153,16 @@ settingsNav.add({
subject: Subject.ReturnReason,
})
+settingsNav.add({
+ key: 'settings.integrations',
+ labelKey: 'admin.settings_nav.items.integrations',
+ path: '/integrations',
+ icon: PlugIcon,
+ group: 'store',
+ position: 175,
+ subject: Subject.Integration,
+})
+
settingsNav.add({
key: 'settings.custom-field-definitions',
labelKey: 'admin.settings_nav.items.custom_field_definitions',
diff --git a/packages/dashboard/src/routeTree.gen.ts b/packages/dashboard/src/routeTree.gen.ts
index ae8227065e..534e8ff751 100644
--- a/packages/dashboard/src/routeTree.gen.ts
+++ b/packages/dashboard/src/routeTree.gen.ts
@@ -37,6 +37,7 @@ import { Route as SettingsReasonsRouteImport } from './routes/_authenticated/$st
import { Route as SettingsProductTypesRouteImport } from './routes/_authenticated/$storeId/settings/product-types'
import { Route as SettingsPaymentMethodsRouteImport } from './routes/_authenticated/$storeId/settings/payment-methods'
import { Route as SettingsMarketsRouteImport } from './routes/_authenticated/$storeId/settings/markets'
+import { Route as SettingsIntegrationsRouteImport } from './routes/_authenticated/$storeId/settings/integrations'
import { Route as SettingsEmailsRouteImport } from './routes/_authenticated/$storeId/settings/emails'
import { Route as SettingsDeliveryZonesRouteImport } from './routes/_authenticated/$storeId/settings/delivery-zones'
import { Route as SettingsDeliveryMethodsRouteImport } from './routes/_authenticated/$storeId/settings/delivery-methods'
@@ -209,6 +210,11 @@ const SettingsMarketsRoute = SettingsMarketsRouteImport.update({
path: '/markets',
getParentRoute: () => SettingsRoute,
} as any)
+const SettingsIntegrationsRoute = SettingsIntegrationsRouteImport.update({
+ id: '/integrations',
+ path: '/integrations',
+ getParentRoute: () => SettingsRoute,
+} as any)
const SettingsEmailsRoute = SettingsEmailsRouteImport.update({
id: '/emails',
path: '/emails',
@@ -404,6 +410,7 @@ export interface FileRoutesByFullPath {
'/$storeId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
'/$storeId/settings/delivery-zones': typeof SettingsDeliveryZonesRoute
'/$storeId/settings/emails': typeof SettingsEmailsRoute
+ '/$storeId/settings/integrations': typeof SettingsIntegrationsRoute
'/$storeId/settings/markets': typeof SettingsMarketsRoute
'/$storeId/settings/payment-methods': typeof SettingsPaymentMethodsRoute
'/$storeId/settings/product-types': typeof SettingsProductTypesRoute
@@ -462,6 +469,7 @@ export interface FileRoutesByTo {
'/$storeId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
'/$storeId/settings/delivery-zones': typeof SettingsDeliveryZonesRoute
'/$storeId/settings/emails': typeof SettingsEmailsRoute
+ '/$storeId/settings/integrations': typeof SettingsIntegrationsRoute
'/$storeId/settings/markets': typeof SettingsMarketsRoute
'/$storeId/settings/payment-methods': typeof SettingsPaymentMethodsRoute
'/$storeId/settings/product-types': typeof SettingsProductTypesRoute
@@ -524,6 +532,7 @@ export interface FileRoutesById {
'/_authenticated/$storeId/settings/delivery-methods': typeof SettingsDeliveryMethodsRoute
'/_authenticated/$storeId/settings/delivery-zones': typeof SettingsDeliveryZonesRoute
'/_authenticated/$storeId/settings/emails': typeof SettingsEmailsRoute
+ '/_authenticated/$storeId/settings/integrations': typeof SettingsIntegrationsRoute
'/_authenticated/$storeId/settings/markets': typeof SettingsMarketsRoute
'/_authenticated/$storeId/settings/payment-methods': typeof SettingsPaymentMethodsRoute
'/_authenticated/$storeId/settings/product-types': typeof SettingsProductTypesRoute
@@ -586,6 +595,7 @@ export interface FileRouteTypes {
| '/$storeId/settings/delivery-methods'
| '/$storeId/settings/delivery-zones'
| '/$storeId/settings/emails'
+ | '/$storeId/settings/integrations'
| '/$storeId/settings/markets'
| '/$storeId/settings/payment-methods'
| '/$storeId/settings/product-types'
@@ -644,6 +654,7 @@ export interface FileRouteTypes {
| '/$storeId/settings/delivery-methods'
| '/$storeId/settings/delivery-zones'
| '/$storeId/settings/emails'
+ | '/$storeId/settings/integrations'
| '/$storeId/settings/markets'
| '/$storeId/settings/payment-methods'
| '/$storeId/settings/product-types'
@@ -705,6 +716,7 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/settings/delivery-methods'
| '/_authenticated/$storeId/settings/delivery-zones'
| '/_authenticated/$storeId/settings/emails'
+ | '/_authenticated/$storeId/settings/integrations'
| '/_authenticated/$storeId/settings/markets'
| '/_authenticated/$storeId/settings/payment-methods'
| '/_authenticated/$storeId/settings/product-types'
@@ -939,6 +951,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SettingsMarketsRouteImport
parentRoute: typeof SettingsRoute
}
+ '/_authenticated/$storeId/settings/integrations': {
+ id: '/_authenticated/$storeId/settings/integrations'
+ path: '/integrations'
+ fullPath: '/$storeId/settings/integrations'
+ preLoaderRoute: typeof SettingsIntegrationsRouteImport
+ parentRoute: typeof SettingsRoute
+ }
'/_authenticated/$storeId/settings/emails': {
id: '/_authenticated/$storeId/settings/emails'
path: '/emails'
@@ -1167,6 +1186,7 @@ interface SettingsRouteChildren {
SettingsDeliveryMethodsRoute: typeof SettingsDeliveryMethodsRoute
SettingsDeliveryZonesRoute: typeof SettingsDeliveryZonesRoute
SettingsEmailsRoute: typeof SettingsEmailsRoute
+ SettingsIntegrationsRoute: typeof SettingsIntegrationsRoute
SettingsMarketsRoute: typeof SettingsMarketsRoute
SettingsPaymentMethodsRoute: typeof SettingsPaymentMethodsRoute
SettingsProductTypesRoute: typeof SettingsProductTypesRoute
@@ -1190,6 +1210,7 @@ const SettingsRouteChildren: SettingsRouteChildren = {
SettingsDeliveryMethodsRoute: SettingsDeliveryMethodsRoute,
SettingsDeliveryZonesRoute: SettingsDeliveryZonesRoute,
SettingsEmailsRoute: SettingsEmailsRoute,
+ SettingsIntegrationsRoute: SettingsIntegrationsRoute,
SettingsMarketsRoute: SettingsMarketsRoute,
SettingsPaymentMethodsRoute: SettingsPaymentMethodsRoute,
SettingsProductTypesRoute: SettingsProductTypesRoute,
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/settings/integrations.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/settings/integrations.tsx
new file mode 100644
index 0000000000..dfde94efbe
--- /dev/null
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/settings/integrations.tsx
@@ -0,0 +1,370 @@
+import type { Integration, IntegrationTypeDefinition } from '@spree/admin-sdk'
+import {
+ Can,
+ defaultPreferences,
+ PageHeader,
+ PreferencesForm,
+ Subject,
+ usePermissions,
+} from '@spree/dashboard-core'
+import {
+ Badge,
+ Button,
+ Card,
+ CardContent,
+ Empty,
+ EmptyDescription,
+ EmptyHeader,
+ EmptyMedia,
+ EmptyTitle,
+ Sheet,
+ SheetContent,
+ SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetTitle,
+ Switch,
+ useConfirm,
+} from '@spree/dashboard-ui'
+import { createFileRoute, useNavigate } from '@tanstack/react-router'
+import { PlugIcon } from 'lucide-react'
+import { useEffect, useMemo, useRef, useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import { z } from 'zod/v4'
+import {
+ useCreateIntegration,
+ useDeleteIntegration,
+ useIntegrations,
+ useIntegrationTypes,
+ useTestIntegration,
+ useUpdateIntegration,
+} from '../../../../hooks/use-integrations'
+
+const integrationsSearchSchema = z.object({
+ configure: z.string().optional(),
+})
+
+export const Route = createFileRoute('/_authenticated/$storeId/settings/integrations')({
+ validateSearch: integrationsSearchSchema,
+ component: IntegrationsPage,
+})
+
+function IntegrationsPage() {
+ const { t } = useTranslation()
+ const navigate = useNavigate()
+ const search = Route.useSearch()
+ const { data: typesResponse, isLoading } = useIntegrationTypes()
+ const { data: integrationsResponse } = useIntegrations()
+
+ const types = useMemo(() => typesResponse?.data ?? [], [typesResponse])
+ const integrations = useMemo(() => integrationsResponse?.data ?? [], [integrationsResponse])
+ const integrationsByType = useMemo(
+ () => new Map(integrations.map((integration) => [integration.type, integration])),
+ [integrations],
+ )
+
+ // Gallery grouped by integration_group; groups arrive as open strings from
+ // gems, so unknown ones fall back to a capitalized version of the token.
+ const grouped = useMemo(() => {
+ const map = new Map<string, IntegrationTypeDefinition[]>()
+ for (const type of types) {
+ const group = type.group ?? 'other'
+ map.set(group, [...(map.get(group) ?? []), type])
+ }
+ return [...map.entries()]
+ }, [types])
+
+ const openConfigure = (type: string) =>
+ navigate({ search: (prev: Record<string, unknown>) => ({ ...prev, configure: type }) as never })
+
+ const closeSheet = () =>
+ navigate({
+ search: (prev: Record<string, unknown>) => {
+ const { configure: _c, ...rest } = prev
+ return rest as never
+ },
+ })
+
+ const configuringType = types.find((type) => type.type === search.configure)
+
+ return (
+ <div className="flex flex-col gap-6 p-4">
+ <PageHeader
+ title={t('admin.integrations.title')}
+ subtitle={t('admin.integrations.description')}
+ />
+
+ {!isLoading && types.length === 0 && (
+ <Empty>
+ <EmptyHeader>
+ <EmptyMedia variant="icon">
+ <PlugIcon />
+ </EmptyMedia>
+ <EmptyTitle>{t('admin.integrations.empty.title')}</EmptyTitle>
+ <EmptyDescription>{t('admin.integrations.empty.description')}</EmptyDescription>
+ </EmptyHeader>
+ </Empty>
+ )}
+
+ {grouped.map(([group, groupTypes]) => (
+ <section key={group} className="flex flex-col gap-3">
+ <h2 className="font-medium text-muted-foreground text-sm">
+ {t(`admin.integrations.groups.${group}`, {
+ defaultValue: group.charAt(0).toUpperCase() + group.slice(1),
+ })}
+ </h2>
+ <div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
+ {groupTypes.map((type) => (
+ <IntegrationCard
+ key={type.type}
+ type={type}
+ integration={integrationsByType.get(type.type)}
+ onConfigure={() => openConfigure(type.type)}
+ />
+ ))}
+ </div>
+ </section>
+ ))}
+
+ {configuringType && (
+ <ConfigureIntegrationSheet
+ type={configuringType}
+ integration={integrationsByType.get(configuringType.type)}
+ open
+ onOpenChange={(open) => !open && closeSheet()}
+ />
+ )}
+ </div>
+ )
+}
+
+function IntegrationCard({
+ type,
+ integration,
+ onConfigure,
+}: {
+ type: IntegrationTypeDefinition
+ integration?: Integration
+ onConfigure: () => void
+}) {
+ const { t } = useTranslation()
+ const { permissions } = usePermissions()
+ const canWrite = permissions.can('update', Subject.Integration)
+
+ return (
+ <Card>
+ <CardContent className="flex items-center justify-between gap-3 p-4">
+ <div className="flex min-w-0 flex-col gap-1">
+ <span className="truncate font-medium text-sm">{type.name}</span>
+ {integration ? (
+ <Badge variant={integration.active ? 'default' : 'secondary'} className="w-fit">
+ {integration.active
+ ? t('admin.integrations.status.active')
+ : t('admin.integrations.status.connected_inactive')}
+ </Badge>
+ ) : (
+ <span className="text-muted-foreground text-xs">
+ {t('admin.integrations.status.not_connected')}
+ </span>
+ )}
+ </div>
+ <Button size="sm" variant={integration ? 'outline' : 'default'} onClick={onConfigure}>
+ {integration
+ ? t('admin.integrations.configure_cta')
+ : canWrite
+ ? t('admin.integrations.connect_cta')
+ : t('admin.integrations.view_cta')}
+ </Button>
+ </CardContent>
+ </Card>
+ )
+}
+
+function ConfigureIntegrationSheet({
+ type,
+ integration,
+ open,
+ onOpenChange,
+}: {
+ type: IntegrationTypeDefinition
+ integration?: Integration
+ open: boolean
+ onOpenChange: (open: boolean) => void
+}) {
+ const { t } = useTranslation()
+ const confirm = useConfirm()
+ const createMutation = useCreateIntegration()
+ const updateMutation = useUpdateIntegration(integration?.id ?? '')
+ const deleteMutation = useDeleteIntegration()
+ const testMutation = useTestIntegration()
+
+ const [preferences, setPreferences] = useState<Record<string, unknown>>({})
+ const [active, setActive] = useState(false)
+ const [submitError, setSubmitError] = useState<string | null>(null)
+ const loadedIdRef = useRef<string | undefined>(undefined)
+
+ useEffect(() => {
+ if (integration) {
+ if (integration.id === loadedIdRef.current) return
+ setPreferences((integration.preferences as Record<string, unknown>) ?? {})
+ setActive(integration.active)
+ loadedIdRef.current = integration.id
+ } else {
+ setPreferences(defaultPreferences(type.preference_schema))
+ setActive(false)
+ loadedIdRef.current = undefined
+ }
+ }, [integration, type])
+
+ const saving = createMutation.isPending || updateMutation.isPending
+
+ async function handleSave() {
+ setSubmitError(null)
+ try {
+ if (integration) {
+ await updateMutation.mutateAsync({ active, preferences })
+ } else {
+ await createMutation.mutateAsync({ type: type.type, active, preferences })
+ }
+ onOpenChange(false)
+ } catch (err) {
+ // Activation failures come back as a 422 on `active` with the vendor's
+ // message — surface it inline, where the admin can act on it.
+ setSubmitError(err instanceof Error ? err.message : String(err))
+ }
+ }
+
+ async function handleDisconnect() {
+ if (!integration) return
+ const ok = await confirm({
+ title: t('admin.integrations.disconnect_confirm.title'),
+ message: t('admin.integrations.disconnect_confirm.message', { name: type.name }),
+ variant: 'destructive',
+ confirmLabel: t('admin.integrations.disconnect'),
+ })
+ if (!ok) return
+ await deleteMutation.mutateAsync(integration.id).catch(() => undefined)
+ onOpenChange(false)
+ }
+
+ return (
+ <Sheet open={open} onOpenChange={onOpenChange}>
+ <SheetContent>
+ <SheetHeader>
+ <SheetTitle>{type.name}</SheetTitle>
+ <SheetDescription>
+ {integration
+ ? t('admin.integrations.edit_description')
+ : t('admin.integrations.connect_description')}
+ </SheetDescription>
+ </SheetHeader>
+ <div className="flex min-h-0 flex-1 flex-col">
+ <div className="flex flex-1 flex-col gap-4 overflow-y-auto p-4">
+ {submitError && (
+ <p className="text-destructive text-sm" role="alert">
+ {submitError}
+ </p>
+ )}
+
+ <PreferencesForm
+ schema={type.preference_schema}
+ values={preferences}
+ onChange={setPreferences}
+ />
+
+ <div className="flex items-center justify-between gap-3">
+ <div className="flex flex-col">
+ <span className="font-medium text-sm">
+ {t('admin.integrations.active_toggle.label')}
+ </span>
+ <span className="text-muted-foreground text-xs">
+ {t('admin.integrations.active_toggle.help')}
+ </span>
+ </div>
+ <Switch checked={active} onCheckedChange={setActive} />
+ </div>
+
+ {integration && (
+ <TestConnectionRow
+ onTest={() => testMutation.mutateAsync(integration.id)}
+ testing={testMutation.isPending}
+ result={testMutation.data}
+ />
+ )}
+ </div>
+ <SheetFooter>
+ {integration && (
+ <Can I="destroy" a={Subject.Integration}>
+ <Button
+ type="button"
+ variant="destructive"
+ size="sm"
+ onClick={handleDisconnect}
+ disabled={deleteMutation.isPending || saving}
+ className="mr-auto"
+ >
+ {t('admin.integrations.disconnect')}
+ </Button>
+ </Can>
+ )}
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => onOpenChange(false)}
+ disabled={saving}
+ >
+ {t('admin.actions.cancel')}
+ </Button>
+ <Can I={integration ? 'update' : 'create'} a={Subject.Integration}>
+ <Button type="button" size="sm" onClick={handleSave} disabled={saving}>
+ {saving
+ ? t('admin.actions.saving')
+ : integration
+ ? t('admin.actions.save')
+ : t('admin.integrations.connect_cta')}
+ </Button>
+ </Can>
+ </SheetFooter>
+ </div>
+ </SheetContent>
+ </Sheet>
+ )
+}
+
+function TestConnectionRow({
+ onTest,
+ testing,
+ result,
+}: {
+ onTest: () => Promise<unknown>
+ testing: boolean
+ result?: { connected: boolean; error_message: string | null }
+}) {
+ const { t } = useTranslation()
+
+ return (
+ <div className="flex flex-col gap-2 rounded-md border p-3">
+ <div className="flex items-center justify-between gap-3">
+ <span className="font-medium text-sm">{t('admin.integrations.test.label')}</span>
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => onTest().catch(() => undefined)}
+ disabled={testing}
+ >
+ {testing ? t('admin.integrations.test.testing') : t('admin.integrations.test.run')}
+ </Button>
+ </div>
+ {result &&
+ (result.connected ? (
+ <p className="text-sm text-success">{t('admin.integrations.test.success')}</p>
+ ) : (
+ <p className="text-destructive text-sm" role="alert">
+ {result.error_message ?? t('admin.integrations.test.failure')}
+ </p>
+ ))}
+ </div>
+ )
+}
diff --git a/spree/api/app/controllers/spree/api/v3/admin/integrations_controller.rb b/spree/api/app/controllers/spree/api/v3/admin/integrations_controller.rb
new file mode 100644
index 0000000000..12f8b6fe9c
--- /dev/null
+++ b/spree/api/app/controllers/spree/api/v3/admin/integrations_controller.rb
@@ -0,0 +1,77 @@
+module Spree
+ module Api
+ module V3
+ module Admin
+ # Credential records for provider gems (delivery rates, tax, ...) —
+ # one per (store, type). The types endpoint is the dashboard's
+ # gallery source; activation is verified by the model
+ # (verify-before-activate), so a failed connection surfaces as a
+ # plain 422 on `active`.
+ class IntegrationsController < ResourceController
+ include Spree::Api::V3::Admin::SubclassedResource
+
+ scoped_resource :integrations
+
+ subclassed_via -> { Spree::Integration.registered_classes },
+ unknown_type_error: 'unknown_integration_type'
+
+ # GET /api/v3/admin/integrations/types
+ # Every registered integration type with its configuration schema
+ # and whether the current store has it connected.
+ def types
+ authorize! :create, model_class
+
+ connected_types = current_store.integrations.pluck(:type)
+ data = Spree::Integration.registered_classes.map do |klass|
+ {
+ type: klass.api_type,
+ name: klass.integration_name,
+ group: klass.integration_group,
+ icon: klass.icon_path,
+ preference_schema: klass.serialized_preference_schema,
+ connected: connected_types.include?(klass.to_s)
+ }
+ end
+
+ render json: { data: data }
+ end
+
+ # POST /api/v3/admin/integrations/:id/test
+ # Live connection check; nothing is persisted.
+ def test
+ @resource = find_resource
+ authorize_resource!(@resource, :update)
+
+ connected = @resource.can_connect?
+ render json: { connected: connected, error_message: connected ? nil : @resource.connection_error_message }
+ end
+
+ protected
+
+ def model_class
+ Spree::Integration
+ end
+
+ def serializer_class
+ Spree.api.admin_integration_serializer
+ end
+
+ def permitted_params
+ params.permit(:type, :active, preferences: {})
+ end
+
+ # `types` is read-only discovery — maps to the read scope.
+ def read_actions
+ super + %w[types]
+ end
+
+ private
+
+ def build_subclassed_resource(klass, attrs)
+ current_store.integrations.build(attrs.merge(type: klass.sti_name))
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/spree/api/app/serializers/spree/api/v3/admin/integration_serializer.rb b/spree/api/app/serializers/spree/api/v3/admin/integration_serializer.rb
new file mode 100644
index 0000000000..d66c574cf6
--- /dev/null
+++ b/spree/api/app/serializers/spree/api/v3/admin/integration_serializer.rb
@@ -0,0 +1,32 @@
+module Spree
+ module Api
+ module V3
+ module Admin
+ # Admin-only — credentials never have a storefront surface. Secrets
+ # are `:password` preferences, masked by `serialized_preferences`.
+ class IntegrationSerializer < V3::BaseSerializer
+ typelize type: :string,
+ name: :string,
+ group: [:string, nullable: true],
+ active: :boolean,
+ preferences: 'Record<string, unknown>',
+ preference_schema: "Array<{ key: string; type: string; default: unknown }>"
+
+ attributes :name, :active,
+ created_at: :iso8601, updated_at: :iso8601
+
+ attribute :type do |integration|
+ integration.class.api_type
+ end
+
+ attribute :group do |integration|
+ integration.class.integration_group
+ end
+
+ attribute :preferences, &:serialized_preferences
+ attribute :preference_schema, &:serialized_preference_schema
+ end
+ end
+ end
+ end
+end
diff --git a/spree/api/config/routes.rb b/spree/api/config/routes.rb
index d8ed87c29a..8ce296c414 100644
--- a/spree/api/config/routes.rb
+++ b/spree/api/config/routes.rb
@@ -342,6 +342,15 @@ Spree::Core::Engine.add_routes do
end
end
+ resources :integrations do
+ collection do
+ get :types
+ end
+ member do
+ post :test
+ end
+ end
+
# Promotions, with nested actions/rules/coupon codes.
resources :promotions do
resources :promotion_actions, only: [:index, :show, :create, :update, :destroy]
diff --git a/spree/api/lib/spree/api/dependencies.rb b/spree/api/lib/spree/api/dependencies.rb
index fd0e35840e..dc34325a70 100644
--- a/spree/api/lib/spree/api/dependencies.rb
+++ b/spree/api/lib/spree/api/dependencies.rb
@@ -99,6 +99,7 @@ module Spree
admin_tax_line_serializer: 'Spree::Api::V3::Admin::TaxLineSerializer',
admin_cart_serializer: 'Spree::Api::V3::Admin::CartSerializer',
admin_delivery_zone_serializer: 'Spree::Api::V3::Admin::DeliveryZoneSerializer',
+ admin_integration_serializer: 'Spree::Api::V3::Admin::IntegrationSerializer',
admin_delivery_method_rule_serializer: 'Spree::Api::V3::Admin::DeliveryMethodRuleSerializer',
admin_delivery_zone_member_serializer: 'Spree::Api::V3::Admin::DeliveryZoneMemberSerializer',
admin_fee_serializer: 'Spree::Api::V3::Admin::FeeSerializer',
diff --git a/spree/api/spec/controllers/spree/api/v3/admin/integrations_controller_spec.rb b/spree/api/spec/controllers/spree/api/v3/admin/integrations_controller_spec.rb
new file mode 100644
index 0000000000..08215bbc68
--- /dev/null
+++ b/spree/api/spec/controllers/spree/api/v3/admin/integrations_controller_spec.rb
@@ -0,0 +1,137 @@
+require 'spec_helper'
+
+RSpec.describe Spree::Api::V3::Admin::IntegrationsController, type: :controller do
+ render_views
+
+ include_context 'API v3 Admin authenticated'
+
+ before { request.headers.merge!(headers) }
+
+ # A representative carrier integration: one secret, one plain preference,
+ # connection check controlled per example.
+ let(:integration_class) do
+ Class.new(Spree::Integration) do
+ preference :api_key, :password
+ preference :account_number, :string
+
+ def self.name = 'TestIntegrations::Carrier'
+ def self.integration_group = 'shipping'
+
+ def can_connect?
+ preferred_api_key == 'valid-key' || begin
+ self.connection_error_message = 'invalid api key'
+ false
+ end
+ end
+ end
+ end
+
+ before do
+ stub_const('TestIntegrations::Carrier', integration_class)
+ Spree.integrations << 'TestIntegrations::Carrier'
+ end
+
+ after { Spree.integrations.delete('TestIntegrations::Carrier') }
+
+ describe 'GET #types' do
+ it 'lists registered types with schema and connected state' do
+ get :types, as: :json
+
+ expect(response).to have_http_status(:ok)
+ entry = json_response['data'].find { |row| row['type'] == 'carrier' }
+ expect(entry['name']).to eq('Carrier')
+ expect(entry['group']).to eq('shipping')
+ expect(entry['connected']).to be false
+ expect(entry['preference_schema'].map { |f| f['key'] }).to match_array(%w[api_key account_number])
+ end
+
+ it 'marks connected types for the current store' do
+ TestIntegrations::Carrier.create!(store: store, active: false)
+
+ get :types, as: :json
+
+ entry = json_response['data'].find { |row| row['type'] == 'carrier' }
+ expect(entry['connected']).to be true
+ end
+ end
+
+ describe 'POST #create' do
+ it 'creates from the wire shorthand with typed preferences' do
+ post :create, params: { type: 'carrier', preferences: { api_key: 'valid-key', account_number: '123' } }, as: :json
+
+ expect(response).to have_http_status(:created)
+ expect(json_response['type']).to eq('carrier')
+ expect(json_response['preferences']['account_number']).to eq('123')
+ # Secrets never leave the server in plaintext.
+ expect(json_response['preferences']['api_key']).to start_with('••••')
+
+ integration = store.integrations.last
+ expect(integration.preferred_api_key).to eq('valid-key')
+ expect(integration.active).to be false
+ end
+
+ it 'rejects unregistered types' do
+ post :create, params: { type: 'nonexistent', preferences: {} }, as: :json
+
+ expect(response).to have_http_status(:unprocessable_content)
+ expect(json_response['error']['code']).to eq('unknown_integration_type')
+ end
+
+ it 'blocks activation when the connection fails' do
+ post :create, params: { type: 'carrier', active: true, preferences: { api_key: 'wrong' } }, as: :json
+
+ expect(response).to have_http_status(:unprocessable_content)
+ expect(json_response['error']['details']['active']).to include('invalid api key')
+ end
+ end
+
+ describe 'PATCH #update' do
+ let!(:integration) { TestIntegrations::Carrier.create!(store: store, preferences: { api_key: 'valid-key' }) }
+
+ it 'keeps the stored secret when the masked value round-trips' do
+ patch :update, params: { id: integration.prefixed_id, preferences: { api_key: '••••-key', account_number: '55' } }, as: :json
+
+ expect(response).to have_http_status(:ok)
+ expect(integration.reload.preferred_api_key).to eq('valid-key')
+ expect(integration.preferred_account_number).to eq('55')
+ end
+
+ it 'activates when the connection succeeds' do
+ patch :update, params: { id: integration.prefixed_id, active: true }, as: :json
+
+ expect(response).to have_http_status(:ok)
+ expect(integration.reload.active).to be true
+ end
+
+ it 'returns 404 for another store integration' do
+ other = TestIntegrations::Carrier.create!(store: create(:store), preferences: { api_key: 'valid-key' })
+
+ patch :update, params: { id: other.prefixed_id, active: true }, as: :json
+
+ expect(response).to have_http_status(:not_found)
+ end
+ end
+
+ describe 'POST #test' do
+ it 'reports a live connection check without persisting anything' do
+ integration = TestIntegrations::Carrier.create!(store: store, preferences: { api_key: 'wrong' })
+
+ post :test, params: { id: integration.prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:ok)
+ expect(json_response['connected']).to be false
+ expect(json_response['error_message']).to eq('invalid api key')
+ end
+ end
+
+ describe 'DELETE #destroy' do
+ it 'disconnects the integration' do
+ integration = TestIntegrations::Carrier.create!(store: store)
+
+ delete :destroy, params: { id: integration.prefixed_id }, as: :json
+
+ expect(response).to have_http_status(:no_content)
+ expect(store.integrations.count).to eq(0)
+ end
+ end
+end
diff --git a/spree/api/spec/integration/spree/api/v3/admin/integrations_spec.rb b/spree/api/spec/integration/spree/api/v3/admin/integrations_spec.rb
new file mode 100644
index 0000000000..377a13a7b3
--- /dev/null
+++ b/spree/api/spec/integration/spree/api/v3/admin/integrations_spec.rb
@@ -0,0 +1,140 @@
+# frozen_string_literal: true
+
+require 'swagger_helper'
+
+RSpec.describe 'Admin Integrations API', type: :request, swagger_doc: 'api-reference/admin.yaml' do
+ include_context 'API v3 Admin'
+
+ let(:Authorization) { "Bearer #{admin_jwt_token}" }
+ let(:'x-spree-api-key') { secret_api_key.plaintext_token }
+
+ # OpenAPI examples are generated with a representative demo integration —
+ # real types ship with provider gems (e.g. spree_easypost).
+ let(:demo_integration_class) do
+ Class.new(Spree::Integration) do
+ preference :api_key, :password
+ preference :account_number, :string
+
+ def self.name = 'SpreeCarrier::Integration'
+ def self.integration_name = 'Carrier'
+ def self.integration_group = 'shipping'
+ end
+ end
+
+ before do
+ stub_const('SpreeCarrier::Integration', demo_integration_class)
+ Spree.integrations << 'SpreeCarrier::Integration'
+ end
+
+ after { Spree.integrations.delete('SpreeCarrier::Integration') }
+
+ path '/api/v3/admin/integrations' do
+ get 'List integrations' do
+ tags 'Integrations'
+ produces 'application/json'
+ security [api_key: [], bearer_auth: []]
+ description 'Returns the integrations connected to the current store. Secret preference values are masked.'
+ admin_scope :read, :integrations
+
+ admin_sdk_example 'integrations/list'
+
+ parameter name: 'x-spree-api-key', in: :header, type: :string, required: true
+ parameter name: :Authorization, in: :header, type: :string, required: true
+
+ response '200', 'integrations found' do
+ before { SpreeCarrier::Integration.create!(store: store, preferences: { api_key: 'sk-secret', account_number: '42' }) }
+
+ run_test! do |response|
+ data = JSON.parse(response.body)
+ entry = data['data'].first
+ expect(entry['type']).to eq('carrier')
+ expect(entry['preferences']['api_key']).to start_with('••••')
+ end
+ end
+ end
+
+ post 'Connect integration' do
+ tags 'Integrations'
+ consumes 'application/json'
+ produces 'application/json'
+ security [api_key: [], bearer_auth: []]
+ description 'Connects an integration type to the current store. Setting active: true verifies the connection and fails with 422 when it cannot connect. Submitting a masked secret value back keeps the stored secret.'
+ admin_scope :write, :integrations
+
+ admin_sdk_example 'integrations/create'
+
+ parameter name: 'x-spree-api-key', in: :header, type: :string, required: true
+ parameter name: :Authorization, in: :header, type: :string, required: true
+ parameter name: :body, in: :body, schema: {
+ type: :object,
+ properties: {
+ type: { type: :string, example: 'carrier', description: 'Wire shorthand from GET /integrations/types' },
+ active: { type: :boolean, example: false },
+ preferences: { type: :object, example: { api_key: 'sk-secret', account_number: '42' } }
+ },
+ required: %w[type]
+ }
+
+ response '201', 'integration connected' do
+ let(:body) { { type: 'carrier', preferences: { api_key: 'sk-secret' } } }
+
+ run_test! do |response|
+ data = JSON.parse(response.body)
+ expect(data['type']).to eq('carrier')
+ expect(data['active']).to be false
+ end
+ end
+ end
+ end
+
+ path '/api/v3/admin/integrations/types' do
+ get 'List integration types' do
+ tags 'Integrations'
+ produces 'application/json'
+ security [api_key: [], bearer_auth: []]
+ description 'Every registered integration type with its configuration schema and whether the current store has it connected. Registered types ship with provider gems.'
+ admin_scope :read, :integrations
+
+ admin_sdk_example 'integrations/types'
+
+ parameter name: 'x-spree-api-key', in: :header, type: :string, required: true
+ parameter name: :Authorization, in: :header, type: :string, required: true
+
+ response '200', 'integration types found' do
+ run_test! do |response|
+ data = JSON.parse(response.body)
+ entry = data['data'].find { |row| row['type'] == 'carrier' }
+ expect(entry['connected']).to be false
+ expect(entry['preference_schema']).to be_an(Array)
+ end
+ end
+ end
+ end
+
+ path '/api/v3/admin/integrations/{id}/test' do
+ post 'Test integration connection' do
+ tags 'Integrations'
+ produces 'application/json'
+ security [api_key: [], bearer_auth: []]
+ description 'Runs a live connection check against the provider. Nothing is persisted; a failed check reports the vendor error message.'
+ admin_scope :write, :integrations
+
+ admin_sdk_example 'integrations/test'
+
+ parameter name: 'x-spree-api-key', in: :header, type: :string, required: true
+ parameter name: :Authorization, in: :header, type: :string, required: true
+ parameter name: :id, in: :path, type: :string
+
+ response '200', 'connection checked' do
+ let(:id) do
+ SpreeCarrier::Integration.create!(store: store, preferences: { api_key: 'sk-secret' }).prefixed_id
+ end
+
+ run_test! do |response|
+ data = JSON.parse(response.body)
+ expect(data['connected']).to be true
+ end
+ end
+ end
+ end
+end
diff --git a/spree/core/app/models/spree/integration.rb b/spree/core/app/models/spree/integration.rb
index 91f538e106..8b20e86928 100644
--- a/spree/core/app/models/spree/integration.rb
+++ b/spree/core/app/models/spree/integration.rb
@@ -3,6 +3,17 @@ module Spree
has_prefix_id :int
include Spree::SingleStoreResource
+ include Spree::PreferenceSchema
+
+ registers_subclasses_via { registered_classes }
+
+ # Integration classes registered via +Spree.integrations+. Entries may be
+ # class-name strings (the documented extension form) or classes.
+ #
+ # @return [Array<Class>]
+ def self.registered_classes
+ Spree.integrations.map { |entry| entry.is_a?(Class) ? entry : entry.to_s.constantize }
+ end
#
# Associations
@@ -14,6 +25,14 @@ module Spree
#
validates :type, presence: true
validates :store, presence: true, uniqueness: { scope: :type }
+ # An unregistered type can't be configured or displayed — reject it at
+ # save rather than surfacing as a broken card in the dashboard. On change
+ # only, so rows survive their gem being uninstalled.
+ validate :type_must_be_registered, if: :type_changed?
+ # Verify-before-activate (decisions.md 2026-08-06): saving credentials
+ # never makes a network call; flipping active on does, and a failed
+ # connection blocks going live with the vendor's message attached.
+ validate :must_connect_when_activating, if: -> { active? && will_save_change_to_active? }
#
# Scopes
@@ -46,6 +65,20 @@ module Spree
name.demodulize.underscore
end
+ # Wire shorthand for the admin API. Provider gems follow the
+ # `SpreeEasyPost::Integration` convention, where demodulizing collapses
+ # every gem to 'integration' — so classes named exactly `Integration`
+ # derive the shorthand from their outer module instead
+ # (`SpreeEasyPost` → 'easy_post').
+ def self.api_type
+ return super unless name.demodulize == 'Integration'
+
+ outer = name.deconstantize.delete_prefix('Spree')
+ return super if outer.blank?
+
+ outer.underscore
+ end
+
def name
self.class.integration_name
end
@@ -61,5 +94,24 @@ module Spree
def can_connect?
true
end
+
+ private
+
+ def type_must_be_registered
+ return if type.blank?
+ # An empty registry means no integration gem is installed — nothing to
+ # validate against (and the admin API resolves types through the
+ # registry anyway, so nothing unregistered arrives from there).
+ return if Spree.integrations.empty?
+ return if Spree.integrations.map(&:to_s).include?(type)
+
+ errors.add(:type, Spree.t('errors.messages.integration_type_not_registered'))
+ end
+
+ def must_connect_when_activating
+ return if can_connect?
+
+ errors.add(:active, connection_error_message.presence || Spree.t('errors.messages.integration_connection_failed'))
+ end
end
end
diff --git a/spree/core/config/locales/en.yml b/spree/core/config/locales/en.yml
index 78ac5686e8..91282fec39 100644
--- a/spree/core/config/locales/en.yml
+++ b/spree/core/config/locales/en.yml
@@ -887,6 +887,8 @@ en:
discount_value_type_invalid: value_type must be flat or percent
exactly_one_adjustable: must be attached to exactly one adjustable
exactly_one_of_cart_or_order: must belong to exactly one of cart or order
+ integration_connection_failed: could not connect with the saved credentials
+ integration_type_not_registered: is not a registered integration
invalid_delivery_method_rule: is not a registered delivery method rule
invalid_oauth_state: Invalid or expired authentication state. Please start the sign-in again.
invalid_order_routing_rule: is not a registered order routing rule
diff --git a/spree/core/db/migrate/20260806130001_add_unique_store_type_index_to_spree_integrations.rb b/spree/core/db/migrate/20260806130001_add_unique_store_type_index_to_spree_integrations.rb
new file mode 100644
index 0000000000..6aaf83d87c
--- /dev/null
+++ b/spree/core/db/migrate/20260806130001_add_unique_store_type_index_to_spree_integrations.rb
@@ -0,0 +1,7 @@
+class AddUniqueStoreTypeIndexToSpreeIntegrations < ActiveRecord::Migration[7.2]
+ def change
+ # Backs the existing one-integration-per-(store, type) model validation.
+ add_index :spree_integrations, [:store_id, :type], unique: true,
+ name: 'index_spree_integrations_on_store_id_and_type', if_not_exists: true
+ end
+end
diff --git a/spree/core/spec/models/spree/integration_spec.rb b/spree/core/spec/models/spree/integration_spec.rb
index 243ef4c9ec..66044ab75f 100644
--- a/spree/core/spec/models/spree/integration_spec.rb
+++ b/spree/core/spec/models/spree/integration_spec.rb
@@ -1,8 +1,73 @@
require 'spec_helper'
-# We have no concrete integrations yet so this is just to check that the base model is valid
RSpec.describe Spree::Integration, type: :model do
subject(:integration) { build(:integration) }
it { is_expected.to be_valid }
+
+ describe 'type registration' do
+ let(:registered_class) do
+ Class.new(described_class) do
+ def self.name = 'TestIntegrations::Registered'
+ end
+ end
+
+ before { stub_const('TestIntegrations::Registered', registered_class) }
+
+ it 'accepts any type while no integrations are registered' do
+ expect(build(:integration, type: 'Spree::Integration')).to be_valid
+ end
+
+ it 'rejects unregistered types once the registry is populated' do
+ Spree.integrations << 'TestIntegrations::Registered'
+
+ expect(build(:integration, type: 'TestIntegrations::Registered')).to be_valid
+ expect(build(:integration, type: 'Spree::Integration')).not_to be_valid
+ ensure
+ Spree.integrations.delete('TestIntegrations::Registered')
+ end
+
+ it 'keeps existing rows loadable after their gem is uninstalled' do
+ integration = create(:integration)
+
+ Spree.integrations << 'TestIntegrations::Registered'
+
+ expect(integration.reload).to be_valid
+ ensure
+ Spree.integrations.delete('TestIntegrations::Registered')
+ end
+ end
+
+ describe 'verify before activate' do
+ let(:failing_class) do
+ Class.new(described_class) do
+ def self.name = 'TestIntegrations::Failing'
+
+ def can_connect?
+ self.connection_error_message = 'bad credentials'
+ false
+ end
+ end
+ end
+
+ before { stub_const('TestIntegrations::Failing', failing_class) }
+
+ it 'saves failing credentials fine while inactive' do
+ expect(TestIntegrations::Failing.new(store: @default_store, active: false)).to be_valid
+ end
+
+ it 'blocks activation with the connection error message' do
+ integration = TestIntegrations::Failing.new(store: @default_store, active: true)
+
+ expect(integration).not_to be_valid
+ expect(integration.errors[:active]).to include('bad credentials')
+ end
+
+ it 'does not re-verify an already active integration on unrelated saves' do
+ integration = create(:integration, active: true)
+
+ expect(integration).not_to receive(:can_connect?)
+ integration.update!(updated_at: Time.current)
+ end
+ end
end
diff --git a/spree/providers/easypost/Gemfile.lock b/spree/providers/easypost/Gemfile.lock
new file mode 100644
index 0000000000..bb05f5dfeb
--- /dev/null
+++ b/spree/providers/easypost/Gemfile.lock
@@ -0,0 +1,902 @@
+PATH
+ remote: ../..
+ specs:
+ spree (6.0.0.alpha)
+ spree_api (= 6.0.0.alpha)
+ spree_core (= 6.0.0.alpha)
+ spree_api (6.0.0.alpha)
+ alba (~> 3.0)
+ oj (~> 3.16)
+ spree_core (= 6.0.0.alpha)
+ typelizer (~> 0.11.0)
+ spree_core (6.0.0.alpha)
+ active_storage_validations (>= 1.3, < 4)
+ acts-as-taggable-on
+ acts_as_list (>= 0.8)
+ ar_lazy_preload (~> 2.0)
+ awesome_nested_set (~> 3.3, >= 3.3.1)
+ bcrypt (~> 3.1)
+ benchmark
+ cancancan (~> 3.2)
+ carmen (>= 1.0)
+ countries
+ friendly_id (~> 5.2, >= 5.2.1)
+ friendly_id-mobility (~> 1.0)
+ geocoder
+ highline (>= 2, < 4)
+ image_processing (~> 1.2)
+ jwt (~> 3.1)
+ mobility (~> 1.3, >= 1.3.2)
+ mobility-actiontext (~> 1.1)
+ mobility-ransack (~> 1.2)
+ monetize (~> 1.9)
+ money (~> 6.13)
+ name_of_person (~> 1.1)
+ nokogiri (~> 1.18)
+ ostruct
+ pagy (>= 43.3)
+ paranoia (>= 2.4)
+ phonelib (~> 0.10)
+ rails (>= 8.1, < 8.2)
+ rails-html-sanitizer (~> 1.6)
+ ransack (>= 4.1)
+ request_store (~> 1.5)
+ rexml
+ safely_block (>= 0.4, < 2.0)
+ sqids (~> 0.2)
+ ssrf_filter (~> 1.0)
+ state_machines-activemodel (~> 0.100)
+ state_machines-activerecord (~> 0.100)
+ stringex
+ tracking_number
+ validates_zipcode
+ wannabe_bool
+
+PATH
+ remote: .
+ specs:
+ spree_easypost (6.0.0.alpha)
+ easypost (~> 7.0)
+ spree_core (>= 6.0.0.alpha)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+ action_text-trix (2.1.19)
+ railties
+ actioncable (8.1.3.1)
+ actionpack (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ nio4r (~> 2.0)
+ websocket-driver (>= 0.6.1)
+ zeitwerk (~> 2.6)
+ actionmailbox (8.1.3.1)
+ actionpack (= 8.1.3.1)
+ activejob (= 8.1.3.1)
+ activerecord (= 8.1.3.1)
+ activestorage (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ mail (>= 2.8.0)
+ actionmailer (8.1.3.1)
+ actionpack (= 8.1.3.1)
+ actionview (= 8.1.3.1)
+ activejob (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ mail (>= 2.8.0)
+ rails-dom-testing (~> 2.2)
+ actionpack (8.1.3.1)
+ actionview (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ nokogiri (>= 1.8.5)
+ rack (>= 2.2.4)
+ rack-session (>= 1.0.1)
+ rack-test (>= 0.6.3)
+ rails-dom-testing (~> 2.2)
+ rails-html-sanitizer (~> 1.6)
+ useragent (~> 0.16)
+ actiontext (8.1.3.1)
+ action_text-trix (~> 2.1.15)
+ actionpack (= 8.1.3.1)
+ activerecord (= 8.1.3.1)
+ activestorage (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ globalid (>= 0.6.0)
+ nokogiri (>= 1.8.5)
+ actionview (8.1.3.1)
+ activesupport (= 8.1.3.1)
+ builder (~> 3.1)
+ erubi (~> 1.11)
+ rails-dom-testing (~> 2.2)
+ rails-html-sanitizer (~> 1.6)
+ active_storage_validations (3.0.6)
+ activejob (>= 6.1.4)
+ activemodel (>= 6.1.4)
+ activestorage (>= 6.1.4)
+ activesupport (>= 6.1.4)
+ marcel (>= 1.0.3)
+ activejob (8.1.3.1)
+ activesupport (= 8.1.3.1)
+ globalid (>= 0.3.6)
+ activemodel (8.1.3.1)
+ activesupport (= 8.1.3.1)
+ activerecord (8.1.3.1)
+ activemodel (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ timeout (>= 0.4.0)
+ activestorage (8.1.3.1)
+ actionpack (= 8.1.3.1)
+ activejob (= 8.1.3.1)
+ activerecord (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ marcel (~> 1.0)
+ activesupport (8.1.3.1)
+ base64
+ bigdecimal
+ concurrent-ruby (~> 1.0, >= 1.3.1)
+ connection_pool (>= 2.2.5)
+ drb
+ i18n (>= 1.6, < 2)
+ json
+ logger (>= 1.4.2)
+ minitest (>= 5.1)
+ securerandom (>= 0.3)
+ tzinfo (~> 2.0, >= 2.0.5)
+ uri (>= 0.13.1)
+ acts-as-taggable-on (13.0.0)
+ activerecord (>= 7.1, < 8.2)
+ zeitwerk (>= 2.4, < 3.0)
+ acts_as_list (1.2.6)
+ activerecord (>= 6.1)
+ activesupport (>= 6.1)
+ addressable (2.9.0)
+ public_suffix (>= 2.0.2, < 8.0)
+ alba (3.11.0)
+ ar_lazy_preload (2.1.2)
+ ast (2.4.3)
+ awesome_nested_set (3.9.0)
+ activerecord (>= 4.0.0, < 8.2)
+ awesome_print (1.9.2)
+ backport (1.2.0)
+ base64 (0.3.0)
+ bcrypt (3.1.22)
+ benchmark (0.5.0)
+ bigdecimal (4.1.2)
+ brakeman (8.0.5)
+ racc
+ builder (3.3.0)
+ bundler-audit (0.9.3)
+ bundler (>= 1.2.0)
+ thor (~> 1.0)
+ byebug (13.0.0)
+ reline (>= 0.6.0)
+ cancancan (3.6.1)
+ carmen (1.1.3)
+ activesupport (>= 3.0.0)
+ childprocess (5.1.0)
+ logger (~> 1.5)
+ coderay (1.1.3)
+ commander (5.0.0)
+ highline (~> 3.0.0)
+ concurrent-ruby (1.3.8)
+ connection_pool (3.0.2)
+ countries (8.1.0)
+ unaccent (~> 0.3)
+ crack (1.0.1)
+ bigdecimal
+ rexml
+ crass (1.0.7)
+ csv (3.3.6)
+ database_cleaner-active_record (2.2.2)
+ activerecord (>= 5.a)
+ database_cleaner-core (~> 2.0)
+ database_cleaner-core (2.1.0)
+ date (3.5.1)
+ diff-lcs (1.6.2)
+ docile (1.4.1)
+ drb (2.2.3)
+ easypost (7.7.0)
+ base64 (~> 0.3)
+ email_spec (2.3.1)
+ htmlentities (~> 4.3)
+ launchy (>= 2.1, < 4.0)
+ mail (~> 2.7)
+ erb (6.0.7)
+ erubi (1.13.1)
+ factory_bot (6.2.1)
+ activesupport (>= 5.0.0)
+ factory_bot_rails (6.2.0)
+ factory_bot (~> 6.2.0)
+ railties (>= 5.0.0)
+ ffaker (2.25.0)
+ ffi (1.17.4-aarch64-linux-gnu)
+ ffi (1.17.4-aarch64-linux-musl)
+ ffi (1.17.4-arm-linux-gnu)
+ ffi (1.17.4-arm-linux-musl)
+ ffi (1.17.4-arm64-darwin)
+ ffi (1.17.4-x86_64-darwin)
+ ffi (1.17.4-x86_64-linux-gnu)
+ ffi (1.17.4-x86_64-linux-musl)
+ friendly_id (5.5.1)
+ activerecord (>= 4.0.0)
+ friendly_id-mobility (1.0.5)
+ friendly_id (>= 5.0.0, < 5.6)
+ mobility (>= 1.0.1, < 2.0)
+ gem-release (2.2.4)
+ geocoder (1.8.6)
+ base64 (>= 0.1.0)
+ csv (>= 3.0.0)
+ globalid (1.4.0)
+ activesupport (>= 6.1)
+ hashdiff (1.2.1)
+ highline (3.0.1)
+ htmlentities (4.4.2)
+ httparty (0.24.2)
+ csv
+ mini_mime (>= 1.0.0)
+ multi_xml (>= 0.5.2)
+ i18n (1.15.2)
+ concurrent-ruby (~> 1.0)
+ i18n-tasks (1.1.2)
+ activesupport (>= 4.0.2)
+ ast (>= 2.1.0)
+ erubi
+ highline (>= 3.0.0)
+ i18n
+ parser (>= 3.2.2.1)
+ prism
+ rails-i18n
+ rainbow (>= 2.2.2, < 4.0)
+ ruby-progressbar (~> 1.8, >= 1.8.1)
+ terminal-table (>= 1.5.1)
+ image_processing (1.14.0)
+ mini_magick (>= 4.9.5, < 6)
+ ruby-vips (>= 2.0.17, < 3)
+ io-console (0.8.2)
+ irb (1.18.0)
+ pp (>= 0.6.0)
+ prism (>= 1.3.0)
+ rdoc (>= 4.0.0)
+ reline (>= 0.4.2)
+ jaro_winkler (1.7.0)
+ json (2.21.2)
+ json-schema (6.2.0)
+ addressable (~> 2.8)
+ bigdecimal (>= 3.1, < 5)
+ jwt (3.2.0)
+ base64
+ kramdown (2.5.2)
+ rexml (>= 3.4.4)
+ kramdown-parser-gfm (1.1.0)
+ kramdown (~> 2.0)
+ language_server-protocol (3.17.0.6)
+ launchy (3.1.1)
+ addressable (~> 2.8)
+ childprocess (~> 5.0)
+ logger (~> 1.6)
+ license_finder (7.2.1)
+ bundler
+ csv (~> 3.2)
+ rubyzip (>= 1, < 3)
+ thor (~> 1.2)
+ tomlrb (>= 1.3, < 2.1)
+ with_env (= 1.1.0)
+ xml-simple (~> 1.1.9)
+ lint_roller (1.1.0)
+ logger (1.7.0)
+ loofah (2.25.2)
+ crass (~> 1.0.2)
+ nokogiri (>= 1.12.0)
+ mail (2.9.1)
+ logger
+ mini_mime (>= 0.1.1)
+ net-imap
+ net-pop
+ net-smtp
+ marcel (1.2.1)
+ meilisearch (0.33.0)
+ httparty (~> 0.24)
+ method_source (1.1.0)
+ mini_magick (5.3.3)
+ logger
+ mini_mime (1.1.5)
+ minitest (6.0.6)
+ drb (~> 2.0)
+ prism (~> 1.5)
+ mobility (1.3.2)
+ i18n (>= 0.6.10, < 2)
+ request_store (~> 1.0)
+ mobility-actiontext (1.1.1)
+ actiontext (>= 6.0)
+ mobility (~> 1.2)
+ mobility-ransack (1.2.2)
+ mobility (>= 1.0.1, < 2.0)
+ ransack (>= 1.8.0, < 5.0)
+ monetize (1.13.0)
+ money (~> 6.12)
+ money (6.19.0)
+ i18n (>= 0.6.4, <= 2)
+ multi_xml (0.9.1)
+ bigdecimal (>= 3.1, < 5)
+ name_of_person (1.1.3)
+ activesupport (>= 5.2.0)
+ net-imap (0.6.6)
+ date
+ net-protocol
+ net-pop (0.1.2)
+ net-protocol
+ net-protocol (0.2.2)
+ timeout
+ net-smtp (0.5.1)
+ net-protocol
+ nio4r (2.7.5)
+ nokogiri (1.19.4-aarch64-linux-gnu)
+ racc (~> 1.4)
+ nokogiri (1.19.4-aarch64-linux-musl)
+ racc (~> 1.4)
+ nokogiri (1.19.4-arm-linux-gnu)
+ racc (~> 1.4)
+ nokogiri (1.19.4-arm-linux-musl)
+ racc (~> 1.4)
+ nokogiri (1.19.4-arm64-darwin)
+ racc (~> 1.4)
+ nokogiri (1.19.4-x86_64-darwin)
+ racc (~> 1.4)
+ nokogiri (1.19.4-x86_64-linux-gnu)
+ racc (~> 1.4)
+ nokogiri (1.19.4-x86_64-linux-musl)
+ racc (~> 1.4)
+ observer (0.1.2)
+ oj (3.17.5)
+ bigdecimal (>= 3.0)
+ ostruct (>= 0.2)
+ open3 (0.2.1)
+ ostruct (0.6.3)
+ pagy (43.6.1)
+ json
+ uri
+ yaml
+ parallel (2.1.0)
+ parallel_tests (5.7.0)
+ parallel
+ paranoia (3.1.0)
+ activerecord (>= 7, < 8.2)
+ parlour (9.1.2)
+ commander (~> 5.0)
+ parser
+ rainbow (~> 3.0)
+ sorbet-runtime (>= 0.5)
+ parser (3.3.12.0)
+ ast (~> 2.4.1)
+ racc
+ phonelib (0.10.23)
+ pp (0.6.4)
+ prettyprint
+ prettyprint (0.2.0)
+ prism (1.9.0)
+ pry (0.16.0)
+ coderay (~> 1.1)
+ method_source (~> 1.0)
+ reline (>= 0.6.0)
+ pry-byebug (3.12.0)
+ byebug (~> 13.0)
+ pry (>= 0.13, < 0.17)
+ psych (5.4.0)
+ date
+ stringio
+ public_suffix (7.0.5)
+ puma (8.0.2)
+ nio4r (~> 2.0)
+ racc (1.8.1)
+ rack (3.2.6)
+ rack-session (2.1.2)
+ base64 (>= 0.1.0)
+ rack (>= 3.0.0)
+ rack-test (2.2.0)
+ rack (>= 1.3)
+ rackup (2.3.1)
+ rack (>= 3)
+ rails (8.1.3.1)
+ actioncable (= 8.1.3.1)
+ actionmailbox (= 8.1.3.1)
+ actionmailer (= 8.1.3.1)
+ actionpack (= 8.1.3.1)
+ actiontext (= 8.1.3.1)
+ actionview (= 8.1.3.1)
+ activejob (= 8.1.3.1)
+ activemodel (= 8.1.3.1)
+ activerecord (= 8.1.3.1)
+ activestorage (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ bundler (>= 1.15.0)
+ railties (= 8.1.3.1)
+ rails-controller-testing (1.0.5)
+ actionpack (>= 5.0.1.rc1)
+ actionview (>= 5.0.1.rc1)
+ activesupport (>= 5.0.1.rc1)
+ rails-dom-testing (2.3.0)
+ activesupport (>= 5.0.0)
+ minitest
+ nokogiri (>= 1.6)
+ rails-html-sanitizer (1.7.1)
+ loofah (~> 2.25, >= 2.25.2)
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
+ rails-i18n (8.1.0)
+ i18n (>= 0.7, < 2)
+ railties (>= 8.0.0, < 9)
+ railties (8.1.3.1)
+ actionpack (= 8.1.3.1)
+ activesupport (= 8.1.3.1)
+ irb (~> 1.13)
+ rackup (>= 1.0.0)
+ rake (>= 12.2)
+ thor (~> 1.0, >= 1.2.2)
+ tsort (>= 0.2)
+ zeitwerk (~> 2.6)
+ rainbow (3.1.1)
+ rake (13.4.2)
+ ransack (4.4.1)
+ activerecord (>= 7.2)
+ activesupport (>= 7.2)
+ i18n
+ rbs (4.1.2)
+ logger
+ prism (>= 1.6.0)
+ tsort
+ rdoc (7.2.0)
+ erb
+ psych (>= 4.0.0)
+ tsort
+ regexp_parser (2.12.0)
+ reline (0.6.3)
+ io-console (~> 0.5)
+ request_store (1.7.0)
+ rack (>= 1.4)
+ reverse_markdown (3.0.2)
+ nokogiri
+ rexml (3.4.4)
+ rspec-core (3.13.6)
+ rspec-support (~> 3.13.0)
+ rspec-expectations (3.13.5)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.13.0)
+ rspec-mocks (3.13.8)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.13.0)
+ rspec-rails (8.0.4)
+ actionpack (>= 7.2)
+ activesupport (>= 7.2)
+ railties (>= 7.2)
+ rspec-core (>= 3.13.0, < 5.0.0)
+ rspec-expectations (>= 3.13.0, < 5.0.0)
+ rspec-mocks (>= 3.13.0, < 5.0.0)
+ rspec-support (>= 3.13.0, < 5.0.0)
+ rspec-retry (0.6.2)
+ rspec-core (> 3.3)
+ rspec-support (3.13.7)
+ rspec_junit_formatter (0.6.0)
+ rspec-core (>= 2, < 4, != 2.12.0)
+ rswag-specs (2.17.0)
+ activesupport (>= 5.2, < 8.2)
+ json-schema (>= 2.2, < 7.0)
+ railties (>= 5.2, < 8.2)
+ rspec-core (>= 2.14)
+ rubocop (1.89.0)
+ json (~> 2.3)
+ language_server-protocol (~> 3.17.0.2)
+ lint_roller (~> 1.1.0)
+ parallel (>= 1.10)
+ parser (>= 3.3.0.2)
+ rainbow (>= 2.2.2, < 4.0)
+ regexp_parser (>= 2.9.3, < 3.0)
+ rubocop-ast (>= 1.49.0, < 2.0)
+ ruby-progressbar (~> 1.7)
+ unicode-display_width (>= 2.4.0, < 4.0)
+ rubocop-ast (1.50.0)
+ parser (>= 3.3.7.2)
+ prism (~> 1.7)
+ rubocop-rspec (3.10.2)
+ lint_roller (~> 1.1)
+ regexp_parser (>= 2.0)
+ rubocop (~> 1.86, >= 1.86.2)
+ ruby-lsp (0.26.10)
+ language_server-protocol (~> 3.17.0)
+ prism (>= 1.2, < 2.0)
+ rbs (>= 3, < 5)
+ ruby-lsp-rails (0.4.8)
+ ruby-lsp (>= 0.26.0, < 0.27.0)
+ ruby-progressbar (1.13.0)
+ ruby-vips (2.3.0)
+ ffi (~> 1.12)
+ logger
+ rubyzip (2.4.1)
+ safely_block (1.0.0)
+ securerandom (0.4.1)
+ shoulda-matchers (6.5.0)
+ activesupport (>= 5.2.0)
+ simplecov (0.22.0)
+ docile (~> 1.1)
+ simplecov-html (~> 0.11)
+ simplecov_json_formatter (~> 0.1)
+ simplecov-cobertura (3.2.0)
+ rexml
+ simplecov (~> 0.19)
+ simplecov-html (0.13.2)
+ simplecov_json_formatter (0.1.4)
+ solargraph (0.60.3)
+ ast (~> 2.4.3)
+ backport (~> 1.2)
+ benchmark (~> 0.4)
+ bundler (>= 2.0)
+ diff-lcs (~> 1.4)
+ jaro_winkler (~> 1.6, >= 1.6.1)
+ kramdown (~> 2.3)
+ kramdown-parser-gfm (~> 1.1)
+ logger (~> 1.6)
+ observer (~> 0.1)
+ open3 (~> 0.2.1)
+ ostruct (~> 0.6)
+ parser (~> 3.0)
+ prism (~> 1.4)
+ rbs (>= 3.10.0)
+ rdoc (~> 7.0)
+ reverse_markdown (~> 3.0)
+ rubocop (~> 1.76)
+ sord (~> 7.0)
+ thor (~> 1.0)
+ tilt (~> 2.0)
+ yard (~> 0.9, >= 0.9.24)
+ yard-activesupport-concern (~> 0.0)
+ yard-solargraph (~> 0.1)
+ sorbet-runtime (0.6.13409)
+ sord (7.1.0)
+ commander (~> 5.0)
+ parlour (~> 9.1)
+ parser
+ rbs (>= 3.0, < 5)
+ sorbet-runtime
+ yard
+ sqids (0.2.2)
+ sqlite3 (2.9.5-aarch64-linux-gnu)
+ sqlite3 (2.9.5-aarch64-linux-musl)
+ sqlite3 (2.9.5-arm-linux-gnu)
+ sqlite3 (2.9.5-arm-linux-musl)
+ sqlite3 (2.9.5-arm64-darwin)
+ sqlite3 (2.9.5-x86_64-darwin)
+ sqlite3 (2.9.5-x86_64-linux-gnu)
+ sqlite3 (2.9.5-x86_64-linux-musl)
+ ssrf_filter (1.5.0)
+ state_machines (0.202.0)
+ state_machines-activemodel (0.200.0)
+ activemodel (>= 7.2)
+ state_machines (>= 0.200.0)
+ state_machines-activerecord (0.200.0)
+ activerecord (>= 7.2)
+ state_machines-activemodel (>= 0.200.0)
+ stringex (2.8.6)
+ stringio (3.2.0)
+ terminal-table (4.0.0)
+ unicode-display_width (>= 1.1.1, < 4)
+ thor (1.5.0)
+ tilt (2.8.0)
+ timecop (0.9.11)
+ timeout (0.6.1)
+ tomlrb (2.0.4)
+ tracking_number (2.4.0)
+ activesupport (>= 4.2.5)
+ json (>= 1.8.3)
+ tsort (0.2.0)
+ typelizer (0.11.0)
+ benchmark
+ railties (>= 6.0.0)
+ tzinfo (2.0.6)
+ concurrent-ruby (~> 1.0)
+ unaccent (0.4.0)
+ unicode-display_width (3.2.0)
+ unicode-emoji (~> 4.1)
+ unicode-emoji (4.2.0)
+ uri (1.1.1)
+ useragent (0.16.11)
+ validates_zipcode (0.6.0)
+ activemodel (>= 4.2.0)
+ vcr (6.4.0)
+ wannabe_bool (0.7.1)
+ webmock (3.26.2)
+ addressable (>= 2.8.0)
+ crack (>= 0.3.2)
+ hashdiff (>= 0.4.0, < 2.0.0)
+ websocket-driver (0.8.2)
+ base64
+ websocket-extensions (>= 0.1.0)
+ websocket-extensions (0.1.5)
+ with_env (1.1.0)
+ xml-simple (1.1.9)
+ rexml
+ yaml (0.4.0)
+ yard (0.9.45)
+ yard-activesupport-concern (0.0.1)
+ yard (>= 0.8)
+ yard-solargraph (0.1.0)
+ yard (~> 0.9)
+ zeitwerk (2.8.3)
+
+PLATFORMS
+ aarch64-linux-gnu
+ aarch64-linux-musl
+ arm-linux-gnu
+ arm-linux-musl
+ arm64-darwin
+ x86_64-darwin
+ x86_64-linux-gnu
+ x86_64-linux-musl
+
+DEPENDENCIES
+ awesome_print
+ brakeman
+ bundler-audit
+ database_cleaner-active_record
+ email_spec
+ factory_bot_rails (~> 6.2.0)
+ ffaker
+ gem-release
+ i18n-tasks
+ jruby-openssl
+ license_finder
+ meilisearch (>= 0.28)
+ observer
+ parallel_tests
+ pry-byebug
+ puma
+ rails (~> 8.1.0)
+ rails-controller-testing
+ rspec-rails
+ rspec-retry
+ rspec_junit_formatter
+ rswag-specs
+ rubocop (~> 1.0)
+ rubocop-rspec
+ ruby-lsp
+ ruby-lsp-rails
+ shoulda-matchers (~> 6.0)
+ simplecov (~> 0.22.0)
+ simplecov-cobertura
+ solargraph
+ spree!
+ spree_easypost!
+ sqlite3 (>= 2.0)
+ timecop
+ tzinfo-data
+ vcr
+ webmock
+
+CHECKSUMS
+ action_text-trix (2.1.19) sha256=7012f59421009cf284aa651294896414d653a61a2417c9b8714c8476d2f74009
+ actioncable (8.1.3.1) sha256=e318528295c878a3efdfe25f0f2267c80cb7a76eba41bb5f64d44aa380a3d91b
+ actionmailbox (8.1.3.1) sha256=5f704972097d843ade8e435e93694a1dac732b926df1717aceba1f3840082b1c
+ actionmailer (8.1.3.1) sha256=88ea441b28ff02a0c6c006468892642a3d9942affce9d294e81a74504aa5c43c
+ actionpack (8.1.3.1) sha256=974cb7154548e81f470b1b0f247b99cb38e87825899dca58610596e2817723d0
+ actiontext (8.1.3.1) sha256=5da729d833d1a29cddb1eee938878e55e503d2613e00e735f5daf58c2ba98af2
+ actionview (8.1.3.1) sha256=2da68b8414c47b43bfbed1ce69c5afe1c04f78c267aacb5660a4cab5ca12cfb6
+ active_storage_validations (3.0.6) sha256=07ec758b75b68f8a906bcb96f6135c2f9a03ef8b82dbd8ce8ba52fde60c90531
+ activejob (8.1.3.1) sha256=1c8dd275df930df40deecffec63d913a550a33fd94bd298f69721dd96939954a
+ activemodel (8.1.3.1) sha256=99cc02ce2faec371d14440949d85787ebd23a907c9baef0a9d4bcd4d21888f88
+ activerecord (8.1.3.1) sha256=0a2fb6c28f4938f6b013a3a549bec0a7e37d535f3dc8990e804bcc3258c0403b
+ activestorage (8.1.3.1) sha256=f555254f387b1cffa499d2fd3115d12635eadc5b15206a8534316a67036163ef
+ activesupport (8.1.3.1) sha256=85458765f25ea48b9019c46b6bb3fa5683197bf4280d9f06710a6e8d7a831376
+ acts-as-taggable-on (13.0.0) sha256=dca776c6ddebc458d175b57554ad692488e283f27047117e01ed871f1cba6135
+ acts_as_list (1.2.6) sha256=8345380900b7bee620c07ad00991ccee59af3d8c9e8574f426e321da2865fdc8
+ addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
+ alba (3.11.0) sha256=a9e7ad2db045490955b2d58cc5a2eeb0db7462ce3c32ec6de1f536e7fe506769
+ ar_lazy_preload (2.1.2) sha256=43bb0140ada85c1d605d4430db4d9af40e8e3c5e0aed774eeaefaa95256677c2
+ ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
+ awesome_nested_set (3.9.0) sha256=3ce99e816550f97f4de118e621630070aacf24928b920fe4a68846578a8daaed
+ awesome_print (1.9.2) sha256=e99b32b704acff16d768b3468680793ced40bfdc4537eb07e06a4be11133786e
+ backport (1.2.0) sha256=912c7dfdd9ee4625d013ddfccb6205c3f92da69a8990f65c440e40f5b2fc7f75
+ base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
+ bcrypt (3.1.22) sha256=1f0072e88c2d705d94aff7f2c5cb02eb3f1ec4b8368671e19112527489f29032
+ benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
+ bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
+ brakeman (8.0.5) sha256=03735f9690d3fd4b32d66aacbf0a6d15a84266bdd06b32c05c8ecc8f6021d2be
+ builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
+ bundler-audit (0.9.3) sha256=81c8766c71e47d0d28a0f98c7eed028539f21a6ea3cd8f685eb6f42333c9b4e9
+ byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
+ cancancan (3.6.1) sha256=975c1d5cbf58d5df48a9452a7f61ae3d254608cd87570402f5925a8864c56b62
+ carmen (1.1.3) sha256=970dbcb6a1743f0c7d765ebf4f0e5b59e99c4f96460baaa22e7306d5a2952e68
+ childprocess (5.1.0) sha256=9a8d484be2fd4096a0e90a0cd3e449a05bc3aa33f8ac9e4d6dcef6ac1455b6ec
+ coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
+ commander (5.0.0) sha256=22ca42866ce5ed1a7f3e9a9c831a23d03b75b3743c7ad0302c3cbcd9eb5f257d
+ concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
+ connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
+ countries (8.1.0) sha256=4d6b318b8e906f1f769d5c021c13a418d33e917dc96ceb625a91d8e7ab2d192e
+ crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
+ crass (1.0.7) sha256=94868719948664c89ddcaf0a37c65048413dfcb1c869470a5f7a7ceb5390b295
+ csv (3.3.6) sha256=aba61e7e507a66f03d45cb1f3c4b6359861c3504038b422962875dce099e4456
+ database_cleaner-active_record (2.2.2) sha256=88296b9f3088c31f7c0d4fcec10f68e4b71c96698043916de59b04debec10388
+ database_cleaner-core (2.1.0) sha256=b2875266d9b26b716e8b669c883e01c5250839f6f2ec56422b5e79aa97fb6927
+ date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
+ diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
+ docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
+ drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
+ easypost (7.7.0) sha256=6eaf69ecc6fcfbee97beec841e485b0592d95abfba82ff98ca0194a449236ea6
+ email_spec (2.3.1) sha256=5e8891319427fd6de0f3883dffe3c2ac4f5434359a33ed9c48e6d68e9f712f1b
+ erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
+ erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
+ factory_bot (6.2.1) sha256=f863e5a7873ef1c6446fdcef8dbb87dc4c3b893d5f75184ae09063d30449d3dd
+ factory_bot_rails (6.2.0) sha256=278b969666b078e76e1c972c501da9b1fac15e5b0ff328cc7ce400366164d0a1
+ ffaker (2.25.0) sha256=e485c5adf8195aac55662875b7f515469bca46d77b60d0e7d08db6861bcbec40
+ ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
+ ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
+ ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564
+ ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95
+ ffi (1.17.4-arm64-darwin) sha256=19071aaf1419251b0a46852abf960e77330a3b334d13a4ab51d58b31a937001b
+ ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496
+ ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
+ ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
+ friendly_id (5.5.1) sha256=e018f2b89bfc143276fee6d378a64792385cd4fddd3d4fce501f59ec19c06207
+ friendly_id-mobility (1.0.5) sha256=8c0cf4d0a1358311db1b2dcc0e4c33077ae929c7e34749485268d066adbaf2e4
+ gem-release (2.2.4) sha256=2f11124c1580c811507c3b47e875e420cf3ed792a98105b49df11971e6e94db3
+ geocoder (1.8.6) sha256=e0ca1554b499f466de9b003f7dff70f89a5888761c2ca68ed9f86b6e5e24e74c
+ globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
+ hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
+ highline (3.0.1) sha256=ca18b218fd581b1fae832f89bfeaf2b34d3a93429c44fd4411042ffce286f009
+ htmlentities (4.4.2) sha256=bbafbdf69f2eca9262be4efef7e43e6a1de54c95eb600f26984f71d2fe96c5c3
+ httparty (0.24.2) sha256=8fca6a54aa0c4aa4303a0fd33e5e2156175d6a5334f714263b458abd7fda9c38
+ i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
+ i18n-tasks (1.1.2) sha256=4dcfba49e52a623f30661cb316cb80d84fbba5cb8c6d88ef5e02545fffa3637a
+ image_processing (1.14.0) sha256=754cc169c9c262980889bec6bfd325ed1dafad34f85242b5a07b60af004742fb
+ io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
+ irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3
+ jaro_winkler (1.7.0) sha256=8daa05a5cd05bf7d27c1c65caa8ab0d47c05419d80210feaa17126db24044ada
+ json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a
+ json-schema (6.2.0) sha256=e8bff46ed845a22c1ab2bd0d7eccf831c01fe23bb3920caa4c74db4306813666
+ jwt (3.2.0) sha256=5419b1fe37b1da0982bd07051f573a8b8789ab724c2aa7e785e4784a3ed217d7
+ kramdown (2.5.2) sha256=1ba542204c66b6f9111ff00dcc26075b95b220b07f2905d8261740c82f7f02fa
+ kramdown-parser-gfm (1.1.0) sha256=fb39745516427d2988543bf01fc4cf0ab1149476382393e0e9c48592f6581729
+ language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
+ launchy (3.1.1) sha256=72b847b5cc961589dde2c395af0108c86ff0119f42d4648d25b5440ebb10059e
+ license_finder (7.2.1) sha256=179ead19b64b170638b72fd16024233813673ac9d20d5ba75ae0b4444887ef14
+ lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
+ logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
+ loofah (2.25.2) sha256=2007f746959ac65552456e04b433e83deb22759ab38c838b4445c70e43425918
+ mail (2.9.1) sha256=06574eca475253d6c18145dd70af80d0eb970182d55053497c5f4d797ea160e8
+ marcel (1.2.1) sha256=1678e9360e32f9eafa917c80029e2f6d10b2715c66a4b87b6d0da9b9cd1f859f
+ meilisearch (0.33.0) sha256=a5d3c3f28cdc4394ee4f0f390efe158650f99cfb390fd073f44fc780a2aa41e2
+ method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
+ mini_magick (5.3.3) sha256=b3beed8a8cef36bd03666365f14b89cd344da0ecd373af53e617c71bfd426aab
+ mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
+ minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
+ mobility (1.3.2) sha256=32fbbb0e53118ef42de20daa6ac94dbb758c628874092eba311b968a1e1d757b
+ mobility-actiontext (1.1.1) sha256=98f8fb9f2d8aa49fce1814eefb2ad8060efdfb89167bc5bd864da0bdd858127d
+ mobility-ransack (1.2.2) sha256=8b480ce5bc4937abc37c17b9922d7e41b8a7064a3207b3a64e5aa71e0cb3332b
+ monetize (1.13.0) sha256=0c1f8ae28aa21bbf1a6d014138d9bb0a5ce756c1a99b8b7f7d409c258b01d3b3
+ money (6.19.0) sha256=ec936fa1e42f2783719241ed9fd52725d0efa628f928feea1eb5c37d5de7daf3
+ multi_xml (0.9.1) sha256=7ce766b59c17241ed62976caeae1fae9b2431b263398c35396239a68c4a64e57
+ name_of_person (1.1.3) sha256=e12291250987ef79c413314f698f15d53e7a602c42231de99c276ef9585bc18c
+ net-imap (0.6.6) sha256=96aa4ee50df3060203e649efc341f53480b791d49e150f2fdebf68beb141a8df
+ net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
+ net-protocol (0.2.2) sha256=aa73e0cba6a125369de9837b8d8ef82a61849360eba0521900e2c3713aa162a8
+ net-smtp (0.5.1) sha256=ed96a0af63c524fceb4b29b0d352195c30d82dd916a42f03c62a3a70e5b70736
+ nio4r (2.7.5) sha256=6c90168e48fb5f8e768419c93abb94ba2b892a1d0602cb06eef16d8b7df1dca1
+ nokogiri (1.19.4-aarch64-linux-gnu) sha256=1269fb644a6de405057a53dd5c762b1209b43ca7424f839454d3dbc677c31a8f
+ nokogiri (1.19.4-aarch64-linux-musl) sha256=35c65b9ce72b3bb03207bdbe7067915019dc18c1b9b59139684bd6690fdd01af
+ nokogiri (1.19.4-arm-linux-gnu) sha256=a301313e38bb065d68239e79734bcd6f56fb6efaacebde29e9abf2a4735340ca
+ nokogiri (1.19.4-arm-linux-musl) sha256=588923c101bcfa78869734d247d25b598674323e7f22474fc468f6e5647311eb
+ nokogiri (1.19.4-arm64-darwin) sha256=a46db9853286e6597b36ebc6953817d15acf3a299583eb3f89fdc6f91dd63527
+ nokogiri (1.19.4-x86_64-darwin) sha256=7fd17057d3e1f00e9954a74b3cd76595d3d4a5ef233b7ed9599047c204f70551
+ nokogiri (1.19.4-x86_64-linux-gnu) sha256=379fae440b28915e3f19d752ce2dcf8465ed2b2fbefd2a7ca0dd497bc981a06a
+ nokogiri (1.19.4-x86_64-linux-musl) sha256=17dfb7c1fa194ae02fbf7c51a7afc8d278045ab3fdacfd86f91d02d7b274470b
+ observer (0.1.2) sha256=d8a3107131ba661138d748e7be3dbafc0d82e732fffba9fccb3d7829880950ac
+ oj (3.17.5) sha256=2f2150c335f53d19350394bcbb3d3d5de1a65f19963908d10c969cb27477efa2
+ open3 (0.2.1) sha256=8e2d7d2113526351201438c1aa35c8139f0141c9e8913baa007c898973bf3952
+ ostruct (0.6.3) sha256=95a2ed4a4bd1d190784e666b47b2d3f078e4a9efda2fccf18f84ddc6538ed912
+ pagy (43.6.1) sha256=59fb6a58ea956480094a167b43a86796638ceb3a3917a25ae67973b584ace2eb
+ parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356
+ parallel_tests (5.7.0) sha256=3f1762c46ca2c223b8af8ef877217f9d76974e191bfa934f2580b58bcf1d005c
+ paranoia (3.1.0) sha256=36574a46e8df663d0da7d9008e987b72a6a9eccee13c058b7094acc810e39f52
+ parlour (9.1.2) sha256=446ce24243e125f0e8c4f9b5722c3b86063d42d8b106c847a7d73a8cc693c382
+ parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
+ phonelib (0.10.23) sha256=a3bb88e3e5b1e51d7f6d7e58e3d97aebb792df8c2e174565770561eed50d340f
+ pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
+ prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
+ prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
+ pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
+ pry-byebug (3.12.0) sha256=594e094ae8a8390a7ad4c7b36ae36e13304ed02664c67417d108dc5f7213d1b7
+ psych (5.4.0) sha256=14f72d69a611af663d7d70e4a7b67d9eb1f3ae9f8d916b478961d5a0075ba5b7
+ public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
+ puma (8.0.2) sha256=c8ed871dfbbe66448ea9ffd46692342d9804d4071522b52b5331b7b6e7b686fb
+ racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
+ rack (3.2.6) sha256=5ed78e1f73b2e25679bec7d45ee2d4483cc4146eb1be0264fc4d94cb5ef212c2
+ rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
+ rack-test (2.2.0) sha256=005a36692c306ac0b4a9350355ee080fd09ddef1148a5f8b2ac636c720f5c463
+ rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
+ rails (8.1.3.1) sha256=ccd11a36bfc171bf9c66d585d14c0ece91c0c9dde840aae60c0118d6f5c9c52a
+ rails-controller-testing (1.0.5) sha256=741448db59366073e86fc965ba403f881c636b79a2c39a48d0486f2607182e94
+ rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
+ rails-html-sanitizer (1.7.1) sha256=e797a7c9b01e567307e317c576b49ab4168017e63eea4dba9ce3cb587e2f22c2
+ rails-i18n (8.1.0) sha256=52d5fd6c0abef28d84223cc05647f6ae0fd552637a1ede92deee9545755b6cf3
+ railties (8.1.3.1) sha256=2388a232579a00cefea4487de66c8553c3408c1300abdc6cf1799d86ffb04487
+ rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
+ rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
+ ransack (4.4.1) sha256=6aeaac36fc19088570e10da1044e6cfd88c740e20f871b84566fd30e32b7a63d
+ rbs (4.1.2) sha256=050eb1d8b508f1233bed929c0f2c7052302f7adf295230d9cb314e9024078f48
+ rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
+ regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
+ reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
+ request_store (1.7.0) sha256=e1b75d5346a315f452242a68c937ef8e48b215b9453a77a6c0acdca2934c88cb
+ reverse_markdown (3.0.2) sha256=818ebb92ce39dbb1a291690dd1ec9a6d62530d4725296b17e9c8f668f9a5b8af
+ rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
+ rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
+ rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
+ rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
+ rspec-rails (8.0.4) sha256=06235692fc0892683d3d34977e081db867434b3a24ae0dd0c6f3516bad4e22df
+ rspec-retry (0.6.2) sha256=6101ba23a38809811ae3484acde4ab481c54d846ac66d5037ccb40131a60d858
+ rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
+ rspec_junit_formatter (0.6.0) sha256=40dde674e6ae4e6cc0ff560da25497677e34fefd2338cc467a8972f602b62b15
+ rswag-specs (2.17.0) sha256=a3b2bdf6df89f8741fe4a4ee47ceb1e77dc13e1c96bbe07352117d6e61afa9e3
+ rubocop (1.89.0) sha256=4dee8e3ee9c45e474834efd9e8d6fd031e8331c8dacdff0de4ad65ae0a6faae7
+ rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
+ rubocop-rspec (3.10.2) sha256=0b3e2ecc592cd10ecbf0095bb58d1e357905276e069643523cc19eb7495f65e2
+ ruby-lsp (0.26.10) sha256=e67284af94423531f6b9a583350596421b5a6a4dd93083f1c2ba03da7c23bbed
+ ruby-lsp-rails (0.4.8) sha256=f09d1f926d4063deeb2f3049311925c20dfe6c912371e3bcd04a265a865c44ae
+ ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
+ ruby-vips (2.3.0) sha256=e685ec02c13969912debbd98019e50492e12989282da5f37d05f5471442f5374
+ rubyzip (2.4.1) sha256=8577c88edc1fde8935eb91064c5cb1aef9ad5494b940cf19c775ee833e075615
+ safely_block (1.0.0) sha256=bea80e084e620adeada62fd98cf461bbb9888d40dc0f06d337df9d01e1a658e5
+ securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
+ shoulda-matchers (6.5.0) sha256=ef6b572b2bed1ac4aba6ab2c5ff345a24b6d055a93a3d1c3bfc86d9d499e3f44
+ simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
+ simplecov-cobertura (3.2.0) sha256=70d702658677fcb20e5aceb6915ccf8bc62ff2ccd38b62b3ad5c9db5c0888740
+ simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
+ simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
+ solargraph (0.60.3) sha256=3f2252faa27cc628a16a4aac1ba0bc0b06b0250194a8713da0ff42adb20bb19d
+ sorbet-runtime (0.6.13409) sha256=6734a00932493f429b36cfa10904c08f2da34f5d84c860d01a6ef5997ceea5d2
+ sord (7.1.0) sha256=e02fd59294da520e50cea80a07fb9bc93db709c552d055871379ae8d8e87601f
+ spree (6.0.0.alpha)
+ spree_api (6.0.0.alpha)
+ spree_core (6.0.0.alpha)
+ spree_easypost (6.0.0.alpha)
+ sqids (0.2.2) sha256=c2d31e0dfb6c32d17c10b59df059a299af93bef716d700ff70d77156df702d36
+ sqlite3 (2.9.5-aarch64-linux-gnu) sha256=78075b6337d3d182c6d2b4691049ed45cd220826160c9ea18946bf6a1de200dc
+ sqlite3 (2.9.5-aarch64-linux-musl) sha256=18c801185deb4adc01ddb281e8f672a39e3d1729979ca91e39439cd3eac0402d
+ sqlite3 (2.9.5-arm-linux-gnu) sha256=1bdfca0c7d63998c60b0f4a8e3c8df2d33800ccc4abd2d612eddbbbc92a4c48b
+ sqlite3 (2.9.5-arm-linux-musl) sha256=bae1109d12b2e9f588455967729b008e1ff4feb7761749df695019c9079913c6
+ sqlite3 (2.9.5-arm64-darwin) sha256=d0cf444a70fc9395d513cfbcc1e6719e224aa645314e3824cb0474c721425aa2
+ sqlite3 (2.9.5-x86_64-darwin) sha256=8e9caae38bd7ebb29cbeee3e7ab1d12dc2327d9a1b92c7fcf0dda05589627a81
+ sqlite3 (2.9.5-x86_64-linux-gnu) sha256=233dbcb6714148dd23bc5aeb33e8efd6eac974969564ddd5794c23d5f52b231e
+ sqlite3 (2.9.5-x86_64-linux-musl) sha256=e7d3a7474e8af0f96150c21abc203fbab5437206bfcdf11deab7741c0ca516f2
+ ssrf_filter (1.5.0) sha256=e03dcdb9d1730d7f6710532a606b3543df2a448a0293ce04a2d995523c5a97f6
+ state_machines (0.202.0) sha256=20db5367b4541155fc6d764f8ba54182ba6d49ceac7d917598709a61143a16e1
+ state_machines-activemodel (0.200.0) sha256=c0216f5730b00ee240a6370d59138e8d5d966752089a749ae015410185ec953e
+ state_machines-activerecord (0.200.0) sha256=a53a1c09b478f05be9385af59e09a7a84a818c6a66651e432bfa4650d5917d85
+ stringex (2.8.6) sha256=c7b382d2b2a47a1e1646f256df201c48d487d6296fbb289d76802f67f5e929c4
+ stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
+ terminal-table (4.0.0) sha256=f504793203f8251b2ea7c7068333053f0beeea26093ec9962e62ea79f94301d2
+ thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
+ tilt (2.8.0) sha256=ba472eb2716fe1e04112d6d219a9dae938ec09a6a1e2ad3ecc7922e79bde3721
+ timecop (0.9.11) sha256=41284dc6e5041f2184f781ace766f942108c842f8d8c1386a26e6343decc7542
+ timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
+ tomlrb (2.0.4) sha256=262f77947ac3ac9b3366a0a5940ecd238300c553e2e14f22009e2afcd2181b99
+ tracking_number (2.4.0) sha256=2a4c6b39cbdfc8326c234626556da1e269c8dfe33478786bea93461331c247ff
+ tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
+ typelizer (0.11.0) sha256=6f4bc70c4d4110bae8055d5fe88175f61e2da910c87fc70110f9c9fff5b5c587
+ tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
+ unaccent (0.4.0) sha256=d9278230016edc5317c053f8e84c1e1dea6827dec028e5481e2294a4e11e7333
+ unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
+ unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
+ uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
+ useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844
+ validates_zipcode (0.6.0) sha256=9f9c10a9c75a14411cea2f65f04fb0089b9f284ebf59faa3e75a9e3d20d1a236
+ vcr (6.4.0) sha256=077ac92cc16efc5904eb90492a18153b5e6ca5398046d8a249a7c96a9ea24ae6
+ wannabe_bool (0.7.1) sha256=838ef671066868424de888fb22eeae57c7012709aabd5d17141ea6fea964c61f
+ webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
+ websocket-driver (0.8.2) sha256=97c556b019bf3410b4961002ac501621e9322d3f8a7bc02161a09301cc4c4146
+ websocket-extensions (0.1.5) sha256=1c6ba63092cda343eb53fc657110c71c754c56484aad42578495227d717a8241
+ with_env (1.1.0) sha256=50b3e4f0a6cda8f90d8a6bd87a6261f6c381429abafb161c4c69ad4a0cd0b6e4
+ xml-simple (1.1.9) sha256=d21131e519c86f1a5bc2b6d2d57d46e6998e47f18ed249b25cad86433dbd695d
+ yaml (0.4.0) sha256=240e69d1e6ce3584d6085978719a0faa6218ae426e034d8f9b02fb54d3471942
+ yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51
+ yard-activesupport-concern (0.0.1) sha256=be790cb0efc23e2e87677063598ac8b743586154657bbd9655a7f03ce78390ef
+ yard-solargraph (0.1.0) sha256=a19a4619c942181a618fb9458970a9d2534cf7fda69fc43949629a7948a5930e
+ zeitwerk (2.8.3) sha256=2c85125a8467ce069e20123d1e709a08955c9d29c118c25b46b7b7fafdbb92e5
+
+BUNDLED WITH
+ 4.0.3