fix: use Inventory API condition enum strings (NEW/USED_VERY_GOOD etc) not numeric IDs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace EbayListingTool.Models;
|
||||
@@ -150,12 +150,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 => "LIKE_NEW",
|
||||
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