mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
Removing redundancies in Woo-Commerce node. (#596)
* Iterating additionalFields given instead of hard coding the interface to match them when creating a product * Removed redundancy for product creation/update and order create. Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
@@ -13,42 +13,5 @@ export interface IImage {
|
||||
}
|
||||
|
||||
export interface IProduct {
|
||||
backorders?: string;
|
||||
button_text?: string;
|
||||
catalog_visibility?: string;
|
||||
categories?: IDataObject[];
|
||||
cross_sell_ids?: string[];
|
||||
date_on_sale_from?: string;
|
||||
date_on_sale_to?: string;
|
||||
description?: string;
|
||||
dimensions?: IDimension;
|
||||
downloadable?: boolean;
|
||||
external_url?: string;
|
||||
featured?: boolean;
|
||||
images?: IImage[];
|
||||
manage_stock?: boolean;
|
||||
menu_order?: number;
|
||||
meta_data?: IDataObject[];
|
||||
name?: string;
|
||||
parent_id?: string;
|
||||
price?: string;
|
||||
purchase_note?: string;
|
||||
regular_price?: string;
|
||||
reviews_allowed?: boolean;
|
||||
sale_price?: string;
|
||||
shipping_class?: string;
|
||||
short_description?: string;
|
||||
sku?: string;
|
||||
slug?: string;
|
||||
sold_individually?: boolean;
|
||||
status?: string;
|
||||
stock_quantity?: number;
|
||||
stock_status?: string;
|
||||
tags?: IDataObject[];
|
||||
tax_class?: string;
|
||||
tax_status?: string;
|
||||
type?: string;
|
||||
upsell_ids?: string[];
|
||||
virtual?: boolean;
|
||||
weight?: string;
|
||||
[index: string]: any
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user