fix: use Inventory API condition enum strings instead of legacy numeric IDs
eBay Inventory API rejects numeric condition IDs (e.g. "3000") and requires string enums (e.g. "USED_VERY_GOOD"). Was causing 400 errors on every post attempt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -164,12 +164,12 @@ public class ListingDraft : INotifyPropertyChanged
|
||||
|
||||
public string ConditionId => Condition switch
|
||||
{
|
||||
ItemCondition.New => "1000",
|
||||
ItemCondition.OpenBox => "1500",
|
||||
ItemCondition.Refurbished => "2500",
|
||||
ItemCondition.Used => "3000",
|
||||
ItemCondition.ForPartsOrNotWorking => "7000",
|
||||
_ => "3000"
|
||||
ItemCondition.New => "NEW",
|
||||
ItemCondition.OpenBox => "NEW_OTHER",
|
||||
ItemCondition.Refurbished => "SELLER_REFURBISHED",
|
||||
ItemCondition.Used => "USED_VERY_GOOD",
|
||||
ItemCondition.ForPartsOrNotWorking => "FOR_PARTS_OR_NOT_WORKING",
|
||||
_ => "USED_VERY_GOOD"
|
||||
};
|
||||
|
||||
public event PropertyChangedEventHandler? PropertyChanged;
|
||||
|
||||
Reference in New Issue
Block a user