2020-04-20 09:37:32 +00:00
|
|
|
/* eslint-disable sort-keys */
|
|
|
|
|
|
|
|
import { OrderFulfillData_order } from "@saleor/orders/types/OrderFulfillData";
|
|
|
|
import { warehouseList } from "@saleor/warehouses/fixtures";
|
|
|
|
import * as placeholderImage from "@assets/images/sample-product.jpg";
|
|
|
|
|
|
|
|
export const orderToFulfill: OrderFulfillData_order = {
|
|
|
|
__typename: "Order",
|
|
|
|
id: "T3JkZXI6Mg==",
|
|
|
|
lines: [
|
|
|
|
{
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjQ=",
|
|
|
|
isShippingRequired: true,
|
|
|
|
productName: "T-Shirt",
|
|
|
|
quantity: 3,
|
|
|
|
quantityFulfilled: 1,
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6Mjk2",
|
|
|
|
name: "S",
|
|
|
|
sku: "62783187",
|
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
__typename: "SelectedAttribute",
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
__typename: "AttributeValue",
|
|
|
|
id: "QXR0cmlidXRlVmFsdWU6MzY=",
|
|
|
|
name: "S"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
stocks: [
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTIy",
|
|
|
|
warehouse: warehouseList[0],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 1217,
|
|
|
|
quantityAllocated: 10
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTIx",
|
|
|
|
warehouse: warehouseList[1],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 1217,
|
|
|
|
quantityAllocated: 20
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTIz",
|
|
|
|
warehouse: warehouseList[2],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 1217,
|
|
|
|
quantityAllocated: 4
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTI0",
|
|
|
|
warehouse: warehouseList[3],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 1220,
|
|
|
|
quantityAllocated: 7
|
2020-04-20 09:37:32 +00:00
|
|
|
}
|
2020-05-08 13:38:44 +00:00
|
|
|
],
|
|
|
|
trackInventory: false
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image",
|
|
|
|
url: placeholderImage
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjU=",
|
|
|
|
isShippingRequired: true,
|
|
|
|
productName: "Lemon Juice",
|
|
|
|
quantity: 4,
|
|
|
|
quantityFulfilled: 0,
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MTgx",
|
|
|
|
name: "2.5l",
|
|
|
|
sku: "998323583",
|
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
__typename: "SelectedAttribute",
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
__typename: "AttributeValue",
|
|
|
|
id: "QXR0cmlidXRlVmFsdWU6NjE=",
|
|
|
|
name: "2.5l"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
stocks: [
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTI=",
|
|
|
|
warehouse: warehouseList[1],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 760,
|
|
|
|
quantityAllocated: 2
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTE=",
|
|
|
|
warehouse: warehouseList[2],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 760,
|
|
|
|
quantityAllocated: 33
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTM=",
|
|
|
|
warehouse: warehouseList[3],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 760,
|
|
|
|
quantityAllocated: 4
|
2020-04-20 09:37:32 +00:00
|
|
|
}
|
2020-05-08 13:38:44 +00:00
|
|
|
],
|
|
|
|
trackInventory: true
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image",
|
|
|
|
url: placeholderImage
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjY=",
|
|
|
|
isShippingRequired: true,
|
|
|
|
productName: "Orange Juice",
|
|
|
|
quantity: 3,
|
|
|
|
quantityFulfilled: 2,
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MTgy",
|
|
|
|
name: "5l",
|
|
|
|
sku: "998323584",
|
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
__typename: "SelectedAttribute",
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
__typename: "AttributeValue",
|
|
|
|
id: "QXR0cmlidXRlVmFsdWU6NjI=",
|
|
|
|
name: "5l"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
stocks: [
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTc=",
|
|
|
|
warehouse: warehouseList[0],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 587,
|
|
|
|
quantityAllocated: 0
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Stock",
|
|
|
|
id: "U3RvY2s6NTY=",
|
|
|
|
warehouse: warehouseList[2],
|
2020-04-21 11:13:39 +00:00
|
|
|
quantity: 587,
|
|
|
|
quantityAllocated: 1
|
2020-04-20 09:37:32 +00:00
|
|
|
}
|
2020-05-08 13:38:44 +00:00
|
|
|
],
|
|
|
|
trackInventory: true
|
2020-04-20 09:37:32 +00:00
|
|
|
},
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image",
|
|
|
|
url: placeholderImage
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
number: "9123"
|
|
|
|
};
|