Fix order fullfilment redirect

This commit is contained in:
Dawid Tarasiuk 2020-10-06 11:41:31 +02:00
parent 2c18669a16
commit 62e844449b
21 changed files with 86 additions and 0 deletions

View file

@ -26,7 +26,9 @@ export const fragmentOrderLine = gql`
id
isShippingRequired
variant {
id
product {
id
isAvailableForPurchase
isPublished
}

View file

@ -10,12 +10,14 @@ import { FulfillmentStatus } from "./../../types/globalTypes";
export interface FulfillmentFragment_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface FulfillmentFragment_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: FulfillmentFragment_lines_orderLine_variant_product;
quantityAvailable: number;
}

View file

@ -64,12 +64,14 @@ export interface OrderDetailsFragment_events {
export interface OrderDetailsFragment_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDetailsFragment_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderDetailsFragment_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -135,12 +137,14 @@ export interface OrderDetailsFragment_fulfillments {
export interface OrderDetailsFragment_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDetailsFragment_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderDetailsFragment_lines_variant_product;
quantityAvailable: number;
}

View file

@ -8,12 +8,14 @@
export interface OrderLineFragment_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderLineFragment_variant {
__typename: "ProductVariant";
id: string;
product: OrderLineFragment_variant_product;
quantityAvailable: number;
}

View file

@ -947,8 +947,10 @@ export const order = (placeholder: string): OrderDetails_order => ({
},
variant: {
__typename: "ProductVariant",
id: "dsfsfuhb",
product: {
__typename: "Product",
id: "345678393",
isAvailableForPurchase: true,
isPublished: true
},
@ -997,8 +999,10 @@ export const order = (placeholder: string): OrderDetails_order => ({
},
variant: {
__typename: "ProductVariant",
id: "dsfsfuhb",
product: {
__typename: "Product",
id: "345678393",
isAvailableForPurchase: true,
isPublished: true
},
@ -1052,8 +1056,10 @@ export const order = (placeholder: string): OrderDetails_order => ({
},
variant: {
__typename: "ProductVariant",
id: "dsfsfuhb",
product: {
__typename: "Product",
id: "345678393",
isAvailableForPurchase: true,
isPublished: true
},
@ -1087,8 +1093,10 @@ export const order = (placeholder: string): OrderDetails_order => ({
},
variant: {
__typename: "ProductVariant",
id: "dsfsfuhb",
product: {
__typename: "Product",
id: "345678393",
isAvailableForPurchase: true,
isPublished: true
},
@ -1220,8 +1228,10 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
},
variant: {
__typename: "ProductVariant",
id: "dsfsfuhb",
product: {
__typename: "Product",
id: "345678393",
isAvailableForPurchase: true,
isPublished: true
},
@ -1255,8 +1265,10 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
},
variant: {
__typename: "ProductVariant",
id: "dsfsfuhb",
product: {
__typename: "Product",
id: "345678393",
isAvailableForPurchase: true,
isPublished: true
},

View file

@ -72,12 +72,14 @@ export interface FulfillOrder_orderFulfill_order_events {
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -143,12 +145,14 @@ export interface FulfillOrder_orderFulfill_order_fulfillments {
export interface FulfillOrder_orderFulfill_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface FulfillOrder_orderFulfill_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: FulfillOrder_orderFulfill_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderCancel_orderCancel_order_events {
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderCancel_orderCancel_order_fulfillments {
export interface OrderCancel_orderCancel_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderCancel_orderCancel_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderCancel_orderCancel_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderCapture_orderCapture_order_events {
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderCapture_orderCapture_order_fulfillments {
export interface OrderCapture_orderCapture_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderCapture_orderCapture_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderCapture_orderCapture_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -64,12 +64,14 @@ export interface OrderDetails_order_events {
export interface OrderDetails_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDetails_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderDetails_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -135,12 +137,14 @@ export interface OrderDetails_order_fulfillments {
export interface OrderDetails_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDetails_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderDetails_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderDraftCancel_draftOrderDelete_order_events {
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderDraftCancel_draftOrderDelete_order_fulfillments {
export interface OrderDraftCancel_draftOrderDelete_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDraftCancel_draftOrderDelete_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderDraftCancel_draftOrderDelete_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderDraftFinalize_draftOrderComplete_order_events {
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments {
export interface OrderDraftFinalize_draftOrderComplete_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDraftFinalize_draftOrderComplete_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderDraftFinalize_draftOrderComplete_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_events {
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments {
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderDraftUpdate_draftOrderUpdate_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events {
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillment
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderLineDelete_draftOrderLineDelete_order_events {
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments {
export interface OrderLineDelete_draftOrderLineDelete_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderLineDelete_draftOrderLineDelete_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderLineDelete_draftOrderLineDelete_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_events {
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments {
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderLineUpdate_draftOrderLineUpdate_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_events {
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments {
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderLinesAdd_draftOrderLinesCreate_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_events {
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments {
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderMarkAsPaid_orderMarkAsPaid_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderRefund_orderRefund_order_events {
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderRefund_orderRefund_order_fulfillments {
export interface OrderRefund_orderRefund_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderRefund_orderRefund_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderRefund_orderRefund_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderUpdate_orderUpdate_order_events {
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderUpdate_orderUpdate_order_fulfillments {
export interface OrderUpdate_orderUpdate_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderUpdate_orderUpdate_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderUpdate_orderUpdate_order_lines_variant_product;
quantityAvailable: number;
}

View file

@ -70,12 +70,14 @@ export interface OrderVoid_orderVoid_order_events {
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_variant {
__typename: "ProductVariant";
id: string;
product: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_variant_product;
quantityAvailable: number;
}
@ -141,12 +143,14 @@ export interface OrderVoid_orderVoid_order_fulfillments {
export interface OrderVoid_orderVoid_order_lines_variant_product {
__typename: "Product";
id: string;
isAvailableForPurchase: boolean | null;
isPublished: boolean;
}
export interface OrderVoid_orderVoid_order_lines_variant {
__typename: "ProductVariant";
id: string;
product: OrderVoid_orderVoid_order_lines_variant_product;
quantityAvailable: number;
}