-
So far, on production environment when any non-validation related error occurred, the
FOS\RestBundle\Serializer\Normalizer\FlattenExceptionHandlerwas used, even on API Platform endpoints. Now, depending on the path of the request, theFOS\RestBundle\Serializer\Normalizer\FlattenExceptionHandlerorApiPlatform\Hydra\Serializer\ErrorNormalizeris used. If your code rely on the previous behavior, you should add the following configuration to yourconfig/packages/_sylius.yamlfile:sylius_api: legacy_error_handling: true
Example response before bugfix:
{ "code": 500, "message": "Internal Server Error" }Example response after bugfix:
{ "@context": "/api/v2/contexts/Error", "@type": "hydra:Error", "hydra:title": "An error occurred", "hydra:description": "Internal Server Error" }The status code is passed along the response as an HTTP status code, and the
messagevalue is returned in ahydra:descriptionfield.
-
The product images should have a proper prefix (
/media/image/) added to the path, so the images could be resolved. This is now done out of the box and response ofProduct Imageresource is now:{ "@context": "/api/v2/contexts/ProductImage", "@id": "/api/v2/shop/product-images/123", "@type": "ProductImage", "id": "123", "type": "thumbnail", - "path": "uo/product.jpg", + "path": "/media/image/uo/product.jpg" }To change the prefix you need to set parameter in
config/packages/_sylius.yaml:sylius_api: product_image_prefix: 'media/image'
-
The following resources' response format changed:
- Taxons
- Products
- ProductVariants
- ProductOptions
- ProductOptionValues
- ShippingMethods
- Payments
- PaymentMethods
- Orders
Note that it concerns only
shopendpoints. Now instead of returning an array oftranslationsfor a given resource, translation is done automatically based on the current locale. For example changes in request body ofGETapi/v2/shop/shipping-methods/{code}endpoint:{ "@context": "string", "@id": "string", "@type": "string", "id": 0, "code": "string", "position": 0, - "translations": { - "en_US": { - "name": "string", - "description": "string", - "locale": "string" - } - }, "name": "string" + "description": "string" } -
The
api/v2/shop/payment/{id}/methodsendpoint has nowshop:payment_method:readserialization group assigned. Therefore its body will look like this by default:{ "@context": "\/api\/v2\/contexts\/PaymentMethod", "@id": "\/api\/v2\/shop\/orders\/nAWw2jewpA\/payments\/@integer@\/methods", "@id": "\/api\/v2\/shop\/payments\/@integer@\/methods", "@type": "hydra:Collection", "hydra:member": [ { "@id": "\/api\/v2\/shop\/payment-methods\/CASH_ON_DELIVERY", "@type": "PaymentMethod", "id": 1, "code": "CASH_ON_DELIVERY", "position": 0, "name": "Cash on delivery", "description": "Description", "instructions": null } ], "hydra:totalItems": 1 } -
The method of the
/shop/orders/{tokenValue}/itemsendpoint has been changed fromPATCHtoPOST -
Sylius\Bundle\ApiBundle\View\CartShippingMethodInterfaceandSylius\Bundle\ApiBundle\View\CartShippingMethodhave been removed. -
Sylius\Bundle\ApiBundle\Applicator\ShipmentStateMachineTransitionApplicatorInterfaceandSylius\Bundle\ApiBundle\Applicator\ShipmentStateMachineTransitionApplicatorhave been removed. -
Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactoryInterfaceandSylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactoryhave been removed. -
The
Sylius\Bundle\ApiBundle\DataTransformer\LoggedInShopUserEmailAwareCommandDataTransformerservice has been renamed toSylius\Bundle\ApiBundle\DataTransformer\LoggedInCustomerEmailAwareCommandDataTransformer -
The constructor of
Sylius\Bundle\ApiBundle\DataProvider\CartShippingMethodsSubresourceDataProviderhas been changed:public function __construct( OrderRepositoryInterface $orderRepository, ShipmentRepositoryInterface $shipmentRepository, ShippingMethodsResolverInterface $shippingMethodsResolver, - ServiceRegistryInterface $calculators, - CartShippingMethodFactoryInterface $cartShippingMethodFactory ) { ... } -
The
Sylius\Bundle\ApiBundle\Command\Cart\PickupCartcommand has interface changed fromSylius\Bundle\ApiBundle\Command\ShopUserIdAwareInterfacetoSylius\Bundle\ApiBundle\Command\CustomerEmailAwareInterface, therefore following fields and methods have been changed- public $shopUserId; + public ?string $email = null; - public function getShopUserId() + public function getEmail(): ?string - public function setShopUserId($shopUserId): void + public function setEmail(?string $email): void
-
The constructor of
Sylius\Bundle\ApiBundle\CommandHandler\Cart\PickupCartHandlerhas been changed:public function __construct( FactoryInterface $cartFactory, OrderRepositoryInterface $cartRepository, ChannelRepositoryInterface $channelRepository, ObjectManager $orderManager, RandomnessGeneratorInterface $generator, - UserRepositoryInterface $userRepository + CustomerRepositoryInterface $customerRepository ) { ... } -
The constructor of
Sylius\Bundle\ApiBundle\CommandHandler\Checkout\AddressOrderHandlerhas been changed:public function __construct( OrderRepositoryInterface $orderRepository, - CustomerRepositoryInterface $customerRepository, - FactoryInterface $customerFactory, ObjectManager $manager, StateMachineFactoryInterface $stateMachineFactory, AddressMapperInterface $addressMapper AddressMapperInterface $addressMapper, + CustomerProviderInterface $customerProvider ) { -
The response schema for endpoint
GET /api/v2/shop/orders/{tokenValue}/shipments/{shipments}/methodshas been changed from:... "hydra:member": [ { ... "@type": "CartShippingMethod", "shippingMethod": { ... "price": 500 } } ]to:
... "hydra:member": [ { ... "@type": "ShippingMethod", ... "price": 500 } ] -
Constructor of
Core/OrderProcessing/OrderTaxesProcessor.phphas been changed where new service implementingTaxationAddressResolverInterfacewill become mandatory from Sylius version 2.0:public function __construct( ZoneProviderInterface $defaultTaxZoneProvider, ZoneMatcherInterface $zoneMatcher, PrioritizedServiceRegistryInterface $strategyRegistry, + ?TaxationAddressResolverInterface $taxationAddressResolver = null ) { ... } -
Constructor of
Sylius\Bundle\ApiBundle\Command\Account\ResendVerificationEmailhas been removed. Relation to the current customer is set throughsetShopUserId() -
The
Sylius\Bundle\ApiBundle\Validator\Constraints\ShopUserExistsconstraint and theSylius\Bundle\ApiBundle\Validator\Constraints\ShopUserExistsValidatorhave been removed -
Constructor of
ApiBundle/Serializer/ProductVariantNormalizer.phphas been extended withSectionProviderInterfaceargument:public function __construct( ProductVariantPricesCalculatorInterface $priceCalculator, ChannelContextInterface $channelContext, AvailabilityCheckerInterface $availabilityChecker, + SectionProviderInterface $uriBasedSectionContext ) { ... } -
Request body of
POSTapi/v2/shop/addressesendpoint has been changed:{ - "customer": "string", "firstName": "string", "lastName": "string", "phoneNumber": "string", "company": "string", "countryCode": "string", "provinceCode": "string", "provinceName": "string", "street": "string", "city": "string", "postcode": "string" } -
Request body of
POSTapi/v2/shop/account-verification-requestsendpoint has been removed:{ - "email": "string", - "localeCode": "string" } -
The service
Sylius\Bundle\ApiBundle\Converter\ItemIriToIdentifierConverterhas changed its name toSylius\Bundle\ApiBundle\Converter\IriToIdentifierConverterand its service definition fromSylius\Bundle\ApiBundle\Converter\ItemIriToIdentifierConvertertoSylius\Bundle\ApiBundle\Converter\IriToIdentifierConverterInterface -
The service
Sylius\Bundle\ApiBundle\Serializer\CommandFieldItemIriToIdentifierDenormalizerhas changed its name toSylius\Bundle\ApiBundle\Serializer\CommandArgumentsDenormalizerand also its service definition. -
Following namespaces has been changed:
- '\Sylius\Bundle\ApiBundle\CommandHandler\AddProductReviewHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Catalog\AddProductReviewHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\BlameCartHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Cart\BlameCartHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\RequestResetPasswordTokenHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\RequestResetPasswordTokenHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\ResendVerificationEmailHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\ResendVerificationEmailHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\ResetPasswordHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\ResetPasswordHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\SendAccountRegistrationEmailHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\SendAccountRegistrationEmailHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\SendAccountVerificationEmailHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\SendAccountVerificationEmailHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\SendOrderConfirmationHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Checkout\SendOrderConfirmationHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\SendResetPasswordEmailHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\SendResetPasswordEmailHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\SendShipmentConfirmationEmailHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Checkout\SendShipmentConfirmationEmailHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\VerifyCustomerAccountHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\VerifyCustomerAccountHandler'
- '\Sylius\Bundle\ApiBundle\Command\AddProductReview' => '\Sylius\Bundle\ApiBundle\Command\Catalog\AddProductReview'
- '\Sylius\Bundle\ApiBundle\Command\BlameCart' => '\Sylius\Bundle\ApiBundle\Command\Cart\BlameCart'
- '\Sylius\Bundle\ApiBundle\Command\RequestResetPasswordToken' => '\Sylius\Bundle\ApiBundle\Command\Account\RequestResetPasswordToken'
- '\Sylius\Bundle\ApiBundle\Command\ResendVerificationEmail' => '\Sylius\Bundle\ApiBundle\Command\Account\ResendVerificationEmail'
- '\Sylius\Bundle\ApiBundle\Command\ResetPassword' => '\Sylius\Bundle\ApiBundle\Command\Account\ResetPassword'
- '\Sylius\Bundle\ApiBundle\Command\SendAccountRegistrationEmail' => '\Sylius\Bundle\ApiBundle\Command\Account\SendAccountRegistrationEmail'
- '\Sylius\Bundle\ApiBundle\Command\SendAccountVerificationEmail' => '\Sylius\Bundle\ApiBundle\Command\Account\SendAccountVerificationEmail'
- '\Sylius\Bundle\ApiBundle\Command\SendOrderConfirmation' => '\Sylius\Bundle\ApiBundle\Command\Checkout\SendOrderConfirmation'
- '\Sylius\Bundle\ApiBundle\Command\SendResetPasswordEmail' => '\Sylius\Bundle\ApiBundle\Command\Account\SendResetPasswordEmail'
- '\Sylius\Bundle\ApiBundle\Command\SendShipmentConfirmationEmail' => '\Sylius\Bundle\ApiBundle\Command\Checkout\SendShipmentConfirmationEmail'
- '\Sylius\Bundle\ApiBundle\Command\VerifyCustomerAccount' => '\Sylius\Bundle\ApiBundle\Command\Account\VerifyCustomerAccount'
- '\Sylius\Bundle\ApiBundle\CommandHandler\ChangeShopUserPasswordHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\ChangeShopUserPasswordHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\PickupCartHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Cart\PickupCartHandler'
- '\Sylius\Bundle\ApiBundle\CommandHandler\RegisterShopUserHandler' => '\Sylius\Bundle\ApiBundle\CommandHandler\Account\RegisterShopUserHandler'
- '\Sylius\Bundle\ApiBundle\Command\ChangeShopUserPassword' => '\Sylius\Bundle\ApiBundle\Command\Account\ChangeShopUserPassword'
- '\Sylius\Bundle\ApiBundle\Command\RegisterShopUser' => '\Sylius\Bundle\ApiBundle\Command\Account\RegisterShopUser'
- '\Sylius\Bundle\ApiBundle\Doctrine\Filters\ExchangeRateFilter' => '\Sylius\Bundle\ApiBundle\Doctrine\Filter\ExchangeRateFilter'
- '\Sylius\Bundle\ApiBundle\Doctrine\Filters\TranslationOrderNameAndLocaleFilter' => 'Sylius\Bundle\ApiBundle\Doctrine\Filter\TranslationOrderNameAndLocaleFilter'
-
Following validator alias has been changed:
sylius.validator.unique_shop_user_email=>sylius_validator_unique_shop_user_email
-
Following services ids has been changed:
sylius.api.upload_avatar_image_action=>Sylius\Bundle\ApiBundle\Controller\UploadAvatarImageActionsylius.api.upload_avatar_image_action=>Sylius\Bundle\ApiBundle\Controller\UploadAvatarImageActionSylius\Bundle\ApiBundle\Changer\PaymentMethodChanger=>Sylius\Bundle\ApiBundle\Changer\PaymentMethodChangerInterfacesylius_api.serializer_context_builder.channel=>Sylius\Bundle\ApiBundle\SerializerContextBuilder\ChannelContextBuildersylius.api.context.user=>Sylius\Bundle\ApiBundle\Context\UserContextInterfacesylius.api.checker.applied_coupon_eligibility_checker=>Sylius\Bundle\ApiBundle\Checker\AppliedCouponEligibilityCheckerInterfaceSylius\Bundle\ApiBundle\Applicator\ArchivingShippingMethodApplicator=>Sylius\Bundle\ApiBundle\Applicator\ArchivingShippingMethodApplicatorInterfaceSylius\Bundle\ApiBundle\Applicator\OrderStateMachineTransitionApplicator=>Sylius\Bundle\ApiBundle\Applicator\OrderStateMachineTransitionApplicatorInterfaceSylius\Bundle\ApiBundle\Applicator\PaymentStateMachineTransitionApplicator=>Sylius\Bundle\ApiBundle\Applicator\PaymentStateMachineTransitionApplicatorInterfaceSylius\Bundle\ApiBundle\Applicator\ProductReviewStateMachineTransitionApplicator=>Sylius\Bundle\ApiBundle\Applicator\ProductReviewStateMachineTransitionApplicatorInterfacesylius.api.property_info.extractor.empty_list_extractor=>Sylius\Bundle\ApiBundle\PropertyInfo\Extractor\EmptyPropertyListExtractorsylius.api.data_transformer.order_token_value_aware_input_data_transformer=>Sylius\Bundle\ApiBundle\DataTransformer\OrderTokenValueAwareInputCommandDataTransformersylius.api.data_transformer.shipment_id_aware_input_command=>Sylius\Bundle\ApiBundle\DataTransformer\ShipmentIdAwareInputCommandDataTransformersylius.api.data_transformer.logged_in_shop_user_id_aware_input_data_transformer=>Sylius\Bundle\ApiBundle\DataTransformer\LoggedInShopUserIdAwareCommandDataTransformersylius.api.data_transformer.channel_code_aware_input_data_transformer=>Sylius\Bundle\ApiBundle\DataTransformer\ChannelCodeAwareInputCommandDataTransformersylius.api.data_transformer.logged_in_shop_user_email_aware_command=>Sylius\Bundle\ApiBundle\DataTransformer\LoggedInCustomerEmailAwareCommandDataTransformersylius.api.data_transformer.locale_code_aware_input_data_transformer=>Sylius\Bundle\ApiBundle\DataTransformer\LocaleCodeAwareInputCommandDataTransformersylius.api.data_transformer.subresource_id_aware_data_transformer=>Sylius\Bundle\ApiBundle\DataTransformer\SubresourceIdAwareCommandDataTransformersylius.api.section_resolver.admin_api_uri_based_section_resolver=>Sylius\Bundle\ApiBundle\SectionResolver\AdminApiUriBasedSectionResolversylius.api.section_resolver.shop_api_uri_based_section_resolver=>Sylius\Bundle\ApiBundle\SectionResolver\ShopApiUriBasedSectionResolversylius.listener.api_cart_blamer=>Sylius\Bundle\ApiBundle\EventListener\ApiCartBlamerListenersylius.context.cart.token_value_based=>Sylius\Bundle\ApiBundle\Context\TokenValueBasedCartContextsylius.api.data_persister.address=>Sylius\Bundle\ApiBundle\DataPersister\AddressDataPersistersylius.api.data_persister.admin_user=>Sylius\Bundle\ApiBundle\DataPersister\AdminUserDataPersistersylius.api.data_persister.shipping_method=>Sylius\Bundle\ApiBundle\DataPersister\ShippingMethodDataPersistersylius.api.item_data_provider.address=>Sylius\Bundle\ApiBundle\DataProvider\AddressItemDataProvidersylius.api.item_data_provider.order_item=>Sylius\Bundle\ApiBundle\DataProvider\OrderItemItemDataProvidersylius.api.item_data_provider.order_item_unit=>Sylius\Bundle\ApiBundle\DataProvider\OrderItemUnitItemDataProvidersylius.api.item_data_provider.payment=>Sylius\Bundle\ApiBundle\DataProvider\PaymentItemDataProvidersylius.api.item_data_provider.shipment=>Sylius\Bundle\ApiBundle\DataProvider\ShipmentItemDataProvidersylius.api.collection_data_provider.country=>Sylius\Bundle\ApiBundle\DataProvider\CountryCollectionDataProvidersylius.api.collection_data_provider.taxon=>Sylius\Bundle\ApiBundle\DataProvider\TaxonCollectionDataProvidersylius.api.collection_data_provider.locale=>Sylius\Bundle\ApiBundle\DataProvider\LocaleCollectionDataProvidersylius.api.collection_data_provider.product=>Sylius\Bundle\ApiBundle\DataProvider\ProductItemDataProvidersylius.api.collection_data_provider.customer=>Sylius\Bundle\ApiBundle\DataProvider\CustomerItemDataProvidersylius.api.item_data_provider.reset_password_item=>Sylius\Bundle\ApiBundle\DataProvider\ResetPasswordItemDataProvidersylius.api.kerner_request_event_subscriber=>Sylius\Bundle\ApiBundle\EventSubscriber\KernelRequestEventSubscribersylius.api.product_slug_event_subscriber=>Sylius\Bundle\ApiBundle\EventSubscriber\ProductSlugEventSubscribersylius.api.product_taxon_filter=>Sylius\Bundle\ApiBundle\Filter\Doctrine\TaxonFiltersylius.api.exchange_rate_filter=>Sylius\Bundle\ApiBundle\Doctrine\Filter\ExchangeRateFiltersylius.api.translation_order_name_and_locale_filter=>Sylius\Bundle\ApiBundle\Doctrine\Filter\TranslationOrderNameAndLocaleFiltersylius.api.product_variant_option_value_filter=>Sylius\Bundle\ApiBundle\Doctrine\Filter\ProductVariantOptionValueFiltersylius.api.get_configuration_action=>Sylius\Bundle\ApiBundle\Controller\Payment\GetPaymentConfiguration" public="truesylius.validator.unique_shop_user_email=>Sylius\Bundle\ApiBundle\Validator\Constraints\UniqueShopUserEmailValidatorsylius.api.validator.order_not_empty=>Sylius\Bundle\ApiBundle\Validator\Constraints\OrderNotEmptyValidatorsylius.api.validator.order_product_eligibility=>Sylius\Bundle\ApiBundle\Validator\Constraints\OrderProductEligibilityValidatorsylius.api.validator.order_item_availability=>Sylius\Bundle\ApiBundle\Validator\Constraints\OrderItemAvailabilityValidatorsylius.api.validator.shipping_method_eligibility=>Sylius\Bundle\ApiBundle\Validator\Constraints\OrderShippingMethodEligibilityValidatorsylius.api.validator.chosen_shipping_method_eligibility=>Sylius\Bundle\ApiBundle\Validator\Constraints\ChosenShippingMethodEligibilityValidatorsylius.api.validator.adding_eligible_product_variant_to_cart=>Sylius\Bundle\ApiBundle\Validator\Constraints\AddingEligibleProductVariantToCartValidatorsylius.api.validator.changing_item_quantity_in_cart=>Sylius\Bundle\ApiBundle\Validator\Constraints\ChangedItemQuantityInCartValidatorsylius.api.validator.correct_order_address=>Sylius\Bundle\ApiBundle\Validator\Constraints\CorrectOrderAddressValidatorsylius.api.validator.payment_method_eligibility=>Sylius\Bundle\ApiBundle\Validator\Constraints\OrderPaymentMethodEligibilityValidatorsylius.api.validator.chosen_payment_method_eligibility=>Sylius\Bundle\ApiBundle\Validator\Constraints\ChosenPaymentMethodEligibilityValidatorsylius.api.validator.correct_change_shop_user_confirm_password=>Sylius\Bundle\ApiBundle\Validator\Constraints\CorrectChangeShopUserConfirmPasswordValidatorsylius.api.validator.confirm_reset_password=>Sylius\Bundle\ApiBundle\Validator\Constraints\ConfirmResetPasswordValidatorsylius.api.validator.promotion_coupon_eligibility=>Sylius\Bundle\ApiBundle\Validator\Constraints\PromotionCouponEligibilityValidatorsylius.api.validator.shipment_already_shipped=>Sylius\Bundle\ApiBundle\Validator\Constraints\ShipmentAlreadyShippedValidatorsylius.api.validator.shop_user_not_verified=>Sylius\Bundle\ApiBundle\Validator\Constraints\ShopUserNotVerifiedValidatorsylius.api.validator.account_verification_token_eligibility=>Sylius\Bundle\ApiBundle\Validator\Constraints\AccountVerificationTokenEligibilityValidatorsylius.api.validator.unique_reviewer_email=>Sylius\Bundle\ApiBundle\Validator\Constraints\UniqueReviewerEmailValidatorsylius.api.collection_data_provider.payment_method=>Sylius\Bundle\ApiBundle\DataProvider\CartPaymentMethodsSubresourceDataProvidersylius.api.collection_data_provider.adjustments_for_order=>Sylius\Bundle\ApiBundle\DataProvider\OrderAdjustmentsSubresourceDataProvidersylius.api.collection_data_provider.adjustments_for_order_item=>Sylius\Bundle\ApiBundle\DataProvider\OrderItemAdjustmentsSubresourceDataProvidersylius.api.item_data_provider.verify_customer_account=>Sylius\Bundle\ApiBundle\DataProvider\VerifyCustomerAccountItemDataProvidersylius_api.serializer_context_builder.locale=>Sylius\Bundle\ApiBundle\SerializerContextBuilder\LocaleContextBuildersylius_api.serializer_context_builder.http_request_method_type=>Sylius\Bundle\ApiBundle\SerializerContextBuilder\HttpRequestMethodTypeContextBuildersylius.api.doctrine.query_collection_extension.hide_archived_shipping_method=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\HideArchivedShippingMethodExtensionsylius.api.doctrine.query_collection_extension.accepted_product_reviews=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\AcceptedProductReviewsExtensionsylius.api.doctrine.query_collection_extension.addresses=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\AddressesExtensionsylius.api.doctrine.query_collection_extension.products_by_channel_and_locale_code=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\ProductsByChannelAndLocaleCodeExtensionsylius.api.doctrine.query_collection_extension.orders_by_logged_in_user=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\OrdersByLoggedInUserExtensionsylius.api.doctrine.query_collection_extension.products_with_enable_flag=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\ProductsWithEnableFlagExtensionsylius.api.doctrine.query_item_extension.get_order=>Sylius\Bundle\ApiBundle\Doctrine\QueryItemExtension\OrderGetMethodItemExtensionsylius.api.doctrine.query_item_extension.delete_order=>Sylius\Bundle\ApiBundle\Doctrine\QueryItemExtension\OrderMethodsItemExtensionsylius.api.collection_data_provider.shipping_methods_available_for_order=>Sylius\Bundle\ApiBundle\DataProvider\CartShippingMethodsSubresourceDataProvidersylius.api.swagger_admin_authentication_documentation_normalizer=>Sylius\Bundle\ApiBundle\Swagger\AdminAuthenticationTokenDocumentationNormalizersylius.api.swagger_shop_authentication_documentation_normalizer=>Sylius\Bundle\ApiBundle\Swagger\ShopAuthenticationTokenDocumentationNormalizersylius.api.swagger_product_documentation_normalizer=>Sylius\Bundle\ApiBundle\Swagger\ProductDocumentationNormalizersylius.api.swagger_product_image_documentation_normalizer=>Sylius\Bundle\ApiBundle\Swagger\ProductImageDocumentationNormalizersylius.api.swagger_product_variant_documentation_normalizer=>Sylius\Bundle\ApiBundle\Swagger\ProductVariantDocumentationNormalizersylius.api.swagger_shipping_method_documentation_normalizer=>Sylius\Bundle\ApiBundle\Swagger\ShippingMethodDocumentationNormalizer
-
Following Data Providers have been transformed to Doctrine Extensions:
Sylius\Bundle\ApiBundle\DataProvider\AddressItemDataProvider=>Sylius\Bundle\ApiBundle\Doctrine\QueryItemExtension\AddressItemExtensionSylius\Bundle\ApiBundle\DataProvider\CountryCollectionDataProvider=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\CountryCollectionExtensionSylius\Bundle\ApiBundle\DataProvider\CurrencyCollectionDataProvider=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\CurrencyCollectionExtensionSylius\Bundle\ApiBundle\DataProvider\LocaleCollectionDataProvider=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\LocaleCollectionExtensionSylius\Bundle\ApiBundle\DataProvider\TaxonCollectionDataProvider=>Sylius\Bundle\ApiBundle\Doctrine\QueryCollectionExtension\TaxonCollectionExtension
-
The following filters have been moved to new namespace:
Sylius\Bundle\ApiBundle\Doctrine\Filter\ExchangeRateFilterservice has been moved and renamed toSylius\Bundle\ApiBundle\Filter\Doctrine\ExchangeRateFilterSylius\Bundle\ApiBundle\Doctrine\Filter\TranslationOrderNameAndLocaleFilterservice has been moved and renamed toSylius\Bundle\ApiBundle\Filter\Doctrine\TranslationOrderNameAndLocaleFilterSylius\Bundle\ApiBundle\Doctrine\Filter\ProductVariantOptionValueFilterservice has been moved and renamed toSylius\Bundle\ApiBundle\Filter\Doctrine\ProductVariantOptionValueFilterSylius\Bundle\ApiBundle\Doctrine\Filter\ProductPriceOrderFilterservice has been moved and renamed toSylius\Bundle\ApiBundle\Filter\Doctrine\ProductPriceOrderFilter
-
Sylius\Bundle\ApiBundle\Command\Cart\ApplyCouponToCartandSylius\Bundle\ApiBundle\Command\Checkout\AddressOrdercommands have been replaced withSylius\Bundle\ApiBundle\Command\Checkout\UpdateCart. -
Sylius\Bundle\ApiBundle\CommandHandler\Cart\ApplyCouponToCartHandlerandSylius\Bundle\ApiBundle\CommandHandler\Checkout\AddressOrderHandlercommand handlers have been replaced withSylius\Bundle\ApiBundle\CommandHandler\Checkout\UpdateCartHandler. -
The
sylius.api.filter_archived_shipping_methodsservices has been renamed tosylius.api.archived_shipping_methods_filterto be coherent with rest of the filters -
The argument of
Sylius\Bundle\ApiBundle\Applicator\ArchivingShippingMethodApplicatorInterfaceservice has been changed fromsylius.calendartoSylius\Calendar\Provider\DateTimeProviderInterface. -
Renamed response body field
originalPricetooriginalUnitPriceof the following endpoints:'POST', '/api/v2/shop/orders/{tokenValue}/items''GET', '/api/v2/shop/orders/{tokenValue}/items''GET', '/api/v2/shop/orders/{tokenValue}'
-
Added response body field
originalUnitPriceto the following endpoint:'GET', '/api/v2/admin/orders/{tokenValue}'