This commit is contained in:
seb
2026-10-17 05:10:28 +02:00
parent a194cf6b8b
commit f8cc01baf0
25 changed files with 1034 additions and 54 deletions

View File

@@ -54,6 +54,10 @@ async function run() {
name: 'Max Mustermann',
});
const carrier = await store.carrier.create(googleAuthId, {
name: 'Standard Carrier',
});
// 2. Setup tracked article and untracked article
const trackedArt = await store.article.createUnderParent({
googleAuthId,
@@ -117,6 +121,7 @@ async function run() {
});
const shippingOpen = await store.shipping.create(googleAuthId, {
manifestId: shipment.id,
carrierId: carrier.id,
type: 'parcel',
state: 'open',
});
@@ -219,6 +224,7 @@ async function run() {
async () => {
await store.shipping.create(googleAuthId, {
manifestId: order.id,
carrierId: carrier.id,
type: 'express',
state: 'shipped',
});
@@ -251,6 +257,7 @@ async function run() {
const directShipped = await store.shipping.create(googleAuthId, {
manifestId: shipment2.id,
carrierId: carrier.id,
type: 'parcel',
state: 'shipped',
});