Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tslint issues
Krzysztof Bialoglowicz7879f10386b2
diff --git a/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsx b/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsxindex 7c0a1a6ed2..b329a034cd 100644--- a/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsx+++ b/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsx@@ -71,9 +71,7 @@ const DiscountCategories = withStyles(styles, {}: DiscountCategoriesProps & WithStyles<typeof styles>) => (<Card><CardTitle- title={i18n.t("Categories assigned to {{ saleName }}", {- saleName: maybe(() => sale.name)- })}+ title={i18n.t("Eligible Categories")}toolbar={<Button color="primary" onClick={onCategoryAssign}>{i18n.t("Assign categories")}diff --git a/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx b/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsxindex e5b0eff8a1..af63f758c7 100644--- a/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx+++ b/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx@@ -71,9 +71,7 @@ const DiscountCollections = withStyles(styles, {}: DiscountCollectionsProps & WithStyles<typeof styles>) => (<Card><CardTitle- title={i18n.t("Collections assigned to {{ saleName }}", {- saleName: maybe(() => sale.name)- })}+ title={i18n.t("Eligible Collections")}toolbar={<Button color="primary" onClick={onCollectionAssign}>{i18n.t("Assign collections")}diff --git a/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsx b/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsxindex 5fe3933958..b3817e6b2c 100644--- a/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsx+++ b/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsx@@ -79,9 +79,7 @@ const DiscountProducts = withStyles(styles, {}: SaleProductsProps & WithStyles<typeof styles>) => (<Card><CardTitle- title={i18n.t("Products assigned to {{ saleName }}", {- saleName: maybe(() => sale.name)- })}+ title={i18n.t("Eligible Products")}toolbar={<Button color="primary" onClick={onProductAssign}>{i18n.t("Assign products")}diff --git a/saleor/static/dashboard-next/discounts/components/VoucherCreatePage/VoucherCreatePage.tsx b/saleor/static/dashboard-next/discounts/components/VoucherCreatePage/VoucherCreatePage.tsxindex 51d7ceb601..b2be131489 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherCreatePage/VoucherCreatePage.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherCreatePage/VoucherCreatePage.tsx@@ -25,9 +25,10 @@ export interface FormData {code: string;discountType: VoucherDiscountValueType;endDate: string;+ endTime: string;minAmountSpent: number;- name: string;startDate: string;+ startTime: string;type: VoucherType;usageLimit: number;value: number;@@ -55,9 +56,10 @@ const VoucherCreatePage: React.StatelessComponent<VoucherCreatePageProps> = ({code: "",discountType: VoucherDiscountValueType.FIXED,endDate: "",+ endTime: "",minAmountSpent: 0,- name: "",startDate: "",+ startTime: "",type: VoucherType.ENTIRE_ORDER,usageLimit: 0,value: 0diff --git a/saleor/static/dashboard-next/discounts/components/VoucherDates/VoucherDates.tsx b/saleor/static/dashboard-next/discounts/components/VoucherDates/VoucherDates.tsxindex 73c8a7c7ad..852b4fcc45 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherDates/VoucherDates.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherDates/VoucherDates.tsx@@ -7,7 +7,6 @@ import {WithStyles} from "@material-ui/core/styles";import TextField from "@material-ui/core/TextField";-import * as moment from "moment-timezone";import * as React from "react";import CardTitle from "@saleor/components/CardTitle";@@ -20,14 +19,7 @@ interface VoucherDatesProps {data: FormData;defaultCurrency: string;disabled: boolean;- errors: FormErrors<- | "discountType"- | "discountValue"- | "endDate"- | "minAmountSpent"- | "startDate"- | "usageLimit"- >;+ errors: FormErrors<"endDate" | "startDate">;onChange: (event: React.ChangeEvent<any>) => void;}@@ -53,8 +45,6 @@ const VoucherDates = withStyles(styles, {const [showEndDate, setshowEndDate] = React.useState(false);const handleOnChange = () => setshowEndDate(!showEndDate);- console.log(data);-return (<Card><CardTitle title={i18n.t("Active Dates")} />diff --git a/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsx b/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsxindex 039b0bd7e8..f5ea3d7e6e 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherDetailsPage/VoucherDetailsPage.tsx@@ -170,10 +170,7 @@ const VoucherDetailsPage: React.StatelessComponent<VoucherDetailsPageProps> = ({/>) : null}<CardSpacer />- {data.type === VoucherType.CATEGORY ||- data.type === VoucherType.COLLECTION ||- data.type === VoucherType.PRODUCT ||- data.type === VoucherType.SPECIFIC_PRODUCT ? (+ {data.type === VoucherType.SPECIFIC_PRODUCT ? (<><TabContainer><CategoriesTab@@ -268,9 +265,7 @@ const VoucherDetailsPage: React.StatelessComponent<VoucherDetailsPageProps> = ({emptyText={i18n.t("Voucher applies to all countries")}title={<>- {i18n.t("Countries assigned to {{ voucherName }}", {- voucherName: maybe(() => voucher.name)- })}+ {i18n.t("Countries")}<Typography variant="caption">{i18n.t("Vouchers limited to these countries")}</Typography>diff --git a/saleor/static/dashboard-next/discounts/components/VoucherList/VoucherList.tsx b/saleor/static/dashboard-next/discounts/components/VoucherList/VoucherList.tsxindex a5e53dfeb7..31fd16af7e 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherList/VoucherList.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherList/VoucherList.tsx@@ -102,7 +102,7 @@ const VoucherList = withStyles(styles, {toolbar={toolbar}><TableCell className={classes.colName}>- {i18n.t("Name", {+ {i18n.t("Code", {context: "voucher list table header"})}</TableCell>@@ -167,7 +167,7 @@ const VoucherList = withStyles(styles, {/></TableCell><TableCell className={classes.colName}>- {maybe<React.ReactNode>(() => voucher.name, <Skeleton />)}+ {maybe<React.ReactNode>(() => voucher.code, <Skeleton />)}</TableCell><TableCell className={classes.colMinSpent}>{voucher && voucher.minAmountSpent ? (diff --git a/saleor/static/dashboard-next/discounts/components/VoucherValue/VoucherValue.tsx b/saleor/static/dashboard-next/discounts/components/VoucherValue/VoucherValue.tsxindex 9930db3ff3..c1e3e222b9 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherValue/VoucherValue.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherValue/VoucherValue.tsx@@ -24,12 +24,12 @@ import { FormData } from "../VoucherDetailsPage";interface VoucherValueProps {data: FormData;defaultCurrency: string;- errors: FormErrors<"name" | "code" | "type">;+ errors: FormErrors<"discountValue" | "type">;disabled: boolean;onChange: (event: React.ChangeEvent<any>) => void;}-const enum VoucherTypeEnum {+enum VoucherTypeEnum {ENTIRE_ORDER = "ENTIRE_ORDER",SHIPPING = "SHIPPING",SPECIFIC_PRODUCT = "SPECIFIC_PRODUCT"diff --git a/saleor/static/dashboard-next/discounts/fixtures.ts b/saleor/static/dashboard-next/discounts/fixtures.tsindex e84117d133..43df70b5cc 100644--- a/saleor/static/dashboard-next/discounts/fixtures.ts+++ b/saleor/static/dashboard-next/discounts/fixtures.ts@@ -60,6 +60,7 @@ export const saleList: SaleList_sales_edges_node[] = [export const voucherList: VoucherList_vouchers_edges_node[] = [{__typename: "Voucher" as "Voucher",+ code: "FREE2019",countries: [{__typename: "CountryDisplay",@@ -72,12 +73,12 @@ export const voucherList: VoucherList_vouchers_edges_node[] = [endDate: null,id: "Vm91Y2hlcjox",minAmountSpent: null,- name: "Free shipping",startDate: "2019-01-03",usageLimit: null},{__typename: "Voucher" as "Voucher",+ code: "FREE2020",countries: [],discountValue: 25,discountValueType: "FIXED" as VoucherDiscountValueType,@@ -88,7 +89,6 @@ export const voucherList: VoucherList_vouchers_edges_node[] = [amount: 200,currency: "USD"},- name: "Big order discount",startDate: "2019-01-03",usageLimit: 150}@@ -283,7 +283,6 @@ export const voucherDetails: VoucherDetails_voucher = {amount: 200,currency: "USD"},- name: "Big order discount",products: {__typename: "ProductCountableConnection",edges: [],diff --git a/saleor/static/dashboard-next/discounts/queries.ts b/saleor/static/dashboard-next/discounts/queries.tsindex dcb3a8dd12..a20f3cfd0b 100644--- a/saleor/static/dashboard-next/discounts/queries.ts+++ b/saleor/static/dashboard-next/discounts/queries.ts@@ -81,6 +81,7 @@ export const saleDetailsFragment = gql`export const voucherFragment = gql`fragment VoucherFragment on Voucher {id+ codestartDateendDateusageLimitdiff --git a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.ts b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.tsindex b213b520ec..97a93d380c 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.ts@@ -133,6 +133,7 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher_categories {export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;@@ -141,7 +142,6 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher {countries: (VoucherCataloguesAdd_voucherCataloguesAdd_voucher_countries | null)[] | null;minAmountSpent: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_minAmountSpent | null;type: VoucherType;- code: string;used: number;applyOncePerOrder: boolean;products: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.ts b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.tsindex 4917526505..492b43de6f 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.ts@@ -133,6 +133,7 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher_categorexport interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;@@ -141,7 +142,6 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher {countries: (VoucherCataloguesRemove_voucherCataloguesRemove_voucher_countries | null)[] | null;minAmountSpent: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_minAmountSpent | null;type: VoucherType;- code: string;used: number;applyOncePerOrder: boolean;products: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_products | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherCreate.ts b/saleor/static/dashboard-next/discounts/types/VoucherCreate.tsindex 8898363bd8..bd9ac49765 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherCreate.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherCreate.ts@@ -29,6 +29,7 @@ export interface VoucherCreate_voucherCreate_voucher_minAmountSpent {export interface VoucherCreate_voucherCreate_voucher {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherDetails.ts b/saleor/static/dashboard-next/discounts/types/VoucherDetails.tsindex 6b9c8a2191..090719861b 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherDetails.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherDetails.ts@@ -127,6 +127,7 @@ export interface VoucherDetails_voucher_categories {export interface VoucherDetails_voucher {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;@@ -135,7 +136,6 @@ export interface VoucherDetails_voucher {countries: (VoucherDetails_voucher_countries | null)[] | null;minAmountSpent: VoucherDetails_voucher_minAmountSpent | null;type: VoucherType;- code: string;used: number;applyOncePerOrder: boolean;products: VoucherDetails_voucher_products | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.ts b/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.tsindex 9ef357ee01..4af8ce71d2 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.ts@@ -127,6 +127,7 @@ export interface VoucherDetailsFragment_categories {export interface VoucherDetailsFragment {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;@@ -135,7 +136,6 @@ export interface VoucherDetailsFragment {countries: (VoucherDetailsFragment_countries | null)[] | null;minAmountSpent: VoucherDetailsFragment_minAmountSpent | null;type: VoucherType;- code: string;used: number;applyOncePerOrder: boolean;products: VoucherDetailsFragment_products | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherFragment.ts b/saleor/static/dashboard-next/discounts/types/VoucherFragment.tsindex 643e023443..54a6179216 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherFragment.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherFragment.ts@@ -23,6 +23,7 @@ export interface VoucherFragment_minAmountSpent {export interface VoucherFragment {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherList.ts b/saleor/static/dashboard-next/discounts/types/VoucherList.tsindex 648ff87971..954357a4df 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherList.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherList.ts@@ -23,6 +23,7 @@ export interface VoucherList_vouchers_edges_node_minAmountSpent {export interface VoucherList_vouchers_edges_node {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherUpdate.ts b/saleor/static/dashboard-next/discounts/types/VoucherUpdate.tsindex 8f221a8ac5..cc6be9e1d7 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherUpdate.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherUpdate.ts@@ -29,6 +29,7 @@ export interface VoucherUpdate_voucherUpdate_voucher_minAmountSpent {export interface VoucherUpdate_voucherUpdate_voucher {__typename: "Voucher";id: string;+ code: string;startDate: any;endDate: any | null;usageLimit: number | null;diff --git a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsxindex 331a6a6dbd..77322e9ca8 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx@@ -69,7 +69,6 @@ export const VoucherDetails: React.StatelessComponent = () => {endDate:formData.endDate === "" ? null : formData.endDate,minAmountSpent: formData.minAmountSpent,- name: formData.name,startDate:formData.startDate === "" ? null : formData.startDate,type: VoucherTypeEnum[formData.type]diff --git a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsxindex 726d1f8ec8..370d7c3d16 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx@@ -1,6 +1,5 @@import Button from "@material-ui/core/Button";import DialogContentText from "@material-ui/core/DialogContentText";-import moment from "moment-timezone";import React from "react";import ActionDialog from "@saleor/components/ActionDialog";@@ -22,14 +21,8 @@ import SearchCategories from "../../containers/SearchCategories";import SearchCollections from "../../containers/SearchCollections";import SearchProducts from "../../containers/SearchProducts";import i18n from "../../i18n";-import { decimal, getMutationState, maybe, connectDateTime } from "../../misc";+import { connectDateTime, decimal, getMutationState, maybe } from "../../misc";import { productUrl } from "../../products/urls";-import {- DiscountValueTypeEnum,- VoucherDiscountValueType,- VoucherType,- VoucherTypeEnum-} from "../../types/globalTypes";import DiscountCountrySelectDialog from "../components/DiscountCountrySelectDialog";import VoucherDetailsPage, {VoucherDetailsPageTab@@ -314,12 +307,6 @@ export const VoucherDetails: React.StatelessComponent<VoucherDetailsProps> = ({onBack={() => navigate(voucherListUrl())}onTabClick={changeTab}onSubmit={formData => {- console.log(- connectDateTime(- formData.endDate,- formData.endTime- )- );voucherUpdate({variables: {id,@@ -597,10 +584,10 @@ export const VoucherDetails: React.StatelessComponent<VoucherDetailsProps> = ({<DialogContentTextdangerouslySetInnerHTML={{__html: i18n.t(- "Are you sure you want to remove <strong>{{ voucherName }}</strong>?",+ "Are you sure you want to remove <strong>{{ voucherCode }}</strong>?",{- voucherName: maybe(- () => data.voucher.name,+ voucherCode: maybe(+ () => data.voucher.code,"...")}diff --git a/saleor/static/dashboard-next/misc.ts b/saleor/static/dashboard-next/misc.tsindex f997adc60f..35c7470147 100644--- a/saleor/static/dashboard-next/misc.ts+++ b/saleor/static/dashboard-next/misc.ts@@ -238,18 +238,21 @@ export function stopPropagation(cb: () => void) {}export function connectDateTime(date: string, time?: string) {- if (!date) return null;+ if (!date) {+ return null;+ }const setTime = time || "00:00";const dateTime = moment(date + " " + setTime).format();return dateTime;}export function splitDateTime(dateTime: string) {- if (!dateTime)+ if (!dateTime) {return {date: "",time: ""};+ }const splitDateTime = moment(dateTime).format("YYYY-MM-DD HH:mm").split(" ");diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex 1fbe5e1e4d..9648d426c6 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -8,27 +8,28 @@export enum AddressTypeEnum {BILLING = "BILLING",- SHIPPING = "SHIPPING",+ SHIPPING = "SHIPPING"}export enum AttributeTypeEnum {PRODUCT = "PRODUCT",- VARIANT = "VARIANT",+ VARIANT = "VARIANT"}export enum AuthorizationKeyType {FACEBOOK = "FACEBOOK",- GOOGLE_OAUTH2 = "GOOGLE_OAUTH2",+ GOOGLE_OAUTH2 = "GOOGLE_OAUTH2"}export enum DiscountValueTypeEnum {FIXED = "FIXED",PERCENTAGE = "PERCENTAGE",+ SHIPPING = "SHIPPING"}export enum FulfillmentStatus {CANCELED = "CANCELED",- FULFILLED = "FULFILLED",+ FULFILLED = "FULFILLED"}export enum LanguageCodeEnum {@@ -72,14 +73,14 @@ export enum LanguageCodeEnum {UK = "UK",VI = "VI",ZH_HANS = "ZH_HANS",- ZH_HANT = "ZH_HANT",+ ZH_HANT = "ZH_HANT"}export enum OrderAction {CAPTURE = "CAPTURE",MARK_AS_PAID = "MARK_AS_PAID",REFUND = "REFUND",- VOID = "VOID",+ VOID = "VOID"}export enum OrderEventsEmailsEnum {@@ -88,7 +89,7 @@ export enum OrderEventsEmailsEnum {ORDER_CONFIRMATION = "ORDER_CONFIRMATION",PAYMENT_CONFIRMATION = "PAYMENT_CONFIRMATION",SHIPPING_CONFIRMATION = "SHIPPING_CONFIRMATION",- TRACKING_UPDATED = "TRACKING_UPDATED",+ TRACKING_UPDATED = "TRACKING_UPDATED"}export enum OrderEventsEnum {@@ -112,7 +113,7 @@ export enum OrderEventsEnum {PLACED = "PLACED",PLACED_FROM_DRAFT = "PLACED_FROM_DRAFT",TRACKING_UPDATED = "TRACKING_UPDATED",- UPDATED_ADDRESS = "UPDATED_ADDRESS",+ UPDATED_ADDRESS = "UPDATED_ADDRESS"}export enum OrderStatus {@@ -120,7 +121,7 @@ export enum OrderStatus {DRAFT = "DRAFT",FULFILLED = "FULFILLED",PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",- UNFULFILLED = "UNFULFILLED",+ UNFULFILLED = "UNFULFILLED"}export enum OrderStatusFilter {@@ -129,7 +130,7 @@ export enum OrderStatusFilter {PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",READY_TO_CAPTURE = "READY_TO_CAPTURE",READY_TO_FULFILL = "READY_TO_FULFILL",- UNFULFILLED = "UNFULFILLED",+ UNFULFILLED = "UNFULFILLED"}export enum PaymentChargeStatusEnum {@@ -137,7 +138,7 @@ export enum PaymentChargeStatusEnum {FULLY_REFUNDED = "FULLY_REFUNDED",NOT_CHARGED = "NOT_CHARGED",PARTIALLY_CHARGED = "PARTIALLY_CHARGED",- PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED"}export enum PermissionEnum {@@ -152,22 +153,22 @@ export enum PermissionEnum {MANAGE_SHIPPING = "MANAGE_SHIPPING",MANAGE_STAFF = "MANAGE_STAFF",MANAGE_TRANSLATIONS = "MANAGE_TRANSLATIONS",- MANAGE_USERS = "MANAGE_USERS",+ MANAGE_USERS = "MANAGE_USERS"}export enum SaleType {FIXED = "FIXED",- PERCENTAGE = "PERCENTAGE",+ PERCENTAGE = "PERCENTAGE"}export enum ShippingMethodTypeEnum {PRICE = "PRICE",- WEIGHT = "WEIGHT",+ WEIGHT = "WEIGHT"}export enum StockAvailability {IN_STOCK = "IN_STOCK",- OUT_OF_STOCK = "OUT_OF_STOCK",+ OUT_OF_STOCK = "OUT_OF_STOCK"}export enum TaxRateType {@@ -195,12 +196,13 @@ export enum TaxRateType {SOCIAL_HOUSING = "SOCIAL_HOUSING",STANDARD = "STANDARD",WATER = "WATER",- WINE = "WINE",+ WINE = "WINE"}export enum VoucherDiscountValueType {FIXED = "FIXED",PERCENTAGE = "PERCENTAGE",+ SHIPPING = "SHIPPING"}export enum VoucherType {@@ -209,7 +211,7 @@ export enum VoucherType {ENTIRE_ORDER = "ENTIRE_ORDER",PRODUCT = "PRODUCT",SHIPPING = "SHIPPING",- SPECIFIC_PRODUCT = "SPECIFIC_PRODUCT",+ SPECIFIC_PRODUCT = "SPECIFIC_PRODUCT"}export enum VoucherTypeEnum {@@ -219,14 +221,14 @@ export enum VoucherTypeEnum {PRODUCT = "PRODUCT",SHIPPING = "SHIPPING",SPECIFIC_PRODUCT = "SPECIFIC_PRODUCT",- VALUE = "VALUE",+ VALUE = "VALUE"}export enum WeightUnitsEnum {G = "G",KG = "KG",LB = "LB",- OZ = "OZ",+ OZ = "OZ"}export interface AddressInput {