From 53a4594e1c458a8ca77af03b0d156b8b763758f5 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 17 Apr 2026 01:54:11 +0100 Subject: [PATCH] fix: also trigger auto Business Policy setup when policy list is empty (not just on 20403) --- EbayListingTool/Services/EbayListingService.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/EbayListingTool/Services/EbayListingService.cs b/EbayListingTool/Services/EbayListingService.cs index 69256f9..6a15e72 100644 --- a/EbayListingTool/Services/EbayListingService.cs +++ b/EbayListingTool/Services/EbayListingService.cs @@ -112,9 +112,18 @@ public class EbayListingService : null; if (_fulfillmentPolicyId == null) + { + if (!_triedPolicySetup) + { + _triedPolicySetup = true; + await SetupDefaultBusinessPoliciesAsync(token); + await EnsurePoliciesAndLocationAsync(token, postcode); + return; + } throw new InvalidOperationException( "No fulfillment policy found on your eBay account.\n\n" + - "Please set one up in My eBay → Account → Business policies, then try again."); + "Please set one up in My eBay \u2192 Account \u2192 Business policies, then try again."); + } } if (_paymentPolicyId == null)