fix: also trigger auto Business Policy setup when policy list is empty (not just on 20403)

This commit is contained in:
2026-04-17 01:54:11 +01:00
parent d84a61b918
commit 53a4594e1c

View File

@@ -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)