feat: pass item aspects to eBay and set shipping defaults on bulk import

- Task 8: Convert aspects Dictionary<string,string> to Dictionary<string,string[]> in CreateInventoryItemAsync
- Task 9: Set Postage to RoyalMailTracked48 and ShippingCost to 3.49m on BulkImportRow.ToListingDraft()
This commit is contained in:
Peter Foster
2026-04-15 09:39:11 +01:00
parent c9bdb6f7fe
commit d4dd11ed3e
2 changed files with 6 additions and 2 deletions

View File

@@ -124,7 +124,9 @@ public class BulkImportRow : INotifyPropertyChanged
PhotoPaths = PhotoPaths.Split(',', StringSplitOptions.RemoveEmptyEntries)
.Select(x => x.Trim())
.Where(x => !string.IsNullOrEmpty(x))
.ToList()
.ToList(),
Postage = PostageOption.RoyalMailTracked48,
ShippingCost = 3.49m
};
}

View File

@@ -317,7 +317,9 @@ public class EbayListingService
title = draft.Title,
description = draft.Description,
imageUrls = imageUrls.Count > 0 ? imageUrls : null,
aspects = (object?)null
aspects = draft.Aspects.Count > 0
? draft.Aspects.ToDictionary(kv => kv.Key, kv => new[] { kv.Value })
: (object?)null
}
};