fix: also trigger auto Business Policy setup when policy list is empty (not just on 20403)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user