-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] updateOrderDeliveryPickUp should support multipel different pickup providers #399
Comments
Referred mutation:
|
Currently Unchained creates or reuses an existing OrderDelivery when "setOrderDeliveryProvider" is used. So you can't even do the upper mutation because you don't know the correct orderDeliveryId until you have set the delivery provider on the cart.
I suppose we do a breaking schema change: From:
To:
The mutation from @macrozone could then be done like this (drop explicit orderId because current cart is assumed):
|
We got another issue with a new case also conflicting with the current concept. It basically boils down to the problem that in order to get a list of pickup locations you have to set the delivery provider on the cart first. So additionally to these changes, we should find a way to let the user query for pickup locations baed on the PROVIDER. -> DeliveryProvider.pickUpLocations instead of OrderDelivery.pickUpLocations |
Introduction
updateOrderDeliveryPickUp does assume that the order has already a pickup delivery configured, otherwise it will fail silently.
Is your feature request related to a problem? Please describe.
if you have multipe delivery pickup provider, the problem is more severe. You can't change the delivery provider and set a new pickup location at the same time. You would need to call first
setOrderDeliveryProvider
and thenupdateOrderDeliveryPickUp
.this is very tedious
Describe the solution you'd like
updateOrderDeliveryPickUp should take a providerId
Describe the design of the solution in detail
simple: updateOrderDeliveryPickUp also allows to change the provider
Describe alternatives you've considered
none
The text was updated successfully, but these errors were encountered: