2020-07-08 07:45:25 +00:00
|
|
|
import { InvoiceFragment } from "@saleor/fragments/types/InvoiceFragment";
|
2020-11-30 13:19:57 +00:00
|
|
|
import { OrderSettingsFragment } from "@saleor/fragments/types/OrderSettingsFragment";
|
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,
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123454",
|
|
|
|
isActive: true,
|
|
|
|
name: "Default Channel"
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
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,
|
2020-12-01 13:13:05 +00:00
|
|
|
lines: [],
|
2019-06-19 14:40:52 +00:00
|
|
|
message: null,
|
|
|
|
quantity: 1,
|
2020-12-01 13:13:05 +00:00
|
|
|
shippingCostsIncluded: false,
|
2020-11-24 16:02:50 +00:00
|
|
|
transactionReference: "123",
|
2019-06-19 14:40:52 +00:00
|
|
|
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
|
|
|
},
|
2020-12-01 13:13:05 +00:00
|
|
|
{
|
|
|
|
__typename: "OrderEvent",
|
|
|
|
amount: null,
|
|
|
|
date: "2018-09-17T13:22:24.376193+00:00",
|
|
|
|
email: null,
|
|
|
|
emailType: null,
|
|
|
|
id: "UYgDNUnnfyiuyimuhd==",
|
|
|
|
invoiceNumber: null,
|
|
|
|
lines: [
|
|
|
|
{
|
|
|
|
__typename: "OrderEventOrderLineObject",
|
|
|
|
orderLine: {
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "h47gfncfgwegfehfhj",
|
|
|
|
productName: "Milk",
|
|
|
|
variantName: "Cow's milk"
|
|
|
|
},
|
|
|
|
quantity: 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "OrderEventOrderLineObject",
|
|
|
|
orderLine: {
|
|
|
|
__typename: "OrderLine",
|
|
|
|
id: "7846f857t4t84y8fgh",
|
|
|
|
productName: "Milk",
|
|
|
|
variantName: "Goat's milk"
|
|
|
|
},
|
|
|
|
quantity: 4
|
|
|
|
}
|
|
|
|
],
|
|
|
|
message: null,
|
|
|
|
quantity: 1,
|
|
|
|
shippingCostsIncluded: true,
|
|
|
|
transactionReference: "123",
|
|
|
|
type: OrderEventsEnum.FULFILLMENT_REFUNDED,
|
|
|
|
user: {
|
|
|
|
__typename: "User",
|
|
|
|
email: "admin@example.com",
|
|
|
|
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-12-01 13:13:05 +00:00
|
|
|
lines: [],
|
2020-07-13 16:51:05 +00:00
|
|
|
message: "This is note",
|
|
|
|
quantity: null,
|
2020-12-01 13:13:05 +00:00
|
|
|
shippingCostsIncluded: false,
|
2020-11-24 16:02:50 +00:00
|
|
|
transactionReference: "124",
|
2020-07-13 16:51:05 +00:00
|
|
|
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-12-01 13:13:05 +00:00
|
|
|
lines: [],
|
2020-07-13 16:51:05 +00:00
|
|
|
message: "This is note",
|
|
|
|
quantity: null,
|
2020-12-01 13:13:05 +00:00
|
|
|
shippingCostsIncluded: false,
|
2020-11-24 16:02:50 +00:00
|
|
|
transactionReference: "125",
|
2020-07-13 16:51:05 +00:00
|
|
|
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,
|
2020-12-01 13:13:05 +00:00
|
|
|
lines: [],
|
2020-08-26 10:33:03 +00:00
|
|
|
message: "Note from external service",
|
|
|
|
quantity: null,
|
2020-12-01 13:13:05 +00:00
|
|
|
shippingCostsIncluded: false,
|
2020-11-24 16:02:50 +00:00
|
|
|
transactionReference: "126",
|
2020-08-26 10:33:03 +00:00
|
|
|
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,
|
2020-12-01 13:13:05 +00:00
|
|
|
lines: [],
|
2020-08-26 10:33:03 +00:00
|
|
|
message: null,
|
|
|
|
quantity: null,
|
2020-12-01 13:13:05 +00:00
|
|
|
shippingCostsIncluded: false,
|
2020-11-24 16:02:50 +00:00
|
|
|
transactionReference: "127",
|
2020-08-26 10:33:03 +00:00
|
|
|
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,
|
2020-12-01 13:13:05 +00:00
|
|
|
lines: [],
|
2020-08-26 10:33:03 +00:00
|
|
|
message: null,
|
|
|
|
quantity: null,
|
2020-12-01 13:13:05 +00:00
|
|
|
shippingCostsIncluded: false,
|
2020-11-24 16:02:50 +00:00
|
|
|
transactionReference: "128",
|
2020-08-26 10:33:03 +00:00
|
|
|
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,
|
2020-12-01 13:13:05 +00:00
|
|
|
lines: [],
|
2020-09-02 09:57:48 +00:00
|
|
|
message: null,
|
|
|
|
quantity: null,
|
2020-12-01 13:13:05 +00:00
|
|
|
shippingCostsIncluded: false,
|
2020-11-24 16:02:50 +00:00
|
|
|
transactionReference: "129",
|
2020-09-02 09:57:48 +00:00
|
|
|
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",
|
2020-10-06 09:41:31 +00:00
|
|
|
id: "dsfsfuhb",
|
2020-09-03 10:25:16 +00:00
|
|
|
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",
|
2020-10-06 09:41:31 +00:00
|
|
|
id: "dsfsfuhb",
|
2020-09-03 10:25:16 +00:00
|
|
|
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
|
|
|
],
|
2020-11-24 16:02:50 +00:00
|
|
|
isPaid: true,
|
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",
|
2020-10-06 09:41:31 +00:00
|
|
|
id: "dsfsfuhb",
|
2020-09-03 10:25:16 +00:00
|
|
|
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",
|
2020-10-06 09:41:31 +00:00
|
|
|
id: "dsfsfuhb",
|
2020-09-03 10:25:16 +00:00
|
|
|
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,
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123454",
|
|
|
|
isActive: true,
|
|
|
|
name: "Default Channel"
|
|
|
|
},
|
2019-06-19 14:40:52 +00:00
|
|
|
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
|
|
|
],
|
2020-11-24 16:02:50 +00:00
|
|
|
isPaid: false,
|
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",
|
2020-10-06 09:41:31 +00:00
|
|
|
id: "dsfsfuhb",
|
2020-09-03 10:25:16 +00:00
|
|
|
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",
|
2020-10-06 09:41:31 +00:00
|
|
|
id: "dsfsfuhb",
|
2020-09-03 10:25:16 +00:00
|
|
|
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",
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channelListings: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel1"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "124",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel2"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjAy",
|
|
|
|
name: "500ml",
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "93855755"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channelListings: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel1"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "124",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel2"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjAz",
|
|
|
|
name: "1l",
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "43226647"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channelListings: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel1"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "124",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel2"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjA0",
|
|
|
|
name: "2l",
|
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",
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channelListings: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel1"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "124",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel2"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEx",
|
|
|
|
name: "500ml",
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "43200242"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channelListings: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel1"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "124",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel2"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEy",
|
|
|
|
name: "1l",
|
2020-07-02 11:19:53 +00:00
|
|
|
sku: "79129513"
|
2019-06-19 14:40:52 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariant" as "ProductVariant",
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
channelListings: [
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "123",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel1"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "ProductVariantChannelListing",
|
|
|
|
channel: {
|
|
|
|
__typename: "Channel",
|
|
|
|
currencyCode: "USD",
|
|
|
|
id: "124",
|
|
|
|
isActive: true,
|
|
|
|
name: "Channel2"
|
|
|
|
},
|
|
|
|
price: {
|
|
|
|
__typename: "Money",
|
|
|
|
amount: 1,
|
2020-07-02 11:19:53 +00:00
|
|
|
currency: "USD"
|
|
|
|
}
|
|
|
|
}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
],
|
|
|
|
id: "UHJvZHVjdFZhcmlhbnQ6MjEz",
|
|
|
|
name: "2l",
|
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"
|
|
|
|
}
|
|
|
|
];
|
2020-11-30 13:19:57 +00:00
|
|
|
|
|
|
|
export const orderSettings: OrderSettingsFragment = {
|
|
|
|
__typename: "OrderSettings",
|
|
|
|
automaticallyConfirmAllNewOrders: true
|
|
|
|
};
|