1'use strict';23const { isBlank } = require('./value-utils.js');45// rp-target-wix — spec 0042 Decision 2: the `channelInfo` segment of a POST /ecom/v1/orders/import6// request body. A small, standalone builder rather than a full order-payload builder because full7// order assembly (line items, discounts, refunds, tax, shipping) is explicitly out of scope for8// spec 0042 (left for rp-import-codegen, not yet built) — this covers exactly the one piece spec9// 0042 Decision 2 designs: always setting a durable pointer back to the source order.10//11// `channelInfo.externalOrderId`/`externalOrderUrl` is a real, documented Wix order field12
56 notes.push('externalOrderUrl omitted — not constructible from the WooCommerce order alone (legacy post.php vs HPOS wc-orders admin URL shapes differ); pass options.externalOrderUrl when the caller can build it for this site.');