/** * WooCommerce Node - Version 1 * Discriminator: resource=order, operation=update */ interface Credentials { wooCommerceApi: CredentialReference; } /** Update a customer */ export type WooCommerceV1OrderUpdateParams = { resource: 'order'; operation: 'update'; /** * Order ID */ orderId?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** Currency the order was created with */ currency?: string | Expression | PlaceholderValue; /** User ID who owns the order. 0 for guests. */ customerId?: string | Expression | PlaceholderValue; /** Note left by customer during checkout */ customerNote?: string | Expression | PlaceholderValue; /** Parent order ID */ parentId?: string | Expression | PlaceholderValue; /** Payment Method ID */ paymentMethodId?: string | Expression | PlaceholderValue; /** Payment Method Title */ paymentMethodTitle?: string | Expression | PlaceholderValue; /** A named status for the order * @default pending */ status?: 'cancelled' | 'completed' | 'failed' | 'on-hold' | 'pending' | 'processing' | 'refunded' | 'trash' | Expression; /** Unique transaction ID */ transactionID?: string | Expression | PlaceholderValue; }; /** * Billing address * @default {} */ billingUi?: { /** Address */ billingValues?: { /** First Name */ firstName?: string | Expression | PlaceholderValue; /** Last Name */ lastName?: string | Expression | PlaceholderValue; /** Company */ company?: string | Expression | PlaceholderValue; /** Address Line 1 */ address_1?: string | Expression | PlaceholderValue; /** Address Line 2 */ address_2?: string | Expression | PlaceholderValue; /** ISO code or name of the state, province or district */ city?: string | Expression | PlaceholderValue; /** Postal Code */ postalCode?: string | Expression | PlaceholderValue; /** Country */ country?: string | Expression | PlaceholderValue; /** Email */ email?: string | Expression | PlaceholderValue; /** Phone */ phone?: string | Expression | PlaceholderValue; }; }; /** * Coupons line data * @default {} */ couponLinesUi?: { /** Coupon Line */ couponLinesValues?: Array<{ /** Coupon code */ code?: string | Expression | PlaceholderValue; /** Meta data * @default {} */ metadataUi?: { /** Metadata */ metadataValues?: Array<{ /** Name of the metadata key to add */ key?: string | Expression | PlaceholderValue; /** Value to set for the metadata key */ value?: string | Expression | PlaceholderValue; }>; }; }>; }; /** * Fee line data * @default {} */ feeLinesUi?: { /** Fee Line */ feeLinesValues?: Array<{ /** Fee name */ name?: string | Expression | PlaceholderValue; /** Tax class of fee */ taxClass?: string | Expression | PlaceholderValue; /** Tax class of fee */ taxStatus?: 'taxable' | 'none' | Expression; /** Line total (after discounts) */ total?: string | Expression | PlaceholderValue; /** Meta data * @default {} */ metadataUi?: { /** Metadata */ metadataValues?: Array<{ /** Name of the metadata key to add */ key?: string | Expression | PlaceholderValue; /** Value to set for the metadata key */ value?: string | Expression | PlaceholderValue; }>; }; }>; }; /** * Line item data * @default {} */ lineItemsUi?: { /** Line Item */ lineItemsValues?: Array<{ /** Product name */ name?: string | Expression | PlaceholderValue; /** Product ID * @default 0 */ productId?: number | Expression; /** Variation ID, if applicable * @default 0 */ variationId?: number | Expression; /** Quantity ordered * @default 1 */ quantity?: number | Expression; /** Slug of the tax class of product */ taxClass?: string | Expression | PlaceholderValue; /** Line subtotal (before discounts) */ subtotal?: string | Expression | PlaceholderValue; /** Line total (after discounts) */ total?: string | Expression | PlaceholderValue; /** Meta data * @default {} */ metadataUi?: { /** Metadata */ metadataValues?: Array<{ /** Name of the metadata key to add */ key?: string | Expression | PlaceholderValue; /** Value to set for the metadata key */ value?: string | Expression | PlaceholderValue; }>; }; }>; }; /** * Meta data * @default {} */ metadataUi?: { /** Metadata */ metadataValues?: Array<{ /** Name of the metadata key to add */ key?: string | Expression | PlaceholderValue; /** Value to set for the metadata key */ value?: string | Expression | PlaceholderValue; }>; }; /** * Shipping address * @default {} */ shippingUi?: { /** Address */ shippingValues?: { /** First Name */ firstName?: string | Expression | PlaceholderValue; /** Last Name */ lastName?: string | Expression | PlaceholderValue; /** Company */ company?: string | Expression | PlaceholderValue; /** Address Line 1 */ address_1?: string | Expression | PlaceholderValue; /** Address Line 2 */ address_2?: string | Expression | PlaceholderValue; /** ISO code or name of the state, province or district */ city?: string | Expression | PlaceholderValue; /** Postal Code */ postalCode?: string | Expression | PlaceholderValue; /** Country */ country?: string | Expression | PlaceholderValue; }; }; /** * Shipping line data * @default {} */ shippingLinesUi?: { /** Fee Line */ shippingLinesValues?: Array<{ /** Shipping method name */ methodTitle?: string | Expression | PlaceholderValue; /** Shipping method ID */ 'method ID'?: string | Expression | PlaceholderValue; /** Line total (after discounts) */ total?: string | Expression | PlaceholderValue; /** Meta data * @default {} */ metadataUi?: { /** Metadata */ metadataValues?: Array<{ /** Name of the metadata key to add */ key?: string | Expression | PlaceholderValue; /** Value to set for the metadata key */ value?: string | Expression | PlaceholderValue; }>; }; }>; }; }; export type WooCommerceV1OrderUpdateNode = { type: 'n8n-nodes-base.wooCommerce'; version: 1; credentials?: Credentials; config: NodeConfig; };