From b75e523a4f977a084e532785884b1b54802c2616 Mon Sep 17 00:00:00 2001 From: Veselov Date: Thu, 24 Jul 2025 01:51:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20=D0=BD=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B8=D0=BD=D1=82?= =?UTF-8?q?=D0=B5=D1=80=D1=86=D0=B5=D0=BF=D1=82=D0=BE=D1=80=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B8=D0=BB=20=D1=81?= =?UTF-8?q?=D0=B2=D0=B0=D0=B3=D0=B3=D0=B5=D1=80=20=D0=BD=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=81=D0=BD=D0=BE=D0=B2=D0=B5=20WooCommerce=20v3,=20=D0=B4?= =?UTF-8?q?=D0=BE=20=D1=8D=D1=82=D0=BE=D0=B3=D0=BE=20=D0=B1=D1=8B=D0=BB=20?= =?UTF-8?q?=D1=81=D0=B2=D0=B0=D0=B3=D0=B5=D1=80=20=D0=BD=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=81=D0=BD=D0=BE=D0=B2=D0=B5=20WordPress=20v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/Api.ts | 21332 +++++++++++++++--------------- api/endpoints/getProductList.ts | 2 +- api/instance.ts | 26 +- 3 files changed, 10943 insertions(+), 10417 deletions(-) diff --git a/api/Api.ts b/api/Api.ts index dd9baa2..ae65d4c 100644 --- a/api/Api.ts +++ b/api/Api.ts @@ -11,1528 +11,1898 @@ */ /** @default "view" */ -export enum IV2PostsListParamsContextEnum { +export enum IV3ProductsBrandsListParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } -export enum IV2PostsListParamsSearchSemanticsEnum { - Exact = "exact", +/** @default "asc" */ +export enum IV3ProductsBrandsListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "name" */ +export enum IV3ProductsBrandsListParamsOrderbyEnum { + Id = "id", + Include = "include", + Name = "name", + Slug = "slug", + TermGroup = "term_group", + Description = "description", + Count = "count", +} + +/** @default "default" */ +export enum IDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +/** @default "view" */ +export enum IV3ProductsBrandsDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +export enum IDisplayEnum1 { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsBrandsUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsBrandsPartialUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IDisplayEnum2 { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsBrandsBatchUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsBrandsBatchPartialUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +/** @default "view" */ +export enum IV3CouponsListParamsContextEnum { + View = "view", + Edit = "edit", } /** @default "desc" */ -export enum IV2PostsListParamsOrderEnum { +export enum IV3CouponsListParamsOrderEnum { Asc = "asc", Desc = "desc", } /** @default "date" */ -export enum IV2PostsListParamsOrderbyEnum { - Author = "author", +export enum IV3CouponsListParamsOrderbyEnum { Date = "date", Id = "id", Include = "include", - Modified = "modified", - Parent = "parent", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", Title = "title", + Slug = "slug", + Modified = "modified", } -export enum IV2PostsListParamsTaxRelationEnum { - AND = "AND", - OR = "OR", -} - -export enum IStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IFormatEnum { - Standard = "standard", - Aside = "aside", - Chat = "chat", - Gallery = "gallery", - Link = "link", - Image = "image", - Quote = "quote", - Status = "status", - Video = "video", - Audio = "audio", +/** @default "fixed_cart" */ +export enum IDiscountTypeEnum { + Percent = "percent", + FixedCart = "fixed_cart", + FixedProduct = "fixed_product", } /** @default "view" */ -export enum IV2PostsDetailParamsContextEnum { +export enum IV3CouponsDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +export enum IDiscountTypeEnum1 { + Percent = "percent", + FixedCart = "fixed_cart", + FixedProduct = "fixed_product", +} + +export enum IV3CouponsUpdateParamsDiscountTypeEnum { + Percent = "percent", + FixedCart = "fixed_cart", + FixedProduct = "fixed_product", +} + +export enum IV3CouponsPartialUpdateParamsDiscountTypeEnum { + Percent = "percent", + FixedCart = "fixed_cart", + FixedProduct = "fixed_product", +} + +export enum IDiscountTypeEnum2 { + Percent = "percent", + FixedCart = "fixed_cart", + FixedProduct = "fixed_product", +} + +export enum IV3CouponsBatchUpdateParamsDiscountTypeEnum { + Percent = "percent", + FixedCart = "fixed_cart", + FixedProduct = "fixed_product", +} + +export enum IV3CouponsBatchPartialUpdateParamsDiscountTypeEnum { + Percent = "percent", + FixedCart = "fixed_cart", + FixedProduct = "fixed_product", +} + +/** @default "view" */ +export enum IV3CustomersDownloadsListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3CustomersListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "asc" */ +export enum IV3CustomersListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "name" */ +export enum IV3CustomersListParamsOrderbyEnum { + Id = "id", + Include = "include", + Name = "name", + RegisteredDate = "registered_date", +} + +/** @default "customer" */ +export enum IV3CustomersListParamsRoleEnum { + All = "all", + Administrator = "administrator", + Editor = "editor", + Author = "author", + Contributor = "contributor", + Subscriber = "subscriber", + Customer = "customer", + ShopManager = "shop_manager", +} + +/** @default "view" */ +export enum IV3CustomersDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "view" */ +export enum IV3OrdersNotesListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "any" */ +export enum IV3OrdersNotesListParamsTypeEnum { + Any = "any", + Customer = "customer", + Internal = "internal", +} + +/** @default "view" */ +export enum IV3OrdersDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "view" */ +export enum IV3OrdersRefundsListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "desc" */ +export enum IV3OrdersRefundsListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "date" */ +export enum IV3OrdersRefundsListParamsOrderbyEnum { + Date = "date", + Id = "id", + Include = "include", + Title = "title", + Slug = "slug", + Modified = "modified", +} + +/** @default "view" */ +export enum IV3OrdersListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "desc" */ +export enum IV3OrdersListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "date" */ +export enum IV3OrdersListParamsOrderbyEnum { + Date = "date", + Id = "id", + Include = "include", + Title = "title", + Slug = "slug", + Modified = "modified", +} + +/** @default "pending" */ +export enum IStatusEnum { + AutoDraft = "auto-draft", + Pending = "pending", + Processing = "processing", + OnHold = "on-hold", + Completed = "completed", + Cancelled = "cancelled", + Refunded = "refunded", + Failed = "failed", + CheckoutDraft = "checkout-draft", +} + +/** @default "RUB" */ +export enum ICurrencyEnum { + AED = "AED", + AFN = "AFN", + ALL = "ALL", + AMD = "AMD", + ANG = "ANG", + AOA = "AOA", + ARS = "ARS", + AUD = "AUD", + AWG = "AWG", + AZN = "AZN", + BAM = "BAM", + BBD = "BBD", + BDT = "BDT", + BGN = "BGN", + BHD = "BHD", + BIF = "BIF", + BMD = "BMD", + BND = "BND", + BOB = "BOB", + BRL = "BRL", + BSD = "BSD", + BTC = "BTC", + BTN = "BTN", + BWP = "BWP", + BYR = "BYR", + BYN = "BYN", + BZD = "BZD", + CAD = "CAD", + CDF = "CDF", + CHF = "CHF", + CLP = "CLP", + CNY = "CNY", + COP = "COP", + CRC = "CRC", + CUC = "CUC", + CUP = "CUP", + CVE = "CVE", + CZK = "CZK", + DJF = "DJF", + DKK = "DKK", + DOP = "DOP", + DZD = "DZD", + EGP = "EGP", + ERN = "ERN", + ETB = "ETB", + EUR = "EUR", + FJD = "FJD", + FKP = "FKP", + GBP = "GBP", + GEL = "GEL", + GGP = "GGP", + GHS = "GHS", + GIP = "GIP", + GMD = "GMD", + GNF = "GNF", + GTQ = "GTQ", + GYD = "GYD", + HKD = "HKD", + HNL = "HNL", + HRK = "HRK", + HTG = "HTG", + HUF = "HUF", + IDR = "IDR", + ILS = "ILS", + IMP = "IMP", + INR = "INR", + IQD = "IQD", + IRR = "IRR", + IRT = "IRT", + ISK = "ISK", + JEP = "JEP", + JMD = "JMD", + JOD = "JOD", + JPY = "JPY", + KES = "KES", + KGS = "KGS", + KHR = "KHR", + KMF = "KMF", + KPW = "KPW", + KRW = "KRW", + KWD = "KWD", + KYD = "KYD", + KZT = "KZT", + LAK = "LAK", + LBP = "LBP", + LKR = "LKR", + LRD = "LRD", + LSL = "LSL", + LYD = "LYD", + MAD = "MAD", + MDL = "MDL", + MGA = "MGA", + MKD = "MKD", + MMK = "MMK", + MNT = "MNT", + MOP = "MOP", + MRU = "MRU", + MUR = "MUR", + MVR = "MVR", + MWK = "MWK", + MXN = "MXN", + MYR = "MYR", + MZN = "MZN", + NAD = "NAD", + NGN = "NGN", + NIO = "NIO", + NOK = "NOK", + NPR = "NPR", + NZD = "NZD", + OMR = "OMR", + PAB = "PAB", + PEN = "PEN", + PGK = "PGK", + PHP = "PHP", + PKR = "PKR", + PLN = "PLN", + PRB = "PRB", + PYG = "PYG", + QAR = "QAR", + RON = "RON", + RSD = "RSD", + RUB = "RUB", + RWF = "RWF", + SAR = "SAR", + SBD = "SBD", + SCR = "SCR", + SDG = "SDG", + SEK = "SEK", + SGD = "SGD", + SHP = "SHP", + SLL = "SLL", + SOS = "SOS", + SRD = "SRD", + SSP = "SSP", + STN = "STN", + SYP = "SYP", + SZL = "SZL", + THB = "THB", + TJS = "TJS", + TMT = "TMT", + TND = "TND", + TOP = "TOP", + TRY = "TRY", + TTD = "TTD", + TWD = "TWD", + TZS = "TZS", + UAH = "UAH", + UGX = "UGX", + USD = "USD", + UYU = "UYU", + UZS = "UZS", + VEF = "VEF", + VES = "VES", + VND = "VND", + VUV = "VUV", + WST = "WST", + XAF = "XAF", + XCD = "XCD", + XOF = "XOF", + XPF = "XPF", + YER = "YER", + ZAR = "ZAR", + ZMW = "ZMW", +} + +/** @default "view" */ +export enum IV3OrdersDetail2ParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } export enum IStatusEnum1 { - Publish = "publish", - Future = "future", - Draft = "draft", + AutoDraft = "auto-draft", Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", + Processing = "processing", + OnHold = "on-hold", + Completed = "completed", + Cancelled = "cancelled", + Refunded = "refunded", + Failed = "failed", + CheckoutDraft = "checkout-draft", } -export enum ICommentStatusEnum1 { - Open = "open", - Closed = "closed", +export enum ICurrencyEnum1 { + AED = "AED", + AFN = "AFN", + ALL = "ALL", + AMD = "AMD", + ANG = "ANG", + AOA = "AOA", + ARS = "ARS", + AUD = "AUD", + AWG = "AWG", + AZN = "AZN", + BAM = "BAM", + BBD = "BBD", + BDT = "BDT", + BGN = "BGN", + BHD = "BHD", + BIF = "BIF", + BMD = "BMD", + BND = "BND", + BOB = "BOB", + BRL = "BRL", + BSD = "BSD", + BTC = "BTC", + BTN = "BTN", + BWP = "BWP", + BYR = "BYR", + BYN = "BYN", + BZD = "BZD", + CAD = "CAD", + CDF = "CDF", + CHF = "CHF", + CLP = "CLP", + CNY = "CNY", + COP = "COP", + CRC = "CRC", + CUC = "CUC", + CUP = "CUP", + CVE = "CVE", + CZK = "CZK", + DJF = "DJF", + DKK = "DKK", + DOP = "DOP", + DZD = "DZD", + EGP = "EGP", + ERN = "ERN", + ETB = "ETB", + EUR = "EUR", + FJD = "FJD", + FKP = "FKP", + GBP = "GBP", + GEL = "GEL", + GGP = "GGP", + GHS = "GHS", + GIP = "GIP", + GMD = "GMD", + GNF = "GNF", + GTQ = "GTQ", + GYD = "GYD", + HKD = "HKD", + HNL = "HNL", + HRK = "HRK", + HTG = "HTG", + HUF = "HUF", + IDR = "IDR", + ILS = "ILS", + IMP = "IMP", + INR = "INR", + IQD = "IQD", + IRR = "IRR", + IRT = "IRT", + ISK = "ISK", + JEP = "JEP", + JMD = "JMD", + JOD = "JOD", + JPY = "JPY", + KES = "KES", + KGS = "KGS", + KHR = "KHR", + KMF = "KMF", + KPW = "KPW", + KRW = "KRW", + KWD = "KWD", + KYD = "KYD", + KZT = "KZT", + LAK = "LAK", + LBP = "LBP", + LKR = "LKR", + LRD = "LRD", + LSL = "LSL", + LYD = "LYD", + MAD = "MAD", + MDL = "MDL", + MGA = "MGA", + MKD = "MKD", + MMK = "MMK", + MNT = "MNT", + MOP = "MOP", + MRU = "MRU", + MUR = "MUR", + MVR = "MVR", + MWK = "MWK", + MXN = "MXN", + MYR = "MYR", + MZN = "MZN", + NAD = "NAD", + NGN = "NGN", + NIO = "NIO", + NOK = "NOK", + NPR = "NPR", + NZD = "NZD", + OMR = "OMR", + PAB = "PAB", + PEN = "PEN", + PGK = "PGK", + PHP = "PHP", + PKR = "PKR", + PLN = "PLN", + PRB = "PRB", + PYG = "PYG", + QAR = "QAR", + RON = "RON", + RSD = "RSD", + RUB = "RUB", + RWF = "RWF", + SAR = "SAR", + SBD = "SBD", + SCR = "SCR", + SDG = "SDG", + SEK = "SEK", + SGD = "SGD", + SHP = "SHP", + SLL = "SLL", + SOS = "SOS", + SRD = "SRD", + SSP = "SSP", + STN = "STN", + SYP = "SYP", + SZL = "SZL", + THB = "THB", + TJS = "TJS", + TMT = "TMT", + TND = "TND", + TOP = "TOP", + TRY = "TRY", + TTD = "TTD", + TWD = "TWD", + TZS = "TZS", + UAH = "UAH", + UGX = "UGX", + USD = "USD", + UYU = "UYU", + UZS = "UZS", + VEF = "VEF", + VES = "VES", + VND = "VND", + VUV = "VUV", + WST = "WST", + XAF = "XAF", + XCD = "XCD", + XOF = "XOF", + XPF = "XPF", + YER = "YER", + ZAR = "ZAR", + ZMW = "ZMW", } -export enum IPingStatusEnum1 { - Open = "open", - Closed = "closed", -} - -export enum IFormatEnum1 { - Standard = "standard", - Aside = "aside", - Chat = "chat", - Gallery = "gallery", - Link = "link", - Image = "image", - Quote = "quote", - Status = "status", - Video = "video", - Audio = "audio", -} - -export enum IV2PostsUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", +export enum IV3OrdersUpdateParamsStatusEnum { + AutoDraft = "auto-draft", Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", + Processing = "processing", + OnHold = "on-hold", + Completed = "completed", + Cancelled = "cancelled", + Refunded = "refunded", + Failed = "failed", + CheckoutDraft = "checkout-draft", } -export enum IV2PostsUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", +export enum IV3OrdersUpdateParamsCurrencyEnum { + AED = "AED", + AFN = "AFN", + ALL = "ALL", + AMD = "AMD", + ANG = "ANG", + AOA = "AOA", + ARS = "ARS", + AUD = "AUD", + AWG = "AWG", + AZN = "AZN", + BAM = "BAM", + BBD = "BBD", + BDT = "BDT", + BGN = "BGN", + BHD = "BHD", + BIF = "BIF", + BMD = "BMD", + BND = "BND", + BOB = "BOB", + BRL = "BRL", + BSD = "BSD", + BTC = "BTC", + BTN = "BTN", + BWP = "BWP", + BYR = "BYR", + BYN = "BYN", + BZD = "BZD", + CAD = "CAD", + CDF = "CDF", + CHF = "CHF", + CLP = "CLP", + CNY = "CNY", + COP = "COP", + CRC = "CRC", + CUC = "CUC", + CUP = "CUP", + CVE = "CVE", + CZK = "CZK", + DJF = "DJF", + DKK = "DKK", + DOP = "DOP", + DZD = "DZD", + EGP = "EGP", + ERN = "ERN", + ETB = "ETB", + EUR = "EUR", + FJD = "FJD", + FKP = "FKP", + GBP = "GBP", + GEL = "GEL", + GGP = "GGP", + GHS = "GHS", + GIP = "GIP", + GMD = "GMD", + GNF = "GNF", + GTQ = "GTQ", + GYD = "GYD", + HKD = "HKD", + HNL = "HNL", + HRK = "HRK", + HTG = "HTG", + HUF = "HUF", + IDR = "IDR", + ILS = "ILS", + IMP = "IMP", + INR = "INR", + IQD = "IQD", + IRR = "IRR", + IRT = "IRT", + ISK = "ISK", + JEP = "JEP", + JMD = "JMD", + JOD = "JOD", + JPY = "JPY", + KES = "KES", + KGS = "KGS", + KHR = "KHR", + KMF = "KMF", + KPW = "KPW", + KRW = "KRW", + KWD = "KWD", + KYD = "KYD", + KZT = "KZT", + LAK = "LAK", + LBP = "LBP", + LKR = "LKR", + LRD = "LRD", + LSL = "LSL", + LYD = "LYD", + MAD = "MAD", + MDL = "MDL", + MGA = "MGA", + MKD = "MKD", + MMK = "MMK", + MNT = "MNT", + MOP = "MOP", + MRU = "MRU", + MUR = "MUR", + MVR = "MVR", + MWK = "MWK", + MXN = "MXN", + MYR = "MYR", + MZN = "MZN", + NAD = "NAD", + NGN = "NGN", + NIO = "NIO", + NOK = "NOK", + NPR = "NPR", + NZD = "NZD", + OMR = "OMR", + PAB = "PAB", + PEN = "PEN", + PGK = "PGK", + PHP = "PHP", + PKR = "PKR", + PLN = "PLN", + PRB = "PRB", + PYG = "PYG", + QAR = "QAR", + RON = "RON", + RSD = "RSD", + RUB = "RUB", + RWF = "RWF", + SAR = "SAR", + SBD = "SBD", + SCR = "SCR", + SDG = "SDG", + SEK = "SEK", + SGD = "SGD", + SHP = "SHP", + SLL = "SLL", + SOS = "SOS", + SRD = "SRD", + SSP = "SSP", + STN = "STN", + SYP = "SYP", + SZL = "SZL", + THB = "THB", + TJS = "TJS", + TMT = "TMT", + TND = "TND", + TOP = "TOP", + TRY = "TRY", + TTD = "TTD", + TWD = "TWD", + TZS = "TZS", + UAH = "UAH", + UGX = "UGX", + USD = "USD", + UYU = "UYU", + UZS = "UZS", + VEF = "VEF", + VES = "VES", + VND = "VND", + VUV = "VUV", + WST = "WST", + XAF = "XAF", + XCD = "XCD", + XOF = "XOF", + XPF = "XPF", + YER = "YER", + ZAR = "ZAR", + ZMW = "ZMW", } -export enum IV2PostsUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2PostsUpdateParamsFormatEnum { - Standard = "standard", - Aside = "aside", - Chat = "chat", - Gallery = "gallery", - Link = "link", - Image = "image", - Quote = "quote", - Status = "status", - Video = "video", - Audio = "audio", -} - -export enum IV2PostsPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", +export enum IV3OrdersPartialUpdateParamsStatusEnum { + AutoDraft = "auto-draft", Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", + Processing = "processing", + OnHold = "on-hold", + Completed = "completed", + Cancelled = "cancelled", + Refunded = "refunded", + Failed = "failed", + CheckoutDraft = "checkout-draft", } -export enum IV2PostsPartialUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2PostsPartialUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2PostsPartialUpdateParamsFormatEnum { - Standard = "standard", - Aside = "aside", - Chat = "chat", - Gallery = "gallery", - Link = "link", - Image = "image", - Quote = "quote", - Status = "status", - Video = "video", - Audio = "audio", -} - -/** @default "view" */ -export enum IV2PostsRevisionsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "desc" */ -export enum IV2PostsRevisionsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2PostsRevisionsListParamsOrderbyEnum { - Date = "date", - Id = "id", - Include = "include", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -/** @default "view" */ -export enum IV2PostsDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2PostsAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", +export enum IV3OrdersPartialUpdateParamsCurrencyEnum { + AED = "AED", + AFN = "AFN", + ALL = "ALL", + AMD = "AMD", + ANG = "ANG", + AOA = "AOA", + ARS = "ARS", + AUD = "AUD", + AWG = "AWG", + AZN = "AZN", + BAM = "BAM", + BBD = "BBD", + BDT = "BDT", + BGN = "BGN", + BHD = "BHD", + BIF = "BIF", + BMD = "BMD", + BND = "BND", + BOB = "BOB", + BRL = "BRL", + BSD = "BSD", + BTC = "BTC", + BTN = "BTN", + BWP = "BWP", + BYR = "BYR", + BYN = "BYN", + BZD = "BZD", + CAD = "CAD", + CDF = "CDF", + CHF = "CHF", + CLP = "CLP", + CNY = "CNY", + COP = "COP", + CRC = "CRC", + CUC = "CUC", + CUP = "CUP", + CVE = "CVE", + CZK = "CZK", + DJF = "DJF", + DKK = "DKK", + DOP = "DOP", + DZD = "DZD", + EGP = "EGP", + ERN = "ERN", + ETB = "ETB", + EUR = "EUR", + FJD = "FJD", + FKP = "FKP", + GBP = "GBP", + GEL = "GEL", + GGP = "GGP", + GHS = "GHS", + GIP = "GIP", + GMD = "GMD", + GNF = "GNF", + GTQ = "GTQ", + GYD = "GYD", + HKD = "HKD", + HNL = "HNL", + HRK = "HRK", + HTG = "HTG", + HUF = "HUF", + IDR = "IDR", + ILS = "ILS", + IMP = "IMP", + INR = "INR", + IQD = "IQD", + IRR = "IRR", + IRT = "IRT", + ISK = "ISK", + JEP = "JEP", + JMD = "JMD", + JOD = "JOD", + JPY = "JPY", + KES = "KES", + KGS = "KGS", + KHR = "KHR", + KMF = "KMF", + KPW = "KPW", + KRW = "KRW", + KWD = "KWD", + KYD = "KYD", + KZT = "KZT", + LAK = "LAK", + LBP = "LBP", + LKR = "LKR", + LRD = "LRD", + LSL = "LSL", + LYD = "LYD", + MAD = "MAD", + MDL = "MDL", + MGA = "MGA", + MKD = "MKD", + MMK = "MMK", + MNT = "MNT", + MOP = "MOP", + MRU = "MRU", + MUR = "MUR", + MVR = "MVR", + MWK = "MWK", + MXN = "MXN", + MYR = "MYR", + MZN = "MZN", + NAD = "NAD", + NGN = "NGN", + NIO = "NIO", + NOK = "NOK", + NPR = "NPR", + NZD = "NZD", + OMR = "OMR", + PAB = "PAB", + PEN = "PEN", + PGK = "PGK", + PHP = "PHP", + PKR = "PKR", + PLN = "PLN", + PRB = "PRB", + PYG = "PYG", + QAR = "QAR", + RON = "RON", + RSD = "RSD", + RUB = "RUB", + RWF = "RWF", + SAR = "SAR", + SBD = "SBD", + SCR = "SCR", + SDG = "SDG", + SEK = "SEK", + SGD = "SGD", + SHP = "SHP", + SLL = "SLL", + SOS = "SOS", + SRD = "SRD", + SSP = "SSP", + STN = "STN", + SYP = "SYP", + SZL = "SZL", + THB = "THB", + TJS = "TJS", + TMT = "TMT", + TND = "TND", + TOP = "TOP", + TRY = "TRY", + TTD = "TTD", + TWD = "TWD", + TZS = "TZS", + UAH = "UAH", + UGX = "UGX", + USD = "USD", + UYU = "UYU", + UZS = "UZS", + VEF = "VEF", + VES = "VES", + VND = "VND", + VUV = "VUV", + WST = "WST", + XAF = "XAF", + XCD = "XCD", + XOF = "XOF", + XPF = "XPF", + YER = "YER", + ZAR = "ZAR", + ZMW = "ZMW", } export enum IStatusEnum2 { - Publish = "publish", - Future = "future", - Draft = "draft", + AutoDraft = "auto-draft", Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", + Processing = "processing", + OnHold = "on-hold", + Completed = "completed", + Cancelled = "cancelled", + Refunded = "refunded", + Failed = "failed", + CheckoutDraft = "checkout-draft", } -export enum ICommentStatusEnum2 { - Open = "open", - Closed = "closed", +export enum ICurrencyEnum2 { + AED = "AED", + AFN = "AFN", + ALL = "ALL", + AMD = "AMD", + ANG = "ANG", + AOA = "AOA", + ARS = "ARS", + AUD = "AUD", + AWG = "AWG", + AZN = "AZN", + BAM = "BAM", + BBD = "BBD", + BDT = "BDT", + BGN = "BGN", + BHD = "BHD", + BIF = "BIF", + BMD = "BMD", + BND = "BND", + BOB = "BOB", + BRL = "BRL", + BSD = "BSD", + BTC = "BTC", + BTN = "BTN", + BWP = "BWP", + BYR = "BYR", + BYN = "BYN", + BZD = "BZD", + CAD = "CAD", + CDF = "CDF", + CHF = "CHF", + CLP = "CLP", + CNY = "CNY", + COP = "COP", + CRC = "CRC", + CUC = "CUC", + CUP = "CUP", + CVE = "CVE", + CZK = "CZK", + DJF = "DJF", + DKK = "DKK", + DOP = "DOP", + DZD = "DZD", + EGP = "EGP", + ERN = "ERN", + ETB = "ETB", + EUR = "EUR", + FJD = "FJD", + FKP = "FKP", + GBP = "GBP", + GEL = "GEL", + GGP = "GGP", + GHS = "GHS", + GIP = "GIP", + GMD = "GMD", + GNF = "GNF", + GTQ = "GTQ", + GYD = "GYD", + HKD = "HKD", + HNL = "HNL", + HRK = "HRK", + HTG = "HTG", + HUF = "HUF", + IDR = "IDR", + ILS = "ILS", + IMP = "IMP", + INR = "INR", + IQD = "IQD", + IRR = "IRR", + IRT = "IRT", + ISK = "ISK", + JEP = "JEP", + JMD = "JMD", + JOD = "JOD", + JPY = "JPY", + KES = "KES", + KGS = "KGS", + KHR = "KHR", + KMF = "KMF", + KPW = "KPW", + KRW = "KRW", + KWD = "KWD", + KYD = "KYD", + KZT = "KZT", + LAK = "LAK", + LBP = "LBP", + LKR = "LKR", + LRD = "LRD", + LSL = "LSL", + LYD = "LYD", + MAD = "MAD", + MDL = "MDL", + MGA = "MGA", + MKD = "MKD", + MMK = "MMK", + MNT = "MNT", + MOP = "MOP", + MRU = "MRU", + MUR = "MUR", + MVR = "MVR", + MWK = "MWK", + MXN = "MXN", + MYR = "MYR", + MZN = "MZN", + NAD = "NAD", + NGN = "NGN", + NIO = "NIO", + NOK = "NOK", + NPR = "NPR", + NZD = "NZD", + OMR = "OMR", + PAB = "PAB", + PEN = "PEN", + PGK = "PGK", + PHP = "PHP", + PKR = "PKR", + PLN = "PLN", + PRB = "PRB", + PYG = "PYG", + QAR = "QAR", + RON = "RON", + RSD = "RSD", + RUB = "RUB", + RWF = "RWF", + SAR = "SAR", + SBD = "SBD", + SCR = "SCR", + SDG = "SDG", + SEK = "SEK", + SGD = "SGD", + SHP = "SHP", + SLL = "SLL", + SOS = "SOS", + SRD = "SRD", + SSP = "SSP", + STN = "STN", + SYP = "SYP", + SZL = "SZL", + THB = "THB", + TJS = "TJS", + TMT = "TMT", + TND = "TND", + TOP = "TOP", + TRY = "TRY", + TTD = "TTD", + TWD = "TWD", + TZS = "TZS", + UAH = "UAH", + UGX = "UGX", + USD = "USD", + UYU = "UYU", + UZS = "UZS", + VEF = "VEF", + VES = "VES", + VND = "VND", + VUV = "VUV", + WST = "WST", + XAF = "XAF", + XCD = "XCD", + XOF = "XOF", + XPF = "XPF", + YER = "YER", + ZAR = "ZAR", + ZMW = "ZMW", } -export enum IPingStatusEnum2 { - Open = "open", - Closed = "closed", +export enum IV3OrdersBatchUpdateParamsStatusEnum { + AutoDraft = "auto-draft", + Pending = "pending", + Processing = "processing", + OnHold = "on-hold", + Completed = "completed", + Cancelled = "cancelled", + Refunded = "refunded", + Failed = "failed", + CheckoutDraft = "checkout-draft", } -export enum IFormatEnum2 { - Standard = "standard", - Aside = "aside", - Chat = "chat", - Gallery = "gallery", - Link = "link", - Image = "image", - Quote = "quote", - Status = "status", - Video = "video", - Audio = "audio", +export enum IV3OrdersBatchUpdateParamsCurrencyEnum { + AED = "AED", + AFN = "AFN", + ALL = "ALL", + AMD = "AMD", + ANG = "ANG", + AOA = "AOA", + ARS = "ARS", + AUD = "AUD", + AWG = "AWG", + AZN = "AZN", + BAM = "BAM", + BBD = "BBD", + BDT = "BDT", + BGN = "BGN", + BHD = "BHD", + BIF = "BIF", + BMD = "BMD", + BND = "BND", + BOB = "BOB", + BRL = "BRL", + BSD = "BSD", + BTC = "BTC", + BTN = "BTN", + BWP = "BWP", + BYR = "BYR", + BYN = "BYN", + BZD = "BZD", + CAD = "CAD", + CDF = "CDF", + CHF = "CHF", + CLP = "CLP", + CNY = "CNY", + COP = "COP", + CRC = "CRC", + CUC = "CUC", + CUP = "CUP", + CVE = "CVE", + CZK = "CZK", + DJF = "DJF", + DKK = "DKK", + DOP = "DOP", + DZD = "DZD", + EGP = "EGP", + ERN = "ERN", + ETB = "ETB", + EUR = "EUR", + FJD = "FJD", + FKP = "FKP", + GBP = "GBP", + GEL = "GEL", + GGP = "GGP", + GHS = "GHS", + GIP = "GIP", + GMD = "GMD", + GNF = "GNF", + GTQ = "GTQ", + GYD = "GYD", + HKD = "HKD", + HNL = "HNL", + HRK = "HRK", + HTG = "HTG", + HUF = "HUF", + IDR = "IDR", + ILS = "ILS", + IMP = "IMP", + INR = "INR", + IQD = "IQD", + IRR = "IRR", + IRT = "IRT", + ISK = "ISK", + JEP = "JEP", + JMD = "JMD", + JOD = "JOD", + JPY = "JPY", + KES = "KES", + KGS = "KGS", + KHR = "KHR", + KMF = "KMF", + KPW = "KPW", + KRW = "KRW", + KWD = "KWD", + KYD = "KYD", + KZT = "KZT", + LAK = "LAK", + LBP = "LBP", + LKR = "LKR", + LRD = "LRD", + LSL = "LSL", + LYD = "LYD", + MAD = "MAD", + MDL = "MDL", + MGA = "MGA", + MKD = "MKD", + MMK = "MMK", + MNT = "MNT", + MOP = "MOP", + MRU = "MRU", + MUR = "MUR", + MVR = "MVR", + MWK = "MWK", + MXN = "MXN", + MYR = "MYR", + MZN = "MZN", + NAD = "NAD", + NGN = "NGN", + NIO = "NIO", + NOK = "NOK", + NPR = "NPR", + NZD = "NZD", + OMR = "OMR", + PAB = "PAB", + PEN = "PEN", + PGK = "PGK", + PHP = "PHP", + PKR = "PKR", + PLN = "PLN", + PRB = "PRB", + PYG = "PYG", + QAR = "QAR", + RON = "RON", + RSD = "RSD", + RUB = "RUB", + RWF = "RWF", + SAR = "SAR", + SBD = "SBD", + SCR = "SCR", + SDG = "SDG", + SEK = "SEK", + SGD = "SGD", + SHP = "SHP", + SLL = "SLL", + SOS = "SOS", + SRD = "SRD", + SSP = "SSP", + STN = "STN", + SYP = "SYP", + SZL = "SZL", + THB = "THB", + TJS = "TJS", + TMT = "TMT", + TND = "TND", + TOP = "TOP", + TRY = "TRY", + TTD = "TTD", + TWD = "TWD", + TZS = "TZS", + UAH = "UAH", + UGX = "UGX", + USD = "USD", + UYU = "UYU", + UZS = "UZS", + VEF = "VEF", + VES = "VES", + VND = "VND", + VUV = "VUV", + WST = "WST", + XAF = "XAF", + XCD = "XCD", + XOF = "XOF", + XPF = "XPF", + YER = "YER", + ZAR = "ZAR", + ZMW = "ZMW", +} + +export enum IV3OrdersBatchPartialUpdateParamsStatusEnum { + AutoDraft = "auto-draft", + Pending = "pending", + Processing = "processing", + OnHold = "on-hold", + Completed = "completed", + Cancelled = "cancelled", + Refunded = "refunded", + Failed = "failed", + CheckoutDraft = "checkout-draft", +} + +export enum IV3OrdersBatchPartialUpdateParamsCurrencyEnum { + AED = "AED", + AFN = "AFN", + ALL = "ALL", + AMD = "AMD", + ANG = "ANG", + AOA = "AOA", + ARS = "ARS", + AUD = "AUD", + AWG = "AWG", + AZN = "AZN", + BAM = "BAM", + BBD = "BBD", + BDT = "BDT", + BGN = "BGN", + BHD = "BHD", + BIF = "BIF", + BMD = "BMD", + BND = "BND", + BOB = "BOB", + BRL = "BRL", + BSD = "BSD", + BTC = "BTC", + BTN = "BTN", + BWP = "BWP", + BYR = "BYR", + BYN = "BYN", + BZD = "BZD", + CAD = "CAD", + CDF = "CDF", + CHF = "CHF", + CLP = "CLP", + CNY = "CNY", + COP = "COP", + CRC = "CRC", + CUC = "CUC", + CUP = "CUP", + CVE = "CVE", + CZK = "CZK", + DJF = "DJF", + DKK = "DKK", + DOP = "DOP", + DZD = "DZD", + EGP = "EGP", + ERN = "ERN", + ETB = "ETB", + EUR = "EUR", + FJD = "FJD", + FKP = "FKP", + GBP = "GBP", + GEL = "GEL", + GGP = "GGP", + GHS = "GHS", + GIP = "GIP", + GMD = "GMD", + GNF = "GNF", + GTQ = "GTQ", + GYD = "GYD", + HKD = "HKD", + HNL = "HNL", + HRK = "HRK", + HTG = "HTG", + HUF = "HUF", + IDR = "IDR", + ILS = "ILS", + IMP = "IMP", + INR = "INR", + IQD = "IQD", + IRR = "IRR", + IRT = "IRT", + ISK = "ISK", + JEP = "JEP", + JMD = "JMD", + JOD = "JOD", + JPY = "JPY", + KES = "KES", + KGS = "KGS", + KHR = "KHR", + KMF = "KMF", + KPW = "KPW", + KRW = "KRW", + KWD = "KWD", + KYD = "KYD", + KZT = "KZT", + LAK = "LAK", + LBP = "LBP", + LKR = "LKR", + LRD = "LRD", + LSL = "LSL", + LYD = "LYD", + MAD = "MAD", + MDL = "MDL", + MGA = "MGA", + MKD = "MKD", + MMK = "MMK", + MNT = "MNT", + MOP = "MOP", + MRU = "MRU", + MUR = "MUR", + MVR = "MVR", + MWK = "MWK", + MXN = "MXN", + MYR = "MYR", + MZN = "MZN", + NAD = "NAD", + NGN = "NGN", + NIO = "NIO", + NOK = "NOK", + NPR = "NPR", + NZD = "NZD", + OMR = "OMR", + PAB = "PAB", + PEN = "PEN", + PGK = "PGK", + PHP = "PHP", + PKR = "PKR", + PLN = "PLN", + PRB = "PRB", + PYG = "PYG", + QAR = "QAR", + RON = "RON", + RSD = "RSD", + RUB = "RUB", + RWF = "RWF", + SAR = "SAR", + SBD = "SBD", + SCR = "SCR", + SDG = "SDG", + SEK = "SEK", + SGD = "SGD", + SHP = "SHP", + SLL = "SLL", + SOS = "SOS", + SRD = "SRD", + SSP = "SSP", + STN = "STN", + SYP = "SYP", + SZL = "SZL", + THB = "THB", + TJS = "TJS", + TMT = "TMT", + TND = "TND", + TOP = "TOP", + TRY = "TRY", + TTD = "TTD", + TWD = "TWD", + TZS = "TZS", + UAH = "UAH", + UGX = "UGX", + USD = "USD", + UYU = "UYU", + UZS = "UZS", + VEF = "VEF", + VES = "VES", + VND = "VND", + VUV = "VUV", + WST = "WST", + XAF = "XAF", + XCD = "XCD", + XOF = "XOF", + XPF = "XPF", + YER = "YER", + ZAR = "ZAR", + ZMW = "ZMW", } /** @default "view" */ -export enum IV2PagesListParamsContextEnum { +export enum IV3ProductsAttributesTermsListParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } -export enum IV2PagesListParamsSearchSemanticsEnum { - Exact = "exact", -} - -/** @default "desc" */ -export enum IV2PagesListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2PagesListParamsOrderbyEnum { - Author = "author", - Date = "date", - Id = "id", - Include = "include", - Modified = "modified", - Parent = "parent", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", - MenuOrder = "menu_order", -} - -export enum IStatusEnum3 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum3 { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum3 { - Open = "open", - Closed = "closed", -} - -/** @default "view" */ -export enum IV2PagesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum4 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum4 { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum4 { - Open = "open", - Closed = "closed", -} - -export enum IV2PagesUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2PagesUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2PagesUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2PagesPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2PagesPartialUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2PagesPartialUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -/** @default "view" */ -export enum IV2PagesRevisionsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "desc" */ -export enum IV2PagesRevisionsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2PagesRevisionsListParamsOrderbyEnum { - Date = "date", - Id = "id", - Include = "include", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -/** @default "view" */ -export enum IV2PagesDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2PagesAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum5 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum5 { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum5 { - Open = "open", - Closed = "closed", -} - -/** @default "view" */ -export enum IV2MediaListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2MediaListParamsSearchSemanticsEnum { - Exact = "exact", -} - -/** @default "desc" */ -export enum IV2MediaListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2MediaListParamsOrderbyEnum { - Author = "author", - Date = "date", - Id = "id", - Include = "include", - Modified = "modified", - Parent = "parent", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -export enum IV2MediaListParamsMediaTypeEnum { - Image = "image", - Video = "video", - Text = "text", - Application = "application", - Audio = "audio", -} - -export enum IStatusEnum6 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum6 { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum6 { - Open = "open", - Closed = "closed", -} - -/** @default "view" */ -export enum IV2MediaDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum7 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum7 { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum7 { - Open = "open", - Closed = "closed", -} - -export enum IV2MediaUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2MediaUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2MediaUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2MediaPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2MediaPartialUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2MediaPartialUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IActionEnum { - CreateImageSubsizes = "create-image-subsizes", -} - -/** @default "view" */ -export enum IV2MenuItemsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2MenuItemsListParamsSearchSemanticsEnum { - Exact = "exact", -} - /** @default "asc" */ -export enum IV2MenuItemsListParamsOrderEnum { +export enum IV3ProductsAttributesTermsListParamsOrderEnum { Asc = "asc", Desc = "desc", } -/** @default "menu_order" */ -export enum IV2MenuItemsListParamsOrderbyEnum { - Author = "author", - Date = "date", +/** @default "name" */ +export enum IV3ProductsAttributesTermsListParamsOrderbyEnum { Id = "id", Include = "include", - Modified = "modified", - Parent = "parent", - Relevance = "relevance", + Name = "name", Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", - MenuOrder = "menu_order", -} - -export enum IV2MenuItemsListParamsTaxRelationEnum { - AND = "AND", - OR = "OR", -} - -/** @default "custom" */ -export enum ITypeEnum { - Taxonomy = "taxonomy", - PostType = "post_type", - PostTypeArchive = "post_type_archive", - Custom = "custom", -} - -/** @default "publish" */ -export enum IStatusEnum8 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ITargetEnum { - Blank = "_blank", - Value = "", + TermGroup = "term_group", + Description = "description", + Count = "count", } /** @default "view" */ -export enum IV2MenuItemsDetailParamsContextEnum { +export enum IV3ProductsAttributesDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "view" */ +export enum IV3ProductsAttributesListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "select" */ +export enum ITypeEnum { + Select = "select", +} + +/** @default "menu_order" */ +export enum IOrderByEnum { + MenuOrder = "menu_order", + Name = "name", + NameNum = "name_num", + Id = "id", +} + +/** @default "view" */ +export enum IV3ProductsAttributesDetail2ParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } export enum ITypeEnum1 { - Taxonomy = "taxonomy", - PostType = "post_type", - PostTypeArchive = "post_type_archive", - Custom = "custom", + Select = "select", } -export enum IStatusEnum9 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", +export enum IOrderByEnum1 { + MenuOrder = "menu_order", + Name = "name", + NameNum = "name_num", + Id = "id", } -export enum ITargetEnum1 { - Blank = "_blank", - Value = "", +export enum IV3ProductsAttributesUpdate2ParamsTypeEnum { + Select = "select", } -export enum IV2MenuItemsUpdateParamsTypeEnum { - Taxonomy = "taxonomy", - PostType = "post_type", - PostTypeArchive = "post_type_archive", - Custom = "custom", +export enum IV3ProductsAttributesUpdate2ParamsOrderByEnum { + MenuOrder = "menu_order", + Name = "name", + NameNum = "name_num", + Id = "id", } -export enum IV2MenuItemsUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", +export enum IV3ProductsAttributesPartialUpdate2ParamsTypeEnum { + Select = "select", } -export enum IV2MenuItemsUpdateParamsTargetEnum { - Blank = "_blank", - Value = "", -} - -export enum IV2MenuItemsPartialUpdateParamsTypeEnum { - Taxonomy = "taxonomy", - PostType = "post_type", - PostTypeArchive = "post_type_archive", - Custom = "custom", -} - -export enum IV2MenuItemsPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2MenuItemsPartialUpdateParamsTargetEnum { - Blank = "_blank", - Value = "", -} - -/** @default "view" */ -export enum IV2MenuItemsAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", +export enum IV3ProductsAttributesPartialUpdate2ParamsOrderByEnum { + MenuOrder = "menu_order", + Name = "name", + NameNum = "name_num", + Id = "id", } export enum ITypeEnum2 { - Taxonomy = "taxonomy", - PostType = "post_type", - PostTypeArchive = "post_type_archive", - Custom = "custom", + Select = "select", } -export enum IStatusEnum10 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", +export enum IOrderByEnum2 { + MenuOrder = "menu_order", + Name = "name", + NameNum = "name_num", + Id = "id", } -export enum ITargetEnum2 { - Blank = "_blank", - Value = "", +export enum IV3ProductsAttributesBatchUpdateParamsTypeEnum { + Select = "select", +} + +export enum IV3ProductsAttributesBatchUpdateParamsOrderByEnum { + MenuOrder = "menu_order", + Name = "name", + NameNum = "name_num", + Id = "id", +} + +export enum IV3ProductsAttributesBatchPartialUpdateParamsTypeEnum { + Select = "select", +} + +export enum IV3ProductsAttributesBatchPartialUpdateParamsOrderByEnum { + MenuOrder = "menu_order", + Name = "name", + NameNum = "name_num", + Id = "id", } /** @default "view" */ -export enum IV2MenuItemsDetail2ParamsContextEnum { +export enum IV3ProductsCategoriesListParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } +/** @default "asc" */ +export enum IV3ProductsCategoriesListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "name" */ +export enum IV3ProductsCategoriesListParamsOrderbyEnum { + Id = "id", + Include = "include", + Name = "name", + Slug = "slug", + TermGroup = "term_group", + Description = "description", + Count = "count", +} + +/** @default "default" */ +export enum IDisplayEnum3 { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + /** @default "view" */ -export enum IV2BlocksListParamsContextEnum { +export enum IV3ProductsCategoriesDetailParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } -export enum IV2BlocksListParamsSearchSemanticsEnum { - Exact = "exact", +export enum IDisplayEnum4 { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsCategoriesUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsCategoriesPartialUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IDisplayEnum5 { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsCategoriesBatchUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +export enum IV3ProductsCategoriesBatchPartialUpdateParamsDisplayEnum { + Default = "default", + Products = "products", + Subcategories = "subcategories", + Both = "both", +} + +/** @default "asc" */ +export enum IV3ProductsCustomFieldsNamesListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "view" */ +export enum IV3ProductsReviewsListParamsContextEnum { + View = "view", + Edit = "edit", } /** @default "desc" */ -export enum IV2BlocksListParamsOrderEnum { +export enum IV3ProductsReviewsListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "date_gmt" */ +export enum IV3ProductsReviewsListParamsOrderbyEnum { + Date = "date", + DateGmt = "date_gmt", + Id = "id", + Include = "include", + Product = "product", +} + +/** @default "approved" */ +export enum IV3ProductsReviewsListParamsStatusEnum { + All = "all", + Hold = "hold", + Approved = "approved", + Spam = "spam", + Trash = "trash", +} + +/** @default "approved" */ +export enum IStatusEnum3 { + Approved = "approved", + Hold = "hold", + Spam = "spam", + Unspam = "unspam", + Trash = "trash", + Untrash = "untrash", +} + +/** @default "view" */ +export enum IV3ProductsReviewsDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +export enum IStatusEnum4 { + Approved = "approved", + Hold = "hold", + Spam = "spam", + Unspam = "unspam", + Trash = "trash", + Untrash = "untrash", +} + +export enum IV3ProductsReviewsUpdateParamsStatusEnum { + Approved = "approved", + Hold = "hold", + Spam = "spam", + Unspam = "unspam", + Trash = "trash", + Untrash = "untrash", +} + +export enum IV3ProductsReviewsPartialUpdateParamsStatusEnum { + Approved = "approved", + Hold = "hold", + Spam = "spam", + Unspam = "unspam", + Trash = "trash", + Untrash = "untrash", +} + +export enum IStatusEnum5 { + Approved = "approved", + Hold = "hold", + Spam = "spam", + Unspam = "unspam", + Trash = "trash", + Untrash = "untrash", +} + +export enum IV3ProductsReviewsBatchUpdateParamsStatusEnum { + Approved = "approved", + Hold = "hold", + Spam = "spam", + Unspam = "unspam", + Trash = "trash", + Untrash = "untrash", +} + +export enum IV3ProductsReviewsBatchPartialUpdateParamsStatusEnum { + Approved = "approved", + Hold = "hold", + Spam = "spam", + Unspam = "unspam", + Trash = "trash", + Untrash = "untrash", +} + +/** @default "view" */ +export enum IV3ProductsShippingClassesListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "asc" */ +export enum IV3ProductsShippingClassesListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "name" */ +export enum IV3ProductsShippingClassesListParamsOrderbyEnum { + Id = "id", + Include = "include", + Name = "name", + Slug = "slug", + TermGroup = "term_group", + Description = "description", + Count = "count", +} + +/** @default "view" */ +export enum IV3ProductsShippingClassesDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "view" */ +export enum IV3ProductsTagsListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "asc" */ +export enum IV3ProductsTagsListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "name" */ +export enum IV3ProductsTagsListParamsOrderbyEnum { + Id = "id", + Include = "include", + Name = "name", + Slug = "slug", + TermGroup = "term_group", + Description = "description", + Count = "count", +} + +/** @default "view" */ +export enum IV3ProductsTagsDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "view" */ +export enum IV3ProductsListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "desc" */ +export enum IV3ProductsListParamsOrderEnum { Asc = "asc", Desc = "desc", } /** @default "date" */ -export enum IV2BlocksListParamsOrderbyEnum { - Author = "author", +export enum IV3ProductsListParamsOrderbyEnum { Date = "date", Id = "id", Include = "include", + Title = "title", + Slug = "slug", Modified = "modified", - Parent = "parent", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -export enum IV2BlocksListParamsTaxRelationEnum { - AND = "AND", - OR = "OR", -} - -export enum IStatusEnum11 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2BlocksDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum12 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2BlocksUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2BlocksPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2BlocksRevisionsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "desc" */ -export enum IV2BlocksRevisionsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2BlocksRevisionsListParamsOrderbyEnum { - Date = "date", - Id = "id", - Include = "include", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -/** @default "view" */ -export enum IV2BlocksDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2BlocksAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum13 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2TemplatesRevisionsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "desc" */ -export enum IV2TemplatesRevisionsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2TemplatesRevisionsListParamsOrderbyEnum { - Date = "date", - Id = "id", - Include = "include", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -/** @default "view" */ -export enum IV2TemplatesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2TemplatesAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum14 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2TemplatesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "publish" */ -export enum IStatusEnum15 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2TemplatesDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum16 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2TemplatesUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2TemplatesPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2TemplatePartsRevisionsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "desc" */ -export enum IV2TemplatePartsRevisionsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2TemplatePartsRevisionsListParamsOrderbyEnum { - Date = "date", - Id = "id", - Include = "include", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -/** @default "view" */ -export enum IV2TemplatePartsDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2TemplatePartsAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum17 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2TemplatePartsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "publish" */ -export enum IStatusEnum18 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2TemplatePartsDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum19 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2TemplatePartsUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2TemplatePartsPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2GlobalStylesRevisionsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2GlobalStylesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2NavigationListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2NavigationListParamsSearchSemanticsEnum { - Exact = "exact", -} - -/** @default "desc" */ -export enum IV2NavigationListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2NavigationListParamsOrderbyEnum { - Author = "author", - Date = "date", - Id = "id", - Include = "include", - Modified = "modified", - Parent = "parent", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -export enum IStatusEnum20 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2NavigationDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum21 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2NavigationUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2NavigationPartialUpdateParamsStatusEnum { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2NavigationRevisionsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "desc" */ -export enum IV2NavigationRevisionsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2NavigationRevisionsListParamsOrderbyEnum { - Date = "date", - Id = "id", - Include = "include", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", -} - -/** @default "view" */ -export enum IV2NavigationDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2NavigationAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum22 { - Publish = "publish", - Future = "future", - Draft = "draft", - Pending = "pending", - Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -/** @default "view" */ -export enum IV2FontFamiliesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2FontFamiliesListParamsSearchSemanticsEnum { - Exact = "exact", -} - -/** @default "desc" */ -export enum IV2FontFamiliesListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "id" */ -export enum IV2FontFamiliesListParamsOrderbyEnum { - Id = "id", - Include = "include", -} - -/** @default "view" */ -export enum IV2FontFamiliesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2FontFamiliesFontFacesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2FontFamiliesFontFacesListParamsSearchSemanticsEnum { - Exact = "exact", -} - -/** @default "desc" */ -export enum IV2FontFamiliesFontFacesListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "id" */ -export enum IV2FontFamiliesFontFacesListParamsOrderbyEnum { - Id = "id", - Include = "include", -} - -/** @default "view" */ -export enum IV2FontFamiliesDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2ProductListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2ProductListParamsSearchSemanticsEnum { - Exact = "exact", -} - -/** @default "desc" */ -export enum IV2ProductListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date" */ -export enum IV2ProductListParamsOrderbyEnum { - Author = "author", - Date = "date", - Id = "id", - Include = "include", - Modified = "modified", - Parent = "parent", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", - Title = "title", Popularity = "popularity", Rating = "rating", PostIn = "post__in", @@ -1542,881 +1912,992 @@ export enum IV2ProductListParamsOrderbyEnum { Random = "random", Popularity1 = "popularity", Rating2 = "rating", + MenuOrder3 = "menu_order", + Price4 = "price", + Popularity5 = "popularity", + Rating6 = "rating", } -export enum IV2ProductListParamsTaxRelationEnum { - AND = "AND", - OR = "OR", -} - -export enum IStatusEnum23 { - Publish = "publish", +/** @default "any" */ +export enum IV3ProductsListParamsStatusEnum { + Any = "any", Future = "future", + Trash = "trash", Draft = "draft", Pending = "pending", Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum8 { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum8 { - Open = "open", - Closed = "closed", -} - -/** @default "view" */ -export enum IV2ProductDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum24 { Publish = "publish", - Future = "future", +} + +export enum IV3ProductsListParamsTypeEnum { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IV3ProductsListParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +/** @default "simple" */ +export enum ITypeEnum3 { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +/** @default "publish" */ +export enum IStatusEnum6 { Draft = "draft", Pending = "pending", Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum ICommentStatusEnum9 { - Open = "open", - Closed = "closed", -} - -export enum IPingStatusEnum9 { - Open = "open", - Closed = "closed", -} - -export enum IV2ProductUpdateParamsStatusEnum { Publish = "publish", Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", +} + +/** @default "visible" */ +export enum ICatalogVisibilityEnum { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", +} + +/** @default "taxable" */ +export enum ITaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +/** @default "instock" */ +export enum IStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +/** @default "no" */ +export enum IBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +/** @default "view" */ +export enum IV3ProductsDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +export enum ITypeEnum4 { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IStatusEnum7 { Draft = "draft", Pending = "pending", Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2ProductUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2ProductUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2ProductPartialUpdateParamsStatusEnum { Publish = "publish", Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", +} + +export enum ICatalogVisibilityEnum1 { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", +} + +export enum ITaxStatusEnum1 { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IStockStatusEnum1 { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IBackordersEnum1 { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsUpdateParamsTypeEnum { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IV3ProductsUpdateParamsStatusEnum { Draft = "draft", Pending = "pending", Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", -} - -export enum IV2ProductPartialUpdateParamsCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2ProductPartialUpdateParamsPingStatusEnum { - Open = "open", - Closed = "closed", -} - -/** @default "view" */ -export enum IV2ProductAutosavesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum25 { Publish = "publish", Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", +} + +export enum IV3ProductsUpdateParamsCatalogVisibilityEnum { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", +} + +export enum IV3ProductsUpdateParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsUpdateParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsUpdateParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsPartialUpdateParamsTypeEnum { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IV3ProductsPartialUpdateParamsStatusEnum { Draft = "draft", Pending = "pending", Private = "private", - WcPending = "wc-pending", - WcProcessing = "wc-processing", - WcOnHold = "wc-on-hold", - WcCompleted = "wc-completed", - WcCancelled = "wc-cancelled", - WcRefunded = "wc-refunded", - WcFailed = "wc-failed", - WcCheckoutDraft = "wc-checkout-draft", + Publish = "publish", + Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", } -export enum ICommentStatusEnum10 { - Open = "open", - Closed = "closed", +export enum IV3ProductsPartialUpdateParamsCatalogVisibilityEnum { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", } -export enum IPingStatusEnum10 { - Open = "open", - Closed = "closed", +export enum IV3ProductsPartialUpdateParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsPartialUpdateParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsPartialUpdateParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum ITypeEnum5 { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IStatusEnum8 { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", + Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", +} + +export enum ICatalogVisibilityEnum2 { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", +} + +export enum ITaxStatusEnum2 { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IStockStatusEnum2 { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IBackordersEnum2 { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsBatchUpdateParamsTypeEnum { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IV3ProductsBatchUpdateParamsStatusEnum { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", + Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", +} + +export enum IV3ProductsBatchUpdateParamsCatalogVisibilityEnum { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", +} + +export enum IV3ProductsBatchUpdateParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsBatchUpdateParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsBatchUpdateParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsBatchPartialUpdateParamsTypeEnum { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IV3ProductsBatchPartialUpdateParamsStatusEnum { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", + Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", +} + +export enum IV3ProductsBatchPartialUpdateParamsCatalogVisibilityEnum { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", +} + +export enum IV3ProductsBatchPartialUpdateParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsBatchPartialUpdateParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsBatchPartialUpdateParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", } /** @default "view" */ -export enum IV2ProductDetail2ParamsContextEnum { +export enum IV3ProductsSuggestedProductsListParamsContextEnum { View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2TypesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2TypesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2StatusesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2StatusesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2TaxonomiesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2TaxonomiesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2CategoriesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2CategoriesListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2CategoriesListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - Slug = "slug", - IncludeSlugs = "include_slugs", - TermGroup = "term_group", - Description = "description", - Count = "count", -} - -/** @default "view" */ -export enum IV2CategoriesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2TagsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2TagsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2TagsListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - Slug = "slug", - IncludeSlugs = "include_slugs", - TermGroup = "term_group", - Description = "description", - Count = "count", -} - -/** @default "view" */ -export enum IV2TagsDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2MenusListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2MenusListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2MenusListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - Slug = "slug", - IncludeSlugs = "include_slugs", - TermGroup = "term_group", - Description = "description", - Count = "count", -} - -/** @default "view" */ -export enum IV2MenusDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2WpPatternCategoryListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2WpPatternCategoryListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2WpPatternCategoryListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - Slug = "slug", - IncludeSlugs = "include_slugs", - TermGroup = "term_group", - Description = "description", - Count = "count", -} - -/** @default "view" */ -export enum IV2WpPatternCategoryDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2ProductBrandListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2ProductBrandListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2ProductBrandListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - Slug = "slug", - IncludeSlugs = "include_slugs", - TermGroup = "term_group", - Description = "description", - Count = "count", -} - -/** @default "view" */ -export enum IV2ProductBrandDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2ProductCatListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2ProductCatListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2ProductCatListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - Slug = "slug", - IncludeSlugs = "include_slugs", - TermGroup = "term_group", - Description = "description", - Count = "count", -} - -/** @default "view" */ -export enum IV2ProductCatDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2ProductTagListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2ProductTagListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2ProductTagListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - Slug = "slug", - IncludeSlugs = "include_slugs", - TermGroup = "term_group", - Description = "description", - Count = "count", -} - -/** @default "view" */ -export enum IV2ProductTagDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2UsersListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "asc" */ -export enum IV2UsersListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "name" */ -export enum IV2UsersListParamsOrderbyEnum { - Id = "id", - Include = "include", - Name = "name", - RegisteredDate = "registered_date", - Slug = "slug", - IncludeSlugs = "include_slugs", - Email = "email", - Url = "url", -} - -export enum IV2UsersListParamsWhoEnum { - Authors = "authors", -} - -export enum ILocaleEnum { - Value = "", - EnUS = "en_US", - EnGB = "en_GB", -} - -/** @default "view" */ -export enum IV2UsersDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum ILocaleEnum1 { - Value = "", - EnUS = "en_US", - EnGB = "en_GB", -} - -export enum IV2UsersUpdateParamsLocaleEnum { - Value = "", - EnUS = "en_US", - EnGB = "en_GB", -} - -export enum IV2UsersPartialUpdateParamsLocaleEnum { - Value = "", - EnUS = "en_US", - EnGB = "en_GB", -} - -/** @default "view" */ -export enum IV2UsersMeListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum ILocaleEnum2 { - Value = "", - EnUS = "en_US", - EnGB = "en_GB", -} - -export enum IV2UsersMeUpdateParamsLocaleEnum { - Value = "", - EnUS = "en_US", - EnGB = "en_GB", -} - -export enum IV2UsersMePartialUpdateParamsLocaleEnum { - Value = "", - EnUS = "en_US", - EnGB = "en_GB", -} - -/** @default "view" */ -export enum IV2UsersApplicationPasswordsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2UsersApplicationPasswordsIntrospectListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2UsersDetail2ParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2CommentsListParamsContextEnum { - View = "view", - Embed = "embed", Edit = "edit", } /** @default "desc" */ -export enum IV2CommentsListParamsOrderEnum { - Asc = "asc", - Desc = "desc", -} - -/** @default "date_gmt" */ -export enum IV2CommentsListParamsOrderbyEnum { - Date = "date", - DateGmt = "date_gmt", - Id = "id", - Include = "include", - Post = "post", - Parent = "parent", - Type = "type", -} - -/** @default "view" */ -export enum IV2CommentsDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2SearchListParamsContextEnum { - View = "view", - Embed = "embed", -} - -/** @default "post" */ -export enum IV2SearchListParamsTypeEnum { - Post = "post", - Term = "term", - PostFormat = "post-format", -} - -/** @default "view" */ -export enum IV2BlockRendererDetailParamsContextEnum { - Edit = "edit", -} - -/** @default "view" */ -export enum IContextEnum { - Edit = "edit", -} - -/** @default "view" */ -export enum IV2BlockTypesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2BlockTypesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IDefaultPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IDefaultCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IWoocommerceDefaultCatalogOrderbyEnum { - MenuOrder = "menu_order", - Popularity = "popularity", - Rating = "rating", - Date = "date", - Price = "price", - PriceDesc = "price-desc", -} - -export enum IWoocommerceCheckoutPhoneFieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IWoocommerceCheckoutCompanyFieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IWoocommerceCheckoutAddress2FieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IV2SettingsUpdateParamsDefaultPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2SettingsUpdateParamsDefaultCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2SettingsUpdateParamsWoocommerceDefaultCatalogOrderbyEnum { - MenuOrder = "menu_order", - Popularity = "popularity", - Rating = "rating", - Date = "date", - Price = "price", - PriceDesc = "price-desc", -} - -export enum IV2SettingsUpdateParamsWoocommerceCheckoutPhoneFieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IV2SettingsUpdateParamsWoocommerceCheckoutCompanyFieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IV2SettingsUpdateParamsWoocommerceCheckoutAddress2FieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IV2SettingsPartialUpdateParamsDefaultPingStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2SettingsPartialUpdateParamsDefaultCommentStatusEnum { - Open = "open", - Closed = "closed", -} - -export enum IV2SettingsPartialUpdateParamsWoocommerceDefaultCatalogOrderbyEnum { - MenuOrder = "menu_order", - Popularity = "popularity", - Rating = "rating", - Date = "date", - Price = "price", - PriceDesc = "price-desc", -} - -export enum IV2SettingsPartialUpdateParamsWoocommerceCheckoutPhoneFieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IV2SettingsPartialUpdateParamsWoocommerceCheckoutCompanyFieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -export enum IV2SettingsPartialUpdateParamsWoocommerceCheckoutAddress2FieldEnum { - Optional = "optional", - Required = "required", - Hidden = "hidden", -} - -/** @default "view" */ -export enum IV2PluginsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "inactive" */ -export enum IStatusEnum26 { - Inactive = "inactive", - Active = "active", -} - -/** @default "view" */ -export enum IV2PluginsDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IContextEnum1 { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IStatusEnum27 { - Inactive = "inactive", - Active = "active", -} - -/** @default "view" */ -export enum IV2PluginsUpdateParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2PluginsUpdateParamsStatusEnum { - Inactive = "inactive", - Active = "active", -} - -/** @default "view" */ -export enum IV2PluginsPartialUpdateParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -export enum IV2PluginsPartialUpdateParamsStatusEnum { - Inactive = "inactive", - Active = "active", -} - -/** @default "view" */ -export enum IV2PluginsDeleteParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2SidebarsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2SidebarsDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2WidgetTypesListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2WidgetTypesDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2WidgetsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2WidgetsDetailParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "view" */ -export enum IV2BlockDirectorySearchListParamsContextEnum { - View = "view", -} - -/** @default "view" */ -export enum IV2PatternDirectoryPatternsListParamsContextEnum { - View = "view", - Embed = "embed", - Edit = "edit", -} - -/** @default "desc" */ -export enum IV2PatternDirectoryPatternsListParamsOrderEnum { +export enum IV3ProductsSuggestedProductsListParamsOrderEnum { Asc = "asc", Desc = "desc", } /** @default "date" */ -export enum IV2PatternDirectoryPatternsListParamsOrderbyEnum { - Author = "author", +export enum IV3ProductsSuggestedProductsListParamsOrderbyEnum { Date = "date", Id = "id", Include = "include", - Modified = "modified", - Parent = "parent", - Relevance = "relevance", - Slug = "slug", - IncludeSlugs = "include_slugs", Title = "title", - FavoriteCount = "favorite_count", + Slug = "slug", + Modified = "modified", + Popularity = "popularity", + Rating = "rating", + PostIn = "post__in", + Price = "price", + Sales = "sales", + MenuOrder = "menu_order", + Random = "random", + Popularity1 = "popularity", + Rating2 = "rating", + MenuOrder3 = "menu_order", +} + +/** @default "any" */ +export enum IV3ProductsSuggestedProductsListParamsStatusEnum { + Any = "any", + Future = "future", + Trash = "trash", + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum IV3ProductsSuggestedProductsListParamsTypeEnum { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum ITypeEnum6 { + Simple = "simple", + Grouped = "grouped", + External = "external", + Variable = "variable", +} + +export enum IStatusEnum9 { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", + Future = "future", + AutoDraft = "auto-draft", + Trash = "trash", +} + +export enum ICatalogVisibilityEnum3 { + Visible = "visible", + Catalog = "catalog", + Search = "search", + Hidden = "hidden", +} + +export enum ITaxStatusEnum3 { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IStockStatusEnum3 { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IBackordersEnum3 { + No = "no", + Notify = "notify", + Yes = "yes", } /** @default "view" */ -export enum IV2MenuLocationsListParamsContextEnum { +export enum IV3ProductsVariationsListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "desc" */ +export enum IV3ProductsVariationsListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "date" */ +export enum IV3ProductsVariationsListParamsOrderbyEnum { + Date = "date", + Id = "id", + Include = "include", + Title = "title", + Slug = "slug", + Modified = "modified", + MenuOrder = "menu_order", +} + +/** @default "any" */ +export enum IV3ProductsVariationsListParamsStatusEnum { + Any = "any", + Future = "future", + Trash = "trash", + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum IV3ProductsVariationsListParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +/** @default "publish" */ +export enum IStatusEnum10 { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +/** @default "taxable" */ +export enum ITaxStatusEnum4 { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +/** @default "instock" */ +export enum IStockStatusEnum4 { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +/** @default "no" */ +export enum IBackordersEnum4 { + No = "no", + Notify = "notify", + Yes = "yes", +} + +/** @default "view" */ +export enum IV3ProductsDetail2ParamsContextEnum { + View = "view", + Edit = "edit", +} + +export enum IStatusEnum11 { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum ITaxStatusEnum5 { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IStockStatusEnum5 { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IBackordersEnum5 { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsUpdate2ParamsStatusEnum { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum IV3ProductsUpdate2ParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsUpdate2ParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsUpdate2ParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsPartialUpdate2ParamsStatusEnum { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum IV3ProductsPartialUpdate2ParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsPartialUpdate2ParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsPartialUpdate2ParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IStatusEnum12 { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum ITaxStatusEnum6 { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IStockStatusEnum6 { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IBackordersEnum6 { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsVariationsBatchUpdateParamsStatusEnum { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum IV3ProductsVariationsBatchUpdateParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsVariationsBatchUpdateParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsVariationsBatchUpdateParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +export enum IV3ProductsVariationsBatchPartialUpdateParamsStatusEnum { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +export enum IV3ProductsVariationsBatchPartialUpdateParamsTaxStatusEnum { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +export enum IV3ProductsVariationsBatchPartialUpdateParamsStockStatusEnum { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +export enum IV3ProductsVariationsBatchPartialUpdateParamsBackordersEnum { + No = "no", + Notify = "notify", + Yes = "yes", +} + +/** @default "publish" */ +export enum IStatusEnum13 { + Draft = "draft", + Pending = "pending", + Private = "private", + Publish = "publish", +} + +/** @default "taxable" */ +export enum ITaxStatusEnum7 { + Taxable = "taxable", + Shipping = "shipping", + None = "none", +} + +/** @default "instock" */ +export enum IStockStatusEnum7 { + Instock = "instock", + Outofstock = "outofstock", + Onbackorder = "onbackorder", +} + +/** @default "no" */ +export enum IBackordersEnum7 { + No = "no", + Notify = "notify", + Yes = "yes", +} + +/** @default "view" */ +export enum IV3RefundsListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "desc" */ +export enum IV3RefundsListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "date" */ +export enum IV3RefundsListParamsOrderbyEnum { + Date = "date", + Id = "id", + Include = "include", + Title = "title", + Slug = "slug", + Modified = "modified", +} + +/** @default "view" */ +export enum IV3ReportsSalesListParamsContextEnum { + View = "view", +} + +export enum IV3ReportsSalesListParamsPeriodEnum { + Week = "week", + Month = "month", + LastMonth = "last_month", + Year = "year", +} + +/** @default "view" */ +export enum IV3ReportsTopSellersListParamsContextEnum { + View = "view", +} + +export enum IV3ReportsTopSellersListParamsPeriodEnum { + Week = "week", + Month = "month", + LastMonth = "last_month", + Year = "year", +} + +/** @default "view" */ +export enum IV3ReportsOrdersTotalsListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3ReportsProductsTotalsListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3ReportsCustomersTotalsListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3ReportsCouponsTotalsListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3ReportsReviewsTotalsListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3ReportsListParamsContextEnum { + View = "view", +} + +export enum ITypeEnum7 { + Postcode = "postcode", + State = "state", + Country = "country", + Continent = "continent", +} + +export enum IV3ShippingZonesLocationsUpdateParamsTypeEnum { + Postcode = "postcode", + State = "state", + Country = "country", + Continent = "continent", +} + +export enum IV3ShippingZonesLocationsPartialUpdateParamsTypeEnum { + Postcode = "postcode", + State = "state", + Country = "country", + Continent = "continent", +} + +/** @default "view" */ +export enum IV3TaxesClassesListParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } /** @default "view" */ -export enum IV2MenuLocationsDetailParamsContextEnum { +export enum IV3TaxesListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "asc" */ +export enum IV3TaxesListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "order" */ +export enum IV3TaxesListParamsOrderbyEnum { + Id = "id", + Order = "order", + Priority = "priority", +} + +export enum IV3TaxesListParamsClassEnum { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +/** @default "standard" */ +export enum IClassEnum { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +/** @default "view" */ +export enum IV3TaxesDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +export enum IClassEnum1 { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +export enum IV3TaxesUpdateParamsClassEnum { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +export enum IV3TaxesPartialUpdateParamsClassEnum { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +export enum IClassEnum2 { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +export enum IV3TaxesBatchUpdateParamsClassEnum { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +export enum IV3TaxesBatchPartialUpdateParamsClassEnum { + Standard = "standard", + ReducedRate = "reduced-rate", + ZeroRate = "zero-rate", +} + +/** @default "view" */ +export enum IV3WebhooksListParamsContextEnum { + View = "view", + Edit = "edit", +} + +/** @default "desc" */ +export enum IV3WebhooksListParamsOrderEnum { + Asc = "asc", + Desc = "desc", +} + +/** @default "date" */ +export enum IV3WebhooksListParamsOrderbyEnum { + Date = "date", + Id = "id", + Title = "title", +} + +/** @default "all" */ +export enum IV3WebhooksListParamsStatusEnum { + All = "all", + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +/** @default "active" */ +export enum IStatusEnum14 { + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +/** @default "view" */ +export enum IV3WebhooksDetailParamsContextEnum { + View = "view", + Edit = "edit", +} + +export enum IStatusEnum15 { + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +export enum IV3WebhooksUpdateParamsStatusEnum { + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +export enum IV3WebhooksPartialUpdateParamsStatusEnum { + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +export enum IStatusEnum16 { + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +export enum IV3WebhooksBatchUpdateParamsStatusEnum { + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +export enum IV3WebhooksBatchPartialUpdateParamsStatusEnum { + Active = "active", + Paused = "paused", + Disabled = "disabled", +} + +/** @default "view" */ +export enum IV3SystemStatusListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3SystemStatusToolsListParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } /** @default "view" */ -export enum IV2FontCollectionsListParamsContextEnum { +export enum IV3ShippingMethodsListParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3ShippingMethodsDetailParamsContextEnum { + View = "view", +} + +/** @default "view" */ +export enum IV3PaymentGatewaysListParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } /** @default "view" */ -export enum IV2FontCollectionsDetailParamsContextEnum { +export enum IV3PaymentGatewaysDetailParamsContextEnum { View = "view", - Embed = "embed", Edit = "edit", } +export enum ITemplateIdEnum { + NewOrder = "new_order", + CancelledOrder = "cancelled_order", + CustomerCancelledOrder = "customer_cancelled_order", + FailedOrder = "failed_order", + CustomerFailedOrder = "customer_failed_order", + CustomerOnHoldOrder = "customer_on_hold_order", + CustomerProcessingOrder = "customer_processing_order", + CustomerCompletedOrder = "customer_completed_order", + CustomerRefundedOrder = "customer_refunded_order", + CustomerInvoice = "customer_invoice", + CustomerNote = "customer_note", + CustomerResetPassword = "customer_reset_password", + CustomerNewAccount = "customer_new_account", + CustomerPosCompletedOrder = "customer_pos_completed_order", + CustomerPosRefundedOrder = "customer_pos_refunded_order", +} + export type QueryParamsType = Record; export type ResponseFormat = keyof Omit; @@ -2675,19 +3156,623 @@ export class HttpClient { export class Api< SecurityDataType extends unknown, > extends HttpClient { - wp = { + wc = { /** * No description * - * @tags posts - * @name V2PostsList - * @request GET:/wp/v2/posts + * @tags marketplace + * @name V3MarketplaceFeaturedList + * @request GET:/wc/v3/marketplace/featured * @secure */ - v2PostsList: ( + v3MarketplaceFeaturedList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/marketplace/featured`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceRefreshCreate + * @request POST:/wc/v3/marketplace/refresh + * @secure + */ + v3MarketplaceRefreshCreate: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/marketplace/refresh`, + method: "POST", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceSubscriptionsList + * @request GET:/wc/v3/marketplace/subscriptions + * @secure + */ + v3MarketplaceSubscriptionsList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/marketplace/subscriptions`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceSubscriptionsConnectCreate + * @request POST:/wc/v3/marketplace/subscriptions/connect + * @secure + */ + v3MarketplaceSubscriptionsConnectCreate: ( + data: { + product_key: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/marketplace/subscriptions/connect`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceSubscriptionsActivatePluginCreate + * @request POST:/wc/v3/marketplace/subscriptions/activate-plugin + * @secure + */ + v3MarketplaceSubscriptionsActivatePluginCreate: ( + data: { + product_key: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/marketplace/subscriptions/activate-plugin`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceSubscriptionsDisconnectCreate + * @request POST:/wc/v3/marketplace/subscriptions/disconnect + * @secure + */ + v3MarketplaceSubscriptionsDisconnectCreate: ( + data: { + product_key: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/marketplace/subscriptions/disconnect`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceSubscriptionsActivateCreate + * @request POST:/wc/v3/marketplace/subscriptions/activate + * @secure + */ + v3MarketplaceSubscriptionsActivateCreate: ( + data: { + product_key: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/marketplace/subscriptions/activate`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceSubscriptionsInstallUrlList + * @request GET:/wc/v3/marketplace/subscriptions/install-url + * @secure + */ + v3MarketplaceSubscriptionsInstallUrlList: ( + query: { + product_key: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/marketplace/subscriptions/install-url`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags marketplace + * @name V3MarketplaceCreateOrderCreate + * @request POST:/wc/v3/marketplace/create-order + * @secure + */ + v3MarketplaceCreateOrderCreate: ( + data: { + product_id: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/marketplace/create-order`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsList + * @request GET:/wc/v3/products/brands + * @secure + */ + v3ProductsBrandsList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PostsListParamsContextEnum[]; + context?: IV3ProductsBrandsListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific ids. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. Applies to hierarchical taxonomies only. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3ProductsBrandsListParamsOrderEnum[]; + /** Sort collection by resource attribute. */ + orderby?: IV3ProductsBrandsListParamsOrderbyEnum[]; + /** Whether to hide resources not assigned to any products. */ + hide_empty?: boolean; + /** + * Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only. + * @format int64 + */ + parent?: number; + /** + * Limit result set to resources assigned to a specific product. + * @format int64 + */ + product?: number; + /** Limit result set to resources with a specific slug. */ + slug?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsCreate + * @request POST:/wc/v3/products/brands + * @secure + */ + v3ProductsBrandsCreate: ( + data: { + /** Name for the resource. */ + name: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsDetail + * @request GET:/wc/v3/products/brands/{id} + * @secure + */ + v3ProductsBrandsDetail: ( + id: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsBrandsDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsCreate2 + * @request POST:/wc/v3/products/brands/{id} + * @originalName v3ProductsBrandsCreate + * @duplicate + * @secure + */ + v3ProductsBrandsCreate2: ( + id: number, + data: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IDisplayEnum1[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsUpdate + * @request PUT:/wc/v3/products/brands/{id} + * @secure + */ + v3ProductsBrandsUpdate: ( + id: number, + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsBrandsUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsPartialUpdate + * @request PATCH:/wc/v3/products/brands/{id} + * @secure + */ + v3ProductsBrandsPartialUpdate: ( + id: number, + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsBrandsPartialUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsDelete + * @request DELETE:/wc/v3/products/brands/{id} + * @secure + */ + v3ProductsBrandsDelete: ( + id: number, + query?: { + /** Required to be true, as resource does not support trashing. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/${id}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsBatchCreate + * @request POST:/wc/v3/products/brands/batch + * @secure + */ + v3ProductsBrandsBatchCreate: ( + data: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IDisplayEnum2[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsBatchUpdate + * @request PUT:/wc/v3/products/brands/batch + * @secure + */ + v3ProductsBrandsBatchUpdate: ( + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsBrandsBatchUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBrandsBatchPartialUpdate + * @request PATCH:/wc/v3/products/brands/batch + * @secure + */ + v3ProductsBrandsBatchPartialUpdate: ( + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsBrandsBatchPartialUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/brands/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsList + * @request GET:/wc/v3/coupons + * @secure + */ + v3CouponsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3CouponsListParamsContextEnum[]; /** * Current page of the collection. * @format int64 @@ -2704,71 +3789,47 @@ export class Api< /** Limit results to those matching a string. */ search?: string; /** - * Limit response to posts published after a given ISO8601 compliant date. + * Limit response to resources published after a given ISO8601 compliant date. * @format date-time */ after?: string; /** - * Limit response to posts modified after a given ISO8601 compliant date. - * @format date-time - */ - modified_after?: string; - /** Limit result set to posts assigned to specific authors. */ - author?: number[]; - /** Ensure result set excludes posts assigned to specific authors. */ - author_exclude?: number[]; - /** - * Limit response to posts published before a given ISO8601 compliant date. + * Limit response to resources published before a given ISO8601 compliant date. * @format date-time */ before?: string; /** - * Limit response to posts modified before a given ISO8601 compliant date. + * Limit response to resources modified after a given ISO8601 compliant date. + * @format date-time + */ + modified_after?: string; + /** + * Limit response to resources modified before a given ISO8601 compliant date. * @format date-time */ modified_before?: string; + /** Whether to consider GMT post dates when limiting response by published or modified date. */ + dates_are_gmt?: boolean; /** Ensure result set excludes specific IDs. */ exclude?: number[]; - /** Limit result set to specific IDs. */ + /** Limit result set to specific ids. */ include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2PostsListParamsSearchSemanticsEnum[]; /** * Offset the result set by a specific number of items. * @format int64 */ offset?: number; /** Order sort attribute ascending or descending. */ - order?: IV2PostsListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2PostsListParamsOrderbyEnum[]; - /** Array of column names to be searched. */ - search_columns?: string[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to posts assigned one or more statuses. */ - status?: string[]; - /** Limit result set based on relationship between multiple taxonomies. */ - tax_relation?: IV2PostsListParamsTaxRelationEnum[]; - /** Limit result set to items with specific terms assigned in the categories taxonomy. */ - categories?: string; - /** Limit result set to items except those with specific terms assigned in the categories taxonomy. */ - categories_exclude?: string; - /** Limit result set to items with specific terms assigned in the tags taxonomy. */ - tags?: string; - /** Limit result set to items except those with specific terms assigned in the tags taxonomy. */ - tags_exclude?: string; - /** Limit result set to items that are sticky. */ - sticky?: boolean; - /** Whether to ignore sticky posts or not. */ - ignore_sticky?: boolean; - /** Limit result set to items assigned one or more given formats. */ - format?: string[]; + order?: IV3CouponsListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3CouponsListParamsOrderbyEnum[]; + /** Limit result set to resources with a specific code. */ + code?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts`, + path: `/wc/v3/coupons`, method: "GET", query: query, secure: true, @@ -2779,66 +3840,1446 @@ export class Api< /** * No description * - * @tags posts - * @name V2PostsCreate - * @request POST:/wp/v2/posts + * @tags coupons + * @name V3CouponsCreate + * @request POST:/wc/v3/coupons * @secure */ - v2PostsCreate: ( + v3CouponsCreate: ( + data: { + /** Coupon code. */ + code: string; + /** The amount of discount. Should always be numeric, even if setting a percentage. */ + amount?: string; + /** The status of the coupon. Should always be draft, published, or pending review */ + status?: string; + /** Determines the type of discount that will be applied. */ + discount_type?: IDiscountTypeEnum[]; + /** Coupon description. */ + description?: string; + /** The date the coupon expires, in the site's timezone. */ + date_expires?: null; + /** The date the coupon expires, as GMT. */ + date_expires_gmt?: null; + /** If true, the coupon can only be used individually. Other applied coupons will be removed from the cart. */ + individual_use?: boolean; + /** List of product IDs the coupon can be used on. */ + product_ids?: number[]; + /** List of product IDs the coupon cannot be used on. */ + excluded_product_ids?: number[]; + /** + * How many times the coupon can be used in total. + * @format int64 + */ + usage_limit?: number; + /** + * How many times the coupon can be used per customer. + * @format int64 + */ + usage_limit_per_user?: number; + /** + * Max number of items in the cart the coupon can be applied to. + * @format int64 + */ + limit_usage_to_x_items?: number; + /** If true and if the free shipping method requires a coupon, this coupon will enable free shipping. */ + free_shipping?: boolean; + /** List of category IDs the coupon applies to. */ + product_categories?: number[]; + /** List of category IDs the coupon does not apply to. */ + excluded_product_categories?: number[]; + /** If true, this coupon will not be applied to items that have sale prices. */ + exclude_sale_items?: boolean; + /** Minimum order amount that needs to be in the cart before coupon applies. */ + minimum_amount?: string; + /** Maximum order amount allowed when using the coupon. */ + maximum_amount?: string; + /** List of email addresses that can use this coupon. */ + email_restrictions?: string[]; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsDetail + * @request GET:/wc/v3/coupons/{id} + * @secure + */ + v3CouponsDetail: ( + id: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3CouponsDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsCreate2 + * @request POST:/wc/v3/coupons/{id} + * @originalName v3CouponsCreate + * @duplicate + * @secure + */ + v3CouponsCreate2: ( + id: number, + data: { + /** Coupon code. */ + code?: string; + /** The amount of discount. Should always be numeric, even if setting a percentage. */ + amount?: string; + /** The status of the coupon. Should always be draft, published, or pending review */ + status?: string; + /** Determines the type of discount that will be applied. */ + discount_type?: IDiscountTypeEnum1[]; + /** Coupon description. */ + description?: string; + /** The date the coupon expires, in the site's timezone. */ + date_expires?: null; + /** The date the coupon expires, as GMT. */ + date_expires_gmt?: null; + /** If true, the coupon can only be used individually. Other applied coupons will be removed from the cart. */ + individual_use?: boolean; + /** List of product IDs the coupon can be used on. */ + product_ids?: number[]; + /** List of product IDs the coupon cannot be used on. */ + excluded_product_ids?: number[]; + /** + * How many times the coupon can be used in total. + * @format int64 + */ + usage_limit?: number; + /** + * How many times the coupon can be used per customer. + * @format int64 + */ + usage_limit_per_user?: number; + /** + * Max number of items in the cart the coupon can be applied to. + * @format int64 + */ + limit_usage_to_x_items?: number; + /** If true and if the free shipping method requires a coupon, this coupon will enable free shipping. */ + free_shipping?: boolean; + /** List of category IDs the coupon applies to. */ + product_categories?: number[]; + /** List of category IDs the coupon does not apply to. */ + excluded_product_categories?: number[]; + /** If true, this coupon will not be applied to items that have sale prices. */ + exclude_sale_items?: boolean; + /** Minimum order amount that needs to be in the cart before coupon applies. */ + minimum_amount?: string; + /** Maximum order amount allowed when using the coupon. */ + maximum_amount?: string; + /** List of email addresses that can use this coupon. */ + email_restrictions?: string[]; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsUpdate + * @request PUT:/wc/v3/coupons/{id} + * @secure + */ + v3CouponsUpdate: ( + id: number, + query?: { + /** Coupon code. */ + code?: string; + /** The amount of discount. Should always be numeric, even if setting a percentage. */ + amount?: string; + /** The status of the coupon. Should always be draft, published, or pending review */ + status?: string; + /** Determines the type of discount that will be applied. */ + discount_type?: IV3CouponsUpdateParamsDiscountTypeEnum[]; + /** Coupon description. */ + description?: string; + /** The date the coupon expires, in the site's timezone. */ + date_expires?: any; + /** The date the coupon expires, as GMT. */ + date_expires_gmt?: any; + /** If true, the coupon can only be used individually. Other applied coupons will be removed from the cart. */ + individual_use?: boolean; + /** List of product IDs the coupon can be used on. */ + product_ids?: number[]; + /** List of product IDs the coupon cannot be used on. */ + excluded_product_ids?: number[]; + /** + * How many times the coupon can be used in total. + * @format int64 + */ + usage_limit?: number; + /** + * How many times the coupon can be used per customer. + * @format int64 + */ + usage_limit_per_user?: number; + /** + * Max number of items in the cart the coupon can be applied to. + * @format int64 + */ + limit_usage_to_x_items?: number; + /** If true and if the free shipping method requires a coupon, this coupon will enable free shipping. */ + free_shipping?: boolean; + /** List of category IDs the coupon applies to. */ + product_categories?: number[]; + /** List of category IDs the coupon does not apply to. */ + excluded_product_categories?: number[]; + /** If true, this coupon will not be applied to items that have sale prices. */ + exclude_sale_items?: boolean; + /** Minimum order amount that needs to be in the cart before coupon applies. */ + minimum_amount?: string; + /** Maximum order amount allowed when using the coupon. */ + maximum_amount?: string; + /** List of email addresses that can use this coupon. */ + email_restrictions?: string[]; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsPartialUpdate + * @request PATCH:/wc/v3/coupons/{id} + * @secure + */ + v3CouponsPartialUpdate: ( + id: number, + query?: { + /** Coupon code. */ + code?: string; + /** The amount of discount. Should always be numeric, even if setting a percentage. */ + amount?: string; + /** The status of the coupon. Should always be draft, published, or pending review */ + status?: string; + /** Determines the type of discount that will be applied. */ + discount_type?: IV3CouponsPartialUpdateParamsDiscountTypeEnum[]; + /** Coupon description. */ + description?: string; + /** The date the coupon expires, in the site's timezone. */ + date_expires?: any; + /** The date the coupon expires, as GMT. */ + date_expires_gmt?: any; + /** If true, the coupon can only be used individually. Other applied coupons will be removed from the cart. */ + individual_use?: boolean; + /** List of product IDs the coupon can be used on. */ + product_ids?: number[]; + /** List of product IDs the coupon cannot be used on. */ + excluded_product_ids?: number[]; + /** + * How many times the coupon can be used in total. + * @format int64 + */ + usage_limit?: number; + /** + * How many times the coupon can be used per customer. + * @format int64 + */ + usage_limit_per_user?: number; + /** + * Max number of items in the cart the coupon can be applied to. + * @format int64 + */ + limit_usage_to_x_items?: number; + /** If true and if the free shipping method requires a coupon, this coupon will enable free shipping. */ + free_shipping?: boolean; + /** List of category IDs the coupon applies to. */ + product_categories?: number[]; + /** List of category IDs the coupon does not apply to. */ + excluded_product_categories?: number[]; + /** If true, this coupon will not be applied to items that have sale prices. */ + exclude_sale_items?: boolean; + /** Minimum order amount that needs to be in the cart before coupon applies. */ + minimum_amount?: string; + /** Maximum order amount allowed when using the coupon. */ + maximum_amount?: string; + /** List of email addresses that can use this coupon. */ + email_restrictions?: string[]; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsDelete + * @request DELETE:/wc/v3/coupons/{id} + * @secure + */ + v3CouponsDelete: ( + id: number, + query?: { + /** Whether to bypass trash and force deletion. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/${id}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsBatchCreate + * @request POST:/wc/v3/coupons/batch + * @secure + */ + v3CouponsBatchCreate: ( + data: { + /** Coupon code. */ + code?: string; + /** The amount of discount. Should always be numeric, even if setting a percentage. */ + amount?: string; + /** The status of the coupon. Should always be draft, published, or pending review */ + status?: string; + /** Determines the type of discount that will be applied. */ + discount_type?: IDiscountTypeEnum2[]; + /** Coupon description. */ + description?: string; + /** The date the coupon expires, in the site's timezone. */ + date_expires?: null; + /** The date the coupon expires, as GMT. */ + date_expires_gmt?: null; + /** If true, the coupon can only be used individually. Other applied coupons will be removed from the cart. */ + individual_use?: boolean; + /** List of product IDs the coupon can be used on. */ + product_ids?: number[]; + /** List of product IDs the coupon cannot be used on. */ + excluded_product_ids?: number[]; + /** + * How many times the coupon can be used in total. + * @format int64 + */ + usage_limit?: number; + /** + * How many times the coupon can be used per customer. + * @format int64 + */ + usage_limit_per_user?: number; + /** + * Max number of items in the cart the coupon can be applied to. + * @format int64 + */ + limit_usage_to_x_items?: number; + /** If true and if the free shipping method requires a coupon, this coupon will enable free shipping. */ + free_shipping?: boolean; + /** List of category IDs the coupon applies to. */ + product_categories?: number[]; + /** List of category IDs the coupon does not apply to. */ + excluded_product_categories?: number[]; + /** If true, this coupon will not be applied to items that have sale prices. */ + exclude_sale_items?: boolean; + /** Minimum order amount that needs to be in the cart before coupon applies. */ + minimum_amount?: string; + /** Maximum order amount allowed when using the coupon. */ + maximum_amount?: string; + /** List of email addresses that can use this coupon. */ + email_restrictions?: string[]; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsBatchUpdate + * @request PUT:/wc/v3/coupons/batch + * @secure + */ + v3CouponsBatchUpdate: ( + query?: { + /** Coupon code. */ + code?: string; + /** The amount of discount. Should always be numeric, even if setting a percentage. */ + amount?: string; + /** The status of the coupon. Should always be draft, published, or pending review */ + status?: string; + /** Determines the type of discount that will be applied. */ + discount_type?: IV3CouponsBatchUpdateParamsDiscountTypeEnum[]; + /** Coupon description. */ + description?: string; + /** The date the coupon expires, in the site's timezone. */ + date_expires?: any; + /** The date the coupon expires, as GMT. */ + date_expires_gmt?: any; + /** If true, the coupon can only be used individually. Other applied coupons will be removed from the cart. */ + individual_use?: boolean; + /** List of product IDs the coupon can be used on. */ + product_ids?: number[]; + /** List of product IDs the coupon cannot be used on. */ + excluded_product_ids?: number[]; + /** + * How many times the coupon can be used in total. + * @format int64 + */ + usage_limit?: number; + /** + * How many times the coupon can be used per customer. + * @format int64 + */ + usage_limit_per_user?: number; + /** + * Max number of items in the cart the coupon can be applied to. + * @format int64 + */ + limit_usage_to_x_items?: number; + /** If true and if the free shipping method requires a coupon, this coupon will enable free shipping. */ + free_shipping?: boolean; + /** List of category IDs the coupon applies to. */ + product_categories?: number[]; + /** List of category IDs the coupon does not apply to. */ + excluded_product_categories?: number[]; + /** If true, this coupon will not be applied to items that have sale prices. */ + exclude_sale_items?: boolean; + /** Minimum order amount that needs to be in the cart before coupon applies. */ + minimum_amount?: string; + /** Maximum order amount allowed when using the coupon. */ + maximum_amount?: string; + /** List of email addresses that can use this coupon. */ + email_restrictions?: string[]; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags coupons + * @name V3CouponsBatchPartialUpdate + * @request PATCH:/wc/v3/coupons/batch + * @secure + */ + v3CouponsBatchPartialUpdate: ( + query?: { + /** Coupon code. */ + code?: string; + /** The amount of discount. Should always be numeric, even if setting a percentage. */ + amount?: string; + /** The status of the coupon. Should always be draft, published, or pending review */ + status?: string; + /** Determines the type of discount that will be applied. */ + discount_type?: IV3CouponsBatchPartialUpdateParamsDiscountTypeEnum[]; + /** Coupon description. */ + description?: string; + /** The date the coupon expires, in the site's timezone. */ + date_expires?: any; + /** The date the coupon expires, as GMT. */ + date_expires_gmt?: any; + /** If true, the coupon can only be used individually. Other applied coupons will be removed from the cart. */ + individual_use?: boolean; + /** List of product IDs the coupon can be used on. */ + product_ids?: number[]; + /** List of product IDs the coupon cannot be used on. */ + excluded_product_ids?: number[]; + /** + * How many times the coupon can be used in total. + * @format int64 + */ + usage_limit?: number; + /** + * How many times the coupon can be used per customer. + * @format int64 + */ + usage_limit_per_user?: number; + /** + * Max number of items in the cart the coupon can be applied to. + * @format int64 + */ + limit_usage_to_x_items?: number; + /** If true and if the free shipping method requires a coupon, this coupon will enable free shipping. */ + free_shipping?: boolean; + /** List of category IDs the coupon applies to. */ + product_categories?: number[]; + /** List of category IDs the coupon does not apply to. */ + excluded_product_categories?: number[]; + /** If true, this coupon will not be applied to items that have sale prices. */ + exclude_sale_items?: boolean; + /** Minimum order amount that needs to be in the cart before coupon applies. */ + minimum_amount?: string; + /** Maximum order amount allowed when using the coupon. */ + maximum_amount?: string; + /** List of email addresses that can use this coupon. */ + email_restrictions?: string[]; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/coupons/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersDownloadsList + * @request GET:/wc/v3/customers/{customer_id}/downloads + * @secure + */ + v3CustomersDownloadsList: ( + customerId: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3CustomersDownloadsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/${customerId}/downloads`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersList + * @request GET:/wc/v3/customers + * @secure + */ + v3CustomersList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3CustomersListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific IDs. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3CustomersListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3CustomersListParamsOrderbyEnum[]; + /** + * Limit result set to resources with a specific email. + * @format email + */ + email?: string; + /** Limit result set to resources with a specific role. */ + role?: IV3CustomersListParamsRoleEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersCreate + * @request POST:/wc/v3/customers + * @secure + */ + v3CustomersCreate: ( + data: { + /** New user email address. */ + email: string; + /** Customer first name. */ + first_name?: string; + /** Customer last name. */ + last_name?: string; + /** New user username. */ + username?: string; + /** New user password. */ + password?: string; + /** List of billing address data. */ + billing?: string; + /** List of shipping address data. */ + shipping?: string; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersDetail + * @request GET:/wc/v3/customers/{id} + * @secure + */ + v3CustomersDetail: ( + id: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3CustomersDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersCreate2 + * @request POST:/wc/v3/customers/{id} + * @originalName v3CustomersCreate + * @duplicate + * @secure + */ + v3CustomersCreate2: ( + id: number, data: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * The email address for the customer. + * @format email */ - date?: string; + email?: string; + /** Customer first name. */ + first_name?: string; + /** Customer last name. */ + last_name?: string; + /** Customer login name. */ + username?: string; + /** Customer password. */ + password?: string; + /** List of billing address data. */ + billing?: string; + /** List of shipping address data. */ + shipping?: string; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersUpdate + * @request PUT:/wc/v3/customers/{id} + * @secure + */ + v3CustomersUpdate: ( + id: number, + query?: { /** - * The date the post was published, as GMT. + * The email address for the customer. + * @format email + */ + email?: string; + /** Customer first name. */ + first_name?: string; + /** Customer last name. */ + last_name?: string; + /** Customer login name. */ + username?: string; + /** Customer password. */ + password?: string; + /** List of billing address data. */ + billing?: string; + /** List of shipping address data. */ + shipping?: string; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersPartialUpdate + * @request PATCH:/wc/v3/customers/{id} + * @secure + */ + v3CustomersPartialUpdate: ( + id: number, + query?: { + /** + * The email address for the customer. + * @format email + */ + email?: string; + /** Customer first name. */ + first_name?: string; + /** Customer last name. */ + last_name?: string; + /** Customer login name. */ + username?: string; + /** Customer password. */ + password?: string; + /** List of billing address data. */ + billing?: string; + /** List of shipping address data. */ + shipping?: string; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersDelete + * @request DELETE:/wc/v3/customers/{id} + * @secure + */ + v3CustomersDelete: ( + id: number, + query?: { + /** Required to be true, as resource does not support trashing. */ + force?: boolean; + /** + * ID to reassign posts to. + * @format int64 + */ + reassign?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/${id}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersBatchCreate + * @request POST:/wc/v3/customers/batch + * @secure + */ + v3CustomersBatchCreate: ( + data: { + /** + * The email address for the customer. + * @format email + */ + email?: string; + /** Customer first name. */ + first_name?: string; + /** Customer last name. */ + last_name?: string; + /** Customer login name. */ + username?: string; + /** Customer password. */ + password?: string; + /** List of billing address data. */ + billing?: string; + /** List of shipping address data. */ + shipping?: string; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersBatchUpdate + * @request PUT:/wc/v3/customers/batch + * @secure + */ + v3CustomersBatchUpdate: ( + query?: { + /** + * The email address for the customer. + * @format email + */ + email?: string; + /** Customer first name. */ + first_name?: string; + /** Customer last name. */ + last_name?: string; + /** Customer login name. */ + username?: string; + /** Customer password. */ + password?: string; + /** List of billing address data. */ + billing?: string; + /** List of shipping address data. */ + shipping?: string; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags customers + * @name V3CustomersBatchPartialUpdate + * @request PATCH:/wc/v3/customers/batch + * @secure + */ + v3CustomersBatchPartialUpdate: ( + query?: { + /** + * The email address for the customer. + * @format email + */ + email?: string; + /** Customer first name. */ + first_name?: string; + /** Customer last name. */ + last_name?: string; + /** Customer login name. */ + username?: string; + /** Customer password. */ + password?: string; + /** List of billing address data. */ + billing?: string; + /** List of shipping address data. */ + shipping?: string; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/customers/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags layout-templates + * @name V3LayoutTemplatesList + * @request GET:/wc/v3/layout-templates + * @secure + */ + v3LayoutTemplatesList: ( + query?: { + /** Area to get templates for. */ + area?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/layout-templates`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags layout-templates + * @name V3LayoutTemplatesDetail + * @request GET:/wc/v3/layout-templates/{id} + * @secure + */ + v3LayoutTemplatesDetail: (id: string, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/layout-templates/${id}`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersNotesList + * @request GET:/wc/v3/orders/{order_id}/notes + * @secure + */ + v3OrdersNotesList: ( + orderId: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3OrdersNotesListParamsContextEnum[]; + /** Limit result to customers or internal notes. */ + type?: IV3OrdersNotesListParamsTypeEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${orderId}/notes`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersNotesCreate + * @request POST:/wc/v3/orders/{order_id}/notes + * @secure + */ + v3OrdersNotesCreate: ( + orderId: number, + data: { + /** Order note content. */ + note: string; + /** If true, the note will be shown to customers and they will be notified. If false, the note will be for admin reference only. */ + customer_note?: boolean; + /** If true, this note will be attributed to the current user. If false, the note will be attributed to the system. */ + added_by_user?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${orderId}/notes`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersDetail + * @request GET:/wc/v3/orders/{order_id} + * @secure + */ + v3OrdersDetail: ( + orderId: number, + query?: { + /** + * Unique identifier for the resource. + * @format int64 + */ + id?: number; + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3OrdersDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${orderId}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersDelete + * @request DELETE:/wc/v3/orders/{order_id} + * @secure + */ + v3OrdersDelete: ( + orderId: number, + query?: { + /** + * Unique identifier for the resource. + * @format int64 + */ + id?: number; + /** Required to be true, as resource does not support trashing. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${orderId}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersRefundsList + * @request GET:/wc/v3/orders/{order_id}/refunds + * @secure + */ + v3OrdersRefundsList: ( + orderId: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3OrdersRefundsListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** + * Limit response to resources published after a given ISO8601 compliant date. * @format date-time */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ + after?: string; + /** + * Limit response to resources published before a given ISO8601 compliant date. + * @format date-time + */ + before?: string; + /** + * Limit response to resources modified after a given ISO8601 compliant date. + * @format date-time + */ + modified_after?: string; + /** + * Limit response to resources modified before a given ISO8601 compliant date. + * @format date-time + */ + modified_before?: string; + /** Whether to consider GMT post dates when limiting response by published or modified date. */ + dates_are_gmt?: boolean; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific ids. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3OrdersRefundsListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3OrdersRefundsListParamsOrderbyEnum[]; + /** Limit result set to those of particular parent IDs. */ + parent?: number[]; + /** Limit result set to all items except those of a particular parent ID. */ + parent_exclude?: number[]; + /** + * Number of decimal points to use in each resource. + * @format int64 + */ + dp?: number; + /** Only show meta which is meant to be displayed for an order. */ + order_item_display_meta?: boolean; + /** Limit meta_data to specific keys. */ + include_meta?: string[]; + /** Ensure meta_data excludes specific keys. */ + exclude_meta?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${orderId}/refunds`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersRefundsCreate + * @request POST:/wc/v3/orders/{order_id}/refunds + * @secure + */ + v3OrdersRefundsCreate: ( + orderId: number, + data: { + /** Refund amount. */ + amount?: string; + /** Reason for refund. */ + reason?: string; + /** + * User ID of user who created the refund. + * @format int64 + */ + refunded_by?: number; + /** Meta data. */ + meta_data?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** When true, the payment gateway API is used to generate the refund. */ + api_refund?: boolean; + /** When true, refunded items are restocked. */ + api_restock?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${orderId}/refunds`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersList + * @request GET:/wc/v3/orders + * @secure + */ + v3OrdersList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3OrdersListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** + * Limit response to resources published after a given ISO8601 compliant date. + * @format date-time + */ + after?: string; + /** + * Limit response to resources published before a given ISO8601 compliant date. + * @format date-time + */ + before?: string; + /** + * Limit response to resources modified after a given ISO8601 compliant date. + * @format date-time + */ + modified_after?: string; + /** + * Limit response to resources modified before a given ISO8601 compliant date. + * @format date-time + */ + modified_before?: string; + /** Whether to consider GMT post dates when limiting response by published or modified date. */ + dates_are_gmt?: boolean; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific ids. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3OrdersListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3OrdersListParamsOrderbyEnum[]; + /** Limit result set to those of particular parent IDs. */ + parent?: number[]; + /** Limit result set to all items except those of a particular parent ID. */ + parent_exclude?: number[]; + /** Limit result set to orders which have specific statuses. */ + status?: string[]; + /** + * Limit result set to orders assigned a specific customer. + * @format int64 + */ + customer?: number; + /** + * Limit result set to orders assigned a specific product. + * @format int64 + */ + product?: number; + /** + * Number of decimal points to use in each resource. + * @format int64 + */ + dp?: number; + /** Only show meta which is meant to be displayed for an order. */ + order_item_display_meta?: boolean; + /** Limit meta_data to specific keys. */ + include_meta?: string[]; + /** Ensure meta_data excludes specific keys. */ + exclude_meta?: string[]; + /** Limit result set to orders created via specific sources (e.g. checkout, admin). */ + created_via?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersCreate + * @request POST:/wc/v3/orders + * @secure + */ + v3OrdersCreate: ( + data: { + /** + * Parent order ID. + * @format int64 + */ + parent_id?: number; + /** Shows where the order was created. */ + created_via?: string; + /** Order status. */ status?: IStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; + /** Currency the order was created with, in ISO format. */ + currency?: ICurrencyEnum[]; /** - * The ID for the author of the post. + * User ID who owns the order. 0 for guests. * @format int64 */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum[]; - /** The format for the post. */ - format?: IFormatEnum[]; - /** Meta fields. */ - meta?: string; - /** Whether or not the post should be treated as sticky. */ - sticky?: boolean; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the category taxonomy. */ - categories?: number[]; - /** The terms assigned to the post in the post_tag taxonomy. */ - tags?: number[]; + customer_id?: number; + /** Note left by customer during checkout. */ + customer_note?: string; + /** Billing address. */ + billing?: string; + /** Shipping address. */ + shipping?: string; + /** Payment method ID. */ + payment_method?: string; + /** Payment method title. */ + payment_method_title?: string; + /** Unique transaction ID. */ + transaction_id?: string; + /** Meta data. */ + meta_data?: object[]; + /** Line items data. */ + line_items?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** Coupons line data. */ + coupon_lines?: object[]; + /** Define if the order is paid. It will set the status to processing and reduce stock items. */ + set_paid?: boolean; + /** Set the action as manual so that the order note registers as "added by user". */ + manual_update?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts`, + path: `/wc/v3/orders`, method: "POST", body: data, secure: true, @@ -2849,28 +5290,23 @@ export class Api< /** * No description * - * @tags posts - * @name V2PostsDetail - * @request GET:/wp/v2/posts/{id} + * @tags orders + * @name V3OrdersDetail2 + * @request GET:/wc/v3/orders/{id} + * @originalName v3OrdersDetail + * @duplicate * @secure */ - v2PostsDetail: ( + v3OrdersDetail2: ( id: number, query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PostsDetailParamsContextEnum[]; - /** - * Override the default excerpt length. - * @format int64 - */ - excerpt_length?: number; - /** The password for the post if it is password protected. */ - password?: string; + context?: IV3OrdersDetail2ParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts/${id}`, + path: `/wc/v3/orders/${id}`, method: "GET", query: query, secure: true, @@ -2881,69 +5317,63 @@ export class Api< /** * No description * - * @tags posts - * @name V2PostsCreate2 - * @request POST:/wp/v2/posts/{id} - * @originalName v2PostsCreate + * @tags orders + * @name V3OrdersCreate2 + * @request POST:/wc/v3/orders/{id} + * @originalName v3OrdersCreate * @duplicate * @secure */ - v2PostsCreate2: ( + v3OrdersCreate2: ( id: number, data: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * Parent order ID. + * @format int64 */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ + parent_id?: number; + /** Shows where the order was created. */ + created_via?: string; + /** Order status. */ status?: IStatusEnum1[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; + /** Currency the order was created with, in ISO format. */ + currency?: ICurrencyEnum1[]; /** - * The ID for the author of the post. + * User ID who owns the order. 0 for guests. * @format int64 */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum1[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum1[]; - /** The format for the post. */ - format?: IFormatEnum1[]; - /** Meta fields. */ - meta?: string; - /** Whether or not the post should be treated as sticky. */ - sticky?: boolean; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the category taxonomy. */ - categories?: number[]; - /** The terms assigned to the post in the post_tag taxonomy. */ - tags?: number[]; + customer_id?: number; + /** Note left by customer during checkout. */ + customer_note?: string; + /** Billing address. */ + billing?: string; + /** Shipping address. */ + shipping?: string; + /** Payment method ID. */ + payment_method?: string; + /** Payment method title. */ + payment_method_title?: string; + /** Unique transaction ID. */ + transaction_id?: string; + /** Meta data. */ + meta_data?: object[]; + /** Line items data. */ + line_items?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** Coupons line data. */ + coupon_lines?: object[]; + /** Define if the order is paid. It will set the status to processing and reduce stock items. */ + set_paid?: boolean; + /** Set the action as manual so that the order note registers as "added by user". */ + manual_update?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts/${id}`, + path: `/wc/v3/orders/${id}`, method: "POST", body: data, secure: true, @@ -2954,67 +5384,61 @@ export class Api< /** * No description * - * @tags posts - * @name V2PostsUpdate - * @request PUT:/wp/v2/posts/{id} + * @tags orders + * @name V3OrdersUpdate + * @request PUT:/wc/v3/orders/{id} * @secure */ - v2PostsUpdate: ( + v3OrdersUpdate: ( id: number, query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2PostsUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** - * The ID for the author of the post. + * Parent order ID. * @format int64 */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; + parent_id?: number; + /** Shows where the order was created. */ + created_via?: string; + /** Order status. */ + status?: IV3OrdersUpdateParamsStatusEnum[]; + /** Currency the order was created with, in ISO format. */ + currency?: IV3OrdersUpdateParamsCurrencyEnum[]; /** - * The ID of the featured media for the post. + * User ID who owns the order. 0 for guests. * @format int64 */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2PostsUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2PostsUpdateParamsPingStatusEnum[]; - /** The format for the post. */ - format?: IV2PostsUpdateParamsFormatEnum[]; - /** Meta fields. */ - meta?: string; - /** Whether or not the post should be treated as sticky. */ - sticky?: boolean; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the category taxonomy. */ - categories?: number[]; - /** The terms assigned to the post in the post_tag taxonomy. */ - tags?: number[]; + customer_id?: number; + /** Note left by customer during checkout. */ + customer_note?: string; + /** Billing address. */ + billing?: string; + /** Shipping address. */ + shipping?: string; + /** Payment method ID. */ + payment_method?: string; + /** Payment method title. */ + payment_method_title?: string; + /** Unique transaction ID. */ + transaction_id?: string; + /** Meta data. */ + meta_data?: object[]; + /** Line items data. */ + line_items?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** Coupons line data. */ + coupon_lines?: object[]; + /** Define if the order is paid. It will set the status to processing and reduce stock items. */ + set_paid?: boolean; + /** Set the action as manual so that the order note registers as "added by user". */ + manual_update?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts/${id}`, + path: `/wc/v3/orders/${id}`, method: "PUT", query: query, secure: true, @@ -3025,67 +5449,61 @@ export class Api< /** * No description * - * @tags posts - * @name V2PostsPartialUpdate - * @request PATCH:/wp/v2/posts/{id} + * @tags orders + * @name V3OrdersPartialUpdate + * @request PATCH:/wc/v3/orders/{id} * @secure */ - v2PostsPartialUpdate: ( + v3OrdersPartialUpdate: ( id: number, query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2PostsPartialUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** - * The ID for the author of the post. + * Parent order ID. * @format int64 */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; + parent_id?: number; + /** Shows where the order was created. */ + created_via?: string; + /** Order status. */ + status?: IV3OrdersPartialUpdateParamsStatusEnum[]; + /** Currency the order was created with, in ISO format. */ + currency?: IV3OrdersPartialUpdateParamsCurrencyEnum[]; /** - * The ID of the featured media for the post. + * User ID who owns the order. 0 for guests. * @format int64 */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2PostsPartialUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2PostsPartialUpdateParamsPingStatusEnum[]; - /** The format for the post. */ - format?: IV2PostsPartialUpdateParamsFormatEnum[]; - /** Meta fields. */ - meta?: string; - /** Whether or not the post should be treated as sticky. */ - sticky?: boolean; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the category taxonomy. */ - categories?: number[]; - /** The terms assigned to the post in the post_tag taxonomy. */ - tags?: number[]; + customer_id?: number; + /** Note left by customer during checkout. */ + customer_note?: string; + /** Billing address. */ + billing?: string; + /** Shipping address. */ + shipping?: string; + /** Payment method ID. */ + payment_method?: string; + /** Payment method title. */ + payment_method_title?: string; + /** Unique transaction ID. */ + transaction_id?: string; + /** Meta data. */ + meta_data?: object[]; + /** Line items data. */ + line_items?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** Coupons line data. */ + coupon_lines?: object[]; + /** Define if the order is paid. It will set the status to processing and reduce stock items. */ + set_paid?: boolean; + /** Set the action as manual so that the order note registers as "added by user". */ + manual_update?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts/${id}`, + path: `/wc/v3/orders/${id}`, method: "PATCH", query: query, secure: true, @@ -3096,21 +5514,23 @@ export class Api< /** * No description * - * @tags posts - * @name V2PostsDelete - * @request DELETE:/wp/v2/posts/{id} + * @tags orders + * @name V3OrdersDelete2 + * @request DELETE:/wc/v3/orders/{id} + * @originalName v3OrdersDelete + * @duplicate * @secure */ - v2PostsDelete: ( + v3OrdersDelete2: ( id: number, query?: { - /** Whether to bypass Trash and force deletion. */ + /** Whether to bypass trash and force deletion. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts/${id}`, + path: `/wc/v3/orders/${id}`, method: "DELETE", query: query, secure: true, @@ -3121,352 +5541,60 @@ export class Api< /** * No description * - * @tags posts - * @name V2PostsRevisionsList - * @request GET:/wp/v2/posts/{parent}/revisions + * @tags orders + * @name V3OrdersBatchCreate + * @request POST:/wc/v3/orders/batch * @secure */ - v2PostsRevisionsList: ( - parent: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PostsRevisionsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2PostsRevisionsListParamsOrderEnum[]; - /** Sort collection by object attribute. */ - orderby?: IV2PostsRevisionsListParamsOrderbyEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/posts/${parent}/revisions`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags posts - * @name V2PostsDetail2 - * @request GET:/wp/v2/posts/{parent} - * @originalName v2PostsDetail - * @duplicate - * @secure - */ - v2PostsDetail2: ( - parent: number, - query?: { - /** - * The ID for the autosave. - * @format int64 - */ - id?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PostsDetail2ParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/posts/${parent}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags posts - * @name V2PostsAutosavesList - * @request GET:/wp/v2/posts/{id}/autosaves - * @secure - */ - v2PostsAutosavesList: ( - id: number, - query?: { - /** - * The ID for the parent of the autosave. - * @format int64 - */ - parent?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PostsAutosavesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/posts/${id}/autosaves`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags posts - * @name V2PostsAutosavesCreate - * @request POST:/wp/v2/posts/{id}/autosaves - * @secure - */ - v2PostsAutosavesCreate: ( - id: number, + v3OrdersBatchCreate: ( data: { /** - * The ID for the parent of the autosave. + * Parent order ID. * @format int64 */ - parent?: number; - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ + parent_id?: number; + /** Shows where the order was created. */ + created_via?: string; + /** Order status. */ status?: IStatusEnum2[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; + /** Currency the order was created with, in ISO format. */ + currency?: ICurrencyEnum2[]; /** - * The ID for the author of the post. + * User ID who owns the order. 0 for guests. * @format int64 */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum2[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum2[]; - /** The format for the post. */ - format?: IFormatEnum2[]; - /** Meta fields. */ - meta?: string; - /** Whether or not the post should be treated as sticky. */ - sticky?: boolean; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the category taxonomy. */ - categories?: number[]; - /** The terms assigned to the post in the post_tag taxonomy. */ - tags?: number[]; + customer_id?: number; + /** Note left by customer during checkout. */ + customer_note?: string; + /** Billing address. */ + billing?: string; + /** Shipping address. */ + shipping?: string; + /** Payment method ID. */ + payment_method?: string; + /** Payment method title. */ + payment_method_title?: string; + /** Unique transaction ID. */ + transaction_id?: string; + /** Meta data. */ + meta_data?: object[]; + /** Line items data. */ + line_items?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** Coupons line data. */ + coupon_lines?: object[]; + /** Define if the order is paid. It will set the status to processing and reduce stock items. */ + set_paid?: boolean; + /** Set the action as manual so that the order note registers as "added by user". */ + manual_update?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/posts/${id}/autosaves`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags pages - * @name V2PagesList - * @request GET:/wp/v2/pages - * @secure - */ - v2PagesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PagesListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** - * Limit response to posts published after a given ISO8601 compliant date. - * @format date-time - */ - after?: string; - /** - * Limit response to posts modified after a given ISO8601 compliant date. - * @format date-time - */ - modified_after?: string; - /** Limit result set to posts assigned to specific authors. */ - author?: number[]; - /** Ensure result set excludes posts assigned to specific authors. */ - author_exclude?: number[]; - /** - * Limit response to posts published before a given ISO8601 compliant date. - * @format date-time - */ - before?: string; - /** - * Limit response to posts modified before a given ISO8601 compliant date. - * @format date-time - */ - modified_before?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Limit result set to posts with a specific menu_order value. - * @format int64 - */ - menu_order?: number; - /** How to interpret the search input. */ - search_semantics?: IV2PagesListParamsSearchSemanticsEnum[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2PagesListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2PagesListParamsOrderbyEnum[]; - /** Limit result set to items with particular parent IDs. */ - parent?: number[]; - /** Limit result set to all items except those of a particular parent ID. */ - parent_exclude?: number[]; - /** Array of column names to be searched. */ - search_columns?: string[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to posts assigned one or more statuses. */ - status?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/pages`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags pages - * @name V2PagesCreate - * @request POST:/wp/v2/pages - * @secure - */ - v2PagesCreate: ( - data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum3[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** - * The ID for the parent of the post. - * @format int64 - */ - parent?: number; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** - * The ID for the author of the post. - * @format int64 - */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum3[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum3[]; - /** - * The order of the post in relation to other posts. - * @format int64 - */ - menu_order?: number; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/pages`, + path: `/wc/v3/orders/batch`, method: "POST", body: data, secure: true, @@ -3477,176 +5605,60 @@ export class Api< /** * No description * - * @tags pages - * @name V2PagesDetail - * @request GET:/wp/v2/pages/{id} + * @tags orders + * @name V3OrdersBatchUpdate + * @request PUT:/wc/v3/orders/batch * @secure */ - v2PagesDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PagesDetailParamsContextEnum[]; - /** - * Override the default excerpt length. - * @format int64 - */ - excerpt_length?: number; - /** The password for the post if it is password protected. */ - password?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/pages/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags pages - * @name V2PagesCreate2 - * @request POST:/wp/v2/pages/{id} - * @originalName v2PagesCreate - * @duplicate - * @secure - */ - v2PagesCreate2: ( - id: number, - data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum4[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** - * The ID for the parent of the post. - * @format int64 - */ - parent?: number; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** - * The ID for the author of the post. - * @format int64 - */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum4[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum4[]; - /** - * The order of the post in relation to other posts. - * @format int64 - */ - menu_order?: number; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/pages/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags pages - * @name V2PagesUpdate - * @request PUT:/wp/v2/pages/{id} - * @secure - */ - v2PagesUpdate: ( - id: number, + v3OrdersBatchUpdate: ( query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2PagesUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** - * The ID for the parent of the post. + * Parent order ID. * @format int64 */ - parent?: number; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; + parent_id?: number; + /** Shows where the order was created. */ + created_via?: string; + /** Order status. */ + status?: IV3OrdersBatchUpdateParamsStatusEnum[]; + /** Currency the order was created with, in ISO format. */ + currency?: IV3OrdersBatchUpdateParamsCurrencyEnum[]; /** - * The ID for the author of the post. + * User ID who owns the order. 0 for guests. * @format int64 */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2PagesUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2PagesUpdateParamsPingStatusEnum[]; - /** - * The order of the post in relation to other posts. - * @format int64 - */ - menu_order?: number; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; + customer_id?: number; + /** Note left by customer during checkout. */ + customer_note?: string; + /** Billing address. */ + billing?: string; + /** Shipping address. */ + shipping?: string; + /** Payment method ID. */ + payment_method?: string; + /** Payment method title. */ + payment_method_title?: string; + /** Unique transaction ID. */ + transaction_id?: string; + /** Meta data. */ + meta_data?: object[]; + /** Line items data. */ + line_items?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** Coupons line data. */ + coupon_lines?: object[]; + /** Define if the order is paid. It will set the status to processing and reduce stock items. */ + set_paid?: boolean; + /** Set the action as manual so that the order note registers as "added by user". */ + manual_update?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/pages/${id}`, + path: `/wc/v3/orders/batch`, method: "PUT", query: query, secure: true, @@ -3657,69 +5669,60 @@ export class Api< /** * No description * - * @tags pages - * @name V2PagesPartialUpdate - * @request PATCH:/wp/v2/pages/{id} + * @tags orders + * @name V3OrdersBatchPartialUpdate + * @request PATCH:/wc/v3/orders/batch * @secure */ - v2PagesPartialUpdate: ( - id: number, + v3OrdersBatchPartialUpdate: ( query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2PagesPartialUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** - * The ID for the parent of the post. + * Parent order ID. * @format int64 */ - parent?: number; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; + parent_id?: number; + /** Shows where the order was created. */ + created_via?: string; + /** Order status. */ + status?: IV3OrdersBatchPartialUpdateParamsStatusEnum[]; + /** Currency the order was created with, in ISO format. */ + currency?: IV3OrdersBatchPartialUpdateParamsCurrencyEnum[]; /** - * The ID for the author of the post. + * User ID who owns the order. 0 for guests. * @format int64 */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2PagesPartialUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2PagesPartialUpdateParamsPingStatusEnum[]; - /** - * The order of the post in relation to other posts. - * @format int64 - */ - menu_order?: number; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; + customer_id?: number; + /** Note left by customer during checkout. */ + customer_note?: string; + /** Billing address. */ + billing?: string; + /** Shipping address. */ + shipping?: string; + /** Payment method ID. */ + payment_method?: string; + /** Payment method title. */ + payment_method_title?: string; + /** Unique transaction ID. */ + transaction_id?: string; + /** Meta data. */ + meta_data?: object[]; + /** Line items data. */ + line_items?: object[]; + /** Shipping lines data. */ + shipping_lines?: object[]; + /** Fee lines data. */ + fee_lines?: object[]; + /** Coupons line data. */ + coupon_lines?: object[]; + /** Define if the order is paid. It will set the status to processing and reduce stock items. */ + set_paid?: boolean; + /** Set the action as manual so that the order note registers as "added by user". */ + manual_update?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/pages/${id}`, + path: `/wc/v3/orders/batch`, method: "PATCH", query: query, secure: true, @@ -3730,41 +5733,16 @@ export class Api< /** * No description * - * @tags pages - * @name V2PagesDelete - * @request DELETE:/wp/v2/pages/{id} + * @tags products + * @name V3ProductsAttributesTermsList + * @request GET:/wc/v3/products/attributes/{attribute_id}/terms * @secure */ - v2PagesDelete: ( - id: number, - query?: { - /** Whether to bypass Trash and force deletion. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/pages/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags pages - * @name V2PagesRevisionsList - * @request GET:/wp/v2/pages/{parent}/revisions - * @secure - */ - v2PagesRevisionsList: ( - parent: number, + v3ProductsAttributesTermsList: ( + attributeId: number, query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PagesRevisionsListParamsContextEnum[]; + context?: IV3ProductsAttributesTermsListParamsContextEnum[]; /** * Current page of the collection. * @format int64 @@ -3782,22 +5760,36 @@ export class Api< search?: string; /** Ensure result set excludes specific IDs. */ exclude?: number[]; - /** Limit result set to specific IDs. */ + /** Limit result set to specific ids. */ include?: number[]; /** - * Offset the result set by a specific number of items. + * Offset the result set by a specific number of items. Applies to hierarchical taxonomies only. * @format int64 */ offset?: number; /** Order sort attribute ascending or descending. */ - order?: IV2PagesRevisionsListParamsOrderEnum[]; - /** Sort collection by object attribute. */ - orderby?: IV2PagesRevisionsListParamsOrderbyEnum[]; + order?: IV3ProductsAttributesTermsListParamsOrderEnum[]; + /** Sort collection by resource attribute. */ + orderby?: IV3ProductsAttributesTermsListParamsOrderbyEnum[]; + /** Whether to hide resources not assigned to any products. */ + hide_empty?: boolean; + /** + * Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only. + * @format int64 + */ + parent?: number; + /** + * Limit result set to resources assigned to a specific product. + * @format int64 + */ + product?: number; + /** Limit result set to resources with a specific slug. */ + slug?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/pages/${parent}/revisions`, + path: `/wc/v3/products/attributes/${attributeId}/terms`, method: "GET", query: query, secure: true, @@ -3808,28 +5800,60 @@ export class Api< /** * No description * - * @tags pages - * @name V2PagesDetail2 - * @request GET:/wp/v2/pages/{parent} - * @originalName v2PagesDetail - * @duplicate + * @tags products + * @name V3ProductsAttributesTermsCreate + * @request POST:/wc/v3/products/attributes/{attribute_id}/terms * @secure */ - v2PagesDetail2: ( - parent: number, + v3ProductsAttributesTermsCreate: ( + attributeId: number, + data: { + /** Name for the resource. */ + name: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/attributes/${attributeId}/terms`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsAttributesDetail + * @request GET:/wc/v3/products/attributes/{attribute_id} + * @secure + */ + v3ProductsAttributesDetail: ( + attributeId: number, query?: { /** - * The ID for the autosave. + * Unique identifier for the resource. * @format int64 */ id?: number; /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PagesDetail2ParamsContextEnum[]; + context?: IV3ProductsAttributesDetailParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/pages/${parent}`, + path: `/wc/v3/products/attributes/${attributeId}`, method: "GET", query: query, secure: true, @@ -3840,99 +5864,35 @@ export class Api< /** * No description * - * @tags pages - * @name V2PagesAutosavesList - * @request GET:/wp/v2/pages/{id}/autosaves + * @tags products + * @name V3ProductsAttributesCreate + * @request POST:/wc/v3/products/attributes/{attribute_id} * @secure */ - v2PagesAutosavesList: ( - id: number, - query?: { - /** - * The ID for the parent of the autosave. - * @format int64 - */ - parent?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PagesAutosavesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/pages/${id}/autosaves`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags pages - * @name V2PagesAutosavesCreate - * @request POST:/wp/v2/pages/{id}/autosaves - * @secure - */ - v2PagesAutosavesCreate: ( - id: number, + v3ProductsAttributesCreate: ( + attributeId: number, data: { /** - * The ID for the parent of the post. + * Unique identifier for the resource. * @format int64 */ - parent?: number; - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + id?: number; + /** Term name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** A named status for the post. */ - status?: IStatusEnum5[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; + /** HTML description of the resource. */ + description?: string; /** - * The ID for the author of the post. - * @format int64 - */ - author?: number; - /** The excerpt for the post. */ - excerpt?: string; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum5[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum5[]; - /** - * The order of the post in relation to other posts. + * Menu order, used to custom sort the resource. * @format int64 */ menu_order?: number; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/pages/${id}/autosaves`, + path: `/wc/v3/products/attributes/${attributeId}`, method: "POST", body: data, secure: true, @@ -3943,318 +5903,35 @@ export class Api< /** * No description * - * @tags media - * @name V2MediaList - * @request GET:/wp/v2/media + * @tags products + * @name V3ProductsAttributesUpdate + * @request PUT:/wc/v3/products/attributes/{attribute_id} * @secure */ - v2MediaList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MediaListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** - * Limit response to posts published after a given ISO8601 compliant date. - * @format date-time - */ - after?: string; - /** - * Limit response to posts modified after a given ISO8601 compliant date. - * @format date-time - */ - modified_after?: string; - /** Limit result set to posts assigned to specific authors. */ - author?: number[]; - /** Ensure result set excludes posts assigned to specific authors. */ - author_exclude?: number[]; - /** - * Limit response to posts published before a given ISO8601 compliant date. - * @format date-time - */ - before?: string; - /** - * Limit response to posts modified before a given ISO8601 compliant date. - * @format date-time - */ - modified_before?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2MediaListParamsSearchSemanticsEnum[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2MediaListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2MediaListParamsOrderbyEnum[]; - /** Limit result set to items with particular parent IDs. */ - parent?: number[]; - /** Limit result set to all items except those of a particular parent ID. */ - parent_exclude?: number[]; - /** Array of column names to be searched. */ - search_columns?: string[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to posts assigned one or more statuses. */ - status?: string[]; - /** Limit result set to attachments of a particular media type. */ - media_type?: IV2MediaListParamsMediaTypeEnum[]; - /** Limit result set to attachments of a particular MIME type. */ - mime_type?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/media`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags media - * @name V2MediaCreate - * @request POST:/wp/v2/media - * @secure - */ - v2MediaCreate: ( - data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum6[]; - /** The title for the post. */ - title?: string; - /** - * The ID for the author of the post. - * @format int64 - */ - author?: number; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum6[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum6[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** Alternative text to display when attachment is not displayed. */ - alt_text?: string; - /** The attachment caption. */ - caption?: string; - /** The attachment description. */ - description?: string; - /** - * The ID for the associated post of the attachment. - * @format int64 - */ - post?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/media`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags media - * @name V2MediaDetail - * @request GET:/wp/v2/media/{id} - * @secure - */ - v2MediaDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MediaDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/media/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags media - * @name V2MediaCreate2 - * @request POST:/wp/v2/media/{id} - * @originalName v2MediaCreate - * @duplicate - * @secure - */ - v2MediaCreate2: ( - id: number, - data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum7[]; - /** The title for the post. */ - title?: string; - /** - * The ID for the author of the post. - * @format int64 - */ - author?: number; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum7[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum7[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** Alternative text to display when attachment is not displayed. */ - alt_text?: string; - /** The attachment caption. */ - caption?: string; - /** The attachment description. */ - description?: string; - /** - * The ID for the associated post of the attachment. - * @format int64 - */ - post?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/media/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags media - * @name V2MediaUpdate - * @request PUT:/wp/v2/media/{id} - * @secure - */ - v2MediaUpdate: ( - id: number, + v3ProductsAttributesUpdate: ( + attributeId: number, query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * Unique identifier for the resource. + * @format int64 */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + id?: number; + /** Term name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** A named status for the post. */ - status?: IV2MediaUpdateParamsStatusEnum[]; - /** The title for the post. */ - title?: string; - /** - * The ID for the author of the post. - * @format int64 - */ - author?: number; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2MediaUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2MediaUpdateParamsPingStatusEnum[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** Alternative text to display when attachment is not displayed. */ - alt_text?: string; - /** The attachment caption. */ - caption?: string; - /** The attachment description. */ + /** HTML description of the resource. */ description?: string; /** - * The ID for the associated post of the attachment. + * Menu order, used to custom sort the resource. * @format int64 */ - post?: number; + menu_order?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/media/${id}`, + path: `/wc/v3/products/attributes/${attributeId}`, method: "PUT", query: query, secure: true, @@ -4265,64 +5942,35 @@ export class Api< /** * No description * - * @tags media - * @name V2MediaPartialUpdate - * @request PATCH:/wp/v2/media/{id} + * @tags products + * @name V3ProductsAttributesPartialUpdate + * @request PATCH:/wc/v3/products/attributes/{attribute_id} * @secure */ - v2MediaPartialUpdate: ( - id: number, + v3ProductsAttributesPartialUpdate: ( + attributeId: number, query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * Unique identifier for the resource. + * @format int64 */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + id?: number; + /** Term name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** A named status for the post. */ - status?: IV2MediaPartialUpdateParamsStatusEnum[]; - /** The title for the post. */ - title?: string; - /** - * The ID for the author of the post. - * @format int64 - */ - author?: number; - /** - * The ID of the featured media for the post. - * @format int64 - */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2MediaPartialUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2MediaPartialUpdateParamsPingStatusEnum[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** Alternative text to display when attachment is not displayed. */ - alt_text?: string; - /** The attachment caption. */ - caption?: string; - /** The attachment description. */ + /** HTML description of the resource. */ description?: string; /** - * The ID for the associated post of the attachment. + * Menu order, used to custom sort the resource. * @format int64 */ - post?: number; + menu_order?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/media/${id}`, + path: `/wc/v3/products/attributes/${attributeId}`, method: "PATCH", query: query, secure: true, @@ -4333,21 +5981,26 @@ export class Api< /** * No description * - * @tags media - * @name V2MediaDelete - * @request DELETE:/wp/v2/media/{id} + * @tags products + * @name V3ProductsAttributesDelete + * @request DELETE:/wc/v3/products/attributes/{attribute_id} * @secure */ - v2MediaDelete: ( - id: number, + v3ProductsAttributesDelete: ( + attributeId: number, query?: { - /** Whether to bypass Trash and force deletion. */ + /** + * Unique identifier for the resource. + * @format int64 + */ + id?: number; + /** Required to be true, as resource does not support trashing. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/media/${id}`, + path: `/wc/v3/products/attributes/${attributeId}`, method: "DELETE", query: query, secure: true, @@ -4358,164 +6011,22 @@ export class Api< /** * No description * - * @tags media - * @name V2MediaPostProcessCreate - * @request POST:/wp/v2/media/{id}/post-process + * @tags products + * @name V3ProductsAttributesTermsBatchCreate + * @request POST:/wc/v3/products/attributes/{attribute_id}/terms/batch * @secure */ - v2MediaPostProcessCreate: ( - id: number, - data: { - action: IActionEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/media/${id}/post-process`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags media - * @name V2MediaEditCreate - * @request POST:/wp/v2/media/{id}/edit - * @secure - */ - v2MediaEditCreate: ( - id: number, + v3ProductsAttributesTermsBatchCreate: ( + attributeId: number, data: { + /** Term name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; /** - * URL to the edited image file. - * @format uri - */ - src: string; - /** Array of image edits. */ - modifiers?: object[]; - /** - * The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead. - * @format int64 - * @min 0 - * @max 360 - */ - rotation?: number; - /** - * As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead. - * @min 0 - * @max 100 - */ - x?: number; - /** - * As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead. - * @min 0 - * @max 100 - */ - y?: number; - /** - * As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead. - * @min 0 - * @max 100 - */ - width?: number; - /** - * As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead. - * @min 0 - * @max 100 - */ - height?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/media/${id}/edit`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags menu-items - * @name V2MenuItemsList - * @request GET:/wp/v2/menu-items - * @secure - */ - v2MenuItemsList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenuItemsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** - * Limit response to posts published after a given ISO8601 compliant date. - * @format date-time - */ - after?: string; - /** - * Limit response to posts modified after a given ISO8601 compliant date. - * @format date-time - */ - modified_after?: string; - /** - * Limit response to posts published before a given ISO8601 compliant date. - * @format date-time - */ - before?: string; - /** - * Limit response to posts modified before a given ISO8601 compliant date. - * @format date-time - */ - modified_before?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2MenuItemsListParamsSearchSemanticsEnum[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2MenuItemsListParamsOrderEnum[]; - /** Sort collection by object attribute. */ - orderby?: IV2MenuItemsListParamsOrderbyEnum[]; - /** Array of column names to be searched. */ - search_columns?: string[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to posts assigned one or more statuses. */ - status?: string[]; - /** Limit result set based on relationship between multiple taxonomies. */ - tax_relation?: IV2MenuItemsListParamsTaxRelationEnum[]; - /** Limit result set to items with specific terms assigned in the menus taxonomy. */ - menus?: string; - /** Limit result set to items except those with specific terms assigned in the menus taxonomy. */ - menus_exclude?: string; - /** - * Limit result set to posts with a specific menu_order value. + * Menu order, used to custom sort the resource. * @format int64 */ menu_order?: number; @@ -4523,7 +6034,99 @@ export class Api< params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items`, + path: `/wc/v3/products/attributes/${attributeId}/terms/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsAttributesTermsBatchUpdate + * @request PUT:/wc/v3/products/attributes/{attribute_id}/terms/batch + * @secure + */ + v3ProductsAttributesTermsBatchUpdate: ( + attributeId: number, + query?: { + /** Term name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/attributes/${attributeId}/terms/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsAttributesTermsBatchPartialUpdate + * @request PATCH:/wc/v3/products/attributes/{attribute_id}/terms/batch + * @secure + */ + v3ProductsAttributesTermsBatchPartialUpdate: ( + attributeId: number, + query?: { + /** Term name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/attributes/${attributeId}/terms/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsAttributesList + * @request GET:/wc/v3/products/attributes + * @secure + */ + v3ProductsAttributesList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsAttributesListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/attributes`, method: "GET", query: query, secure: true, @@ -4534,66 +6137,30 @@ export class Api< /** * No description * - * @tags menu-items - * @name V2MenuItemsCreate - * @request POST:/wp/v2/menu-items + * @tags products + * @name V3ProductsAttributesCreate2 + * @request POST:/wc/v3/products/attributes + * @originalName v3ProductsAttributesCreate + * @duplicate * @secure */ - v2MenuItemsCreate: ( + v3ProductsAttributesCreate2: ( data: { - /** The title for the object. */ - title?: string; - /** The family of objects originally represented, such as "post_type" or "taxonomy". */ + /** Name for the resource. */ + name: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** Type of attribute. */ type?: ITypeEnum[]; - /** A named status for the object. */ - status?: IStatusEnum8[]; - /** - * The ID for the parent of the object. - * @format int64 - * @min 0 - */ - parent?: number; - /** Text for the title attribute of the link element for this menu item. */ - attr_title?: string; - /** Class names for the link element of this menu item. */ - classes?: string[]; - /** The description of this menu item. */ - description?: string; - /** - * The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. - * @format int64 - * @min 1 - */ - menu_order?: number; - /** The type of object originally represented, such as "category", "post", or "attachment". */ - object?: string; - /** - * The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. - * @format int64 - * @min 0 - */ - object_id?: number; - /** The target attribute of the link element for this menu item. */ - target?: ITargetEnum[]; - /** - * The URL to which this menu item points. - * @format uri - */ - url?: string; - /** The XFN relationship expressed in the link of this menu item. */ - xfn?: string[]; - /** - * The terms assigned to the object in the nav_menu taxonomy. - * @format int64 - */ - menus?: number; - /** Meta fields. */ - meta?: string; + /** Default sort order. */ + order_by?: IOrderByEnum[]; + /** Enable/Disable attribute archives. */ + has_archives?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items`, + path: `/wc/v3/products/attributes`, method: "POST", body: data, secure: true, @@ -4604,21 +6171,23 @@ export class Api< /** * No description * - * @tags menu-items - * @name V2MenuItemsDetail - * @request GET:/wp/v2/menu-items/{id} + * @tags products + * @name V3ProductsAttributesDetail2 + * @request GET:/wc/v3/products/attributes/{id} + * @originalName v3ProductsAttributesDetail + * @duplicate * @secure */ - v2MenuItemsDetail: ( + v3ProductsAttributesDetail2: ( id: number, query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenuItemsDetailParamsContextEnum[]; + context?: IV3ProductsAttributesDetail2ParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items/${id}`, + path: `/wc/v3/products/attributes/${id}`, method: "GET", query: query, secure: true, @@ -4629,69 +6198,31 @@ export class Api< /** * No description * - * @tags menu-items - * @name V2MenuItemsCreate2 - * @request POST:/wp/v2/menu-items/{id} - * @originalName v2MenuItemsCreate + * @tags products + * @name V3ProductsAttributesCreate3 + * @request POST:/wc/v3/products/attributes/{id} + * @originalName v3ProductsAttributesCreate * @duplicate * @secure */ - v2MenuItemsCreate2: ( + v3ProductsAttributesCreate3: ( id: number, data: { - /** The title for the object. */ - title?: string; - /** The family of objects originally represented, such as "post_type" or "taxonomy". */ + /** Attribute name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** Type of attribute. */ type?: ITypeEnum1[]; - /** A named status for the object. */ - status?: IStatusEnum9[]; - /** - * The ID for the parent of the object. - * @format int64 - * @min 0 - */ - parent?: number; - /** Text for the title attribute of the link element for this menu item. */ - attr_title?: string; - /** Class names for the link element of this menu item. */ - classes?: string[]; - /** The description of this menu item. */ - description?: string; - /** - * The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. - * @format int64 - * @min 1 - */ - menu_order?: number; - /** The type of object originally represented, such as "category", "post", or "attachment". */ - object?: string; - /** - * The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. - * @format int64 - * @min 0 - */ - object_id?: number; - /** The target attribute of the link element for this menu item. */ - target?: ITargetEnum1[]; - /** - * The URL to which this menu item points. - * @format uri - */ - url?: string; - /** The XFN relationship expressed in the link of this menu item. */ - xfn?: string[]; - /** - * The terms assigned to the object in the nav_menu taxonomy. - * @format int64 - */ - menus?: number; - /** Meta fields. */ - meta?: string; + /** Default sort order. */ + order_by?: IOrderByEnum1[]; + /** Enable/Disable attribute archives. */ + has_archives?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items/${id}`, + path: `/wc/v3/products/attributes/${id}`, method: "POST", body: data, secure: true, @@ -4702,67 +6233,31 @@ export class Api< /** * No description * - * @tags menu-items - * @name V2MenuItemsUpdate - * @request PUT:/wp/v2/menu-items/{id} + * @tags products + * @name V3ProductsAttributesUpdate2 + * @request PUT:/wc/v3/products/attributes/{id} + * @originalName v3ProductsAttributesUpdate + * @duplicate * @secure */ - v2MenuItemsUpdate: ( + v3ProductsAttributesUpdate2: ( id: number, query?: { - /** The title for the object. */ - title?: string; - /** The family of objects originally represented, such as "post_type" or "taxonomy". */ - type?: IV2MenuItemsUpdateParamsTypeEnum[]; - /** A named status for the object. */ - status?: IV2MenuItemsUpdateParamsStatusEnum[]; - /** - * The ID for the parent of the object. - * @format int64 - * @min 0 - */ - parent?: number; - /** Text for the title attribute of the link element for this menu item. */ - attr_title?: string; - /** Class names for the link element of this menu item. */ - classes?: string[]; - /** The description of this menu item. */ - description?: string; - /** - * The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. - * @format int64 - * @min 1 - */ - menu_order?: number; - /** The type of object originally represented, such as "category", "post", or "attachment". */ - object?: string; - /** - * The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. - * @format int64 - * @min 0 - */ - object_id?: number; - /** The target attribute of the link element for this menu item. */ - target?: IV2MenuItemsUpdateParamsTargetEnum[]; - /** - * The URL to which this menu item points. - * @format uri - */ - url?: string; - /** The XFN relationship expressed in the link of this menu item. */ - xfn?: string[]; - /** - * The terms assigned to the object in the nav_menu taxonomy. - * @format int64 - */ - menus?: number; - /** Meta fields. */ - meta?: string; + /** Attribute name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** Type of attribute. */ + type?: IV3ProductsAttributesUpdate2ParamsTypeEnum[]; + /** Default sort order. */ + order_by?: IV3ProductsAttributesUpdate2ParamsOrderByEnum[]; + /** Enable/Disable attribute archives. */ + has_archives?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items/${id}`, + path: `/wc/v3/products/attributes/${id}`, method: "PUT", query: query, secure: true, @@ -4773,67 +6268,31 @@ export class Api< /** * No description * - * @tags menu-items - * @name V2MenuItemsPartialUpdate - * @request PATCH:/wp/v2/menu-items/{id} + * @tags products + * @name V3ProductsAttributesPartialUpdate2 + * @request PATCH:/wc/v3/products/attributes/{id} + * @originalName v3ProductsAttributesPartialUpdate + * @duplicate * @secure */ - v2MenuItemsPartialUpdate: ( + v3ProductsAttributesPartialUpdate2: ( id: number, query?: { - /** The title for the object. */ - title?: string; - /** The family of objects originally represented, such as "post_type" or "taxonomy". */ - type?: IV2MenuItemsPartialUpdateParamsTypeEnum[]; - /** A named status for the object. */ - status?: IV2MenuItemsPartialUpdateParamsStatusEnum[]; - /** - * The ID for the parent of the object. - * @format int64 - * @min 0 - */ - parent?: number; - /** Text for the title attribute of the link element for this menu item. */ - attr_title?: string; - /** Class names for the link element of this menu item. */ - classes?: string[]; - /** The description of this menu item. */ - description?: string; - /** - * The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. - * @format int64 - * @min 1 - */ - menu_order?: number; - /** The type of object originally represented, such as "category", "post", or "attachment". */ - object?: string; - /** - * The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. - * @format int64 - * @min 0 - */ - object_id?: number; - /** The target attribute of the link element for this menu item. */ - target?: IV2MenuItemsPartialUpdateParamsTargetEnum[]; - /** - * The URL to which this menu item points. - * @format uri - */ - url?: string; - /** The XFN relationship expressed in the link of this menu item. */ - xfn?: string[]; - /** - * The terms assigned to the object in the nav_menu taxonomy. - * @format int64 - */ - menus?: number; - /** Meta fields. */ - meta?: string; + /** Attribute name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** Type of attribute. */ + type?: IV3ProductsAttributesPartialUpdate2ParamsTypeEnum[]; + /** Default sort order. */ + order_by?: IV3ProductsAttributesPartialUpdate2ParamsOrderByEnum[]; + /** Enable/Disable attribute archives. */ + has_archives?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items/${id}`, + path: `/wc/v3/products/attributes/${id}`, method: "PATCH", query: query, secure: true, @@ -4844,21 +6303,23 @@ export class Api< /** * No description * - * @tags menu-items - * @name V2MenuItemsDelete - * @request DELETE:/wp/v2/menu-items/{id} + * @tags products + * @name V3ProductsAttributesDelete2 + * @request DELETE:/wc/v3/products/attributes/{id} + * @originalName v3ProductsAttributesDelete + * @duplicate * @secure */ - v2MenuItemsDelete: ( + v3ProductsAttributesDelete2: ( id: number, query?: { - /** Whether to bypass Trash and force deletion. */ + /** Required to be true, as resource does not support trashing. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items/${id}`, + path: `/wc/v3/products/attributes/${id}`, method: "DELETE", query: query, secure: true, @@ -4869,129 +6330,225 @@ export class Api< /** * No description * - * @tags menu-items - * @name V2MenuItemsAutosavesList - * @request GET:/wp/v2/menu-items/{id}/autosaves + * @tags products + * @name V3ProductsAttributesBatchCreate + * @request POST:/wc/v3/products/attributes/batch * @secure */ - v2MenuItemsAutosavesList: ( - id: number, - query?: { - /** - * The ID for the parent of the autosave. - * @format int64 - */ - parent?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenuItemsAutosavesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/menu-items/${id}/autosaves`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menu-items - * @name V2MenuItemsAutosavesCreate - * @request POST:/wp/v2/menu-items/{id}/autosaves - * @secure - */ - v2MenuItemsAutosavesCreate: ( - id: number, + v3ProductsAttributesBatchCreate: ( data: { - /** - * The ID for the parent of the object. - * @format int64 - * @min 0 - */ - parent?: number; - /** The title for the object. */ - title?: string; - /** The family of objects originally represented, such as "post_type" or "taxonomy". */ + /** Attribute name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** Type of attribute. */ type?: ITypeEnum2[]; - /** A named status for the object. */ - status?: IStatusEnum10[]; - /** Text for the title attribute of the link element for this menu item. */ - attr_title?: string; - /** Class names for the link element of this menu item. */ - classes?: string[]; - /** The description of this menu item. */ - description?: string; + /** Default sort order. */ + order_by?: IOrderByEnum2[]; + /** Enable/Disable attribute archives. */ + has_archives?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/attributes/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsAttributesBatchUpdate + * @request PUT:/wc/v3/products/attributes/batch + * @secure + */ + v3ProductsAttributesBatchUpdate: ( + query?: { + /** Attribute name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** Type of attribute. */ + type?: IV3ProductsAttributesBatchUpdateParamsTypeEnum[]; + /** Default sort order. */ + order_by?: IV3ProductsAttributesBatchUpdateParamsOrderByEnum[]; + /** Enable/Disable attribute archives. */ + has_archives?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/attributes/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsAttributesBatchPartialUpdate + * @request PATCH:/wc/v3/products/attributes/batch + * @secure + */ + v3ProductsAttributesBatchPartialUpdate: ( + query?: { + /** Attribute name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** Type of attribute. */ + type?: IV3ProductsAttributesBatchPartialUpdateParamsTypeEnum[]; + /** Default sort order. */ + order_by?: IV3ProductsAttributesBatchPartialUpdateParamsOrderByEnum[]; + /** Enable/Disable attribute archives. */ + has_archives?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/attributes/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesList + * @request GET:/wc/v3/products/categories + * @secure + */ + v3ProductsCategoriesList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsCategoriesListParamsContextEnum[]; /** - * The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0. + * Current page of the collection. * @format int64 * @min 1 */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific ids. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. Applies to hierarchical taxonomies only. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3ProductsCategoriesListParamsOrderEnum[]; + /** Sort collection by resource attribute. */ + orderby?: IV3ProductsCategoriesListParamsOrderbyEnum[]; + /** Whether to hide resources not assigned to any products. */ + hide_empty?: boolean; + /** + * Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only. + * @format int64 + */ + parent?: number; + /** + * Limit result set to resources assigned to a specific product. + * @format int64 + */ + product?: number; + /** Limit result set to resources with a specific slug. */ + slug?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesCreate + * @request POST:/wc/v3/products/categories + * @secure + */ + v3ProductsCategoriesCreate: ( + data: { + /** Name for the resource. */ + name: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IDisplayEnum3[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ menu_order?: number; - /** The type of object originally represented, such as "category", "post", or "attachment". */ - object?: string; - /** - * The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories. - * @format int64 - * @min 0 - */ - object_id?: number; - /** The target attribute of the link element for this menu item. */ - target?: ITargetEnum2[]; - /** - * The URL to which this menu item points. - * @format uri - */ - url?: string; - /** The XFN relationship expressed in the link of this menu item. */ - xfn?: string[]; - /** - * The terms assigned to the object in the nav_menu taxonomy. - * @format int64 - */ - menus?: number; - /** Meta fields. */ - meta?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items/${id}/autosaves`, + path: `/wc/v3/products/categories`, method: "POST", body: data, secure: true, - type: ContentType.FormData, + type: ContentType.UrlEncoded, ...params, }), /** * No description * - * @tags menu-items - * @name V2MenuItemsDetail2 - * @request GET:/wp/v2/menu-items/{parent} - * @originalName v2MenuItemsDetail - * @duplicate + * @tags products + * @name V3ProductsCategoriesDetail + * @request GET:/wc/v3/products/categories/{id} * @secure */ - v2MenuItemsDetail2: ( - parent: number, + v3ProductsCategoriesDetail: ( + id: number, query?: { - /** - * The ID for the autosave. - * @format int64 - */ - id?: number; /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenuItemsDetail2ParamsContextEnum[]; + context?: IV3ProductsCategoriesDetailParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-items/${parent}`, + path: `/wc/v3/products/categories/${id}`, method: "GET", query: query, secure: true, @@ -5002,15 +6559,338 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksList - * @request GET:/wp/v2/blocks + * @tags products + * @name V3ProductsCategoriesCreate2 + * @request POST:/wc/v3/products/categories/{id} + * @originalName v3ProductsCategoriesCreate + * @duplicate * @secure */ - v2BlocksList: ( + v3ProductsCategoriesCreate2: ( + id: number, + data: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IDisplayEnum4[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesUpdate + * @request PUT:/wc/v3/products/categories/{id} + * @secure + */ + v3ProductsCategoriesUpdate: ( + id: number, + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsCategoriesUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesPartialUpdate + * @request PATCH:/wc/v3/products/categories/{id} + * @secure + */ + v3ProductsCategoriesPartialUpdate: ( + id: number, + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsCategoriesPartialUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesDelete + * @request DELETE:/wc/v3/products/categories/{id} + * @secure + */ + v3ProductsCategoriesDelete: ( + id: number, + query?: { + /** Required to be true, as resource does not support trashing. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories/${id}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesBatchCreate + * @request POST:/wc/v3/products/categories/batch + * @secure + */ + v3ProductsCategoriesBatchCreate: ( + data: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IDisplayEnum5[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesBatchUpdate + * @request PUT:/wc/v3/products/categories/batch + * @secure + */ + v3ProductsCategoriesBatchUpdate: ( + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsCategoriesBatchUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCategoriesBatchPartialUpdate + * @request PATCH:/wc/v3/products/categories/batch + * @secure + */ + v3ProductsCategoriesBatchPartialUpdate: ( + query?: { + /** Category name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** + * The ID for the parent of the resource. + * @format int64 + */ + parent?: number; + /** HTML description of the resource. */ + description?: string; + /** Category archive display type. */ + display?: IV3ProductsCategoriesBatchPartialUpdateParamsDisplayEnum[]; + /** Image data. */ + image?: string; + /** + * Menu order, used to custom sort the resource. + * @format int64 + */ + menu_order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/categories/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsCustomFieldsNamesList + * @request GET:/wc/v3/products/custom-fields/names + * @secure + */ + v3ProductsCustomFieldsNamesList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlocksListParamsContextEnum[]; + context?: string; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** Order sort items ascending or descending. */ + order?: IV3ProductsCustomFieldsNamesListParamsOrderEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/custom-fields/names`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsReviewsList + * @request GET:/wc/v3/products/reviews + * @secure + */ + v3ProductsReviewsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsReviewsListParamsContextEnum[]; /** * Current page of the collection. * @format int64 @@ -5027,57 +6907,46 @@ export class Api< /** Limit results to those matching a string. */ search?: string; /** - * Limit response to posts published after a given ISO8601 compliant date. + * Limit response to resources published after a given ISO8601 compliant date. * @format date-time */ after?: string; /** - * Limit response to posts modified after a given ISO8601 compliant date. - * @format date-time - */ - modified_after?: string; - /** - * Limit response to posts published before a given ISO8601 compliant date. + * Limit response to reviews published before a given ISO8601 compliant date. * @format date-time */ before?: string; - /** - * Limit response to posts modified before a given ISO8601 compliant date. - * @format date-time - */ - modified_before?: string; /** Ensure result set excludes specific IDs. */ exclude?: number[]; /** Limit result set to specific IDs. */ include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2BlocksListParamsSearchSemanticsEnum[]; /** * Offset the result set by a specific number of items. * @format int64 */ offset?: number; /** Order sort attribute ascending or descending. */ - order?: IV2BlocksListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2BlocksListParamsOrderbyEnum[]; - /** Array of column names to be searched. */ - search_columns?: string[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to posts assigned one or more statuses. */ - status?: string[]; - /** Limit result set based on relationship between multiple taxonomies. */ - tax_relation?: IV2BlocksListParamsTaxRelationEnum[]; - /** Limit result set to items with specific terms assigned in the wp_pattern_category taxonomy. */ - wp_pattern_category?: string; - /** Limit result set to items except those with specific terms assigned in the wp_pattern_category taxonomy. */ - wp_pattern_category_exclude?: string; + order?: IV3ProductsReviewsListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3ProductsReviewsListParamsOrderbyEnum[]; + /** Limit result set to reviews assigned to specific user IDs. */ + reviewer?: number[]; + /** Ensure result set excludes reviews assigned to specific user IDs. */ + reviewer_exclude?: number[]; + /** + * Limit result set to that from a specific author email. + * @format email + */ + reviewer_email?: string; + /** Limit result set to reviews assigned to specific product IDs. */ + product?: number[]; + /** Limit result set to reviews assigned a specific status. */ + status?: IV3ProductsReviewsListParamsStatusEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks`, + path: `/wc/v3/products/reviews`, method: "GET", query: query, secure: true, @@ -5088,46 +6957,38 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksCreate - * @request POST:/wp/v2/blocks + * @tags products + * @name V3ProductsReviewsCreate + * @request POST:/wc/v3/products/reviews * @secure */ - v2BlocksCreate: ( + v3ProductsReviewsCreate: ( data: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * Unique identifier for the product. + * @format int64 */ - date?: string; + product_id: number; + /** Product name. */ + product_name?: string; + /** Status of the review. */ + status?: IStatusEnum3[]; + /** Name of the reviewer. */ + reviewer: string; + /** Email of the reviewer. */ + reviewer_email: string; + /** Review content. */ + review: string; /** - * The date the post was published, as GMT. - * @format date-time + * Review rating (0 to 5). + * @format int64 */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum11[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the wp_pattern_category taxonomy. */ - wp_pattern_category?: number[]; + rating?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks`, + path: `/wc/v3/products/reviews`, method: "POST", body: data, secure: true, @@ -5138,28 +6999,21 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksDetail - * @request GET:/wp/v2/blocks/{id} + * @tags products + * @name V3ProductsReviewsDetail + * @request GET:/wc/v3/products/reviews/{id} * @secure */ - v2BlocksDetail: ( + v3ProductsReviewsDetail: ( id: number, query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlocksDetailParamsContextEnum[]; - /** - * Override the default excerpt length. - * @format int64 - */ - excerpt_length?: number; - /** The password for the post if it is password protected. */ - password?: string; + context?: IV3ProductsReviewsDetailParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks/${id}`, + path: `/wc/v3/products/reviews/${id}`, method: "GET", query: query, secure: true, @@ -5170,49 +7024,44 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksCreate2 - * @request POST:/wp/v2/blocks/{id} - * @originalName v2BlocksCreate + * @tags products + * @name V3ProductsReviewsCreate2 + * @request POST:/wc/v3/products/reviews/{id} + * @originalName v3ProductsReviewsCreate * @duplicate * @secure */ - v2BlocksCreate2: ( + v3ProductsReviewsCreate2: ( id: number, data: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * Unique identifier for the product that the review belongs to. + * @format int64 */ - date?: string; + product_id?: number; + /** Product name. */ + product_name?: string; + /** Status of the review. */ + status?: IStatusEnum4[]; + /** Reviewer name. */ + reviewer?: string; /** - * The date the post was published, as GMT. - * @format date-time + * Reviewer email. + * @format email */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum12[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the wp_pattern_category taxonomy. */ - wp_pattern_category?: number[]; + reviewer_email?: string; + /** The content of the review. */ + review?: string; + /** + * Review rating (0 to 5). + * @format int64 + */ + rating?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks/${id}`, + path: `/wc/v3/products/reviews/${id}`, method: "POST", body: data, secure: true, @@ -5223,47 +7072,42 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksUpdate - * @request PUT:/wp/v2/blocks/{id} + * @tags products + * @name V3ProductsReviewsUpdate + * @request PUT:/wc/v3/products/reviews/{id} * @secure */ - v2BlocksUpdate: ( + v3ProductsReviewsUpdate: ( id: number, query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * Unique identifier for the product that the review belongs to. + * @format int64 */ - date?: string; + product_id?: number; + /** Product name. */ + product_name?: string; + /** Status of the review. */ + status?: IV3ProductsReviewsUpdateParamsStatusEnum[]; + /** Reviewer name. */ + reviewer?: string; /** - * The date the post was published, as GMT. - * @format date-time + * Reviewer email. + * @format email */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2BlocksUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the wp_pattern_category taxonomy. */ - wp_pattern_category?: number[]; + reviewer_email?: string; + /** The content of the review. */ + review?: string; + /** + * Review rating (0 to 5). + * @format int64 + */ + rating?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks/${id}`, + path: `/wc/v3/products/reviews/${id}`, method: "PUT", query: query, secure: true, @@ -5274,47 +7118,42 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksPartialUpdate - * @request PATCH:/wp/v2/blocks/{id} + * @tags products + * @name V3ProductsReviewsPartialUpdate + * @request PATCH:/wc/v3/products/reviews/{id} * @secure */ - v2BlocksPartialUpdate: ( + v3ProductsReviewsPartialUpdate: ( id: number, query?: { /** - * The date the post was published, in the site's timezone. - * @format date-time + * Unique identifier for the product that the review belongs to. + * @format int64 */ - date?: string; + product_id?: number; + /** Product name. */ + product_name?: string; + /** Status of the review. */ + status?: IV3ProductsReviewsPartialUpdateParamsStatusEnum[]; + /** Reviewer name. */ + reviewer?: string; /** - * The date the post was published, as GMT. - * @format date-time + * Reviewer email. + * @format email */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2BlocksPartialUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the wp_pattern_category taxonomy. */ - wp_pattern_category?: number[]; + reviewer_email?: string; + /** The content of the review. */ + review?: string; + /** + * Review rating (0 to 5). + * @format int64 + */ + rating?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks/${id}`, + path: `/wc/v3/products/reviews/${id}`, method: "PATCH", query: query, secure: true, @@ -5325,21 +7164,21 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksDelete - * @request DELETE:/wp/v2/blocks/{id} + * @tags products + * @name V3ProductsReviewsDelete + * @request DELETE:/wc/v3/products/reviews/{id} * @secure */ - v2BlocksDelete: ( + v3ProductsReviewsDelete: ( id: number, query?: { - /** Whether to bypass Trash and force deletion. */ + /** Whether to bypass trash and force deletion. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks/${id}`, + path: `/wc/v3/products/reviews/${id}`, method: "DELETE", query: query, secure: true, @@ -5350,16 +7189,150 @@ export class Api< /** * No description * - * @tags blocks - * @name V2BlocksRevisionsList - * @request GET:/wp/v2/blocks/{parent}/revisions + * @tags products + * @name V3ProductsReviewsBatchCreate + * @request POST:/wc/v3/products/reviews/batch * @secure */ - v2BlocksRevisionsList: ( - parent: number, + v3ProductsReviewsBatchCreate: ( + data: { + /** + * Unique identifier for the product that the review belongs to. + * @format int64 + */ + product_id?: number; + /** Product name. */ + product_name?: string; + /** Status of the review. */ + status?: IStatusEnum5[]; + /** Reviewer name. */ + reviewer?: string; + /** + * Reviewer email. + * @format email + */ + reviewer_email?: string; + /** The content of the review. */ + review?: string; + /** + * Review rating (0 to 5). + * @format int64 + */ + rating?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/reviews/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsReviewsBatchUpdate + * @request PUT:/wc/v3/products/reviews/batch + * @secure + */ + v3ProductsReviewsBatchUpdate: ( + query?: { + /** + * Unique identifier for the product that the review belongs to. + * @format int64 + */ + product_id?: number; + /** Product name. */ + product_name?: string; + /** Status of the review. */ + status?: IV3ProductsReviewsBatchUpdateParamsStatusEnum[]; + /** Reviewer name. */ + reviewer?: string; + /** + * Reviewer email. + * @format email + */ + reviewer_email?: string; + /** The content of the review. */ + review?: string; + /** + * Review rating (0 to 5). + * @format int64 + */ + rating?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/reviews/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsReviewsBatchPartialUpdate + * @request PATCH:/wc/v3/products/reviews/batch + * @secure + */ + v3ProductsReviewsBatchPartialUpdate: ( + query?: { + /** + * Unique identifier for the product that the review belongs to. + * @format int64 + */ + product_id?: number; + /** Product name. */ + product_name?: string; + /** Status of the review. */ + status?: IV3ProductsReviewsBatchPartialUpdateParamsStatusEnum[]; + /** Reviewer name. */ + reviewer?: string; + /** + * Reviewer email. + * @format email + */ + reviewer_email?: string; + /** The content of the review. */ + review?: string; + /** + * Review rating (0 to 5). + * @format int64 + */ + rating?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/reviews/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesList + * @request GET:/wc/v3/products/shipping_classes + * @secure + */ + v3ProductsShippingClassesList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlocksRevisionsListParamsContextEnum[]; + context?: IV3ProductsShippingClassesListParamsContextEnum[]; /** * Current page of the collection. * @format int64 @@ -5377,140 +7350,120 @@ export class Api< search?: string; /** Ensure result set excludes specific IDs. */ exclude?: number[]; - /** Limit result set to specific IDs. */ + /** Limit result set to specific ids. */ include?: number[]; /** - * Offset the result set by a specific number of items. + * Offset the result set by a specific number of items. Applies to hierarchical taxonomies only. * @format int64 */ offset?: number; /** Order sort attribute ascending or descending. */ - order?: IV2BlocksRevisionsListParamsOrderEnum[]; - /** Sort collection by object attribute. */ - orderby?: IV2BlocksRevisionsListParamsOrderbyEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/blocks/${parent}/revisions`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags blocks - * @name V2BlocksDetail2 - * @request GET:/wp/v2/blocks/{parent} - * @originalName v2BlocksDetail - * @duplicate - * @secure - */ - v2BlocksDetail2: ( - parent: number, - query?: { + order?: IV3ProductsShippingClassesListParamsOrderEnum[]; + /** Sort collection by resource attribute. */ + orderby?: IV3ProductsShippingClassesListParamsOrderbyEnum[]; + /** Whether to hide resources not assigned to any products. */ + hide_empty?: boolean; /** - * The ID for the autosave. - * @format int64 - */ - id?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlocksDetail2ParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/blocks/${parent}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags blocks - * @name V2BlocksAutosavesList - * @request GET:/wp/v2/blocks/{id}/autosaves - * @secure - */ - v2BlocksAutosavesList: ( - id: number, - query?: { - /** - * The ID for the parent of the autosave. - * @format int64 - */ - parent?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlocksAutosavesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/blocks/${id}/autosaves`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags blocks - * @name V2BlocksAutosavesCreate - * @request POST:/wp/v2/blocks/{id}/autosaves - * @secure - */ - v2BlocksAutosavesCreate: ( - id: number, - data: { - /** - * The ID for the parent of the autosave. + * Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only. * @format int64 */ parent?: number; /** - * The date the post was published, in the site's timezone. - * @format date-time + * Limit result set to resources assigned to a specific product. + * @format int64 */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + product?: number; + /** Limit result set to resources with a specific slug. */ slug?: string; - /** A named status for the post. */ - status?: IStatusEnum13[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the wp_pattern_category taxonomy. */ - wp_pattern_category?: number[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/blocks/${id}/autosaves`, + path: `/wc/v3/products/shipping_classes`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesCreate + * @request POST:/wc/v3/products/shipping_classes + * @secure + */ + v3ProductsShippingClassesCreate: ( + data: { + /** Name for the resource. */ + name: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesDetail + * @request GET:/wc/v3/products/shipping_classes/{id} + * @secure + */ + v3ProductsShippingClassesDetail: ( + id: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsShippingClassesDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesCreate2 + * @request POST:/wc/v3/products/shipping_classes/{id} + * @originalName v3ProductsShippingClassesCreate + * @duplicate + * @secure + */ + v3ProductsShippingClassesCreate2: ( + id: number, + data: { + /** Shipping class name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/${id}`, method: "POST", body: data, secure: true, @@ -5521,16 +7474,210 @@ export class Api< /** * No description * - * @tags templates - * @name V2TemplatesRevisionsList - * @request GET:/wp/v2/templates/{parent}/revisions + * @tags products + * @name V3ProductsShippingClassesUpdate + * @request PUT:/wc/v3/products/shipping_classes/{id} * @secure */ - v2TemplatesRevisionsList: ( - parent: string, + v3ProductsShippingClassesUpdate: ( + id: number, + query?: { + /** Shipping class name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesPartialUpdate + * @request PATCH:/wc/v3/products/shipping_classes/{id} + * @secure + */ + v3ProductsShippingClassesPartialUpdate: ( + id: number, + query?: { + /** Shipping class name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesDelete + * @request DELETE:/wc/v3/products/shipping_classes/{id} + * @secure + */ + v3ProductsShippingClassesDelete: ( + id: number, + query?: { + /** Required to be true, as resource does not support trashing. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/${id}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesBatchCreate + * @request POST:/wc/v3/products/shipping_classes/batch + * @secure + */ + v3ProductsShippingClassesBatchCreate: ( + data: { + /** Shipping class name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesBatchUpdate + * @request PUT:/wc/v3/products/shipping_classes/batch + * @secure + */ + v3ProductsShippingClassesBatchUpdate: ( + query?: { + /** Shipping class name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesBatchPartialUpdate + * @request PATCH:/wc/v3/products/shipping_classes/batch + * @secure + */ + v3ProductsShippingClassesBatchPartialUpdate: ( + query?: { + /** Shipping class name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsShippingClassesSlugSuggestionList + * @request GET:/wc/v3/products/shipping_classes/slug-suggestion + * @secure + */ + v3ProductsShippingClassesSlugSuggestionList: ( + query?: { + /** Shipping class name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/shipping_classes/slug-suggestion`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsTagsList + * @request GET:/wc/v3/products/tags + * @secure + */ + v3ProductsTagsList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatesRevisionsListParamsContextEnum[]; + context?: IV3ProductsTagsListParamsContextEnum[]; /** * Current page of the collection. * @format int64 @@ -5548,119 +7695,120 @@ export class Api< search?: string; /** Ensure result set excludes specific IDs. */ exclude?: number[]; - /** Limit result set to specific IDs. */ + /** Limit result set to specific ids. */ include?: number[]; /** - * Offset the result set by a specific number of items. + * Offset the result set by a specific number of items. Applies to hierarchical taxonomies only. * @format int64 */ offset?: number; /** Order sort attribute ascending or descending. */ - order?: IV2TemplatesRevisionsListParamsOrderEnum[]; - /** Sort collection by object attribute. */ - orderby?: IV2TemplatesRevisionsListParamsOrderbyEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates/${parent}/revisions`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesDetail - * @request GET:/wp/v2/templates/{parent} - * @secure - */ - v2TemplatesDetail: ( - parent: string, - query?: { + order?: IV3ProductsTagsListParamsOrderEnum[]; + /** Sort collection by resource attribute. */ + orderby?: IV3ProductsTagsListParamsOrderbyEnum[]; + /** Whether to hide resources not assigned to any products. */ + hide_empty?: boolean; /** - * The ID for the autosave. + * Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only. * @format int64 */ - id?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates/${parent}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesAutosavesList - * @request GET:/wp/v2/templates/{id}/autosaves - * @secure - */ - v2TemplatesAutosavesList: ( - id: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatesAutosavesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates/${id}/autosaves`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesAutosavesCreate - * @request POST:/wp/v2/templates/{id}/autosaves - * @secure - */ - v2TemplatesAutosavesCreate: ( - id: string, - data: { - /** Unique slug identifying the template. */ + parent?: number; + /** + * Limit result set to resources assigned to a specific product. + * @format int64 + */ + product?: number; + /** Limit result set to resources with a specific slug. */ slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ - description?: string; - /** Status of template. */ - status?: IStatusEnum14[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/templates/${id}/autosaves`, + path: `/wc/v3/products/tags`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsTagsCreate + * @request POST:/wc/v3/products/tags + * @secure + */ + v3ProductsTagsCreate: ( + data: { + /** Name for the resource. */ + name: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/tags`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsTagsDetail + * @request GET:/wc/v3/products/tags/{id} + * @secure + */ + v3ProductsTagsDetail: ( + id: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsTagsDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/tags/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsTagsCreate2 + * @request POST:/wc/v3/products/tags/{id} + * @originalName v3ProductsTagsCreate + * @duplicate + * @secure + */ + v3ProductsTagsCreate2: ( + id: number, + data: { + /** Tag name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ + slug?: string; + /** HTML description of the resource. */ + description?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/tags/${id}`, method: "POST", body: data, secure: true, @@ -5671,211 +7819,25 @@ export class Api< /** * No description * - * @tags templates - * @name V2TemplatesList - * @request GET:/wp/v2/templates + * @tags products + * @name V3ProductsTagsUpdate + * @request PUT:/wc/v3/products/tags/{id} * @secure */ - v2TemplatesList: ( + v3ProductsTagsUpdate: ( + id: number, query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatesListParamsContextEnum[]; - /** - * Limit to the specified post id. - * @format int64 - */ - wp_id?: number; - /** Limit to the specified template part area. */ - area?: string; - /** Post type to get the templates for. */ - post_type?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesCreate - * @request POST:/wp/v2/templates - * @secure - */ - v2TemplatesCreate: ( - data: { - /** Unique slug identifying the template. */ - slug: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ - description?: string; - /** Status of template. */ - status?: IStatusEnum15[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesLookupList - * @request GET:/wp/v2/templates/lookup - * @secure - */ - v2TemplatesLookupList: ( - query: { - /** The slug of the template to get the fallback for */ - slug: string; - /** Indicates if a template is custom or part of the template hierarchy */ - is_custom?: boolean; - /** The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy` */ - template_prefix?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates/lookup`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesDetail2 - * @request GET:/wp/v2/templates/{id} - * @originalName v2TemplatesDetail - * @duplicate - * @secure - */ - v2TemplatesDetail2: ( - id: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatesDetail2ParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesCreate2 - * @request POST:/wp/v2/templates/{id} - * @originalName v2TemplatesCreate - * @duplicate - * @secure - */ - v2TemplatesCreate2: ( - id: string, - data: { - /** Unique slug identifying the template. */ + /** Tag name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ + /** HTML description of the resource. */ description?: string; - /** Status of template. */ - status?: IStatusEnum16[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/templates/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags templates - * @name V2TemplatesUpdate - * @request PUT:/wp/v2/templates/{id} - * @secure - */ - v2TemplatesUpdate: ( - id: string, - query?: { - /** Unique slug identifying the template. */ - slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ - description?: string; - /** Status of template. */ - status?: IV2TemplatesUpdateParamsStatusEnum[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/templates/${id}`, + path: `/wc/v3/products/tags/${id}`, method: "PUT", query: query, secure: true, @@ -5886,38 +7848,25 @@ export class Api< /** * No description * - * @tags templates - * @name V2TemplatesPartialUpdate - * @request PATCH:/wp/v2/templates/{id} + * @tags products + * @name V3ProductsTagsPartialUpdate + * @request PATCH:/wc/v3/products/tags/{id} * @secure */ - v2TemplatesPartialUpdate: ( - id: string, + v3ProductsTagsPartialUpdate: ( + id: number, query?: { - /** Unique slug identifying the template. */ + /** Tag name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ + /** HTML description of the resource. */ description?: string; - /** Status of template. */ - status?: IV2TemplatesPartialUpdateParamsStatusEnum[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/templates/${id}`, + path: `/wc/v3/products/tags/${id}`, method: "PATCH", query: query, secure: true, @@ -5928,21 +7877,21 @@ export class Api< /** * No description * - * @tags templates - * @name V2TemplatesDelete - * @request DELETE:/wp/v2/templates/{id} + * @tags products + * @name V3ProductsTagsDelete + * @request DELETE:/wc/v3/products/tags/{id} * @secure */ - v2TemplatesDelete: ( - id: string, + v3ProductsTagsDelete: ( + id: number, query?: { - /** Whether to bypass Trash and force deletion. */ + /** Required to be true, as resource does not support trashing. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/templates/${id}`, + path: `/wc/v3/products/tags/${id}`, method: "DELETE", query: query, secure: true, @@ -5953,224 +7902,24 @@ export class Api< /** * No description * - * @tags template-parts - * @name V2TemplatePartsRevisionsList - * @request GET:/wp/v2/template-parts/{parent}/revisions + * @tags products + * @name V3ProductsTagsBatchCreate + * @request POST:/wc/v3/products/tags/batch * @secure */ - v2TemplatePartsRevisionsList: ( - parent: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatePartsRevisionsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2TemplatePartsRevisionsListParamsOrderEnum[]; - /** Sort collection by object attribute. */ - orderby?: IV2TemplatePartsRevisionsListParamsOrderbyEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts/${parent}/revisions`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsDetail - * @request GET:/wp/v2/template-parts/{parent} - * @secure - */ - v2TemplatePartsDetail: ( - parent: string, - query?: { - /** - * The ID for the autosave. - * @format int64 - */ - id?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatePartsDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts/${parent}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsAutosavesList - * @request GET:/wp/v2/template-parts/{id}/autosaves - * @secure - */ - v2TemplatePartsAutosavesList: ( - id: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatePartsAutosavesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts/${id}/autosaves`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsAutosavesCreate - * @request POST:/wp/v2/template-parts/{id}/autosaves - * @secure - */ - v2TemplatePartsAutosavesCreate: ( - id: string, + v3ProductsTagsBatchCreate: ( data: { - /** Unique slug identifying the template. */ + /** Tag name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ + /** HTML description of the resource. */ description?: string; - /** Status of template. */ - status?: IStatusEnum17[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; - /** Where the template part is intended for use (header, footer, etc.) */ - area?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/template-parts/${id}/autosaves`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsList - * @request GET:/wp/v2/template-parts - * @secure - */ - v2TemplatePartsList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatePartsListParamsContextEnum[]; - /** - * Limit to the specified post id. - * @format int64 - */ - wp_id?: number; - /** Limit to the specified template part area. */ - area?: string; - /** Post type to get the templates for. */ - post_type?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsCreate - * @request POST:/wp/v2/template-parts - * @secure - */ - v2TemplatePartsCreate: ( - data: { - /** Unique slug identifying the template. */ - slug: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ - description?: string; - /** Status of template. */ - status?: IStatusEnum18[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; - /** Where the template part is intended for use (header, footer, etc.) */ - area?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts`, + path: `/wc/v3/products/tags/batch`, method: "POST", body: data, secure: true, @@ -6181,141 +7930,24 @@ export class Api< /** * No description * - * @tags template-parts - * @name V2TemplatePartsLookupList - * @request GET:/wp/v2/template-parts/lookup + * @tags products + * @name V3ProductsTagsBatchUpdate + * @request PUT:/wc/v3/products/tags/batch * @secure */ - v2TemplatePartsLookupList: ( - query: { - /** The slug of the template to get the fallback for */ - slug: string; - /** Indicates if a template is custom or part of the template hierarchy */ - is_custom?: boolean; - /** The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy` */ - template_prefix?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts/lookup`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsDetail2 - * @request GET:/wp/v2/template-parts/{id} - * @originalName v2TemplatePartsDetail - * @duplicate - * @secure - */ - v2TemplatePartsDetail2: ( - id: string, + v3ProductsTagsBatchUpdate: ( query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TemplatePartsDetail2ParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsCreate2 - * @request POST:/wp/v2/template-parts/{id} - * @originalName v2TemplatePartsCreate - * @duplicate - * @secure - */ - v2TemplatePartsCreate2: ( - id: string, - data: { - /** Unique slug identifying the template. */ + /** Tag name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ + /** HTML description of the resource. */ description?: string; - /** Status of template. */ - status?: IStatusEnum19[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; - /** Where the template part is intended for use (header, footer, etc.) */ - area?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/template-parts/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags template-parts - * @name V2TemplatePartsUpdate - * @request PUT:/wp/v2/template-parts/{id} - * @secure - */ - v2TemplatePartsUpdate: ( - id: string, - query?: { - /** Unique slug identifying the template. */ - slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ - description?: string; - /** Status of template. */ - status?: IV2TemplatePartsUpdateParamsStatusEnum[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; - /** Where the template part is intended for use (header, footer, etc.) */ - area?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts/${id}`, + path: `/wc/v3/products/tags/batch`, method: "PUT", query: query, secure: true, @@ -6326,40 +7958,24 @@ export class Api< /** * No description * - * @tags template-parts - * @name V2TemplatePartsPartialUpdate - * @request PATCH:/wp/v2/template-parts/{id} + * @tags products + * @name V3ProductsTagsBatchPartialUpdate + * @request PATCH:/wc/v3/products/tags/batch * @secure */ - v2TemplatePartsPartialUpdate: ( - id: string, + v3ProductsTagsBatchPartialUpdate: ( query?: { - /** Unique slug identifying the template. */ + /** Tag name. */ + name?: string; + /** An alphanumeric identifier for the resource unique to its type. */ slug?: string; - /** Theme identifier for the template. */ - theme?: string; - /** Type of template. */ - type?: string; - /** Content of template. */ - content?: string; - /** Title of template. */ - title?: string; - /** Description of template. */ + /** HTML description of the resource. */ description?: string; - /** Status of template. */ - status?: IV2TemplatePartsPartialUpdateParamsStatusEnum[]; - /** - * The ID for the author of the template. - * @format int64 - */ - author?: number; - /** Where the template part is intended for use (header, footer, etc.) */ - area?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/template-parts/${id}`, + path: `/wc/v3/products/tags/batch`, method: "PATCH", query: query, secure: true, @@ -6370,259 +7986,15 @@ export class Api< /** * No description * - * @tags template-parts - * @name V2TemplatePartsDelete - * @request DELETE:/wp/v2/template-parts/{id} + * @tags products + * @name V3ProductsList + * @request GET:/wc/v3/products * @secure */ - v2TemplatePartsDelete: ( - id: string, - query?: { - /** Whether to bypass Trash and force deletion. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/template-parts/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesRevisionsList - * @request GET:/wp/v2/global-styles/{parent}/revisions - * @secure - */ - v2GlobalStylesRevisionsList: ( - parent: number, + v3ProductsList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2GlobalStylesRevisionsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/global-styles/${parent}/revisions`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesDetail - * @request GET:/wp/v2/global-styles/{parent} - * @secure - */ - v2GlobalStylesDetail: ( - parent: number, - query?: { - /** - * Unique identifier for the global styles revision. - * @format int64 - */ - id?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2GlobalStylesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/global-styles/${parent}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesThemesVariationsList - * @request GET:/wp/v2/global-styles/themes/{stylesheet}/variations - * @secure - */ - v2GlobalStylesThemesVariationsList: ( - stylesheet: string, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/global-styles/themes/${stylesheet}/variations`, - method: "GET", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesThemesDetail - * @request GET:/wp/v2/global-styles/themes/{stylesheet} - * @secure - */ - v2GlobalStylesThemesDetail: ( - stylesheet: string, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/global-styles/themes/${stylesheet}`, - method: "GET", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesDetail2 - * @request GET:/wp/v2/global-styles/{id} - * @originalName v2GlobalStylesDetail - * @duplicate - * @secure - */ - v2GlobalStylesDetail2: (id: string, params: RequestParams = {}) => - this.request({ - path: `/wp/v2/global-styles/${id}`, - method: "GET", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesCreate - * @request POST:/wp/v2/global-styles/{id} - * @secure - */ - v2GlobalStylesCreate: ( - id: string, - data: { - /** Global styles. */ - styles?: string; - /** Global settings. */ - settings?: string; - /** Title of the global styles variation. */ - title?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/global-styles/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesUpdate - * @request PUT:/wp/v2/global-styles/{id} - * @secure - */ - v2GlobalStylesUpdate: ( - id: string, - query?: { - /** Global styles. */ - styles?: string; - /** Global settings. */ - settings?: string; - /** Title of the global styles variation. */ - title?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/global-styles/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags global-styles - * @name V2GlobalStylesPartialUpdate - * @request PATCH:/wp/v2/global-styles/{id} - * @secure - */ - v2GlobalStylesPartialUpdate: ( - id: string, - query?: { - /** Global styles. */ - styles?: string; - /** Global settings. */ - settings?: string; - /** Title of the global styles variation. */ - title?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/global-styles/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationList - * @request GET:/wp/v2/navigation - * @secure - */ - v2NavigationList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2NavigationListParamsContextEnum[]; + context?: IV3ProductsListParamsContextEnum[]; /** * Current page of the collection. * @format int64 @@ -6639,322 +8011,30 @@ export class Api< /** Limit results to those matching a string. */ search?: string; /** - * Limit response to posts published after a given ISO8601 compliant date. + * Limit response to resources published after a given ISO8601 compliant date. * @format date-time */ after?: string; /** - * Limit response to posts modified after a given ISO8601 compliant date. - * @format date-time - */ - modified_after?: string; - /** - * Limit response to posts published before a given ISO8601 compliant date. + * Limit response to resources published before a given ISO8601 compliant date. * @format date-time */ before?: string; /** - * Limit response to posts modified before a given ISO8601 compliant date. + * Limit response to resources modified after a given ISO8601 compliant date. + * @format date-time + */ + modified_after?: string; + /** + * Limit response to resources modified before a given ISO8601 compliant date. * @format date-time */ modified_before?: string; + /** Whether to consider GMT post dates when limiting response by published or modified date. */ + dates_are_gmt?: boolean; /** Ensure result set excludes specific IDs. */ exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2NavigationListParamsSearchSemanticsEnum[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2NavigationListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2NavigationListParamsOrderbyEnum[]; - /** Array of column names to be searched. */ - search_columns?: string[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to posts assigned one or more statuses. */ - status?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationCreate - * @request POST:/wp/v2/navigation - * @secure - */ - v2NavigationCreate: ( - data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum20[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The theme file to use to display the post. */ - template?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationDetail - * @request GET:/wp/v2/navigation/{id} - * @secure - */ - v2NavigationDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2NavigationDetailParamsContextEnum[]; - /** The password for the post if it is password protected. */ - password?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationCreate2 - * @request POST:/wp/v2/navigation/{id} - * @originalName v2NavigationCreate - * @duplicate - * @secure - */ - v2NavigationCreate2: ( - id: number, - data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum21[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The theme file to use to display the post. */ - template?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationUpdate - * @request PUT:/wp/v2/navigation/{id} - * @secure - */ - v2NavigationUpdate: ( - id: number, - query?: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2NavigationUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The theme file to use to display the post. */ - template?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationPartialUpdate - * @request PATCH:/wp/v2/navigation/{id} - * @secure - */ - v2NavigationPartialUpdate: ( - id: number, - query?: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IV2NavigationPartialUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The theme file to use to display the post. */ - template?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationDelete - * @request DELETE:/wp/v2/navigation/{id} - * @secure - */ - v2NavigationDelete: ( - id: number, - query?: { - /** Whether to bypass Trash and force deletion. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationRevisionsList - * @request GET:/wp/v2/navigation/{parent}/revisions - * @secure - */ - v2NavigationRevisionsList: ( - parent: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2NavigationRevisionsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ + /** Limit result set to specific ids. */ include?: number[]; /** * Offset the result set by a specific number of items. @@ -6962,604 +8042,68 @@ export class Api< */ offset?: number; /** Order sort attribute ascending or descending. */ - order?: IV2NavigationRevisionsListParamsOrderEnum[]; + order?: IV3ProductsListParamsOrderEnum[]; /** Sort collection by object attribute. */ - orderby?: IV2NavigationRevisionsListParamsOrderbyEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${parent}/revisions`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationDetail2 - * @request GET:/wp/v2/navigation/{parent} - * @originalName v2NavigationDetail - * @duplicate - * @secure - */ - v2NavigationDetail2: ( - parent: number, - query?: { - /** - * The ID for the autosave. - * @format int64 - */ - id?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2NavigationDetail2ParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${parent}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationAutosavesList - * @request GET:/wp/v2/navigation/{id}/autosaves - * @secure - */ - v2NavigationAutosavesList: ( - id: number, - query?: { - /** - * The ID for the parent of the autosave. - * @format int64 - */ - parent?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2NavigationAutosavesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${id}/autosaves`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags navigation - * @name V2NavigationAutosavesCreate - * @request POST:/wp/v2/navigation/{id}/autosaves - * @secure - */ - v2NavigationAutosavesCreate: ( - id: number, - data: { - /** - * The ID for the parent of the autosave. - * @format int64 - */ - parent?: number; - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ - slug?: string; - /** A named status for the post. */ - status?: IStatusEnum22[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The theme file to use to display the post. */ - template?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/navigation/${id}/autosaves`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesList - * @request GET:/wp/v2/font-families - * @secure - */ - v2FontFamiliesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2FontFamiliesListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2FontFamiliesListParamsSearchSemanticsEnum[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2FontFamiliesListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2FontFamiliesListParamsOrderbyEnum[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesCreate - * @request POST:/wp/v2/font-families - * @secure - */ - v2FontFamiliesCreate: ( - data: { - /** - * Version of the theme.json schema used for the typography settings. - * @format int64 - * @min 2 - * @max 3 - */ - theme_json_version?: number; - /** font-family declaration in theme.json format, encoded as a string. */ - font_family_settings: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesDetail - * @request GET:/wp/v2/font-families/{id} - * @secure - */ - v2FontFamiliesDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2FontFamiliesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesCreate2 - * @request POST:/wp/v2/font-families/{id} - * @originalName v2FontFamiliesCreate - * @duplicate - * @secure - */ - v2FontFamiliesCreate2: ( - id: number, - data: { - /** - * Version of the theme.json schema used for the typography settings. - * @format int64 - * @min 2 - * @max 3 - */ - theme_json_version?: number; - /** font-family declaration in theme.json format, encoded as a string. */ - font_family_settings: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesUpdate - * @request PUT:/wp/v2/font-families/{id} - * @secure - */ - v2FontFamiliesUpdate: ( - id: number, - query: { - /** - * Version of the theme.json schema used for the typography settings. - * @format int64 - * @min 2 - * @max 3 - */ - theme_json_version?: number; - /** font-family declaration in theme.json format, encoded as a string. */ - font_family_settings: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesPartialUpdate - * @request PATCH:/wp/v2/font-families/{id} - * @secure - */ - v2FontFamiliesPartialUpdate: ( - id: number, - query: { - /** - * Version of the theme.json schema used for the typography settings. - * @format int64 - * @min 2 - * @max 3 - */ - theme_json_version?: number; - /** font-family declaration in theme.json format, encoded as a string. */ - font_family_settings: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesDelete - * @request DELETE:/wp/v2/font-families/{id} - * @secure - */ - v2FontFamiliesDelete: ( - id: number, - query?: { - /** Whether to bypass Trash and force deletion. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesFontFacesList - * @request GET:/wp/v2/font-families/{font_family_id}/font-faces - * @secure - */ - v2FontFamiliesFontFacesList: ( - fontFamilyId: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2FontFamiliesFontFacesListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2FontFamiliesFontFacesListParamsSearchSemanticsEnum[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2FontFamiliesFontFacesListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2FontFamiliesFontFacesListParamsOrderbyEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${fontFamilyId}/font-faces`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesFontFacesCreate - * @request POST:/wp/v2/font-families/{font_family_id}/font-faces - * @secure - */ - v2FontFamiliesFontFacesCreate: ( - fontFamilyId: number, - data: { - /** - * Version of the theme.json schema used for the typography settings. - * @format int64 - * @min 2 - * @max 3 - */ - theme_json_version?: number; - /** font-face declaration in theme.json format, encoded as a string. */ - font_face_settings: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${fontFamilyId}/font-faces`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesDetail2 - * @request GET:/wp/v2/font-families/{font_family_id} - * @originalName v2FontFamiliesDetail - * @duplicate - * @secure - */ - v2FontFamiliesDetail2: ( - fontFamilyId: number, - query: { - /** - * Unique identifier for the font face. - * @format int64 - */ - id: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2FontFamiliesDetail2ParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${fontFamilyId}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags font-families - * @name V2FontFamiliesDelete2 - * @request DELETE:/wp/v2/font-families/{font_family_id} - * @originalName v2FontFamiliesDelete - * @duplicate - * @secure - */ - v2FontFamiliesDelete2: ( - fontFamilyId: number, - query: { - /** - * Unique identifier for the font face. - * @format int64 - */ - id: number; - /** Whether to bypass Trash and force deletion. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/font-families/${fontFamilyId}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product - * @name V2ProductList - * @request GET:/wp/v2/product - * @secure - */ - v2ProductList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** - * Limit response to posts published after a given ISO8601 compliant date. - * @format date-time - */ - after?: string; - /** - * Limit response to posts modified after a given ISO8601 compliant date. - * @format date-time - */ - modified_after?: string; - /** - * Limit response to posts published before a given ISO8601 compliant date. - * @format date-time - */ - before?: string; - /** - * Limit response to posts modified before a given ISO8601 compliant date. - * @format date-time - */ - modified_before?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** How to interpret the search input. */ - search_semantics?: IV2ProductListParamsSearchSemanticsEnum[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2ProductListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2ProductListParamsOrderbyEnum[]; - /** Array of column names to be searched. */ - search_columns?: string[]; - /** Limit result set to posts with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to posts assigned one or more statuses. */ - status?: string[]; - /** Limit result set based on relationship between multiple taxonomies. */ - tax_relation?: IV2ProductListParamsTaxRelationEnum[]; - /** Limit result set to items with specific terms assigned in the product_brand taxonomy. */ - product_brand?: string; - /** Limit result set to items except those with specific terms assigned in the product_brand taxonomy. */ - product_brand_exclude?: string; - /** Limit result set to items with specific terms assigned in the product_cat taxonomy. */ - product_cat?: string; - /** Limit result set to items except those with specific terms assigned in the product_cat taxonomy. */ - product_cat_exclude?: string; - /** Limit result set to items with specific terms assigned in the product_tag taxonomy. */ - product_tag?: string; - /** Limit result set to items except those with specific terms assigned in the product_tag taxonomy. */ - product_tag_exclude?: string; + orderby?: IV3ProductsListParamsOrderbyEnum[]; + /** Limit result set to those of particular parent IDs. */ + parent?: number[]; + /** Limit result set to all items except those of a particular parent ID. */ + parent_exclude?: number[]; /** Limit result set to products assigned a specific brand ID. */ brand?: string; + /** Limit result set to products with a specific slug. */ + slug?: string; + /** Limit result set to products assigned a specific status. */ + status?: IV3ProductsListParamsStatusEnum[]; + /** Limit result set to products assigned a specific type. */ + type?: IV3ProductsListParamsTypeEnum[]; + /** Limit result set to products with specific SKU(s). Use commas to separate. */ + sku?: string; + /** Limit result set to featured products. */ + featured?: boolean; + /** Limit result set to products assigned a specific category ID. */ + category?: string; + /** Limit result set to products assigned a specific tag ID. */ + tag?: string; + /** Limit result set to products assigned a specific shipping class ID. */ + shipping_class?: string; + /** Limit result set to products with a specific attribute. Use the taxonomy name/attribute slug. */ + attribute?: string; + /** Limit result set to products with a specific attribute term ID (required an assigned attribute). */ + attribute_term?: string; + /** Limit result set to products on sale. */ + on_sale?: boolean; + /** Limit result set to products based on a minimum price. */ + min_price?: string; + /** Limit result set to products based on a maximum price. */ + max_price?: string; + /** Limit meta_data to specific keys. */ + include_meta?: string[]; + /** Ensure meta_data excludes specific keys. */ + exclude_meta?: string[]; + /** Limit result set to products with specified stock status. */ + stock_status?: IV3ProductsListParamsStockStatusEnum[]; + /** Limit results to those with a SKU that partial matches a string. This argument takes precedence over 'sku'. */ + search_sku?: string; + /** Limit results to those with a name or SKU that partial matches a string. This argument takes precedence over 'search', 'sku' and 'search_sku'. */ + search_name_or_sku?: string; + /** Limit result set to products with any of the statuses. */ + include_status?: string[]; + /** Exclude products with any of the statuses from result set. */ + exclude_status?: string[]; + /** Limit result set to products with any of the types. */ + include_types?: string[]; + /** Exclude products with any of the types from result set. */ + exclude_types?: string[]; + /** Limit result set to downloadable products. */ + downloadable?: boolean; + /** Limit result set to virtual products. */ + virtual?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product`, + path: `/wc/v3/products`, method: "GET", query: query, secure: true, @@ -7570,59 +8114,136 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductCreate - * @request POST:/wp/v2/product + * @tags products + * @name V3ProductsCreate + * @request POST:/wc/v3/products * @secure */ - v2ProductCreate: ( + v3ProductsCreate: ( data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + /** Product name. */ + name?: string; + /** Product slug. */ slug?: string; - /** A named status for the post. */ - status?: IStatusEnum23[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: null; + /** The date the product was created, as GMT. */ + date_created_gmt?: null; + /** Product type. */ + type?: ITypeEnum3[]; + /** Product status (post status). */ + status?: IStatusEnum6[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: ICatalogVisibilityEnum[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; /** - * The ID of the featured media for the post. + * Number of times downloadable files can be downloaded after purchase. * @format int64 */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum8[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum8[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the product_brand taxonomy. */ - product_brand?: number[]; - /** The terms assigned to the post in the product_cat taxonomy. */ - product_cat?: number[]; - /** The terms assigned to the post in the product_tag taxonomy. */ - product_tag?: number[]; + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: ITaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product`, + path: `/wc/v3/products`, method: "POST", body: data, secure: true, @@ -7633,28 +8254,21 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductDetail - * @request GET:/wp/v2/product/{id} + * @tags products + * @name V3ProductsDetail + * @request GET:/wc/v3/products/{id} * @secure */ - v2ProductDetail: ( + v3ProductsDetail: ( id: number, query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductDetailParamsContextEnum[]; - /** - * Override the default excerpt length. - * @format int64 - */ - excerpt_length?: number; - /** The password for the post if it is password protected. */ - password?: string; + context?: IV3ProductsDetailParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${id}`, + path: `/wc/v3/products/${id}`, method: "GET", query: query, secure: true, @@ -7665,62 +8279,139 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductCreate2 - * @request POST:/wp/v2/product/{id} - * @originalName v2ProductCreate + * @tags products + * @name V3ProductsCreate2 + * @request POST:/wc/v3/products/{id} + * @originalName v3ProductsCreate * @duplicate * @secure */ - v2ProductCreate2: ( + v3ProductsCreate2: ( id: number, data: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + /** Product name. */ + name?: string; + /** Product slug. */ slug?: string; - /** A named status for the post. */ - status?: IStatusEnum24[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: null; + /** The date the product was created, as GMT. */ + date_created_gmt?: null; + /** Product type. */ + type?: ITypeEnum4[]; + /** Product status (post status). */ + status?: IStatusEnum7[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: ICatalogVisibilityEnum1[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; /** - * The ID of the featured media for the post. + * Number of times downloadable files can be downloaded after purchase. * @format int64 */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum9[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum9[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the product_brand taxonomy. */ - product_brand?: number[]; - /** The terms assigned to the post in the product_cat taxonomy. */ - product_cat?: number[]; - /** The terms assigned to the post in the product_tag taxonomy. */ - product_tag?: number[]; + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: ITaxStatusEnum1[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum1[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum1[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${id}`, + path: `/wc/v3/products/${id}`, method: "POST", body: data, secure: true, @@ -7731,60 +8422,137 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductUpdate - * @request PUT:/wp/v2/product/{id} + * @tags products + * @name V3ProductsUpdate + * @request PUT:/wc/v3/products/{id} * @secure */ - v2ProductUpdate: ( + v3ProductsUpdate: ( id: number, query?: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + /** Product name. */ + name?: string; + /** Product slug. */ slug?: string; - /** A named status for the post. */ - status?: IV2ProductUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: any; + /** The date the product was created, as GMT. */ + date_created_gmt?: any; + /** Product type. */ + type?: IV3ProductsUpdateParamsTypeEnum[]; + /** Product status (post status). */ + status?: IV3ProductsUpdateParamsStatusEnum[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: IV3ProductsUpdateParamsCatalogVisibilityEnum[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; /** - * The ID of the featured media for the post. + * Number of times downloadable files can be downloaded after purchase. * @format int64 */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2ProductUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2ProductUpdateParamsPingStatusEnum[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the product_brand taxonomy. */ - product_brand?: number[]; - /** The terms assigned to the post in the product_cat taxonomy. */ - product_cat?: number[]; - /** The terms assigned to the post in the product_tag taxonomy. */ - product_tag?: number[]; + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: IV3ProductsUpdateParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsUpdateParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsUpdateParamsBackordersEnum[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${id}`, + path: `/wc/v3/products/${id}`, method: "PUT", query: query, secure: true, @@ -7795,60 +8563,137 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductPartialUpdate - * @request PATCH:/wp/v2/product/{id} + * @tags products + * @name V3ProductsPartialUpdate + * @request PATCH:/wc/v3/products/{id} * @secure */ - v2ProductPartialUpdate: ( + v3ProductsPartialUpdate: ( id: number, query?: { - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + /** Product name. */ + name?: string; + /** Product slug. */ slug?: string; - /** A named status for the post. */ - status?: IV2ProductPartialUpdateParamsStatusEnum[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: any; + /** The date the product was created, as GMT. */ + date_created_gmt?: any; + /** Product type. */ + type?: IV3ProductsPartialUpdateParamsTypeEnum[]; + /** Product status (post status). */ + status?: IV3ProductsPartialUpdateParamsStatusEnum[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: IV3ProductsPartialUpdateParamsCatalogVisibilityEnum[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; /** - * The ID of the featured media for the post. + * Number of times downloadable files can be downloaded after purchase. * @format int64 */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: IV2ProductPartialUpdateParamsCommentStatusEnum[]; - /** Whether or not the post can be pinged. */ - ping_status?: IV2ProductPartialUpdateParamsPingStatusEnum[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the product_brand taxonomy. */ - product_brand?: number[]; - /** The terms assigned to the post in the product_cat taxonomy. */ - product_cat?: number[]; - /** The terms assigned to the post in the product_tag taxonomy. */ - product_tag?: number[]; + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: IV3ProductsPartialUpdateParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsPartialUpdateParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsPartialUpdateParamsBackordersEnum[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${id}`, + path: `/wc/v3/products/${id}`, method: "PATCH", query: query, secure: true, @@ -7859,21 +8704,21 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductDelete - * @request DELETE:/wp/v2/product/{id} + * @tags products + * @name V3ProductsDelete + * @request DELETE:/wc/v3/products/{id} * @secure */ - v2ProductDelete: ( + v3ProductsDelete: ( id: number, query?: { - /** Whether to bypass Trash and force deletion. */ + /** Whether to bypass trash and force deletion. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${id}`, + path: `/wc/v3/products/${id}`, method: "DELETE", query: query, secure: true, @@ -7884,26 +8729,537 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductAutosavesList - * @request GET:/wp/v2/product/{id}/autosaves + * @tags products + * @name V3ProductsBatchCreate + * @request POST:/wc/v3/products/batch * @secure */ - v2ProductAutosavesList: ( - id: number, - query?: { + v3ProductsBatchCreate: ( + data: { + /** Product name. */ + name?: string; + /** Product slug. */ + slug?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: null; + /** The date the product was created, as GMT. */ + date_created_gmt?: null; + /** Product type. */ + type?: ITypeEnum5[]; + /** Product status (post status). */ + status?: IStatusEnum8[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: ICatalogVisibilityEnum2[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; /** - * The ID for the parent of the autosave. + * Number of times downloadable files can be downloaded after purchase. * @format int64 */ - parent?: number; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductAutosavesListParamsContextEnum[]; + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: ITaxStatusEnum2[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum2[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum2[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${id}/autosaves`, + path: `/wc/v3/products/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBatchUpdate + * @request PUT:/wc/v3/products/batch + * @secure + */ + v3ProductsBatchUpdate: ( + query?: { + /** Product name. */ + name?: string; + /** Product slug. */ + slug?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: any; + /** The date the product was created, as GMT. */ + date_created_gmt?: any; + /** Product type. */ + type?: IV3ProductsBatchUpdateParamsTypeEnum[]; + /** Product status (post status). */ + status?: IV3ProductsBatchUpdateParamsStatusEnum[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: IV3ProductsBatchUpdateParamsCatalogVisibilityEnum[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: IV3ProductsBatchUpdateParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsBatchUpdateParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsBatchUpdateParamsBackordersEnum[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsBatchPartialUpdate + * @request PATCH:/wc/v3/products/batch + * @secure + */ + v3ProductsBatchPartialUpdate: ( + query?: { + /** Product name. */ + name?: string; + /** Product slug. */ + slug?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: any; + /** The date the product was created, as GMT. */ + date_created_gmt?: any; + /** Product type. */ + type?: IV3ProductsBatchPartialUpdateParamsTypeEnum[]; + /** Product status (post status). */ + status?: IV3ProductsBatchPartialUpdateParamsStatusEnum[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: IV3ProductsBatchPartialUpdateParamsCatalogVisibilityEnum[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: IV3ProductsBatchPartialUpdateParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsBatchPartialUpdateParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsBatchPartialUpdateParamsBackordersEnum[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsSuggestedProductsList + * @request GET:/wc/v3/products/suggested-products + * @secure + */ + v3ProductsSuggestedProductsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsSuggestedProductsListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** + * Limit response to resources published after a given ISO8601 compliant date. + * @format date-time + */ + after?: string; + /** + * Limit response to resources published before a given ISO8601 compliant date. + * @format date-time + */ + before?: string; + /** + * Limit response to resources modified after a given ISO8601 compliant date. + * @format date-time + */ + modified_after?: string; + /** + * Limit response to resources modified before a given ISO8601 compliant date. + * @format date-time + */ + modified_before?: string; + /** Whether to consider GMT post dates when limiting response by published or modified date. */ + dates_are_gmt?: boolean; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific ids. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3ProductsSuggestedProductsListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3ProductsSuggestedProductsListParamsOrderbyEnum[]; + /** Limit result set to those of particular parent IDs. */ + parent?: number[]; + /** Limit result set to all items except those of a particular parent ID. */ + parent_exclude?: number[]; + /** Limit result set to products assigned a specific brand ID. */ + brand?: string; + /** Limit result set to products with a specific slug. */ + slug?: string; + /** Limit result set to products assigned a specific status. */ + status?: IV3ProductsSuggestedProductsListParamsStatusEnum[]; + /** Limit result set to products assigned a specific type. */ + type?: IV3ProductsSuggestedProductsListParamsTypeEnum[]; + /** Limit result set to products with specific SKU(s). Use commas to separate. */ + sku?: string; + /** Limit result set to featured products. */ + featured?: boolean; + /** Limit result set to products assigned a specific category ID. */ + category?: string; + /** Limit result set to products assigned a specific tag ID. */ + tag?: string; + /** Limit result set to products assigned a specific shipping class ID. */ + shipping_class?: string; + /** Limit result set to products with a specific attribute. Use the taxonomy name/attribute slug. */ + attribute?: string; + /** Limit result set to products with a specific attribute term ID (required an assigned attribute). */ + attribute_term?: string; + /** Limit result set to products in stock or out of stock. */ + in_stock?: boolean; + /** Limit result set to products on sale. */ + on_sale?: boolean; + /** Limit result set to products based on a minimum price. */ + min_price?: string; + /** Limit result set to products based on a maximum price. */ + max_price?: string; + /** Limit meta_data to specific keys. */ + include_meta?: string[]; + /** Ensure meta_data excludes specific keys. */ + exclude_meta?: string[]; + /** Limit result set to specific product categorie ids. */ + categories?: number[]; + /** Limit result set to specific product tag ids. */ + tags?: number[]; + /** + * Limit result set to specific amount of suggested products. + * @format int64 + */ + limit?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/suggested-products`, method: "GET", query: query, secure: true, @@ -7914,65 +9270,137 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductAutosavesCreate - * @request POST:/wp/v2/product/{id}/autosaves + * @tags products + * @name V3ProductsDuplicateCreate + * @request POST:/wc/v3/products/{id}/duplicate * @secure */ - v2ProductAutosavesCreate: ( + v3ProductsDuplicateCreate: ( id: number, data: { - /** - * The ID for the parent of the autosave. - * @format int64 - */ - parent?: number; - /** - * The date the post was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the post was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** An alphanumeric identifier for the post unique to its type. */ + /** Product name. */ + name?: string; + /** Product slug. */ slug?: string; - /** A named status for the post. */ - status?: IStatusEnum25[]; - /** A password to protect access to the content and excerpt. */ - password?: string; - /** The title for the post. */ - title?: string; - /** The content for the post. */ - content?: string; - /** The excerpt for the post. */ - excerpt?: string; + /** The date the product was created, in the site's timezone. */ + date_created?: null; + /** The date the product was created, as GMT. */ + date_created_gmt?: null; + /** Product type. */ + type?: ITypeEnum6[]; + /** Product status (post status). */ + status?: IStatusEnum9[]; + /** Featured product. */ + featured?: boolean; + /** Catalog visibility. */ + catalog_visibility?: ICatalogVisibilityEnum3[]; + /** Product description. */ + description?: string; + /** Product short description. */ + short_description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Product regular price. */ + regular_price?: string; + /** Product sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** If the product is virtual. */ + virtual?: boolean; + /** If the product is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; /** - * The ID of the featured media for the post. + * Number of times downloadable files can be downloaded after purchase. * @format int64 */ - featured_media?: number; - /** Whether or not comments are open on the post. */ - comment_status?: ICommentStatusEnum10[]; - /** Whether or not the post can be pinged. */ - ping_status?: IPingStatusEnum10[]; - /** Meta fields. */ - meta?: string; - /** The theme file to use to display the post. */ - template?: string; - /** The terms assigned to the post in the product_brand taxonomy. */ - product_brand?: number[]; - /** The terms assigned to the post in the product_cat taxonomy. */ - product_cat?: number[]; - /** The terms assigned to the post in the product_tag taxonomy. */ - product_tag?: number[]; + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** + * Product external URL. Only for external products. + * @format uri + */ + external_url?: string; + /** Product external button text. Only for external products. */ + button_text?: string; + /** Tax status. */ + tax_status?: ITaxStatusEnum3[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at product level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum3[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum3[]; + /** Low Stock amount for the product. */ + low_stock_amount?: number; + /** Allow one item to be bought in a single order. */ + sold_individually?: boolean; + /** Product weight (kg). */ + weight?: string; + /** Product dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Allow reviews. */ + reviews_allowed?: boolean; + /** Post password. */ + post_password?: string; + /** List of up-sell products IDs. */ + upsell_ids?: number[]; + /** List of cross-sell products IDs. */ + cross_sell_ids?: number[]; + /** + * Product parent ID. + * @format int64 + */ + parent_id?: number; + /** Optional note to send the customer after purchase. */ + purchase_note?: string; + /** List of categories. */ + categories?: object[]; + /** List of brands. */ + brands?: object[]; + /** List of tags. */ + tags?: object[]; + /** List of images. */ + images?: object[]; + /** List of attributes. */ + attributes?: object[]; + /** Defaults variation attributes. */ + default_attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${id}/autosaves`, + path: `/wc/v3/products/${id}/duplicate`, method: "POST", body: data, secure: true, @@ -7983,28 +9411,230 @@ export class Api< /** * No description * - * @tags product - * @name V2ProductDetail2 - * @request GET:/wp/v2/product/{parent} - * @originalName v2ProductDetail + * @tags products + * @name V3ProductsVariationsList + * @request GET:/wc/v3/products/{product_id}/variations + * @secure + */ + v3ProductsVariationsList: ( + productId: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ProductsVariationsListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** + * Limit response to resources published after a given ISO8601 compliant date. + * @format date-time + */ + after?: string; + /** + * Limit response to resources published before a given ISO8601 compliant date. + * @format date-time + */ + before?: string; + /** + * Limit response to resources modified after a given ISO8601 compliant date. + * @format date-time + */ + modified_after?: string; + /** + * Limit response to resources modified before a given ISO8601 compliant date. + * @format date-time + */ + modified_before?: string; + /** Whether to consider GMT post dates when limiting response by published or modified date. */ + dates_are_gmt?: boolean; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific ids. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3ProductsVariationsListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3ProductsVariationsListParamsOrderbyEnum[]; + /** Limit result set to those of particular parent IDs. */ + parent?: number[]; + /** Limit result set to all items except those of a particular parent ID. */ + parent_exclude?: number[]; + /** Limit result set to products with a specific slug. */ + slug?: string; + /** Limit result set to products assigned a specific status. */ + status?: IV3ProductsVariationsListParamsStatusEnum[]; + /** Limit result set to products with specific SKU(s). Use commas to separate. */ + sku?: string; + /** Limit result set to products on sale. */ + on_sale?: boolean; + /** Limit result set to products based on a minimum price. */ + min_price?: string; + /** Limit result set to products based on a maximum price. */ + max_price?: string; + /** Limit meta_data to specific keys. */ + include_meta?: string[]; + /** Ensure meta_data excludes specific keys. */ + exclude_meta?: string[]; + /** Limit result set to products with specified stock status. */ + stock_status?: IV3ProductsVariationsListParamsStockStatusEnum[]; + /** Limit result set to products with or without price. */ + has_price?: boolean; + /** Limit result set to products with specified attributes. */ + attributes?: object[]; + /** Limit result set to virtual product variations. */ + virtual?: boolean; + /** Limit result set to downloadable product variations. */ + downloadable?: boolean; + /** Limit result set to product variations with any of the statuses. */ + include_status?: string[]; + /** Exclude product variations with any of the statuses from result set. */ + exclude_status?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/${productId}/variations`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsVariationsCreate + * @request POST:/wc/v3/products/{product_id}/variations + * @secure + */ + v3ProductsVariationsCreate: ( + productId: number, + data: { + /** Variation description. */ + description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** Variation status. */ + status?: IStatusEnum10[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: ITaxStatusEnum4[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum4[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum4[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/products/${productId}/variations`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags products + * @name V3ProductsDetail2 + * @request GET:/wc/v3/products/{product_id} + * @originalName v3ProductsDetail * @duplicate * @secure */ - v2ProductDetail2: ( - parent: number, + v3ProductsDetail2: ( + productId: number, query?: { /** - * The ID for the autosave. + * Unique identifier for the variation. * @format int64 */ id?: number; /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductDetail2ParamsContextEnum[]; + context?: IV3ProductsDetail2ParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/product/${parent}`, + path: `/wc/v3/products/${productId}`, method: "GET", query: query, secure: true, @@ -8015,304 +9645,96 @@ export class Api< /** * No description * - * @tags types - * @name V2TypesList - * @request GET:/wp/v2/types - * @secure - */ - v2TypesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TypesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/types`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags types - * @name V2TypesDetail - * @request GET:/wp/v2/types/{type} - * @secure - */ - v2TypesDetail: ( - type: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TypesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/types/${type}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags statuses - * @name V2StatusesList - * @request GET:/wp/v2/statuses - * @secure - */ - v2StatusesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2StatusesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/statuses`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags statuses - * @name V2StatusesDetail - * @request GET:/wp/v2/statuses/{status} - * @secure - */ - v2StatusesDetail: ( - status: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2StatusesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/statuses/${status}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags taxonomies - * @name V2TaxonomiesList - * @request GET:/wp/v2/taxonomies - * @secure - */ - v2TaxonomiesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TaxonomiesListParamsContextEnum[]; - /** Limit results to taxonomies associated with a specific post type. */ - type?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/taxonomies`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags taxonomies - * @name V2TaxonomiesDetail - * @request GET:/wp/v2/taxonomies/{taxonomy} - * @secure - */ - v2TaxonomiesDetail: ( - taxonomy: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TaxonomiesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/taxonomies/${taxonomy}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags categories - * @name V2CategoriesList - * @request GET:/wp/v2/categories - * @secure - */ - v2CategoriesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2CategoriesListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** Order sort attribute ascending or descending. */ - order?: IV2CategoriesListParamsOrderEnum[]; - /** Sort collection by term attribute. */ - orderby?: IV2CategoriesListParamsOrderbyEnum[]; - /** Whether to hide terms not assigned to any posts. */ - hide_empty?: boolean; - /** - * Limit result set to terms assigned to a specific parent. - * @format int64 - */ - parent?: number; - /** - * Limit result set to terms assigned to a specific post. - * @format int64 - */ - post?: number; - /** Limit result set to terms with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/categories`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags categories - * @name V2CategoriesCreate - * @request POST:/wp/v2/categories - * @secure - */ - v2CategoriesCreate: ( - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/categories`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags categories - * @name V2CategoriesDetail - * @request GET:/wp/v2/categories/{id} - * @secure - */ - v2CategoriesDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2CategoriesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/categories/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags categories - * @name V2CategoriesCreate2 - * @request POST:/wp/v2/categories/{id} - * @originalName v2CategoriesCreate + * @tags products + * @name V3ProductsCreate3 + * @request POST:/wc/v3/products/{product_id} + * @originalName v3ProductsCreate * @duplicate * @secure */ - v2CategoriesCreate2: ( - id: number, + v3ProductsCreate3: ( + productId: number, data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; /** - * The parent term ID. + * Unique identifier for the variation. * @format int64 */ - parent?: number; - /** Meta fields. */ - meta?: string; + id?: number; + /** Variation description. */ + description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** Variation status. */ + status?: IStatusEnum11[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: ITaxStatusEnum5[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum5[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum5[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/categories/${id}`, + path: `/wc/v3/products/${productId}`, method: "POST", body: data, secure: true, @@ -8323,32 +9745,96 @@ export class Api< /** * No description * - * @tags categories - * @name V2CategoriesUpdate - * @request PUT:/wp/v2/categories/{id} + * @tags products + * @name V3ProductsUpdate2 + * @request PUT:/wc/v3/products/{product_id} + * @originalName v3ProductsUpdate + * @duplicate * @secure */ - v2CategoriesUpdate: ( - id: number, + v3ProductsUpdate2: ( + productId: number, query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; /** - * The parent term ID. + * Unique identifier for the variation. * @format int64 */ - parent?: number; - /** Meta fields. */ - meta?: string; + id?: number; + /** Variation description. */ + description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** Variation status. */ + status?: IV3ProductsUpdate2ParamsStatusEnum[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: IV3ProductsUpdate2ParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsUpdate2ParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsUpdate2ParamsBackordersEnum[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/categories/${id}`, + path: `/wc/v3/products/${productId}`, method: "PUT", query: query, secure: true, @@ -8359,32 +9845,96 @@ export class Api< /** * No description * - * @tags categories - * @name V2CategoriesPartialUpdate - * @request PATCH:/wp/v2/categories/{id} + * @tags products + * @name V3ProductsPartialUpdate2 + * @request PATCH:/wc/v3/products/{product_id} + * @originalName v3ProductsPartialUpdate + * @duplicate * @secure */ - v2CategoriesPartialUpdate: ( - id: number, + v3ProductsPartialUpdate2: ( + productId: number, query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; /** - * The parent term ID. + * Unique identifier for the variation. * @format int64 */ - parent?: number; - /** Meta fields. */ - meta?: string; + id?: number; + /** Variation description. */ + description?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** Variation status. */ + status?: IV3ProductsPartialUpdate2ParamsStatusEnum[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: IV3ProductsPartialUpdate2ParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsPartialUpdate2ParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsPartialUpdate2ParamsBackordersEnum[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/categories/${id}`, + path: `/wc/v3/products/${productId}`, method: "PATCH", query: query, secure: true, @@ -8395,21 +9945,28 @@ export class Api< /** * No description * - * @tags categories - * @name V2CategoriesDelete - * @request DELETE:/wp/v2/categories/{id} + * @tags products + * @name V3ProductsDelete2 + * @request DELETE:/wc/v3/products/{product_id} + * @originalName v3ProductsDelete + * @duplicate * @secure */ - v2CategoriesDelete: ( - id: number, + v3ProductsDelete2: ( + productId: number, query?: { - /** Required to be true, as terms do not support trashing. */ + /** + * Unique identifier for the variation. + * @format int64 + */ + id?: number; + /** Whether to bypass trash and force deletion. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/categories/${id}`, + path: `/wc/v3/products/${productId}`, method: "DELETE", query: query, secure: true, @@ -8420,145 +9977,89 @@ export class Api< /** * No description * - * @tags tags - * @name V2TagsList - * @request GET:/wp/v2/tags + * @tags products + * @name V3ProductsVariationsBatchCreate + * @request POST:/wc/v3/products/{product_id}/variations/batch * @secure */ - v2TagsList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TagsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2TagsListParamsOrderEnum[]; - /** Sort collection by term attribute. */ - orderby?: IV2TagsListParamsOrderbyEnum[]; - /** Whether to hide terms not assigned to any posts. */ - hide_empty?: boolean; - /** - * Limit result set to terms assigned to a specific post. - * @format int64 - */ - post?: number; - /** Limit result set to terms with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/tags`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags tags - * @name V2TagsCreate - * @request POST:/wp/v2/tags - * @secure - */ - v2TagsCreate: ( + v3ProductsVariationsBatchCreate: ( + productId: number, data: { - /** HTML description of the term. */ + /** Variation description. */ description?: string; - /** HTML title for the term. */ - name: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** Variation status. */ + status?: IStatusEnum12[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: ITaxStatusEnum6[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum6[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum6[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/tags`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags tags - * @name V2TagsDetail - * @request GET:/wp/v2/tags/{id} - * @secure - */ - v2TagsDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2TagsDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/tags/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags tags - * @name V2TagsCreate2 - * @request POST:/wp/v2/tags/{id} - * @originalName v2TagsCreate - * @duplicate - * @secure - */ - v2TagsCreate2: ( - id: number, - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/tags/${id}`, + path: `/wc/v3/products/${productId}/variations/batch`, method: "POST", body: data, secure: true, @@ -8569,27 +10070,89 @@ export class Api< /** * No description * - * @tags tags - * @name V2TagsUpdate - * @request PUT:/wp/v2/tags/{id} + * @tags products + * @name V3ProductsVariationsBatchUpdate + * @request PUT:/wc/v3/products/{product_id}/variations/batch * @secure */ - v2TagsUpdate: ( - id: number, + v3ProductsVariationsBatchUpdate: ( + productId: number, query?: { - /** HTML description of the term. */ + /** Variation description. */ description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** Variation status. */ + status?: IV3ProductsVariationsBatchUpdateParamsStatusEnum[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: IV3ProductsVariationsBatchUpdateParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsVariationsBatchUpdateParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsVariationsBatchUpdateParamsBackordersEnum[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/tags/${id}`, + path: `/wc/v3/products/${productId}/variations/batch`, method: "PUT", query: query, secure: true, @@ -8600,27 +10163,89 @@ export class Api< /** * No description * - * @tags tags - * @name V2TagsPartialUpdate - * @request PATCH:/wp/v2/tags/{id} + * @tags products + * @name V3ProductsVariationsBatchPartialUpdate + * @request PATCH:/wc/v3/products/{product_id}/variations/batch * @secure */ - v2TagsPartialUpdate: ( - id: number, + v3ProductsVariationsBatchPartialUpdate: ( + productId: number, query?: { - /** HTML description of the term. */ + /** Variation description. */ description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: any; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: any; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: any; + /** Variation status. */ + status?: IV3ProductsVariationsBatchPartialUpdateParamsStatusEnum[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: IV3ProductsVariationsBatchPartialUpdateParamsTaxStatusEnum[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IV3ProductsVariationsBatchPartialUpdateParamsStockStatusEnum[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IV3ProductsVariationsBatchPartialUpdateParamsBackordersEnum[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/tags/${id}`, + path: `/wc/v3/products/${productId}/variations/batch`, method: "PATCH", query: query, secure: true, @@ -8631,178 +10256,93 @@ export class Api< /** * No description * - * @tags tags - * @name V2TagsDelete - * @request DELETE:/wp/v2/tags/{id} + * @tags products + * @name V3ProductsVariationsGenerateCreate + * @request POST:/wc/v3/products/{product_id}/variations/generate * @secure */ - v2TagsDelete: ( - id: number, - query?: { - /** Required to be true, as terms do not support trashing. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/tags/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menus - * @name V2MenusList - * @request GET:/wp/v2/menus - * @secure - */ - v2MenusList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenusListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2MenusListParamsOrderEnum[]; - /** Sort collection by term attribute. */ - orderby?: IV2MenusListParamsOrderbyEnum[]; - /** Whether to hide terms not assigned to any posts. */ - hide_empty?: boolean; - /** - * Limit result set to terms assigned to a specific post. - * @format int64 - */ - post?: number; - /** Limit result set to terms with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/menus`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menus - * @name V2MenusCreate - * @request POST:/wp/v2/menus - * @secure - */ - v2MenusCreate: ( + v3ProductsVariationsGenerateCreate: ( + productId: number, data: { - /** HTML description of the term. */ + /** Deletes unused variations. */ + delete?: boolean; + /** Default values for generated variations. */ + default_values?: string; + /** Variation description. */ description?: string; - /** HTML title for the term. */ - name: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - /** The locations assigned to the menu. */ - locations?: string[]; - /** Whether to automatically add top level pages to this menu. */ - auto_add?: boolean; + /** Stock Keeping Unit. */ + sku?: string; + /** GTIN, UPC, EAN or ISBN. */ + global_unique_id?: string; + /** Variation regular price. */ + regular_price?: string; + /** Variation sale price. */ + sale_price?: string; + /** Start date of sale price, in the site's timezone. */ + date_on_sale_from?: null; + /** Start date of sale price, as GMT. */ + date_on_sale_from_gmt?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to?: null; + /** End date of sale price, in the site's timezone. */ + date_on_sale_to_gmt?: null; + /** Variation status. */ + status?: IStatusEnum13[]; + /** If the variation is virtual. */ + virtual?: boolean; + /** If the variation is downloadable. */ + downloadable?: boolean; + /** List of downloadable files. */ + downloads?: object[]; + /** + * Number of times downloadable files can be downloaded after purchase. + * @format int64 + */ + download_limit?: number; + /** + * Number of days until access to downloadable files expires. + * @format int64 + */ + download_expiry?: number; + /** Tax status. */ + tax_status?: ITaxStatusEnum7[]; + /** Tax class. */ + tax_class?: string; + /** Stock management at variation level. */ + manage_stock?: boolean; + /** + * Stock quantity. + * @format int64 + */ + stock_quantity?: number; + /** Controls the stock status of the product. */ + stock_status?: IStockStatusEnum7[]; + /** If managing stock, this controls if backorders are allowed. */ + backorders?: IBackordersEnum7[]; + /** Low Stock amount for the variation. */ + low_stock_amount?: number; + /** Variation weight (kg). */ + weight?: string; + /** Variation dimensions. */ + dimensions?: string; + /** Shipping class slug. */ + shipping_class?: string; + /** Variation image data. */ + image?: string; + /** List of attributes. */ + attributes?: object[]; + /** + * Menu order, used to custom sort products. + * @format int64 + */ + menu_order?: number; + /** Meta data. */ + meta_data?: object[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menus`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menus - * @name V2MenusDetail - * @request GET:/wp/v2/menus/{id} - * @secure - */ - v2MenusDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenusDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/menus/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menus - * @name V2MenusCreate2 - * @request POST:/wp/v2/menus/{id} - * @originalName v2MenusCreate - * @duplicate - * @secure - */ - v2MenusCreate2: ( - id: number, - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - /** The locations assigned to the menu. */ - locations?: string[]; - /** Whether to automatically add top level pages to this menu. */ - auto_add?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/menus/${id}`, + path: `/wc/v3/products/${productId}/variations/generate`, method: "POST", body: data, secure: true, @@ -8813,1891 +10353,15 @@ export class Api< /** * No description * - * @tags menus - * @name V2MenusUpdate - * @request PUT:/wp/v2/menus/{id} + * @tags refunds + * @name V3RefundsList + * @request GET:/wc/v3/refunds * @secure */ - v2MenusUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - /** The locations assigned to the menu. */ - locations?: string[]; - /** Whether to automatically add top level pages to this menu. */ - auto_add?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/menus/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menus - * @name V2MenusPartialUpdate - * @request PATCH:/wp/v2/menus/{id} - * @secure - */ - v2MenusPartialUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - /** The locations assigned to the menu. */ - locations?: string[]; - /** Whether to automatically add top level pages to this menu. */ - auto_add?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/menus/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menus - * @name V2MenusDelete - * @request DELETE:/wp/v2/menus/{id} - * @secure - */ - v2MenusDelete: ( - id: number, - query?: { - /** Required to be true, as terms do not support trashing. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/menus/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags wp_pattern_category - * @name V2WpPatternCategoryList - * @request GET:/wp/v2/wp_pattern_category - * @secure - */ - v2WpPatternCategoryList: ( + v3RefundsList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2WpPatternCategoryListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2WpPatternCategoryListParamsOrderEnum[]; - /** Sort collection by term attribute. */ - orderby?: IV2WpPatternCategoryListParamsOrderbyEnum[]; - /** Whether to hide terms not assigned to any posts. */ - hide_empty?: boolean; - /** - * Limit result set to terms assigned to a specific post. - * @format int64 - */ - post?: number; - /** Limit result set to terms with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/wp_pattern_category`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags wp_pattern_category - * @name V2WpPatternCategoryCreate - * @request POST:/wp/v2/wp_pattern_category - * @secure - */ - v2WpPatternCategoryCreate: ( - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/wp_pattern_category`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags wp_pattern_category - * @name V2WpPatternCategoryDetail - * @request GET:/wp/v2/wp_pattern_category/{id} - * @secure - */ - v2WpPatternCategoryDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2WpPatternCategoryDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/wp_pattern_category/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags wp_pattern_category - * @name V2WpPatternCategoryCreate2 - * @request POST:/wp/v2/wp_pattern_category/{id} - * @originalName v2WpPatternCategoryCreate - * @duplicate - * @secure - */ - v2WpPatternCategoryCreate2: ( - id: number, - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/wp_pattern_category/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags wp_pattern_category - * @name V2WpPatternCategoryUpdate - * @request PUT:/wp/v2/wp_pattern_category/{id} - * @secure - */ - v2WpPatternCategoryUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/wp_pattern_category/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags wp_pattern_category - * @name V2WpPatternCategoryPartialUpdate - * @request PATCH:/wp/v2/wp_pattern_category/{id} - * @secure - */ - v2WpPatternCategoryPartialUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/wp_pattern_category/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags wp_pattern_category - * @name V2WpPatternCategoryDelete - * @request DELETE:/wp/v2/wp_pattern_category/{id} - * @secure - */ - v2WpPatternCategoryDelete: ( - id: number, - query?: { - /** Required to be true, as terms do not support trashing. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/wp_pattern_category/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_brand - * @name V2ProductBrandList - * @request GET:/wp/v2/product_brand - * @secure - */ - v2ProductBrandList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductBrandListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** Order sort attribute ascending or descending. */ - order?: IV2ProductBrandListParamsOrderEnum[]; - /** Sort collection by term attribute. */ - orderby?: IV2ProductBrandListParamsOrderbyEnum[]; - /** Whether to hide terms not assigned to any posts. */ - hide_empty?: boolean; - /** - * Limit result set to terms assigned to a specific parent. - * @format int64 - */ - parent?: number; - /** - * Limit result set to terms assigned to a specific post. - * @format int64 - */ - post?: number; - /** Limit result set to terms with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_brand`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_brand - * @name V2ProductBrandCreate - * @request POST:/wp/v2/product_brand - * @secure - */ - v2ProductBrandCreate: ( - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_brand`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_brand - * @name V2ProductBrandDetail - * @request GET:/wp/v2/product_brand/{id} - * @secure - */ - v2ProductBrandDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductBrandDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_brand/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_brand - * @name V2ProductBrandCreate2 - * @request POST:/wp/v2/product_brand/{id} - * @originalName v2ProductBrandCreate - * @duplicate - * @secure - */ - v2ProductBrandCreate2: ( - id: number, - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_brand/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags product_brand - * @name V2ProductBrandUpdate - * @request PUT:/wp/v2/product_brand/{id} - * @secure - */ - v2ProductBrandUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_brand/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_brand - * @name V2ProductBrandPartialUpdate - * @request PATCH:/wp/v2/product_brand/{id} - * @secure - */ - v2ProductBrandPartialUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_brand/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_brand - * @name V2ProductBrandDelete - * @request DELETE:/wp/v2/product_brand/{id} - * @secure - */ - v2ProductBrandDelete: ( - id: number, - query?: { - /** Required to be true, as terms do not support trashing. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_brand/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_cat - * @name V2ProductCatList - * @request GET:/wp/v2/product_cat - * @secure - */ - v2ProductCatList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductCatListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** Order sort attribute ascending or descending. */ - order?: IV2ProductCatListParamsOrderEnum[]; - /** Sort collection by term attribute. */ - orderby?: IV2ProductCatListParamsOrderbyEnum[]; - /** Whether to hide terms not assigned to any posts. */ - hide_empty?: boolean; - /** - * Limit result set to terms assigned to a specific parent. - * @format int64 - */ - parent?: number; - /** - * Limit result set to terms assigned to a specific post. - * @format int64 - */ - post?: number; - /** Limit result set to terms with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_cat`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_cat - * @name V2ProductCatCreate - * @request POST:/wp/v2/product_cat - * @secure - */ - v2ProductCatCreate: ( - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_cat`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_cat - * @name V2ProductCatDetail - * @request GET:/wp/v2/product_cat/{id} - * @secure - */ - v2ProductCatDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductCatDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_cat/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_cat - * @name V2ProductCatCreate2 - * @request POST:/wp/v2/product_cat/{id} - * @originalName v2ProductCatCreate - * @duplicate - * @secure - */ - v2ProductCatCreate2: ( - id: number, - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_cat/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags product_cat - * @name V2ProductCatUpdate - * @request PUT:/wp/v2/product_cat/{id} - * @secure - */ - v2ProductCatUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_cat/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_cat - * @name V2ProductCatPartialUpdate - * @request PATCH:/wp/v2/product_cat/{id} - * @secure - */ - v2ProductCatPartialUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** - * The parent term ID. - * @format int64 - */ - parent?: number; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_cat/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_cat - * @name V2ProductCatDelete - * @request DELETE:/wp/v2/product_cat/{id} - * @secure - */ - v2ProductCatDelete: ( - id: number, - query?: { - /** Required to be true, as terms do not support trashing. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_cat/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_tag - * @name V2ProductTagList - * @request GET:/wp/v2/product_tag - * @secure - */ - v2ProductTagList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductTagListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2ProductTagListParamsOrderEnum[]; - /** Sort collection by term attribute. */ - orderby?: IV2ProductTagListParamsOrderbyEnum[]; - /** Whether to hide terms not assigned to any posts. */ - hide_empty?: boolean; - /** - * Limit result set to terms assigned to a specific post. - * @format int64 - */ - post?: number; - /** Limit result set to terms with one or more specific slugs. */ - slug?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_tag`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_tag - * @name V2ProductTagCreate - * @request POST:/wp/v2/product_tag - * @secure - */ - v2ProductTagCreate: ( - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_tag`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_tag - * @name V2ProductTagDetail - * @request GET:/wp/v2/product_tag/{id} - * @secure - */ - v2ProductTagDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2ProductTagDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_tag/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_tag - * @name V2ProductTagCreate2 - * @request POST:/wp/v2/product_tag/{id} - * @originalName v2ProductTagCreate - * @duplicate - * @secure - */ - v2ProductTagCreate2: ( - id: number, - data: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_tag/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags product_tag - * @name V2ProductTagUpdate - * @request PUT:/wp/v2/product_tag/{id} - * @secure - */ - v2ProductTagUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_tag/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_tag - * @name V2ProductTagPartialUpdate - * @request PATCH:/wp/v2/product_tag/{id} - * @secure - */ - v2ProductTagPartialUpdate: ( - id: number, - query?: { - /** HTML description of the term. */ - description?: string; - /** HTML title for the term. */ - name?: string; - /** An alphanumeric identifier for the term unique to its type. */ - slug?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_tag/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags product_tag - * @name V2ProductTagDelete - * @request DELETE:/wp/v2/product_tag/{id} - * @secure - */ - v2ProductTagDelete: ( - id: number, - query?: { - /** Required to be true, as terms do not support trashing. */ - force?: boolean; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/product_tag/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersList - * @request GET:/wp/v2/users - * @secure - */ - v2UsersList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2UsersListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2UsersListParamsOrderEnum[]; - /** Sort collection by user attribute. */ - orderby?: IV2UsersListParamsOrderbyEnum[]; - /** Limit result set to users with one or more specific slugs. */ - slug?: string[]; - /** Limit result set to users matching at least one specific role provided. Accepts csv list or single role. */ - roles?: string[]; - /** Limit result set to users matching at least one specific capability provided. Accepts csv list or single capability. */ - capabilities?: string[]; - /** Limit result set to users who are considered authors. */ - who?: IV2UsersListParamsWhoEnum[]; - /** Limit result set to users who have published posts. */ - has_published_posts?: boolean; - /** Array of column names to be searched. */ - search_columns?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersCreate - * @request POST:/wp/v2/users - * @secure - */ - v2UsersCreate: ( - data: { - /** Login name for the user. */ - username: string; - /** Display name for the user. */ - name?: string; - /** First name for the user. */ - first_name?: string; - /** Last name for the user. */ - last_name?: string; - /** - * The email address for the user. - * @format email - */ - email: string; - /** - * URL of the user. - * @format uri - */ - url?: string; - /** Description of the user. */ - description?: string; - /** Locale for the user. */ - locale?: ILocaleEnum[]; - /** The nickname for the user. */ - nickname?: string; - /** An alphanumeric identifier for the user. */ - slug?: string; - /** Roles assigned to the user. */ - roles?: string[]; - /** Password for the user (never included). */ - password: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersDetail - * @request GET:/wp/v2/users/{id} - * @secure - */ - v2UsersDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2UsersDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersCreate2 - * @request POST:/wp/v2/users/{id} - * @originalName v2UsersCreate - * @duplicate - * @secure - */ - v2UsersCreate2: ( - id: number, - data: { - /** Login name for the user. */ - username?: string; - /** Display name for the user. */ - name?: string; - /** First name for the user. */ - first_name?: string; - /** Last name for the user. */ - last_name?: string; - /** - * The email address for the user. - * @format email - */ - email?: string; - /** - * URL of the user. - * @format uri - */ - url?: string; - /** Description of the user. */ - description?: string; - /** Locale for the user. */ - locale?: ILocaleEnum1[]; - /** The nickname for the user. */ - nickname?: string; - /** An alphanumeric identifier for the user. */ - slug?: string; - /** Roles assigned to the user. */ - roles?: string[]; - /** Password for the user (never included). */ - password?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersUpdate - * @request PUT:/wp/v2/users/{id} - * @secure - */ - v2UsersUpdate: ( - id: number, - query?: { - /** Login name for the user. */ - username?: string; - /** Display name for the user. */ - name?: string; - /** First name for the user. */ - first_name?: string; - /** Last name for the user. */ - last_name?: string; - /** - * The email address for the user. - * @format email - */ - email?: string; - /** - * URL of the user. - * @format uri - */ - url?: string; - /** Description of the user. */ - description?: string; - /** Locale for the user. */ - locale?: IV2UsersUpdateParamsLocaleEnum[]; - /** The nickname for the user. */ - nickname?: string; - /** An alphanumeric identifier for the user. */ - slug?: string; - /** Roles assigned to the user. */ - roles?: string[]; - /** Password for the user (never included). */ - password?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersPartialUpdate - * @request PATCH:/wp/v2/users/{id} - * @secure - */ - v2UsersPartialUpdate: ( - id: number, - query?: { - /** Login name for the user. */ - username?: string; - /** Display name for the user. */ - name?: string; - /** First name for the user. */ - first_name?: string; - /** Last name for the user. */ - last_name?: string; - /** - * The email address for the user. - * @format email - */ - email?: string; - /** - * URL of the user. - * @format uri - */ - url?: string; - /** Description of the user. */ - description?: string; - /** Locale for the user. */ - locale?: IV2UsersPartialUpdateParamsLocaleEnum[]; - /** The nickname for the user. */ - nickname?: string; - /** An alphanumeric identifier for the user. */ - slug?: string; - /** Roles assigned to the user. */ - roles?: string[]; - /** Password for the user (never included). */ - password?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersDelete - * @request DELETE:/wp/v2/users/{id} - * @secure - */ - v2UsersDelete: ( - id: number, - query: { - /** Required to be true, as users do not support trashing. */ - force?: boolean; - /** - * Reassign the deleted user's posts and links to this user ID. - * @format int64 - */ - reassign: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersMeList - * @request GET:/wp/v2/users/me - * @secure - */ - v2UsersMeList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2UsersMeListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/me`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersMeCreate - * @request POST:/wp/v2/users/me - * @secure - */ - v2UsersMeCreate: ( - data: { - /** Login name for the user. */ - username?: string; - /** Display name for the user. */ - name?: string; - /** First name for the user. */ - first_name?: string; - /** Last name for the user. */ - last_name?: string; - /** - * The email address for the user. - * @format email - */ - email?: string; - /** - * URL of the user. - * @format uri - */ - url?: string; - /** Description of the user. */ - description?: string; - /** Locale for the user. */ - locale?: ILocaleEnum2[]; - /** The nickname for the user. */ - nickname?: string; - /** An alphanumeric identifier for the user. */ - slug?: string; - /** Roles assigned to the user. */ - roles?: string[]; - /** Password for the user (never included). */ - password?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/me`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersMeUpdate - * @request PUT:/wp/v2/users/me - * @secure - */ - v2UsersMeUpdate: ( - query?: { - /** Login name for the user. */ - username?: string; - /** Display name for the user. */ - name?: string; - /** First name for the user. */ - first_name?: string; - /** Last name for the user. */ - last_name?: string; - /** - * The email address for the user. - * @format email - */ - email?: string; - /** - * URL of the user. - * @format uri - */ - url?: string; - /** Description of the user. */ - description?: string; - /** Locale for the user. */ - locale?: IV2UsersMeUpdateParamsLocaleEnum[]; - /** The nickname for the user. */ - nickname?: string; - /** An alphanumeric identifier for the user. */ - slug?: string; - /** Roles assigned to the user. */ - roles?: string[]; - /** Password for the user (never included). */ - password?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/me`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersMePartialUpdate - * @request PATCH:/wp/v2/users/me - * @secure - */ - v2UsersMePartialUpdate: ( - query?: { - /** Login name for the user. */ - username?: string; - /** Display name for the user. */ - name?: string; - /** First name for the user. */ - first_name?: string; - /** Last name for the user. */ - last_name?: string; - /** - * The email address for the user. - * @format email - */ - email?: string; - /** - * URL of the user. - * @format uri - */ - url?: string; - /** Description of the user. */ - description?: string; - /** Locale for the user. */ - locale?: IV2UsersMePartialUpdateParamsLocaleEnum[]; - /** The nickname for the user. */ - nickname?: string; - /** An alphanumeric identifier for the user. */ - slug?: string; - /** Roles assigned to the user. */ - roles?: string[]; - /** Password for the user (never included). */ - password?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/me`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersMeDelete - * @request DELETE:/wp/v2/users/me - * @secure - */ - v2UsersMeDelete: ( - query: { - /** Required to be true, as users do not support trashing. */ - force?: boolean; - /** - * Reassign the deleted user's posts and links to this user ID. - * @format int64 - */ - reassign: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/me`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersApplicationPasswordsList - * @request GET:/wp/v2/users/{user_id}/application-passwords - * @secure - */ - v2UsersApplicationPasswordsList: ( - userId: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2UsersApplicationPasswordsListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}/application-passwords`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersApplicationPasswordsCreate - * @request POST:/wp/v2/users/{user_id}/application-passwords - * @secure - */ - v2UsersApplicationPasswordsCreate: ( - userId: number, - data: { - /** - * A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace. - * @format uuid - */ - app_id?: string; - /** The name of the application password. */ - name: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}/application-passwords`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersApplicationPasswordsDelete - * @request DELETE:/wp/v2/users/{user_id}/application-passwords - * @secure - */ - v2UsersApplicationPasswordsDelete: ( - userId: number, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}/application-passwords`, - method: "DELETE", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersApplicationPasswordsIntrospectList - * @request GET:/wp/v2/users/{user_id}/application-passwords/introspect - * @secure - */ - v2UsersApplicationPasswordsIntrospectList: ( - userId: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2UsersApplicationPasswordsIntrospectListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}/application-passwords/introspect`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersDetail2 - * @request GET:/wp/v2/users/{user_id} - * @originalName v2UsersDetail - * @duplicate - * @secure - */ - v2UsersDetail2: ( - userId: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2UsersDetail2ParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersCreate3 - * @request POST:/wp/v2/users/{user_id} - * @originalName v2UsersCreate - * @duplicate - * @secure - */ - v2UsersCreate3: ( - userId: number, - data: { - /** - * A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace. - * @format uuid - */ - app_id?: string; - /** The name of the application password. */ - name?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersUpdate2 - * @request PUT:/wp/v2/users/{user_id} - * @originalName v2UsersUpdate - * @duplicate - * @secure - */ - v2UsersUpdate2: ( - userId: number, - query?: { - /** - * A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace. - * @format uuid - */ - app_id?: string; - /** The name of the application password. */ - name?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersPartialUpdate2 - * @request PATCH:/wp/v2/users/{user_id} - * @originalName v2UsersPartialUpdate - * @duplicate - * @secure - */ - v2UsersPartialUpdate2: ( - userId: number, - query?: { - /** - * A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace. - * @format uuid - */ - app_id?: string; - /** The name of the application password. */ - name?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/users/${userId}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags users - * @name V2UsersDelete2 - * @request DELETE:/wp/v2/users/{user_id} - * @originalName v2UsersDelete - * @duplicate - * @secure - */ - v2UsersDelete2: (userId: number, params: RequestParams = {}) => - this.request({ - path: `/wp/v2/users/${userId}`, - method: "DELETE", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags comments - * @name V2CommentsList - * @request GET:/wp/v2/comments - * @secure - */ - v2CommentsList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2CommentsListParamsContextEnum[]; + context?: IV3RefundsListParamsContextEnum[]; /** * Current page of the collection. * @format int64 @@ -10714,27 +10378,1671 @@ export class Api< /** Limit results to those matching a string. */ search?: string; /** - * Limit response to comments published after a given ISO8601 compliant date. + * Limit response to resources published after a given ISO8601 compliant date. * @format date-time */ after?: string; - /** Limit result set to comments assigned to specific user IDs. Requires authorization. */ - author?: number[]; - /** Ensure result set excludes comments assigned to specific user IDs. Requires authorization. */ - author_exclude?: number[]; /** - * Limit result set to that from a specific author email. Requires authorization. - * @format email + * Limit response to resources published before a given ISO8601 compliant date. + * @format date-time */ - author_email?: string; + before?: string; /** - * Limit response to comments published before a given ISO8601 compliant date. + * Limit response to resources modified after a given ISO8601 compliant date. + * @format date-time + */ + modified_after?: string; + /** + * Limit response to resources modified before a given ISO8601 compliant date. + * @format date-time + */ + modified_before?: string; + /** Whether to consider GMT post dates when limiting response by published or modified date. */ + dates_are_gmt?: boolean; + /** Ensure result set excludes specific IDs. */ + exclude?: number[]; + /** Limit result set to specific ids. */ + include?: number[]; + /** + * Offset the result set by a specific number of items. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3RefundsListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3RefundsListParamsOrderbyEnum[]; + /** Limit result set to those of particular parent IDs. */ + parent?: number[]; + /** Limit result set to all items except those of a particular parent ID. */ + parent_exclude?: number[]; + /** + * Number of decimal points to use in each resource. + * @format int64 + */ + dp?: number; + /** Only show meta which is meant to be displayed for an order. */ + order_item_display_meta?: boolean; + /** Limit meta_data to specific keys. */ + include_meta?: string[]; + /** Ensure meta_data excludes specific keys. */ + exclude_meta?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/refunds`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsSalesList + * @request GET:/wc/v3/reports/sales + * @secure + */ + v3ReportsSalesList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsSalesListParamsContextEnum[]; + /** Report period. */ + period?: IV3ReportsSalesListParamsPeriodEnum[]; + /** + * Return sales for a specific start date, the date need to be in the YYYY-MM-DD format. + * @format date + */ + date_min?: string; + /** + * Return sales for a specific end date, the date need to be in the YYYY-MM-DD format. + * @format date + */ + date_max?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports/sales`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsTopSellersList + * @request GET:/wc/v3/reports/top_sellers + * @secure + */ + v3ReportsTopSellersList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsTopSellersListParamsContextEnum[]; + /** Report period. */ + period?: IV3ReportsTopSellersListParamsPeriodEnum[]; + /** + * Return sales for a specific start date, the date need to be in the YYYY-MM-DD format. + * @format date + */ + date_min?: string; + /** + * Return sales for a specific end date, the date need to be in the YYYY-MM-DD format. + * @format date + */ + date_max?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports/top_sellers`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsOrdersTotalsList + * @request GET:/wc/v3/reports/orders/totals + * @secure + */ + v3ReportsOrdersTotalsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsOrdersTotalsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports/orders/totals`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsProductsTotalsList + * @request GET:/wc/v3/reports/products/totals + * @secure + */ + v3ReportsProductsTotalsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsProductsTotalsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports/products/totals`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsCustomersTotalsList + * @request GET:/wc/v3/reports/customers/totals + * @secure + */ + v3ReportsCustomersTotalsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsCustomersTotalsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports/customers/totals`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsCouponsTotalsList + * @request GET:/wc/v3/reports/coupons/totals + * @secure + */ + v3ReportsCouponsTotalsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsCouponsTotalsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports/coupons/totals`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsReviewsTotalsList + * @request GET:/wc/v3/reports/reviews/totals + * @secure + */ + v3ReportsReviewsTotalsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsReviewsTotalsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports/reviews/totals`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags reports + * @name V3ReportsList + * @request GET:/wc/v3/reports + * @secure + */ + v3ReportsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ReportsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/reports`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsList + * @request GET:/wc/v3/settings + * @secure + */ + v3SettingsList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/settings`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsBatchCreate + * @request POST:/wc/v3/settings/batch + * @secure + */ + v3SettingsBatchCreate: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/settings/batch`, + method: "POST", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsBatchUpdate + * @request PUT:/wc/v3/settings/batch + * @secure + */ + v3SettingsBatchUpdate: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/settings/batch`, + method: "PUT", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsBatchPartialUpdate + * @request PATCH:/wc/v3/settings/batch + * @secure + */ + v3SettingsBatchPartialUpdate: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/settings/batch`, + method: "PATCH", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsDetail + * @request GET:/wc/v3/settings/{group_id} + * @secure + */ + v3SettingsDetail: ( + groupId: string, + query?: { + /** Settings group ID. */ + group?: string; + /** Unique identifier for the resource. */ + id?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/settings/${groupId}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsCreate + * @request POST:/wc/v3/settings/{group_id} + * @secure + */ + v3SettingsCreate: ( + groupId: string, + data: { + /** Settings group ID. */ + group?: string; + /** Unique identifier for the resource. */ + id?: string; + /** Setting value. */ + value?: null; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/settings/${groupId}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsUpdate + * @request PUT:/wc/v3/settings/{group_id} + * @secure + */ + v3SettingsUpdate: ( + groupId: string, + query?: { + /** Settings group ID. */ + group?: string; + /** Unique identifier for the resource. */ + id?: string; + /** Setting value. */ + value?: any; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/settings/${groupId}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsPartialUpdate + * @request PATCH:/wc/v3/settings/{group_id} + * @secure + */ + v3SettingsPartialUpdate: ( + groupId: string, + query?: { + /** Settings group ID. */ + group?: string; + /** Unique identifier for the resource. */ + id?: string; + /** Setting value. */ + value?: any; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/settings/${groupId}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsBatchCreate2 + * @request POST:/wc/v3/settings/{group_id}/batch + * @originalName v3SettingsBatchCreate + * @duplicate + * @secure + */ + v3SettingsBatchCreate2: ( + groupId: string, + data: { + /** Settings group ID. */ + group?: string; + /** Setting value. */ + value?: null; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/settings/${groupId}/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsBatchUpdate2 + * @request PUT:/wc/v3/settings/{group_id}/batch + * @originalName v3SettingsBatchUpdate + * @duplicate + * @secure + */ + v3SettingsBatchUpdate2: ( + groupId: string, + query?: { + /** Settings group ID. */ + group?: string; + /** Setting value. */ + value?: any; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/settings/${groupId}/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags settings + * @name V3SettingsBatchPartialUpdate2 + * @request PATCH:/wc/v3/settings/{group_id}/batch + * @originalName v3SettingsBatchPartialUpdate + * @duplicate + * @secure + */ + v3SettingsBatchPartialUpdate2: ( + groupId: string, + query?: { + /** Settings group ID. */ + group?: string; + /** Setting value. */ + value?: any; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/settings/${groupId}/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesList + * @request GET:/wc/v3/shipping/zones + * @secure + */ + v3ShippingZonesList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/shipping/zones`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesCreate + * @request POST:/wc/v3/shipping/zones + * @secure + */ + v3ShippingZonesCreate: ( + data: { + /** Shipping zone name. */ + name: string; + /** + * Shipping zone order. + * @format int64 + */ + order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesDetail + * @request GET:/wc/v3/shipping/zones/{id} + * @secure + */ + v3ShippingZonesDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/shipping/zones/${id}`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesCreate2 + * @request POST:/wc/v3/shipping/zones/{id} + * @originalName v3ShippingZonesCreate + * @duplicate + * @secure + */ + v3ShippingZonesCreate2: ( + id: number, + data: { + /** Shipping zone name. */ + name?: string; + /** + * Shipping zone order. + * @format int64 + */ + order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesUpdate + * @request PUT:/wc/v3/shipping/zones/{id} + * @secure + */ + v3ShippingZonesUpdate: ( + id: number, + query?: { + /** Shipping zone name. */ + name?: string; + /** + * Shipping zone order. + * @format int64 + */ + order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesPartialUpdate + * @request PATCH:/wc/v3/shipping/zones/{id} + * @secure + */ + v3ShippingZonesPartialUpdate: ( + id: number, + query?: { + /** Shipping zone name. */ + name?: string; + /** + * Shipping zone order. + * @format int64 + */ + order?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesDelete + * @request DELETE:/wc/v3/shipping/zones/{id} + * @secure + */ + v3ShippingZonesDelete: ( + id: number, + query?: { + /** Whether to bypass trash and force deletion. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${id}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesLocationsList + * @request GET:/wc/v3/shipping/zones/{id}/locations + * @secure + */ + v3ShippingZonesLocationsList: (id: number, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/shipping/zones/${id}/locations`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesLocationsCreate + * @request POST:/wc/v3/shipping/zones/{id}/locations + * @secure + */ + v3ShippingZonesLocationsCreate: ( + id: number, + data: { + /** Shipping zone location code. */ + code?: string; + /** Shipping zone location type. */ + type?: ITypeEnum7[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${id}/locations`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesLocationsUpdate + * @request PUT:/wc/v3/shipping/zones/{id}/locations + * @secure + */ + v3ShippingZonesLocationsUpdate: ( + id: number, + query?: { + /** Shipping zone location code. */ + code?: string; + /** Shipping zone location type. */ + type?: IV3ShippingZonesLocationsUpdateParamsTypeEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${id}/locations`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesLocationsPartialUpdate + * @request PATCH:/wc/v3/shipping/zones/{id}/locations + * @secure + */ + v3ShippingZonesLocationsPartialUpdate: ( + id: number, + query?: { + /** Shipping zone location code. */ + code?: string; + /** Shipping zone location type. */ + type?: IV3ShippingZonesLocationsPartialUpdateParamsTypeEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${id}/locations`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesMethodsList + * @request GET:/wc/v3/shipping/zones/{zone_id}/methods + * @secure + */ + v3ShippingZonesMethodsList: (zoneId: number, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/shipping/zones/${zoneId}/methods`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesMethodsCreate + * @request POST:/wc/v3/shipping/zones/{zone_id}/methods + * @secure + */ + v3ShippingZonesMethodsCreate: ( + zoneId: number, + data: { + /** + * Shipping method sort order. + * @format int64 + */ + order?: number; + /** Shipping method enabled status. */ + enabled?: boolean; + /** Shipping method settings. */ + settings?: string; + /** Shipping method ID. */ + method_id: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${zoneId}/methods`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesDetail2 + * @request GET:/wc/v3/shipping/zones/{zone_id} + * @originalName v3ShippingZonesDetail + * @duplicate + * @secure + */ + v3ShippingZonesDetail2: ( + zoneId: number, + query?: { + /** + * Unique ID for the instance. + * @format int64 + */ + instance_id?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${zoneId}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesCreate3 + * @request POST:/wc/v3/shipping/zones/{zone_id} + * @originalName v3ShippingZonesCreate + * @duplicate + * @secure + */ + v3ShippingZonesCreate3: ( + zoneId: number, + data: { + /** + * Unique ID for the instance. + * @format int64 + */ + instance_id?: number; + /** + * Shipping method sort order. + * @format int64 + */ + order?: number; + /** Shipping method enabled status. */ + enabled?: boolean; + /** Shipping method settings. */ + settings?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${zoneId}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesUpdate2 + * @request PUT:/wc/v3/shipping/zones/{zone_id} + * @originalName v3ShippingZonesUpdate + * @duplicate + * @secure + */ + v3ShippingZonesUpdate2: ( + zoneId: number, + query?: { + /** + * Unique ID for the instance. + * @format int64 + */ + instance_id?: number; + /** + * Shipping method sort order. + * @format int64 + */ + order?: number; + /** Shipping method enabled status. */ + enabled?: boolean; + /** Shipping method settings. */ + settings?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${zoneId}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesPartialUpdate2 + * @request PATCH:/wc/v3/shipping/zones/{zone_id} + * @originalName v3ShippingZonesPartialUpdate + * @duplicate + * @secure + */ + v3ShippingZonesPartialUpdate2: ( + zoneId: number, + query?: { + /** + * Unique ID for the instance. + * @format int64 + */ + instance_id?: number; + /** + * Shipping method sort order. + * @format int64 + */ + order?: number; + /** Shipping method enabled status. */ + enabled?: boolean; + /** Shipping method settings. */ + settings?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${zoneId}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping + * @name V3ShippingZonesDelete2 + * @request DELETE:/wc/v3/shipping/zones/{zone_id} + * @originalName v3ShippingZonesDelete + * @duplicate + * @secure + */ + v3ShippingZonesDelete2: ( + zoneId: number, + query?: { + /** + * Unique ID for the instance. + * @format int64 + */ + instance_id?: number; + /** Whether to bypass trash and force deletion. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping/zones/${zoneId}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesClassesList + * @request GET:/wc/v3/taxes/classes + * @secure + */ + v3TaxesClassesList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3TaxesClassesListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/classes`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesClassesCreate + * @request POST:/wc/v3/taxes/classes + * @secure + */ + v3TaxesClassesCreate: ( + data: { + /** Tax class name. */ + name: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/classes`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesClassesDetail + * @request GET:/wc/v3/taxes/classes/{slug} + * @secure + */ + v3TaxesClassesDetail: (slug: string, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/taxes/classes/${slug}`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesClassesDelete + * @request DELETE:/wc/v3/taxes/classes/{slug} + * @secure + */ + v3TaxesClassesDelete: ( + slug: string, + query?: { + /** Required to be true, as resource does not support trashing. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/classes/${slug}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesList + * @request GET:/wc/v3/taxes + * @secure + */ + v3TaxesList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3TaxesListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** + * Offset the result set by a specific number of items. + * @format int64 + */ + offset?: number; + /** Order sort attribute ascending or descending. */ + order?: IV3TaxesListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3TaxesListParamsOrderbyEnum[]; + /** Sort by tax class. */ + class?: IV3TaxesListParamsClassEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesCreate + * @request POST:/wc/v3/taxes + * @secure + */ + v3TaxesCreate: ( + data: { + /** Country ISO 3166 code. */ + country?: string; + /** State code. */ + state?: string; + /** Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead. */ + postcode?: string; + /** City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead. */ + city?: string; + /** Tax rate. */ + rate?: string; + /** Tax rate name. */ + name?: string; + /** + * Tax priority. + * @format int64 + */ + priority?: number; + /** Whether or not this is a compound rate. */ + compound?: boolean; + /** Whether or not this tax rate also gets applied to shipping. */ + shipping?: boolean; + /** + * Indicates the order that will appear in queries. + * @format int64 + */ + order?: number; + /** Tax class. */ + class?: IClassEnum[]; + /** List of postcodes / ZIPs. Introduced in WooCommerce 5.3. */ + postcodes?: string[]; + /** List of city names. Introduced in WooCommerce 5.3. */ + cities?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesDetail + * @request GET:/wc/v3/taxes/{id} + * @secure + */ + v3TaxesDetail: ( + id: number, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3TaxesDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesCreate2 + * @request POST:/wc/v3/taxes/{id} + * @originalName v3TaxesCreate + * @duplicate + * @secure + */ + v3TaxesCreate2: ( + id: number, + data: { + /** Country ISO 3166 code. */ + country?: string; + /** State code. */ + state?: string; + /** Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead. */ + postcode?: string; + /** City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead. */ + city?: string; + /** Tax rate. */ + rate?: string; + /** Tax rate name. */ + name?: string; + /** + * Tax priority. + * @format int64 + */ + priority?: number; + /** Whether or not this is a compound rate. */ + compound?: boolean; + /** Whether or not this tax rate also gets applied to shipping. */ + shipping?: boolean; + /** + * Indicates the order that will appear in queries. + * @format int64 + */ + order?: number; + /** Tax class. */ + class?: IClassEnum1[]; + /** List of postcodes / ZIPs. Introduced in WooCommerce 5.3. */ + postcodes?: string[]; + /** List of city names. Introduced in WooCommerce 5.3. */ + cities?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesUpdate + * @request PUT:/wc/v3/taxes/{id} + * @secure + */ + v3TaxesUpdate: ( + id: number, + query?: { + /** Country ISO 3166 code. */ + country?: string; + /** State code. */ + state?: string; + /** Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead. */ + postcode?: string; + /** City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead. */ + city?: string; + /** Tax rate. */ + rate?: string; + /** Tax rate name. */ + name?: string; + /** + * Tax priority. + * @format int64 + */ + priority?: number; + /** Whether or not this is a compound rate. */ + compound?: boolean; + /** Whether or not this tax rate also gets applied to shipping. */ + shipping?: boolean; + /** + * Indicates the order that will appear in queries. + * @format int64 + */ + order?: number; + /** Tax class. */ + class?: IV3TaxesUpdateParamsClassEnum[]; + /** List of postcodes / ZIPs. Introduced in WooCommerce 5.3. */ + postcodes?: string[]; + /** List of city names. Introduced in WooCommerce 5.3. */ + cities?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesPartialUpdate + * @request PATCH:/wc/v3/taxes/{id} + * @secure + */ + v3TaxesPartialUpdate: ( + id: number, + query?: { + /** Country ISO 3166 code. */ + country?: string; + /** State code. */ + state?: string; + /** Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead. */ + postcode?: string; + /** City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead. */ + city?: string; + /** Tax rate. */ + rate?: string; + /** Tax rate name. */ + name?: string; + /** + * Tax priority. + * @format int64 + */ + priority?: number; + /** Whether or not this is a compound rate. */ + compound?: boolean; + /** Whether or not this tax rate also gets applied to shipping. */ + shipping?: boolean; + /** + * Indicates the order that will appear in queries. + * @format int64 + */ + order?: number; + /** Tax class. */ + class?: IV3TaxesPartialUpdateParamsClassEnum[]; + /** List of postcodes / ZIPs. Introduced in WooCommerce 5.3. */ + postcodes?: string[]; + /** List of city names. Introduced in WooCommerce 5.3. */ + cities?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesDelete + * @request DELETE:/wc/v3/taxes/{id} + * @secure + */ + v3TaxesDelete: ( + id: number, + query?: { + /** Required to be true, as resource does not support trashing. */ + force?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/${id}`, + method: "DELETE", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesBatchCreate + * @request POST:/wc/v3/taxes/batch + * @secure + */ + v3TaxesBatchCreate: ( + data: { + /** Country ISO 3166 code. */ + country?: string; + /** State code. */ + state?: string; + /** Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead. */ + postcode?: string; + /** City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead. */ + city?: string; + /** Tax rate. */ + rate?: string; + /** Tax rate name. */ + name?: string; + /** + * Tax priority. + * @format int64 + */ + priority?: number; + /** Whether or not this is a compound rate. */ + compound?: boolean; + /** Whether or not this tax rate also gets applied to shipping. */ + shipping?: boolean; + /** + * Indicates the order that will appear in queries. + * @format int64 + */ + order?: number; + /** Tax class. */ + class?: IClassEnum2[]; + /** List of postcodes / ZIPs. Introduced in WooCommerce 5.3. */ + postcodes?: string[]; + /** List of city names. Introduced in WooCommerce 5.3. */ + cities?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesBatchUpdate + * @request PUT:/wc/v3/taxes/batch + * @secure + */ + v3TaxesBatchUpdate: ( + query?: { + /** Country ISO 3166 code. */ + country?: string; + /** State code. */ + state?: string; + /** Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead. */ + postcode?: string; + /** City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead. */ + city?: string; + /** Tax rate. */ + rate?: string; + /** Tax rate name. */ + name?: string; + /** + * Tax priority. + * @format int64 + */ + priority?: number; + /** Whether or not this is a compound rate. */ + compound?: boolean; + /** Whether or not this tax rate also gets applied to shipping. */ + shipping?: boolean; + /** + * Indicates the order that will appear in queries. + * @format int64 + */ + order?: number; + /** Tax class. */ + class?: IV3TaxesBatchUpdateParamsClassEnum[]; + /** List of postcodes / ZIPs. Introduced in WooCommerce 5.3. */ + postcodes?: string[]; + /** List of city names. Introduced in WooCommerce 5.3. */ + cities?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/batch`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags taxes + * @name V3TaxesBatchPartialUpdate + * @request PATCH:/wc/v3/taxes/batch + * @secure + */ + v3TaxesBatchPartialUpdate: ( + query?: { + /** Country ISO 3166 code. */ + country?: string; + /** State code. */ + state?: string; + /** Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead. */ + postcode?: string; + /** City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead. */ + city?: string; + /** Tax rate. */ + rate?: string; + /** Tax rate name. */ + name?: string; + /** + * Tax priority. + * @format int64 + */ + priority?: number; + /** Whether or not this is a compound rate. */ + compound?: boolean; + /** Whether or not this tax rate also gets applied to shipping. */ + shipping?: boolean; + /** + * Indicates the order that will appear in queries. + * @format int64 + */ + order?: number; + /** Tax class. */ + class?: IV3TaxesBatchPartialUpdateParamsClassEnum[]; + /** List of postcodes / ZIPs. Introduced in WooCommerce 5.3. */ + postcodes?: string[]; + /** List of city names. Introduced in WooCommerce 5.3. */ + cities?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/taxes/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags webhooks + * @name V3WebhooksList + * @request GET:/wc/v3/webhooks + * @secure + */ + v3WebhooksList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3WebhooksListParamsContextEnum[]; + /** + * Current page of the collection. + * @format int64 + * @min 1 + */ + page?: number; + /** + * Maximum number of items to be returned in result set. + * @format int64 + * @min 1 + * @max 100 + */ + per_page?: number; + /** Limit results to those matching a string. */ + search?: string; + /** + * Limit response to resources published after a given ISO8601 compliant date. + * @format date-time + */ + after?: string; + /** + * Limit response to resources published before a given ISO8601 compliant date. * @format date-time */ before?: string; /** Ensure result set excludes specific IDs. */ exclude?: number[]; - /** Limit result set to specific IDs. */ + /** Limit result set to specific ids. */ include?: number[]; /** * Offset the result set by a specific number of items. @@ -10742,26 +12050,16 @@ export class Api< */ offset?: number; /** Order sort attribute ascending or descending. */ - order?: IV2CommentsListParamsOrderEnum[]; - /** Sort collection by comment attribute. */ - orderby?: IV2CommentsListParamsOrderbyEnum[]; - /** Limit result set to comments of specific parent IDs. */ - parent?: number[]; - /** Ensure result set excludes specific parent IDs. */ - parent_exclude?: number[]; - /** Limit result set to comments assigned to specific post IDs. */ - post?: number[]; - /** Limit result set to comments assigned a specific status. Requires authorization. */ - status?: string; - /** Limit result set to comments assigned a specific type. Requires authorization. */ - type?: string; - /** The password for the post if it is password protected. */ - password?: string; + order?: IV3WebhooksListParamsOrderEnum[]; + /** Sort collection by object attribute. */ + orderby?: IV3WebhooksListParamsOrderbyEnum[]; + /** Limit result set to webhooks assigned a specific status. */ + status?: IV3WebhooksListParamsStatusEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/comments`, + path: `/wc/v3/webhooks`, method: "GET", query: query, secure: true, @@ -10772,625 +12070,28 @@ export class Api< /** * No description * - * @tags comments - * @name V2CommentsCreate - * @request POST:/wp/v2/comments + * @tags webhooks + * @name V3WebhooksCreate + * @request POST:/wc/v3/webhooks * @secure */ - v2CommentsCreate: ( + v3WebhooksCreate: ( data: { - /** - * The ID of the user object, if author was a user. - * @format int64 - */ - author?: number; - /** - * Email address for the comment author. - * @format email - */ - author_email?: string; - /** - * IP address for the comment author. - * @format ip - */ - author_ip?: string; - /** Display name for the comment author. */ - author_name?: string; - /** - * URL for the comment author. - * @format uri - */ - author_url?: string; - /** User agent for the comment author. */ - author_user_agent?: string; - /** The content for the comment. */ - content?: string; - /** - * The date the comment was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the comment was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** - * The ID for the parent of the comment. - * @format int64 - */ - parent?: number; - /** - * The ID of the associated post object. - * @format int64 - */ - post?: number; - /** State of the comment. */ - status?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/comments`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags comments - * @name V2CommentsDetail - * @request GET:/wp/v2/comments/{id} - * @secure - */ - v2CommentsDetail: ( - id: number, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2CommentsDetailParamsContextEnum[]; - /** The password for the parent post of the comment (if the post is password protected). */ - password?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/comments/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags comments - * @name V2CommentsCreate2 - * @request POST:/wp/v2/comments/{id} - * @originalName v2CommentsCreate - * @duplicate - * @secure - */ - v2CommentsCreate2: ( - id: number, - data: { - /** - * The ID of the user object, if author was a user. - * @format int64 - */ - author?: number; - /** - * Email address for the comment author. - * @format email - */ - author_email?: string; - /** - * IP address for the comment author. - * @format ip - */ - author_ip?: string; - /** Display name for the comment author. */ - author_name?: string; - /** - * URL for the comment author. - * @format uri - */ - author_url?: string; - /** User agent for the comment author. */ - author_user_agent?: string; - /** The content for the comment. */ - content?: string; - /** - * The date the comment was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the comment was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** - * The ID for the parent of the comment. - * @format int64 - */ - parent?: number; - /** - * The ID of the associated post object. - * @format int64 - */ - post?: number; - /** State of the comment. */ - status?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/comments/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags comments - * @name V2CommentsUpdate - * @request PUT:/wp/v2/comments/{id} - * @secure - */ - v2CommentsUpdate: ( - id: number, - query?: { - /** - * The ID of the user object, if author was a user. - * @format int64 - */ - author?: number; - /** - * Email address for the comment author. - * @format email - */ - author_email?: string; - /** - * IP address for the comment author. - * @format ip - */ - author_ip?: string; - /** Display name for the comment author. */ - author_name?: string; - /** - * URL for the comment author. - * @format uri - */ - author_url?: string; - /** User agent for the comment author. */ - author_user_agent?: string; - /** The content for the comment. */ - content?: string; - /** - * The date the comment was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the comment was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** - * The ID for the parent of the comment. - * @format int64 - */ - parent?: number; - /** - * The ID of the associated post object. - * @format int64 - */ - post?: number; - /** State of the comment. */ - status?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/comments/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags comments - * @name V2CommentsPartialUpdate - * @request PATCH:/wp/v2/comments/{id} - * @secure - */ - v2CommentsPartialUpdate: ( - id: number, - query?: { - /** - * The ID of the user object, if author was a user. - * @format int64 - */ - author?: number; - /** - * Email address for the comment author. - * @format email - */ - author_email?: string; - /** - * IP address for the comment author. - * @format ip - */ - author_ip?: string; - /** Display name for the comment author. */ - author_name?: string; - /** - * URL for the comment author. - * @format uri - */ - author_url?: string; - /** User agent for the comment author. */ - author_user_agent?: string; - /** The content for the comment. */ - content?: string; - /** - * The date the comment was published, in the site's timezone. - * @format date-time - */ - date?: string; - /** - * The date the comment was published, as GMT. - * @format date-time - */ - date_gmt?: string; - /** - * The ID for the parent of the comment. - * @format int64 - */ - parent?: number; - /** - * The ID of the associated post object. - * @format int64 - */ - post?: number; - /** State of the comment. */ - status?: string; - /** Meta fields. */ - meta?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/comments/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags comments - * @name V2CommentsDelete - * @request DELETE:/wp/v2/comments/{id} - * @secure - */ - v2CommentsDelete: ( - id: number, - query?: { - /** Whether to bypass Trash and force deletion. */ - force?: boolean; - /** The password for the parent post of the comment (if the post is password protected). */ - password?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/comments/${id}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags search - * @name V2SearchList - * @request GET:/wp/v2/search - * @secure - */ - v2SearchList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2SearchListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** Limit results to items of an object type. */ - type?: IV2SearchListParamsTypeEnum[]; - /** Limit results to items of one or more object subtypes. */ - subtype?: string[]; - /** Ensure result set excludes specific IDs. */ - exclude?: number[]; - /** Limit result set to specific IDs. */ - include?: number[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/search`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags block-renderer - * @name V2BlockRendererDetail - * @request GET:/wp/v2/block-renderer/{name} - * @secure - */ - v2BlockRendererDetail: ( - name: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlockRendererDetailParamsContextEnum[]; - /** Attributes for the block. */ - attributes?: string; - /** - * ID of the post context. - * @format int64 - */ - post_id?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/block-renderer/${name}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags block-renderer - * @name V2BlockRendererCreate - * @request POST:/wp/v2/block-renderer/{name} - * @secure - */ - v2BlockRendererCreate: ( - name: string, - data: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IContextEnum[]; - /** Attributes for the block. */ - attributes?: string; - /** - * ID of the post context. - * @format int64 - */ - post_id?: number; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/block-renderer/${name}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags block-types - * @name V2BlockTypesList - * @request GET:/wp/v2/block-types - * @secure - */ - v2BlockTypesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlockTypesListParamsContextEnum[]; - /** Block namespace. */ - namespace?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/block-types`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags block-types - * @name V2BlockTypesDetail - * @request GET:/wp/v2/block-types/{namespace} - * @secure - */ - v2BlockTypesDetail: ( - namespace: string, - query?: { - /** Block name. */ + /** A friendly name for the webhook. */ name?: string; - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlockTypesDetailParamsContextEnum[]; + /** Webhook status. */ + status?: IStatusEnum14[]; + /** Webhook topic. */ + topic: string; + /** Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default to a MD5 hash from the current user's ID|username if not provided. */ + secret?: string; + /** Webhook delivery URL. */ + delivery_url: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/block-types/${namespace}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags settings - * @name V2SettingsList - * @request GET:/wp/v2/settings - * @secure - */ - v2SettingsList: (params: RequestParams = {}) => - this.request({ - path: `/wp/v2/settings`, - method: "GET", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags settings - * @name V2SettingsCreate - * @request POST:/wp/v2/settings - * @secure - */ - v2SettingsCreate: ( - data: { - /** Site title. */ - title?: string; - /** Site tagline. */ - description?: string; - /** - * Site URL. - * @format uri - */ - url?: string; - /** - * This address is used for admin purposes, like new user notification. - * @format email - */ - email?: string; - /** A city in the same timezone as you. */ - timezone?: string; - /** A date format for all date strings. */ - date_format?: string; - /** A time format for all time strings. */ - time_format?: string; - /** - * A day number of the week that the week should start on. - * @format int64 - */ - start_of_week?: number; - /** WordPress locale code. */ - language?: string; - /** Convert emoticons like :-) and :-P to graphics on display. */ - use_smilies?: boolean; - /** - * Default post category. - * @format int64 - */ - default_category?: number; - /** Default post format. */ - default_post_format?: string; - /** - * Blog pages show at most. - * @format int64 - */ - posts_per_page?: number; - /** What to show on the front page */ - show_on_front?: string; - /** - * The ID of the page that should be displayed on the front page - * @format int64 - */ - page_on_front?: number; - /** - * The ID of the page that should display the latest posts - * @format int64 - */ - page_for_posts?: number; - /** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */ - default_ping_status?: IDefaultPingStatusEnum[]; - /** Allow people to submit comments on new posts. */ - default_comment_status?: IDefaultCommentStatusEnum[]; - /** - * Site logo. - * @format int64 - */ - site_logo?: number; - /** - * Site icon. - * @format int64 - */ - site_icon?: number; - /** WooCommerce Local Pickup Method Settings */ - pickup_location_settings?: string; - /** WooCommerce Local Pickup Locations */ - pickup_locations?: object[]; - /** How should products be sorted in the catalog by default? */ - woocommerce_default_catalog_orderby?: IWoocommerceDefaultCatalogOrderbyEnum[]; - /** Controls the display of the phone field in checkout. */ - woocommerce_checkout_phone_field?: IWoocommerceCheckoutPhoneFieldEnum[]; - /** Controls the display of the company field in checkout. */ - woocommerce_checkout_company_field?: IWoocommerceCheckoutCompanyFieldEnum[]; - /** Controls the display of the apartment (address_2) field in checkout. */ - woocommerce_checkout_address_2_field?: IWoocommerceCheckoutAddress2FieldEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/settings`, + path: `/wc/v3/webhooks`, method: "POST", body: data, secure: true, @@ -11401,267 +12102,21 @@ export class Api< /** * No description * - * @tags settings - * @name V2SettingsUpdate - * @request PUT:/wp/v2/settings + * @tags webhooks + * @name V3WebhooksDetail + * @request GET:/wc/v3/webhooks/{id} * @secure */ - v2SettingsUpdate: ( - query?: { - /** Site title. */ - title?: string; - /** Site tagline. */ - description?: string; - /** - * Site URL. - * @format uri - */ - url?: string; - /** - * This address is used for admin purposes, like new user notification. - * @format email - */ - email?: string; - /** A city in the same timezone as you. */ - timezone?: string; - /** A date format for all date strings. */ - date_format?: string; - /** A time format for all time strings. */ - time_format?: string; - /** - * A day number of the week that the week should start on. - * @format int64 - */ - start_of_week?: number; - /** WordPress locale code. */ - language?: string; - /** Convert emoticons like :-) and :-P to graphics on display. */ - use_smilies?: boolean; - /** - * Default post category. - * @format int64 - */ - default_category?: number; - /** Default post format. */ - default_post_format?: string; - /** - * Blog pages show at most. - * @format int64 - */ - posts_per_page?: number; - /** What to show on the front page */ - show_on_front?: string; - /** - * The ID of the page that should be displayed on the front page - * @format int64 - */ - page_on_front?: number; - /** - * The ID of the page that should display the latest posts - * @format int64 - */ - page_for_posts?: number; - /** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */ - default_ping_status?: IV2SettingsUpdateParamsDefaultPingStatusEnum[]; - /** Allow people to submit comments on new posts. */ - default_comment_status?: IV2SettingsUpdateParamsDefaultCommentStatusEnum[]; - /** - * Site logo. - * @format int64 - */ - site_logo?: number; - /** - * Site icon. - * @format int64 - */ - site_icon?: number; - /** WooCommerce Local Pickup Method Settings */ - pickup_location_settings?: string; - /** WooCommerce Local Pickup Locations */ - pickup_locations?: object[]; - /** How should products be sorted in the catalog by default? */ - woocommerce_default_catalog_orderby?: IV2SettingsUpdateParamsWoocommerceDefaultCatalogOrderbyEnum[]; - /** Controls the display of the phone field in checkout. */ - woocommerce_checkout_phone_field?: IV2SettingsUpdateParamsWoocommerceCheckoutPhoneFieldEnum[]; - /** Controls the display of the company field in checkout. */ - woocommerce_checkout_company_field?: IV2SettingsUpdateParamsWoocommerceCheckoutCompanyFieldEnum[]; - /** Controls the display of the apartment (address_2) field in checkout. */ - woocommerce_checkout_address_2_field?: IV2SettingsUpdateParamsWoocommerceCheckoutAddress2FieldEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/settings`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags settings - * @name V2SettingsPartialUpdate - * @request PATCH:/wp/v2/settings - * @secure - */ - v2SettingsPartialUpdate: ( - query?: { - /** Site title. */ - title?: string; - /** Site tagline. */ - description?: string; - /** - * Site URL. - * @format uri - */ - url?: string; - /** - * This address is used for admin purposes, like new user notification. - * @format email - */ - email?: string; - /** A city in the same timezone as you. */ - timezone?: string; - /** A date format for all date strings. */ - date_format?: string; - /** A time format for all time strings. */ - time_format?: string; - /** - * A day number of the week that the week should start on. - * @format int64 - */ - start_of_week?: number; - /** WordPress locale code. */ - language?: string; - /** Convert emoticons like :-) and :-P to graphics on display. */ - use_smilies?: boolean; - /** - * Default post category. - * @format int64 - */ - default_category?: number; - /** Default post format. */ - default_post_format?: string; - /** - * Blog pages show at most. - * @format int64 - */ - posts_per_page?: number; - /** What to show on the front page */ - show_on_front?: string; - /** - * The ID of the page that should be displayed on the front page - * @format int64 - */ - page_on_front?: number; - /** - * The ID of the page that should display the latest posts - * @format int64 - */ - page_for_posts?: number; - /** Allow link notifications from other blogs (pingbacks and trackbacks) on new articles. */ - default_ping_status?: IV2SettingsPartialUpdateParamsDefaultPingStatusEnum[]; - /** Allow people to submit comments on new posts. */ - default_comment_status?: IV2SettingsPartialUpdateParamsDefaultCommentStatusEnum[]; - /** - * Site logo. - * @format int64 - */ - site_logo?: number; - /** - * Site icon. - * @format int64 - */ - site_icon?: number; - /** WooCommerce Local Pickup Method Settings */ - pickup_location_settings?: string; - /** WooCommerce Local Pickup Locations */ - pickup_locations?: object[]; - /** How should products be sorted in the catalog by default? */ - woocommerce_default_catalog_orderby?: IV2SettingsPartialUpdateParamsWoocommerceDefaultCatalogOrderbyEnum[]; - /** Controls the display of the phone field in checkout. */ - woocommerce_checkout_phone_field?: IV2SettingsPartialUpdateParamsWoocommerceCheckoutPhoneFieldEnum[]; - /** Controls the display of the company field in checkout. */ - woocommerce_checkout_company_field?: IV2SettingsPartialUpdateParamsWoocommerceCheckoutCompanyFieldEnum[]; - /** Controls the display of the apartment (address_2) field in checkout. */ - woocommerce_checkout_address_2_field?: IV2SettingsPartialUpdateParamsWoocommerceCheckoutAddress2FieldEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/settings`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags themes - * @name V2ThemesList - * @request GET:/wp/v2/themes - * @secure - */ - v2ThemesList: ( - query?: { - /** Limit result set to themes assigned one or more statuses. */ - status?: string[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/themes`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags themes - * @name V2ThemesDetail - * @request GET:/wp/v2/themes/{stylesheet} - * @secure - */ - v2ThemesDetail: (stylesheet: string, params: RequestParams = {}) => - this.request({ - path: `/wp/v2/themes/${stylesheet}`, - method: "GET", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags plugins - * @name V2PluginsList - * @request GET:/wp/v2/plugins - * @secure - */ - v2PluginsList: ( + v3WebhooksDetail: ( + id: number, query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PluginsListParamsContextEnum[]; - /** Limit results to those matching a string. */ - search?: string; - /** Limits results to plugins with the given status. */ - status?: string[]; + context?: IV3WebhooksDetailParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/plugins`, + path: `/wc/v3/webhooks/${id}`, method: "GET", query: query, secure: true, @@ -11672,76 +12127,29 @@ export class Api< /** * No description * - * @tags plugins - * @name V2PluginsCreate - * @request POST:/wp/v2/plugins - * @secure - */ - v2PluginsCreate: ( - data: { - /** WordPress.org plugin directory slug. */ - slug: string; - /** The plugin activation status. */ - status?: IStatusEnum26[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/plugins`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags plugins - * @name V2PluginsDetail - * @request GET:/wp/v2/plugins/{plugin} - * @secure - */ - v2PluginsDetail: ( - plugin: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PluginsDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/plugins/${plugin}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags plugins - * @name V2PluginsCreate2 - * @request POST:/wp/v2/plugins/{plugin} - * @originalName v2PluginsCreate + * @tags webhooks + * @name V3WebhooksCreate2 + * @request POST:/wc/v3/webhooks/{id} + * @originalName v3WebhooksCreate * @duplicate * @secure */ - v2PluginsCreate2: ( - plugin: string, + v3WebhooksCreate2: ( + id: number, data: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IContextEnum1[]; - /** The plugin activation status. */ - status?: IStatusEnum27[]; + /** A friendly name for the webhook. */ + name?: string; + /** Webhook status. */ + status?: IStatusEnum15[]; + /** Webhook topic. */ + topic?: string; + /** Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default to a MD5 hash from the current user's ID|username if not provided. */ + secret?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/plugins/${plugin}`, + path: `/wc/v3/webhooks/${id}`, method: "POST", body: data, secure: true, @@ -11752,23 +12160,27 @@ export class Api< /** * No description * - * @tags plugins - * @name V2PluginsUpdate - * @request PUT:/wp/v2/plugins/{plugin} + * @tags webhooks + * @name V3WebhooksUpdate + * @request PUT:/wc/v3/webhooks/{id} * @secure */ - v2PluginsUpdate: ( - plugin: string, + v3WebhooksUpdate: ( + id: number, query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PluginsUpdateParamsContextEnum[]; - /** The plugin activation status. */ - status?: IV2PluginsUpdateParamsStatusEnum[]; + /** A friendly name for the webhook. */ + name?: string; + /** Webhook status. */ + status?: IV3WebhooksUpdateParamsStatusEnum[]; + /** Webhook topic. */ + topic?: string; + /** Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default to a MD5 hash from the current user's ID|username if not provided. */ + secret?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/plugins/${plugin}`, + path: `/wc/v3/webhooks/${id}`, method: "PUT", query: query, secure: true, @@ -11779,23 +12191,27 @@ export class Api< /** * No description * - * @tags plugins - * @name V2PluginsPartialUpdate - * @request PATCH:/wp/v2/plugins/{plugin} + * @tags webhooks + * @name V3WebhooksPartialUpdate + * @request PATCH:/wc/v3/webhooks/{id} * @secure */ - v2PluginsPartialUpdate: ( - plugin: string, + v3WebhooksPartialUpdate: ( + id: number, query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PluginsPartialUpdateParamsContextEnum[]; - /** The plugin activation status. */ - status?: IV2PluginsPartialUpdateParamsStatusEnum[]; + /** A friendly name for the webhook. */ + name?: string; + /** Webhook status. */ + status?: IV3WebhooksPartialUpdateParamsStatusEnum[]; + /** Webhook topic. */ + topic?: string; + /** Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default to a MD5 hash from the current user's ID|username if not provided. */ + secret?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/plugins/${plugin}`, + path: `/wc/v3/webhooks/${id}`, method: "PATCH", query: query, secure: true, @@ -11806,449 +12222,21 @@ export class Api< /** * No description * - * @tags plugins - * @name V2PluginsDelete - * @request DELETE:/wp/v2/plugins/{plugin} + * @tags webhooks + * @name V3WebhooksDelete + * @request DELETE:/wc/v3/webhooks/{id} * @secure */ - v2PluginsDelete: ( - plugin: string, + v3WebhooksDelete: ( + id: number, query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PluginsDeleteParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/plugins/${plugin}`, - method: "DELETE", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags sidebars - * @name V2SidebarsList - * @request GET:/wp/v2/sidebars - * @secure - */ - v2SidebarsList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2SidebarsListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/sidebars`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags sidebars - * @name V2SidebarsDetail - * @request GET:/wp/v2/sidebars/{id} - * @secure - */ - v2SidebarsDetail: ( - id: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2SidebarsDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/sidebars/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags sidebars - * @name V2SidebarsCreate - * @request POST:/wp/v2/sidebars/{id} - * @secure - */ - v2SidebarsCreate: ( - id: string, - data: { - /** Nested widgets. */ - widgets?: (object | string)[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/sidebars/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags sidebars - * @name V2SidebarsUpdate - * @request PUT:/wp/v2/sidebars/{id} - * @secure - */ - v2SidebarsUpdate: ( - id: string, - query?: { - /** Nested widgets. */ - widgets?: (object | string)[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/sidebars/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags sidebars - * @name V2SidebarsPartialUpdate - * @request PATCH:/wp/v2/sidebars/{id} - * @secure - */ - v2SidebarsPartialUpdate: ( - id: string, - query?: { - /** Nested widgets. */ - widgets?: (object | string)[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/sidebars/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widget-types - * @name V2WidgetTypesList - * @request GET:/wp/v2/widget-types - * @secure - */ - v2WidgetTypesList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2WidgetTypesListParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widget-types`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widget-types - * @name V2WidgetTypesDetail - * @request GET:/wp/v2/widget-types/{id} - * @secure - */ - v2WidgetTypesDetail: ( - id: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2WidgetTypesDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widget-types/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widget-types - * @name V2WidgetTypesEncodeCreate - * @request POST:/wp/v2/widget-types/{id}/encode - * @secure - */ - v2WidgetTypesEncodeCreate: ( - id: string, - data: { - /** Current instance settings of the widget. */ - instance?: string; - /** Serialized widget form data to encode into instance settings. */ - form_data?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widget-types/${id}/encode`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags widget-types - * @name V2WidgetTypesRenderCreate - * @request POST:/wp/v2/widget-types/{id}/render - * @secure - */ - v2WidgetTypesRenderCreate: ( - id: string, - data: { - /** Current instance settings of the widget. */ - instance?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widget-types/${id}/render`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags widgets - * @name V2WidgetsList - * @request GET:/wp/v2/widgets - * @secure - */ - v2WidgetsList: ( - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2WidgetsListParamsContextEnum[]; - /** The sidebar to return widgets for. */ - sidebar?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widgets`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widgets - * @name V2WidgetsCreate - * @request POST:/wp/v2/widgets - * @secure - */ - v2WidgetsCreate: ( - data: { - /** Unique identifier for the widget. */ - id?: string; - /** The type of the widget. Corresponds to ID in widget-types endpoint. */ - id_base?: string; - /** The sidebar the widget belongs to. */ - sidebar: string; - /** Instance settings of the widget, if supported. */ - instance?: string; - /** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */ - form_data?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widgets`, - method: "POST", - body: data, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widgets - * @name V2WidgetsDetail - * @request GET:/wp/v2/widgets/{id} - * @secure - */ - v2WidgetsDetail: ( - id: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2WidgetsDetailParamsContextEnum[]; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widgets/${id}`, - method: "GET", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widgets - * @name V2WidgetsCreate2 - * @request POST:/wp/v2/widgets/{id} - * @originalName v2WidgetsCreate - * @duplicate - * @secure - */ - v2WidgetsCreate2: ( - id: string, - data: { - /** The type of the widget. Corresponds to ID in widget-types endpoint. */ - id_base?: string; - /** The sidebar the widget belongs to. */ - sidebar?: string; - /** Instance settings of the widget, if supported. */ - instance?: string; - /** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */ - form_data?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widgets/${id}`, - method: "POST", - body: data, - secure: true, - type: ContentType.FormData, - ...params, - }), - - /** - * No description - * - * @tags widgets - * @name V2WidgetsUpdate - * @request PUT:/wp/v2/widgets/{id} - * @secure - */ - v2WidgetsUpdate: ( - id: string, - query?: { - /** The type of the widget. Corresponds to ID in widget-types endpoint. */ - id_base?: string; - /** The sidebar the widget belongs to. */ - sidebar?: string; - /** Instance settings of the widget, if supported. */ - instance?: string; - /** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */ - form_data?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widgets/${id}`, - method: "PUT", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widgets - * @name V2WidgetsPartialUpdate - * @request PATCH:/wp/v2/widgets/{id} - * @secure - */ - v2WidgetsPartialUpdate: ( - id: string, - query?: { - /** The type of the widget. Corresponds to ID in widget-types endpoint. */ - id_base?: string; - /** The sidebar the widget belongs to. */ - sidebar?: string; - /** Instance settings of the widget, if supported. */ - instance?: string; - /** URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only. */ - form_data?: string; - }, - params: RequestParams = {}, - ) => - this.request({ - path: `/wp/v2/widgets/${id}`, - method: "PATCH", - query: query, - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags widgets - * @name V2WidgetsDelete - * @request DELETE:/wp/v2/widgets/{id} - * @secure - */ - v2WidgetsDelete: ( - id: string, - query?: { - /** Whether to force removal of the widget, or move it to the inactive sidebar. */ + /** Required to be true, as resource does not support trashing. */ force?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/widgets/${id}`, + path: `/wc/v3/webhooks/${id}`, method: "DELETE", query: query, secure: true, @@ -12259,36 +12247,57 @@ export class Api< /** * No description * - * @tags block-directory - * @name V2BlockDirectorySearchList - * @request GET:/wp/v2/block-directory/search + * @tags webhooks + * @name V3WebhooksBatchCreate + * @request POST:/wc/v3/webhooks/batch * @secure */ - v2BlockDirectorySearchList: ( - query: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2BlockDirectorySearchListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit result set to blocks matching the search term. */ - term: string; + v3WebhooksBatchCreate: ( + data: { + /** A friendly name for the webhook. */ + name?: string; + /** Webhook status. */ + status?: IStatusEnum16[]; + /** Webhook topic. */ + topic?: string; + /** Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default to a MD5 hash from the current user's ID|username if not provided. */ + secret?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/block-directory/search`, - method: "GET", + path: `/wc/v3/webhooks/batch`, + method: "POST", + body: data, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags webhooks + * @name V3WebhooksBatchUpdate + * @request PUT:/wc/v3/webhooks/batch + * @secure + */ + v3WebhooksBatchUpdate: ( + query?: { + /** A friendly name for the webhook. */ + name?: string; + /** Webhook status. */ + status?: IV3WebhooksBatchUpdateParamsStatusEnum[]; + /** Webhook topic. */ + topic?: string; + /** Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default to a MD5 hash from the current user's ID|username if not provided. */ + secret?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/webhooks/batch`, + method: "PUT", query: query, secure: true, type: ContentType.UrlEncoded, @@ -12298,58 +12307,50 @@ export class Api< /** * No description * - * @tags pattern-directory - * @name V2PatternDirectoryPatternsList - * @request GET:/wp/v2/pattern-directory/patterns + * @tags webhooks + * @name V3WebhooksBatchPartialUpdate + * @request PATCH:/wc/v3/webhooks/batch * @secure */ - v2PatternDirectoryPatternsList: ( + v3WebhooksBatchPartialUpdate: ( + query?: { + /** A friendly name for the webhook. */ + name?: string; + /** Webhook status. */ + status?: IV3WebhooksBatchPartialUpdateParamsStatusEnum[]; + /** Webhook topic. */ + topic?: string; + /** Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default to a MD5 hash from the current user's ID|username if not provided. */ + secret?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/webhooks/batch`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags system_status + * @name V3SystemStatusList + * @request GET:/wc/v3/system_status + * @secure + */ + v3SystemStatusList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2PatternDirectoryPatternsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; - /** Limit results to those matching a string. */ - search?: string; - /** - * Limit results to those matching a category ID. - * @format int64 - * @min 1 - */ - category?: number; - /** - * Limit results to those matching a keyword ID. - * @format int64 - * @min 1 - */ - keyword?: number; - /** Limit results to those matching a pattern (slug). */ - slug?: any[]; - /** - * Offset the result set by a specific number of items. - * @format int64 - */ - offset?: number; - /** Order sort attribute ascending or descending. */ - order?: IV2PatternDirectoryPatternsListParamsOrderEnum[]; - /** Sort collection by post attribute. */ - orderby?: IV2PatternDirectoryPatternsListParamsOrderbyEnum[]; + context?: IV3SystemStatusListParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/pattern-directory/patterns`, + path: `/wc/v3/system_status`, method: "GET", query: query, secure: true, @@ -12360,54 +12361,20 @@ export class Api< /** * No description * - * @tags block-patterns - * @name V2BlockPatternsPatternsList - * @request GET:/wp/v2/block-patterns/patterns + * @tags system_status + * @name V3SystemStatusToolsList + * @request GET:/wc/v3/system_status/tools * @secure */ - v2BlockPatternsPatternsList: (params: RequestParams = {}) => - this.request({ - path: `/wp/v2/block-patterns/patterns`, - method: "GET", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags block-patterns - * @name V2BlockPatternsCategoriesList - * @request GET:/wp/v2/block-patterns/categories - * @secure - */ - v2BlockPatternsCategoriesList: (params: RequestParams = {}) => - this.request({ - path: `/wp/v2/block-patterns/categories`, - method: "GET", - secure: true, - type: ContentType.UrlEncoded, - ...params, - }), - - /** - * No description - * - * @tags menu-locations - * @name V2MenuLocationsList - * @request GET:/wp/v2/menu-locations - * @secure - */ - v2MenuLocationsList: ( + v3SystemStatusToolsList: ( query?: { /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenuLocationsListParamsContextEnum[]; + context?: IV3SystemStatusToolsListParamsContextEnum[]; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-locations`, + path: `/wc/v3/system_status/tools`, method: "GET", query: query, secure: true, @@ -12418,21 +12385,377 @@ export class Api< /** * No description * - * @tags menu-locations - * @name V2MenuLocationsDetail - * @request GET:/wp/v2/menu-locations/{location} + * @tags system_status + * @name V3SystemStatusToolsDetail + * @request GET:/wc/v3/system_status/tools/{id} * @secure */ - v2MenuLocationsDetail: ( + v3SystemStatusToolsDetail: (id: string, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/system_status/tools/${id}`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags system_status + * @name V3SystemStatusToolsCreate + * @request POST:/wc/v3/system_status/tools/{id} + * @secure + */ + v3SystemStatusToolsCreate: ( + id: string, + data: { + /** Tool name. */ + name?: string; + /** What running the tool will do. */ + action?: string; + /** Tool description. */ + description?: string; + /** Did the tool run successfully? */ + success?: boolean; + /** Tool return message. */ + message?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/system_status/tools/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags system_status + * @name V3SystemStatusToolsUpdate + * @request PUT:/wc/v3/system_status/tools/{id} + * @secure + */ + v3SystemStatusToolsUpdate: ( + id: string, + query?: { + /** Tool name. */ + name?: string; + /** What running the tool will do. */ + action?: string; + /** Tool description. */ + description?: string; + /** Did the tool run successfully? */ + success?: boolean; + /** Tool return message. */ + message?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/system_status/tools/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags system_status + * @name V3SystemStatusToolsPartialUpdate + * @request PATCH:/wc/v3/system_status/tools/{id} + * @secure + */ + v3SystemStatusToolsPartialUpdate: ( + id: string, + query?: { + /** Tool name. */ + name?: string; + /** What running the tool will do. */ + action?: string; + /** Tool description. */ + description?: string; + /** Did the tool run successfully? */ + success?: boolean; + /** Tool return message. */ + message?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/system_status/tools/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping_methods + * @name V3ShippingMethodsList + * @request GET:/wc/v3/shipping_methods + * @secure + */ + v3ShippingMethodsList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ShippingMethodsListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping_methods`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags shipping_methods + * @name V3ShippingMethodsDetail + * @request GET:/wc/v3/shipping_methods/{id} + * @secure + */ + v3ShippingMethodsDetail: ( + id: string, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3ShippingMethodsDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/shipping_methods/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags payment_gateways + * @name V3PaymentGatewaysList + * @request GET:/wc/v3/payment_gateways + * @secure + */ + v3PaymentGatewaysList: ( + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3PaymentGatewaysListParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/payment_gateways`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags payment_gateways + * @name V3PaymentGatewaysDetail + * @request GET:/wc/v3/payment_gateways/{id} + * @secure + */ + v3PaymentGatewaysDetail: ( + id: string, + query?: { + /** Scope under which the request is made; determines fields present in response. */ + context?: IV3PaymentGatewaysDetailParamsContextEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/payment_gateways/${id}`, + method: "GET", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags payment_gateways + * @name V3PaymentGatewaysCreate + * @request POST:/wc/v3/payment_gateways/{id} + * @secure + */ + v3PaymentGatewaysCreate: ( + id: string, + data: { + /** Payment gateway title on checkout. */ + title?: string; + /** Payment gateway description on checkout. */ + description?: string; + /** + * Payment gateway sort order. + * @format int64 + */ + order?: number; + /** Payment gateway enabled status. */ + enabled?: boolean; + /** Payment gateway settings. */ + settings?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/payment_gateways/${id}`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags payment_gateways + * @name V3PaymentGatewaysUpdate + * @request PUT:/wc/v3/payment_gateways/{id} + * @secure + */ + v3PaymentGatewaysUpdate: ( + id: string, + query?: { + /** Payment gateway title on checkout. */ + title?: string; + /** Payment gateway description on checkout. */ + description?: string; + /** + * Payment gateway sort order. + * @format int64 + */ + order?: number; + /** Payment gateway enabled status. */ + enabled?: boolean; + /** Payment gateway settings. */ + settings?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/payment_gateways/${id}`, + method: "PUT", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags payment_gateways + * @name V3PaymentGatewaysPartialUpdate + * @request PATCH:/wc/v3/payment_gateways/{id} + * @secure + */ + v3PaymentGatewaysPartialUpdate: ( + id: string, + query?: { + /** Payment gateway title on checkout. */ + title?: string; + /** Payment gateway description on checkout. */ + description?: string; + /** + * Payment gateway sort order. + * @format int64 + */ + order?: number; + /** Payment gateway enabled status. */ + enabled?: boolean; + /** Payment gateway settings. */ + settings?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/payment_gateways/${id}`, + method: "PATCH", + query: query, + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags data + * @name V3DataList + * @request GET:/wc/v3/data + * @secure + */ + v3DataList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/data`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags data + * @name V3DataContinentsList + * @request GET:/wc/v3/data/continents + * @secure + */ + v3DataContinentsList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/data/continents`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags data + * @name V3DataContinentsDetail + * @request GET:/wc/v3/data/continents/{location} + * @secure + */ + v3DataContinentsDetail: ( location: string, query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2MenuLocationsDetailParamsContextEnum[]; + /** 2 character continent code. */ + continent?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/menu-locations/${location}`, + path: `/wc/v3/data/continents/${location}`, method: "GET", query: query, secure: true, @@ -12443,33 +12766,89 @@ export class Api< /** * No description * - * @tags font-collections - * @name V2FontCollectionsList - * @request GET:/wp/v2/font-collections + * @tags data + * @name V3DataCountriesList + * @request GET:/wc/v3/data/countries * @secure */ - v2FontCollectionsList: ( + v3DataCountriesList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/data/countries`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags data + * @name V3DataCountriesDetail + * @request GET:/wc/v3/data/countries/{location} + * @secure + */ + v3DataCountriesDetail: (location: string, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/data/countries/${location}`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags data + * @name V3DataCurrenciesList + * @request GET:/wc/v3/data/currencies + * @secure + */ + v3DataCurrenciesList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/data/currencies`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags data + * @name V3DataCurrenciesCurrentList + * @request GET:/wc/v3/data/currencies/current + * @secure + */ + v3DataCurrenciesCurrentList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/data/currencies/current`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags data + * @name V3DataCurrenciesDetail + * @request GET:/wc/v3/data/currencies/{currency} + * @secure + */ + v3DataCurrenciesDetail: ( + currency: string, query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2FontCollectionsListParamsContextEnum[]; - /** - * Current page of the collection. - * @format int64 - * @min 1 - */ - page?: number; - /** - * Maximum number of items to be returned in result set. - * @format int64 - * @min 1 - * @max 100 - */ - per_page?: number; + /** ISO4217 currency code. */ + location?: string; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/font-collections`, + path: `/wc/v3/data/currencies/${currency}`, method: "GET", query: query, secure: true, @@ -12480,23 +12859,146 @@ export class Api< /** * No description * - * @tags font-collections - * @name V2FontCollectionsDetail - * @request GET:/wp/v2/font-collections/{slug} + * @tags orders + * @name V3OrdersReceiptCreate + * @request POST:/wc/v3/orders/{id}/receipt * @secure */ - v2FontCollectionsDetail: ( - slug: string, - query?: { - /** Scope under which the request is made; determines fields present in response. */ - context?: IV2FontCollectionsDetailParamsContextEnum[]; + v3OrdersReceiptCreate: ( + id: number, + data: { + /** Expiration date formatted as yyyy-mm-dd. */ + expiration_date?: string; + /** + * Number of days to be added to the current date to get the expiration date. + * @format int64 + */ + expiration_days?: number; + /** True to force the creation of a new receipt even if one already exists and has not expired yet. */ + force_new?: boolean; }, params: RequestParams = {}, ) => this.request({ - path: `/wp/v2/font-collections/${slug}`, + path: `/wc/v3/orders/${id}/receipt`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersReceiptList + * @request GET:/wc/v3/orders/{id}/receipt + * @secure + */ + v3OrdersReceiptList: (id: number, params: RequestParams = {}) => + this.request({ + path: `/wc/v3/orders/${id}/receipt`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersActionsEmailTemplatesList + * @request GET:/wc/v3/orders/{id}/actions/email_templates + * @secure + */ + v3OrdersActionsEmailTemplatesList: ( + id: number, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${id}/actions/email_templates`, + method: "GET", + secure: true, + type: ContentType.UrlEncoded, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersActionsSendEmailCreate + * @request POST:/wc/v3/orders/{id}/actions/send_email + * @secure + */ + v3OrdersActionsSendEmailCreate: ( + id: number, + data: { + /** + * Email address to send the order details to. + * @format email + */ + email?: string; + /** Whether to update the billing email of the order, even if it already has one. */ + force_email_update?: boolean; + /** The ID of the template to use for sending the email. */ + template_id: ITemplateIdEnum[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${id}/actions/send_email`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersActionsSendOrderDetailsCreate + * @request POST:/wc/v3/orders/{id}/actions/send_order_details + * @secure + */ + v3OrdersActionsSendOrderDetailsCreate: ( + id: number, + data: { + /** + * Email address to send the order details to. + * @format email + */ + email?: string; + /** Whether to update the billing email of the order, even if it already has one. */ + force_email_update?: boolean; + }, + params: RequestParams = {}, + ) => + this.request({ + path: `/wc/v3/orders/${id}/actions/send_order_details`, + method: "POST", + body: data, + secure: true, + type: ContentType.FormData, + ...params, + }), + + /** + * No description + * + * @tags orders + * @name V3OrdersStatusesList + * @request GET:/wc/v3/orders/statuses + * @secure + */ + v3OrdersStatusesList: (params: RequestParams = {}) => + this.request({ + path: `/wc/v3/orders/statuses`, method: "GET", - query: query, secure: true, type: ContentType.UrlEncoded, ...params, diff --git a/api/endpoints/getProductList.ts b/api/endpoints/getProductList.ts index d7e7753..42ace73 100644 --- a/api/endpoints/getProductList.ts +++ b/api/endpoints/getProductList.ts @@ -1,4 +1,4 @@ import api from '~/api/instance' export const getProductList = () => - api.wp.v2ProductList() + api.wc.v3ProductsList() diff --git a/api/instance.ts b/api/instance.ts index 65d4762..2cda87a 100644 --- a/api/instance.ts +++ b/api/instance.ts @@ -6,8 +6,32 @@ const api = new Api({ const nativeRequest = api.request +const consumerKey = 'ck_8b5477a1573ce6038ef1367f25d95cede1de4559' +const consumerSecret = 'cs_d0ccaa93e8efe4f76eef0b70c9828a58fc53459f' + +const authString = `${consumerKey}:${consumerSecret}` +const encodedAuth = btoa(authString) // Кодируем в Base64 (браузерный метод) + api.request = async function (...args) { - const response = await nativeRequest.call(api, ...args) + const [url, options = {}] = args + + const headers = { + ...options.headers, + 'Authorization': `Basic ${encodedAuth}`, + 'Content-Type': 'application/json', // Явно указываем JSON + } + + // Убираем credentials: "omit" (мешает передаче заголовков) + const fetchOptions = { + ...options, + headers, + credentials: 'same-origin', // или "include" для кросс-доменных запросов + } + + console.log('Отправляемые заголовки:', headers) + console.log('fetchOptions', fetchOptions) + + const response = await nativeRequest.call(api, url, fetchOptions) return await response.json() }