2020-07-08 07:45:25 +00:00
|
|
|
import { InvoiceFragment } from "@saleor/fragments/types/InvoiceFragment";
|
2019-11-19 16:32:35 +00:00
|
|
|
import { SearchCustomers_search_edges_node } from "@saleor/searches/types/SearchCustomers";
|
2020-04-28 01:09:31 +00:00
|
|
|
import { warehouseList } from "@saleor/warehouses/fixtures";
|
2020-05-14 09:30:32 +00:00
|
|
|
import { MessageDescriptor } from "react-intl";
|
|
|
|
|
2019-06-19 14:40:52 +00:00
|
|
|
import { transformOrderStatus, transformPaymentStatus } from "../misc";
|
|
|
|
import {
|
|
|
|
FulfillmentStatus,
|
2020-06-23 13:52:43 +00:00
|
|
|
JobStatusEnum,
|
2019-06-19 14:40:52 +00:00
|
|
|
OrderAction,
|
2020-08-26 10:33:03 +00:00
|
|
|
OrderEventsEmailsEnum,
|
2019-06-19 14:40:52 +00:00
|
|
|
OrderEventsEnum,
|
|
|
|
OrderStatus,
|
2020-07-02 11:19:53 +00:00
|
|
|
PaymentChargeStatusEnum
|
2019-06-19 14:40:52 +00:00
|
|
|
} from "../types/globalTypes";
|
|
|
|
import { OrderDetails_order } from "./types/OrderDetails";
|
|
|
|
import { OrderList_orders_edges_node } from "./types/OrderList";
|
2020-01-09 11:13:24 +00:00
|
|
|
import { SearchOrderVariant_search_edges_node } from "./types/SearchOrderVariant";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-10-15 12:17:35 +00:00
|
|
|
export const clients: SearchCustomers_search_edges_node[] = [
|
2019-06-19 14:40:52 +00:00
|
|
|
{
|
|
|
|
__typename: "User" as "User",
|
|
|
|
email: "test.client1@example.com",
|
2019-11-25 11:29:07 +00:00
|
|
|
firstName: "John",
|
|
|
|
id: "c1",
|
2020-07-02 11:19:53 +00:00
|
|
|
lastName: "Doe"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "User" as "User",
|
|
|
|
email: "test.client2@example.com",
|
2019-11-25 11:29:07 +00:00
|
|
|
firstName: "Dough",
|
|
|
|
id: "c2",
|
2020-07-02 11:19:53 +00:00
|
|
|
lastName: "Jones"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "User" as "User",
|
|
|
|
email: "test.client3@example.com",
|
2019-11-25 11:29:07 +00:00
|
|
|
firstName: "Jonas",
|
|
|
|
id: "c3",
|
2020-07-02 11:19:53 +00:00
|
|
|
lastName: "Dough"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "User" as "User",
|
|
|
|
email: "test.client4@example.com",
|
2019-11-25 11:29:07 +00:00
|
|
|
firstName: "Bill",
|
|
|
|
id: "c4",
|
2020-07-02 11:19:53 +00:00
|
|
|
lastName: "Jonas"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
];
|
|
|
|
export const orders: OrderList_orders_edges_node[] = [
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "East Aaronville",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "BE",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Belgia"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Laura",
|
|
|
|
id: "QWRkcmVzczo5",
|
|
|
|
lastName: "Stone 1 2",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "88741",
|
|
|
|
streetAddress1: "3678 John Course",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:30.376876+00:00",
|
|
|
|
id: "T3JkZXI6MjA=",
|
|
|
|
number: "20",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 305.17,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "laura.stone@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Port Danielshire",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "SE",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Szwecja"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Elizabeth",
|
|
|
|
id: "QWRkcmVzczoy",
|
|
|
|
lastName: "Vaughn",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "52203",
|
|
|
|
streetAddress1: "419 Ruiz Orchard Apt. 199",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:30.124154+00:00",
|
|
|
|
id: "T3JkZXI6MTk=",
|
|
|
|
number: "19",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1215.89,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "elizabeth.vaughn@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: null,
|
|
|
|
created: "2018-09-11T09:37:30.019749+00:00",
|
|
|
|
id: "T3JkZXI6MTg=",
|
|
|
|
number: "18",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.DRAFT,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 321.71,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "david.lawson@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "South Rodneymouth",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "GR",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Grecja"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Aaron",
|
|
|
|
id: "QWRkcmVzczoyOA==",
|
|
|
|
lastName: "Randall",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "30356",
|
|
|
|
streetAddress1: "326 Palmer Rapids Apt. 717",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:29.864391+00:00",
|
|
|
|
id: "T3JkZXI6MTc=",
|
|
|
|
number: "17",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 271.95,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "aaron.randall@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Jorgeview",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "UG",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Uganda"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Laura",
|
|
|
|
id: "QWRkcmVzczoxNA==",
|
|
|
|
lastName: "Jensen",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "77693",
|
|
|
|
streetAddress1: "01504 Olson Springs Suite 920",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:29.610339+00:00",
|
|
|
|
id: "T3JkZXI6MTY=",
|
|
|
|
number: "16",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 335.84,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "laura.jensen@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "East Lauriestad",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "PW",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Palau"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Jenna",
|
|
|
|
id: "QWRkcmVzczoyNw==",
|
|
|
|
lastName: "Villa",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "65613",
|
|
|
|
streetAddress1: "2031 Mcdonald Mill",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:29.336209+00:00",
|
|
|
|
id: "T3JkZXI6MTU=",
|
|
|
|
number: "15",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1042.15,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "jenna.villa@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Kaneton",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "VA",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Watykan"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Wesley",
|
|
|
|
id: "QWRkcmVzczo4",
|
|
|
|
lastName: "Davis",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "66203",
|
|
|
|
streetAddress1: "667 Joseph Lights",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:29.103651+00:00",
|
|
|
|
id: "T3JkZXI6MTQ=",
|
|
|
|
number: "14",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 213.69,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "wesley.davis@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "New Morganshire",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "NL",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Holandia"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Anthony",
|
|
|
|
id: "QWRkcmVzczo3",
|
|
|
|
lastName: "Gonzalez",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "78701",
|
|
|
|
streetAddress1: "402 Mason Viaduct Suite 592",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:28.921956+00:00",
|
|
|
|
id: "T3JkZXI6MTM=",
|
|
|
|
number: "13",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 367.03,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "anthony.gonzalez@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Adamsport",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "TN",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Tunezja"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Denise",
|
|
|
|
id: "QWRkcmVzczoyNg==",
|
|
|
|
lastName: "Freeman",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "27744",
|
|
|
|
streetAddress1: "8376 Linda Valley Apt. 934",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:28.750718+00:00",
|
|
|
|
id: "T3JkZXI6MTI=",
|
|
|
|
number: "12",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 298.76,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "denise.freeman@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Thomasburgh",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "DJ",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Dżibuti"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "James",
|
|
|
|
id: "QWRkcmVzczo2",
|
|
|
|
lastName: "Ball",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "70958",
|
|
|
|
streetAddress1: "60049 Fisher Grove",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:28.598246+00:00",
|
|
|
|
id: "T3JkZXI6MTE=",
|
|
|
|
number: "11",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
|
|
|
|
status: OrderStatus.UNFULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 663.69,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "james.ball@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Lake Walter",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "MK",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Macedonia"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Michael",
|
|
|
|
id: "QWRkcmVzczoz",
|
|
|
|
lastName: "Martinez",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "11343",
|
|
|
|
streetAddress1: "843 Allen Ramp Suite 194",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:28.409836+00:00",
|
|
|
|
id: "T3JkZXI6MTA=",
|
|
|
|
number: "10",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.CANCELED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 280.41,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "michael.martinez@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "West Patriciastad",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "SB",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Wyspy Salomona"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Melissa",
|
|
|
|
id: "QWRkcmVzczoyNQ==",
|
|
|
|
lastName: "Simon",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "66272",
|
|
|
|
streetAddress1: "487 Roberto Shores",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:28.185874+00:00",
|
|
|
|
id: "T3JkZXI6OQ==",
|
|
|
|
number: "9",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 234.93,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "melissa.simon@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Lake Kevinchester",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "CL",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Chile"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Justin",
|
|
|
|
id: "QWRkcmVzczoyNA==",
|
|
|
|
lastName: "Mccoy",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "03826",
|
|
|
|
streetAddress1: "74416 Jensen Gateway Suite 140",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:27.953588+00:00",
|
|
|
|
id: "T3JkZXI6OA==",
|
|
|
|
number: "8",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 485.19,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "justin.mccoy@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "New Morganshire",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "NL",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Holandia"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Anthony",
|
|
|
|
id: "QWRkcmVzczo3",
|
|
|
|
lastName: "Gonzalez",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "78701",
|
|
|
|
streetAddress1: "402 Mason Viaduct Suite 592",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:27.828033+00:00",
|
|
|
|
id: "T3JkZXI6Nw==",
|
|
|
|
number: "7",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 223.54,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "anthony.gonzalez@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Gabrielchester",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "SN",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Senegal"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Bradley",
|
|
|
|
id: "QWRkcmVzczoyMw==",
|
|
|
|
lastName: "Ford",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "88661",
|
|
|
|
streetAddress1: "56414 Ashley Gardens",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:27.636741+00:00",
|
|
|
|
id: "T3JkZXI6Ng==",
|
|
|
|
number: "6",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 237.55,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "bradley.ford@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "East Steven",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "CG",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Kongo"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "David",
|
|
|
|
id: "QWRkcmVzczoxNg==",
|
|
|
|
lastName: "Lawson",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "87510",
|
|
|
|
streetAddress1: "151 Huang Pines",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:27.420590+00:00",
|
|
|
|
id: "T3JkZXI6NQ==",
|
|
|
|
number: "5",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 453.55,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "david.lawson@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "East Daniel",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "NA",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Namibia"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Lauren",
|
|
|
|
id: "QWRkcmVzczoyMg==",
|
|
|
|
lastName: "Watson",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "22102",
|
|
|
|
streetAddress1: "340 Amanda Tunnel Suite 869",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:27.230990+00:00",
|
|
|
|
id: "T3JkZXI6NA==",
|
|
|
|
number: "4",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 812.67,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "lauren.watson@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Lake Margaret",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "CO",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Kolumbia"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Mark",
|
|
|
|
id: "QWRkcmVzczoxNQ==",
|
|
|
|
lastName: "Lee",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "18829",
|
|
|
|
streetAddress1: "34480 Daniel Centers Apt. 642",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:26.972507+00:00",
|
|
|
|
id: "T3JkZXI6Mw==",
|
|
|
|
number: "3",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 481.41,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "mark.lee@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Dorothyberg",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "BJ",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Benin"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Kara",
|
|
|
|
id: "QWRkcmVzczoyMQ==",
|
|
|
|
lastName: "Murphy",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "88138",
|
|
|
|
streetAddress1: "0674 Kent Station Suite 395",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:26.751359+00:00",
|
|
|
|
id: "T3JkZXI6Mg==",
|
|
|
|
number: "2",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 569.19,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "kara.murphy@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Order",
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "Gregorymouth",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "CV",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Republika Zielonego Przylądka"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Curtis",
|
|
|
|
id: "QWRkcmVzczox",
|
|
|
|
lastName: "Bailey",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "84525",
|
|
|
|
streetAddress1: "839 Scott Lake",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
created: "2018-09-11T09:37:26.314968+00:00",
|
|
|
|
id: "T3JkZXI6MQ==",
|
|
|
|
number: "1",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 557,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "curtis.bailey@example.com"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
];
|
|
|
|
export const order = (placeholder: string): OrderDetails_order => ({
|
|
|
|
__typename: "Order",
|
|
|
|
actions: [
|
|
|
|
OrderAction.CAPTURE,
|
|
|
|
OrderAction.MARK_AS_PAID,
|
|
|
|
OrderAction.REFUND,
|
2020-07-02 11:19:53 +00:00
|
|
|
OrderAction.VOID
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
|
|
|
availableShippingMethods: [
|
|
|
|
{
|
|
|
|
__typename: "ShippingMethod",
|
|
|
|
id: "U2hpcHBpbmdNZXRob2Q6NQ==",
|
|
|
|
name: "FBA",
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 12.41,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ShippingMethod",
|
|
|
|
id: "U2hpcHBpbmdNZXRob2Q6Nw==",
|
|
|
|
name: "Oceania Air Mail",
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 9.12,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ShippingMethod",
|
|
|
|
id: "U2hpcHBpbmdNZXRob2Q6Ng==",
|
|
|
|
name: "FedEx Express",
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 7.6,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
|
|
|
billingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "West Patriciastad",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "SB",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Wyspy Salomona"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Melissa",
|
|
|
|
id: "QWRkcmVzczoyNQ==",
|
|
|
|
lastName: "Simon",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "66272",
|
|
|
|
streetAddress1: "487 Roberto Shores",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
canFinalize: true,
|
|
|
|
created: "2018-09-11T09:37:28.185874+00:00",
|
|
|
|
customerNote: "Lorem ipsum dolor sit amet",
|
2020-05-15 16:09:14 +00:00
|
|
|
discount: null,
|
2019-06-19 14:40:52 +00:00
|
|
|
events: [
|
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2018-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDoyMQ==",
|
2020-08-26 10:33:03 +00:00
|
|
|
invoiceNumber: null,
|
2019-06-19 14:40:52 +00:00
|
|
|
message: null,
|
|
|
|
quantity: 1,
|
|
|
|
type: OrderEventsEnum.FULFILLMENT_FULFILLED_ITEMS,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
2020-07-02 11:19:53 +00:00
|
|
|
id: "QWRkcmVzczoxNQ=="
|
|
|
|
}
|
2020-07-13 16:51:05 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2019-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo0",
|
2020-08-26 10:33:03 +00:00
|
|
|
invoiceNumber: null,
|
2020-07-13 16:51:05 +00:00
|
|
|
message: "This is note",
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.NOTE_ADDED,
|
|
|
|
user: null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2019-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo1",
|
2020-08-26 10:33:03 +00:00
|
|
|
invoiceNumber: null,
|
2020-07-13 16:51:05 +00:00
|
|
|
message: "This is note",
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.NOTE_ADDED,
|
|
|
|
user: null
|
2020-08-26 10:33:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2019-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo2",
|
|
|
|
invoiceNumber: null,
|
|
|
|
message: "Note from external service",
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.EXTERNAL_SERVICE_NOTIFICATION,
|
|
|
|
user: null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2019-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: OrderEventsEmailsEnum.ORDER_CANCEL,
|
|
|
|
id: "T3JkZXJFdmVudDo3",
|
|
|
|
invoiceNumber: null,
|
|
|
|
message: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.EMAIL_SENT,
|
|
|
|
user: null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2019-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: OrderEventsEmailsEnum.ORDER_REFUND,
|
|
|
|
id: "T3JkZXJFdmVudDo4",
|
|
|
|
invoiceNumber: null,
|
|
|
|
message: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.EMAIL_SENT,
|
|
|
|
user: null
|
2020-09-02 09:57:48 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2019-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "T3JkZXJFdmVudDo5",
|
|
|
|
invoiceNumber: null,
|
|
|
|
message: null,
|
|
|
|
quantity: null,
|
|
|
|
type: OrderEventsEnum.PAYMENT_AUTHORIZED,
|
|
|
|
user: null
|
2020-07-02 11:19:53 +00:00
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
|
|
|
fulfillments: [
|
|
|
|
{
|
|
|
|
__typename: "Fulfillment",
|
|
|
|
fulfillmentOrder: 2,
|
|
|
|
id: "RnVsZmlsbG1lbnQ6MjQ=",
|
|
|
|
lines: [
|
|
|
|
{
|
|
|
|
__typename: "FulfillmentLine",
|
|
|
|
id: "RnVsZmlsbG1lbnRMaW5lOjM5",
|
|
|
|
orderLine: {
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjIz",
|
|
|
|
isShippingRequired: false,
|
|
|
|
productName: "Williams, Garcia and Walker (XS)",
|
|
|
|
productSku: "5-1337",
|
|
|
|
quantity: 2,
|
|
|
|
quantityFulfilled: 2,
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholder
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
unitPrice: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 79.71,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
net: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 79.71,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2020-09-03 10:25:16 +00:00
|
|
|
},
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
isAvailableForPurchase: true,
|
|
|
|
isPublished: true
|
|
|
|
},
|
|
|
|
quantityAvailable: 10
|
2020-07-02 11:19:53 +00:00
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
quantity: 1
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
|
|
|
status: FulfillmentStatus.FULFILLED,
|
2020-04-28 01:09:31 +00:00
|
|
|
trackingNumber: "",
|
2020-07-02 11:19:53 +00:00
|
|
|
warehouse: warehouseList[1]
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Fulfillment",
|
|
|
|
fulfillmentOrder: 1,
|
|
|
|
id: "RnVsZmlsbG1lbnQ6OQ==",
|
|
|
|
lines: [
|
|
|
|
{
|
|
|
|
__typename: "FulfillmentLine",
|
|
|
|
id: "RnVsZmlsbG1lbnRMaW5lOjE1",
|
|
|
|
orderLine: {
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjIz",
|
|
|
|
isShippingRequired: false,
|
|
|
|
productName: "Williams, Garcia and Walker (XS)",
|
|
|
|
productSku: "5-1337",
|
|
|
|
quantity: 2,
|
|
|
|
quantityFulfilled: 2,
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholder
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
unitPrice: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 79.71,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
net: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 79.71,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2020-09-03 10:25:16 +00:00
|
|
|
},
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
isAvailableForPurchase: true,
|
|
|
|
isPublished: true
|
|
|
|
},
|
|
|
|
quantityAvailable: 10
|
2020-07-02 11:19:53 +00:00
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
quantity: 1
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
|
|
|
status: FulfillmentStatus.FULFILLED,
|
2020-04-28 01:09:31 +00:00
|
|
|
trackingNumber: "01nn12399su12nndfsy",
|
2020-07-02 11:19:53 +00:00
|
|
|
warehouse: warehouseList[0]
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
|
|
|
id: "T3JkZXI6OQ==",
|
2020-06-22 16:34:59 +00:00
|
|
|
invoices: [
|
|
|
|
{
|
|
|
|
__typename: "Invoice",
|
|
|
|
createdAt: "2020-06-22T13:52:05.094636+00:00",
|
|
|
|
id: "SW52b2ljZTox",
|
|
|
|
number: "1",
|
2020-06-23 13:52:43 +00:00
|
|
|
status: JobStatusEnum.SUCCESS,
|
2020-07-02 11:19:53 +00:00
|
|
|
url: "invoice1"
|
|
|
|
}
|
2020-06-22 16:34:59 +00:00
|
|
|
],
|
2019-06-19 14:40:52 +00:00
|
|
|
lines: [
|
|
|
|
{
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjIy",
|
|
|
|
isShippingRequired: true,
|
|
|
|
productName: "Watkins-Gonzalez (Soft)",
|
|
|
|
productSku: "59-1337",
|
|
|
|
quantity: 3,
|
|
|
|
quantityFulfilled: 0,
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholder
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
unitPrice: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 18.51,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
net: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 18.51,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2020-09-03 10:25:16 +00:00
|
|
|
},
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
isAvailableForPurchase: true,
|
|
|
|
isPublished: true
|
|
|
|
},
|
|
|
|
quantityAvailable: 10
|
2020-07-02 11:19:53 +00:00
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjIz",
|
|
|
|
isShippingRequired: true,
|
|
|
|
productName: "Williams, Garcia and Walker (XS)",
|
|
|
|
productSku: "5-1337",
|
|
|
|
quantity: 2,
|
|
|
|
quantityFulfilled: 2,
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholder
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
unitPrice: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 79.71,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
net: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 79.71,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2020-09-03 10:25:16 +00:00
|
|
|
},
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
isAvailableForPurchase: true,
|
|
|
|
isPublished: true
|
|
|
|
},
|
|
|
|
quantityAvailable: 10
|
2020-07-02 11:19:53 +00:00
|
|
|
}
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
2020-09-01 16:29:36 +00:00
|
|
|
metadata: [
|
|
|
|
{
|
|
|
|
__typename: "MetadataItem",
|
|
|
|
key: "integration.key",
|
|
|
|
value: "some-value"
|
|
|
|
}
|
|
|
|
],
|
2019-06-19 14:40:52 +00:00
|
|
|
number: "9",
|
|
|
|
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
|
2020-09-01 16:29:36 +00:00
|
|
|
privateMetadata: [],
|
2019-06-19 14:40:52 +00:00
|
|
|
shippingAddress: {
|
|
|
|
__typename: "Address",
|
|
|
|
city: "West Patriciastad",
|
|
|
|
cityArea: "",
|
|
|
|
companyName: "",
|
|
|
|
country: {
|
|
|
|
__typename: "CountryDisplay",
|
|
|
|
code: "SB",
|
2020-07-02 11:19:53 +00:00
|
|
|
country: "Wyspy Salomona"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
countryArea: "",
|
|
|
|
firstName: "Melissa",
|
|
|
|
id: "QWRkcmVzczoyNQ==",
|
|
|
|
lastName: "Simon",
|
|
|
|
phone: "",
|
|
|
|
postalCode: "66272",
|
|
|
|
streetAddress1: "487 Roberto Shores",
|
2020-07-02 11:19:53 +00:00
|
|
|
streetAddress2: ""
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
shippingMethod: null,
|
|
|
|
shippingMethodName: "Registred priority",
|
|
|
|
shippingPrice: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 19.98,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
status: OrderStatus.PARTIALLY_FULFILLED,
|
|
|
|
subtotal: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 214.95,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 234.93,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
tax: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
totalAuthorized: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 234.93,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
totalCaptured: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
user: null,
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: "melissa.simon@example.com"
|
2019-06-19 14:40:52 +00:00
|
|
|
});
|
|
|
|
export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
|
|
|
__typename: "Order" as "Order",
|
|
|
|
actions: [OrderAction.CAPTURE],
|
|
|
|
availableShippingMethods: null,
|
|
|
|
billingAddress: null,
|
|
|
|
canFinalize: true,
|
|
|
|
created: "2018-09-20T23:23:39.811428+00:00",
|
|
|
|
customerNote: "Lorem ipsum dolor sit",
|
2020-05-19 09:34:01 +00:00
|
|
|
discount: null,
|
2019-06-19 14:40:52 +00:00
|
|
|
events: [],
|
|
|
|
fulfillments: [],
|
|
|
|
id: "T3JkZXI6MjQ=",
|
2020-06-22 16:34:59 +00:00
|
|
|
invoices: [
|
|
|
|
{
|
|
|
|
__typename: "Invoice",
|
|
|
|
createdAt: "2020-06-22T13:52:05.094636+00:00",
|
|
|
|
id: "SW52b2ljZTox",
|
|
|
|
number: "1",
|
2020-06-23 13:52:43 +00:00
|
|
|
status: JobStatusEnum.SUCCESS,
|
2020-07-02 11:19:53 +00:00
|
|
|
url: "invoice1"
|
|
|
|
}
|
2020-06-22 16:34:59 +00:00
|
|
|
],
|
2019-06-19 14:40:52 +00:00
|
|
|
lines: [
|
|
|
|
{
|
|
|
|
__typename: "OrderLine" as "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjQ1",
|
|
|
|
isShippingRequired: false,
|
|
|
|
productName: "Davis Group (Hard)",
|
|
|
|
productSku: "58-1338",
|
|
|
|
quantity: 2,
|
|
|
|
quantityFulfilled: 0,
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholder
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
unitPrice: {
|
|
|
|
__typename: "TaxedMoney" as "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 65.95,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 65.95,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2020-09-03 10:25:16 +00:00
|
|
|
},
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
isAvailableForPurchase: true,
|
|
|
|
isPublished: true
|
|
|
|
},
|
|
|
|
quantityAvailable: 10
|
2020-07-02 11:19:53 +00:00
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderLine" as "OrderLine",
|
|
|
|
id: "T3JkZXJMaW5lOjQ2",
|
|
|
|
isShippingRequired: false,
|
|
|
|
productName: "Anderson PLC (15-1337)",
|
|
|
|
productSku: "15-1337",
|
|
|
|
quantity: 2,
|
|
|
|
quantityFulfilled: 0,
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholder
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
unitPrice: {
|
|
|
|
__typename: "TaxedMoney" as "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 68.2,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 68.2,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2020-09-03 10:25:16 +00:00
|
|
|
},
|
|
|
|
variant: {
|
|
|
|
__typename: "ProductVariant",
|
|
|
|
product: {
|
|
|
|
__typename: "Product",
|
|
|
|
isAvailableForPurchase: true,
|
|
|
|
isPublished: true
|
|
|
|
},
|
|
|
|
quantityAvailable: 10
|
2020-07-02 11:19:53 +00:00
|
|
|
}
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
],
|
2020-09-03 11:56:31 +00:00
|
|
|
metadata: [],
|
2019-06-19 14:40:52 +00:00
|
|
|
number: "24",
|
|
|
|
paymentStatus: null,
|
2020-09-03 11:56:31 +00:00
|
|
|
privateMetadata: [],
|
2019-06-19 14:40:52 +00:00
|
|
|
shippingAddress: null,
|
|
|
|
shippingMethod: null,
|
|
|
|
shippingMethodName: null,
|
|
|
|
shippingPrice: {
|
|
|
|
__typename: "TaxedMoney" as "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
status: "DRAFT" as OrderStatus.DRAFT,
|
|
|
|
subtotal: {
|
|
|
|
__typename: "TaxedMoney" as "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 168.3,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
total: {
|
|
|
|
__typename: "TaxedMoney" as "TaxedMoney",
|
|
|
|
gross: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 168.3,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
tax: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 68.3,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
totalAuthorized: null,
|
|
|
|
totalCaptured: null,
|
|
|
|
user: null,
|
2020-07-02 11:19:53 +00:00
|
|
|
userEmail: null
|
2019-06-19 14:40:52 +00:00
|
|
|
});
|
2020-07-02 11:19:53 +00:00
|
|
|
export const flatOrders = orders.map(order => ({
|
2019-06-19 14:40:52 +00:00
|
|
|
...order,
|
2019-08-29 10:55:56 +00:00
|
|
|
orderStatus: transformOrderStatus(order.status, {
|
2020-07-02 11:19:53 +00:00
|
|
|
formatMessage: (message: MessageDescriptor) => message.defaultMessage
|
2019-08-29 10:55:56 +00:00
|
|
|
} as any),
|
|
|
|
paymentStatus: transformPaymentStatus(order.paymentStatus, {
|
2020-07-02 11:19:53 +00:00
|
|
|
formatMessage: (message: MessageDescriptor) => message.defaultMessage
|
|
|
|
} as any)
|
2019-06-19 14:40:52 +00:00
|
|
|
}));
|
|
|
|
export const variants = [
|
|
|
|
{ id: "p1", name: "Product 1: variant 1", sku: "12345", stockQuantity: 3 },
|
|
|
|
{ id: "p2", name: "Product 1: variant 2", sku: "12346", stockQuantity: 1 },
|
|
|
|
{ id: "p3", name: "Product 2: variant 1", sku: "12355", stockQuantity: 10 },
|
|
|
|
{ id: "p4", name: "Product 3: variant 1", sku: "12445", stockQuantity: 12 },
|
|
|
|
{ id: "p5", name: "Product 3: variant 2", sku: "12545", stockQuantity: 7 },
|
|
|
|
{ id: "p6", name: "Product 5: variant 1", sku: "13345", stockQuantity: 3 },
|
2020-07-02 11:19:53 +00:00
|
|
|
{ id: "p7", name: "Product 5: variant 2", sku: "14345", stockQuantity: 11 }
|
2019-06-19 14:40:52 +00:00
|
|
|
];
|
|
|
|
export const prefixes = ["01", "02", "41", "49"];
|
|
|
|
export const countries = [
|
|
|
|
{ code: "AF", label: "Afghanistan" },
|
|
|
|
{ code: "AX", label: "Åland Islands" },
|
|
|
|
{ code: "AL", label: "Albania" },
|
|
|
|
{ code: "DZ", label: "Algeria" },
|
2020-07-02 11:19:53 +00:00
|
|
|
{ code: "AS", label: "American Samoa" }
|
2019-06-19 14:40:52 +00:00
|
|
|
];
|
|
|
|
export const shippingMethods = [
|
2019-12-02 10:49:14 +00:00
|
|
|
{ country: "whole world", id: "s1", name: "DHL", price: {} },
|
2020-07-02 11:19:53 +00:00
|
|
|
{ country: "Afghanistan", id: "s2", name: "UPS" }
|
2019-06-19 14:40:52 +00:00
|
|
|
];
|
2020-01-09 11:13:24 +00:00
|
|
|
export const orderLineSearch = (
|
|
|
|
placeholderImage: string
|
|
|
|
): SearchOrderVariant_search_edges_node[] => [
|
2019-06-19 14:40:52 +00:00
|
|
|
{
|
|
|
|
__typename: "Product" as "Product",
|
|
|
|
id: "UHJvZHVjdDo3Mg==",
|
|
|
|
name: "Apple Juice",
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholderImage
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
variants: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjAy",
|
|
|
|
name: "500ml",
|
2020-01-09 11:13:24 +00:00
|
|
|
pricing: {
|
|
|
|
__typename: "VariantPricingInfo",
|
|
|
|
priceUndiscounted: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 3.0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
2020-01-09 11:13:24 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "93855755"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjAz",
|
|
|
|
name: "1l",
|
2020-01-09 11:13:24 +00:00
|
|
|
pricing: {
|
|
|
|
__typename: "VariantPricingInfo",
|
|
|
|
priceUndiscounted: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 5.0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
2020-01-09 11:13:24 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "43226647"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjA0",
|
|
|
|
name: "2l",
|
2020-01-09 11:13:24 +00:00
|
|
|
pricing: {
|
|
|
|
__typename: "VariantPricingInfo",
|
|
|
|
priceUndiscounted: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 7.0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
2020-01-09 11:13:24 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "80884671"
|
|
|
|
}
|
|
|
|
]
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Product" as "Product",
|
|
|
|
id: "UHJvZHVjdDo3NQ==",
|
|
|
|
name: "Pineapple Juice",
|
|
|
|
thumbnail: {
|
|
|
|
__typename: "Image" as "Image",
|
2020-07-02 11:19:53 +00:00
|
|
|
url: placeholderImage
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
variants: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEx",
|
|
|
|
name: "500ml",
|
2020-01-09 11:13:24 +00:00
|
|
|
pricing: {
|
|
|
|
__typename: "VariantPricingInfo",
|
|
|
|
priceUndiscounted: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 3.0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
2020-01-09 11:13:24 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "43200242"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEy",
|
|
|
|
name: "1l",
|
2020-01-09 11:13:24 +00:00
|
|
|
pricing: {
|
|
|
|
__typename: "VariantPricingInfo",
|
|
|
|
priceUndiscounted: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 5.0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
2020-01-09 11:13:24 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "79129513"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEz",
|
|
|
|
name: "2l",
|
2020-01-09 11:13:24 +00:00
|
|
|
pricing: {
|
|
|
|
__typename: "VariantPricingInfo",
|
|
|
|
priceUndiscounted: {
|
|
|
|
__typename: "TaxedMoney",
|
|
|
|
net: {
|
|
|
|
__typename: "Money" as "Money",
|
|
|
|
amount: 7.0,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
2020-01-09 11:13:24 +00:00
|
|
|
},
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "75799450"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
];
|
2020-07-02 14:32:38 +00:00
|
|
|
|
|
|
|
export const invoices: InvoiceFragment[] = [
|
|
|
|
{
|
|
|
|
__typename: "Invoice",
|
|
|
|
createdAt: "2020-07-02T12:13:56.901097+00:00",
|
|
|
|
id: "SW52b2ljZTo0",
|
|
|
|
number: "1/07/2020",
|
|
|
|
status: JobStatusEnum.PENDING,
|
|
|
|
url:
|
|
|
|
"http://localhost:8000/media/invoices/invoice-1/07/2020-order-20-1fef611b-7514-4dc6-aee3-09a8232b1d6a.pdf"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Invoice",
|
|
|
|
createdAt: "2020-07-02T09:06:17.059412+00:00",
|
|
|
|
id: "SW52b2ljZToz",
|
|
|
|
number: "1/07/2020",
|
|
|
|
status: JobStatusEnum.SUCCESS,
|
|
|
|
url:
|
|
|
|
"http://localhost:8000/media/invoices/invoice-1/07/2020-order-20-8df26967-ad21-4075-a446-cef44ae05197.pdf"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Invoice",
|
|
|
|
createdAt: "2020-07-02T09:05:58.300952+00:00",
|
|
|
|
id: "SW52b2ljZToy",
|
|
|
|
number: "1/07/2020",
|
|
|
|
status: JobStatusEnum.SUCCESS,
|
|
|
|
url:
|
|
|
|
"http://localhost:8000/media/invoices/invoice-1/07/2020-order-20-5ebc85e0-e587-4386-8292-9b85839281e6.pdf"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Invoice",
|
|
|
|
createdAt: "2020-07-02T09:04:27.257562+00:00",
|
|
|
|
id: "SW52b2ljZTox",
|
|
|
|
number: "1/07/2020",
|
|
|
|
status: JobStatusEnum.SUCCESS,
|
|
|
|
url:
|
|
|
|
"http://localhost:8000/media/invoices/invoice-1/07/2020-order-20-0e449e10-ef4b-4066-bebe-361f670b6820.pdf"
|
|
|
|
}
|
|
|
|
];
|