Saleor 1856/implement discount modal 2 (#978)
* Add currency to orderline unitprice and update hella lots of types * wip * Add diiscount modal component * Refactor action dialog - move buttons to separate component so they can be reused * Add discount provider to keep logic of discounts separated and wrap proper components * Add discount ccalculator util class, and make draft details summary use it, along with discounts data, modal etc * UUpdate lots of types, fragments, schema etc * Update quries and mutations * ARename OrderLineDiscountModal -> OrderDiscountCommonModal, add types etc * Add order line discount provider + consumer, same for order discount * Fix ts wip * Update schema and types * Update order discount provider * Add nnetto price to order details fragment and update lots of types * Adjust fixtures to order details containing net total * Move both order and order line provider to same dir to make types and utils more accessible * Update schema to match master * Update schema and types * Update order history, add some related components, add events etc. * Fix types * Fix schema to match master * Update messages * Update changelog * Retrigger build * Add stories and update common modal to display floats properly * Add and update stories and tests * Add optional displaying of reason in case it's empty * Make user name label for history events return email if last name and first name are absent * Update schema, types, and mutations to properly refresh * Remove unnecessary imports * Add discounts decorator to draft details page storybook * Fixs after review * Update messages * Small fixes to timeline events * Update types for order shipping price to use net as well, fix labels in draft summary and add colors to theme palette * Updaste tests, messages * Fixs after review * Add theme highlighted active and inactive color text, add valuue conversion to discount modal when changing calculation mode * Add change to changelog * Add extra options to select employee display name for order event when some data is missing. Also add filtering null elements in event header when data missing alltogether and element is null * Refactor selecting employee name in utils * Add conditional to extended timeline event when orderline is null
This commit is contained in:
parent
3d8a849301
commit
2cd4ea9529
82 changed files with 12293 additions and 29643 deletions
|
@ -19,6 +19,7 @@ All notable, unreleased changes to this project will be documented in this file.
|
||||||
- Drop descriptionJson and contentJson fields - #950 by @jwm0
|
- Drop descriptionJson and contentJson fields - #950 by @jwm0
|
||||||
- Add error tracking with Sentry adapter - #956 by @jwm0
|
- Add error tracking with Sentry adapter - #956 by @jwm0
|
||||||
- Add OAuth2 login with OpenID support - #963 by @orzechdev
|
- Add OAuth2 login with OpenID support - #963 by @orzechdev
|
||||||
|
- Add order and order line discounts and modal - #978 by @mmarkusik
|
||||||
- Fix no channels crash - #984 by @dominik-zeglen
|
- Fix no channels crash - #984 by @dominik-zeglen
|
||||||
- Update webhooks - #982 by @piotrgrundas
|
- Update webhooks - #982 by @piotrgrundas
|
||||||
- Fix trigger form change when collections are being added to list of product collections - #987 by @gax97
|
- Fix trigger form change when collections are being added to list of product collections - #987 by @gax97
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
"context": "dialog header",
|
"context": "dialog header",
|
||||||
"string": "Cancel Order"
|
"string": "Cancel Order"
|
||||||
},
|
},
|
||||||
|
"Previous discount label id": {
|
||||||
|
"context": "Previous discount label",
|
||||||
|
"string": "Previous discount value"
|
||||||
|
},
|
||||||
"amount title": {
|
"amount title": {
|
||||||
"context": "amount title",
|
"context": "amount title",
|
||||||
"string": "Refunded amount"
|
"string": "Refunded amount"
|
||||||
|
@ -50,6 +54,14 @@
|
||||||
"configurationPluginsPages": {
|
"configurationPluginsPages": {
|
||||||
"string": "View and update your plugins and their settings."
|
"string": "View and update your plugins and their settings."
|
||||||
},
|
},
|
||||||
|
"discount value id": {
|
||||||
|
"context": "discount value",
|
||||||
|
"string": "discount"
|
||||||
|
},
|
||||||
|
"discount value label id": {
|
||||||
|
"context": "discount value label",
|
||||||
|
"string": "discount value"
|
||||||
|
},
|
||||||
"event products list title refunded": {
|
"event products list title refunded": {
|
||||||
"context": "refunded products list title",
|
"context": "refunded products list title",
|
||||||
"string": "Products refunded"
|
"string": "Products refunded"
|
||||||
|
@ -74,6 +86,26 @@
|
||||||
"context": "order marked as paid event title",
|
"context": "order marked as paid event title",
|
||||||
"string": "Order was marked as paid by"
|
"string": "Order was marked as paid by"
|
||||||
},
|
},
|
||||||
|
"event title order discount auto updated": {
|
||||||
|
"context": "order discount was updated automatically event title",
|
||||||
|
"string": "Order discount was updated automatically updated"
|
||||||
|
},
|
||||||
|
"event title order discount updated": {
|
||||||
|
"context": "order discount was updated event title",
|
||||||
|
"string": "Order discount was updated by"
|
||||||
|
},
|
||||||
|
"event title order discounted": {
|
||||||
|
"context": "order was discounted event title",
|
||||||
|
"string": "Order was discounted by"
|
||||||
|
},
|
||||||
|
"event title order line discount added": {
|
||||||
|
"context": "order line discount added title",
|
||||||
|
"string": "{productName} discount was added by "
|
||||||
|
},
|
||||||
|
"event title order line discount updated": {
|
||||||
|
"context": "order line discount updated title",
|
||||||
|
"string": "{productName} discount was updated by "
|
||||||
|
},
|
||||||
"event title refunded": {
|
"event title refunded": {
|
||||||
"context": "refunded event title",
|
"context": "refunded event title",
|
||||||
"string": "Products were refunded by "
|
"string": "Products were refunded by "
|
||||||
|
@ -86,6 +118,10 @@
|
||||||
"context": "returned event title",
|
"context": "returned event title",
|
||||||
"string": "Products were returned by"
|
"string": "Products were returned by"
|
||||||
},
|
},
|
||||||
|
"fixed amount subtitle id": {
|
||||||
|
"context": "Fixed amount subtitle",
|
||||||
|
"string": "Fixed amount"
|
||||||
|
},
|
||||||
"homeActivityCardHeader": {
|
"homeActivityCardHeader": {
|
||||||
"context": "header",
|
"context": "header",
|
||||||
"string": "Activity"
|
"string": "Activity"
|
||||||
|
@ -235,6 +271,10 @@
|
||||||
"menuPropertiesMenuTitle": {
|
"menuPropertiesMenuTitle": {
|
||||||
"string": "Menu Title"
|
"string": "Menu Title"
|
||||||
},
|
},
|
||||||
|
"new discount label id": {
|
||||||
|
"context": "new discount label",
|
||||||
|
"string": "New discount value"
|
||||||
|
},
|
||||||
"orderCustomerBillingAddressNotSet": {
|
"orderCustomerBillingAddressNotSet": {
|
||||||
"context": "no address is set in draft order",
|
"context": "no address is set in draft order",
|
||||||
"string": "Not set"
|
"string": "Not set"
|
||||||
|
@ -3239,6 +3279,38 @@
|
||||||
"context": "return button",
|
"context": "return button",
|
||||||
"string": "Return / Replace order"
|
"string": "Return / Replace order"
|
||||||
},
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_buttonLabel": {
|
||||||
|
"context": "add button label",
|
||||||
|
"string": "Add"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_discountReasonLabel": {
|
||||||
|
"context": "discount reason input lavel",
|
||||||
|
"string": "Reason"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_discountValueLabel": {
|
||||||
|
"context": "value input label",
|
||||||
|
"string": "Discount value"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_fixedAmountOption": {
|
||||||
|
"context": "fixed amount",
|
||||||
|
"string": "Fixed Amount"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_invalidValue": {
|
||||||
|
"context": "value input helper text",
|
||||||
|
"string": "Invalid value"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_itemDiscountTitle": {
|
||||||
|
"context": "dialog title item discount",
|
||||||
|
"string": "Discount Item"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_orderDiscountTitle": {
|
||||||
|
"context": "dialog title order discount",
|
||||||
|
"string": "Discount this Order by:"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDiscountCommonModal_dot_percentageOption": {
|
||||||
|
"context": "percentage option",
|
||||||
|
"string": "Percentage"
|
||||||
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderDraftCancelDialog_dot_1961675716": {
|
"src_dot_orders_dot_components_dot_OrderDraftCancelDialog_dot_1961675716": {
|
||||||
"context": "dialog header",
|
"context": "dialog header",
|
||||||
"string": "Delete Daft Order"
|
"string": "Delete Daft Order"
|
||||||
|
@ -3264,22 +3336,36 @@
|
||||||
"context": "total price of ordered products",
|
"context": "total price of ordered products",
|
||||||
"string": "Total"
|
"string": "Total"
|
||||||
},
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_2429341469": {
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_addCustomerInfo": {
|
||||||
"context": "button",
|
"context": "add customer first label",
|
||||||
|
"string": "add customer first"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_addDiscount": {
|
||||||
|
"context": "add discount button",
|
||||||
|
"string": "Add Discount"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_addShippingCarrier": {
|
||||||
|
"context": "add shipping carrier button",
|
||||||
"string": "Add shipping carrier"
|
"string": "Add shipping carrier"
|
||||||
},
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_3202709354": {
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_discount": {
|
||||||
"string": "Taxes (VAT included)"
|
"context": "discount button",
|
||||||
|
"string": "Discount"
|
||||||
},
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_3594442178": {
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_noShippingCarriers": {
|
||||||
|
"context": "no shipping carriers title",
|
||||||
"string": "No applicable shipping carriers"
|
"string": "No applicable shipping carriers"
|
||||||
},
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_781550514": {
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_subtotal": {
|
||||||
"context": "subtotal price or an order",
|
"context": "subtotal price",
|
||||||
"string": "Subtotal"
|
"string": "Subtotal"
|
||||||
},
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_878013594": {
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_taxes": {
|
||||||
"context": "total price of an order",
|
"context": "taxes title",
|
||||||
|
"string": "Taxes (VAT included)"
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderDraftDetailsSummary_dot_total": {
|
||||||
|
"context": "total price",
|
||||||
"string": "Total"
|
"string": "Total"
|
||||||
},
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderDraftDetails_dot_2343989342": {
|
"src_dot_orders_dot_components_dot_OrderDraftDetails_dot_2343989342": {
|
||||||
|
@ -3580,6 +3666,10 @@
|
||||||
"context": "order history message",
|
"context": "order history message",
|
||||||
"string": "Order was cancelled"
|
"string": "Order was cancelled"
|
||||||
},
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderHistory_dot_ExtendedDiscountTimelineEvent_dot_reasonLabel": {
|
||||||
|
"context": "reason for discount label",
|
||||||
|
"string": "Reason for discount"
|
||||||
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderHistory_dot_description": {
|
"src_dot_orders_dot_components_dot_OrderHistory_dot_description": {
|
||||||
"context": "replacement created order history message description",
|
"context": "replacement created order history message description",
|
||||||
"string": "was created for replaced products"
|
"string": "was created for replaced products"
|
||||||
|
@ -3588,6 +3678,14 @@
|
||||||
"context": "replacement created order history message draft number",
|
"context": "replacement created order history message draft number",
|
||||||
"string": "Draft #{orderNumber} "
|
"string": "Draft #{orderNumber} "
|
||||||
},
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderHistory_dot_orderDiscountRemoved": {
|
||||||
|
"context": "order discount removed title",
|
||||||
|
"string": "Order discount was removed by "
|
||||||
|
},
|
||||||
|
"src_dot_orders_dot_components_dot_OrderHistory_dot_productDiscountRemoved": {
|
||||||
|
"context": "product discount removed title",
|
||||||
|
"string": "{productName} discount was removed by"
|
||||||
|
},
|
||||||
"src_dot_orders_dot_components_dot_OrderInvoiceEmailSendDialog_dot_1821123638": {
|
"src_dot_orders_dot_components_dot_OrderInvoiceEmailSendDialog_dot_1821123638": {
|
||||||
"string": "Are you sure you want to send this invoice: {invoiceNumber} to the customer?"
|
"string": "Are you sure you want to send this invoice: {invoiceNumber} to the customer?"
|
||||||
},
|
},
|
||||||
|
|
28562
package-lock.json
generated
28562
package-lock.json
generated
File diff suppressed because it is too large
Load diff
2340
schema.graphql
2340
schema.graphql
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,36 @@
|
||||||
|
import { Typography } from "@material-ui/core";
|
||||||
|
import Decorator from "@saleor/storybook/Decorator";
|
||||||
|
import { storiesOf } from "@storybook/react";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
import HorizontalSpacer from "./HorizontalSpacer";
|
||||||
|
|
||||||
|
interface HelperWrapperProps {
|
||||||
|
children: React.ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
const HelperWrapper: React.FC<HelperWrapperProps> = ({ children }) => (
|
||||||
|
<div style={{ display: "flex", flexDirection: "row" }}>{children}</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
const Text: React.FC = () => <Typography>{"<- The spacer is here"}</Typography>;
|
||||||
|
|
||||||
|
storiesOf("Generic / Horizontal Spacer", module)
|
||||||
|
.addDecorator(Decorator)
|
||||||
|
.add("without", () => (
|
||||||
|
<HelperWrapper>
|
||||||
|
<Typography>No spacer</Typography>
|
||||||
|
</HelperWrapper>
|
||||||
|
))
|
||||||
|
.add("default", () => (
|
||||||
|
<HelperWrapper>
|
||||||
|
<HorizontalSpacer />
|
||||||
|
<Text />
|
||||||
|
</HelperWrapper>
|
||||||
|
))
|
||||||
|
.add("with bigger spacing provided", () => (
|
||||||
|
<HelperWrapper>
|
||||||
|
<HorizontalSpacer spacing={4} />
|
||||||
|
<Text />
|
||||||
|
</HelperWrapper>
|
||||||
|
));
|
23
src/apps/components/HorizontalSpacer/HorizontalSpacer.tsx
Normal file
23
src/apps/components/HorizontalSpacer/HorizontalSpacer.tsx
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { makeStyles } from "@material-ui/core";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export interface HorizontalSpacerProps {
|
||||||
|
spacing?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
theme => ({
|
||||||
|
container: ({ spacing }: HorizontalSpacerProps) => ({
|
||||||
|
width: theme.spacing(spacing)
|
||||||
|
})
|
||||||
|
}),
|
||||||
|
{ name: "HorizontalSpacer" }
|
||||||
|
);
|
||||||
|
|
||||||
|
const HorizontalSpacer: React.FC<HorizontalSpacerProps> = ({ spacing = 1 }) => {
|
||||||
|
const classes = useStyles({ spacing });
|
||||||
|
|
||||||
|
return <div className={classes.container} />;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default HorizontalSpacer;
|
2
src/apps/components/HorizontalSpacer/index.tsx
Normal file
2
src/apps/components/HorizontalSpacer/index.tsx
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export * from "./HorizontalSpacer";
|
||||||
|
export { default } from "./HorizontalSpacer";
|
|
@ -1,31 +1,12 @@
|
||||||
import Button from "@material-ui/core/Button";
|
|
||||||
import Dialog from "@material-ui/core/Dialog";
|
import Dialog from "@material-ui/core/Dialog";
|
||||||
import DialogActions from "@material-ui/core/DialogActions";
|
|
||||||
import DialogContent from "@material-ui/core/DialogContent";
|
import DialogContent from "@material-ui/core/DialogContent";
|
||||||
import DialogTitle from "@material-ui/core/DialogTitle";
|
import DialogTitle from "@material-ui/core/DialogTitle";
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
|
||||||
import { buttonMessages } from "@saleor/intl";
|
|
||||||
import { DialogProps } from "@saleor/types";
|
import { DialogProps } from "@saleor/types";
|
||||||
import classNames from "classnames";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { FormattedMessage, useIntl } from "react-intl";
|
|
||||||
|
|
||||||
import ConfirmButton, {
|
import { ConfirmButtonTransitionState } from "../ConfirmButton/ConfirmButton";
|
||||||
ConfirmButtonTransitionState
|
import DialogButtons from "./DialogButtons";
|
||||||
} from "../ConfirmButton/ConfirmButton";
|
import { ActionDialogVariant } from "./types";
|
||||||
|
|
||||||
const useStyles = makeStyles(
|
|
||||||
theme => ({
|
|
||||||
deleteButton: {
|
|
||||||
"&:hover": {
|
|
||||||
backgroundColor: theme.palette.error.main
|
|
||||||
},
|
|
||||||
backgroundColor: theme.palette.error.main,
|
|
||||||
color: theme.palette.error.contrastText
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
{ name: "ActionDialog" }
|
|
||||||
);
|
|
||||||
|
|
||||||
interface ActionDialogProps extends DialogProps {
|
interface ActionDialogProps extends DialogProps {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
|
@ -34,61 +15,25 @@ interface ActionDialogProps extends DialogProps {
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | false;
|
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | false;
|
||||||
title: string;
|
title: string;
|
||||||
variant?: "default" | "delete" | "info";
|
variant?: ActionDialogVariant;
|
||||||
onConfirm();
|
onConfirm();
|
||||||
}
|
}
|
||||||
|
|
||||||
const ActionDialog: React.FC<ActionDialogProps> = props => {
|
const ActionDialog: React.FC<ActionDialogProps> = props => {
|
||||||
const {
|
const { children, open, title, onClose, variant, ...rest } = props;
|
||||||
children,
|
|
||||||
confirmButtonLabel,
|
|
||||||
confirmButtonState,
|
|
||||||
disabled,
|
|
||||||
open,
|
|
||||||
title,
|
|
||||||
variant,
|
|
||||||
onConfirm,
|
|
||||||
onClose,
|
|
||||||
...rest
|
|
||||||
} = props;
|
|
||||||
|
|
||||||
const classes = useStyles(props);
|
|
||||||
const intl = useIntl();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog fullWidth onClose={onClose} open={open} {...rest}>
|
<Dialog fullWidth onClose={onClose} open={open} {...rest}>
|
||||||
<DialogTitle>{title}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
<DialogContent>{children}</DialogContent>
|
<DialogContent>{children}</DialogContent>
|
||||||
<DialogActions>
|
<DialogButtons {...rest} onClose={onClose} variant={variant} />
|
||||||
<Button data-test="back" onClick={onClose}>
|
|
||||||
<FormattedMessage {...buttonMessages.back} />
|
|
||||||
</Button>
|
|
||||||
{variant !== "info" && (
|
|
||||||
<ConfirmButton
|
|
||||||
disabled={disabled}
|
|
||||||
transitionState={confirmButtonState}
|
|
||||||
color="primary"
|
|
||||||
variant="contained"
|
|
||||||
onClick={onConfirm}
|
|
||||||
className={classNames({
|
|
||||||
[classes.deleteButton]: variant === "delete"
|
|
||||||
})}
|
|
||||||
data-test="submit"
|
|
||||||
>
|
|
||||||
{confirmButtonLabel ||
|
|
||||||
(variant === "delete"
|
|
||||||
? intl.formatMessage(buttonMessages.delete)
|
|
||||||
: intl.formatMessage(buttonMessages.confirm))}
|
|
||||||
</ConfirmButton>
|
|
||||||
)}
|
|
||||||
</DialogActions>
|
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ActionDialog.defaultProps = {
|
ActionDialog.defaultProps = {
|
||||||
maxWidth: "xs",
|
maxWidth: "xs"
|
||||||
variant: "default"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ActionDialog.displayName = "ActionDialog";
|
ActionDialog.displayName = "ActionDialog";
|
||||||
export default ActionDialog;
|
export default ActionDialog;
|
||||||
|
|
88
src/components/ActionDialog/DialogButtons.tsx
Normal file
88
src/components/ActionDialog/DialogButtons.tsx
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
import Button from "@material-ui/core/Button";
|
||||||
|
import DialogActions from "@material-ui/core/DialogActions";
|
||||||
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
|
import { buttonMessages } from "@saleor/intl";
|
||||||
|
import classNames from "classnames";
|
||||||
|
import React from "react";
|
||||||
|
import { FormattedMessage, useIntl } from "react-intl";
|
||||||
|
|
||||||
|
import ConfirmButton, {
|
||||||
|
ConfirmButtonTransitionState
|
||||||
|
} from "../ConfirmButton/ConfirmButton";
|
||||||
|
import { ActionDialogVariant } from "./types";
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
theme => ({
|
||||||
|
deleteButton: {
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: theme.palette.error.main
|
||||||
|
},
|
||||||
|
backgroundColor: theme.palette.error.main,
|
||||||
|
color: theme.palette.error.contrastText
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ name: "ActionDialog" }
|
||||||
|
);
|
||||||
|
|
||||||
|
interface DialogButtonsProps {
|
||||||
|
onClose: () => void;
|
||||||
|
confirmButtonLabel?: string;
|
||||||
|
confirmButtonState?: ConfirmButtonTransitionState;
|
||||||
|
disabled?: boolean;
|
||||||
|
variant?: ActionDialogVariant;
|
||||||
|
children?: React.ReactNode;
|
||||||
|
showBackButton?: boolean;
|
||||||
|
onConfirm();
|
||||||
|
}
|
||||||
|
|
||||||
|
const DialogButtons: React.FC<DialogButtonsProps> = props => {
|
||||||
|
const {
|
||||||
|
confirmButtonLabel,
|
||||||
|
confirmButtonState,
|
||||||
|
disabled,
|
||||||
|
variant,
|
||||||
|
onConfirm,
|
||||||
|
onClose,
|
||||||
|
children,
|
||||||
|
showBackButton = true
|
||||||
|
} = props;
|
||||||
|
|
||||||
|
const classes = useStyles(props);
|
||||||
|
const intl = useIntl();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<DialogActions>
|
||||||
|
{children}
|
||||||
|
{showBackButton && (
|
||||||
|
<Button data-test="back" onClick={onClose} color="secondary">
|
||||||
|
<FormattedMessage {...buttonMessages.back} />
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
{variant !== "info" && (
|
||||||
|
<ConfirmButton
|
||||||
|
disabled={disabled}
|
||||||
|
transitionState={confirmButtonState}
|
||||||
|
color="primary"
|
||||||
|
variant="contained"
|
||||||
|
onClick={onConfirm}
|
||||||
|
className={classNames({
|
||||||
|
[classes.deleteButton]: variant === "delete"
|
||||||
|
})}
|
||||||
|
data-test="submit"
|
||||||
|
>
|
||||||
|
{confirmButtonLabel ||
|
||||||
|
(variant === "delete"
|
||||||
|
? intl.formatMessage(buttonMessages.delete)
|
||||||
|
: intl.formatMessage(buttonMessages.confirm))}
|
||||||
|
</ConfirmButton>
|
||||||
|
)}
|
||||||
|
</DialogActions>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
DialogButtons.defaultProps = {
|
||||||
|
confirmButtonState: "default",
|
||||||
|
variant: "default"
|
||||||
|
};
|
||||||
|
|
||||||
|
export default DialogButtons;
|
1
src/components/ActionDialog/types.ts
Normal file
1
src/components/ActionDialog/types.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export type ActionDialogVariant = "default" | "delete" | "info";
|
|
@ -1,12 +1,13 @@
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
import Typography, { TypographyProps } from "@material-ui/core/Typography";
|
import Typography, { TypographyProps } from "@material-ui/core/Typography";
|
||||||
|
import { ITheme } from "@saleor/theme";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
const useStyles = makeStyles(
|
const useStyles = makeStyles(
|
||||||
theme => ({
|
(theme: ITheme) => ({
|
||||||
primary: {
|
primary: {
|
||||||
color: theme.palette.primary.main
|
color: theme.palette.textHighlighted.active
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
@ -17,6 +18,10 @@ const useStyles = makeStyles(
|
||||||
},
|
},
|
||||||
underline: {
|
underline: {
|
||||||
textDecoration: "underline"
|
textDecoration: "underline"
|
||||||
|
},
|
||||||
|
disabled: {
|
||||||
|
cursor: "default",
|
||||||
|
color: theme.palette.textHighlighted.inactive
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
{ name: "Link" }
|
{ name: "Link" }
|
||||||
|
@ -27,6 +32,7 @@ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
||||||
underline?: boolean;
|
underline?: boolean;
|
||||||
typographyProps?: TypographyProps;
|
typographyProps?: TypographyProps;
|
||||||
onClick: () => void;
|
onClick: () => void;
|
||||||
|
disabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Link: React.FC<LinkProps> = props => {
|
const Link: React.FC<LinkProps> = props => {
|
||||||
|
@ -36,6 +42,7 @@ const Link: React.FC<LinkProps> = props => {
|
||||||
color = "primary",
|
color = "primary",
|
||||||
underline = false,
|
underline = false,
|
||||||
onClick,
|
onClick,
|
||||||
|
disabled,
|
||||||
...linkProps
|
...linkProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
|
@ -47,9 +54,14 @@ const Link: React.FC<LinkProps> = props => {
|
||||||
className={classNames(className, {
|
className={classNames(className, {
|
||||||
[classes.root]: true,
|
[classes.root]: true,
|
||||||
[classes[color]]: true,
|
[classes[color]]: true,
|
||||||
[classes.underline]: underline
|
[classes.underline]: underline,
|
||||||
|
[classes.disabled]: disabled
|
||||||
})}
|
})}
|
||||||
onClick={event => {
|
onClick={event => {
|
||||||
|
if (disabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
onClick();
|
onClick();
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -59,13 +59,14 @@ interface RadioGroupFieldProps {
|
||||||
alignTop?: boolean;
|
alignTop?: boolean;
|
||||||
choices: RadioGroupFieldChoice[];
|
choices: RadioGroupFieldChoice[];
|
||||||
className?: string;
|
className?: string;
|
||||||
|
innerContainerClassName?: string;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
error?: boolean;
|
error?: boolean;
|
||||||
hint?: string;
|
hint?: string;
|
||||||
label?: React.ReactNode;
|
label?: React.ReactNode;
|
||||||
name?: string;
|
name?: string;
|
||||||
value: string | number;
|
value: string | number;
|
||||||
variant?: "block" | "inline";
|
variant?: "block" | "inline" | "inlineJustify";
|
||||||
onChange: (event: React.ChangeEvent<any>) => void;
|
onChange: (event: React.ChangeEvent<any>) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +82,8 @@ export const RadioGroupField: React.FC<RadioGroupFieldProps> = props => {
|
||||||
onChange,
|
onChange,
|
||||||
name,
|
name,
|
||||||
hint,
|
hint,
|
||||||
variant = "block"
|
variant = "block",
|
||||||
|
innerContainerClassName
|
||||||
} = props;
|
} = props;
|
||||||
const classes = useStyles(props);
|
const classes = useStyles(props);
|
||||||
|
|
||||||
|
@ -102,7 +104,8 @@ export const RadioGroupField: React.FC<RadioGroupFieldProps> = props => {
|
||||||
value={value}
|
value={value}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
className={classNames({
|
className={classNames({
|
||||||
[classes.radioGroupInline]: variant === "inline"
|
[classes.radioGroupInline]: variant === "inline",
|
||||||
|
[innerContainerClassName]: !!innerContainerClassName
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{choices.length > 0 ? (
|
{choices.length > 0 ? (
|
||||||
|
|
|
@ -2,6 +2,8 @@ export type IThemeColors = Record<
|
||||||
"primary" | "secondary" | "error" | "paperBorder" | "autofill",
|
"primary" | "secondary" | "error" | "paperBorder" | "autofill",
|
||||||
string
|
string
|
||||||
> & {
|
> & {
|
||||||
|
highlightInactive: Record<"default", string>;
|
||||||
|
} & {
|
||||||
background: Record<"default" | "paper", string>;
|
background: Record<"default" | "paper", string>;
|
||||||
} & {
|
} & {
|
||||||
checkbox: Record<"default", string>;
|
checkbox: Record<"default", string>;
|
||||||
|
@ -31,6 +33,9 @@ export type IThemeColors = Record<
|
||||||
};
|
};
|
||||||
|
|
||||||
export const dark: IThemeColors = {
|
export const dark: IThemeColors = {
|
||||||
|
highlightInactive: {
|
||||||
|
default: "#78797A"
|
||||||
|
},
|
||||||
autofill: "#5D5881",
|
autofill: "#5D5881",
|
||||||
background: {
|
background: {
|
||||||
default: "#1D1E1F",
|
default: "#1D1E1F",
|
||||||
|
@ -68,6 +73,9 @@ export const dark: IThemeColors = {
|
||||||
theme: "dark"
|
theme: "dark"
|
||||||
};
|
};
|
||||||
export const light: IThemeColors = {
|
export const light: IThemeColors = {
|
||||||
|
highlightInactive: {
|
||||||
|
default: "#C8C8C8"
|
||||||
|
},
|
||||||
autofill: "#f4f6c5",
|
autofill: "#f4f6c5",
|
||||||
background: {
|
background: {
|
||||||
default: "#EFF5F8",
|
default: "#EFF5F8",
|
||||||
|
@ -89,6 +97,7 @@ export const light: IThemeColors = {
|
||||||
default: "#C8C8C8",
|
default: "#C8C8C8",
|
||||||
disabled: "rgba(216, 216, 216, 0.3)"
|
disabled: "rgba(216, 216, 216, 0.3)"
|
||||||
},
|
},
|
||||||
|
|
||||||
input: {
|
input: {
|
||||||
border: "#BDBDBD",
|
border: "#BDBDBD",
|
||||||
default: "#FFFFFF",
|
default: "#FFFFFF",
|
||||||
|
|
|
@ -60,7 +60,7 @@ export const TimelineEventHeader: React.FC<TimelineEventHeaderProps> = props =>
|
||||||
{title && <Typography>{title}</Typography>}
|
{title && <Typography>{title}</Typography>}
|
||||||
{titleElements && (
|
{titleElements && (
|
||||||
<div className={classes.elementsContainer}>
|
<div className={classes.elementsContainer}>
|
||||||
{titleElements.map(({ text, link }) => {
|
{titleElements.filter(Boolean).map(({ text, link }) => {
|
||||||
if (link) {
|
if (link) {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
|
|
|
@ -2,6 +2,7 @@ import gql from "graphql-tag";
|
||||||
|
|
||||||
import { fragmentAddress } from "./address";
|
import { fragmentAddress } from "./address";
|
||||||
import { metadataFragment } from "./metadata";
|
import { metadataFragment } from "./metadata";
|
||||||
|
import { fragmentMoney } from "./products";
|
||||||
|
|
||||||
export const fragmentOrderEvent = gql`
|
export const fragmentOrderEvent = gql`
|
||||||
fragment OrderEventFragment on OrderEvent {
|
fragment OrderEventFragment on OrderEvent {
|
||||||
|
@ -12,6 +13,21 @@ export const fragmentOrderEvent = gql`
|
||||||
email
|
email
|
||||||
emailType
|
emailType
|
||||||
invoiceNumber
|
invoiceNumber
|
||||||
|
discount {
|
||||||
|
valueType
|
||||||
|
value
|
||||||
|
reason
|
||||||
|
amount {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
oldValueType
|
||||||
|
oldValue
|
||||||
|
oldAmount {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
}
|
||||||
relatedOrder {
|
relatedOrder {
|
||||||
id
|
id
|
||||||
number
|
number
|
||||||
|
@ -29,6 +45,21 @@ export const fragmentOrderEvent = gql`
|
||||||
lines {
|
lines {
|
||||||
quantity
|
quantity
|
||||||
itemName
|
itemName
|
||||||
|
discount {
|
||||||
|
valueType
|
||||||
|
value
|
||||||
|
reason
|
||||||
|
amount {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
oldValueType
|
||||||
|
oldValue
|
||||||
|
oldAmount {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
}
|
||||||
orderLine {
|
orderLine {
|
||||||
id
|
id
|
||||||
productName
|
productName
|
||||||
|
@ -50,6 +81,24 @@ export const fragmentOrderLine = gql`
|
||||||
productSku
|
productSku
|
||||||
quantity
|
quantity
|
||||||
quantityFulfilled
|
quantityFulfilled
|
||||||
|
unitDiscount {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
unitDiscountValue
|
||||||
|
unitDiscountReason
|
||||||
|
unitDiscountType
|
||||||
|
undiscountedUnitPrice {
|
||||||
|
currency
|
||||||
|
gross {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
net {
|
||||||
|
amount
|
||||||
|
currency
|
||||||
|
}
|
||||||
|
}
|
||||||
unitPrice {
|
unitPrice {
|
||||||
gross {
|
gross {
|
||||||
amount
|
amount
|
||||||
|
@ -120,15 +169,27 @@ export const fragmentOrderDetails = gql`
|
||||||
${fulfillmentFragment}
|
${fulfillmentFragment}
|
||||||
${invoiceFragment}
|
${invoiceFragment}
|
||||||
${metadataFragment}
|
${metadataFragment}
|
||||||
|
${fragmentMoney}
|
||||||
fragment OrderDetailsFragment on Order {
|
fragment OrderDetailsFragment on Order {
|
||||||
id
|
id
|
||||||
...MetadataFragment
|
...MetadataFragment
|
||||||
billingAddress {
|
billingAddress {
|
||||||
...AddressFragment
|
...AddressFragment
|
||||||
}
|
}
|
||||||
|
isShippingRequired
|
||||||
canFinalize
|
canFinalize
|
||||||
created
|
created
|
||||||
customerNote
|
customerNote
|
||||||
|
discounts {
|
||||||
|
id
|
||||||
|
type
|
||||||
|
calculationMode: valueType
|
||||||
|
value
|
||||||
|
reason
|
||||||
|
amount {
|
||||||
|
...Money
|
||||||
|
}
|
||||||
|
}
|
||||||
events {
|
events {
|
||||||
...OrderEventFragment
|
...OrderEventFragment
|
||||||
}
|
}
|
||||||
|
@ -156,28 +217,37 @@ export const fragmentOrderDetails = gql`
|
||||||
status
|
status
|
||||||
subtotal {
|
subtotal {
|
||||||
gross {
|
gross {
|
||||||
amount
|
...Money
|
||||||
currency
|
}
|
||||||
|
net {
|
||||||
|
...Money
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
total {
|
total {
|
||||||
gross {
|
gross {
|
||||||
amount
|
...Money
|
||||||
currency
|
}
|
||||||
|
net {
|
||||||
|
...Money
|
||||||
}
|
}
|
||||||
tax {
|
tax {
|
||||||
amount
|
...Money
|
||||||
currency
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
actions
|
actions
|
||||||
totalAuthorized {
|
totalAuthorized {
|
||||||
amount
|
...Money
|
||||||
currency
|
|
||||||
}
|
}
|
||||||
totalCaptured {
|
totalCaptured {
|
||||||
amount
|
...Money
|
||||||
currency
|
}
|
||||||
|
undiscountedTotal {
|
||||||
|
net {
|
||||||
|
...Money
|
||||||
|
}
|
||||||
|
gross {
|
||||||
|
...Money
|
||||||
|
}
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
|
@ -188,13 +258,11 @@ export const fragmentOrderDetails = gql`
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
price {
|
price {
|
||||||
amount
|
...Money
|
||||||
currency
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
discount {
|
discount {
|
||||||
amount
|
...Money
|
||||||
currency
|
|
||||||
}
|
}
|
||||||
invoices {
|
invoices {
|
||||||
...InvoiceFragment
|
...InvoiceFragment
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { FulfillmentStatus } from "./../../types/globalTypes";
|
import { DiscountValueTypeEnum, FulfillmentStatus } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL fragment: FulfillmentFragment
|
// GraphQL fragment: FulfillmentFragment
|
||||||
|
@ -14,6 +14,31 @@ export interface FulfillmentFragment_lines_orderLine_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillmentFragment_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillmentFragment_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillmentFragment_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillmentFragment_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: FulfillmentFragment_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: FulfillmentFragment_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillmentFragment_lines_orderLine_unitPrice_gross {
|
export interface FulfillmentFragment_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -46,6 +71,11 @@ export interface FulfillmentFragment_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: FulfillmentFragment_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: FulfillmentFragment_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: FulfillmentFragment_lines_orderLine_unitPrice;
|
unitPrice: FulfillmentFragment_lines_orderLine_unitPrice;
|
||||||
thumbnail: FulfillmentFragment_lines_orderLine_thumbnail | null;
|
thumbnail: FulfillmentFragment_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL fragment: OrderDetailsFragment
|
// GraphQL fragment: OrderDetailsFragment
|
||||||
|
@ -42,6 +42,45 @@ export interface OrderDetailsFragment_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDetailsFragment_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDetailsFragment_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDetailsFragment_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_events_relatedOrder {
|
export interface OrderDetailsFragment_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -56,6 +95,29 @@ export interface OrderDetailsFragment_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDetailsFragment_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDetailsFragment_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_events_lines_orderLine {
|
export interface OrderDetailsFragment_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -67,6 +129,7 @@ export interface OrderDetailsFragment_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderDetailsFragment_events_lines_discount | null;
|
||||||
orderLine: OrderDetailsFragment_events_lines_orderLine | null;
|
orderLine: OrderDetailsFragment_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +142,7 @@ export interface OrderDetailsFragment_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDetailsFragment_events_discount | null;
|
||||||
relatedOrder: OrderDetailsFragment_events_relatedOrder | null;
|
relatedOrder: OrderDetailsFragment_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -94,6 +158,31 @@ export interface OrderDetailsFragment_fulfillments_lines_orderLine_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDetailsFragment_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDetailsFragment_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderDetailsFragment_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -126,6 +215,11 @@ export interface OrderDetailsFragment_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDetailsFragment_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDetailsFragment_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDetailsFragment_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderDetailsFragment_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderDetailsFragment_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderDetailsFragment_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -159,6 +253,31 @@ export interface OrderDetailsFragment_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDetailsFragment_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDetailsFragment_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_lines_unitPrice_gross {
|
export interface OrderDetailsFragment_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -191,6 +310,11 @@ export interface OrderDetailsFragment_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDetailsFragment_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDetailsFragment_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDetailsFragment_lines_unitPrice;
|
unitPrice: OrderDetailsFragment_lines_unitPrice;
|
||||||
thumbnail: OrderDetailsFragment_lines_thumbnail | null;
|
thumbnail: OrderDetailsFragment_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -239,9 +363,16 @@ export interface OrderDetailsFragment_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_subtotal {
|
export interface OrderDetailsFragment_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDetailsFragment_subtotal_gross;
|
gross: OrderDetailsFragment_subtotal_gross;
|
||||||
|
net: OrderDetailsFragment_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_total_gross {
|
export interface OrderDetailsFragment_total_gross {
|
||||||
|
@ -250,6 +381,12 @@ export interface OrderDetailsFragment_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_total_tax {
|
export interface OrderDetailsFragment_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -259,6 +396,7 @@ export interface OrderDetailsFragment_total_tax {
|
||||||
export interface OrderDetailsFragment_total {
|
export interface OrderDetailsFragment_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDetailsFragment_total_gross;
|
gross: OrderDetailsFragment_total_gross;
|
||||||
|
net: OrderDetailsFragment_total_net;
|
||||||
tax: OrderDetailsFragment_total_tax;
|
tax: OrderDetailsFragment_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,6 +412,24 @@ export interface OrderDetailsFragment_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetailsFragment_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDetailsFragment_undiscountedTotal_net;
|
||||||
|
gross: OrderDetailsFragment_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetailsFragment_user {
|
export interface OrderDetailsFragment_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -322,9 +478,11 @@ export interface OrderDetailsFragment {
|
||||||
metadata: (OrderDetailsFragment_metadata | null)[];
|
metadata: (OrderDetailsFragment_metadata | null)[];
|
||||||
privateMetadata: (OrderDetailsFragment_privateMetadata | null)[];
|
privateMetadata: (OrderDetailsFragment_privateMetadata | null)[];
|
||||||
billingAddress: OrderDetailsFragment_billingAddress | null;
|
billingAddress: OrderDetailsFragment_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderDetailsFragment_discounts[] | null;
|
||||||
events: (OrderDetailsFragment_events | null)[] | null;
|
events: (OrderDetailsFragment_events | null)[] | null;
|
||||||
fulfillments: (OrderDetailsFragment_fulfillments | null)[];
|
fulfillments: (OrderDetailsFragment_fulfillments | null)[];
|
||||||
lines: (OrderDetailsFragment_lines | null)[];
|
lines: (OrderDetailsFragment_lines | null)[];
|
||||||
|
@ -340,6 +498,7 @@ export interface OrderDetailsFragment {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderDetailsFragment_totalAuthorized;
|
totalAuthorized: OrderDetailsFragment_totalAuthorized;
|
||||||
totalCaptured: OrderDetailsFragment_totalCaptured;
|
totalCaptured: OrderDetailsFragment_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDetailsFragment_undiscountedTotal;
|
||||||
user: OrderDetailsFragment_user | null;
|
user: OrderDetailsFragment_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderDetailsFragment_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderDetailsFragment_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,12 +2,35 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderEventsEmailsEnum, OrderEventsEnum } from "./../../types/globalTypes";
|
import { OrderEventsEmailsEnum, DiscountValueTypeEnum, OrderEventsEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL fragment: OrderEventFragment
|
// GraphQL fragment: OrderEventFragment
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderEventFragment_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderEventFragment_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderEventFragment_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderEventFragment_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderEventFragment_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderEventFragment_relatedOrder {
|
export interface OrderEventFragment_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -22,6 +45,29 @@ export interface OrderEventFragment_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderEventFragment_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderEventFragment_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderEventFragment_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderEventFragment_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderEventFragment_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderEventFragment_lines_orderLine {
|
export interface OrderEventFragment_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -33,6 +79,7 @@ export interface OrderEventFragment_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderEventFragment_lines_discount | null;
|
||||||
orderLine: OrderEventFragment_lines_orderLine | null;
|
orderLine: OrderEventFragment_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,6 +92,7 @@ export interface OrderEventFragment {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderEventFragment_discount | null;
|
||||||
relatedOrder: OrderEventFragment_relatedOrder | null;
|
relatedOrder: OrderEventFragment_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { DiscountValueTypeEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL fragment: OrderLineFragment
|
// GraphQL fragment: OrderLineFragment
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
@ -12,6 +14,31 @@ export interface OrderLineFragment_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineFragment_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineFragment_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineFragment_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineFragment_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineFragment_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineFragment_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineFragment_unitPrice_gross {
|
export interface OrderLineFragment_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -44,6 +71,11 @@ export interface OrderLineFragment {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineFragment_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineFragment_undiscountedUnitPrice;
|
||||||
unitPrice: OrderLineFragment_unitPrice;
|
unitPrice: OrderLineFragment_unitPrice;
|
||||||
thumbnail: OrderLineFragment_thumbnail | null;
|
thumbnail: OrderLineFragment_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
|
import Typography from "@material-ui/core/Typography";
|
||||||
|
import CloseIcon from "@material-ui/icons/Close";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
theme => ({
|
||||||
|
container: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
justifyContent: "space-between",
|
||||||
|
alignItems: "center",
|
||||||
|
padding: theme.spacing(3, 3, 0, 3)
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ name: "ModalTitle" }
|
||||||
|
);
|
||||||
|
|
||||||
|
interface ModalTitleProps {
|
||||||
|
title: string;
|
||||||
|
onClose: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ModalTitle: React.FC<ModalTitleProps> = ({ title, onClose }) => {
|
||||||
|
const classes = useStyles({});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={classes.container}>
|
||||||
|
<Typography variant="h5">{title}</Typography>
|
||||||
|
<CloseIcon onClick={onClose} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ModalTitle;
|
|
@ -0,0 +1,67 @@
|
||||||
|
import Decorator from "@saleor/storybook/Decorator";
|
||||||
|
import { DiscountValueTypeEnum } from "@saleor/types/globalTypes";
|
||||||
|
import { storiesOf } from "@storybook/react";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
import OrderDiscountCommonModal, {
|
||||||
|
OrderDiscountCommonModalProps
|
||||||
|
} from "./OrderDiscountCommonModal";
|
||||||
|
import { ORDER_DISCOUNT } from "./types";
|
||||||
|
|
||||||
|
/* eslint-disable-next-line */
|
||||||
|
const emptyFunction = () => {};
|
||||||
|
|
||||||
|
const basicProps: OrderDiscountCommonModalProps = {
|
||||||
|
anchorRef: React.createRef(),
|
||||||
|
confirmStatus: "default",
|
||||||
|
dialogPlacement: "top-start",
|
||||||
|
existingDiscount: null,
|
||||||
|
isOpen: true,
|
||||||
|
maxPrice: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 15,
|
||||||
|
currency: "PLN"
|
||||||
|
},
|
||||||
|
modalType: ORDER_DISCOUNT,
|
||||||
|
onClose: emptyFunction,
|
||||||
|
onConfirm: emptyFunction,
|
||||||
|
onRemove: emptyFunction,
|
||||||
|
removeStatus: "default"
|
||||||
|
};
|
||||||
|
|
||||||
|
storiesOf("Orders / Order Discount common modal", module)
|
||||||
|
.addDecorator(Decorator)
|
||||||
|
.add("percentage without existing discount", () => (
|
||||||
|
<OrderDiscountCommonModal {...basicProps} />
|
||||||
|
))
|
||||||
|
.add("percentage with existing discount", () => (
|
||||||
|
<OrderDiscountCommonModal
|
||||||
|
{...basicProps}
|
||||||
|
existingDiscount={{
|
||||||
|
calculationMode: DiscountValueTypeEnum.PERCENTAGE,
|
||||||
|
reason: "Cause customers want it cheap",
|
||||||
|
value: 25
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))
|
||||||
|
.add("fixed amount with existing discount", () => (
|
||||||
|
<OrderDiscountCommonModal
|
||||||
|
{...basicProps}
|
||||||
|
existingDiscount={{
|
||||||
|
calculationMode: DiscountValueTypeEnum.FIXED,
|
||||||
|
reason: "Cause I say so",
|
||||||
|
value: 5.5
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))
|
||||||
|
.add("fixed amount with loading confirm", () => (
|
||||||
|
<OrderDiscountCommonModal
|
||||||
|
{...basicProps}
|
||||||
|
confirmStatus="loading"
|
||||||
|
existingDiscount={{
|
||||||
|
calculationMode: DiscountValueTypeEnum.FIXED,
|
||||||
|
reason: "Cause I say so",
|
||||||
|
value: 5.5
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
));
|
|
@ -0,0 +1,341 @@
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
import {
|
||||||
|
Card,
|
||||||
|
CardContent,
|
||||||
|
Popper,
|
||||||
|
TextField,
|
||||||
|
Typography
|
||||||
|
} from "@material-ui/core";
|
||||||
|
import { PopperPlacementType } from "@material-ui/core/Popper";
|
||||||
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
|
import DialogButtons from "@saleor/components/ActionDialog/DialogButtons";
|
||||||
|
import CardSpacer from "@saleor/components/CardSpacer";
|
||||||
|
import ConfirmButton, {
|
||||||
|
ConfirmButtonTransitionState
|
||||||
|
} from "@saleor/components/ConfirmButton";
|
||||||
|
import PriceField from "@saleor/components/PriceField";
|
||||||
|
import RadioGroupField from "@saleor/components/RadioGroupField";
|
||||||
|
import { Money } from "@saleor/fragments/types/Money";
|
||||||
|
import { buttonMessages } from "@saleor/intl";
|
||||||
|
import { DiscountValueTypeEnum } from "@saleor/types/globalTypes";
|
||||||
|
import React, {
|
||||||
|
ChangeEvent,
|
||||||
|
MutableRefObject,
|
||||||
|
useEffect,
|
||||||
|
useRef,
|
||||||
|
useState
|
||||||
|
} from "react";
|
||||||
|
import { useIntl } from "react-intl";
|
||||||
|
import { defineMessages } from "react-intl";
|
||||||
|
|
||||||
|
import ModalTitle from "./ModalTitle";
|
||||||
|
import {
|
||||||
|
ORDER_LINE_DISCOUNT,
|
||||||
|
OrderDiscountCommonInput,
|
||||||
|
OrderDiscountType
|
||||||
|
} from "./types";
|
||||||
|
|
||||||
|
const fullNumbersRegex = /^[0-9]*$/;
|
||||||
|
const numbersRegex = /([0-9]+\.?[0-9]*)$/;
|
||||||
|
const PERMIL = 0.01;
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
theme => ({
|
||||||
|
container: {
|
||||||
|
zIndex: 1000,
|
||||||
|
marginTop: theme.spacing(1)
|
||||||
|
},
|
||||||
|
removeButton: {
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: theme.palette.error.main
|
||||||
|
},
|
||||||
|
backgroundColor: theme.palette.error.main,
|
||||||
|
color: theme.palette.error.contrastText
|
||||||
|
},
|
||||||
|
radioContainer: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
justifyContent: "space-between",
|
||||||
|
alignItems: "center"
|
||||||
|
},
|
||||||
|
reasonInput: {
|
||||||
|
marginTop: theme.spacing(1),
|
||||||
|
width: "100%"
|
||||||
|
},
|
||||||
|
buttonWrapper: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
flex: 1
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ name: "OrderLineDiscountModal" }
|
||||||
|
);
|
||||||
|
|
||||||
|
const messages = defineMessages({
|
||||||
|
buttonLabel: {
|
||||||
|
defaultMessage: "Add",
|
||||||
|
description: "add button label"
|
||||||
|
},
|
||||||
|
itemDiscountTitle: {
|
||||||
|
defaultMessage: "Discount Item",
|
||||||
|
description: "dialog title item discount"
|
||||||
|
},
|
||||||
|
orderDiscountTitle: {
|
||||||
|
defaultMessage: "Discount this Order by:",
|
||||||
|
description: "dialog title order discount"
|
||||||
|
},
|
||||||
|
percentageOption: {
|
||||||
|
defaultMessage: "Percentage",
|
||||||
|
description: "percentage option"
|
||||||
|
},
|
||||||
|
fixedAmountOption: {
|
||||||
|
defaultMessage: "Fixed Amount",
|
||||||
|
description: "fixed amount"
|
||||||
|
},
|
||||||
|
invalidValue: {
|
||||||
|
defaultMessage: "Invalid value",
|
||||||
|
description: "value input helper text"
|
||||||
|
},
|
||||||
|
discountValueLabel: {
|
||||||
|
defaultMessage: "Discount value",
|
||||||
|
description: "value input label"
|
||||||
|
},
|
||||||
|
discountReasonLabel: {
|
||||||
|
defaultMessage: "Reason",
|
||||||
|
description: "discount reason input lavel"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export interface OrderDiscountCommonModalProps {
|
||||||
|
maxPrice: Money;
|
||||||
|
onConfirm: (discount: OrderDiscountCommonInput) => void;
|
||||||
|
onClose: () => void;
|
||||||
|
onRemove: () => void;
|
||||||
|
modalType: OrderDiscountType;
|
||||||
|
anchorRef: MutableRefObject<any>;
|
||||||
|
existingDiscount: OrderDiscountCommonInput;
|
||||||
|
dialogPlacement: PopperPlacementType;
|
||||||
|
isOpen: boolean;
|
||||||
|
confirmStatus: ConfirmButtonTransitionState;
|
||||||
|
removeStatus: ConfirmButtonTransitionState;
|
||||||
|
}
|
||||||
|
|
||||||
|
const OrderDiscountCommonModal: React.FC<OrderDiscountCommonModalProps> = ({
|
||||||
|
maxPrice = { amount: null, currency: "" },
|
||||||
|
onConfirm,
|
||||||
|
modalType,
|
||||||
|
anchorRef,
|
||||||
|
onClose,
|
||||||
|
onRemove,
|
||||||
|
existingDiscount,
|
||||||
|
dialogPlacement,
|
||||||
|
isOpen,
|
||||||
|
confirmStatus,
|
||||||
|
removeStatus
|
||||||
|
}) => {
|
||||||
|
const { currency, amount: maxAmount } = maxPrice;
|
||||||
|
|
||||||
|
const getInitialDiscountValue = (calculationMode: DiscountValueTypeEnum) => {
|
||||||
|
if (!existingDiscount?.value) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
const stringifiedValue = existingDiscount.value.toString();
|
||||||
|
|
||||||
|
if (calculationMode === DiscountValueTypeEnum.FIXED) {
|
||||||
|
return parseFloat(stringifiedValue).toFixed(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
return stringifiedValue;
|
||||||
|
};
|
||||||
|
|
||||||
|
const getInitialData = () => {
|
||||||
|
const calculationMode =
|
||||||
|
existingDiscount?.calculationMode || DiscountValueTypeEnum.PERCENTAGE;
|
||||||
|
|
||||||
|
return {
|
||||||
|
calculationMode,
|
||||||
|
reason: existingDiscount?.reason || "",
|
||||||
|
value: getInitialDiscountValue(calculationMode)
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
const initialData = getInitialData();
|
||||||
|
|
||||||
|
const [isValueError, setValueError] = useState<boolean>(false);
|
||||||
|
const [reason, setReason] = useState<string>(initialData.reason);
|
||||||
|
const [value, setValue] = useState<string>(initialData.value);
|
||||||
|
const [calculationMode, setCalculationMode] = useState<DiscountValueTypeEnum>(
|
||||||
|
initialData.calculationMode
|
||||||
|
);
|
||||||
|
const previousCalculationMode = useRef(calculationMode);
|
||||||
|
|
||||||
|
const classes = useStyles({});
|
||||||
|
const intl = useIntl();
|
||||||
|
|
||||||
|
const discountTypeChoices = [
|
||||||
|
{
|
||||||
|
label: intl.formatMessage(messages.percentageOption),
|
||||||
|
value: DiscountValueTypeEnum.PERCENTAGE
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: intl.formatMessage(messages.fixedAmountOption),
|
||||||
|
value: DiscountValueTypeEnum.FIXED
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
const isDiscountTypePercentage =
|
||||||
|
calculationMode === DiscountValueTypeEnum.PERCENTAGE;
|
||||||
|
|
||||||
|
const handleSetDiscountValue = (
|
||||||
|
event: React.ChangeEvent<HTMLInputElement>
|
||||||
|
) => {
|
||||||
|
const value = event.target.value;
|
||||||
|
|
||||||
|
handleSetError(value);
|
||||||
|
setValue(value);
|
||||||
|
};
|
||||||
|
|
||||||
|
const getParsedDiscountValue = () => parseFloat(value) || 0;
|
||||||
|
|
||||||
|
const isAmountTooLarge = () => {
|
||||||
|
const topAmount = isDiscountTypePercentage ? 100 : maxAmount;
|
||||||
|
|
||||||
|
return getParsedDiscountValue() > topAmount;
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleSetError = (value: string) => {
|
||||||
|
const regexToCheck = isDiscountTypePercentage
|
||||||
|
? fullNumbersRegex
|
||||||
|
: numbersRegex;
|
||||||
|
|
||||||
|
setValueError(!regexToCheck.test(value));
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleConfirm = () => {
|
||||||
|
onConfirm({
|
||||||
|
calculationMode,
|
||||||
|
reason,
|
||||||
|
value: getParsedDiscountValue()
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const setDefaultValues = () => {
|
||||||
|
setReason(initialData.reason);
|
||||||
|
setValue(initialData.value);
|
||||||
|
setCalculationMode(initialData.calculationMode);
|
||||||
|
setValueError(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
useEffect(setDefaultValues, [
|
||||||
|
existingDiscount?.value,
|
||||||
|
existingDiscount?.reason
|
||||||
|
]);
|
||||||
|
|
||||||
|
const handleValueConversion = () => {
|
||||||
|
if (getParsedDiscountValue() === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const changedFromPercentageToFixed =
|
||||||
|
previousCalculationMode.current === DiscountValueTypeEnum.PERCENTAGE &&
|
||||||
|
calculationMode === DiscountValueTypeEnum.FIXED;
|
||||||
|
|
||||||
|
const recalculatedValueFromPercentageToFixed = (
|
||||||
|
getParsedDiscountValue() *
|
||||||
|
PERMIL *
|
||||||
|
maxPrice.amount
|
||||||
|
).toFixed(2);
|
||||||
|
|
||||||
|
const recalculatedValueFromFixedToPercentage = Math.round(
|
||||||
|
(getParsedDiscountValue() * (1 / PERMIL)) / maxPrice.amount
|
||||||
|
).toString();
|
||||||
|
|
||||||
|
const recalculatedValue = changedFromPercentageToFixed
|
||||||
|
? recalculatedValueFromPercentageToFixed
|
||||||
|
: recalculatedValueFromFixedToPercentage;
|
||||||
|
|
||||||
|
handleSetError(recalculatedValue);
|
||||||
|
setValue(recalculatedValue);
|
||||||
|
};
|
||||||
|
|
||||||
|
useEffect(handleValueConversion, [calculationMode]);
|
||||||
|
|
||||||
|
const dialogTitle =
|
||||||
|
modalType === ORDER_LINE_DISCOUNT
|
||||||
|
? messages.itemDiscountTitle
|
||||||
|
: messages.orderDiscountTitle;
|
||||||
|
|
||||||
|
const valueFieldSymbol =
|
||||||
|
calculationMode === DiscountValueTypeEnum.FIXED ? currency : "%";
|
||||||
|
|
||||||
|
const isSubmitDisabled =
|
||||||
|
!getParsedDiscountValue() || isValueError || isAmountTooLarge();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Popper
|
||||||
|
open={isOpen}
|
||||||
|
anchorEl={anchorRef.current}
|
||||||
|
className={classes.container}
|
||||||
|
placement={dialogPlacement}
|
||||||
|
>
|
||||||
|
<Card>
|
||||||
|
<ModalTitle title={intl.formatMessage(dialogTitle)} onClose={onClose} />
|
||||||
|
<CardContent>
|
||||||
|
<RadioGroupField
|
||||||
|
innerContainerClassName={classes.radioContainer}
|
||||||
|
choices={discountTypeChoices}
|
||||||
|
name="discountType"
|
||||||
|
variant="inlineJustify"
|
||||||
|
value={calculationMode}
|
||||||
|
onChange={event => setCalculationMode(event.target.value)}
|
||||||
|
/>
|
||||||
|
<CardSpacer />
|
||||||
|
<PriceField
|
||||||
|
label={intl.formatMessage(messages.discountValueLabel)}
|
||||||
|
error={isValueError}
|
||||||
|
hint={isValueError && intl.formatMessage(messages.invalidValue)}
|
||||||
|
value={value}
|
||||||
|
onChange={handleSetDiscountValue}
|
||||||
|
currencySymbol={valueFieldSymbol}
|
||||||
|
/>
|
||||||
|
<CardSpacer />
|
||||||
|
<Typography>
|
||||||
|
{intl.formatMessage(messages.discountReasonLabel)}
|
||||||
|
</Typography>
|
||||||
|
<TextField
|
||||||
|
className={classes.reasonInput}
|
||||||
|
label={intl.formatMessage(messages.discountReasonLabel)}
|
||||||
|
value={reason}
|
||||||
|
onChange={(event: ChangeEvent<HTMLInputElement>) =>
|
||||||
|
setReason(event.target.value)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</CardContent>
|
||||||
|
<DialogButtons
|
||||||
|
onConfirm={handleConfirm}
|
||||||
|
onClose={onClose}
|
||||||
|
disabled={isSubmitDisabled}
|
||||||
|
showBackButton={false}
|
||||||
|
confirmButtonState={confirmStatus}
|
||||||
|
>
|
||||||
|
{existingDiscount && (
|
||||||
|
<div className={classes.buttonWrapper}>
|
||||||
|
<ConfirmButton
|
||||||
|
data-test="button-remove"
|
||||||
|
onClick={onRemove}
|
||||||
|
variant="contained"
|
||||||
|
className={classes.removeButton}
|
||||||
|
transitionState={removeStatus}
|
||||||
|
>
|
||||||
|
{intl.formatMessage(buttonMessages.remove)}
|
||||||
|
</ConfirmButton>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</DialogButtons>
|
||||||
|
</Card>
|
||||||
|
</Popper>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default OrderDiscountCommonModal;
|
2
src/orders/components/OrderDiscountCommonModal/index.ts
Normal file
2
src/orders/components/OrderDiscountCommonModal/index.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export { default } from "./OrderDiscountCommonModal";
|
||||||
|
export * from "./OrderDiscountCommonModal";
|
14
src/orders/components/OrderDiscountCommonModal/types.ts
Normal file
14
src/orders/components/OrderDiscountCommonModal/types.ts
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import { DiscountValueTypeEnum } from "@saleor/types/globalTypes";
|
||||||
|
|
||||||
|
export const ORDER_DISCOUNT = "add-order-discount";
|
||||||
|
export const ORDER_LINE_DISCOUNT = "add-order-line-discount";
|
||||||
|
|
||||||
|
export type OrderDiscountType =
|
||||||
|
| typeof ORDER_DISCOUNT
|
||||||
|
| typeof ORDER_LINE_DISCOUNT;
|
||||||
|
|
||||||
|
export interface OrderDiscountCommonInput {
|
||||||
|
value: number;
|
||||||
|
reason: string;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
}
|
|
@ -2,6 +2,10 @@ import Button from "@material-ui/core/Button";
|
||||||
import Card from "@material-ui/core/Card";
|
import Card from "@material-ui/core/Card";
|
||||||
import CardContent from "@material-ui/core/CardContent";
|
import CardContent from "@material-ui/core/CardContent";
|
||||||
import CardTitle from "@saleor/components/CardTitle";
|
import CardTitle from "@saleor/components/CardTitle";
|
||||||
|
import {
|
||||||
|
OrderDiscountContext,
|
||||||
|
OrderDiscountContextConsumerProps
|
||||||
|
} from "@saleor/products/components/OrderDiscountProviders/OrderDiscountProvider";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { FormattedMessage, useIntl } from "react-intl";
|
import { FormattedMessage, useIntl } from "react-intl";
|
||||||
|
|
||||||
|
@ -10,10 +14,9 @@ import { OrderDetails_order } from "../../types/OrderDetails";
|
||||||
import OrderDraftDetailsProducts, {
|
import OrderDraftDetailsProducts, {
|
||||||
FormData as OrderDraftDetailsProductsFormData
|
FormData as OrderDraftDetailsProductsFormData
|
||||||
} from "../OrderDraftDetailsProducts";
|
} from "../OrderDraftDetailsProducts";
|
||||||
import OrderDraftDetailsSummary from "../OrderDraftDetailsSummary/OrderDraftDetailsSummary";
|
import OrderDraftDetailsSummary from "../OrderDraftDetailsSummary";
|
||||||
|
|
||||||
interface OrderDraftDetailsProps {
|
interface OrderDraftDetailsProps {
|
||||||
disabled?: boolean;
|
|
||||||
order: OrderDetails_order;
|
order: OrderDetails_order;
|
||||||
onOrderLineAdd: () => void;
|
onOrderLineAdd: () => void;
|
||||||
onOrderLineChange: (
|
onOrderLineChange: (
|
||||||
|
@ -25,7 +28,6 @@ interface OrderDraftDetailsProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const OrderDraftDetails: React.FC<OrderDraftDetailsProps> = ({
|
const OrderDraftDetails: React.FC<OrderDraftDetailsProps> = ({
|
||||||
disabled,
|
|
||||||
order,
|
order,
|
||||||
onOrderLineAdd,
|
onOrderLineAdd,
|
||||||
onOrderLineChange,
|
onOrderLineChange,
|
||||||
|
@ -42,8 +44,7 @@ const OrderDraftDetails: React.FC<OrderDraftDetailsProps> = ({
|
||||||
description: "section header"
|
description: "section header"
|
||||||
})}
|
})}
|
||||||
toolbar={
|
toolbar={
|
||||||
!disabled &&
|
order?.channel.isActive && (
|
||||||
order?.channel?.isActive && (
|
|
||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="text"
|
variant="text"
|
||||||
|
@ -65,11 +66,15 @@ const OrderDraftDetails: React.FC<OrderDraftDetailsProps> = ({
|
||||||
/>
|
/>
|
||||||
{maybe(() => order.lines.length) !== 0 && (
|
{maybe(() => order.lines.length) !== 0 && (
|
||||||
<CardContent>
|
<CardContent>
|
||||||
|
<OrderDiscountContext.Consumer>
|
||||||
|
{(orderDiscountProps: OrderDiscountContextConsumerProps) => (
|
||||||
<OrderDraftDetailsSummary
|
<OrderDraftDetailsSummary
|
||||||
disabled={disabled}
|
|
||||||
order={order}
|
order={order}
|
||||||
onShippingMethodEdit={onShippingMethodEdit}
|
onShippingMethodEdit={onShippingMethodEdit}
|
||||||
|
{...orderDiscountProps}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
|
</OrderDiscountContext.Consumer>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
)}
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
|
|
|
@ -1,26 +1,20 @@
|
||||||
import IconButton from "@material-ui/core/IconButton";
|
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
import TableBody from "@material-ui/core/TableBody";
|
import TableBody from "@material-ui/core/TableBody";
|
||||||
import TableCell from "@material-ui/core/TableCell";
|
import TableCell from "@material-ui/core/TableCell";
|
||||||
import TableHead from "@material-ui/core/TableHead";
|
import TableHead from "@material-ui/core/TableHead";
|
||||||
import TableRow from "@material-ui/core/TableRow";
|
import TableRow from "@material-ui/core/TableRow";
|
||||||
import TextField from "@material-ui/core/TextField";
|
|
||||||
import Typography from "@material-ui/core/Typography";
|
|
||||||
import DeleteIcon from "@material-ui/icons/Delete";
|
|
||||||
import { DebounceForm } from "@saleor/components/DebounceForm";
|
|
||||||
import Form from "@saleor/components/Form";
|
|
||||||
import Money from "@saleor/components/Money";
|
|
||||||
import ResponsiveTable from "@saleor/components/ResponsiveTable";
|
import ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||||
import Skeleton from "@saleor/components/Skeleton";
|
import { AVATAR_MARGIN } from "@saleor/components/TableCellAvatar";
|
||||||
import TableCellAvatar, {
|
import {
|
||||||
AVATAR_MARGIN
|
OrderLineDiscountConsumer,
|
||||||
} from "@saleor/components/TableCellAvatar";
|
OrderLineDiscountContextConsumerProps
|
||||||
import createNonNegativeValueChangeHandler from "@saleor/utils/handlers/nonNegativeValueChangeHandler";
|
} from "@saleor/products/components/OrderDiscountProviders/OrderLineDiscountProvider";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
|
|
||||||
import { maybe, renderCollection } from "../../../misc";
|
import { maybe, renderCollection } from "../../../misc";
|
||||||
import { OrderDetails_order_lines } from "../../types/OrderDetails";
|
import { OrderDetails_order_lines } from "../../types/OrderDetails";
|
||||||
|
import TableLine from "./TableLine";
|
||||||
|
|
||||||
export interface FormData {
|
export interface FormData {
|
||||||
quantity: number;
|
quantity: number;
|
||||||
|
@ -113,99 +107,27 @@ const OrderDraftDetailsProducts: React.FC<OrderDraftDetailsProductsProps> = prop
|
||||||
</TableHead>
|
</TableHead>
|
||||||
)}
|
)}
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{maybe(() => lines.length) === 0 ? (
|
{!!lines?.length ? (
|
||||||
|
renderCollection(lines, line => (
|
||||||
|
<OrderLineDiscountConsumer key={line.id} orderLineId={line.id}>
|
||||||
|
{(
|
||||||
|
orderLineDiscountProps: OrderLineDiscountContextConsumerProps
|
||||||
|
) => (
|
||||||
|
<TableLine
|
||||||
|
{...orderLineDiscountProps}
|
||||||
|
line={line}
|
||||||
|
onOrderLineChange={onOrderLineChange}
|
||||||
|
onOrderLineRemove={onOrderLineRemove}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</OrderLineDiscountConsumer>
|
||||||
|
))
|
||||||
|
) : (
|
||||||
<TableRow>
|
<TableRow>
|
||||||
<TableCell colSpan={5}>
|
<TableCell colSpan={5}>
|
||||||
<FormattedMessage defaultMessage="No Products added to Order" />
|
<FormattedMessage defaultMessage="No Products added to Order" />
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
) : (
|
|
||||||
renderCollection(lines, line => (
|
|
||||||
<TableRow key={line ? line.id : "skeleton"}>
|
|
||||||
<TableCellAvatar
|
|
||||||
className={classes.colName}
|
|
||||||
thumbnail={maybe(() => line.thumbnail.url)}
|
|
||||||
>
|
|
||||||
{maybe(() => line.productName && line.productSku) ? (
|
|
||||||
<>
|
|
||||||
<>
|
|
||||||
<Typography variant="body2">
|
|
||||||
{line.productName}
|
|
||||||
</Typography>
|
|
||||||
<Typography variant="caption">
|
|
||||||
{line.productSku}
|
|
||||||
</Typography>
|
|
||||||
</>
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<Skeleton />
|
|
||||||
)}
|
|
||||||
</TableCellAvatar>
|
|
||||||
<TableCell className={classes.colQuantity}>
|
|
||||||
{maybe(() => line.quantity) ? (
|
|
||||||
<Form
|
|
||||||
initial={{ quantity: line.quantity }}
|
|
||||||
onSubmit={data => onOrderLineChange(line.id, data)}
|
|
||||||
>
|
|
||||||
{({ change, data, hasChanged, submit }) => {
|
|
||||||
const handleQuantityChange = createNonNegativeValueChangeHandler(
|
|
||||||
change
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<DebounceForm
|
|
||||||
change={handleQuantityChange}
|
|
||||||
submit={hasChanged ? submit : undefined}
|
|
||||||
time={200}
|
|
||||||
>
|
|
||||||
{debounce => (
|
|
||||||
<TextField
|
|
||||||
className={classes.quantityField}
|
|
||||||
fullWidth
|
|
||||||
name="quantity"
|
|
||||||
type="number"
|
|
||||||
value={data.quantity}
|
|
||||||
onChange={debounce}
|
|
||||||
onBlur={submit}
|
|
||||||
inputProps={{
|
|
||||||
min: 1
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</DebounceForm>
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
</Form>
|
|
||||||
) : (
|
|
||||||
<Skeleton />
|
|
||||||
)}
|
|
||||||
</TableCell>
|
|
||||||
<TableCell className={classes.colPrice}>
|
|
||||||
{maybe(() => line.unitPrice.net) ? (
|
|
||||||
<Money money={line.unitPrice.net} />
|
|
||||||
) : (
|
|
||||||
<Skeleton />
|
|
||||||
)}
|
|
||||||
</TableCell>
|
|
||||||
<TableCell className={classes.colTotal}>
|
|
||||||
{maybe(() => line.unitPrice.net && line.quantity) ? (
|
|
||||||
<Money
|
|
||||||
money={{
|
|
||||||
amount: line.unitPrice.net.amount * line.quantity,
|
|
||||||
currency: line.unitPrice.net.currency
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<Skeleton />
|
|
||||||
)}
|
|
||||||
</TableCell>
|
|
||||||
<TableCell className={classes.colAction}>
|
|
||||||
<IconButton onClick={() => onOrderLineRemove(line.id)}>
|
|
||||||
<DeleteIcon color="primary" />
|
|
||||||
</IconButton>
|
|
||||||
</TableCell>
|
|
||||||
</TableRow>
|
|
||||||
))
|
|
||||||
)}
|
)}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
</ResponsiveTable>
|
</ResponsiveTable>
|
||||||
|
|
155
src/orders/components/OrderDraftDetailsProducts/TableLine.tsx
Normal file
155
src/orders/components/OrderDraftDetailsProducts/TableLine.tsx
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
import IconButton from "@material-ui/core/IconButton";
|
||||||
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
|
import TableCell from "@material-ui/core/TableCell";
|
||||||
|
import TableRow from "@material-ui/core/TableRow";
|
||||||
|
import Typography from "@material-ui/core/Typography";
|
||||||
|
import DeleteIcon from "@material-ui/icons/Delete";
|
||||||
|
import Link from "@saleor/components/Link";
|
||||||
|
import Money from "@saleor/components/Money";
|
||||||
|
import TableCellAvatar, {
|
||||||
|
AVATAR_MARGIN
|
||||||
|
} from "@saleor/components/TableCellAvatar";
|
||||||
|
import { OrderLineDiscountContextConsumerProps } from "@saleor/products/components/OrderDiscountProviders/OrderLineDiscountProvider";
|
||||||
|
import React, { useRef } from "react";
|
||||||
|
|
||||||
|
import { maybe } from "../../../misc";
|
||||||
|
import { OrderDetails_order_lines } from "../../types/OrderDetails";
|
||||||
|
import OrderDiscountCommonModal from "../OrderDiscountCommonModal";
|
||||||
|
import { ORDER_LINE_DISCOUNT } from "../OrderDiscountCommonModal/types";
|
||||||
|
import TableLineForm, { FormData } from "./TableLineForm";
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
theme => ({
|
||||||
|
colAction: {
|
||||||
|
"&:last-child": {
|
||||||
|
paddingRight: 0
|
||||||
|
},
|
||||||
|
width: 76 + theme.spacing(0.5)
|
||||||
|
},
|
||||||
|
colName: {
|
||||||
|
width: "auto"
|
||||||
|
},
|
||||||
|
colNameLabel: {
|
||||||
|
marginLeft: AVATAR_MARGIN
|
||||||
|
},
|
||||||
|
colPrice: {
|
||||||
|
textAlign: "right",
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
colQuantity: {
|
||||||
|
textAlign: "right",
|
||||||
|
width: 80
|
||||||
|
},
|
||||||
|
colTotal: {
|
||||||
|
textAlign: "right",
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
strike: {
|
||||||
|
textDecoration: "line-through",
|
||||||
|
color: theme.palette.grey[400]
|
||||||
|
},
|
||||||
|
errorInfo: {
|
||||||
|
color: theme.palette.error.main
|
||||||
|
},
|
||||||
|
quantityField: {
|
||||||
|
"& input": {
|
||||||
|
padding: "12px 12px 10px",
|
||||||
|
textAlign: "right"
|
||||||
|
},
|
||||||
|
width: 60
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
tableLayout: "fixed"
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ name: "OrderDraftDetailsProducts" }
|
||||||
|
);
|
||||||
|
|
||||||
|
interface TableLineProps extends OrderLineDiscountContextConsumerProps {
|
||||||
|
line: OrderDetails_order_lines;
|
||||||
|
onOrderLineChange: (id: string, data: FormData) => void;
|
||||||
|
onOrderLineRemove: (id: string) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
const TableLine: React.FC<TableLineProps> = ({
|
||||||
|
line,
|
||||||
|
onOrderLineChange,
|
||||||
|
onOrderLineRemove,
|
||||||
|
orderLineDiscount,
|
||||||
|
addOrderLineDiscount,
|
||||||
|
removeOrderLineDiscount,
|
||||||
|
openDialog,
|
||||||
|
closeDialog,
|
||||||
|
orderLineDiscountRemoveStatus,
|
||||||
|
isDialogOpen,
|
||||||
|
undiscountedPrice,
|
||||||
|
discountedPrice,
|
||||||
|
orderLineDiscountUpdateStatus
|
||||||
|
}) => {
|
||||||
|
const classes = useStyles({});
|
||||||
|
const popperAnchorRef = useRef<HTMLTableRowElement | null>(null);
|
||||||
|
const { id, thumbnail, productName, productSku, quantity } = line;
|
||||||
|
|
||||||
|
const getUnitPriceLabel = () => {
|
||||||
|
const money = <Money money={undiscountedPrice} />;
|
||||||
|
|
||||||
|
if (!!orderLineDiscount) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Typography className={classes.strike}>{money}</Typography>
|
||||||
|
<Link onClick={openDialog}>
|
||||||
|
<Money money={discountedPrice} />
|
||||||
|
</Link>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return <Link onClick={openDialog}>{money}</Link>;
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<TableRow key={id}>
|
||||||
|
<TableCellAvatar
|
||||||
|
className={classes.colName}
|
||||||
|
thumbnail={maybe(() => thumbnail.url)}
|
||||||
|
>
|
||||||
|
<Typography variant="body2">{productName}</Typography>
|
||||||
|
<Typography variant="caption">{productSku}</Typography>
|
||||||
|
</TableCellAvatar>
|
||||||
|
<TableCell className={classes.colQuantity}>
|
||||||
|
<TableLineForm line={line} onOrderLineChange={onOrderLineChange} />
|
||||||
|
</TableCell>
|
||||||
|
<TableCell className={classes.colPrice} ref={popperAnchorRef}>
|
||||||
|
{getUnitPriceLabel()}
|
||||||
|
<OrderDiscountCommonModal
|
||||||
|
isOpen={isDialogOpen}
|
||||||
|
anchorRef={popperAnchorRef}
|
||||||
|
onClose={closeDialog}
|
||||||
|
modalType={ORDER_LINE_DISCOUNT}
|
||||||
|
maxPrice={undiscountedPrice}
|
||||||
|
onConfirm={addOrderLineDiscount}
|
||||||
|
onRemove={removeOrderLineDiscount}
|
||||||
|
existingDiscount={orderLineDiscount}
|
||||||
|
confirmStatus={orderLineDiscountUpdateStatus}
|
||||||
|
removeStatus={orderLineDiscountRemoveStatus}
|
||||||
|
dialogPlacement="bottom-end"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell className={classes.colTotal}>
|
||||||
|
<Money
|
||||||
|
money={{
|
||||||
|
amount: discountedPrice.amount * quantity,
|
||||||
|
currency: discountedPrice.currency
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell className={classes.colAction}>
|
||||||
|
<IconButton onClick={() => onOrderLineRemove(id)}>
|
||||||
|
<DeleteIcon color="primary" />
|
||||||
|
</IconButton>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default TableLine;
|
|
@ -0,0 +1,71 @@
|
||||||
|
import { makeStyles, TextField } from "@material-ui/core";
|
||||||
|
import DebounceForm from "@saleor/components/DebounceForm";
|
||||||
|
import Form from "@saleor/components/Form";
|
||||||
|
import { OrderDetails_order_lines } from "@saleor/orders/types/OrderDetails";
|
||||||
|
import createNonNegativeValueChangeHandler from "@saleor/utils/handlers/nonNegativeValueChangeHandler";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
() => ({
|
||||||
|
quantityField: {
|
||||||
|
"& input": {
|
||||||
|
padding: "12px 12px 10px",
|
||||||
|
textAlign: "right"
|
||||||
|
},
|
||||||
|
width: 60
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ name: "TableLineForm" }
|
||||||
|
);
|
||||||
|
|
||||||
|
export interface FormData {
|
||||||
|
quantity: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface TableLineFormProps {
|
||||||
|
line: OrderDetails_order_lines;
|
||||||
|
onOrderLineChange: (id: string, data: FormData) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
const TableLineForm: React.FC<TableLineFormProps> = ({
|
||||||
|
line,
|
||||||
|
onOrderLineChange
|
||||||
|
}) => {
|
||||||
|
const classes = useStyles({});
|
||||||
|
const { id, quantity } = line;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Form initial={{ quantity }} onSubmit={data => onOrderLineChange(id, data)}>
|
||||||
|
{({ change, data, hasChanged, submit }) => {
|
||||||
|
const handleQuantityChange = createNonNegativeValueChangeHandler(
|
||||||
|
change
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<DebounceForm
|
||||||
|
change={handleQuantityChange}
|
||||||
|
submit={hasChanged ? submit : undefined}
|
||||||
|
time={200}
|
||||||
|
>
|
||||||
|
{debounce => (
|
||||||
|
<TextField
|
||||||
|
className={classes.quantityField}
|
||||||
|
fullWidth
|
||||||
|
name="quantity"
|
||||||
|
type="number"
|
||||||
|
value={data.quantity}
|
||||||
|
onChange={debounce}
|
||||||
|
onBlur={submit}
|
||||||
|
inputProps={{
|
||||||
|
min: 1
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</DebounceForm>
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
</Form>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default TableLineForm;
|
|
@ -1,12 +1,18 @@
|
||||||
|
import { Typography } from "@material-ui/core";
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
|
import HorizontalSpacer from "@saleor/apps/components/HorizontalSpacer";
|
||||||
import Link from "@saleor/components/Link";
|
import Link from "@saleor/components/Link";
|
||||||
import Money from "@saleor/components/Money";
|
import Money from "@saleor/components/Money";
|
||||||
import Skeleton from "@saleor/components/Skeleton";
|
import { OrderDiscountContextConsumerProps } from "@saleor/products/components/OrderDiscountProviders/OrderDiscountProvider";
|
||||||
import React from "react";
|
import { OrderDiscountData } from "@saleor/products/components/OrderDiscountProviders/types";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { DiscountValueTypeEnum } from "@saleor/types/globalTypes";
|
||||||
|
import React, { useRef } from "react";
|
||||||
|
import { useIntl } from "react-intl";
|
||||||
|
import { defineMessages } from "react-intl";
|
||||||
|
|
||||||
import { maybe } from "../../../misc";
|
|
||||||
import { OrderDetails_order } from "../../types/OrderDetails";
|
import { OrderDetails_order } from "../../types/OrderDetails";
|
||||||
|
import OrderDiscountCommonModal from "../OrderDiscountCommonModal";
|
||||||
|
import { ORDER_DISCOUNT } from "../OrderDiscountCommonModal/types";
|
||||||
|
|
||||||
const useStyles = makeStyles(
|
const useStyles = makeStyles(
|
||||||
theme => ({
|
theme => ({
|
||||||
|
@ -17,125 +23,234 @@ const useStyles = makeStyles(
|
||||||
},
|
},
|
||||||
textRight: {
|
textRight: {
|
||||||
textAlign: "right"
|
textAlign: "right"
|
||||||
|
},
|
||||||
|
subtitle: {
|
||||||
|
color: theme.palette.grey[500],
|
||||||
|
paddingRight: theme.spacing(1)
|
||||||
|
},
|
||||||
|
relativeRow: {
|
||||||
|
position: "relative"
|
||||||
|
},
|
||||||
|
percentDiscountLabelContainer: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
alignItems: "baseline",
|
||||||
|
justifyContent: "flex-end"
|
||||||
|
},
|
||||||
|
shippingMethodContainer: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
alignItems: "baseline"
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
{ name: "OrderDraftDetailsSummary" }
|
{ name: "OrderDraftDetailsSummary" }
|
||||||
);
|
);
|
||||||
|
|
||||||
interface OrderDraftDetailsSummaryProps {
|
const messages = defineMessages({
|
||||||
|
addCustomerInfo: {
|
||||||
|
defaultMessage: "add customer first",
|
||||||
|
description: "add customer first label"
|
||||||
|
},
|
||||||
|
subtotal: {
|
||||||
|
defaultMessage: "Subtotal",
|
||||||
|
description: "subtotal price"
|
||||||
|
},
|
||||||
|
addDiscount: {
|
||||||
|
defaultMessage: "Add Discount",
|
||||||
|
description: "add discount button"
|
||||||
|
},
|
||||||
|
discount: {
|
||||||
|
defaultMessage: "Discount",
|
||||||
|
description: "discount button"
|
||||||
|
},
|
||||||
|
addShippingCarrier: {
|
||||||
|
defaultMessage: "Add shipping carrier",
|
||||||
|
description: "add shipping carrier button"
|
||||||
|
},
|
||||||
|
noShippingCarriers: {
|
||||||
|
defaultMessage: "No applicable shipping carriers",
|
||||||
|
description: "no shipping carriers title"
|
||||||
|
},
|
||||||
|
total: {
|
||||||
|
defaultMessage: "Total",
|
||||||
|
description: "total price"
|
||||||
|
},
|
||||||
|
taxes: {
|
||||||
|
defaultMessage: "Taxes (VAT included)",
|
||||||
|
description: "taxes title"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const PRICE_PLACEHOLDER = "---";
|
||||||
|
|
||||||
|
interface OrderDraftDetailsSummaryProps
|
||||||
|
extends OrderDiscountContextConsumerProps {
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
order: OrderDetails_order;
|
order: OrderDetails_order;
|
||||||
onShippingMethodEdit: () => void;
|
onShippingMethodEdit: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const OrderDraftDetailsSummary: React.FC<OrderDraftDetailsSummaryProps> = props => {
|
const OrderDraftDetailsSummary: React.FC<OrderDraftDetailsSummaryProps> = props => {
|
||||||
const { disabled, order, onShippingMethodEdit } = props;
|
const {
|
||||||
|
order,
|
||||||
|
onShippingMethodEdit,
|
||||||
|
orderDiscount,
|
||||||
|
addOrderDiscount,
|
||||||
|
removeOrderDiscount,
|
||||||
|
openDialog,
|
||||||
|
closeDialog,
|
||||||
|
isDialogOpen,
|
||||||
|
orderDiscountAddStatus,
|
||||||
|
orderDiscountRemoveStatus,
|
||||||
|
undiscountedPrice
|
||||||
|
} = props;
|
||||||
|
|
||||||
|
const intl = useIntl();
|
||||||
const classes = useStyles(props);
|
const classes = useStyles(props);
|
||||||
|
|
||||||
|
const popperAnchorRef = useRef<HTMLTableRowElement | null>(null);
|
||||||
|
|
||||||
|
if (!order) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {
|
||||||
|
subtotal,
|
||||||
|
total,
|
||||||
|
shippingMethod,
|
||||||
|
shippingMethodName,
|
||||||
|
availableShippingMethods,
|
||||||
|
shippingPrice,
|
||||||
|
shippingAddress,
|
||||||
|
isShippingRequired
|
||||||
|
} = order;
|
||||||
|
|
||||||
|
const hasChosenShippingMethod =
|
||||||
|
shippingMethod !== null && shippingMethodName !== null;
|
||||||
|
|
||||||
|
const hasAvailableShippingMethods =
|
||||||
|
!!availableShippingMethods?.length || isShippingRequired;
|
||||||
|
|
||||||
|
const discountTitle = orderDiscount
|
||||||
|
? messages.discount
|
||||||
|
: messages.addDiscount;
|
||||||
|
|
||||||
|
const getOrderDiscountLabel = (orderDiscountData: OrderDiscountData) => {
|
||||||
|
if (!orderDiscountData) {
|
||||||
|
return PRICE_PLACEHOLDER;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {
|
||||||
|
value: discountValue,
|
||||||
|
calculationMode,
|
||||||
|
amount: discountAmount
|
||||||
|
} = orderDiscountData;
|
||||||
|
const currency = total.gross.currency;
|
||||||
|
|
||||||
|
if (calculationMode === DiscountValueTypeEnum.PERCENTAGE) {
|
||||||
|
return (
|
||||||
|
<div className={classes.percentDiscountLabelContainer}>
|
||||||
|
<Typography
|
||||||
|
className={classes.subtitle}
|
||||||
|
>{`(${discountValue}%)`}</Typography>
|
||||||
|
<Money money={discountAmount} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return <Money money={{ amount: discountValue, currency }} />;
|
||||||
|
};
|
||||||
|
|
||||||
|
const getShippingMethodComponent = () => {
|
||||||
|
if (hasChosenShippingMethod) {
|
||||||
|
return (
|
||||||
|
<Link onClick={onShippingMethodEdit}>{`${shippingMethodName}`}</Link>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const shippingCarrierBase = intl.formatMessage(messages.addShippingCarrier);
|
||||||
|
|
||||||
|
if (!!shippingAddress) {
|
||||||
|
return <Link onClick={onShippingMethodEdit}>{shippingCarrierBase}</Link>;
|
||||||
|
}
|
||||||
|
|
||||||
|
const addCustomerInfo = intl.formatMessage(messages.addCustomerInfo);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={classes.shippingMethodContainer}>
|
||||||
|
<Link underline disabled onClick={onShippingMethodEdit}>
|
||||||
|
{shippingCarrierBase}
|
||||||
|
</Link>
|
||||||
|
<HorizontalSpacer />
|
||||||
|
<Typography variant="caption">{`(${addCustomerInfo})`}</Typography>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<table className={classes.root}>
|
<table className={classes.root}>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr className={classes.relativeRow} ref={popperAnchorRef}>
|
||||||
{maybe(() => order.subtotal) ? (
|
|
||||||
<>
|
|
||||||
<td>
|
<td>
|
||||||
<FormattedMessage
|
<Link onClick={openDialog}>
|
||||||
defaultMessage="Subtotal"
|
{intl.formatMessage(discountTitle)}
|
||||||
description="subtotal price or an order"
|
</Link>
|
||||||
|
<OrderDiscountCommonModal
|
||||||
|
dialogPlacement="bottom-start"
|
||||||
|
modalType={ORDER_DISCOUNT}
|
||||||
|
anchorRef={popperAnchorRef}
|
||||||
|
existingDiscount={orderDiscount}
|
||||||
|
maxPrice={undiscountedPrice}
|
||||||
|
isOpen={isDialogOpen}
|
||||||
|
onConfirm={addOrderDiscount}
|
||||||
|
onClose={closeDialog}
|
||||||
|
onRemove={removeOrderDiscount}
|
||||||
|
confirmStatus={orderDiscountAddStatus}
|
||||||
|
removeStatus={orderDiscountRemoveStatus}
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td className={classes.textRight}>
|
<td className={classes.textRight}>
|
||||||
<Money money={order.subtotal.gross} />
|
{getOrderDiscountLabel(orderDiscount)}
|
||||||
</td>
|
</td>
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<td colSpan={2}>
|
|
||||||
<Skeleton />
|
|
||||||
</td>
|
|
||||||
)}
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
{order &&
|
<td>{intl.formatMessage(messages.subtotal)}</td>
|
||||||
order.shippingMethod !== undefined &&
|
|
||||||
order.shippingMethodName !== undefined ? (
|
|
||||||
order.shippingMethod === null ? (
|
|
||||||
order.availableShippingMethods &&
|
|
||||||
order.availableShippingMethods.length > 0 &&
|
|
||||||
!disabled ? (
|
|
||||||
<td>
|
|
||||||
<Link onClick={onShippingMethodEdit}>
|
|
||||||
<FormattedMessage
|
|
||||||
defaultMessage="Add shipping carrier"
|
|
||||||
description="button"
|
|
||||||
/>
|
|
||||||
</Link>
|
|
||||||
</td>
|
|
||||||
) : (
|
|
||||||
<td>
|
|
||||||
<FormattedMessage defaultMessage="No applicable shipping carriers" />
|
|
||||||
</td>
|
|
||||||
)
|
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<td>
|
|
||||||
<Link onClick={onShippingMethodEdit}>
|
|
||||||
{order.shippingMethodName}
|
|
||||||
</Link>
|
|
||||||
</td>
|
|
||||||
<td className={classes.textRight}>
|
<td className={classes.textRight}>
|
||||||
{maybe(() => order.shippingPrice) ? (
|
<Money money={subtotal.gross} />
|
||||||
<Money money={order.shippingPrice.gross} />
|
|
||||||
) : (
|
|
||||||
"---"
|
|
||||||
)}
|
|
||||||
</td>
|
</td>
|
||||||
</>
|
|
||||||
)
|
|
||||||
) : (
|
|
||||||
<td colSpan={2}>
|
|
||||||
<Skeleton />
|
|
||||||
</td>
|
|
||||||
)}
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
{maybe(() => order.total.tax) !== undefined ? (
|
{hasAvailableShippingMethods && (
|
||||||
<>
|
<td>{getShippingMethodComponent()}</td>
|
||||||
<td>
|
)}
|
||||||
<FormattedMessage defaultMessage="Taxes (VAT included)" />
|
|
||||||
|
{!hasAvailableShippingMethods && (
|
||||||
|
<td>{intl.formatMessage(messages.noShippingCarriers)}</td>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<td className={classes.textRight}>
|
||||||
|
{hasChosenShippingMethod ? (
|
||||||
|
<Money money={shippingPrice.gross} />
|
||||||
|
) : (
|
||||||
|
PRICE_PLACEHOLDER
|
||||||
|
)}
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{intl.formatMessage(messages.taxes)}</td>
|
||||||
<td className={classes.textRight}>
|
<td className={classes.textRight}>
|
||||||
<Money money={order.total.tax} />
|
<Money money={order.total.tax} />
|
||||||
</td>
|
</td>
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<td colSpan={2}>
|
|
||||||
<Skeleton />
|
|
||||||
</td>
|
|
||||||
)}
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
{maybe(() => order.total.gross) !== undefined ? (
|
<td>{intl.formatMessage(messages.total)}</td>
|
||||||
<>
|
|
||||||
<td>
|
|
||||||
<FormattedMessage
|
|
||||||
defaultMessage="Total"
|
|
||||||
description="total price of an order"
|
|
||||||
/>
|
|
||||||
</td>
|
|
||||||
<td className={classes.textRight}>
|
<td className={classes.textRight}>
|
||||||
<Money money={order.total.gross} />
|
<Money money={total.gross} />
|
||||||
</td>
|
</td>
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<td colSpan={2}>
|
|
||||||
<Skeleton />
|
|
||||||
</td>
|
|
||||||
)}
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
OrderDraftDetailsSummary.displayName = "OrderDraftDetailsSummary";
|
|
||||||
export default OrderDraftDetailsSummary;
|
export default OrderDraftDetailsSummary;
|
||||||
|
|
|
@ -130,7 +130,6 @@ const OrderDraftPage: React.FC<OrderDraftPageProps> = props => {
|
||||||
<Grid>
|
<Grid>
|
||||||
<div>
|
<div>
|
||||||
<OrderDraftDetails
|
<OrderDraftDetails
|
||||||
disabled={!order?.channel}
|
|
||||||
order={order}
|
order={order}
|
||||||
onOrderLineAdd={onOrderLineAdd}
|
onOrderLineAdd={onOrderLineAdd}
|
||||||
onOrderLineChange={onOrderLineChange}
|
onOrderLineChange={onOrderLineChange}
|
||||||
|
|
|
@ -0,0 +1,106 @@
|
||||||
|
import { Typography } from "@material-ui/core";
|
||||||
|
import { makeStyles } from "@material-ui/styles";
|
||||||
|
import HorizontalSpacer from "@saleor/apps/components/HorizontalSpacer";
|
||||||
|
import CardSpacer from "@saleor/components/CardSpacer";
|
||||||
|
import { TimelineEvent } from "@saleor/components/Timeline";
|
||||||
|
import { TitleElement } from "@saleor/components/Timeline/TimelineEventHeader";
|
||||||
|
import { OrderDetails_order_events } from "@saleor/orders/types/OrderDetails";
|
||||||
|
import { OrderEventsEnum } from "@saleor/types/globalTypes";
|
||||||
|
import React from "react";
|
||||||
|
import { defineMessages, useIntl } from "react-intl";
|
||||||
|
|
||||||
|
import Label from "../Label";
|
||||||
|
import MoneySection, { MoneySectionType } from "./MoneySection";
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
() => ({
|
||||||
|
horizontalContainer: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
justifyContent: "space-between",
|
||||||
|
alignItems: "baseline",
|
||||||
|
width: "100%"
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ name: "ExtendedDiscountTimelineEvent" }
|
||||||
|
);
|
||||||
|
|
||||||
|
export const messages = defineMessages({
|
||||||
|
reasonLabel: {
|
||||||
|
defaultMessage: "Reason for discount",
|
||||||
|
description: "reason for discount label"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
interface ExtendedTimelineEventProps {
|
||||||
|
event: OrderDetails_order_events;
|
||||||
|
titleElements: TitleElement[];
|
||||||
|
}
|
||||||
|
|
||||||
|
const ExtendedDiscountTimelineEvent: React.FC<ExtendedTimelineEventProps> = ({
|
||||||
|
event,
|
||||||
|
titleElements
|
||||||
|
}) => {
|
||||||
|
const classes = useStyles({});
|
||||||
|
const intl = useIntl();
|
||||||
|
|
||||||
|
const { lines, date, type } = event;
|
||||||
|
|
||||||
|
const parsedDiscount =
|
||||||
|
type === OrderEventsEnum.ORDER_LINE_DISCOUNT_UPDATED
|
||||||
|
? lines[0].discount
|
||||||
|
: event.discount;
|
||||||
|
|
||||||
|
const {
|
||||||
|
valueType: calculationMode,
|
||||||
|
value,
|
||||||
|
reason,
|
||||||
|
amount: moneyData,
|
||||||
|
oldValueType: oldCalculationMode,
|
||||||
|
oldValue,
|
||||||
|
oldAmount: oldMoneyData
|
||||||
|
} = parsedDiscount;
|
||||||
|
|
||||||
|
const shouldDisplayOldNewSections = !!oldValue;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<TimelineEvent date={date} titleElements={titleElements}>
|
||||||
|
{shouldDisplayOldNewSections && (
|
||||||
|
<div className={classes.horizontalContainer}>
|
||||||
|
<MoneySection
|
||||||
|
sectionType={MoneySectionType.NEW}
|
||||||
|
value={value}
|
||||||
|
moneyData={moneyData}
|
||||||
|
calculationMode={calculationMode}
|
||||||
|
/>
|
||||||
|
<HorizontalSpacer spacing={4} />
|
||||||
|
<MoneySection
|
||||||
|
sectionType={MoneySectionType.OLD}
|
||||||
|
value={oldValue}
|
||||||
|
moneyData={oldMoneyData}
|
||||||
|
calculationMode={oldCalculationMode}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{!shouldDisplayOldNewSections && (
|
||||||
|
<MoneySection
|
||||||
|
sectionType={MoneySectionType.ONLY}
|
||||||
|
value={value}
|
||||||
|
moneyData={moneyData}
|
||||||
|
calculationMode={calculationMode}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<CardSpacer />
|
||||||
|
{!!reason && (
|
||||||
|
<>
|
||||||
|
<Label text={intl.formatMessage(messages.reasonLabel)} />
|
||||||
|
<Typography>{reason}</Typography>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</TimelineEvent>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ExtendedDiscountTimelineEvent;
|
|
@ -0,0 +1,106 @@
|
||||||
|
import { Typography } from "@material-ui/core";
|
||||||
|
import { makeStyles } from "@material-ui/styles";
|
||||||
|
import HorizontalSpacer from "@saleor/apps/components/HorizontalSpacer";
|
||||||
|
import { Money } from "@saleor/fragments/types/Money";
|
||||||
|
import { DiscountValueTypeEnum } from "@saleor/types/globalTypes";
|
||||||
|
import React from "react";
|
||||||
|
import { defineMessages, useIntl } from "react-intl";
|
||||||
|
|
||||||
|
import Label from "../Label";
|
||||||
|
|
||||||
|
const useStyles = makeStyles(
|
||||||
|
() => ({
|
||||||
|
container: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "column"
|
||||||
|
},
|
||||||
|
horizontalContainer: {
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
alignItems: "baseline"
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{ name: "MoneySection" }
|
||||||
|
);
|
||||||
|
|
||||||
|
export const messages = defineMessages({
|
||||||
|
discount: {
|
||||||
|
defaultMessage: "discount",
|
||||||
|
description: "discount value",
|
||||||
|
id: "discount value id"
|
||||||
|
},
|
||||||
|
fixedAmount: {
|
||||||
|
defaultMessage: "Fixed amount",
|
||||||
|
description: "Fixed amount subtitle",
|
||||||
|
id: "fixed amount subtitle id"
|
||||||
|
},
|
||||||
|
|
||||||
|
newDiscountSectionTitle: {
|
||||||
|
defaultMessage: "New discount value",
|
||||||
|
description: "new discount label",
|
||||||
|
id: "new discount label id"
|
||||||
|
},
|
||||||
|
oldDiscountSectionTitle: {
|
||||||
|
defaultMessage: "Previous discount value",
|
||||||
|
description: "Previous discount label",
|
||||||
|
id: "Previous discount label id"
|
||||||
|
},
|
||||||
|
onlyDiscountSectionTitle: {
|
||||||
|
defaultMessage: "discount value",
|
||||||
|
description: "discount value label",
|
||||||
|
id: "discount value label id"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export enum MoneySectionType {
|
||||||
|
OLD = "old",
|
||||||
|
NEW = "new",
|
||||||
|
ONLY = "only"
|
||||||
|
}
|
||||||
|
|
||||||
|
interface MoneySectionProps {
|
||||||
|
value?: number;
|
||||||
|
calculationMode?: DiscountValueTypeEnum;
|
||||||
|
moneyData?: Money;
|
||||||
|
sectionType?: MoneySectionType;
|
||||||
|
}
|
||||||
|
|
||||||
|
const MoneySection: React.FC<MoneySectionProps> = ({
|
||||||
|
value,
|
||||||
|
calculationMode,
|
||||||
|
moneyData,
|
||||||
|
sectionType = MoneySectionType.ONLY
|
||||||
|
}) => {
|
||||||
|
const classes = useStyles({});
|
||||||
|
const intl = useIntl();
|
||||||
|
|
||||||
|
if (!value) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const getDiscountSubitle = () => {
|
||||||
|
const isDiscountedByPercent =
|
||||||
|
calculationMode === DiscountValueTypeEnum.PERCENTAGE;
|
||||||
|
|
||||||
|
if (isDiscountedByPercent) {
|
||||||
|
return `${value}% ${intl.formatMessage(messages.discount)}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return intl.formatMessage(messages.fixedAmount);
|
||||||
|
};
|
||||||
|
|
||||||
|
const sectionTitleMessageKey = `${sectionType}DiscountSectionTitle`;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={classes.container}>
|
||||||
|
<Label text={intl.formatMessage(messages[sectionTitleMessageKey])} />
|
||||||
|
<div className={classes.horizontalContainer}>
|
||||||
|
<Typography>{`${moneyData.amount} ${moneyData.currency}`}</Typography>
|
||||||
|
<HorizontalSpacer />
|
||||||
|
<Label text={getDiscountSubitle()} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default MoneySection;
|
|
@ -0,0 +1,2 @@
|
||||||
|
export { default } from "./ExtendedDiscountTimelineEvent";
|
||||||
|
export * from "./ExtendedDiscountTimelineEvent";
|
|
@ -1,15 +1,20 @@
|
||||||
import { makeStyles, Typography } from "@material-ui/core";
|
import { makeStyles, Typography } from "@material-ui/core";
|
||||||
import Money from "@saleor/components/Money";
|
import Money from "@saleor/components/Money";
|
||||||
import { TimelineEvent } from "@saleor/components/Timeline";
|
import { TimelineEvent } from "@saleor/components/Timeline";
|
||||||
import { orderUrl } from "@saleor/orders/urls";
|
|
||||||
import { staffMemberDetailsUrl } from "@saleor/staff/urls";
|
|
||||||
import { OrderEventsEnum } from "@saleor/types/globalTypes";
|
import { OrderEventsEnum } from "@saleor/types/globalTypes";
|
||||||
import classNames from "classnames";
|
|
||||||
import camelCase from "lodash/camelCase";
|
import camelCase from "lodash/camelCase";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { defineMessages, useIntl } from "react-intl";
|
import { defineMessages, useIntl } from "react-intl";
|
||||||
|
|
||||||
import { OrderDetails_order_events } from "../../types/OrderDetails";
|
import { OrderDetails_order_events } from "../../types/OrderDetails";
|
||||||
|
import ExtendedDiscountTimelineEvent from "./ExtendedDiscountTimelineEvent";
|
||||||
|
import Label from "./Label";
|
||||||
|
import {
|
||||||
|
getEmployeeNameLink,
|
||||||
|
getOrderNumberLink,
|
||||||
|
hasOrderLineDiscountWithNoPreviousValue,
|
||||||
|
isTimelineEventOfDiscountType
|
||||||
|
} from "./utils";
|
||||||
|
|
||||||
const useStyles = makeStyles(
|
const useStyles = makeStyles(
|
||||||
theme => ({
|
theme => ({
|
||||||
|
@ -79,6 +84,31 @@ export const titles = defineMessages({
|
||||||
description: "returned event title",
|
description: "returned event title",
|
||||||
id: "event title returned"
|
id: "event title returned"
|
||||||
},
|
},
|
||||||
|
orderDiscountAdded: {
|
||||||
|
defaultMessage: "Order was discounted by",
|
||||||
|
description: "order was discounted event title",
|
||||||
|
id: "event title order discounted"
|
||||||
|
},
|
||||||
|
orderDiscountAutomaticallyUpdated: {
|
||||||
|
defaultMessage: "Order discount was updated automatically updated",
|
||||||
|
description: "order discount was updated automatically event title",
|
||||||
|
id: "event title order discount auto updated"
|
||||||
|
},
|
||||||
|
orderDiscountUpdated: {
|
||||||
|
defaultMessage: "Order discount was updated by",
|
||||||
|
description: "order discount was updated event title",
|
||||||
|
id: "event title order discount updated"
|
||||||
|
},
|
||||||
|
orderLineDiscountAdded: {
|
||||||
|
defaultMessage: "{productName} discount was added by ",
|
||||||
|
description: "order line discount added title",
|
||||||
|
id: "event title order line discount added"
|
||||||
|
},
|
||||||
|
orderLineDiscountUpdated: {
|
||||||
|
defaultMessage: "{productName} discount was updated by ",
|
||||||
|
description: "order line discount updated title",
|
||||||
|
id: "event title order line discount updated"
|
||||||
|
},
|
||||||
orderMarkedAsPaid: {
|
orderMarkedAsPaid: {
|
||||||
defaultMessage: "Order was marked as paid by",
|
defaultMessage: "Order was marked as paid by",
|
||||||
description: "order marked as paid event title",
|
description: "order marked as paid event title",
|
||||||
|
@ -122,31 +152,42 @@ const ExtendedTimelineEvent: React.FC<ExtendedTimelineEventProps> = ({
|
||||||
id,
|
id,
|
||||||
date,
|
date,
|
||||||
type,
|
type,
|
||||||
user,
|
|
||||||
lines,
|
lines,
|
||||||
amount,
|
amount,
|
||||||
transactionReference,
|
transactionReference,
|
||||||
shippingCostsIncluded,
|
shippingCostsIncluded
|
||||||
relatedOrder
|
|
||||||
} = event;
|
} = event;
|
||||||
const classes = useStyles({});
|
const classes = useStyles({});
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
const eventTypeInCamelCase = camelCase(type);
|
const eventTypeInCamelCase = camelCase(type);
|
||||||
|
|
||||||
const employeeName = `${user.firstName} ${user.lastName}`;
|
const getEventTitleMessageInCamelCase = () => {
|
||||||
|
if (hasOrderLineDiscountWithNoPreviousValue(event)) {
|
||||||
|
return titles.orderLineDiscountAdded;
|
||||||
|
}
|
||||||
|
|
||||||
|
return titles[eventTypeInCamelCase];
|
||||||
|
};
|
||||||
|
|
||||||
|
const getTitleProps = () => {
|
||||||
|
if (type === OrderEventsEnum.ORDER_LINE_DISCOUNT_UPDATED) {
|
||||||
|
return { productName: lines[0]?.itemName };
|
||||||
|
}
|
||||||
|
|
||||||
|
return {};
|
||||||
|
};
|
||||||
|
|
||||||
const titleElements = {
|
const titleElements = {
|
||||||
by: { text: intl.formatMessage(messages.by) },
|
by: { text: intl.formatMessage(messages.by) },
|
||||||
employeeName: {
|
employeeName: getEmployeeNameLink(event),
|
||||||
link: staffMemberDetailsUrl(user.id),
|
orderNumber: getOrderNumberLink(event),
|
||||||
text: employeeName.trim() ? employeeName : user.email
|
title: {
|
||||||
},
|
text: intl.formatMessage(
|
||||||
orderNumber: {
|
getEventTitleMessageInCamelCase(),
|
||||||
link: orderUrl(relatedOrder?.id),
|
getTitleProps()
|
||||||
text: `#${relatedOrder?.number}`
|
)
|
||||||
},
|
}
|
||||||
title: { text: intl.formatMessage(titles[eventTypeInCamelCase]) }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const selectTitleElements = () => {
|
const selectTitleElements = () => {
|
||||||
|
@ -156,23 +197,31 @@ const ExtendedTimelineEvent: React.FC<ExtendedTimelineEventProps> = ({
|
||||||
case OrderEventsEnum.DRAFT_CREATED_FROM_REPLACE: {
|
case OrderEventsEnum.DRAFT_CREATED_FROM_REPLACE: {
|
||||||
return [title, orderNumber, by, employeeName];
|
return [title, orderNumber, by, employeeName];
|
||||||
}
|
}
|
||||||
|
case OrderEventsEnum.ORDER_DISCOUNT_AUTOMATICALLY_UPDATED: {
|
||||||
|
return [title];
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
return [title, employeeName];
|
return [title, employeeName];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (isTimelineEventOfDiscountType(type)) {
|
||||||
|
return (
|
||||||
|
<ExtendedDiscountTimelineEvent
|
||||||
|
event={event}
|
||||||
|
titleElements={selectTitleElements()}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TimelineEvent date={date} titleElements={selectTitleElements()} key={id}>
|
<TimelineEvent date={date} titleElements={selectTitleElements()} key={id}>
|
||||||
{lines && (
|
{lines && (
|
||||||
<>
|
<>
|
||||||
<Typography
|
<Label
|
||||||
variant="caption"
|
text={intl.formatMessage(productTitles[eventTypeInCamelCase])}
|
||||||
color="textSecondary"
|
/>
|
||||||
className={classes.eventSubtitle}
|
|
||||||
>
|
|
||||||
{intl.formatMessage(productTitles[eventTypeInCamelCase])}
|
|
||||||
</Typography>
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
{lines.map(({ orderLine, quantity, itemName }, i) => (
|
{lines.map(({ orderLine, quantity, itemName }, i) => (
|
||||||
|
@ -181,14 +230,10 @@ const ExtendedTimelineEvent: React.FC<ExtendedTimelineEventProps> = ({
|
||||||
{orderLine?.productName || itemName}
|
{orderLine?.productName || itemName}
|
||||||
</td>
|
</td>
|
||||||
<td className={classes.linesTableCell}>
|
<td className={classes.linesTableCell}>
|
||||||
<Typography variant="caption" color="textSecondary">
|
<Label text={orderLine?.variantName} />
|
||||||
{orderLine?.variantName}
|
|
||||||
</Typography>
|
|
||||||
</td>
|
</td>
|
||||||
<td className={classes.linesTableCell}>
|
<td className={classes.linesTableCell}>
|
||||||
<Typography variant="caption" color="textSecondary">
|
<Label text={`qty: ${quantity}`} />
|
||||||
{`qty: ${quantity}`}
|
|
||||||
</Typography>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
|
@ -196,13 +241,7 @@ const ExtendedTimelineEvent: React.FC<ExtendedTimelineEventProps> = ({
|
||||||
</table>
|
</table>
|
||||||
{(amount || amount === 0) && (
|
{(amount || amount === 0) && (
|
||||||
<>
|
<>
|
||||||
<Typography
|
<Label text={intl.formatMessage(messages.refundedAmount)} />
|
||||||
variant="caption"
|
|
||||||
color="textSecondary"
|
|
||||||
className={classNames(classes.eventSubtitle, classes.topSpacer)}
|
|
||||||
>
|
|
||||||
{intl.formatMessage(messages.refundedAmount)}
|
|
||||||
</Typography>
|
|
||||||
<Money
|
<Money
|
||||||
money={{
|
money={{
|
||||||
amount,
|
amount,
|
||||||
|
@ -221,13 +260,7 @@ const ExtendedTimelineEvent: React.FC<ExtendedTimelineEventProps> = ({
|
||||||
|
|
||||||
{!!transactionReference && (
|
{!!transactionReference && (
|
||||||
<>
|
<>
|
||||||
<Typography
|
<Label text={intl.formatMessage(messages.transactionReference)} />
|
||||||
variant="caption"
|
|
||||||
color="textSecondary"
|
|
||||||
className={classNames(classes.eventSubtitle)}
|
|
||||||
>
|
|
||||||
{intl.formatMessage(messages.transactionReference)}
|
|
||||||
</Typography>
|
|
||||||
<Typography>{transactionReference}</Typography>
|
<Typography>{transactionReference}</Typography>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
14
src/orders/components/OrderHistory/Label.tsx
Normal file
14
src/orders/components/OrderHistory/Label.tsx
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import { Typography } from "@material-ui/core";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
interface LabelProps {
|
||||||
|
text: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const Label: React.FC<LabelProps> = ({ text }) => (
|
||||||
|
<Typography variant="caption" color="textSecondary">
|
||||||
|
{text}
|
||||||
|
</Typography>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default Label;
|
82
src/orders/components/OrderHistory/LinkedTimelineEvent.tsx
Normal file
82
src/orders/components/OrderHistory/LinkedTimelineEvent.tsx
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
import { TimelineEvent } from "@saleor/components/Timeline";
|
||||||
|
import { TitleElement } from "@saleor/components/Timeline/TimelineEventHeader";
|
||||||
|
import { OrderDetails_order_events } from "@saleor/orders/types/OrderDetails";
|
||||||
|
import { orderUrl } from "@saleor/orders/urls";
|
||||||
|
import { OrderEventsEnum } from "@saleor/types/globalTypes";
|
||||||
|
import React from "react";
|
||||||
|
import { defineMessages, useIntl } from "react-intl";
|
||||||
|
|
||||||
|
import { getEmployeeNameLink } from "./utils";
|
||||||
|
|
||||||
|
export const replacementCreatedMessages = defineMessages({
|
||||||
|
description: {
|
||||||
|
defaultMessage: "was created for replaced products",
|
||||||
|
description: "replacement created order history message description"
|
||||||
|
},
|
||||||
|
draftNumber: {
|
||||||
|
defaultMessage: "Draft #{orderNumber} ",
|
||||||
|
description: "replacement created order history message draft number"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export const discountRemovedMessages = defineMessages({
|
||||||
|
orderDiscountRemoved: {
|
||||||
|
defaultMessage: "Order discount was removed by ",
|
||||||
|
description: "order discount removed title"
|
||||||
|
},
|
||||||
|
productDiscountRemoved: {
|
||||||
|
defaultMessage: "{productName} discount was removed by",
|
||||||
|
description: "product discount removed title"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
interface LinkedTimelineEventProps {
|
||||||
|
event: OrderDetails_order_events;
|
||||||
|
}
|
||||||
|
|
||||||
|
const LinkedTimelineEvent: React.FC<LinkedTimelineEventProps> = ({ event }) => {
|
||||||
|
const intl = useIntl();
|
||||||
|
|
||||||
|
const getTitleElements = (): TitleElement[] => {
|
||||||
|
const { type, relatedOrder, lines } = event;
|
||||||
|
|
||||||
|
switch (type) {
|
||||||
|
case OrderEventsEnum.ORDER_REPLACEMENT_CREATED: {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
link: orderUrl(relatedOrder?.id),
|
||||||
|
text: intl.formatMessage(replacementCreatedMessages.draftNumber, {
|
||||||
|
orderNumber: relatedOrder?.number
|
||||||
|
})
|
||||||
|
},
|
||||||
|
{ text: intl.formatMessage(replacementCreatedMessages.description) }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
case OrderEventsEnum.ORDER_DISCOUNT_DELETED: {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
text: intl.formatMessage(
|
||||||
|
discountRemovedMessages.orderDiscountRemoved
|
||||||
|
)
|
||||||
|
},
|
||||||
|
getEmployeeNameLink(event)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
case OrderEventsEnum.ORDER_LINE_DISCOUNT_REMOVED: {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
text: intl.formatMessage(
|
||||||
|
discountRemovedMessages.productDiscountRemoved,
|
||||||
|
{ productName: lines[0].itemName }
|
||||||
|
)
|
||||||
|
},
|
||||||
|
getEmployeeNameLink(event)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return <TimelineEvent titleElements={getTitleElements()} date={event.date} />;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LinkedTimelineEvent;
|
|
@ -10,18 +10,16 @@ import {
|
||||||
TimelineEventProps,
|
TimelineEventProps,
|
||||||
TimelineNote
|
TimelineNote
|
||||||
} from "@saleor/components/Timeline";
|
} from "@saleor/components/Timeline";
|
||||||
import { TitleElement } from "@saleor/components/Timeline/TimelineEventHeader";
|
|
||||||
import { OrderDetails_order_events } from "@saleor/orders/types/OrderDetails";
|
import { OrderDetails_order_events } from "@saleor/orders/types/OrderDetails";
|
||||||
import { orderUrl } from "@saleor/orders/urls";
|
|
||||||
import {
|
import {
|
||||||
OrderEventsEmailsEnum,
|
OrderEventsEmailsEnum,
|
||||||
OrderEventsEnum
|
OrderEventsEnum
|
||||||
} from "@saleor/types/globalTypes";
|
} from "@saleor/types/globalTypes";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { defineMessages } from "react-intl";
|
|
||||||
import { FormattedMessage, IntlShape, useIntl } from "react-intl";
|
import { FormattedMessage, IntlShape, useIntl } from "react-intl";
|
||||||
|
|
||||||
import ExtendedTimelineEvent from "./ExtendedTimelineEvent";
|
import ExtendedTimelineEvent from "./ExtendedTimelineEvent";
|
||||||
|
import LinkedTimelineEvent from "./LinkedTimelineEvent";
|
||||||
import { getEventSecondaryTitle, isTimelineEventOfType } from "./utils";
|
import { getEventSecondaryTitle, isTimelineEventOfType } from "./utils";
|
||||||
|
|
||||||
export const getEventMessage = (
|
export const getEventMessage = (
|
||||||
|
@ -251,17 +249,6 @@ export const getEventMessage = (
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const replacementCreatedMessages = defineMessages({
|
|
||||||
description: {
|
|
||||||
defaultMessage: "was created for replaced products",
|
|
||||||
description: "replacement created order history message description"
|
|
||||||
},
|
|
||||||
draftNumber: {
|
|
||||||
defaultMessage: "Draft #{orderNumber} ",
|
|
||||||
description: "replacement created order history message draft number"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
export interface FormData {
|
export interface FormData {
|
||||||
message: string;
|
message: string;
|
||||||
}
|
}
|
||||||
|
@ -317,26 +304,6 @@ const OrderHistory: React.FC<OrderHistoryProps> = props => {
|
||||||
return { title };
|
return { title };
|
||||||
};
|
};
|
||||||
|
|
||||||
const getTitleElements = (
|
|
||||||
event: OrderDetails_order_events
|
|
||||||
): TitleElement[] => {
|
|
||||||
const { type, relatedOrder } = event;
|
|
||||||
|
|
||||||
switch (type) {
|
|
||||||
case OrderEventsEnum.ORDER_REPLACEMENT_CREATED: {
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
link: orderUrl(relatedOrder?.id),
|
|
||||||
text: intl.formatMessage(replacementCreatedMessages.draftNumber, {
|
|
||||||
orderNumber: relatedOrder?.number
|
|
||||||
})
|
|
||||||
},
|
|
||||||
{ text: intl.formatMessage(replacementCreatedMessages.description) }
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes.root}>
|
<div className={classes.root}>
|
||||||
<Typography className={classes.header} color="textSecondary">
|
<Typography className={classes.header} color="textSecondary">
|
||||||
|
@ -381,13 +348,7 @@ const OrderHistory: React.FC<OrderHistoryProps> = props => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTimelineEventOfType("linked", type)) {
|
if (isTimelineEventOfType("linked", type)) {
|
||||||
return (
|
return <LinkedTimelineEvent event={event} key={id} />;
|
||||||
<TimelineEvent
|
|
||||||
titleElements={getTitleElements(event)}
|
|
||||||
key={id}
|
|
||||||
date={date}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
import { OrderDetails_order_events } from "@saleor/orders/types/OrderDetails";
|
import {
|
||||||
|
OrderDetails_order_events,
|
||||||
|
OrderDetails_order_events_user
|
||||||
|
} from "@saleor/orders/types/OrderDetails";
|
||||||
|
import { orderUrl } from "@saleor/orders/urls";
|
||||||
|
import { staffMemberDetailsUrl } from "@saleor/staff/urls";
|
||||||
import { OrderEventsEnum } from "@saleor/types/globalTypes";
|
import { OrderEventsEnum } from "@saleor/types/globalTypes";
|
||||||
import { MessageDescriptor } from "react-intl";
|
import { MessageDescriptor } from "react-intl";
|
||||||
|
|
||||||
|
@ -20,14 +25,28 @@ export const getEventSecondaryTitle = (
|
||||||
};
|
};
|
||||||
|
|
||||||
const timelineEventTypes = {
|
const timelineEventTypes = {
|
||||||
|
discount: [
|
||||||
|
OrderEventsEnum.ORDER_DISCOUNT_ADDED,
|
||||||
|
OrderEventsEnum.ORDER_DISCOUNT_UPDATED,
|
||||||
|
OrderEventsEnum.ORDER_LINE_DISCOUNT_UPDATED,
|
||||||
|
OrderEventsEnum.ORDER_DISCOUNT_AUTOMATICALLY_UPDATED
|
||||||
|
],
|
||||||
extendable: [
|
extendable: [
|
||||||
OrderEventsEnum.FULFILLMENT_REFUNDED,
|
OrderEventsEnum.FULFILLMENT_REFUNDED,
|
||||||
OrderEventsEnum.FULFILLMENT_REPLACED,
|
OrderEventsEnum.FULFILLMENT_REPLACED,
|
||||||
OrderEventsEnum.FULFILLMENT_RETURNED,
|
OrderEventsEnum.FULFILLMENT_RETURNED,
|
||||||
OrderEventsEnum.DRAFT_CREATED_FROM_REPLACE,
|
OrderEventsEnum.DRAFT_CREATED_FROM_REPLACE,
|
||||||
OrderEventsEnum.ORDER_MARKED_AS_PAID
|
OrderEventsEnum.ORDER_MARKED_AS_PAID,
|
||||||
|
OrderEventsEnum.ORDER_DISCOUNT_ADDED,
|
||||||
|
OrderEventsEnum.ORDER_DISCOUNT_AUTOMATICALLY_UPDATED,
|
||||||
|
OrderEventsEnum.ORDER_DISCOUNT_UPDATED,
|
||||||
|
OrderEventsEnum.ORDER_LINE_DISCOUNT_UPDATED
|
||||||
|
],
|
||||||
|
linked: [
|
||||||
|
OrderEventsEnum.ORDER_REPLACEMENT_CREATED,
|
||||||
|
OrderEventsEnum.ORDER_DISCOUNT_DELETED,
|
||||||
|
OrderEventsEnum.ORDER_LINE_DISCOUNT_REMOVED
|
||||||
],
|
],
|
||||||
linked: [OrderEventsEnum.ORDER_REPLACEMENT_CREATED],
|
|
||||||
note: [OrderEventsEnum.NOTE_ADDED],
|
note: [OrderEventsEnum.NOTE_ADDED],
|
||||||
rawMessage: [
|
rawMessage: [
|
||||||
OrderEventsEnum.OTHER,
|
OrderEventsEnum.OTHER,
|
||||||
|
@ -37,6 +56,66 @@ const timelineEventTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isTimelineEventOfType = (
|
export const isTimelineEventOfType = (
|
||||||
type: "extendable" | "secondaryTitle" | "rawMessage" | "note" | "linked",
|
type:
|
||||||
|
| "extendable"
|
||||||
|
| "secondaryTitle"
|
||||||
|
| "rawMessage"
|
||||||
|
| "note"
|
||||||
|
| "linked"
|
||||||
|
| "discount",
|
||||||
eventType: OrderEventsEnum
|
eventType: OrderEventsEnum
|
||||||
) => !!timelineEventTypes[type]?.includes(eventType);
|
) => !!timelineEventTypes[type]?.includes(eventType);
|
||||||
|
|
||||||
|
export const isTimelineEventOfDiscountType = (eventType: OrderEventsEnum) =>
|
||||||
|
isTimelineEventOfType("discount", eventType);
|
||||||
|
|
||||||
|
const selectEmployeeName = ({
|
||||||
|
firstName,
|
||||||
|
lastName,
|
||||||
|
email
|
||||||
|
}: OrderDetails_order_events_user) => {
|
||||||
|
if (!!firstName) {
|
||||||
|
return `${firstName} ${lastName}`.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
return email;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getEmployeeNameLink = (event: OrderDetails_order_events) => {
|
||||||
|
if (!hasEnsuredOrderEventFields(event, ["user"])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { id } = event.user;
|
||||||
|
|
||||||
|
return {
|
||||||
|
link: staffMemberDetailsUrl(id),
|
||||||
|
text: selectEmployeeName(event.user)
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export const hasOrderLineDiscountWithNoPreviousValue = ({
|
||||||
|
type,
|
||||||
|
lines
|
||||||
|
}: OrderDetails_order_events) =>
|
||||||
|
type === OrderEventsEnum.ORDER_LINE_DISCOUNT_UPDATED &&
|
||||||
|
lines?.[0]?.discount &&
|
||||||
|
!lines?.[0].discount?.oldValue;
|
||||||
|
|
||||||
|
export const getOrderNumberLink = (event: OrderDetails_order_events) => {
|
||||||
|
if (!hasEnsuredOrderEventFields(event, ["relatedOrder"])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { id, number } = event.relatedOrder;
|
||||||
|
|
||||||
|
return {
|
||||||
|
link: orderUrl(id),
|
||||||
|
text: `#${number}`
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
const hasEnsuredOrderEventFields = (
|
||||||
|
event,
|
||||||
|
fields: Array<keyof OrderDetails_order_events>
|
||||||
|
) => !fields.some((field: keyof OrderDetails_order_events) => !event[field]);
|
||||||
|
|
|
@ -111,16 +111,12 @@ const TableLine: React.FC<TableLineProps> = ({
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className={classes.colTotal}>
|
<TableCell className={classes.colTotal}>
|
||||||
{maybe(() => line.quantity * line.orderLine.unitPrice.gross.amount) ? (
|
|
||||||
<Money
|
<Money
|
||||||
money={{
|
money={{
|
||||||
amount: line.quantity * line.orderLine.unitPrice.gross.amount,
|
amount: line.quantity * line.orderLine.unitPrice.gross.amount,
|
||||||
currency: line.orderLine.unitPrice.gross.currency
|
currency: line.orderLine.unitPrice.gross.currency
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
) : (
|
|
||||||
<Skeleton />
|
|
||||||
)}
|
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
);
|
);
|
||||||
|
|
|
@ -822,11 +822,13 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
created: "2018-09-11T09:37:28.185874+00:00",
|
created: "2018-09-11T09:37:28.185874+00:00",
|
||||||
customerNote: "Lorem ipsum dolor sit amet",
|
customerNote: "Lorem ipsum dolor sit amet",
|
||||||
discount: null,
|
discount: null,
|
||||||
|
discounts: [],
|
||||||
events: [
|
events: [
|
||||||
{
|
{
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2018-09-17T13:22:24.376193+00:00",
|
date: "2018-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: null,
|
emailType: null,
|
||||||
id: "T3JkZXJFdmVudDoyMQ==",
|
id: "T3JkZXJFdmVudDoyMQ==",
|
||||||
|
@ -850,6 +852,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2018-09-17T13:22:24.376193+00:00",
|
date: "2018-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: null,
|
emailType: null,
|
||||||
id: "UYgDNUnnfyiuyimuhd==",
|
id: "UYgDNUnnfyiuyimuhd==",
|
||||||
|
@ -857,7 +860,8 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
__typename: "OrderEventOrderLineObject",
|
__typename: "OrderEventOrderLineObject",
|
||||||
itemName: "Milk Cow's milk",
|
discount: null,
|
||||||
|
itemName: "Cow's milk",
|
||||||
orderLine: {
|
orderLine: {
|
||||||
__typename: "OrderLine",
|
__typename: "OrderLine",
|
||||||
id: "h47gfncfgwegfehfhj",
|
id: "h47gfncfgwegfehfhj",
|
||||||
|
@ -868,7 +872,8 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "OrderEventOrderLineObject",
|
__typename: "OrderEventOrderLineObject",
|
||||||
itemName: "Milk Goat's milk",
|
discount: null,
|
||||||
|
itemName: "Goat's milk",
|
||||||
orderLine: {
|
orderLine: {
|
||||||
__typename: "OrderLine",
|
__typename: "OrderLine",
|
||||||
id: "7846f857t4t84y8fgh",
|
id: "7846f857t4t84y8fgh",
|
||||||
|
@ -896,6 +901,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2019-09-17T13:22:24.376193+00:00",
|
date: "2019-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: null,
|
emailType: null,
|
||||||
id: "T3JkZXJFdmVudDo0",
|
id: "T3JkZXJFdmVudDo0",
|
||||||
|
@ -913,6 +919,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2019-09-17T13:22:24.376193+00:00",
|
date: "2019-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: null,
|
emailType: null,
|
||||||
id: "T3JkZXJFdmVudDo1",
|
id: "T3JkZXJFdmVudDo1",
|
||||||
|
@ -930,6 +937,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2019-09-17T13:22:24.376193+00:00",
|
date: "2019-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: null,
|
emailType: null,
|
||||||
id: "T3JkZXJFdmVudDo2",
|
id: "T3JkZXJFdmVudDo2",
|
||||||
|
@ -947,6 +955,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2019-09-17T13:22:24.376193+00:00",
|
date: "2019-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: OrderEventsEmailsEnum.ORDER_CANCEL,
|
emailType: OrderEventsEmailsEnum.ORDER_CANCEL,
|
||||||
id: "T3JkZXJFdmVudDo3",
|
id: "T3JkZXJFdmVudDo3",
|
||||||
|
@ -964,6 +973,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2019-09-17T13:22:24.376193+00:00",
|
date: "2019-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: OrderEventsEmailsEnum.ORDER_REFUND,
|
emailType: OrderEventsEmailsEnum.ORDER_REFUND,
|
||||||
id: "T3JkZXJFdmVudDo4",
|
id: "T3JkZXJFdmVudDo4",
|
||||||
|
@ -981,6 +991,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "OrderEvent",
|
__typename: "OrderEvent",
|
||||||
amount: null,
|
amount: null,
|
||||||
date: "2019-09-17T13:22:24.376193+00:00",
|
date: "2019-09-17T13:22:24.376193+00:00",
|
||||||
|
discount: null,
|
||||||
email: null,
|
email: null,
|
||||||
emailType: null,
|
emailType: null,
|
||||||
id: "T3JkZXJFdmVudDo5",
|
id: "T3JkZXJFdmVudDo5",
|
||||||
|
@ -1016,6 +1027,28 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Image" as "Image",
|
__typename: "Image" as "Image",
|
||||||
url: placeholder
|
url: placeholder
|
||||||
},
|
},
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
__typename: "TaxedMoney",
|
__typename: "TaxedMoney",
|
||||||
gross: {
|
gross: {
|
||||||
|
@ -1062,6 +1095,28 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Image" as "Image",
|
__typename: "Image" as "Image",
|
||||||
url: placeholder
|
url: placeholder
|
||||||
},
|
},
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
__typename: "TaxedMoney",
|
__typename: "TaxedMoney",
|
||||||
gross: {
|
gross: {
|
||||||
|
@ -1101,6 +1156,7 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
isPaid: true,
|
isPaid: true,
|
||||||
|
isShippingRequired: false,
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
__typename: "OrderLine",
|
__typename: "OrderLine",
|
||||||
|
@ -1114,6 +1170,28 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Image" as "Image",
|
__typename: "Image" as "Image",
|
||||||
url: placeholder
|
url: placeholder
|
||||||
},
|
},
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 18.51,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 18.51,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
__typename: "TaxedMoney",
|
__typename: "TaxedMoney",
|
||||||
gross: {
|
gross: {
|
||||||
|
@ -1145,6 +1223,29 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Image" as "Image",
|
__typename: "Image" as "Image",
|
||||||
url: placeholder
|
url: placeholder
|
||||||
},
|
},
|
||||||
|
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
__typename: "TaxedMoney",
|
__typename: "TaxedMoney",
|
||||||
gross: {
|
gross: {
|
||||||
|
@ -1211,6 +1312,11 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Money",
|
__typename: "Money",
|
||||||
amount: 214.95,
|
amount: 214.95,
|
||||||
currency: "USD"
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 214.95,
|
||||||
|
currency: "USD"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
|
@ -1220,6 +1326,11 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
amount: 234.93,
|
amount: 234.93,
|
||||||
currency: "USD"
|
currency: "USD"
|
||||||
},
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 234.93,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
tax: {
|
tax: {
|
||||||
__typename: "Money",
|
__typename: "Money",
|
||||||
amount: 0,
|
amount: 0,
|
||||||
|
@ -1236,6 +1347,19 @@ export const order = (placeholder: string): OrderDetails_order => ({
|
||||||
amount: 0,
|
amount: 0,
|
||||||
currency: "USD"
|
currency: "USD"
|
||||||
},
|
},
|
||||||
|
undiscountedTotal: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
user: null,
|
user: null,
|
||||||
userEmail: "melissa.simon@example.com"
|
userEmail: "melissa.simon@example.com"
|
||||||
});
|
});
|
||||||
|
@ -1255,6 +1379,8 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
||||||
created: "2018-09-20T23:23:39.811428+00:00",
|
created: "2018-09-20T23:23:39.811428+00:00",
|
||||||
customerNote: "Lorem ipsum dolor sit",
|
customerNote: "Lorem ipsum dolor sit",
|
||||||
discount: null,
|
discount: null,
|
||||||
|
discounts: [],
|
||||||
|
|
||||||
events: [],
|
events: [],
|
||||||
fulfillments: [],
|
fulfillments: [],
|
||||||
id: "T3JkZXI6MjQ=",
|
id: "T3JkZXI6MjQ=",
|
||||||
|
@ -1269,6 +1395,7 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
isPaid: false,
|
isPaid: false,
|
||||||
|
isShippingRequired: false,
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
__typename: "OrderLine" as "OrderLine",
|
__typename: "OrderLine" as "OrderLine",
|
||||||
|
@ -1282,6 +1409,28 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Image" as "Image",
|
__typename: "Image" as "Image",
|
||||||
url: placeholder
|
url: placeholder
|
||||||
},
|
},
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
__typename: "TaxedMoney" as "TaxedMoney",
|
__typename: "TaxedMoney" as "TaxedMoney",
|
||||||
gross: {
|
gross: {
|
||||||
|
@ -1313,6 +1462,28 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Image" as "Image",
|
__typename: "Image" as "Image",
|
||||||
url: placeholder
|
url: placeholder
|
||||||
},
|
},
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
__typename: "TaxedMoney" as "TaxedMoney",
|
__typename: "TaxedMoney" as "TaxedMoney",
|
||||||
gross: {
|
gross: {
|
||||||
|
@ -1355,6 +1526,11 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
||||||
__typename: "Money" as "Money",
|
__typename: "Money" as "Money",
|
||||||
amount: 168.3,
|
amount: 168.3,
|
||||||
currency: "USD"
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 168.3,
|
||||||
|
currency: "USD"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
|
@ -1364,6 +1540,11 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
||||||
amount: 168.3,
|
amount: 168.3,
|
||||||
currency: "USD"
|
currency: "USD"
|
||||||
},
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money" as "Money",
|
||||||
|
amount: 100,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
tax: {
|
tax: {
|
||||||
__typename: "Money" as "Money",
|
__typename: "Money" as "Money",
|
||||||
amount: 68.3,
|
amount: 68.3,
|
||||||
|
@ -1372,6 +1553,19 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
|
||||||
},
|
},
|
||||||
totalAuthorized: null,
|
totalAuthorized: null,
|
||||||
totalCaptured: null,
|
totalCaptured: null,
|
||||||
|
undiscountedTotal: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
user: null,
|
user: null,
|
||||||
userEmail: null
|
userEmail: null
|
||||||
});
|
});
|
||||||
|
|
|
@ -56,13 +56,9 @@ const OrderDetails: React.FC<RouteComponentProps<any>> = ({
|
||||||
}) => {
|
}) => {
|
||||||
const qs = parseQs(location.search.substr(1));
|
const qs = parseQs(location.search.substr(1));
|
||||||
const params: OrderUrlQueryParams = qs;
|
const params: OrderUrlQueryParams = qs;
|
||||||
|
const id = match.params.id;
|
||||||
|
|
||||||
return (
|
return <OrderDetailsComponent id={decodeURIComponent(id)} params={params} />;
|
||||||
<OrderDetailsComponent
|
|
||||||
id={decodeURIComponent(match.params.id)}
|
|
||||||
params={params}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const OrderFulfill: React.FC<RouteComponentProps<any>> = ({ match }) => (
|
const OrderFulfill: React.FC<RouteComponentProps<any>> = ({ match }) => (
|
||||||
|
|
|
@ -31,6 +31,18 @@ import { OrderAddNote, OrderAddNoteVariables } from "./types/OrderAddNote";
|
||||||
import { OrderCancel, OrderCancelVariables } from "./types/OrderCancel";
|
import { OrderCancel, OrderCancelVariables } from "./types/OrderCancel";
|
||||||
import { OrderCapture, OrderCaptureVariables } from "./types/OrderCapture";
|
import { OrderCapture, OrderCaptureVariables } from "./types/OrderCapture";
|
||||||
import { OrderConfirm, OrderConfirmVariables } from "./types/OrderConfirm";
|
import { OrderConfirm, OrderConfirmVariables } from "./types/OrderConfirm";
|
||||||
|
import {
|
||||||
|
OrderDiscountAdd,
|
||||||
|
OrderDiscountAddVariables
|
||||||
|
} from "./types/OrderDiscountAdd";
|
||||||
|
import {
|
||||||
|
OrderDiscountDelete,
|
||||||
|
OrderDiscountDeleteVariables
|
||||||
|
} from "./types/OrderDiscountDelete";
|
||||||
|
import {
|
||||||
|
OrderDiscountUpdate,
|
||||||
|
OrderDiscountUpdateVariables
|
||||||
|
} from "./types/OrderDiscountUpdate";
|
||||||
import {
|
import {
|
||||||
OrderDraftBulkCancel,
|
OrderDraftBulkCancel,
|
||||||
OrderDraftBulkCancelVariables
|
OrderDraftBulkCancelVariables
|
||||||
|
@ -67,6 +79,14 @@ import {
|
||||||
OrderLineDelete,
|
OrderLineDelete,
|
||||||
OrderLineDeleteVariables
|
OrderLineDeleteVariables
|
||||||
} from "./types/OrderLineDelete";
|
} from "./types/OrderLineDelete";
|
||||||
|
import {
|
||||||
|
OrderLineDiscountRemove,
|
||||||
|
OrderLineDiscountRemoveVariables
|
||||||
|
} from "./types/OrderLineDiscountRemove";
|
||||||
|
import {
|
||||||
|
OrderLineDiscountUpdate,
|
||||||
|
OrderLineDiscountUpdateVariables
|
||||||
|
} from "./types/OrderLineDiscountUpdate";
|
||||||
import { OrderLinesAdd, OrderLinesAddVariables } from "./types/OrderLinesAdd";
|
import { OrderLinesAdd, OrderLinesAddVariables } from "./types/OrderLinesAdd";
|
||||||
import {
|
import {
|
||||||
OrderLineUpdate,
|
OrderLineUpdate,
|
||||||
|
@ -107,6 +127,115 @@ export const TypedOrderCancelMutation = TypedMutation<
|
||||||
OrderCancelVariables
|
OrderCancelVariables
|
||||||
>(orderCancelMutation);
|
>(orderCancelMutation);
|
||||||
|
|
||||||
|
// Discounts
|
||||||
|
const orderDiscountAddMutation = gql`
|
||||||
|
${orderErrorFragment}
|
||||||
|
${fragmentOrderDetails}
|
||||||
|
mutation OrderDiscountAdd($input: OrderDiscountCommonInput!, $orderId: ID!) {
|
||||||
|
orderDiscountAdd(input: $input, orderId: $orderId) {
|
||||||
|
errors: orderErrors {
|
||||||
|
...OrderErrorFragment
|
||||||
|
}
|
||||||
|
order {
|
||||||
|
...OrderDetailsFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const useOrderDiscountAddMutation = makeMutation<
|
||||||
|
OrderDiscountAdd,
|
||||||
|
OrderDiscountAddVariables
|
||||||
|
>(orderDiscountAddMutation);
|
||||||
|
|
||||||
|
const orderDiscountDeleteMutation = gql`
|
||||||
|
${orderErrorFragment}
|
||||||
|
${fragmentOrderDetails}
|
||||||
|
mutation OrderDiscountDelete($discountId: ID!) {
|
||||||
|
orderDiscountDelete(discountId: $discountId) {
|
||||||
|
errors: orderErrors {
|
||||||
|
...OrderErrorFragment
|
||||||
|
}
|
||||||
|
order {
|
||||||
|
...OrderDetailsFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const useOrderDiscountDeleteMutation = makeMutation<
|
||||||
|
OrderDiscountDelete,
|
||||||
|
OrderDiscountDeleteVariables
|
||||||
|
>(orderDiscountDeleteMutation);
|
||||||
|
|
||||||
|
const orderLineDiscountRemoveMutation = gql`
|
||||||
|
${orderErrorFragment}
|
||||||
|
${fragmentOrderDetails}
|
||||||
|
mutation OrderLineDiscountRemove($orderLineId: ID!) {
|
||||||
|
orderLineDiscountRemove(orderLineId: $orderLineId) {
|
||||||
|
errors: orderErrors {
|
||||||
|
...OrderErrorFragment
|
||||||
|
}
|
||||||
|
order {
|
||||||
|
...OrderDetailsFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const useOrderLineDiscountRemoveMutation = makeMutation<
|
||||||
|
OrderLineDiscountRemove,
|
||||||
|
OrderLineDiscountRemoveVariables
|
||||||
|
>(orderLineDiscountRemoveMutation);
|
||||||
|
|
||||||
|
const orderLineDiscountUpdateMutation = gql`
|
||||||
|
${orderErrorFragment}
|
||||||
|
${fragmentOrderDetails}
|
||||||
|
mutation OrderLineDiscountUpdate(
|
||||||
|
$input: OrderDiscountCommonInput!
|
||||||
|
$orderLineId: ID!
|
||||||
|
) {
|
||||||
|
orderLineDiscountUpdate(input: $input, orderLineId: $orderLineId) {
|
||||||
|
errors: orderErrors {
|
||||||
|
...OrderErrorFragment
|
||||||
|
}
|
||||||
|
order {
|
||||||
|
...OrderDetailsFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const useOrderLineDiscountUpdateMutation = makeMutation<
|
||||||
|
OrderLineDiscountUpdate,
|
||||||
|
OrderLineDiscountUpdateVariables
|
||||||
|
>(orderLineDiscountUpdateMutation);
|
||||||
|
|
||||||
|
const orderDiscountUpdateMutation = gql`
|
||||||
|
${fragmentOrderDetails}
|
||||||
|
${orderErrorFragment}
|
||||||
|
mutation OrderDiscountUpdate(
|
||||||
|
$input: OrderDiscountCommonInput!
|
||||||
|
$discountId: ID!
|
||||||
|
) {
|
||||||
|
orderDiscountUpdate(input: $input, discountId: $discountId) {
|
||||||
|
errors: orderErrors {
|
||||||
|
...OrderErrorFragment
|
||||||
|
}
|
||||||
|
order {
|
||||||
|
...OrderDetailsFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const useOrderDiscountUpdateMutation = makeMutation<
|
||||||
|
OrderDiscountUpdate,
|
||||||
|
OrderDiscountUpdateVariables
|
||||||
|
>(orderDiscountUpdateMutation);
|
||||||
|
|
||||||
|
// -----
|
||||||
|
|
||||||
const orderDraftCancelMutation = gql`
|
const orderDraftCancelMutation = gql`
|
||||||
${fragmentOrderDetails}
|
${fragmentOrderDetails}
|
||||||
${orderErrorFragment}
|
${orderErrorFragment}
|
||||||
|
@ -413,6 +542,7 @@ export const TypedOrderDraftUpdateMutation = TypedMutation<
|
||||||
|
|
||||||
const orderShippingMethodUpdateMutation = gql`
|
const orderShippingMethodUpdateMutation = gql`
|
||||||
${orderErrorFragment}
|
${orderErrorFragment}
|
||||||
|
${fragmentOrderDetails}
|
||||||
mutation OrderShippingMethodUpdate(
|
mutation OrderShippingMethodUpdate(
|
||||||
$id: ID!
|
$id: ID!
|
||||||
$input: OrderUpdateShippingInput!
|
$input: OrderUpdateShippingInput!
|
||||||
|
@ -422,26 +552,7 @@ const orderShippingMethodUpdateMutation = gql`
|
||||||
...OrderErrorFragment
|
...OrderErrorFragment
|
||||||
}
|
}
|
||||||
order {
|
order {
|
||||||
availableShippingMethods {
|
...OrderDetailsFragment
|
||||||
id
|
|
||||||
name
|
|
||||||
}
|
|
||||||
id
|
|
||||||
shippingMethod {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
price {
|
|
||||||
amount
|
|
||||||
currency
|
|
||||||
}
|
|
||||||
}
|
|
||||||
shippingMethodName
|
|
||||||
shippingPrice {
|
|
||||||
gross {
|
|
||||||
amount
|
|
||||||
currency
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,6 +139,7 @@ export const useOrderDraftListQuery = makeQuery<
|
||||||
|
|
||||||
export const orderDetailsQuery = gql`
|
export const orderDetailsQuery = gql`
|
||||||
${fragmentOrderDetails}
|
${fragmentOrderDetails}
|
||||||
|
${fragmentMoney}
|
||||||
query OrderDetails($id: ID!) {
|
query OrderDetails($id: ID!) {
|
||||||
order(id: $id) {
|
order(id: $id) {
|
||||||
...OrderDetailsFragment
|
...OrderDetailsFragment
|
||||||
|
@ -152,6 +153,7 @@ export const orderDetailsQuery = gql`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const TypedOrderDetailsQuery = TypedQuery<
|
export const TypedOrderDetailsQuery = TypedQuery<
|
||||||
OrderDetails,
|
OrderDetails,
|
||||||
OrderDetailsVariables
|
OrderDetailsVariables
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderFulfillInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderFulfillInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: FulfillOrder
|
// GraphQL mutation operation: FulfillOrder
|
||||||
|
@ -50,6 +50,45 @@ export interface FulfillOrder_orderFulfill_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: FulfillOrder_orderFulfill_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: FulfillOrder_orderFulfill_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: FulfillOrder_orderFulfill_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_events_relatedOrder {
|
export interface FulfillOrder_orderFulfill_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -64,6 +103,29 @@ export interface FulfillOrder_orderFulfill_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: FulfillOrder_orderFulfill_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: FulfillOrder_orderFulfill_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_events_lines_orderLine {
|
export interface FulfillOrder_orderFulfill_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -75,6 +137,7 @@ export interface FulfillOrder_orderFulfill_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: FulfillOrder_orderFulfill_order_events_lines_discount | null;
|
||||||
orderLine: FulfillOrder_orderFulfill_order_events_lines_orderLine | null;
|
orderLine: FulfillOrder_orderFulfill_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,6 +150,7 @@ export interface FulfillOrder_orderFulfill_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: FulfillOrder_orderFulfill_order_events_discount | null;
|
||||||
relatedOrder: FulfillOrder_orderFulfill_order_events_relatedOrder | null;
|
relatedOrder: FulfillOrder_orderFulfill_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -102,6 +166,31 @@ export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_va
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -134,6 +223,11 @@ export interface FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: FulfillOrder_orderFulfill_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -167,6 +261,31 @@ export interface FulfillOrder_orderFulfill_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: FulfillOrder_orderFulfill_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: FulfillOrder_orderFulfill_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_lines_unitPrice_gross {
|
export interface FulfillOrder_orderFulfill_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -199,6 +318,11 @@ export interface FulfillOrder_orderFulfill_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: FulfillOrder_orderFulfill_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: FulfillOrder_orderFulfill_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: FulfillOrder_orderFulfill_order_lines_unitPrice;
|
unitPrice: FulfillOrder_orderFulfill_order_lines_unitPrice;
|
||||||
thumbnail: FulfillOrder_orderFulfill_order_lines_thumbnail | null;
|
thumbnail: FulfillOrder_orderFulfill_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -247,9 +371,16 @@ export interface FulfillOrder_orderFulfill_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_subtotal {
|
export interface FulfillOrder_orderFulfill_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: FulfillOrder_orderFulfill_order_subtotal_gross;
|
gross: FulfillOrder_orderFulfill_order_subtotal_gross;
|
||||||
|
net: FulfillOrder_orderFulfill_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_total_gross {
|
export interface FulfillOrder_orderFulfill_order_total_gross {
|
||||||
|
@ -258,6 +389,12 @@ export interface FulfillOrder_orderFulfill_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_total_tax {
|
export interface FulfillOrder_orderFulfill_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -267,6 +404,7 @@ export interface FulfillOrder_orderFulfill_order_total_tax {
|
||||||
export interface FulfillOrder_orderFulfill_order_total {
|
export interface FulfillOrder_orderFulfill_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: FulfillOrder_orderFulfill_order_total_gross;
|
gross: FulfillOrder_orderFulfill_order_total_gross;
|
||||||
|
net: FulfillOrder_orderFulfill_order_total_net;
|
||||||
tax: FulfillOrder_orderFulfill_order_total_tax;
|
tax: FulfillOrder_orderFulfill_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,6 +420,24 @@ export interface FulfillOrder_orderFulfill_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FulfillOrder_orderFulfill_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: FulfillOrder_orderFulfill_order_undiscountedTotal_net;
|
||||||
|
gross: FulfillOrder_orderFulfill_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FulfillOrder_orderFulfill_order_user {
|
export interface FulfillOrder_orderFulfill_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -330,9 +486,11 @@ export interface FulfillOrder_orderFulfill_order {
|
||||||
metadata: (FulfillOrder_orderFulfill_order_metadata | null)[];
|
metadata: (FulfillOrder_orderFulfill_order_metadata | null)[];
|
||||||
privateMetadata: (FulfillOrder_orderFulfill_order_privateMetadata | null)[];
|
privateMetadata: (FulfillOrder_orderFulfill_order_privateMetadata | null)[];
|
||||||
billingAddress: FulfillOrder_orderFulfill_order_billingAddress | null;
|
billingAddress: FulfillOrder_orderFulfill_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: FulfillOrder_orderFulfill_order_discounts[] | null;
|
||||||
events: (FulfillOrder_orderFulfill_order_events | null)[] | null;
|
events: (FulfillOrder_orderFulfill_order_events | null)[] | null;
|
||||||
fulfillments: (FulfillOrder_orderFulfill_order_fulfillments | null)[];
|
fulfillments: (FulfillOrder_orderFulfill_order_fulfillments | null)[];
|
||||||
lines: (FulfillOrder_orderFulfill_order_lines | null)[];
|
lines: (FulfillOrder_orderFulfill_order_lines | null)[];
|
||||||
|
@ -348,6 +506,7 @@ export interface FulfillOrder_orderFulfill_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: FulfillOrder_orderFulfill_order_totalAuthorized;
|
totalAuthorized: FulfillOrder_orderFulfill_order_totalAuthorized;
|
||||||
totalCaptured: FulfillOrder_orderFulfill_order_totalCaptured;
|
totalCaptured: FulfillOrder_orderFulfill_order_totalCaptured;
|
||||||
|
undiscountedTotal: FulfillOrder_orderFulfill_order_undiscountedTotal;
|
||||||
user: FulfillOrder_orderFulfill_order_user | null;
|
user: FulfillOrder_orderFulfill_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (FulfillOrder_orderFulfill_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (FulfillOrder_orderFulfill_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderAddNoteInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum } from "./../../types/globalTypes";
|
import { OrderAddNoteInput, OrderErrorCode, OrderEventsEmailsEnum, DiscountValueTypeEnum, OrderEventsEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderAddNote
|
// GraphQL mutation operation: OrderAddNote
|
||||||
|
@ -14,6 +14,29 @@ export interface OrderAddNote_orderAddNote_errors {
|
||||||
field: string | null;
|
field: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderAddNote_orderAddNote_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderAddNote_orderAddNote_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderAddNote_orderAddNote_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderAddNote_orderAddNote_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderAddNote_orderAddNote_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderAddNote_orderAddNote_order_events_relatedOrder {
|
export interface OrderAddNote_orderAddNote_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -28,6 +51,29 @@ export interface OrderAddNote_orderAddNote_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderAddNote_orderAddNote_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderAddNote_orderAddNote_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderAddNote_orderAddNote_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderAddNote_orderAddNote_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderAddNote_orderAddNote_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderAddNote_orderAddNote_order_events_lines_orderLine {
|
export interface OrderAddNote_orderAddNote_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -39,6 +85,7 @@ export interface OrderAddNote_orderAddNote_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderAddNote_orderAddNote_order_events_lines_discount | null;
|
||||||
orderLine: OrderAddNote_orderAddNote_order_events_lines_orderLine | null;
|
orderLine: OrderAddNote_orderAddNote_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,6 +98,7 @@ export interface OrderAddNote_orderAddNote_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderAddNote_orderAddNote_order_events_discount | null;
|
||||||
relatedOrder: OrderAddNote_orderAddNote_order_events_relatedOrder | null;
|
relatedOrder: OrderAddNote_orderAddNote_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderCancel
|
// GraphQL mutation operation: OrderCancel
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderCancel_orderCancel_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderCancel_orderCancel_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderCancel_orderCancel_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderCancel_orderCancel_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_events_relatedOrder {
|
export interface OrderCancel_orderCancel_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderCancel_orderCancel_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderCancel_orderCancel_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderCancel_orderCancel_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_events_lines_orderLine {
|
export interface OrderCancel_orderCancel_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderCancel_orderCancel_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderCancel_orderCancel_order_events_lines_discount | null;
|
||||||
orderLine: OrderCancel_orderCancel_order_events_lines_orderLine | null;
|
orderLine: OrderCancel_orderCancel_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderCancel_orderCancel_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderCancel_orderCancel_order_events_discount | null;
|
||||||
relatedOrder: OrderCancel_orderCancel_order_events_relatedOrder | null;
|
relatedOrder: OrderCancel_orderCancel_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_vari
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderCancel_orderCancel_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderCancel_orderCancel_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderCancel_orderCancel_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderCancel_orderCancel_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderCancel_orderCancel_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_lines_unitPrice_gross {
|
export interface OrderCancel_orderCancel_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderCancel_orderCancel_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderCancel_orderCancel_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderCancel_orderCancel_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderCancel_orderCancel_order_lines_unitPrice;
|
unitPrice: OrderCancel_orderCancel_order_lines_unitPrice;
|
||||||
thumbnail: OrderCancel_orderCancel_order_lines_thumbnail | null;
|
thumbnail: OrderCancel_orderCancel_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderCancel_orderCancel_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_subtotal {
|
export interface OrderCancel_orderCancel_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderCancel_orderCancel_order_subtotal_gross;
|
gross: OrderCancel_orderCancel_order_subtotal_gross;
|
||||||
|
net: OrderCancel_orderCancel_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_total_gross {
|
export interface OrderCancel_orderCancel_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderCancel_orderCancel_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_total_tax {
|
export interface OrderCancel_orderCancel_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderCancel_orderCancel_order_total_tax {
|
||||||
export interface OrderCancel_orderCancel_order_total {
|
export interface OrderCancel_orderCancel_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderCancel_orderCancel_order_total_gross;
|
gross: OrderCancel_orderCancel_order_total_gross;
|
||||||
|
net: OrderCancel_orderCancel_order_total_net;
|
||||||
tax: OrderCancel_orderCancel_order_total_tax;
|
tax: OrderCancel_orderCancel_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderCancel_orderCancel_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCancel_orderCancel_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderCancel_orderCancel_order_undiscountedTotal_net;
|
||||||
|
gross: OrderCancel_orderCancel_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCancel_orderCancel_order_user {
|
export interface OrderCancel_orderCancel_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderCancel_orderCancel_order {
|
||||||
metadata: (OrderCancel_orderCancel_order_metadata | null)[];
|
metadata: (OrderCancel_orderCancel_order_metadata | null)[];
|
||||||
privateMetadata: (OrderCancel_orderCancel_order_privateMetadata | null)[];
|
privateMetadata: (OrderCancel_orderCancel_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderCancel_orderCancel_order_billingAddress | null;
|
billingAddress: OrderCancel_orderCancel_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderCancel_orderCancel_order_discounts[] | null;
|
||||||
events: (OrderCancel_orderCancel_order_events | null)[] | null;
|
events: (OrderCancel_orderCancel_order_events | null)[] | null;
|
||||||
fulfillments: (OrderCancel_orderCancel_order_fulfillments | null)[];
|
fulfillments: (OrderCancel_orderCancel_order_fulfillments | null)[];
|
||||||
lines: (OrderCancel_orderCancel_order_lines | null)[];
|
lines: (OrderCancel_orderCancel_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderCancel_orderCancel_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderCancel_orderCancel_order_totalAuthorized;
|
totalAuthorized: OrderCancel_orderCancel_order_totalAuthorized;
|
||||||
totalCaptured: OrderCancel_orderCancel_order_totalCaptured;
|
totalCaptured: OrderCancel_orderCancel_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderCancel_orderCancel_order_undiscountedTotal;
|
||||||
user: OrderCancel_orderCancel_order_user | null;
|
user: OrderCancel_orderCancel_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderCancel_orderCancel_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderCancel_orderCancel_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderCapture
|
// GraphQL mutation operation: OrderCapture
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderCapture_orderCapture_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderCapture_orderCapture_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderCapture_orderCapture_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderCapture_orderCapture_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_events_relatedOrder {
|
export interface OrderCapture_orderCapture_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderCapture_orderCapture_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderCapture_orderCapture_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderCapture_orderCapture_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_events_lines_orderLine {
|
export interface OrderCapture_orderCapture_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderCapture_orderCapture_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderCapture_orderCapture_order_events_lines_discount | null;
|
||||||
orderLine: OrderCapture_orderCapture_order_events_lines_orderLine | null;
|
orderLine: OrderCapture_orderCapture_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderCapture_orderCapture_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderCapture_orderCapture_order_events_discount | null;
|
||||||
relatedOrder: OrderCapture_orderCapture_order_events_relatedOrder | null;
|
relatedOrder: OrderCapture_orderCapture_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_va
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderCapture_orderCapture_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderCapture_orderCapture_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderCapture_orderCapture_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderCapture_orderCapture_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderCapture_orderCapture_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_lines_unitPrice_gross {
|
export interface OrderCapture_orderCapture_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderCapture_orderCapture_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderCapture_orderCapture_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderCapture_orderCapture_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderCapture_orderCapture_order_lines_unitPrice;
|
unitPrice: OrderCapture_orderCapture_order_lines_unitPrice;
|
||||||
thumbnail: OrderCapture_orderCapture_order_lines_thumbnail | null;
|
thumbnail: OrderCapture_orderCapture_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderCapture_orderCapture_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_subtotal {
|
export interface OrderCapture_orderCapture_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderCapture_orderCapture_order_subtotal_gross;
|
gross: OrderCapture_orderCapture_order_subtotal_gross;
|
||||||
|
net: OrderCapture_orderCapture_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_total_gross {
|
export interface OrderCapture_orderCapture_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderCapture_orderCapture_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_total_tax {
|
export interface OrderCapture_orderCapture_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderCapture_orderCapture_order_total_tax {
|
||||||
export interface OrderCapture_orderCapture_order_total {
|
export interface OrderCapture_orderCapture_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderCapture_orderCapture_order_total_gross;
|
gross: OrderCapture_orderCapture_order_total_gross;
|
||||||
|
net: OrderCapture_orderCapture_order_total_net;
|
||||||
tax: OrderCapture_orderCapture_order_total_tax;
|
tax: OrderCapture_orderCapture_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderCapture_orderCapture_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderCapture_orderCapture_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderCapture_orderCapture_order_undiscountedTotal_net;
|
||||||
|
gross: OrderCapture_orderCapture_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderCapture_orderCapture_order_user {
|
export interface OrderCapture_orderCapture_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderCapture_orderCapture_order {
|
||||||
metadata: (OrderCapture_orderCapture_order_metadata | null)[];
|
metadata: (OrderCapture_orderCapture_order_metadata | null)[];
|
||||||
privateMetadata: (OrderCapture_orderCapture_order_privateMetadata | null)[];
|
privateMetadata: (OrderCapture_orderCapture_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderCapture_orderCapture_order_billingAddress | null;
|
billingAddress: OrderCapture_orderCapture_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderCapture_orderCapture_order_discounts[] | null;
|
||||||
events: (OrderCapture_orderCapture_order_events | null)[] | null;
|
events: (OrderCapture_orderCapture_order_events | null)[] | null;
|
||||||
fulfillments: (OrderCapture_orderCapture_order_fulfillments | null)[];
|
fulfillments: (OrderCapture_orderCapture_order_fulfillments | null)[];
|
||||||
lines: (OrderCapture_orderCapture_order_lines | null)[];
|
lines: (OrderCapture_orderCapture_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderCapture_orderCapture_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderCapture_orderCapture_order_totalAuthorized;
|
totalAuthorized: OrderCapture_orderCapture_order_totalAuthorized;
|
||||||
totalCaptured: OrderCapture_orderCapture_order_totalCaptured;
|
totalCaptured: OrderCapture_orderCapture_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderCapture_orderCapture_order_undiscountedTotal;
|
||||||
user: OrderCapture_orderCapture_order_user | null;
|
user: OrderCapture_orderCapture_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderCapture_orderCapture_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderCapture_orderCapture_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderConfirm
|
// GraphQL mutation operation: OrderConfirm
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderConfirm_orderConfirm_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderConfirm_orderConfirm_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderConfirm_orderConfirm_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderConfirm_orderConfirm_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_events_relatedOrder {
|
export interface OrderConfirm_orderConfirm_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderConfirm_orderConfirm_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderConfirm_orderConfirm_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderConfirm_orderConfirm_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_events_lines_orderLine {
|
export interface OrderConfirm_orderConfirm_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderConfirm_orderConfirm_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderConfirm_orderConfirm_order_events_lines_discount | null;
|
||||||
orderLine: OrderConfirm_orderConfirm_order_events_lines_orderLine | null;
|
orderLine: OrderConfirm_orderConfirm_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderConfirm_orderConfirm_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderConfirm_orderConfirm_order_events_discount | null;
|
||||||
relatedOrder: OrderConfirm_orderConfirm_order_events_relatedOrder | null;
|
relatedOrder: OrderConfirm_orderConfirm_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_va
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderConfirm_orderConfirm_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderConfirm_orderConfirm_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderConfirm_orderConfirm_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderConfirm_orderConfirm_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_lines_unitPrice_gross {
|
export interface OrderConfirm_orderConfirm_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderConfirm_orderConfirm_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderConfirm_orderConfirm_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderConfirm_orderConfirm_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderConfirm_orderConfirm_order_lines_unitPrice;
|
unitPrice: OrderConfirm_orderConfirm_order_lines_unitPrice;
|
||||||
thumbnail: OrderConfirm_orderConfirm_order_lines_thumbnail | null;
|
thumbnail: OrderConfirm_orderConfirm_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderConfirm_orderConfirm_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_subtotal {
|
export interface OrderConfirm_orderConfirm_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderConfirm_orderConfirm_order_subtotal_gross;
|
gross: OrderConfirm_orderConfirm_order_subtotal_gross;
|
||||||
|
net: OrderConfirm_orderConfirm_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_total_gross {
|
export interface OrderConfirm_orderConfirm_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderConfirm_orderConfirm_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_total_tax {
|
export interface OrderConfirm_orderConfirm_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderConfirm_orderConfirm_order_total_tax {
|
||||||
export interface OrderConfirm_orderConfirm_order_total {
|
export interface OrderConfirm_orderConfirm_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderConfirm_orderConfirm_order_total_gross;
|
gross: OrderConfirm_orderConfirm_order_total_gross;
|
||||||
|
net: OrderConfirm_orderConfirm_order_total_net;
|
||||||
tax: OrderConfirm_orderConfirm_order_total_tax;
|
tax: OrderConfirm_orderConfirm_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderConfirm_orderConfirm_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderConfirm_orderConfirm_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderConfirm_orderConfirm_order_undiscountedTotal_net;
|
||||||
|
gross: OrderConfirm_orderConfirm_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderConfirm_orderConfirm_order_user {
|
export interface OrderConfirm_orderConfirm_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderConfirm_orderConfirm_order {
|
||||||
metadata: (OrderConfirm_orderConfirm_order_metadata | null)[];
|
metadata: (OrderConfirm_orderConfirm_order_metadata | null)[];
|
||||||
privateMetadata: (OrderConfirm_orderConfirm_order_privateMetadata | null)[];
|
privateMetadata: (OrderConfirm_orderConfirm_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderConfirm_orderConfirm_order_billingAddress | null;
|
billingAddress: OrderConfirm_orderConfirm_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderConfirm_orderConfirm_order_discounts[] | null;
|
||||||
events: (OrderConfirm_orderConfirm_order_events | null)[] | null;
|
events: (OrderConfirm_orderConfirm_order_events | null)[] | null;
|
||||||
fulfillments: (OrderConfirm_orderConfirm_order_fulfillments | null)[];
|
fulfillments: (OrderConfirm_orderConfirm_order_fulfillments | null)[];
|
||||||
lines: (OrderConfirm_orderConfirm_order_lines | null)[];
|
lines: (OrderConfirm_orderConfirm_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderConfirm_orderConfirm_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderConfirm_orderConfirm_order_totalAuthorized;
|
totalAuthorized: OrderConfirm_orderConfirm_order_totalAuthorized;
|
||||||
totalCaptured: OrderConfirm_orderConfirm_order_totalCaptured;
|
totalCaptured: OrderConfirm_orderConfirm_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderConfirm_orderConfirm_order_undiscountedTotal;
|
||||||
user: OrderConfirm_orderConfirm_order_user | null;
|
user: OrderConfirm_orderConfirm_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderConfirm_orderConfirm_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderConfirm_orderConfirm_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum, WeightUnitsEnum } from "./../../types/globalTypes";
|
import { OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum, WeightUnitsEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL query operation: OrderDetails
|
// GraphQL query operation: OrderDetails
|
||||||
|
@ -42,6 +42,45 @@ export interface OrderDetails_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDetails_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDetails_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDetails_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_events_relatedOrder {
|
export interface OrderDetails_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -56,6 +95,29 @@ export interface OrderDetails_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDetails_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDetails_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_events_lines_orderLine {
|
export interface OrderDetails_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -67,6 +129,7 @@ export interface OrderDetails_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderDetails_order_events_lines_discount | null;
|
||||||
orderLine: OrderDetails_order_events_lines_orderLine | null;
|
orderLine: OrderDetails_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +142,7 @@ export interface OrderDetails_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDetails_order_events_discount | null;
|
||||||
relatedOrder: OrderDetails_order_events_relatedOrder | null;
|
relatedOrder: OrderDetails_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -94,6 +158,31 @@ export interface OrderDetails_order_fulfillments_lines_orderLine_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDetails_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDetails_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderDetails_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -126,6 +215,11 @@ export interface OrderDetails_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDetails_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDetails_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDetails_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderDetails_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderDetails_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderDetails_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -159,6 +253,31 @@ export interface OrderDetails_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDetails_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDetails_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_lines_unitPrice_gross {
|
export interface OrderDetails_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -191,6 +310,11 @@ export interface OrderDetails_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDetails_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDetails_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDetails_order_lines_unitPrice;
|
unitPrice: OrderDetails_order_lines_unitPrice;
|
||||||
thumbnail: OrderDetails_order_lines_thumbnail | null;
|
thumbnail: OrderDetails_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -239,9 +363,16 @@ export interface OrderDetails_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_subtotal {
|
export interface OrderDetails_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDetails_order_subtotal_gross;
|
gross: OrderDetails_order_subtotal_gross;
|
||||||
|
net: OrderDetails_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_total_gross {
|
export interface OrderDetails_order_total_gross {
|
||||||
|
@ -250,6 +381,12 @@ export interface OrderDetails_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_total_tax {
|
export interface OrderDetails_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -259,6 +396,7 @@ export interface OrderDetails_order_total_tax {
|
||||||
export interface OrderDetails_order_total {
|
export interface OrderDetails_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDetails_order_total_gross;
|
gross: OrderDetails_order_total_gross;
|
||||||
|
net: OrderDetails_order_total_net;
|
||||||
tax: OrderDetails_order_total_tax;
|
tax: OrderDetails_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,6 +412,24 @@ export interface OrderDetails_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDetails_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDetails_order_undiscountedTotal_net;
|
||||||
|
gross: OrderDetails_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDetails_order_user {
|
export interface OrderDetails_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -322,9 +478,11 @@ export interface OrderDetails_order {
|
||||||
metadata: (OrderDetails_order_metadata | null)[];
|
metadata: (OrderDetails_order_metadata | null)[];
|
||||||
privateMetadata: (OrderDetails_order_privateMetadata | null)[];
|
privateMetadata: (OrderDetails_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderDetails_order_billingAddress | null;
|
billingAddress: OrderDetails_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderDetails_order_discounts[] | null;
|
||||||
events: (OrderDetails_order_events | null)[] | null;
|
events: (OrderDetails_order_events | null)[] | null;
|
||||||
fulfillments: (OrderDetails_order_fulfillments | null)[];
|
fulfillments: (OrderDetails_order_fulfillments | null)[];
|
||||||
lines: (OrderDetails_order_lines | null)[];
|
lines: (OrderDetails_order_lines | null)[];
|
||||||
|
@ -340,6 +498,7 @@ export interface OrderDetails_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderDetails_order_totalAuthorized;
|
totalAuthorized: OrderDetails_order_totalAuthorized;
|
||||||
totalCaptured: OrderDetails_order_totalCaptured;
|
totalCaptured: OrderDetails_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDetails_order_undiscountedTotal;
|
||||||
user: OrderDetails_order_user | null;
|
user: OrderDetails_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderDetails_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderDetails_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
530
src/orders/types/OrderDiscountAdd.ts
Normal file
530
src/orders/types/OrderDiscountAdd.ts
Normal file
|
@ -0,0 +1,530 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { OrderDiscountCommonInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL mutation operation: OrderDiscountAdd
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_errors {
|
||||||
|
__typename: "OrderError";
|
||||||
|
code: OrderErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_metadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderDiscountAdd_orderDiscountAdd_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountAdd_orderDiscountAdd_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountAdd_orderDiscountAdd_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDiscountAdd_orderDiscountAdd_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountAdd_orderDiscountAdd_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDiscountAdd_orderDiscountAdd_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
itemName: string | null;
|
||||||
|
discount: OrderDiscountAdd_orderDiscountAdd_order_events_lines_discount | null;
|
||||||
|
orderLine: OrderDiscountAdd_orderDiscountAdd_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDiscountAdd_orderDiscountAdd_order_events_discount | null;
|
||||||
|
relatedOrder: OrderDiscountAdd_orderDiscountAdd_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderDiscountAdd_orderDiscountAdd_order_events_user | null;
|
||||||
|
lines: (OrderDiscountAdd_orderDiscountAdd_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderDiscountAdd_orderDiscountAdd_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderDiscountAdd_orderDiscountAdd_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDiscountAdd_orderDiscountAdd_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_lines_unitPrice_gross;
|
||||||
|
net: OrderDiscountAdd_orderDiscountAdd_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderDiscountAdd_orderDiscountAdd_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDiscountAdd_orderDiscountAdd_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDiscountAdd_orderDiscountAdd_order_lines_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderDiscountAdd_orderDiscountAdd_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderDiscountAdd_orderDiscountAdd_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderDiscountAdd_orderDiscountAdd_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_shippingMethod {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_shippingPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_shippingPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_shippingPrice_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_subtotal_gross;
|
||||||
|
net: OrderDiscountAdd_orderDiscountAdd_order_subtotal_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_total_gross;
|
||||||
|
net: OrderDiscountAdd_orderDiscountAdd_order_total_net;
|
||||||
|
tax: OrderDiscountAdd_orderDiscountAdd_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDiscountAdd_orderDiscountAdd_order_undiscountedTotal_net;
|
||||||
|
gross: OrderDiscountAdd_orderDiscountAdd_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderDiscountAdd_orderDiscountAdd_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd_order {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
metadata: (OrderDiscountAdd_orderDiscountAdd_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderDiscountAdd_orderDiscountAdd_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderDiscountAdd_orderDiscountAdd_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
discounts: OrderDiscountAdd_orderDiscountAdd_order_discounts[] | null;
|
||||||
|
events: (OrderDiscountAdd_orderDiscountAdd_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderDiscountAdd_orderDiscountAdd_order_fulfillments | null)[];
|
||||||
|
lines: (OrderDiscountAdd_orderDiscountAdd_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderDiscountAdd_orderDiscountAdd_order_shippingAddress | null;
|
||||||
|
shippingMethod: OrderDiscountAdd_orderDiscountAdd_order_shippingMethod | null;
|
||||||
|
shippingMethodName: string | null;
|
||||||
|
shippingPrice: OrderDiscountAdd_orderDiscountAdd_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderDiscountAdd_orderDiscountAdd_order_subtotal;
|
||||||
|
total: OrderDiscountAdd_orderDiscountAdd_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderDiscountAdd_orderDiscountAdd_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderDiscountAdd_orderDiscountAdd_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDiscountAdd_orderDiscountAdd_order_undiscountedTotal;
|
||||||
|
user: OrderDiscountAdd_orderDiscountAdd_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderDiscountAdd_orderDiscountAdd_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderDiscountAdd_orderDiscountAdd_order_discount | null;
|
||||||
|
invoices: (OrderDiscountAdd_orderDiscountAdd_order_invoices | null)[] | null;
|
||||||
|
channel: OrderDiscountAdd_orderDiscountAdd_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd_orderDiscountAdd {
|
||||||
|
__typename: "OrderDiscountAdd";
|
||||||
|
errors: OrderDiscountAdd_orderDiscountAdd_errors[];
|
||||||
|
order: OrderDiscountAdd_orderDiscountAdd_order | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAdd {
|
||||||
|
orderDiscountAdd: OrderDiscountAdd_orderDiscountAdd | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountAddVariables {
|
||||||
|
input: OrderDiscountCommonInput;
|
||||||
|
orderId: string;
|
||||||
|
}
|
529
src/orders/types/OrderDiscountDelete.ts
Normal file
529
src/orders/types/OrderDiscountDelete.ts
Normal file
|
@ -0,0 +1,529 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL mutation operation: OrderDiscountDelete
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_errors {
|
||||||
|
__typename: "OrderError";
|
||||||
|
code: OrderErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_metadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderDiscountDelete_orderDiscountDelete_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountDelete_orderDiscountDelete_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountDelete_orderDiscountDelete_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDiscountDelete_orderDiscountDelete_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountDelete_orderDiscountDelete_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDiscountDelete_orderDiscountDelete_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
itemName: string | null;
|
||||||
|
discount: OrderDiscountDelete_orderDiscountDelete_order_events_lines_discount | null;
|
||||||
|
orderLine: OrderDiscountDelete_orderDiscountDelete_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDiscountDelete_orderDiscountDelete_order_events_discount | null;
|
||||||
|
relatedOrder: OrderDiscountDelete_orderDiscountDelete_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderDiscountDelete_orderDiscountDelete_order_events_user | null;
|
||||||
|
lines: (OrderDiscountDelete_orderDiscountDelete_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderDiscountDelete_orderDiscountDelete_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderDiscountDelete_orderDiscountDelete_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDiscountDelete_orderDiscountDelete_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_lines_unitPrice_gross;
|
||||||
|
net: OrderDiscountDelete_orderDiscountDelete_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderDiscountDelete_orderDiscountDelete_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDiscountDelete_orderDiscountDelete_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDiscountDelete_orderDiscountDelete_order_lines_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderDiscountDelete_orderDiscountDelete_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderDiscountDelete_orderDiscountDelete_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderDiscountDelete_orderDiscountDelete_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_shippingMethod {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_shippingPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_shippingPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_shippingPrice_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_subtotal_gross;
|
||||||
|
net: OrderDiscountDelete_orderDiscountDelete_order_subtotal_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_total_gross;
|
||||||
|
net: OrderDiscountDelete_orderDiscountDelete_order_total_net;
|
||||||
|
tax: OrderDiscountDelete_orderDiscountDelete_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDiscountDelete_orderDiscountDelete_order_undiscountedTotal_net;
|
||||||
|
gross: OrderDiscountDelete_orderDiscountDelete_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderDiscountDelete_orderDiscountDelete_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete_order {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
metadata: (OrderDiscountDelete_orderDiscountDelete_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderDiscountDelete_orderDiscountDelete_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderDiscountDelete_orderDiscountDelete_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
discounts: OrderDiscountDelete_orderDiscountDelete_order_discounts[] | null;
|
||||||
|
events: (OrderDiscountDelete_orderDiscountDelete_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderDiscountDelete_orderDiscountDelete_order_fulfillments | null)[];
|
||||||
|
lines: (OrderDiscountDelete_orderDiscountDelete_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderDiscountDelete_orderDiscountDelete_order_shippingAddress | null;
|
||||||
|
shippingMethod: OrderDiscountDelete_orderDiscountDelete_order_shippingMethod | null;
|
||||||
|
shippingMethodName: string | null;
|
||||||
|
shippingPrice: OrderDiscountDelete_orderDiscountDelete_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderDiscountDelete_orderDiscountDelete_order_subtotal;
|
||||||
|
total: OrderDiscountDelete_orderDiscountDelete_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderDiscountDelete_orderDiscountDelete_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderDiscountDelete_orderDiscountDelete_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDiscountDelete_orderDiscountDelete_order_undiscountedTotal;
|
||||||
|
user: OrderDiscountDelete_orderDiscountDelete_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderDiscountDelete_orderDiscountDelete_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderDiscountDelete_orderDiscountDelete_order_discount | null;
|
||||||
|
invoices: (OrderDiscountDelete_orderDiscountDelete_order_invoices | null)[] | null;
|
||||||
|
channel: OrderDiscountDelete_orderDiscountDelete_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete_orderDiscountDelete {
|
||||||
|
__typename: "OrderDiscountDelete";
|
||||||
|
errors: OrderDiscountDelete_orderDiscountDelete_errors[];
|
||||||
|
order: OrderDiscountDelete_orderDiscountDelete_order | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDelete {
|
||||||
|
orderDiscountDelete: OrderDiscountDelete_orderDiscountDelete | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountDeleteVariables {
|
||||||
|
discountId: string;
|
||||||
|
}
|
530
src/orders/types/OrderDiscountUpdate.ts
Normal file
530
src/orders/types/OrderDiscountUpdate.ts
Normal file
|
@ -0,0 +1,530 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { OrderDiscountCommonInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL mutation operation: OrderDiscountUpdate
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_errors {
|
||||||
|
__typename: "OrderError";
|
||||||
|
code: OrderErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_metadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderDiscountUpdate_orderDiscountUpdate_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountUpdate_orderDiscountUpdate_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountUpdate_orderDiscountUpdate_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDiscountUpdate_orderDiscountUpdate_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
itemName: string | null;
|
||||||
|
discount: OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_discount | null;
|
||||||
|
orderLine: OrderDiscountUpdate_orderDiscountUpdate_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDiscountUpdate_orderDiscountUpdate_order_events_discount | null;
|
||||||
|
relatedOrder: OrderDiscountUpdate_orderDiscountUpdate_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderDiscountUpdate_orderDiscountUpdate_order_events_user | null;
|
||||||
|
lines: (OrderDiscountUpdate_orderDiscountUpdate_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDiscountUpdate_orderDiscountUpdate_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitPrice_gross;
|
||||||
|
net: OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderDiscountUpdate_orderDiscountUpdate_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDiscountUpdate_orderDiscountUpdate_order_lines_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderDiscountUpdate_orderDiscountUpdate_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderDiscountUpdate_orderDiscountUpdate_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderDiscountUpdate_orderDiscountUpdate_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_shippingMethod {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_shippingPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_shippingPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_shippingPrice_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_subtotal_gross;
|
||||||
|
net: OrderDiscountUpdate_orderDiscountUpdate_order_subtotal_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_total_gross;
|
||||||
|
net: OrderDiscountUpdate_orderDiscountUpdate_order_total_net;
|
||||||
|
tax: OrderDiscountUpdate_orderDiscountUpdate_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDiscountUpdate_orderDiscountUpdate_order_undiscountedTotal_net;
|
||||||
|
gross: OrderDiscountUpdate_orderDiscountUpdate_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderDiscountUpdate_orderDiscountUpdate_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate_order {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
metadata: (OrderDiscountUpdate_orderDiscountUpdate_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderDiscountUpdate_orderDiscountUpdate_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderDiscountUpdate_orderDiscountUpdate_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
discounts: OrderDiscountUpdate_orderDiscountUpdate_order_discounts[] | null;
|
||||||
|
events: (OrderDiscountUpdate_orderDiscountUpdate_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderDiscountUpdate_orderDiscountUpdate_order_fulfillments | null)[];
|
||||||
|
lines: (OrderDiscountUpdate_orderDiscountUpdate_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderDiscountUpdate_orderDiscountUpdate_order_shippingAddress | null;
|
||||||
|
shippingMethod: OrderDiscountUpdate_orderDiscountUpdate_order_shippingMethod | null;
|
||||||
|
shippingMethodName: string | null;
|
||||||
|
shippingPrice: OrderDiscountUpdate_orderDiscountUpdate_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderDiscountUpdate_orderDiscountUpdate_order_subtotal;
|
||||||
|
total: OrderDiscountUpdate_orderDiscountUpdate_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderDiscountUpdate_orderDiscountUpdate_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderDiscountUpdate_orderDiscountUpdate_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDiscountUpdate_orderDiscountUpdate_order_undiscountedTotal;
|
||||||
|
user: OrderDiscountUpdate_orderDiscountUpdate_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderDiscountUpdate_orderDiscountUpdate_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderDiscountUpdate_orderDiscountUpdate_order_discount | null;
|
||||||
|
invoices: (OrderDiscountUpdate_orderDiscountUpdate_order_invoices | null)[] | null;
|
||||||
|
channel: OrderDiscountUpdate_orderDiscountUpdate_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate_orderDiscountUpdate {
|
||||||
|
__typename: "OrderDiscountUpdate";
|
||||||
|
errors: OrderDiscountUpdate_orderDiscountUpdate_errors[];
|
||||||
|
order: OrderDiscountUpdate_orderDiscountUpdate_order | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdate {
|
||||||
|
orderDiscountUpdate: OrderDiscountUpdate_orderDiscountUpdate | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountUpdateVariables {
|
||||||
|
input: OrderDiscountCommonInput;
|
||||||
|
discountId: string;
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderDraftCancel
|
// GraphQL mutation operation: OrderDraftCancel
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderDraftCancel_draftOrderDelete_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftCancel_draftOrderDelete_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftCancel_draftOrderDelete_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDraftCancel_draftOrderDelete_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_events_relatedOrder {
|
export interface OrderDraftCancel_draftOrderDelete_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderDraftCancel_draftOrderDelete_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftCancel_draftOrderDelete_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDraftCancel_draftOrderDelete_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_events_lines_orderLine {
|
export interface OrderDraftCancel_draftOrderDelete_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderDraftCancel_draftOrderDelete_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderDraftCancel_draftOrderDelete_order_events_lines_discount | null;
|
||||||
orderLine: OrderDraftCancel_draftOrderDelete_order_events_lines_orderLine | null;
|
orderLine: OrderDraftCancel_draftOrderDelete_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderDraftCancel_draftOrderDelete_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDraftCancel_draftOrderDelete_order_events_discount | null;
|
||||||
relatedOrder: OrderDraftCancel_draftOrderDelete_order_events_relatedOrder | null;
|
relatedOrder: OrderDraftCancel_draftOrderDelete_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orde
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orde
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderDraftCancel_draftOrderDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderDraftCancel_draftOrderDelete_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDraftCancel_draftOrderDelete_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDraftCancel_draftOrderDelete_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_lines_unitPrice_gross {
|
export interface OrderDraftCancel_draftOrderDelete_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderDraftCancel_draftOrderDelete_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDraftCancel_draftOrderDelete_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDraftCancel_draftOrderDelete_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDraftCancel_draftOrderDelete_order_lines_unitPrice;
|
unitPrice: OrderDraftCancel_draftOrderDelete_order_lines_unitPrice;
|
||||||
thumbnail: OrderDraftCancel_draftOrderDelete_order_lines_thumbnail | null;
|
thumbnail: OrderDraftCancel_draftOrderDelete_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderDraftCancel_draftOrderDelete_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_subtotal {
|
export interface OrderDraftCancel_draftOrderDelete_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDraftCancel_draftOrderDelete_order_subtotal_gross;
|
gross: OrderDraftCancel_draftOrderDelete_order_subtotal_gross;
|
||||||
|
net: OrderDraftCancel_draftOrderDelete_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_total_gross {
|
export interface OrderDraftCancel_draftOrderDelete_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderDraftCancel_draftOrderDelete_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_total_tax {
|
export interface OrderDraftCancel_draftOrderDelete_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderDraftCancel_draftOrderDelete_order_total_tax {
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_total {
|
export interface OrderDraftCancel_draftOrderDelete_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDraftCancel_draftOrderDelete_order_total_gross;
|
gross: OrderDraftCancel_draftOrderDelete_order_total_gross;
|
||||||
|
net: OrderDraftCancel_draftOrderDelete_order_total_net;
|
||||||
tax: OrderDraftCancel_draftOrderDelete_order_total_tax;
|
tax: OrderDraftCancel_draftOrderDelete_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderDraftCancel_draftOrderDelete_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftCancel_draftOrderDelete_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDraftCancel_draftOrderDelete_order_undiscountedTotal_net;
|
||||||
|
gross: OrderDraftCancel_draftOrderDelete_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftCancel_draftOrderDelete_order_user {
|
export interface OrderDraftCancel_draftOrderDelete_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderDraftCancel_draftOrderDelete_order {
|
||||||
metadata: (OrderDraftCancel_draftOrderDelete_order_metadata | null)[];
|
metadata: (OrderDraftCancel_draftOrderDelete_order_metadata | null)[];
|
||||||
privateMetadata: (OrderDraftCancel_draftOrderDelete_order_privateMetadata | null)[];
|
privateMetadata: (OrderDraftCancel_draftOrderDelete_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderDraftCancel_draftOrderDelete_order_billingAddress | null;
|
billingAddress: OrderDraftCancel_draftOrderDelete_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderDraftCancel_draftOrderDelete_order_discounts[] | null;
|
||||||
events: (OrderDraftCancel_draftOrderDelete_order_events | null)[] | null;
|
events: (OrderDraftCancel_draftOrderDelete_order_events | null)[] | null;
|
||||||
fulfillments: (OrderDraftCancel_draftOrderDelete_order_fulfillments | null)[];
|
fulfillments: (OrderDraftCancel_draftOrderDelete_order_fulfillments | null)[];
|
||||||
lines: (OrderDraftCancel_draftOrderDelete_order_lines | null)[];
|
lines: (OrderDraftCancel_draftOrderDelete_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderDraftCancel_draftOrderDelete_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderDraftCancel_draftOrderDelete_order_totalAuthorized;
|
totalAuthorized: OrderDraftCancel_draftOrderDelete_order_totalAuthorized;
|
||||||
totalCaptured: OrderDraftCancel_draftOrderDelete_order_totalCaptured;
|
totalCaptured: OrderDraftCancel_draftOrderDelete_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDraftCancel_draftOrderDelete_order_undiscountedTotal;
|
||||||
user: OrderDraftCancel_draftOrderDelete_order_user | null;
|
user: OrderDraftCancel_draftOrderDelete_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderDraftCancel_draftOrderDelete_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderDraftCancel_draftOrderDelete_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderDraftFinalize
|
// GraphQL mutation operation: OrderDraftFinalize
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderDraftFinalize_draftOrderComplete_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftFinalize_draftOrderComplete_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftFinalize_draftOrderComplete_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDraftFinalize_draftOrderComplete_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_events_relatedOrder {
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderDraftFinalize_draftOrderComplete_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftFinalize_draftOrderComplete_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDraftFinalize_draftOrderComplete_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_events_lines_orderLine {
|
export interface OrderDraftFinalize_draftOrderComplete_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderDraftFinalize_draftOrderComplete_order_events_lines_discount | null;
|
||||||
orderLine: OrderDraftFinalize_draftOrderComplete_order_events_lines_orderLine | null;
|
orderLine: OrderDraftFinalize_draftOrderComplete_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDraftFinalize_draftOrderComplete_order_events_discount | null;
|
||||||
relatedOrder: OrderDraftFinalize_draftOrderComplete_order_events_relatedOrder | null;
|
relatedOrder: OrderDraftFinalize_draftOrderComplete_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderDraftFinalize_draftOrderComplete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderDraftFinalize_draftOrderComplete_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDraftFinalize_draftOrderComplete_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDraftFinalize_draftOrderComplete_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_lines_unitPrice_gross {
|
export interface OrderDraftFinalize_draftOrderComplete_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderDraftFinalize_draftOrderComplete_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDraftFinalize_draftOrderComplete_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDraftFinalize_draftOrderComplete_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDraftFinalize_draftOrderComplete_order_lines_unitPrice;
|
unitPrice: OrderDraftFinalize_draftOrderComplete_order_lines_unitPrice;
|
||||||
thumbnail: OrderDraftFinalize_draftOrderComplete_order_lines_thumbnail | null;
|
thumbnail: OrderDraftFinalize_draftOrderComplete_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderDraftFinalize_draftOrderComplete_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_subtotal {
|
export interface OrderDraftFinalize_draftOrderComplete_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDraftFinalize_draftOrderComplete_order_subtotal_gross;
|
gross: OrderDraftFinalize_draftOrderComplete_order_subtotal_gross;
|
||||||
|
net: OrderDraftFinalize_draftOrderComplete_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_total_gross {
|
export interface OrderDraftFinalize_draftOrderComplete_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderDraftFinalize_draftOrderComplete_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_total_tax {
|
export interface OrderDraftFinalize_draftOrderComplete_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order_total_tax {
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_total {
|
export interface OrderDraftFinalize_draftOrderComplete_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDraftFinalize_draftOrderComplete_order_total_gross;
|
gross: OrderDraftFinalize_draftOrderComplete_order_total_gross;
|
||||||
|
net: OrderDraftFinalize_draftOrderComplete_order_total_net;
|
||||||
tax: OrderDraftFinalize_draftOrderComplete_order_total_tax;
|
tax: OrderDraftFinalize_draftOrderComplete_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderDraftFinalize_draftOrderComplete_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftFinalize_draftOrderComplete_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDraftFinalize_draftOrderComplete_order_undiscountedTotal_net;
|
||||||
|
gross: OrderDraftFinalize_draftOrderComplete_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFinalize_draftOrderComplete_order_user {
|
export interface OrderDraftFinalize_draftOrderComplete_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderDraftFinalize_draftOrderComplete_order {
|
||||||
metadata: (OrderDraftFinalize_draftOrderComplete_order_metadata | null)[];
|
metadata: (OrderDraftFinalize_draftOrderComplete_order_metadata | null)[];
|
||||||
privateMetadata: (OrderDraftFinalize_draftOrderComplete_order_privateMetadata | null)[];
|
privateMetadata: (OrderDraftFinalize_draftOrderComplete_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderDraftFinalize_draftOrderComplete_order_billingAddress | null;
|
billingAddress: OrderDraftFinalize_draftOrderComplete_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderDraftFinalize_draftOrderComplete_order_discounts[] | null;
|
||||||
events: (OrderDraftFinalize_draftOrderComplete_order_events | null)[] | null;
|
events: (OrderDraftFinalize_draftOrderComplete_order_events | null)[] | null;
|
||||||
fulfillments: (OrderDraftFinalize_draftOrderComplete_order_fulfillments | null)[];
|
fulfillments: (OrderDraftFinalize_draftOrderComplete_order_fulfillments | null)[];
|
||||||
lines: (OrderDraftFinalize_draftOrderComplete_order_lines | null)[];
|
lines: (OrderDraftFinalize_draftOrderComplete_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderDraftFinalize_draftOrderComplete_order_totalAuthorized;
|
totalAuthorized: OrderDraftFinalize_draftOrderComplete_order_totalAuthorized;
|
||||||
totalCaptured: OrderDraftFinalize_draftOrderComplete_order_totalCaptured;
|
totalCaptured: OrderDraftFinalize_draftOrderComplete_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDraftFinalize_draftOrderComplete_order_undiscountedTotal;
|
||||||
user: OrderDraftFinalize_draftOrderComplete_order_user | null;
|
user: OrderDraftFinalize_draftOrderComplete_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderDraftFinalize_draftOrderComplete_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderDraftFinalize_draftOrderComplete_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { DraftOrderInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { DraftOrderInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderDraftUpdate
|
// GraphQL mutation operation: OrderDraftUpdate
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftUpdate_draftOrderUpdate_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftUpdate_draftOrderUpdate_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDraftUpdate_draftOrderUpdate_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_events_relatedOrder {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderDraftUpdate_draftOrderUpdate_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderDraftUpdate_draftOrderUpdate_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_events_lines_orderLine {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderDraftUpdate_draftOrderUpdate_order_events_lines_discount | null;
|
||||||
orderLine: OrderDraftUpdate_draftOrderUpdate_order_events_lines_orderLine | null;
|
orderLine: OrderDraftUpdate_draftOrderUpdate_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderDraftUpdate_draftOrderUpdate_order_events_discount | null;
|
||||||
relatedOrder: OrderDraftUpdate_draftOrderUpdate_order_events_relatedOrder | null;
|
relatedOrder: OrderDraftUpdate_draftOrderUpdate_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orde
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orde
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderDraftUpdate_draftOrderUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderDraftUpdate_draftOrderUpdate_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderDraftUpdate_draftOrderUpdate_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_unitPrice_gross {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderDraftUpdate_draftOrderUpdate_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderDraftUpdate_draftOrderUpdate_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_lines_unitPrice;
|
unitPrice: OrderDraftUpdate_draftOrderUpdate_order_lines_unitPrice;
|
||||||
thumbnail: OrderDraftUpdate_draftOrderUpdate_order_lines_thumbnail | null;
|
thumbnail: OrderDraftUpdate_draftOrderUpdate_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_subtotal {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDraftUpdate_draftOrderUpdate_order_subtotal_gross;
|
gross: OrderDraftUpdate_draftOrderUpdate_order_subtotal_gross;
|
||||||
|
net: OrderDraftUpdate_draftOrderUpdate_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_total_gross {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_total_tax {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_total_tax {
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_total {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderDraftUpdate_draftOrderUpdate_order_total_gross;
|
gross: OrderDraftUpdate_draftOrderUpdate_order_total_gross;
|
||||||
|
net: OrderDraftUpdate_draftOrderUpdate_order_total_net;
|
||||||
tax: OrderDraftUpdate_draftOrderUpdate_order_total_tax;
|
tax: OrderDraftUpdate_draftOrderUpdate_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDraftUpdate_draftOrderUpdate_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderDraftUpdate_draftOrderUpdate_order_undiscountedTotal_net;
|
||||||
|
gross: OrderDraftUpdate_draftOrderUpdate_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftUpdate_draftOrderUpdate_order_user {
|
export interface OrderDraftUpdate_draftOrderUpdate_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderDraftUpdate_draftOrderUpdate_order {
|
||||||
metadata: (OrderDraftUpdate_draftOrderUpdate_order_metadata | null)[];
|
metadata: (OrderDraftUpdate_draftOrderUpdate_order_metadata | null)[];
|
||||||
privateMetadata: (OrderDraftUpdate_draftOrderUpdate_order_privateMetadata | null)[];
|
privateMetadata: (OrderDraftUpdate_draftOrderUpdate_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderDraftUpdate_draftOrderUpdate_order_billingAddress | null;
|
billingAddress: OrderDraftUpdate_draftOrderUpdate_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderDraftUpdate_draftOrderUpdate_order_discounts[] | null;
|
||||||
events: (OrderDraftUpdate_draftOrderUpdate_order_events | null)[] | null;
|
events: (OrderDraftUpdate_draftOrderUpdate_order_events | null)[] | null;
|
||||||
fulfillments: (OrderDraftUpdate_draftOrderUpdate_order_fulfillments | null)[];
|
fulfillments: (OrderDraftUpdate_draftOrderUpdate_order_fulfillments | null)[];
|
||||||
lines: (OrderDraftUpdate_draftOrderUpdate_order_lines | null)[];
|
lines: (OrderDraftUpdate_draftOrderUpdate_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderDraftUpdate_draftOrderUpdate_order_totalAuthorized;
|
totalAuthorized: OrderDraftUpdate_draftOrderUpdate_order_totalAuthorized;
|
||||||
totalCaptured: OrderDraftUpdate_draftOrderUpdate_order_totalCaptured;
|
totalCaptured: OrderDraftUpdate_draftOrderUpdate_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderDraftUpdate_draftOrderUpdate_order_undiscountedTotal;
|
||||||
user: OrderDraftUpdate_draftOrderUpdate_order_user | null;
|
user: OrderDraftUpdate_draftOrderUpdate_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderDraftUpdate_draftOrderUpdate_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderDraftUpdate_draftOrderUpdate_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { FulfillmentCancelInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { FulfillmentCancelInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderFulfillmentCancel
|
// GraphQL mutation operation: OrderFulfillmentCancel
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_billingAddr
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentCancel_orderFulfillmentCancel_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_relatedOrder {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_user
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_orderLine {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events_line
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_discount | null;
|
||||||
orderLine: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_orderLine | null;
|
orderLine: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_discount | null;
|
||||||
relatedOrder: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_relatedOrder | null;
|
relatedOrder: OrderFulfillmentCancel_orderFulfillmentCancel_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillment
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillment
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_varia
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitPrice_gross {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitPrice;
|
unitPrice: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_unitPrice;
|
||||||
thumbnail: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_thumbnail | null;
|
thumbnail: OrderFulfillmentCancel_orderFulfillmentCancel_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal_gr
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal_gross;
|
gross: OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal_gross;
|
||||||
|
net: OrderFulfillmentCancel_orderFulfillmentCancel_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total_gross {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total_gross
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total_tax {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total_tax {
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderFulfillmentCancel_orderFulfillmentCancel_order_total_gross;
|
gross: OrderFulfillmentCancel_orderFulfillmentCancel_order_total_gross;
|
||||||
|
net: OrderFulfillmentCancel_orderFulfillmentCancel_order_total_net;
|
||||||
tax: OrderFulfillmentCancel_orderFulfillmentCancel_order_total_tax;
|
tax: OrderFulfillmentCancel_orderFulfillmentCancel_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_totalCaptur
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderFulfillmentCancel_orderFulfillmentCancel_order_undiscountedTotal_net;
|
||||||
|
gross: OrderFulfillmentCancel_orderFulfillmentCancel_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_user {
|
export interface OrderFulfillmentCancel_orderFulfillmentCancel_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order {
|
||||||
metadata: (OrderFulfillmentCancel_orderFulfillmentCancel_order_metadata | null)[];
|
metadata: (OrderFulfillmentCancel_orderFulfillmentCancel_order_metadata | null)[];
|
||||||
privateMetadata: (OrderFulfillmentCancel_orderFulfillmentCancel_order_privateMetadata | null)[];
|
privateMetadata: (OrderFulfillmentCancel_orderFulfillmentCancel_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderFulfillmentCancel_orderFulfillmentCancel_order_billingAddress | null;
|
billingAddress: OrderFulfillmentCancel_orderFulfillmentCancel_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderFulfillmentCancel_orderFulfillmentCancel_order_discounts[] | null;
|
||||||
events: (OrderFulfillmentCancel_orderFulfillmentCancel_order_events | null)[] | null;
|
events: (OrderFulfillmentCancel_orderFulfillmentCancel_order_events | null)[] | null;
|
||||||
fulfillments: (OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments | null)[];
|
fulfillments: (OrderFulfillmentCancel_orderFulfillmentCancel_order_fulfillments | null)[];
|
||||||
lines: (OrderFulfillmentCancel_orderFulfillmentCancel_order_lines | null)[];
|
lines: (OrderFulfillmentCancel_orderFulfillmentCancel_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalAuthorized;
|
totalAuthorized: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalAuthorized;
|
||||||
totalCaptured: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalCaptured;
|
totalCaptured: OrderFulfillmentCancel_orderFulfillmentCancel_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderFulfillmentCancel_orderFulfillmentCancel_order_undiscountedTotal;
|
||||||
user: OrderFulfillmentCancel_orderFulfillmentCancel_order_user | null;
|
user: OrderFulfillmentCancel_orderFulfillmentCancel_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderFulfillmentCancel_orderFulfillmentCancel_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderFulfillmentCancel_orderFulfillmentCancel_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderRefundProductsInput, OrderErrorCode, FulfillmentStatus, OrderEventsEmailsEnum, OrderEventsEnum, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderRefundProductsInput, OrderErrorCode, DiscountValueTypeEnum, FulfillmentStatus, OrderDiscountType, OrderEventsEmailsEnum, OrderEventsEnum, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderFulfillmentRefundProducts
|
// GraphQL mutation operation: OrderFulfillmentRefundProducts
|
||||||
|
@ -20,6 +20,31 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_f
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitPrice_gross {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -52,6 +77,11 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_f
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitPrice;
|
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_thumbnail | null;
|
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_fulfillment_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -113,6 +143,45 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_relatedOrder {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -127,6 +196,29 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_orderLine {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -138,6 +230,7 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_discount | null;
|
||||||
orderLine: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_orderLine | null;
|
orderLine: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,6 +243,7 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_discount | null;
|
||||||
relatedOrder: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_relatedOrder | null;
|
relatedOrder: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -230,6 +354,31 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitPrice_gross {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -262,6 +411,11 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitPrice;
|
unitPrice: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_unitPrice;
|
||||||
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_thumbnail | null;
|
thumbnail: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -310,9 +464,16 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal_gross;
|
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal_gross;
|
||||||
|
net: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_gross {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_gross {
|
||||||
|
@ -321,6 +482,12 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_tax {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -330,6 +497,7 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_gross;
|
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_gross;
|
||||||
|
net: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_net;
|
||||||
tax: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_tax;
|
tax: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,6 +513,24 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_undiscountedTotal_net;
|
||||||
|
gross: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_user {
|
export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -393,9 +579,11 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
metadata: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_metadata | null)[];
|
metadata: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_metadata | null)[];
|
||||||
privateMetadata: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_privateMetadata | null)[];
|
privateMetadata: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_billingAddress | null;
|
billingAddress: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_discounts[] | null;
|
||||||
events: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events | null)[] | null;
|
events: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_events | null)[] | null;
|
||||||
fulfillments: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments | null)[];
|
fulfillments: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_fulfillments | null)[];
|
||||||
lines: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines | null)[];
|
lines: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_lines | null)[];
|
||||||
|
@ -411,6 +599,7 @@ export interface OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_o
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalAuthorized;
|
totalAuthorized: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalAuthorized;
|
||||||
totalCaptured: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalCaptured;
|
totalCaptured: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_undiscountedTotal;
|
||||||
user: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_user | null;
|
user: OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderFulfillmentRefundProducts_orderFulfillmentRefundProducts_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { FulfillmentUpdateTrackingInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { FulfillmentUpdateTrackingInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderFulfillmentUpdateTracking
|
// GraphQL mutation operation: OrderFulfillmentUpdateTracking
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_relatedOrder {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_orderLine {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_discount | null;
|
||||||
orderLine: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_orderLine | null;
|
orderLine: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_discount | null;
|
||||||
relatedOrder: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_relatedOrder | null;
|
relatedOrder: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitPrice_gross {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitPrice;
|
unitPrice: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_unitPrice;
|
||||||
thumbnail: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_thumbnail | null;
|
thumbnail: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal_gross;
|
gross: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal_gross;
|
||||||
|
net: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_gross {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_tax {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_gross;
|
gross: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_gross;
|
||||||
|
net: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_net;
|
||||||
tax: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_tax;
|
tax: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_undiscountedTotal_net;
|
||||||
|
gross: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_user {
|
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
metadata: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_metadata | null)[];
|
metadata: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_metadata | null)[];
|
||||||
privateMetadata: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_privateMetadata | null)[];
|
privateMetadata: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_billingAddress | null;
|
billingAddress: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_discounts[] | null;
|
||||||
events: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events | null)[] | null;
|
events: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_events | null)[] | null;
|
||||||
fulfillments: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments | null)[];
|
fulfillments: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_fulfillments | null)[];
|
||||||
lines: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines | null)[];
|
lines: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalAuthorized;
|
totalAuthorized: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalAuthorized;
|
||||||
totalCaptured: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalCaptured;
|
totalCaptured: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_undiscountedTotal;
|
||||||
user: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_user | null;
|
user: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderLineDelete
|
// GraphQL mutation operation: OrderLineDelete
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderLineDelete_draftOrderLineDelete_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDelete_draftOrderLineDelete_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDelete_draftOrderLineDelete_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineDelete_draftOrderLineDelete_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_events_relatedOrder {
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderLineDelete_draftOrderLineDelete_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDelete_draftOrderLineDelete_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineDelete_draftOrderLineDelete_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_events_lines_orderLine {
|
export interface OrderLineDelete_draftOrderLineDelete_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderLineDelete_draftOrderLineDelete_order_events_lines_discount | null;
|
||||||
orderLine: OrderLineDelete_draftOrderLineDelete_order_events_lines_orderLine | null;
|
orderLine: OrderLineDelete_draftOrderLineDelete_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderLineDelete_draftOrderLineDelete_order_events_discount | null;
|
||||||
relatedOrder: OrderLineDelete_draftOrderLineDelete_order_events_relatedOrder | null;
|
relatedOrder: OrderLineDelete_draftOrderLineDelete_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_o
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_o
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderLineDelete_draftOrderLineDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderLineDelete_draftOrderLineDelete_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDelete_draftOrderLineDelete_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineDelete_draftOrderLineDelete_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_lines_unitPrice_gross {
|
export interface OrderLineDelete_draftOrderLineDelete_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderLineDelete_draftOrderLineDelete_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineDelete_draftOrderLineDelete_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineDelete_draftOrderLineDelete_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderLineDelete_draftOrderLineDelete_order_lines_unitPrice;
|
unitPrice: OrderLineDelete_draftOrderLineDelete_order_lines_unitPrice;
|
||||||
thumbnail: OrderLineDelete_draftOrderLineDelete_order_lines_thumbnail | null;
|
thumbnail: OrderLineDelete_draftOrderLineDelete_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderLineDelete_draftOrderLineDelete_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_subtotal {
|
export interface OrderLineDelete_draftOrderLineDelete_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderLineDelete_draftOrderLineDelete_order_subtotal_gross;
|
gross: OrderLineDelete_draftOrderLineDelete_order_subtotal_gross;
|
||||||
|
net: OrderLineDelete_draftOrderLineDelete_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_total_gross {
|
export interface OrderLineDelete_draftOrderLineDelete_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderLineDelete_draftOrderLineDelete_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_total_tax {
|
export interface OrderLineDelete_draftOrderLineDelete_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order_total_tax {
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_total {
|
export interface OrderLineDelete_draftOrderLineDelete_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderLineDelete_draftOrderLineDelete_order_total_gross;
|
gross: OrderLineDelete_draftOrderLineDelete_order_total_gross;
|
||||||
|
net: OrderLineDelete_draftOrderLineDelete_order_total_net;
|
||||||
tax: OrderLineDelete_draftOrderLineDelete_order_total_tax;
|
tax: OrderLineDelete_draftOrderLineDelete_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderLineDelete_draftOrderLineDelete_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDelete_draftOrderLineDelete_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderLineDelete_draftOrderLineDelete_order_undiscountedTotal_net;
|
||||||
|
gross: OrderLineDelete_draftOrderLineDelete_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineDelete_draftOrderLineDelete_order_user {
|
export interface OrderLineDelete_draftOrderLineDelete_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderLineDelete_draftOrderLineDelete_order {
|
||||||
metadata: (OrderLineDelete_draftOrderLineDelete_order_metadata | null)[];
|
metadata: (OrderLineDelete_draftOrderLineDelete_order_metadata | null)[];
|
||||||
privateMetadata: (OrderLineDelete_draftOrderLineDelete_order_privateMetadata | null)[];
|
privateMetadata: (OrderLineDelete_draftOrderLineDelete_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderLineDelete_draftOrderLineDelete_order_billingAddress | null;
|
billingAddress: OrderLineDelete_draftOrderLineDelete_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderLineDelete_draftOrderLineDelete_order_discounts[] | null;
|
||||||
events: (OrderLineDelete_draftOrderLineDelete_order_events | null)[] | null;
|
events: (OrderLineDelete_draftOrderLineDelete_order_events | null)[] | null;
|
||||||
fulfillments: (OrderLineDelete_draftOrderLineDelete_order_fulfillments | null)[];
|
fulfillments: (OrderLineDelete_draftOrderLineDelete_order_fulfillments | null)[];
|
||||||
lines: (OrderLineDelete_draftOrderLineDelete_order_lines | null)[];
|
lines: (OrderLineDelete_draftOrderLineDelete_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderLineDelete_draftOrderLineDelete_order_totalAuthorized;
|
totalAuthorized: OrderLineDelete_draftOrderLineDelete_order_totalAuthorized;
|
||||||
totalCaptured: OrderLineDelete_draftOrderLineDelete_order_totalCaptured;
|
totalCaptured: OrderLineDelete_draftOrderLineDelete_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderLineDelete_draftOrderLineDelete_order_undiscountedTotal;
|
||||||
user: OrderLineDelete_draftOrderLineDelete_order_user | null;
|
user: OrderLineDelete_draftOrderLineDelete_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderLineDelete_draftOrderLineDelete_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderLineDelete_draftOrderLineDelete_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
372
src/orders/types/OrderLineDiscountAdd.ts
Normal file
372
src/orders/types/OrderLineDiscountAdd.ts
Normal file
|
@ -0,0 +1,372 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { OrderDiscountCommonInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL mutation operation: OrderLineDiscountAdd
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_errors {
|
||||||
|
__typename: "OrderError";
|
||||||
|
code: OrderErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_metadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountAdd_orderLineDiscountAdd_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
orderLine: OrderLineDiscountAdd_orderLineDiscountAdd_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
relatedOrder: OrderLineDiscountAdd_orderLineDiscountAdd_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderLineDiscountAdd_orderLineDiscountAdd_order_events_user | null;
|
||||||
|
lines: (OrderLineDiscountAdd_orderLineDiscountAdd_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitPrice: OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitPrice: OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountAdd_orderLineDiscountAdd_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingMethod {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingPrice_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountAdd_orderLineDiscountAdd_order_subtotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountAdd_orderLineDiscountAdd_order_total_gross;
|
||||||
|
tax: OrderLineDiscountAdd_orderLineDiscountAdd_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderLineDiscountAdd_orderLineDiscountAdd_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd_order {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
metadata: (OrderLineDiscountAdd_orderLineDiscountAdd_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderLineDiscountAdd_orderLineDiscountAdd_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderLineDiscountAdd_orderLineDiscountAdd_order_billingAddress | null;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
events: (OrderLineDiscountAdd_orderLineDiscountAdd_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderLineDiscountAdd_orderLineDiscountAdd_order_fulfillments | null)[];
|
||||||
|
lines: (OrderLineDiscountAdd_orderLineDiscountAdd_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingAddress | null;
|
||||||
|
shippingMethod: OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingMethod | null;
|
||||||
|
shippingMethodName: string | null;
|
||||||
|
shippingPrice: OrderLineDiscountAdd_orderLineDiscountAdd_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderLineDiscountAdd_orderLineDiscountAdd_order_subtotal;
|
||||||
|
total: OrderLineDiscountAdd_orderLineDiscountAdd_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderLineDiscountAdd_orderLineDiscountAdd_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderLineDiscountAdd_orderLineDiscountAdd_order_totalCaptured;
|
||||||
|
user: OrderLineDiscountAdd_orderLineDiscountAdd_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderLineDiscountAdd_orderLineDiscountAdd_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderLineDiscountAdd_orderLineDiscountAdd_order_discount | null;
|
||||||
|
invoices: (OrderLineDiscountAdd_orderLineDiscountAdd_order_invoices | null)[] | null;
|
||||||
|
channel: OrderLineDiscountAdd_orderLineDiscountAdd_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd_orderLineDiscountAdd {
|
||||||
|
__typename: "OrderLineDiscountAdd";
|
||||||
|
errors: OrderLineDiscountAdd_orderLineDiscountAdd_errors[];
|
||||||
|
order: OrderLineDiscountAdd_orderLineDiscountAdd_order | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAdd {
|
||||||
|
orderLineDiscountAdd: OrderLineDiscountAdd_orderLineDiscountAdd | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountAddVariables {
|
||||||
|
input: OrderDiscountCommonInput;
|
||||||
|
orderLineId: string;
|
||||||
|
}
|
371
src/orders/types/OrderLineDiscountDelete.ts
Normal file
371
src/orders/types/OrderLineDiscountDelete.ts
Normal file
|
@ -0,0 +1,371 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL mutation operation: OrderLineDiscountDelete
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_errors {
|
||||||
|
__typename: "OrderError";
|
||||||
|
code: OrderErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_metadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountDelete_orderLineDiscountDelete_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
orderLine: OrderLineDiscountDelete_orderLineDiscountDelete_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
relatedOrder: OrderLineDiscountDelete_orderLineDiscountDelete_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderLineDiscountDelete_orderLineDiscountDelete_order_events_user | null;
|
||||||
|
lines: (OrderLineDiscountDelete_orderLineDiscountDelete_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitPrice: OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitPrice: OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountDelete_orderLineDiscountDelete_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingMethod {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingPrice_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountDelete_orderLineDiscountDelete_order_subtotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountDelete_orderLineDiscountDelete_order_total_gross;
|
||||||
|
tax: OrderLineDiscountDelete_orderLineDiscountDelete_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderLineDiscountDelete_orderLineDiscountDelete_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete_order {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
metadata: (OrderLineDiscountDelete_orderLineDiscountDelete_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderLineDiscountDelete_orderLineDiscountDelete_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderLineDiscountDelete_orderLineDiscountDelete_order_billingAddress | null;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
events: (OrderLineDiscountDelete_orderLineDiscountDelete_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderLineDiscountDelete_orderLineDiscountDelete_order_fulfillments | null)[];
|
||||||
|
lines: (OrderLineDiscountDelete_orderLineDiscountDelete_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingAddress | null;
|
||||||
|
shippingMethod: OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingMethod | null;
|
||||||
|
shippingMethodName: string | null;
|
||||||
|
shippingPrice: OrderLineDiscountDelete_orderLineDiscountDelete_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderLineDiscountDelete_orderLineDiscountDelete_order_subtotal;
|
||||||
|
total: OrderLineDiscountDelete_orderLineDiscountDelete_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderLineDiscountDelete_orderLineDiscountDelete_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderLineDiscountDelete_orderLineDiscountDelete_order_totalCaptured;
|
||||||
|
user: OrderLineDiscountDelete_orderLineDiscountDelete_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderLineDiscountDelete_orderLineDiscountDelete_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderLineDiscountDelete_orderLineDiscountDelete_order_discount | null;
|
||||||
|
invoices: (OrderLineDiscountDelete_orderLineDiscountDelete_order_invoices | null)[] | null;
|
||||||
|
channel: OrderLineDiscountDelete_orderLineDiscountDelete_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete_orderLineDiscountDelete {
|
||||||
|
__typename: "OrderLineDiscountDelete";
|
||||||
|
errors: OrderLineDiscountDelete_orderLineDiscountDelete_errors[];
|
||||||
|
order: OrderLineDiscountDelete_orderLineDiscountDelete_order | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDelete {
|
||||||
|
orderLineDiscountDelete: OrderLineDiscountDelete_orderLineDiscountDelete | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountDeleteVariables {
|
||||||
|
orderLineId: string;
|
||||||
|
}
|
529
src/orders/types/OrderLineDiscountRemove.ts
Normal file
529
src/orders/types/OrderLineDiscountRemove.ts
Normal file
|
@ -0,0 +1,529 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL mutation operation: OrderLineDiscountRemove
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_errors {
|
||||||
|
__typename: "OrderError";
|
||||||
|
code: OrderErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_metadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountRemove_orderLineDiscountRemove_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDiscountRemove_orderLineDiscountRemove_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
itemName: string | null;
|
||||||
|
discount: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_discount | null;
|
||||||
|
orderLine: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_discount | null;
|
||||||
|
relatedOrder: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderLineDiscountRemove_orderLineDiscountRemove_order_events_user | null;
|
||||||
|
lines: (OrderLineDiscountRemove_orderLineDiscountRemove_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountRemove_orderLineDiscountRemove_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingMethod {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingPrice_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_subtotal_gross;
|
||||||
|
net: OrderLineDiscountRemove_orderLineDiscountRemove_order_subtotal_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_total_gross;
|
||||||
|
net: OrderLineDiscountRemove_orderLineDiscountRemove_order_total_net;
|
||||||
|
tax: OrderLineDiscountRemove_orderLineDiscountRemove_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderLineDiscountRemove_orderLineDiscountRemove_order_undiscountedTotal_net;
|
||||||
|
gross: OrderLineDiscountRemove_orderLineDiscountRemove_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderLineDiscountRemove_orderLineDiscountRemove_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove_order {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
metadata: (OrderLineDiscountRemove_orderLineDiscountRemove_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderLineDiscountRemove_orderLineDiscountRemove_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderLineDiscountRemove_orderLineDiscountRemove_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
discounts: OrderLineDiscountRemove_orderLineDiscountRemove_order_discounts[] | null;
|
||||||
|
events: (OrderLineDiscountRemove_orderLineDiscountRemove_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderLineDiscountRemove_orderLineDiscountRemove_order_fulfillments | null)[];
|
||||||
|
lines: (OrderLineDiscountRemove_orderLineDiscountRemove_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingAddress | null;
|
||||||
|
shippingMethod: OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingMethod | null;
|
||||||
|
shippingMethodName: string | null;
|
||||||
|
shippingPrice: OrderLineDiscountRemove_orderLineDiscountRemove_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderLineDiscountRemove_orderLineDiscountRemove_order_subtotal;
|
||||||
|
total: OrderLineDiscountRemove_orderLineDiscountRemove_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderLineDiscountRemove_orderLineDiscountRemove_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderLineDiscountRemove_orderLineDiscountRemove_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderLineDiscountRemove_orderLineDiscountRemove_order_undiscountedTotal;
|
||||||
|
user: OrderLineDiscountRemove_orderLineDiscountRemove_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderLineDiscountRemove_orderLineDiscountRemove_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderLineDiscountRemove_orderLineDiscountRemove_order_discount | null;
|
||||||
|
invoices: (OrderLineDiscountRemove_orderLineDiscountRemove_order_invoices | null)[] | null;
|
||||||
|
channel: OrderLineDiscountRemove_orderLineDiscountRemove_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove_orderLineDiscountRemove {
|
||||||
|
__typename: "OrderLineDiscountRemove";
|
||||||
|
errors: OrderLineDiscountRemove_orderLineDiscountRemove_errors[];
|
||||||
|
order: OrderLineDiscountRemove_orderLineDiscountRemove_order | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemove {
|
||||||
|
orderLineDiscountRemove: OrderLineDiscountRemove_orderLineDiscountRemove | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountRemoveVariables {
|
||||||
|
orderLineId: string;
|
||||||
|
}
|
530
src/orders/types/OrderLineDiscountUpdate.ts
Normal file
530
src/orders/types/OrderLineDiscountUpdate.ts
Normal file
|
@ -0,0 +1,530 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { OrderDiscountCommonInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL mutation operation: OrderLineDiscountUpdate
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_errors {
|
||||||
|
__typename: "OrderError";
|
||||||
|
code: OrderErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_metadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
itemName: string | null;
|
||||||
|
discount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_discount | null;
|
||||||
|
orderLine: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_discount | null;
|
||||||
|
relatedOrder: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_user | null;
|
||||||
|
lines: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitPrice_gross;
|
||||||
|
net: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingMethod {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingPrice_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_subtotal_gross;
|
||||||
|
net: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_subtotal_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total_gross;
|
||||||
|
net: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total_net;
|
||||||
|
tax: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_undiscountedTotal_net;
|
||||||
|
gross: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate_order {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
metadata: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
discounts: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_discounts[] | null;
|
||||||
|
events: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_fulfillments | null)[];
|
||||||
|
lines: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingAddress | null;
|
||||||
|
shippingMethod: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingMethod | null;
|
||||||
|
shippingMethodName: string | null;
|
||||||
|
shippingPrice: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_subtotal;
|
||||||
|
total: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_undiscountedTotal;
|
||||||
|
user: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_discount | null;
|
||||||
|
invoices: (OrderLineDiscountUpdate_orderLineDiscountUpdate_order_invoices | null)[] | null;
|
||||||
|
channel: OrderLineDiscountUpdate_orderLineDiscountUpdate_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate_orderLineDiscountUpdate {
|
||||||
|
__typename: "OrderLineDiscountUpdate";
|
||||||
|
errors: OrderLineDiscountUpdate_orderLineDiscountUpdate_errors[];
|
||||||
|
order: OrderLineDiscountUpdate_orderLineDiscountUpdate_order | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdate {
|
||||||
|
orderLineDiscountUpdate: OrderLineDiscountUpdate_orderLineDiscountUpdate | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountUpdateVariables {
|
||||||
|
input: OrderDiscountCommonInput;
|
||||||
|
orderLineId: string;
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderLineInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderLineInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderLineUpdate
|
// GraphQL mutation operation: OrderLineUpdate
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineUpdate_draftOrderLineUpdate_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineUpdate_draftOrderLineUpdate_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineUpdate_draftOrderLineUpdate_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_relatedOrder {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLineUpdate_draftOrderLineUpdate_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLineUpdate_draftOrderLineUpdate_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_lines_orderLine {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderLineUpdate_draftOrderLineUpdate_order_events_lines_discount | null;
|
||||||
orderLine: OrderLineUpdate_draftOrderLineUpdate_order_events_lines_orderLine | null;
|
orderLine: OrderLineUpdate_draftOrderLineUpdate_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderLineUpdate_draftOrderLineUpdate_order_events_discount | null;
|
||||||
relatedOrder: OrderLineUpdate_draftOrderLineUpdate_order_events_relatedOrder | null;
|
relatedOrder: OrderLineUpdate_draftOrderLineUpdate_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_o
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_o
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderLineUpdate_draftOrderLineUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLineUpdate_draftOrderLineUpdate_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLineUpdate_draftOrderLineUpdate_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_unitPrice_gross {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLineUpdate_draftOrderLineUpdate_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLineUpdate_draftOrderLineUpdate_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_lines_unitPrice;
|
unitPrice: OrderLineUpdate_draftOrderLineUpdate_order_lines_unitPrice;
|
||||||
thumbnail: OrderLineUpdate_draftOrderLineUpdate_order_lines_thumbnail | null;
|
thumbnail: OrderLineUpdate_draftOrderLineUpdate_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_subtotal {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderLineUpdate_draftOrderLineUpdate_order_subtotal_gross;
|
gross: OrderLineUpdate_draftOrderLineUpdate_order_subtotal_gross;
|
||||||
|
net: OrderLineUpdate_draftOrderLineUpdate_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_total_gross {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_total_tax {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_total_tax {
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_total {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderLineUpdate_draftOrderLineUpdate_order_total_gross;
|
gross: OrderLineUpdate_draftOrderLineUpdate_order_total_gross;
|
||||||
|
net: OrderLineUpdate_draftOrderLineUpdate_order_total_net;
|
||||||
tax: OrderLineUpdate_draftOrderLineUpdate_order_total_tax;
|
tax: OrderLineUpdate_draftOrderLineUpdate_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderLineUpdate_draftOrderLineUpdate_order_undiscountedTotal_net;
|
||||||
|
gross: OrderLineUpdate_draftOrderLineUpdate_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLineUpdate_draftOrderLineUpdate_order_user {
|
export interface OrderLineUpdate_draftOrderLineUpdate_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order {
|
||||||
metadata: (OrderLineUpdate_draftOrderLineUpdate_order_metadata | null)[];
|
metadata: (OrderLineUpdate_draftOrderLineUpdate_order_metadata | null)[];
|
||||||
privateMetadata: (OrderLineUpdate_draftOrderLineUpdate_order_privateMetadata | null)[];
|
privateMetadata: (OrderLineUpdate_draftOrderLineUpdate_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderLineUpdate_draftOrderLineUpdate_order_billingAddress | null;
|
billingAddress: OrderLineUpdate_draftOrderLineUpdate_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderLineUpdate_draftOrderLineUpdate_order_discounts[] | null;
|
||||||
events: (OrderLineUpdate_draftOrderLineUpdate_order_events | null)[] | null;
|
events: (OrderLineUpdate_draftOrderLineUpdate_order_events | null)[] | null;
|
||||||
fulfillments: (OrderLineUpdate_draftOrderLineUpdate_order_fulfillments | null)[];
|
fulfillments: (OrderLineUpdate_draftOrderLineUpdate_order_fulfillments | null)[];
|
||||||
lines: (OrderLineUpdate_draftOrderLineUpdate_order_lines | null)[];
|
lines: (OrderLineUpdate_draftOrderLineUpdate_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderLineUpdate_draftOrderLineUpdate_order_totalAuthorized;
|
totalAuthorized: OrderLineUpdate_draftOrderLineUpdate_order_totalAuthorized;
|
||||||
totalCaptured: OrderLineUpdate_draftOrderLineUpdate_order_totalCaptured;
|
totalCaptured: OrderLineUpdate_draftOrderLineUpdate_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderLineUpdate_draftOrderLineUpdate_order_undiscountedTotal;
|
||||||
user: OrderLineUpdate_draftOrderLineUpdate_order_user | null;
|
user: OrderLineUpdate_draftOrderLineUpdate_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderLineUpdate_draftOrderLineUpdate_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderLineUpdate_draftOrderLineUpdate_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderLineCreateInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderLineCreateInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderLinesAdd
|
// GraphQL mutation operation: OrderLinesAdd
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLinesAdd_draftOrderLinesCreate_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLinesAdd_draftOrderLinesCreate_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLinesAdd_draftOrderLinesCreate_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_relatedOrder {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderLinesAdd_draftOrderLinesCreate_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderLinesAdd_draftOrderLinesCreate_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_lines_orderLine {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderLinesAdd_draftOrderLinesCreate_order_events_lines_discount | null;
|
||||||
orderLine: OrderLinesAdd_draftOrderLinesCreate_order_events_lines_orderLine | null;
|
orderLine: OrderLinesAdd_draftOrderLinesCreate_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderLinesAdd_draftOrderLinesCreate_order_events_discount | null;
|
||||||
relatedOrder: OrderLinesAdd_draftOrderLinesCreate_order_events_relatedOrder | null;
|
relatedOrder: OrderLinesAdd_draftOrderLinesCreate_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_or
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_or
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderLinesAdd_draftOrderLinesCreate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderLinesAdd_draftOrderLinesCreate_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderLinesAdd_draftOrderLinesCreate_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_unitPrice_gross {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderLinesAdd_draftOrderLinesCreate_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderLinesAdd_draftOrderLinesCreate_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_lines_unitPrice;
|
unitPrice: OrderLinesAdd_draftOrderLinesCreate_order_lines_unitPrice;
|
||||||
thumbnail: OrderLinesAdd_draftOrderLinesCreate_order_lines_thumbnail | null;
|
thumbnail: OrderLinesAdd_draftOrderLinesCreate_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_subtotal {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderLinesAdd_draftOrderLinesCreate_order_subtotal_gross;
|
gross: OrderLinesAdd_draftOrderLinesCreate_order_subtotal_gross;
|
||||||
|
net: OrderLinesAdd_draftOrderLinesCreate_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_total_gross {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_total_tax {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_total_tax {
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_total {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderLinesAdd_draftOrderLinesCreate_order_total_gross;
|
gross: OrderLinesAdd_draftOrderLinesCreate_order_total_gross;
|
||||||
|
net: OrderLinesAdd_draftOrderLinesCreate_order_total_net;
|
||||||
tax: OrderLinesAdd_draftOrderLinesCreate_order_total_tax;
|
tax: OrderLinesAdd_draftOrderLinesCreate_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderLinesAdd_draftOrderLinesCreate_order_undiscountedTotal_net;
|
||||||
|
gross: OrderLinesAdd_draftOrderLinesCreate_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderLinesAdd_draftOrderLinesCreate_order_user {
|
export interface OrderLinesAdd_draftOrderLinesCreate_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order {
|
||||||
metadata: (OrderLinesAdd_draftOrderLinesCreate_order_metadata | null)[];
|
metadata: (OrderLinesAdd_draftOrderLinesCreate_order_metadata | null)[];
|
||||||
privateMetadata: (OrderLinesAdd_draftOrderLinesCreate_order_privateMetadata | null)[];
|
privateMetadata: (OrderLinesAdd_draftOrderLinesCreate_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderLinesAdd_draftOrderLinesCreate_order_billingAddress | null;
|
billingAddress: OrderLinesAdd_draftOrderLinesCreate_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderLinesAdd_draftOrderLinesCreate_order_discounts[] | null;
|
||||||
events: (OrderLinesAdd_draftOrderLinesCreate_order_events | null)[] | null;
|
events: (OrderLinesAdd_draftOrderLinesCreate_order_events | null)[] | null;
|
||||||
fulfillments: (OrderLinesAdd_draftOrderLinesCreate_order_fulfillments | null)[];
|
fulfillments: (OrderLinesAdd_draftOrderLinesCreate_order_fulfillments | null)[];
|
||||||
lines: (OrderLinesAdd_draftOrderLinesCreate_order_lines | null)[];
|
lines: (OrderLinesAdd_draftOrderLinesCreate_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderLinesAdd_draftOrderLinesCreate_order_totalAuthorized;
|
totalAuthorized: OrderLinesAdd_draftOrderLinesCreate_order_totalAuthorized;
|
||||||
totalCaptured: OrderLinesAdd_draftOrderLinesCreate_order_totalCaptured;
|
totalCaptured: OrderLinesAdd_draftOrderLinesCreate_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderLinesAdd_draftOrderLinesCreate_order_undiscountedTotal;
|
||||||
user: OrderLinesAdd_draftOrderLinesCreate_order_user | null;
|
user: OrderLinesAdd_draftOrderLinesCreate_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderLinesAdd_draftOrderLinesCreate_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderLinesAdd_draftOrderLinesCreate_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderMarkAsPaid
|
// GraphQL mutation operation: OrderMarkAsPaid
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderMarkAsPaid_orderMarkAsPaid_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderMarkAsPaid_orderMarkAsPaid_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderMarkAsPaid_orderMarkAsPaid_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_relatedOrder {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_orderLine {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_discount | null;
|
||||||
orderLine: OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_orderLine | null;
|
orderLine: OrderMarkAsPaid_orderMarkAsPaid_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderMarkAsPaid_orderMarkAsPaid_order_events_discount | null;
|
||||||
relatedOrder: OrderMarkAsPaid_orderMarkAsPaid_order_events_relatedOrder | null;
|
relatedOrder: OrderMarkAsPaid_orderMarkAsPaid_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderL
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderL
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderMarkAsPaid_orderMarkAsPaid_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderMarkAsPaid_orderMarkAsPaid_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitPrice_gross {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitPrice;
|
unitPrice: OrderMarkAsPaid_orderMarkAsPaid_order_lines_unitPrice;
|
||||||
thumbnail: OrderMarkAsPaid_orderMarkAsPaid_order_lines_thumbnail | null;
|
thumbnail: OrderMarkAsPaid_orderMarkAsPaid_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_subtotal {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderMarkAsPaid_orderMarkAsPaid_order_subtotal_gross;
|
gross: OrderMarkAsPaid_orderMarkAsPaid_order_subtotal_gross;
|
||||||
|
net: OrderMarkAsPaid_orderMarkAsPaid_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_total_gross {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_total_tax {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_total_tax {
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_total {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderMarkAsPaid_orderMarkAsPaid_order_total_gross;
|
gross: OrderMarkAsPaid_orderMarkAsPaid_order_total_gross;
|
||||||
|
net: OrderMarkAsPaid_orderMarkAsPaid_order_total_net;
|
||||||
tax: OrderMarkAsPaid_orderMarkAsPaid_order_total_tax;
|
tax: OrderMarkAsPaid_orderMarkAsPaid_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderMarkAsPaid_orderMarkAsPaid_order_undiscountedTotal_net;
|
||||||
|
gross: OrderMarkAsPaid_orderMarkAsPaid_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderMarkAsPaid_orderMarkAsPaid_order_user {
|
export interface OrderMarkAsPaid_orderMarkAsPaid_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order {
|
||||||
metadata: (OrderMarkAsPaid_orderMarkAsPaid_order_metadata | null)[];
|
metadata: (OrderMarkAsPaid_orderMarkAsPaid_order_metadata | null)[];
|
||||||
privateMetadata: (OrderMarkAsPaid_orderMarkAsPaid_order_privateMetadata | null)[];
|
privateMetadata: (OrderMarkAsPaid_orderMarkAsPaid_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderMarkAsPaid_orderMarkAsPaid_order_billingAddress | null;
|
billingAddress: OrderMarkAsPaid_orderMarkAsPaid_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderMarkAsPaid_orderMarkAsPaid_order_discounts[] | null;
|
||||||
events: (OrderMarkAsPaid_orderMarkAsPaid_order_events | null)[] | null;
|
events: (OrderMarkAsPaid_orderMarkAsPaid_order_events | null)[] | null;
|
||||||
fulfillments: (OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments | null)[];
|
fulfillments: (OrderMarkAsPaid_orderMarkAsPaid_order_fulfillments | null)[];
|
||||||
lines: (OrderMarkAsPaid_orderMarkAsPaid_order_lines | null)[];
|
lines: (OrderMarkAsPaid_orderMarkAsPaid_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderMarkAsPaid_orderMarkAsPaid_order_totalAuthorized;
|
totalAuthorized: OrderMarkAsPaid_orderMarkAsPaid_order_totalAuthorized;
|
||||||
totalCaptured: OrderMarkAsPaid_orderMarkAsPaid_order_totalCaptured;
|
totalCaptured: OrderMarkAsPaid_orderMarkAsPaid_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderMarkAsPaid_orderMarkAsPaid_order_undiscountedTotal;
|
||||||
user: OrderMarkAsPaid_orderMarkAsPaid_order_user | null;
|
user: OrderMarkAsPaid_orderMarkAsPaid_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderMarkAsPaid_orderMarkAsPaid_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderMarkAsPaid_orderMarkAsPaid_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderRefund
|
// GraphQL mutation operation: OrderRefund
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderRefund_orderRefund_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderRefund_orderRefund_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderRefund_orderRefund_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderRefund_orderRefund_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_events_relatedOrder {
|
export interface OrderRefund_orderRefund_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderRefund_orderRefund_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderRefund_orderRefund_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderRefund_orderRefund_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_events_lines_orderLine {
|
export interface OrderRefund_orderRefund_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderRefund_orderRefund_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderRefund_orderRefund_order_events_lines_discount | null;
|
||||||
orderLine: OrderRefund_orderRefund_order_events_lines_orderLine | null;
|
orderLine: OrderRefund_orderRefund_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderRefund_orderRefund_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderRefund_orderRefund_order_events_discount | null;
|
||||||
relatedOrder: OrderRefund_orderRefund_order_events_relatedOrder | null;
|
relatedOrder: OrderRefund_orderRefund_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_vari
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderRefund_orderRefund_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderRefund_orderRefund_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderRefund_orderRefund_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderRefund_orderRefund_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderRefund_orderRefund_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_lines_unitPrice_gross {
|
export interface OrderRefund_orderRefund_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderRefund_orderRefund_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderRefund_orderRefund_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderRefund_orderRefund_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderRefund_orderRefund_order_lines_unitPrice;
|
unitPrice: OrderRefund_orderRefund_order_lines_unitPrice;
|
||||||
thumbnail: OrderRefund_orderRefund_order_lines_thumbnail | null;
|
thumbnail: OrderRefund_orderRefund_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderRefund_orderRefund_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_subtotal {
|
export interface OrderRefund_orderRefund_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderRefund_orderRefund_order_subtotal_gross;
|
gross: OrderRefund_orderRefund_order_subtotal_gross;
|
||||||
|
net: OrderRefund_orderRefund_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_total_gross {
|
export interface OrderRefund_orderRefund_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderRefund_orderRefund_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_total_tax {
|
export interface OrderRefund_orderRefund_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderRefund_orderRefund_order_total_tax {
|
||||||
export interface OrderRefund_orderRefund_order_total {
|
export interface OrderRefund_orderRefund_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderRefund_orderRefund_order_total_gross;
|
gross: OrderRefund_orderRefund_order_total_gross;
|
||||||
|
net: OrderRefund_orderRefund_order_total_net;
|
||||||
tax: OrderRefund_orderRefund_order_total_tax;
|
tax: OrderRefund_orderRefund_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderRefund_orderRefund_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderRefund_orderRefund_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderRefund_orderRefund_order_undiscountedTotal_net;
|
||||||
|
gross: OrderRefund_orderRefund_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderRefund_orderRefund_order_user {
|
export interface OrderRefund_orderRefund_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderRefund_orderRefund_order {
|
||||||
metadata: (OrderRefund_orderRefund_order_metadata | null)[];
|
metadata: (OrderRefund_orderRefund_order_metadata | null)[];
|
||||||
privateMetadata: (OrderRefund_orderRefund_order_privateMetadata | null)[];
|
privateMetadata: (OrderRefund_orderRefund_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderRefund_orderRefund_order_billingAddress | null;
|
billingAddress: OrderRefund_orderRefund_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderRefund_orderRefund_order_discounts[] | null;
|
||||||
events: (OrderRefund_orderRefund_order_events | null)[] | null;
|
events: (OrderRefund_orderRefund_order_events | null)[] | null;
|
||||||
fulfillments: (OrderRefund_orderRefund_order_fulfillments | null)[];
|
fulfillments: (OrderRefund_orderRefund_order_fulfillments | null)[];
|
||||||
lines: (OrderRefund_orderRefund_order_lines | null)[];
|
lines: (OrderRefund_orderRefund_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderRefund_orderRefund_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderRefund_orderRefund_order_totalAuthorized;
|
totalAuthorized: OrderRefund_orderRefund_order_totalAuthorized;
|
||||||
totalCaptured: OrderRefund_orderRefund_order_totalCaptured;
|
totalCaptured: OrderRefund_orderRefund_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderRefund_orderRefund_order_undiscountedTotal;
|
||||||
user: OrderRefund_orderRefund_order_user | null;
|
user: OrderRefund_orderRefund_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderRefund_orderRefund_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderRefund_orderRefund_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderUpdateShippingInput, OrderErrorCode } from "./../../types/globalTypes";
|
import { OrderUpdateShippingInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderShippingMethodUpdate
|
// GraphQL mutation operation: OrderShippingMethodUpdate
|
||||||
|
@ -14,23 +14,342 @@ export interface OrderShippingMethodUpdate_orderUpdateShipping_errors {
|
||||||
field: string | null;
|
field: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods {
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_metadata {
|
||||||
__typename: "ShippingMethod";
|
__typename: "MetadataItem";
|
||||||
id: string;
|
key: string;
|
||||||
name: string;
|
value: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod_price {
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_privateMetadata {
|
||||||
|
__typename: "MetadataItem";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_billingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_billingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderShippingMethodUpdate_orderUpdateShipping_order_billingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_discounts_amount {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderShippingMethodUpdate_orderUpdateShipping_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderShippingMethodUpdate_orderUpdateShipping_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderShippingMethodUpdate_orderUpdateShipping_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_relatedOrder {
|
||||||
|
__typename: "Order";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
firstName: string;
|
||||||
|
lastName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
productName: string;
|
||||||
|
variantName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines {
|
||||||
|
__typename: "OrderEventOrderLineObject";
|
||||||
|
quantity: number | null;
|
||||||
|
itemName: string | null;
|
||||||
|
discount: OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_discount | null;
|
||||||
|
orderLine: OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_events {
|
||||||
|
__typename: "OrderEvent";
|
||||||
|
id: string;
|
||||||
|
amount: number | null;
|
||||||
|
shippingCostsIncluded: boolean | null;
|
||||||
|
date: any | null;
|
||||||
|
email: string | null;
|
||||||
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderShippingMethodUpdate_orderUpdateShipping_order_events_discount | null;
|
||||||
|
relatedOrder: OrderShippingMethodUpdate_orderUpdateShipping_order_events_relatedOrder | null;
|
||||||
|
message: string | null;
|
||||||
|
quantity: number | null;
|
||||||
|
transactionReference: string | null;
|
||||||
|
type: OrderEventsEnum | null;
|
||||||
|
user: OrderShippingMethodUpdate_orderUpdateShipping_order_events_user | null;
|
||||||
|
lines: (OrderShippingMethodUpdate_orderUpdateShipping_order_events_lines | null)[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitPrice_gross;
|
||||||
|
net: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
|
thumbnail: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines {
|
||||||
|
__typename: "FulfillmentLine";
|
||||||
|
id: string;
|
||||||
|
quantity: number;
|
||||||
|
orderLine: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines_orderLine | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_warehouse {
|
||||||
|
__typename: "Warehouse";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments {
|
||||||
|
__typename: "Fulfillment";
|
||||||
|
id: string;
|
||||||
|
lines: (OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_lines | null)[] | null;
|
||||||
|
fulfillmentOrder: number;
|
||||||
|
status: FulfillmentStatus;
|
||||||
|
trackingNumber: string;
|
||||||
|
warehouse: OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments_warehouse | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_variant {
|
||||||
|
__typename: "ProductVariant";
|
||||||
|
id: string;
|
||||||
|
quantityAvailable: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitPrice_gross;
|
||||||
|
net: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines_thumbnail {
|
||||||
|
__typename: "Image";
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_lines {
|
||||||
|
__typename: "OrderLine";
|
||||||
|
id: string;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
variant: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_variant | null;
|
||||||
|
productName: string;
|
||||||
|
productSku: string;
|
||||||
|
quantity: number;
|
||||||
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_undiscountedUnitPrice;
|
||||||
|
unitPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_unitPrice;
|
||||||
|
thumbnail: OrderShippingMethodUpdate_orderUpdateShipping_order_lines_thumbnail | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingAddress_country {
|
||||||
|
__typename: "CountryDisplay";
|
||||||
|
code: string;
|
||||||
|
country: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingAddress {
|
||||||
|
__typename: "Address";
|
||||||
|
city: string;
|
||||||
|
cityArea: string;
|
||||||
|
companyName: string;
|
||||||
|
country: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingAddress_country;
|
||||||
|
countryArea: string;
|
||||||
|
firstName: string;
|
||||||
|
id: string;
|
||||||
|
lastName: string;
|
||||||
|
phone: string | null;
|
||||||
|
postalCode: string;
|
||||||
|
streetAddress1: string;
|
||||||
|
streetAddress2: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod {
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod {
|
||||||
__typename: "ShippingMethod";
|
__typename: "ShippingMethod";
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
|
||||||
price: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod_price | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice_gross {
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice_gross {
|
||||||
|
@ -44,13 +363,155 @@ export interface OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPri
|
||||||
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice_gross;
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice_gross;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_subtotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_subtotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_subtotal_gross;
|
||||||
|
net: OrderShippingMethodUpdate_orderUpdateShipping_order_subtotal_net;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_total_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_total_tax {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_total {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_total_gross;
|
||||||
|
net: OrderShippingMethodUpdate_orderUpdateShipping_order_total_net;
|
||||||
|
tax: OrderShippingMethodUpdate_orderUpdateShipping_order_total_tax;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_totalAuthorized {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_totalCaptured {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderShippingMethodUpdate_orderUpdateShipping_order_undiscountedTotal_net;
|
||||||
|
gross: OrderShippingMethodUpdate_orderUpdateShipping_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_user {
|
||||||
|
__typename: "User";
|
||||||
|
id: string;
|
||||||
|
email: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods_price {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods {
|
||||||
|
__typename: "ShippingMethod";
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
price: OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods_price | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_discount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_invoices {
|
||||||
|
__typename: "Invoice";
|
||||||
|
id: string;
|
||||||
|
number: string | null;
|
||||||
|
createdAt: any;
|
||||||
|
url: string | null;
|
||||||
|
status: JobStatusEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order_channel {
|
||||||
|
__typename: "Channel";
|
||||||
|
isActive: boolean;
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
currencyCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderShippingMethodUpdate_orderUpdateShipping_order {
|
export interface OrderShippingMethodUpdate_orderUpdateShipping_order {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
availableShippingMethods: (OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods | null)[] | null;
|
|
||||||
id: string;
|
id: string;
|
||||||
|
metadata: (OrderShippingMethodUpdate_orderUpdateShipping_order_metadata | null)[];
|
||||||
|
privateMetadata: (OrderShippingMethodUpdate_orderUpdateShipping_order_privateMetadata | null)[];
|
||||||
|
billingAddress: OrderShippingMethodUpdate_orderUpdateShipping_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
|
canFinalize: boolean;
|
||||||
|
created: any;
|
||||||
|
customerNote: string;
|
||||||
|
discounts: OrderShippingMethodUpdate_orderUpdateShipping_order_discounts[] | null;
|
||||||
|
events: (OrderShippingMethodUpdate_orderUpdateShipping_order_events | null)[] | null;
|
||||||
|
fulfillments: (OrderShippingMethodUpdate_orderUpdateShipping_order_fulfillments | null)[];
|
||||||
|
lines: (OrderShippingMethodUpdate_orderUpdateShipping_order_lines | null)[];
|
||||||
|
number: string | null;
|
||||||
|
paymentStatus: PaymentChargeStatusEnum;
|
||||||
|
shippingAddress: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingAddress | null;
|
||||||
shippingMethod: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod | null;
|
shippingMethod: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingMethod | null;
|
||||||
shippingMethodName: string | null;
|
shippingMethodName: string | null;
|
||||||
shippingPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice;
|
shippingPrice: OrderShippingMethodUpdate_orderUpdateShipping_order_shippingPrice;
|
||||||
|
status: OrderStatus;
|
||||||
|
subtotal: OrderShippingMethodUpdate_orderUpdateShipping_order_subtotal;
|
||||||
|
total: OrderShippingMethodUpdate_orderUpdateShipping_order_total;
|
||||||
|
actions: (OrderAction | null)[];
|
||||||
|
totalAuthorized: OrderShippingMethodUpdate_orderUpdateShipping_order_totalAuthorized;
|
||||||
|
totalCaptured: OrderShippingMethodUpdate_orderUpdateShipping_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderShippingMethodUpdate_orderUpdateShipping_order_undiscountedTotal;
|
||||||
|
user: OrderShippingMethodUpdate_orderUpdateShipping_order_user | null;
|
||||||
|
userEmail: string | null;
|
||||||
|
availableShippingMethods: (OrderShippingMethodUpdate_orderUpdateShipping_order_availableShippingMethods | null)[] | null;
|
||||||
|
discount: OrderShippingMethodUpdate_orderUpdateShipping_order_discount | null;
|
||||||
|
invoices: (OrderShippingMethodUpdate_orderUpdateShipping_order_invoices | null)[] | null;
|
||||||
|
channel: OrderShippingMethodUpdate_orderUpdateShipping_order_channel;
|
||||||
|
isPaid: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderShippingMethodUpdate_orderUpdateShipping {
|
export interface OrderShippingMethodUpdate_orderUpdateShipping {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderUpdateInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderUpdateInput, OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderUpdate
|
// GraphQL mutation operation: OrderUpdate
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderUpdate_orderUpdate_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderUpdate_orderUpdate_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderUpdate_orderUpdate_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderUpdate_orderUpdate_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_events_relatedOrder {
|
export interface OrderUpdate_orderUpdate_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderUpdate_orderUpdate_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderUpdate_orderUpdate_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderUpdate_orderUpdate_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_events_lines_orderLine {
|
export interface OrderUpdate_orderUpdate_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderUpdate_orderUpdate_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderUpdate_orderUpdate_order_events_lines_discount | null;
|
||||||
orderLine: OrderUpdate_orderUpdate_order_events_lines_orderLine | null;
|
orderLine: OrderUpdate_orderUpdate_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderUpdate_orderUpdate_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderUpdate_orderUpdate_order_events_discount | null;
|
||||||
relatedOrder: OrderUpdate_orderUpdate_order_events_relatedOrder | null;
|
relatedOrder: OrderUpdate_orderUpdate_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_vari
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderUpdate_orderUpdate_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderUpdate_orderUpdate_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderUpdate_orderUpdate_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderUpdate_orderUpdate_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_lines_unitPrice_gross {
|
export interface OrderUpdate_orderUpdate_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderUpdate_orderUpdate_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderUpdate_orderUpdate_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderUpdate_orderUpdate_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderUpdate_orderUpdate_order_lines_unitPrice;
|
unitPrice: OrderUpdate_orderUpdate_order_lines_unitPrice;
|
||||||
thumbnail: OrderUpdate_orderUpdate_order_lines_thumbnail | null;
|
thumbnail: OrderUpdate_orderUpdate_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderUpdate_orderUpdate_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_subtotal {
|
export interface OrderUpdate_orderUpdate_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderUpdate_orderUpdate_order_subtotal_gross;
|
gross: OrderUpdate_orderUpdate_order_subtotal_gross;
|
||||||
|
net: OrderUpdate_orderUpdate_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_total_gross {
|
export interface OrderUpdate_orderUpdate_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderUpdate_orderUpdate_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_total_tax {
|
export interface OrderUpdate_orderUpdate_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderUpdate_orderUpdate_order_total_tax {
|
||||||
export interface OrderUpdate_orderUpdate_order_total {
|
export interface OrderUpdate_orderUpdate_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderUpdate_orderUpdate_order_total_gross;
|
gross: OrderUpdate_orderUpdate_order_total_gross;
|
||||||
|
net: OrderUpdate_orderUpdate_order_total_net;
|
||||||
tax: OrderUpdate_orderUpdate_order_total_tax;
|
tax: OrderUpdate_orderUpdate_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderUpdate_orderUpdate_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderUpdate_orderUpdate_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderUpdate_orderUpdate_order_undiscountedTotal_net;
|
||||||
|
gross: OrderUpdate_orderUpdate_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderUpdate_orderUpdate_order_user {
|
export interface OrderUpdate_orderUpdate_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderUpdate_orderUpdate_order {
|
||||||
metadata: (OrderUpdate_orderUpdate_order_metadata | null)[];
|
metadata: (OrderUpdate_orderUpdate_order_metadata | null)[];
|
||||||
privateMetadata: (OrderUpdate_orderUpdate_order_privateMetadata | null)[];
|
privateMetadata: (OrderUpdate_orderUpdate_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderUpdate_orderUpdate_order_billingAddress | null;
|
billingAddress: OrderUpdate_orderUpdate_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderUpdate_orderUpdate_order_discounts[] | null;
|
||||||
events: (OrderUpdate_orderUpdate_order_events | null)[] | null;
|
events: (OrderUpdate_orderUpdate_order_events | null)[] | null;
|
||||||
fulfillments: (OrderUpdate_orderUpdate_order_fulfillments | null)[];
|
fulfillments: (OrderUpdate_orderUpdate_order_fulfillments | null)[];
|
||||||
lines: (OrderUpdate_orderUpdate_order_lines | null)[];
|
lines: (OrderUpdate_orderUpdate_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderUpdate_orderUpdate_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderUpdate_orderUpdate_order_totalAuthorized;
|
totalAuthorized: OrderUpdate_orderUpdate_order_totalAuthorized;
|
||||||
totalCaptured: OrderUpdate_orderUpdate_order_totalCaptured;
|
totalCaptured: OrderUpdate_orderUpdate_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderUpdate_orderUpdate_order_undiscountedTotal;
|
||||||
user: OrderUpdate_orderUpdate_order_user | null;
|
user: OrderUpdate_orderUpdate_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderUpdate_orderUpdate_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderUpdate_orderUpdate_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
import { OrderErrorCode, OrderDiscountType, DiscountValueTypeEnum, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: OrderVoid
|
// GraphQL mutation operation: OrderVoid
|
||||||
|
@ -48,6 +48,45 @@ export interface OrderVoid_orderVoid_order_billingAddress {
|
||||||
streetAddress2: string;
|
streetAddress2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_discounts_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_discounts {
|
||||||
|
__typename: "OrderDiscount";
|
||||||
|
id: string;
|
||||||
|
type: OrderDiscountType;
|
||||||
|
calculationMode: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderVoid_orderVoid_order_discounts_amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_events_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_events_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_events_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderVoid_orderVoid_order_events_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderVoid_orderVoid_order_events_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_events_relatedOrder {
|
export interface OrderVoid_orderVoid_order_events_relatedOrder {
|
||||||
__typename: "Order";
|
__typename: "Order";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -62,6 +101,29 @@ export interface OrderVoid_orderVoid_order_events_user {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_events_lines_discount_amount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_events_lines_discount_oldAmount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_events_lines_discount {
|
||||||
|
__typename: "OrderEventDiscountObject";
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason: string | null;
|
||||||
|
amount: OrderVoid_orderVoid_order_events_lines_discount_amount | null;
|
||||||
|
oldValueType: DiscountValueTypeEnum | null;
|
||||||
|
oldValue: any | null;
|
||||||
|
oldAmount: OrderVoid_orderVoid_order_events_lines_discount_oldAmount | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_events_lines_orderLine {
|
export interface OrderVoid_orderVoid_order_events_lines_orderLine {
|
||||||
__typename: "OrderLine";
|
__typename: "OrderLine";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -73,6 +135,7 @@ export interface OrderVoid_orderVoid_order_events_lines {
|
||||||
__typename: "OrderEventOrderLineObject";
|
__typename: "OrderEventOrderLineObject";
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
itemName: string | null;
|
itemName: string | null;
|
||||||
|
discount: OrderVoid_orderVoid_order_events_lines_discount | null;
|
||||||
orderLine: OrderVoid_orderVoid_order_events_lines_orderLine | null;
|
orderLine: OrderVoid_orderVoid_order_events_lines_orderLine | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +148,7 @@ export interface OrderVoid_orderVoid_order_events {
|
||||||
email: string | null;
|
email: string | null;
|
||||||
emailType: OrderEventsEmailsEnum | null;
|
emailType: OrderEventsEmailsEnum | null;
|
||||||
invoiceNumber: string | null;
|
invoiceNumber: string | null;
|
||||||
|
discount: OrderVoid_orderVoid_order_events_discount | null;
|
||||||
relatedOrder: OrderVoid_orderVoid_order_events_relatedOrder | null;
|
relatedOrder: OrderVoid_orderVoid_order_events_relatedOrder | null;
|
||||||
message: string | null;
|
message: string | null;
|
||||||
quantity: number | null;
|
quantity: number | null;
|
||||||
|
@ -100,6 +164,31 @@ export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_variant
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitPrice_gross {
|
export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -132,6 +221,11 @@ export interface OrderVoid_orderVoid_order_fulfillments_lines_orderLine {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_undiscountedUnitPrice;
|
||||||
unitPrice: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitPrice;
|
unitPrice: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_unitPrice;
|
||||||
thumbnail: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_thumbnail | null;
|
thumbnail: OrderVoid_orderVoid_order_fulfillments_lines_orderLine_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -165,6 +259,31 @@ export interface OrderVoid_orderVoid_order_lines_variant {
|
||||||
quantityAvailable: number;
|
quantityAvailable: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_lines_unitDiscount {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_lines_undiscountedUnitPrice_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_lines_undiscountedUnitPrice_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_lines_undiscountedUnitPrice {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
currency: string;
|
||||||
|
gross: OrderVoid_orderVoid_order_lines_undiscountedUnitPrice_gross;
|
||||||
|
net: OrderVoid_orderVoid_order_lines_undiscountedUnitPrice_net;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_lines_unitPrice_gross {
|
export interface OrderVoid_orderVoid_order_lines_unitPrice_gross {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -197,6 +316,11 @@ export interface OrderVoid_orderVoid_order_lines {
|
||||||
productSku: string;
|
productSku: string;
|
||||||
quantity: number;
|
quantity: number;
|
||||||
quantityFulfilled: number;
|
quantityFulfilled: number;
|
||||||
|
unitDiscount: OrderVoid_orderVoid_order_lines_unitDiscount;
|
||||||
|
unitDiscountValue: any;
|
||||||
|
unitDiscountReason: string | null;
|
||||||
|
unitDiscountType: DiscountValueTypeEnum | null;
|
||||||
|
undiscountedUnitPrice: OrderVoid_orderVoid_order_lines_undiscountedUnitPrice;
|
||||||
unitPrice: OrderVoid_orderVoid_order_lines_unitPrice;
|
unitPrice: OrderVoid_orderVoid_order_lines_unitPrice;
|
||||||
thumbnail: OrderVoid_orderVoid_order_lines_thumbnail | null;
|
thumbnail: OrderVoid_orderVoid_order_lines_thumbnail | null;
|
||||||
}
|
}
|
||||||
|
@ -245,9 +369,16 @@ export interface OrderVoid_orderVoid_order_subtotal_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_subtotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_subtotal {
|
export interface OrderVoid_orderVoid_order_subtotal {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderVoid_orderVoid_order_subtotal_gross;
|
gross: OrderVoid_orderVoid_order_subtotal_gross;
|
||||||
|
net: OrderVoid_orderVoid_order_subtotal_net;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_total_gross {
|
export interface OrderVoid_orderVoid_order_total_gross {
|
||||||
|
@ -256,6 +387,12 @@ export interface OrderVoid_orderVoid_order_total_gross {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_total_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_total_tax {
|
export interface OrderVoid_orderVoid_order_total_tax {
|
||||||
__typename: "Money";
|
__typename: "Money";
|
||||||
amount: number;
|
amount: number;
|
||||||
|
@ -265,6 +402,7 @@ export interface OrderVoid_orderVoid_order_total_tax {
|
||||||
export interface OrderVoid_orderVoid_order_total {
|
export interface OrderVoid_orderVoid_order_total {
|
||||||
__typename: "TaxedMoney";
|
__typename: "TaxedMoney";
|
||||||
gross: OrderVoid_orderVoid_order_total_gross;
|
gross: OrderVoid_orderVoid_order_total_gross;
|
||||||
|
net: OrderVoid_orderVoid_order_total_net;
|
||||||
tax: OrderVoid_orderVoid_order_total_tax;
|
tax: OrderVoid_orderVoid_order_total_tax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +418,24 @@ export interface OrderVoid_orderVoid_order_totalCaptured {
|
||||||
currency: string;
|
currency: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_undiscountedTotal_net {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_undiscountedTotal_gross {
|
||||||
|
__typename: "Money";
|
||||||
|
amount: number;
|
||||||
|
currency: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderVoid_orderVoid_order_undiscountedTotal {
|
||||||
|
__typename: "TaxedMoney";
|
||||||
|
net: OrderVoid_orderVoid_order_undiscountedTotal_net;
|
||||||
|
gross: OrderVoid_orderVoid_order_undiscountedTotal_gross;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderVoid_orderVoid_order_user {
|
export interface OrderVoid_orderVoid_order_user {
|
||||||
__typename: "User";
|
__typename: "User";
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -328,9 +484,11 @@ export interface OrderVoid_orderVoid_order {
|
||||||
metadata: (OrderVoid_orderVoid_order_metadata | null)[];
|
metadata: (OrderVoid_orderVoid_order_metadata | null)[];
|
||||||
privateMetadata: (OrderVoid_orderVoid_order_privateMetadata | null)[];
|
privateMetadata: (OrderVoid_orderVoid_order_privateMetadata | null)[];
|
||||||
billingAddress: OrderVoid_orderVoid_order_billingAddress | null;
|
billingAddress: OrderVoid_orderVoid_order_billingAddress | null;
|
||||||
|
isShippingRequired: boolean;
|
||||||
canFinalize: boolean;
|
canFinalize: boolean;
|
||||||
created: any;
|
created: any;
|
||||||
customerNote: string;
|
customerNote: string;
|
||||||
|
discounts: OrderVoid_orderVoid_order_discounts[] | null;
|
||||||
events: (OrderVoid_orderVoid_order_events | null)[] | null;
|
events: (OrderVoid_orderVoid_order_events | null)[] | null;
|
||||||
fulfillments: (OrderVoid_orderVoid_order_fulfillments | null)[];
|
fulfillments: (OrderVoid_orderVoid_order_fulfillments | null)[];
|
||||||
lines: (OrderVoid_orderVoid_order_lines | null)[];
|
lines: (OrderVoid_orderVoid_order_lines | null)[];
|
||||||
|
@ -346,6 +504,7 @@ export interface OrderVoid_orderVoid_order {
|
||||||
actions: (OrderAction | null)[];
|
actions: (OrderAction | null)[];
|
||||||
totalAuthorized: OrderVoid_orderVoid_order_totalAuthorized;
|
totalAuthorized: OrderVoid_orderVoid_order_totalAuthorized;
|
||||||
totalCaptured: OrderVoid_orderVoid_order_totalCaptured;
|
totalCaptured: OrderVoid_orderVoid_order_totalCaptured;
|
||||||
|
undiscountedTotal: OrderVoid_orderVoid_order_undiscountedTotal;
|
||||||
user: OrderVoid_orderVoid_order_user | null;
|
user: OrderVoid_orderVoid_order_user | null;
|
||||||
userEmail: string | null;
|
userEmail: string | null;
|
||||||
availableShippingMethods: (OrderVoid_orderVoid_order_availableShippingMethods | null)[] | null;
|
availableShippingMethods: (OrderVoid_orderVoid_order_availableShippingMethods | null)[] | null;
|
||||||
|
|
|
@ -464,6 +464,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 2,
|
quantity: 2,
|
||||||
quantityFulfilled: 2,
|
quantityFulfilled: 2,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -496,6 +518,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 10,
|
quantity: 10,
|
||||||
quantityFulfilled: 2,
|
quantityFulfilled: 2,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -528,6 +572,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "29810068",
|
productSku: "29810068",
|
||||||
quantity: 6,
|
quantity: 6,
|
||||||
quantityFulfilled: 1,
|
quantityFulfilled: 1,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 2.5,
|
amount: 2.5,
|
||||||
|
@ -566,6 +632,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 20,
|
quantity: 20,
|
||||||
quantityFulfilled: 6,
|
quantityFulfilled: 6,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -603,6 +691,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 25,
|
quantity: 25,
|
||||||
quantityFulfilled: 8,
|
quantityFulfilled: 8,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -640,6 +750,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "29810068",
|
productSku: "29810068",
|
||||||
quantity: 10,
|
quantity: 10,
|
||||||
quantityFulfilled: 3,
|
quantityFulfilled: 3,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 2.5,
|
amount: 2.5,
|
||||||
|
@ -677,6 +809,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 20,
|
quantity: 20,
|
||||||
quantityFulfilled: 6,
|
quantityFulfilled: 6,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -714,6 +868,28 @@ describe("Get the total value of all replaced products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 25,
|
quantity: 25,
|
||||||
quantityFulfilled: 8,
|
quantityFulfilled: 8,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -885,6 +1061,28 @@ describe("Get the total value of all selected products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 2,
|
quantity: 2,
|
||||||
quantityFulfilled: 2,
|
quantityFulfilled: 2,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -917,6 +1115,28 @@ describe("Get the total value of all selected products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 10,
|
quantity: 10,
|
||||||
quantityFulfilled: 2,
|
quantityFulfilled: 2,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -949,6 +1169,28 @@ describe("Get the total value of all selected products", () => {
|
||||||
productSku: "29810068",
|
productSku: "29810068",
|
||||||
quantity: 6,
|
quantity: 6,
|
||||||
quantityFulfilled: 1,
|
quantityFulfilled: 1,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 2.5,
|
amount: 2.5,
|
||||||
|
@ -987,6 +1229,28 @@ describe("Get the total value of all selected products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 20,
|
quantity: 20,
|
||||||
quantityFulfilled: 6,
|
quantityFulfilled: 6,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -1024,6 +1288,28 @@ describe("Get the total value of all selected products", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 25,
|
quantity: 25,
|
||||||
quantityFulfilled: 8,
|
quantityFulfilled: 8,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -1061,6 +1347,28 @@ describe("Get the total value of all selected products", () => {
|
||||||
productSku: "29810068",
|
productSku: "29810068",
|
||||||
quantity: 10,
|
quantity: 10,
|
||||||
quantityFulfilled: 3,
|
quantityFulfilled: 3,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 2.5,
|
amount: 2.5,
|
||||||
|
@ -1223,6 +1531,28 @@ describe("Merge repeated order lines of fulfillment lines", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 2,
|
quantity: 2,
|
||||||
quantityFulfilled: 2,
|
quantityFulfilled: 2,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -1260,6 +1590,28 @@ describe("Merge repeated order lines of fulfillment lines", () => {
|
||||||
productSku: "lake-tunes-mp3",
|
productSku: "lake-tunes-mp3",
|
||||||
quantity: 2,
|
quantity: 2,
|
||||||
quantityFulfilled: 2,
|
quantityFulfilled: 2,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 9.99,
|
amount: 9.99,
|
||||||
|
@ -1297,6 +1649,28 @@ describe("Merge repeated order lines of fulfillment lines", () => {
|
||||||
productSku: "29810068",
|
productSku: "29810068",
|
||||||
quantity: 3,
|
quantity: 3,
|
||||||
quantityFulfilled: 1,
|
quantityFulfilled: 1,
|
||||||
|
undiscountedUnitPrice: {
|
||||||
|
__typename: "TaxedMoney",
|
||||||
|
currency: "USD",
|
||||||
|
gross: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
net: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unitDiscount: {
|
||||||
|
__typename: "Money",
|
||||||
|
amount: 79.71,
|
||||||
|
currency: "USD"
|
||||||
|
},
|
||||||
|
unitDiscountReason: null,
|
||||||
|
unitDiscountType: null,
|
||||||
|
unitDiscountValue: 0,
|
||||||
unitPrice: {
|
unitPrice: {
|
||||||
gross: {
|
gross: {
|
||||||
amount: 2.5,
|
amount: 2.5,
|
||||||
|
|
|
@ -12,6 +12,8 @@ import OrderCannotCancelOrderDialog from "@saleor/orders/components/OrderCannotC
|
||||||
import OrderInvoiceEmailSendDialog from "@saleor/orders/components/OrderInvoiceEmailSendDialog";
|
import OrderInvoiceEmailSendDialog from "@saleor/orders/components/OrderInvoiceEmailSendDialog";
|
||||||
import { useOrderConfirmMutation } from "@saleor/orders/mutations";
|
import { useOrderConfirmMutation } from "@saleor/orders/mutations";
|
||||||
import { InvoiceRequest } from "@saleor/orders/types/InvoiceRequest";
|
import { InvoiceRequest } from "@saleor/orders/types/InvoiceRequest";
|
||||||
|
import { OrderDiscountProvider } from "@saleor/products/components/OrderDiscountProviders/OrderDiscountProvider";
|
||||||
|
import { OrderLineDiscountProvider } from "@saleor/products/components/OrderDiscountProviders/OrderLineDiscountProvider";
|
||||||
import useCustomerSearch from "@saleor/searches/useCustomerSearch";
|
import useCustomerSearch from "@saleor/searches/useCustomerSearch";
|
||||||
import getOrderErrorMessage from "@saleor/utils/errors/order";
|
import getOrderErrorMessage from "@saleor/utils/errors/order";
|
||||||
import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers";
|
import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers";
|
||||||
|
@ -458,6 +460,9 @@ export const OrderDetails: React.FC<OrderDetailsProps> = ({ id, params }) => {
|
||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<OrderDiscountProvider order={order}>
|
||||||
|
<OrderLineDiscountProvider order={order}>
|
||||||
<OrderDraftPage
|
<OrderDraftPage
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
onNoteAdd={variables =>
|
onNoteAdd={variables =>
|
||||||
|
@ -468,7 +473,9 @@ export const OrderDetails: React.FC<OrderDetailsProps> = ({ id, params }) => {
|
||||||
}
|
}
|
||||||
users={maybe(
|
users={maybe(
|
||||||
() =>
|
() =>
|
||||||
users.data.search.edges.map(edge => edge.node),
|
users.data.search.edges.map(
|
||||||
|
edge => edge.node
|
||||||
|
),
|
||||||
[]
|
[]
|
||||||
)}
|
)}
|
||||||
hasMore={maybe(
|
hasMore={maybe(
|
||||||
|
@ -492,12 +499,13 @@ export const OrderDetails: React.FC<OrderDetailsProps> = ({ id, params }) => {
|
||||||
onOrderLineAdd={() => openModal("add-order-line")}
|
onOrderLineAdd={() => openModal("add-order-line")}
|
||||||
onBack={() => navigate(orderDraftListUrl())}
|
onBack={() => navigate(orderDraftListUrl())}
|
||||||
order={order}
|
order={order}
|
||||||
countries={maybe(() => data.shop.countries, []).map(
|
countries={maybe(
|
||||||
country => ({
|
() => data.shop.countries,
|
||||||
|
[]
|
||||||
|
).map(country => ({
|
||||||
code: country.code,
|
code: country.code,
|
||||||
label: country.country
|
label: country.country
|
||||||
})
|
}))}
|
||||||
)}
|
|
||||||
onProductClick={id => () =>
|
onProductClick={id => () =>
|
||||||
navigate(productUrl(encodeURIComponent(id)))}
|
navigate(productUrl(encodeURIComponent(id)))}
|
||||||
onBillingAddressEdit={() =>
|
onBillingAddressEdit={() =>
|
||||||
|
@ -524,6 +532,8 @@ export const OrderDetails: React.FC<OrderDetailsProps> = ({ id, params }) => {
|
||||||
}
|
}
|
||||||
userPermissions={user?.userPermissions || []}
|
userPermissions={user?.userPermissions || []}
|
||||||
/>
|
/>
|
||||||
|
</OrderLineDiscountProvider>
|
||||||
|
</OrderDiscountProvider>
|
||||||
<OrderDraftCancelDialog
|
<OrderDraftCancelDialog
|
||||||
confirmButtonState={orderDraftCancel.opts.status}
|
confirmButtonState={orderDraftCancel.opts.status}
|
||||||
errors={
|
errors={
|
||||||
|
|
|
@ -0,0 +1,125 @@
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
import { ConfirmButtonTransitionState } from "@saleor/components/ConfirmButton";
|
||||||
|
import useNotifier from "@saleor/hooks/useNotifier";
|
||||||
|
import { OrderDiscountCommonInput } from "@saleor/orders/components/OrderDiscountCommonModal/types";
|
||||||
|
import {
|
||||||
|
useOrderDiscountAddMutation,
|
||||||
|
useOrderDiscountDeleteMutation,
|
||||||
|
useOrderDiscountUpdateMutation
|
||||||
|
} from "@saleor/orders/mutations";
|
||||||
|
import { OrderDetails_order } from "@saleor/orders/types/OrderDetails";
|
||||||
|
import { OrderDiscountAdd } from "@saleor/orders/types/OrderDiscountAdd";
|
||||||
|
import { OrderDiscountDelete } from "@saleor/orders/types/OrderDiscountDelete";
|
||||||
|
import { OrderDiscountUpdate } from "@saleor/orders/types/OrderDiscountUpdate";
|
||||||
|
import React, { createContext } from "react";
|
||||||
|
import { useIntl } from "react-intl";
|
||||||
|
|
||||||
|
import { OrderDiscountConsumerCommonProps, OrderDiscountData } from "./types";
|
||||||
|
import { getDiscountNotifierData, useDiscountDialog } from "./utils";
|
||||||
|
import { getManualOrderDiscount, getParsedDiscountData } from "./utils";
|
||||||
|
|
||||||
|
export interface OrderDiscountContextConsumerProps
|
||||||
|
extends OrderDiscountConsumerCommonProps {
|
||||||
|
orderDiscountAddStatus: ConfirmButtonTransitionState;
|
||||||
|
orderDiscountRemoveStatus: ConfirmButtonTransitionState;
|
||||||
|
orderDiscount?: OrderDiscountData;
|
||||||
|
addOrderDiscount: (data: OrderDiscountCommonInput) => void;
|
||||||
|
removeOrderDiscount: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface OrderDiscountProviderProps {
|
||||||
|
children: React.ReactNode;
|
||||||
|
order?: OrderDetails_order;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const OrderDiscountProvider: React.FC<OrderDiscountProviderProps> = ({
|
||||||
|
children,
|
||||||
|
order
|
||||||
|
}) => {
|
||||||
|
const intl = useIntl();
|
||||||
|
const notify = useNotifier();
|
||||||
|
|
||||||
|
const { id: orderId } = order;
|
||||||
|
|
||||||
|
const { isDialogOpen, openDialog, closeDialog } = useDiscountDialog();
|
||||||
|
|
||||||
|
const orderDiscount = getManualOrderDiscount(order);
|
||||||
|
|
||||||
|
const [orderDiscountAdd, orderDiscountAddOpts] = useOrderDiscountAddMutation({
|
||||||
|
onCompleted: ({ orderDiscountAdd: { errors } }: OrderDiscountAdd) =>
|
||||||
|
handleDiscountDataSubmission(errors)
|
||||||
|
});
|
||||||
|
|
||||||
|
const [
|
||||||
|
orderDiscountUpdate,
|
||||||
|
orderDiscountUpdateOpts
|
||||||
|
] = useOrderDiscountUpdateMutation({
|
||||||
|
onCompleted: ({ orderDiscountUpdate: { errors } }: OrderDiscountUpdate) =>
|
||||||
|
handleDiscountDataSubmission(errors)
|
||||||
|
});
|
||||||
|
|
||||||
|
const [
|
||||||
|
orderDiscountRemove,
|
||||||
|
orderDiscountRemoveOpts
|
||||||
|
] = useOrderDiscountDeleteMutation({
|
||||||
|
onCompleted: ({ orderDiscountDelete: { errors } }: OrderDiscountDelete) =>
|
||||||
|
handleDiscountDataSubmission(errors)
|
||||||
|
});
|
||||||
|
|
||||||
|
const handleDiscountDataSubmission = (errors: any[]) => {
|
||||||
|
closeDialog();
|
||||||
|
notify(getDiscountNotifierData(errors, intl));
|
||||||
|
};
|
||||||
|
|
||||||
|
const addOrderDiscount = (data: OrderDiscountCommonInput) =>
|
||||||
|
orderDiscountAdd({
|
||||||
|
variables: {
|
||||||
|
orderId,
|
||||||
|
input: getParsedDiscountData(data)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const updateOrderDiscount = (data: OrderDiscountCommonInput) =>
|
||||||
|
orderDiscount &&
|
||||||
|
orderDiscountUpdate({
|
||||||
|
variables: {
|
||||||
|
discountId: orderDiscount?.id,
|
||||||
|
input: getParsedDiscountData(data)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const removeOrderDiscount = () =>
|
||||||
|
orderDiscount &&
|
||||||
|
orderDiscountRemove({ variables: { discountId: orderDiscount.id } });
|
||||||
|
|
||||||
|
const orderDiscountAction = orderDiscount
|
||||||
|
? updateOrderDiscount
|
||||||
|
: addOrderDiscount;
|
||||||
|
|
||||||
|
const orderDiscountAddStatus = orderDiscount
|
||||||
|
? orderDiscountUpdateOpts.status
|
||||||
|
: orderDiscountAddOpts.status;
|
||||||
|
|
||||||
|
const discountProviderValues: OrderDiscountContextConsumerProps = {
|
||||||
|
orderDiscountAddStatus,
|
||||||
|
orderDiscountRemoveStatus: orderDiscountRemoveOpts.status,
|
||||||
|
orderDiscount,
|
||||||
|
addOrderDiscount: orderDiscountAction,
|
||||||
|
removeOrderDiscount,
|
||||||
|
isDialogOpen,
|
||||||
|
closeDialog,
|
||||||
|
openDialog,
|
||||||
|
discountedPrice: order.total.gross,
|
||||||
|
undiscountedPrice: order.undiscountedTotal.gross
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<OrderDiscountContext.Provider value={discountProviderValues}>
|
||||||
|
{children}
|
||||||
|
</OrderDiscountContext.Provider>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const OrderDiscountContext = createContext<
|
||||||
|
OrderDiscountContextConsumerProps
|
||||||
|
>(null);
|
|
@ -0,0 +1,132 @@
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
import { ConfirmButtonTransitionState } from "@saleor/components/ConfirmButton";
|
||||||
|
import useNotifier from "@saleor/hooks/useNotifier";
|
||||||
|
import { OrderDiscountCommonInput } from "@saleor/orders/components/OrderDiscountCommonModal/types";
|
||||||
|
import { getById } from "@saleor/orders/components/OrderReturnPage/utils";
|
||||||
|
import {
|
||||||
|
useOrderLineDiscountRemoveMutation,
|
||||||
|
useOrderLineDiscountUpdateMutation
|
||||||
|
} from "@saleor/orders/mutations";
|
||||||
|
import { OrderDetails_order } from "@saleor/orders/types/OrderDetails";
|
||||||
|
import { OrderLineDiscountRemove } from "@saleor/orders/types/OrderLineDiscountRemove";
|
||||||
|
import { OrderLineDiscountUpdate } from "@saleor/orders/types/OrderLineDiscountUpdate";
|
||||||
|
import React, { createContext, useState } from "react";
|
||||||
|
import { useIntl } from "react-intl";
|
||||||
|
|
||||||
|
import {
|
||||||
|
GetOrderLineDiscountContextConsumerProps,
|
||||||
|
OrderDiscountConsumerCommonProps,
|
||||||
|
OrderLineDiscountConsumerProps,
|
||||||
|
OrderLineDiscountData
|
||||||
|
} from "./types";
|
||||||
|
import { getDiscountNotifierData, useDiscountDialog } from "./utils";
|
||||||
|
import { getOrderLineDiscount, getParsedDiscountData } from "./utils";
|
||||||
|
|
||||||
|
export interface OrderLineDiscountContextConsumerProps
|
||||||
|
extends OrderDiscountConsumerCommonProps {
|
||||||
|
addOrderLineDiscount: (data: OrderDiscountCommonInput) => void;
|
||||||
|
removeOrderLineDiscount: () => void;
|
||||||
|
orderLineDiscount?: OrderLineDiscountData;
|
||||||
|
orderLineDiscountUpdateStatus: ConfirmButtonTransitionState;
|
||||||
|
orderLineDiscountRemoveStatus: ConfirmButtonTransitionState;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DiscountProviderProps {
|
||||||
|
children: React.ReactNode;
|
||||||
|
order: OrderDetails_order;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const OrderLineDiscountContext = createContext<
|
||||||
|
GetOrderLineDiscountContextConsumerProps
|
||||||
|
>(null);
|
||||||
|
|
||||||
|
export const OrderLineDiscountProvider: React.FC<DiscountProviderProps> = ({
|
||||||
|
children,
|
||||||
|
order
|
||||||
|
}) => {
|
||||||
|
const intl = useIntl();
|
||||||
|
const notify = useNotifier();
|
||||||
|
const { isDialogOpen, openDialog, closeDialog } = useDiscountDialog();
|
||||||
|
const [currentLineId, setCurrentLineId] = useState<string | null>(null);
|
||||||
|
|
||||||
|
const handleOpenDialog = (orderLineId: string) => () => {
|
||||||
|
setCurrentLineId(orderLineId);
|
||||||
|
openDialog();
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleCloseDialog = () => {
|
||||||
|
setCurrentLineId(null);
|
||||||
|
closeDialog();
|
||||||
|
};
|
||||||
|
|
||||||
|
const [
|
||||||
|
orderLineDiscountAddOrUpdate,
|
||||||
|
orderLineDiscountAddOrUpdateOpts
|
||||||
|
] = useOrderLineDiscountUpdateMutation({
|
||||||
|
onCompleted: ({
|
||||||
|
orderLineDiscountUpdate: { errors }
|
||||||
|
}: OrderLineDiscountUpdate) => handleDiscountDataSubmission(errors)
|
||||||
|
});
|
||||||
|
|
||||||
|
const [
|
||||||
|
orderLineDiscountRemove,
|
||||||
|
orderLineDiscountRemoveOpts
|
||||||
|
] = useOrderLineDiscountRemoveMutation({
|
||||||
|
onCompleted: ({
|
||||||
|
orderLineDiscountRemove: { errors }
|
||||||
|
}: OrderLineDiscountRemove) => handleDiscountDataSubmission(errors)
|
||||||
|
});
|
||||||
|
|
||||||
|
const handleDiscountDataSubmission = (errors: any[]) => {
|
||||||
|
closeDialog();
|
||||||
|
notify(getDiscountNotifierData(errors, intl));
|
||||||
|
};
|
||||||
|
|
||||||
|
const addOrUpdateOrderLineDiscount = (orderLineId: string) => (
|
||||||
|
input: OrderDiscountCommonInput
|
||||||
|
) =>
|
||||||
|
orderLineDiscountAddOrUpdate({
|
||||||
|
variables: { orderLineId, input: getParsedDiscountData(input) }
|
||||||
|
});
|
||||||
|
|
||||||
|
const removeOrderLineDiscount = (orderLineId: string) => () =>
|
||||||
|
orderLineDiscountRemove({ variables: { orderLineId } });
|
||||||
|
|
||||||
|
const isOrderLineDialogOpen = (orderLineId: string) =>
|
||||||
|
isDialogOpen && currentLineId === orderLineId;
|
||||||
|
|
||||||
|
const getOrderLine = (orderLineId: string) =>
|
||||||
|
order?.lines.find(getById(orderLineId));
|
||||||
|
|
||||||
|
const getDiscountProviderValues = (
|
||||||
|
orderLineId: string
|
||||||
|
): OrderLineDiscountContextConsumerProps => ({
|
||||||
|
addOrderLineDiscount: addOrUpdateOrderLineDiscount(orderLineId),
|
||||||
|
removeOrderLineDiscount: removeOrderLineDiscount(orderLineId),
|
||||||
|
orderLineDiscount: getOrderLineDiscount(order, orderLineId),
|
||||||
|
isDialogOpen: isOrderLineDialogOpen(orderLineId),
|
||||||
|
orderLineDiscountUpdateStatus: orderLineDiscountAddOrUpdateOpts.status,
|
||||||
|
orderLineDiscountRemoveStatus: orderLineDiscountRemoveOpts.status,
|
||||||
|
closeDialog: handleCloseDialog,
|
||||||
|
openDialog: handleOpenDialog(orderLineId),
|
||||||
|
discountedPrice: getOrderLine(orderLineId).unitPrice.gross,
|
||||||
|
undiscountedPrice: getOrderLine(orderLineId).undiscountedUnitPrice.gross
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<OrderLineDiscountContext.Provider value={getDiscountProviderValues}>
|
||||||
|
{children}
|
||||||
|
</OrderLineDiscountContext.Provider>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const OrderLineDiscountConsumer: React.FC<OrderLineDiscountConsumerProps> = ({
|
||||||
|
children,
|
||||||
|
orderLineId
|
||||||
|
}) => (
|
||||||
|
<OrderLineDiscountContext.Consumer>
|
||||||
|
{(getValues: GetOrderLineDiscountContextConsumerProps) =>
|
||||||
|
children(getValues(orderLineId))
|
||||||
|
}
|
||||||
|
</OrderLineDiscountContext.Consumer>
|
||||||
|
);
|
31
src/products/components/OrderDiscountProviders/types.ts
Normal file
31
src/products/components/OrderDiscountProviders/types.ts
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
import { Money } from "@saleor/fragments/types/Money";
|
||||||
|
import { OrderDiscountCommonInput } from "@saleor/orders/components/OrderDiscountCommonModal/types";
|
||||||
|
import { OrderDetails_order_lines_undiscountedUnitPrice } from "@saleor/orders/types/OrderDetails";
|
||||||
|
|
||||||
|
import { OrderLineDiscountContextConsumerProps } from "./OrderLineDiscountProvider";
|
||||||
|
|
||||||
|
export interface OrderDiscountData extends OrderDiscountCommonInput {
|
||||||
|
amount: Money;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GetOrderLineDiscountContextConsumerProps = (
|
||||||
|
orderLineId: string
|
||||||
|
) => OrderLineDiscountContextConsumerProps;
|
||||||
|
|
||||||
|
export interface OrderLineDiscountData extends OrderDiscountCommonInput {
|
||||||
|
moneyValue: Money;
|
||||||
|
undiscountedPrice: OrderDetails_order_lines_undiscountedUnitPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountConsumerCommonProps {
|
||||||
|
openDialog: () => void;
|
||||||
|
closeDialog: () => void;
|
||||||
|
isDialogOpen: boolean;
|
||||||
|
undiscountedPrice: Money;
|
||||||
|
discountedPrice: Money;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OrderLineDiscountConsumerProps {
|
||||||
|
children: (values: OrderLineDiscountContextConsumerProps) => React.ReactNode;
|
||||||
|
orderLineId: string;
|
||||||
|
}
|
79
src/products/components/OrderDiscountProviders/utils.ts
Normal file
79
src/products/components/OrderDiscountProviders/utils.ts
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
import { IMessage } from "@saleor/components/messages";
|
||||||
|
import { commonMessages } from "@saleor/intl";
|
||||||
|
import { OrderDiscountCommonInput } from "@saleor/orders/components/OrderDiscountCommonModal/types";
|
||||||
|
import {
|
||||||
|
OrderDetails_order,
|
||||||
|
OrderDetails_order_discounts,
|
||||||
|
OrderDetails_order_lines
|
||||||
|
} from "@saleor/orders/types/OrderDetails";
|
||||||
|
import { OrderDiscountType } from "@saleor/types/globalTypes";
|
||||||
|
import commonErrorMessages from "@saleor/utils/errors/common";
|
||||||
|
import { useState } from "react";
|
||||||
|
import { IntlShape } from "react-intl";
|
||||||
|
|
||||||
|
import { OrderLineDiscountData } from "./types";
|
||||||
|
|
||||||
|
export const useDiscountDialog = () => {
|
||||||
|
const [isDialogOpen, setIsDialogOpen] = useState<boolean>(false);
|
||||||
|
|
||||||
|
const closeDialog = () => setIsDialogOpen(false);
|
||||||
|
const openDialog = () => setIsDialogOpen(true);
|
||||||
|
|
||||||
|
return { closeDialog, isDialogOpen, openDialog };
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getDiscountNotifierData = (
|
||||||
|
errors: any[],
|
||||||
|
intl: IntlShape
|
||||||
|
): IMessage =>
|
||||||
|
!errors.length
|
||||||
|
? {
|
||||||
|
status: "success",
|
||||||
|
text: intl.formatMessage(commonMessages.savedChanges)
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
status: "error",
|
||||||
|
text: intl.formatMessage(commonErrorMessages.unknownError)
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getManualOrderDiscount = (order: OrderDetails_order) =>
|
||||||
|
order ? getOrderDiscount(order, OrderDiscountType.MANUAL) : null;
|
||||||
|
|
||||||
|
export const getOrderDiscount = (
|
||||||
|
order: OrderDetails_order,
|
||||||
|
discountType: OrderDiscountType
|
||||||
|
): OrderDetails_order_discounts =>
|
||||||
|
order.discounts.find(({ type }) => type === discountType);
|
||||||
|
|
||||||
|
export const getOrderLineDiscount = (
|
||||||
|
order: OrderDetails_order,
|
||||||
|
orderLineId: string
|
||||||
|
): OrderLineDiscountData => {
|
||||||
|
const {
|
||||||
|
unitDiscount: moneyValue,
|
||||||
|
unitDiscountReason: reason,
|
||||||
|
unitDiscountValue: value,
|
||||||
|
undiscountedUnitPrice: undiscountedPrice,
|
||||||
|
unitDiscountType: calculationMode
|
||||||
|
} = order.lines.find(
|
||||||
|
({ id }: OrderDetails_order_lines) => id === orderLineId
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!value) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
calculationMode,
|
||||||
|
moneyValue,
|
||||||
|
reason,
|
||||||
|
undiscountedPrice,
|
||||||
|
value
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getParsedDiscountData = ({
|
||||||
|
value,
|
||||||
|
calculationMode,
|
||||||
|
reason
|
||||||
|
}: OrderDiscountCommonInput) => ({ reason, value, valueType: calculationMode });
|
|
@ -1270,6 +1270,60 @@ exports[`Storyshots Discounts / Select countries default 1`] = `
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
exports[`Storyshots Generic / Horizontal Spacer default 1`] = `
|
||||||
|
<div
|
||||||
|
style="padding:24px"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style="display:flex;flex-direction:row"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="HorizontalSpacer-container-id HorizontalSpacer-container-id"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
<- The spacer is here
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Storyshots Generic / Horizontal Spacer with bigger spacing provided 1`] = `
|
||||||
|
<div
|
||||||
|
style="padding:24px"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style="display:flex;flex-direction:row"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="HorizontalSpacer-container-id HorizontalSpacer-container-id"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
<- The spacer is here
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Storyshots Generic / Horizontal Spacer without 1`] = `
|
||||||
|
<div
|
||||||
|
style="padding:24px"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style="display:flex;flex-direction:row"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
No spacer
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
exports[`Storyshots Generics / Accordion default 1`] = `
|
exports[`Storyshots Generics / Accordion default 1`] = `
|
||||||
<div
|
<div
|
||||||
class="MuiPaper-root-id MuiPaper-elevation0-id MuiCard-root-id MuiPaper-rounded-id"
|
class="MuiPaper-root-id MuiPaper-elevation0-id MuiCard-root-id MuiPaper-rounded-id"
|
||||||
|
@ -13317,6 +13371,30 @@ exports[`Storyshots Orders / Draft order channel section loading 1`] = `
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
exports[`Storyshots Orders / Order Discount common modal fixed amount with existing discount 1`] = `
|
||||||
|
<div
|
||||||
|
style="padding:24px"
|
||||||
|
/>
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Storyshots Orders / Order Discount common modal fixed amount with loading confirm 1`] = `
|
||||||
|
<div
|
||||||
|
style="padding:24px"
|
||||||
|
/>
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Storyshots Orders / Order Discount common modal percentage with existing discount 1`] = `
|
||||||
|
<div
|
||||||
|
style="padding:24px"
|
||||||
|
/>
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`Storyshots Orders / Order Discount common modal percentage without existing discount 1`] = `
|
||||||
|
<div
|
||||||
|
style="padding:24px"
|
||||||
|
/>
|
||||||
|
`;
|
||||||
|
|
||||||
exports[`Storyshots Orders / Order details channel section default 1`] = `
|
exports[`Storyshots Orders / Order details channel section default 1`] = `
|
||||||
<div
|
<div
|
||||||
style="padding:24px"
|
style="padding:24px"
|
||||||
|
@ -14426,7 +14504,7 @@ exports[`Storyshots Orders / OrderHistory default 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -14490,7 +14568,7 @@ exports[`Storyshots Orders / OrderHistory default 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -103817,7 +103895,7 @@ exports[`Storyshots Views / Orders / Order details cancelled 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -103881,7 +103959,7 @@ exports[`Storyshots Views / Orders / Order details cancelled 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -105605,7 +105683,7 @@ exports[`Storyshots Views / Orders / Order details default 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -105669,7 +105747,7 @@ exports[`Storyshots Views / Orders / Order details default 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -107423,7 +107501,7 @@ exports[`Storyshots Views / Orders / Order details fulfilled 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -107487,7 +107565,7 @@ exports[`Storyshots Views / Orders / Order details fulfilled 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -109809,7 +109887,7 @@ exports[`Storyshots Views / Orders / Order details no customer note 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -109873,7 +109951,7 @@ exports[`Storyshots Views / Orders / Order details no customer note 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -111627,7 +111705,7 @@ exports[`Storyshots Views / Orders / Order details no payment 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -111691,7 +111769,7 @@ exports[`Storyshots Views / Orders / Order details no payment 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -113445,7 +113523,7 @@ exports[`Storyshots Views / Orders / Order details no shipping address 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -113509,7 +113587,7 @@ exports[`Storyshots Views / Orders / Order details no shipping address 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -115263,7 +115341,7 @@ exports[`Storyshots Views / Orders / Order details partially fulfilled 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -115327,7 +115405,7 @@ exports[`Storyshots Views / Orders / Order details partially fulfilled 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -117081,7 +117159,7 @@ exports[`Storyshots Views / Orders / Order details payment confirmed 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -117145,7 +117223,7 @@ exports[`Storyshots Views / Orders / Order details payment confirmed 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -118899,7 +118977,7 @@ exports[`Storyshots Views / Orders / Order details payment error 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -118963,7 +119041,7 @@ exports[`Storyshots Views / Orders / Order details payment error 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -120717,7 +120795,7 @@ exports[`Storyshots Views / Orders / Order details pending payment 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -120781,7 +120859,7 @@ exports[`Storyshots Views / Orders / Order details pending payment 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -122535,7 +122613,7 @@ exports[`Storyshots Views / Orders / Order details refunded payment 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -122599,7 +122677,7 @@ exports[`Storyshots Views / Orders / Order details refunded payment 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -124353,7 +124431,7 @@ exports[`Storyshots Views / Orders / Order details rejected payment 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -124417,7 +124495,7 @@ exports[`Storyshots Views / Orders / Order details rejected payment 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -126171,7 +126249,7 @@ exports[`Storyshots Views / Orders / Order details unfulfilled 1`] = `
|
||||||
class="MuiTypography-root-id MuiTypography-body1-id"
|
class="MuiTypography-root-id MuiTypography-body1-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Products refunded
|
Products refunded
|
||||||
</div>
|
</div>
|
||||||
|
@ -126235,7 +126313,7 @@ exports[`Storyshots Views / Orders / Order details unfulfilled 1`] = `
|
||||||
Shipment was refunded
|
Shipment was refunded
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiTypography-root-id OrderHistory-eventSubtitle-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
class="MuiTypography-root-id MuiTypography-caption-id MuiTypography-colorTextSecondary-id"
|
||||||
>
|
>
|
||||||
Transaction reference
|
Transaction reference
|
||||||
</div>
|
</div>
|
||||||
|
@ -126751,7 +126829,7 @@ exports[`Storyshots Views / Orders / Order draft default 1`] = `
|
||||||
>
|
>
|
||||||
<form>
|
<form>
|
||||||
<div
|
<div
|
||||||
class="MuiFormControl-root-id MuiTextField-root-id OrderDraftDetailsProducts-quantityField-id MuiFormControl-fullWidth-id"
|
class="MuiFormControl-root-id MuiTextField-root-id TableLineForm-quantityField-id MuiFormControl-fullWidth-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
||||||
|
@ -126785,12 +126863,16 @@ exports[`Storyshots Views / Orders / Order draft default 1`] = `
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
||||||
>
|
>
|
||||||
$65.95
|
<a
|
||||||
|
class="MuiTypography-root-id Link-root-id Link-primary-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
$168.30
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
||||||
>
|
>
|
||||||
$131.90
|
$336.60
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
||||||
|
@ -126856,7 +126938,7 @@ exports[`Storyshots Views / Orders / Order draft default 1`] = `
|
||||||
>
|
>
|
||||||
<form>
|
<form>
|
||||||
<div
|
<div
|
||||||
class="MuiFormControl-root-id MuiTextField-root-id OrderDraftDetailsProducts-quantityField-id MuiFormControl-fullWidth-id"
|
class="MuiFormControl-root-id MuiTextField-root-id TableLineForm-quantityField-id MuiFormControl-fullWidth-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
||||||
|
@ -126890,12 +126972,16 @@ exports[`Storyshots Views / Orders / Order draft default 1`] = `
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
||||||
>
|
>
|
||||||
$68.20
|
<a
|
||||||
|
class="MuiTypography-root-id Link-root-id Link-primary-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
$168.30
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
||||||
>
|
>
|
||||||
$136.40
|
$336.60
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
||||||
|
@ -126933,6 +127019,22 @@ exports[`Storyshots Views / Orders / Order draft default 1`] = `
|
||||||
class="OrderDraftDetailsSummary-root-id"
|
class="OrderDraftDetailsSummary-root-id"
|
||||||
>
|
>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr
|
||||||
|
class="OrderDraftDetailsSummary-relativeRow-id"
|
||||||
|
>
|
||||||
|
<td>
|
||||||
|
<a
|
||||||
|
class="MuiTypography-root-id Link-root-id Link-primary-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Add Discount
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td
|
||||||
|
class="OrderDraftDetailsSummary-textRight-id"
|
||||||
|
>
|
||||||
|
---
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
Subtotal
|
Subtotal
|
||||||
|
@ -126947,6 +127049,11 @@ exports[`Storyshots Views / Orders / Order draft default 1`] = `
|
||||||
<td>
|
<td>
|
||||||
No applicable shipping carriers
|
No applicable shipping carriers
|
||||||
</td>
|
</td>
|
||||||
|
<td
|
||||||
|
class="OrderDraftDetailsSummary-textRight-id"
|
||||||
|
>
|
||||||
|
---
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
@ -127320,88 +127427,10 @@ exports[`Storyshots Views / Orders / Order draft loading 1`] = `
|
||||||
class="MuiTableRow-root-id"
|
class="MuiTableRow-root-id"
|
||||||
>
|
>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id TableCellAvatar-root-id OrderDraftDetailsProducts-colName-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id"
|
||||||
|
colspan="5"
|
||||||
>
|
>
|
||||||
<div
|
No Products added to Order
|
||||||
class="TableCellAvatar-content-id"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="MuiAvatar-root-id MuiAvatar-circle-id TableCellAvatar-avatar-id MuiAvatar-colorDefault-id"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="MuiSvgIcon-root-id MuiSvgIcon-colorPrimary-id"
|
|
||||||
focusable="false"
|
|
||||||
role="presentation"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="TableCellAvatar-children-id"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td
|
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colQuantity-id"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td
|
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td
|
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td
|
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
class="MuiButtonBase-root-id MuiIconButton-root-id"
|
|
||||||
tabindex="0"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="MuiIconButton-label-id"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="MuiSvgIcon-root-id MuiSvgIcon-colorPrimary-id"
|
|
||||||
focusable="false"
|
|
||||||
role="presentation"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -127409,58 +127438,7 @@ exports[`Storyshots Views / Orders / Order draft loading 1`] = `
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiCardContent-root-id"
|
class="MuiCardContent-root-id"
|
||||||
>
|
/>
|
||||||
<table
|
|
||||||
class="OrderDraftDetailsSummary-root-id"
|
|
||||||
>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td
|
|
||||||
colspan="2"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td
|
|
||||||
colspan="2"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td
|
|
||||||
colspan="2"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td
|
|
||||||
colspan="2"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="Skeleton-skeleton-id"
|
|
||||||
>
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="OrderHistory-root-id"
|
class="OrderHistory-root-id"
|
||||||
|
@ -127827,7 +127805,7 @@ exports[`Storyshots Views / Orders / Order draft no user permissions 1`] = `
|
||||||
>
|
>
|
||||||
<form>
|
<form>
|
||||||
<div
|
<div
|
||||||
class="MuiFormControl-root-id MuiTextField-root-id OrderDraftDetailsProducts-quantityField-id MuiFormControl-fullWidth-id"
|
class="MuiFormControl-root-id MuiTextField-root-id TableLineForm-quantityField-id MuiFormControl-fullWidth-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
||||||
|
@ -127861,12 +127839,16 @@ exports[`Storyshots Views / Orders / Order draft no user permissions 1`] = `
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
||||||
>
|
>
|
||||||
$65.95
|
<a
|
||||||
|
class="MuiTypography-root-id Link-root-id Link-primary-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
$168.30
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
||||||
>
|
>
|
||||||
$131.90
|
$336.60
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
||||||
|
@ -127932,7 +127914,7 @@ exports[`Storyshots Views / Orders / Order draft no user permissions 1`] = `
|
||||||
>
|
>
|
||||||
<form>
|
<form>
|
||||||
<div
|
<div
|
||||||
class="MuiFormControl-root-id MuiTextField-root-id OrderDraftDetailsProducts-quantityField-id MuiFormControl-fullWidth-id"
|
class="MuiFormControl-root-id MuiTextField-root-id TableLineForm-quantityField-id MuiFormControl-fullWidth-id"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id"
|
||||||
|
@ -127966,12 +127948,16 @@ exports[`Storyshots Views / Orders / Order draft no user permissions 1`] = `
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colPrice-id"
|
||||||
>
|
>
|
||||||
$68.20
|
<a
|
||||||
|
class="MuiTypography-root-id Link-root-id Link-primary-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
$168.30
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colTotal-id"
|
||||||
>
|
>
|
||||||
$136.40
|
$336.60
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
class="MuiTableCell-root-id MuiTableCell-body-id OrderDraftDetailsProducts-colAction-id"
|
||||||
|
@ -128009,6 +127995,22 @@ exports[`Storyshots Views / Orders / Order draft no user permissions 1`] = `
|
||||||
class="OrderDraftDetailsSummary-root-id"
|
class="OrderDraftDetailsSummary-root-id"
|
||||||
>
|
>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr
|
||||||
|
class="OrderDraftDetailsSummary-relativeRow-id"
|
||||||
|
>
|
||||||
|
<td>
|
||||||
|
<a
|
||||||
|
class="MuiTypography-root-id Link-root-id Link-primary-id MuiTypography-body1-id"
|
||||||
|
>
|
||||||
|
Add Discount
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td
|
||||||
|
class="OrderDraftDetailsSummary-textRight-id"
|
||||||
|
>
|
||||||
|
---
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
Subtotal
|
Subtotal
|
||||||
|
@ -128023,6 +128025,11 @@ exports[`Storyshots Views / Orders / Order draft no user permissions 1`] = `
|
||||||
<td>
|
<td>
|
||||||
No applicable shipping carriers
|
No applicable shipping carriers
|
||||||
</td>
|
</td>
|
||||||
|
<td
|
||||||
|
class="OrderDraftDetailsSummary-textRight-id"
|
||||||
|
>
|
||||||
|
---
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -115,7 +115,7 @@ function loadStories() {
|
||||||
require("./stories/orders/OrderDetailsPage");
|
require("./stories/orders/OrderDetailsPage");
|
||||||
require("./stories/orders/OrderDraftCancelDialog");
|
require("./stories/orders/OrderDraftCancelDialog");
|
||||||
require("./stories/orders/OrderDraftListPage");
|
require("./stories/orders/OrderDraftListPage");
|
||||||
require("./stories/orders/OrderDraftPage");
|
require("./stories/orders/OrderDraftPage/OrderDraftPage");
|
||||||
require("./stories/orders/OrderFulfillmentCancelDialog");
|
require("./stories/orders/OrderFulfillmentCancelDialog");
|
||||||
require("./stories/orders/OrderFulfillmentDialog");
|
require("./stories/orders/OrderFulfillmentDialog");
|
||||||
require("./stories/orders/OrderFulfillmentTrackingDialog");
|
require("./stories/orders/OrderFulfillmentTrackingDialog");
|
||||||
|
|
|
@ -6,9 +6,10 @@ import React from "react";
|
||||||
|
|
||||||
import OrderDraftPage, {
|
import OrderDraftPage, {
|
||||||
OrderDraftPageProps
|
OrderDraftPageProps
|
||||||
} from "../../../orders/components/OrderDraftPage";
|
} from "../../../../orders/components/OrderDraftPage";
|
||||||
import { clients, countries, draftOrder } from "../../../orders/fixtures";
|
import { clients, countries, draftOrder } from "../../../../orders/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../../Decorator";
|
||||||
|
import { getDiscountsProvidersWrapper } from "./utils";
|
||||||
|
|
||||||
const order = draftOrder(placeholderImage);
|
const order = draftOrder(placeholderImage);
|
||||||
|
|
||||||
|
@ -37,8 +38,11 @@ const props: Omit<OrderDraftPageProps, "classes"> = {
|
||||||
usersLoading: false
|
usersLoading: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const DiscountsDecorator = getDiscountsProvidersWrapper(order);
|
||||||
|
|
||||||
storiesOf("Views / Orders / Order draft", module)
|
storiesOf("Views / Orders / Order draft", module)
|
||||||
.addDecorator(Decorator)
|
.addDecorator(Decorator)
|
||||||
|
.addDecorator(DiscountsDecorator)
|
||||||
.add("default", () => <OrderDraftPage {...props} />)
|
.add("default", () => <OrderDraftPage {...props} />)
|
||||||
.add("loading", () => (
|
.add("loading", () => (
|
||||||
<OrderDraftPage {...props} disabled={true} order={undefined} />
|
<OrderDraftPage {...props} disabled={true} order={undefined} />
|
66
src/storybook/stories/orders/OrderDraftPage/utils.tsx
Normal file
66
src/storybook/stories/orders/OrderDraftPage/utils.tsx
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||||
|
import { OrderDetails_order } from "@saleor/orders/types/OrderDetails";
|
||||||
|
import {
|
||||||
|
OrderDiscountContext,
|
||||||
|
OrderDiscountContextConsumerProps
|
||||||
|
} from "@saleor/products/components/OrderDiscountProviders/OrderDiscountProvider";
|
||||||
|
import {
|
||||||
|
OrderLineDiscountContext,
|
||||||
|
OrderLineDiscountContextConsumerProps
|
||||||
|
} from "@saleor/products/components/OrderDiscountProviders/OrderLineDiscountProvider";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export const getDiscountsProvidersWrapper = (order: OrderDetails_order) => {
|
||||||
|
const mockedCommonDiscountProviderValues = {
|
||||||
|
openDialog: () => {},
|
||||||
|
closeDialog: () => {},
|
||||||
|
isDialogOpen: false,
|
||||||
|
undiscountedPrice: order.total.gross,
|
||||||
|
discountedPrice: order.total.gross
|
||||||
|
};
|
||||||
|
|
||||||
|
const MockOrderDiscountProvider = ({ children }) => {
|
||||||
|
const mockedOrderDiscountProviderValues: OrderDiscountContextConsumerProps = {
|
||||||
|
...mockedCommonDiscountProviderValues,
|
||||||
|
orderDiscountAddStatus: "default",
|
||||||
|
orderDiscountRemoveStatus: "default",
|
||||||
|
orderDiscount: null,
|
||||||
|
addOrderDiscount: () => {},
|
||||||
|
removeOrderDiscount: () => {}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<OrderDiscountContext.Provider value={mockedOrderDiscountProviderValues}>
|
||||||
|
{children}
|
||||||
|
</OrderDiscountContext.Provider>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const MockOrderLineDiscountProvider = ({ children }) => {
|
||||||
|
const mockedOrderDiscountProviderValues = (): OrderLineDiscountContextConsumerProps => ({
|
||||||
|
...mockedCommonDiscountProviderValues,
|
||||||
|
addOrderLineDiscount: () => {},
|
||||||
|
removeOrderLineDiscount: () => {},
|
||||||
|
orderLineDiscount: null,
|
||||||
|
orderLineDiscountUpdateStatus: "default",
|
||||||
|
orderLineDiscountRemoveStatus: "default"
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<OrderLineDiscountContext.Provider
|
||||||
|
value={mockedOrderDiscountProviderValues}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</OrderLineDiscountContext.Provider>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const DiscountWrapper = storyFn => (
|
||||||
|
<MockOrderDiscountProvider>
|
||||||
|
<MockOrderLineDiscountProvider>{storyFn()}</MockOrderLineDiscountProvider>
|
||||||
|
</MockOrderDiscountProvider>
|
||||||
|
);
|
||||||
|
|
||||||
|
return DiscountWrapper;
|
||||||
|
};
|
33
src/theme.ts
33
src/theme.ts
|
@ -2,6 +2,11 @@ import Card from "@material-ui/core/Card";
|
||||||
import Checkbox from "@material-ui/core/Checkbox";
|
import Checkbox from "@material-ui/core/Checkbox";
|
||||||
import { createMuiTheme, Theme } from "@material-ui/core/styles";
|
import { createMuiTheme, Theme } from "@material-ui/core/styles";
|
||||||
import { darken, fade } from "@material-ui/core/styles/colorManipulator";
|
import { darken, fade } from "@material-ui/core/styles/colorManipulator";
|
||||||
|
import { ThemeOptions } from "@material-ui/core/styles/createMuiTheme";
|
||||||
|
import {
|
||||||
|
Palette,
|
||||||
|
PaletteOptions
|
||||||
|
} from "@material-ui/core/styles/createPalette";
|
||||||
import { Overrides } from "@material-ui/core/styles/overrides";
|
import { Overrides } from "@material-ui/core/styles/overrides";
|
||||||
import TextField from "@material-ui/core/TextField";
|
import TextField from "@material-ui/core/TextField";
|
||||||
import Typography from "@material-ui/core/Typography";
|
import Typography from "@material-ui/core/Typography";
|
||||||
|
@ -23,6 +28,25 @@ export const ICONBUTTON_SIZE = 48;
|
||||||
|
|
||||||
const fontFamily = '"Inter", "roboto", "sans-serif"';
|
const fontFamily = '"Inter", "roboto", "sans-serif"';
|
||||||
|
|
||||||
|
export interface ITheme extends Theme {
|
||||||
|
palette: IPalette;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IThemeOptions extends ThemeOptions {
|
||||||
|
palette: IPaletteOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IPalette extends Palette, ExtraPaletteOptions {}
|
||||||
|
|
||||||
|
interface IPaletteOptions extends PaletteOptions, ExtraPaletteOptions {}
|
||||||
|
|
||||||
|
interface ExtraPaletteOptions {
|
||||||
|
textHighlighted?: {
|
||||||
|
active: string;
|
||||||
|
inactive: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const inputOverrides = (colors: IThemeColors): Overrides => ({
|
const inputOverrides = (colors: IThemeColors): Overrides => ({
|
||||||
MuiInput: {
|
MuiInput: {
|
||||||
input: {
|
input: {
|
||||||
|
@ -177,7 +201,8 @@ const inputOverrides = (colors: IThemeColors): Overrides => ({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const createTheme = (colors: IThemeColors): Theme =>
|
|
||||||
|
const createTheme = (colors: IThemeColors): ITheme =>
|
||||||
createMuiTheme({
|
createMuiTheme({
|
||||||
overrides: {
|
overrides: {
|
||||||
...inputOverrides(colors),
|
...inputOverrides(colors),
|
||||||
|
@ -517,6 +542,10 @@ const createTheme = (colors: IThemeColors): Theme =>
|
||||||
primary: colors.font.default,
|
primary: colors.font.default,
|
||||||
secondary: colors.font.gray
|
secondary: colors.font.gray
|
||||||
},
|
},
|
||||||
|
textHighlighted: {
|
||||||
|
active: colors.primary,
|
||||||
|
inactive: colors.highlightInactive.default
|
||||||
|
},
|
||||||
type: colors.theme
|
type: colors.theme
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -566,7 +595,7 @@ const createTheme = (colors: IThemeColors): Theme =>
|
||||||
fontSize: "1.3125rem"
|
fontSize: "1.3125rem"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
} as IThemeOptions);
|
||||||
|
|
||||||
TextField.defaultProps = {
|
TextField.defaultProps = {
|
||||||
...TextField.defaultProps,
|
...TextField.defaultProps,
|
||||||
|
|
|
@ -562,11 +562,17 @@ export enum OrderDirection {
|
||||||
DESC = "DESC",
|
DESC = "DESC",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum OrderDiscountType {
|
||||||
|
MANUAL = "MANUAL",
|
||||||
|
VOUCHER = "VOUCHER",
|
||||||
|
}
|
||||||
|
|
||||||
export enum OrderErrorCode {
|
export enum OrderErrorCode {
|
||||||
BILLING_ADDRESS_NOT_SET = "BILLING_ADDRESS_NOT_SET",
|
BILLING_ADDRESS_NOT_SET = "BILLING_ADDRESS_NOT_SET",
|
||||||
CANNOT_CANCEL_FULFILLMENT = "CANNOT_CANCEL_FULFILLMENT",
|
CANNOT_CANCEL_FULFILLMENT = "CANNOT_CANCEL_FULFILLMENT",
|
||||||
CANNOT_CANCEL_ORDER = "CANNOT_CANCEL_ORDER",
|
CANNOT_CANCEL_ORDER = "CANNOT_CANCEL_ORDER",
|
||||||
CANNOT_DELETE = "CANNOT_DELETE",
|
CANNOT_DELETE = "CANNOT_DELETE",
|
||||||
|
CANNOT_DISCOUNT = "CANNOT_DISCOUNT",
|
||||||
CANNOT_REFUND = "CANNOT_REFUND",
|
CANNOT_REFUND = "CANNOT_REFUND",
|
||||||
CAPTURE_INACTIVE_PAYMENT = "CAPTURE_INACTIVE_PAYMENT",
|
CAPTURE_INACTIVE_PAYMENT = "CAPTURE_INACTIVE_PAYMENT",
|
||||||
CHANNEL_INACTIVE = "CHANNEL_INACTIVE",
|
CHANNEL_INACTIVE = "CHANNEL_INACTIVE",
|
||||||
|
@ -625,7 +631,13 @@ export enum OrderEventsEnum {
|
||||||
INVOICE_SENT = "INVOICE_SENT",
|
INVOICE_SENT = "INVOICE_SENT",
|
||||||
INVOICE_UPDATED = "INVOICE_UPDATED",
|
INVOICE_UPDATED = "INVOICE_UPDATED",
|
||||||
NOTE_ADDED = "NOTE_ADDED",
|
NOTE_ADDED = "NOTE_ADDED",
|
||||||
|
ORDER_DISCOUNT_ADDED = "ORDER_DISCOUNT_ADDED",
|
||||||
|
ORDER_DISCOUNT_AUTOMATICALLY_UPDATED = "ORDER_DISCOUNT_AUTOMATICALLY_UPDATED",
|
||||||
|
ORDER_DISCOUNT_DELETED = "ORDER_DISCOUNT_DELETED",
|
||||||
|
ORDER_DISCOUNT_UPDATED = "ORDER_DISCOUNT_UPDATED",
|
||||||
ORDER_FULLY_PAID = "ORDER_FULLY_PAID",
|
ORDER_FULLY_PAID = "ORDER_FULLY_PAID",
|
||||||
|
ORDER_LINE_DISCOUNT_REMOVED = "ORDER_LINE_DISCOUNT_REMOVED",
|
||||||
|
ORDER_LINE_DISCOUNT_UPDATED = "ORDER_LINE_DISCOUNT_UPDATED",
|
||||||
ORDER_MARKED_AS_PAID = "ORDER_MARKED_AS_PAID",
|
ORDER_MARKED_AS_PAID = "ORDER_MARKED_AS_PAID",
|
||||||
ORDER_REPLACEMENT_CREATED = "ORDER_REPLACEMENT_CREATED",
|
ORDER_REPLACEMENT_CREATED = "ORDER_REPLACEMENT_CREATED",
|
||||||
OTHER = "OTHER",
|
OTHER = "OTHER",
|
||||||
|
@ -1337,6 +1349,12 @@ export interface OrderAddNoteInput {
|
||||||
message: string;
|
message: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OrderDiscountCommonInput {
|
||||||
|
valueType: DiscountValueTypeEnum;
|
||||||
|
value: any;
|
||||||
|
reason?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OrderDraftFilterInput {
|
export interface OrderDraftFilterInput {
|
||||||
customer?: string | null;
|
customer?: string | null;
|
||||||
created?: DateRangeInput | null;
|
created?: DateRangeInput | null;
|
||||||
|
|
Loading…
Reference in a new issue