Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Return availableShippingMethods after address change

dominik-zeglen23b04b044a01
diff --git a/saleor/static/dashboard-next/orders/mutations.ts b/saleor/static/dashboard-next/orders/mutations.ts
index 984dc485aa..ef8108ff7d 100644
--- a/saleor/static/dashboard-next/orders/mutations.ts
+++ b/saleor/static/dashboard-next/orders/mutations.ts
@@ -294,6 +294,10 @@ const orderShippingMethodUpdateMutation = gql`
message
}
order {
+ availableShippingMethods {
+ id
+ name
+ }
id
shippingMethod {
id
diff --git a/saleor/static/dashboard-next/orders/types/OrderShippingMethodUpdate.ts b/saleor/static/dashboard-next/orders/types/OrderShippingMethodUpdate.ts
index 338d2a6f67..9a5350a45a 100644
--- a/saleor/static/dashboard-next/orders/types/OrderShippingMethodUpdate.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderShippingMethodUpdate.ts
@@ -13,6 +13,12 @@ export interface OrderShippingMethodUpdate_orderUpdateShipping_errors {
message: string | null;
}
+export interface OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods {
+ __typename: "ShippingMethod";
+ id: string;
+ name: string;
+}
+
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod_price {
__typename: "Money";
amount: number;
@@ -39,6 +45,7 @@ export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPri
export interface OrderShippingMethodUpdate_orderUpdateShipping_order {
__typename: "Order";
+ availableShippingMethods: (OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods | null)[] | null;
id: string;
shippingMethod: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod | null;
shippingMethodName: string | null;