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.

Merge pull request #11002 from spree/set-api-default-user-addresses

Damian Legawiec48e6abae5f13
diff --cc api/app/models/spree/api_dependencies.rb
index c8fc1e47aa,b6f5713f54..ad08f3ef53
--- a/api/app/models/spree/api_dependencies.rb
+++ b/api/app/models/spree/api_dependencies.rb
@@@ -10,14 -10,13 +10,14 @@@ module Spre
:storefront_checkout_remove_store_credit_service, :storefront_checkout_get_shipping_rates_service,
:storefront_cart_compare_line_items_service, :storefront_cart_serializer, :storefront_credit_card_serializer,
:storefront_credit_card_finder, :storefront_shipment_serializer, :storefront_payment_method_serializer, :storefront_country_finder,
- :storefront_country_serializer, :storefront_current_order_finder, :storefront_completed_order_finder, :storefront_order_sorter,
- :storefront_collection_paginator, :storefront_user_serializer, :storefront_products_sorter, :storefront_products_finder,
- :storefront_product_serializer, :storefront_taxon_serializer, :storefront_taxon_finder, :storefront_find_by_variant_finder,
- :storefront_cart_update_service, :storefront_cart_estimate_shipping_rates_service, :storefront_estimated_shipment_serializer,
+ :storefront_country_serializer, :storefront_menu_serializer, :storefront_menu_finder, :storefront_current_order_finder,
+ :storefront_completed_order_finder, :storefront_order_sorter, :storefront_collection_paginator, :storefront_user_serializer,
+ :storefront_products_sorter, :storefront_products_finder, :storefront_product_serializer, :storefront_taxon_serializer,
+ :storefront_taxon_finder, :storefront_find_by_variant_finder, :storefront_cart_update_service,
+ :storefront_cart_estimate_shipping_rates_service, :storefront_estimated_shipment_serializer,
:storefront_store_serializer, :storefront_address_serializer, :storefront_order_serializer,
:storefront_account_create_address_service, :storefront_account_update_address_service, :storefront_address_finder,
- :storefront_collection_sorter, :error_handler
+ :storefront_account_create_service, :storefront_account_update_service, :storefront_collection_sorter, :error_handler
].freeze
attr_accessor *INJECTION_POINTS
diff --cc core/app/models/spree/app_dependencies.rb
index 0eac27e09d,35124ccbfa..594ffd9165
--- a/core/app/models/spree/app_dependencies.rb
+++ b/core/app/models/spree/app_dependencies.rb
@@@ -9,11 -9,11 +9,11 @@@ module Spre
:cart_update_service, :checkout_next_service, :checkout_advance_service, :checkout_update_service,
:checkout_complete_service, :checkout_add_store_credit_service,
:checkout_remove_store_credit_service, :checkout_get_shipping_rates_service,
- :coupon_handler, :country_finder, :current_order_finder, :credit_card_finder,
+ :coupon_handler, :menu_finder, :country_finder, :current_order_finder, :credit_card_finder,
:completed_order_finder, :order_sorter, :cart_compare_line_items_service, :collection_paginator, :products_sorter,
:products_finder, :taxon_finder, :line_item_by_variant_finder, :cart_estimate_shipping_rates_service,
- :account_create_address_service, :account_update_address_service, :address_finder,
- :collection_sorter, :error_handler
+ :account_create_address_service, :account_update_address_service, :account_create_service, :account_update_service,
+ :address_finder, :collection_sorter, :error_handler
].freeze
attr_accessor *INJECTION_POINTS