app/models/spree/api_dependencies.rb in spree_api-4.0.9 vs app/models/spree/api_dependencies.rb in spree_api-4.1.0.rc1

- old
+ new

@@ -11,13 +11,11 @@ :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_store_serializer, :storefront_address_serializer, :storefront_order_serializer, - :storefront_account_create_address_service, :storefront_account_update_address_service, :storefront_address_finder + :storefront_cart_update_service, :storefront_cart_estimate_shipping_rates_service, :storefront_estimated_shipment_serializer ].freeze attr_accessor *INJECTION_POINTS def initialize @@ -48,36 +46,28 @@ @storefront_checkout_complete_service = Spree::Dependencies.checkout_complete_service @storefront_checkout_add_store_credit_service = Spree::Dependencies.checkout_add_store_credit_service @storefront_checkout_remove_store_credit_service = Spree::Dependencies.checkout_remove_store_credit_service @storefront_checkout_get_shipping_rates_service = Spree::Dependencies.checkout_get_shipping_rates_service - # account services - @storefront_account_create_address_service = Spree::Dependencies.account_create_address_service - @storefront_account_update_address_service = Spree::Dependencies.account_update_address_service - # serializers - @storefront_address_serializer = 'Spree::V2::Storefront::AddressSerializer' @storefront_cart_serializer = 'Spree::V2::Storefront::CartSerializer' @storefront_credit_card_serializer = 'Spree::V2::Storefront::CreditCardSerializer' @storefront_country_serializer = 'Spree::V2::Storefront::CountrySerializer' @storefront_user_serializer = 'Spree::V2::Storefront::UserSerializer' @storefront_shipment_serializer = 'Spree::V2::Storefront::ShipmentSerializer' @storefront_taxon_serializer = 'Spree::V2::Storefront::TaxonSerializer' @storefront_payment_method_serializer = 'Spree::V2::Storefront::PaymentMethodSerializer' @storefront_product_serializer = 'Spree::V2::Storefront::ProductSerializer' @storefront_estimated_shipment_serializer = 'Spree::V2::Storefront::EstimatedShippingRateSerializer' - @storefront_store_serializer = 'Spree::V2::Storefront::StoreSerializer' - @storefront_order_serializer = 'Spree::V2::Storefront::CartSerializer' # sorters @storefront_order_sorter = Spree::Dependencies.order_sorter @storefront_products_sorter = Spree::Dependencies.products_sorter # paginators @storefront_collection_paginator = Spree::Dependencies.collection_paginator # finders - @storefront_address_finder = Spree::Dependencies.address_finder @storefront_country_finder = Spree::Dependencies.country_finder @storefront_current_order_finder = Spree::Dependencies.current_order_finder @storefront_completed_order_finder = Spree::Dependencies.completed_order_finder @storefront_credit_card_finder = Spree::Dependencies.credit_card_finder @storefront_find_by_variant_finder = Spree::Dependencies.line_item_by_variant_finder