diff --git a/source/Generic/PurchaseDateImporter/Models/EpicGetOrderHistoryResponse.cs b/source/Generic/PurchaseDateImporter/Models/EpicGetOrderHistoryResponse.cs index d40f04d433..edf5bf6595 100644 --- a/source/Generic/PurchaseDateImporter/Models/EpicGetOrderHistoryResponse.cs +++ b/source/Generic/PurchaseDateImporter/Models/EpicGetOrderHistoryResponse.cs @@ -18,59 +18,59 @@ public class EpicGetOrderHistoryResponse public class EpicOrder { - [SerializationPropertyName("orderStatus")] - public string OrderStatus { get; set; } + //[SerializationPropertyName("orderStatus")] + //public string OrderStatus { get; set; } - [SerializationPropertyName("canSendReceipt")] - public bool CanSendReceipt { get; set; } + //[SerializationPropertyName("canSendReceipt")] + //public bool CanSendReceipt { get; set; } - [SerializationPropertyName("receiptId")] - public string ReceiptId { get; set; } + //[SerializationPropertyName("receiptId")] + //public string ReceiptId { get; set; } - [SerializationPropertyName("orderId")] - public string OrderId { get; set; } + //[SerializationPropertyName("orderId")] + //public string OrderId { get; set; } [SerializationPropertyName("createdAtMillis")] public long CreatedAtMillis { get; set; } - [SerializationPropertyName("updatedAtMillis")] - public long UpdatedAtMillis { get; set; } + //[SerializationPropertyName("updatedAtMillis")] + //public long UpdatedAtMillis { get; set; } - [SerializationPropertyName("parentOrderId")] - public object ParentOrderId { get; set; } + //[SerializationPropertyName("parentOrderId")] + //public object ParentOrderId { get; set; } - [SerializationPropertyName("currency")] - public string Currency { get; set; } + //[SerializationPropertyName("currency")] + //public string Currency { get; set; } - [SerializationPropertyName("price")] - public long Price { get; set; } + //[SerializationPropertyName("price")] + //public long Price { get; set; } - [SerializationPropertyName("presentmentAmount")] - public string PresentmentAmount { get; set; } + //[SerializationPropertyName("presentmentAmount")] + //public string PresentmentAmount { get; set; } [SerializationPropertyName("items")] public EpicOrderItem[] Items { get; set; } - [SerializationPropertyName("merchantGroup")] - public string MerchantGroup { get; set; } + //[SerializationPropertyName("merchantGroup")] + //public string MerchantGroup { get; set; } - [SerializationPropertyName("total")] - public long Total { get; set; } + //[SerializationPropertyName("total")] + //public long Total { get; set; } - [SerializationPropertyName("convenienceFee")] - public long ConvenienceFee { get; set; } + //[SerializationPropertyName("convenienceFee")] + //public long ConvenienceFee { get; set; } - [SerializationPropertyName("tax")] - public long Tax { get; set; } + //[SerializationPropertyName("tax")] + //public long Tax { get; set; } - [SerializationPropertyName("presentmentTotal")] - public string PresentmentTotal { get; set; } + //[SerializationPropertyName("presentmentTotal")] + //public string PresentmentTotal { get; set; } - [SerializationPropertyName("presentmentConvenienceFee")] - public string PresentmentConvenienceFee { get; set; } + //[SerializationPropertyName("presentmentConvenienceFee")] + //public string PresentmentConvenienceFee { get; set; } - [SerializationPropertyName("presentmentTax")] - public string PresentmentTax { get; set; } + //[SerializationPropertyName("presentmentTax")] + //public string PresentmentTax { get; set; } } public class EpicOrderItem @@ -78,25 +78,25 @@ public class EpicOrderItem [SerializationPropertyName("description")] public string Description { get; set; } - [SerializationPropertyName("quantity")] - public long Quantity { get; set; } + //[SerializationPropertyName("quantity")] + //public long Quantity { get; set; } - [SerializationPropertyName("sellerName")] - public string SellerName { get; set; } + //[SerializationPropertyName("sellerName")] + //public string SellerName { get; set; } - [SerializationPropertyName("amount")] - public string Amount { get; set; } + //[SerializationPropertyName("amount")] + //public string Amount { get; set; } - [SerializationPropertyName("price")] - public long Price { get; set; } + //[SerializationPropertyName("price")] + //public long Price { get; set; } - [SerializationPropertyName("offerId")] - public string OfferId { get; set; } + //[SerializationPropertyName("offerId")] + //public string OfferId { get; set; } - [SerializationPropertyName("namespace")] - public string Namespace { get; set; } + //[SerializationPropertyName("namespace")] + //public string Namespace { get; set; } - [SerializationPropertyName("status")] - public string Status { get; set; } + //[SerializationPropertyName("status")] + //public string Status { get; set; } } } \ No newline at end of file diff --git a/source/Generic/PurchaseDateImporter/Services/EpicLicenseService.cs b/source/Generic/PurchaseDateImporter/Services/EpicLicenseService.cs index bdb83409c8..752c407de5 100644 --- a/source/Generic/PurchaseDateImporter/Services/EpicLicenseService.cs +++ b/source/Generic/PurchaseDateImporter/Services/EpicLicenseService.cs @@ -32,7 +32,7 @@ public static Dictionary GetLicensesDict() public static List GetLicenses() { var licensesList = new List(); - var apiTemplate = "https://www.epicgames.com/account/v2/payment/ajaxGetOrderHistory?sortDir=DESC&sortBy=DATE&locale=en-US&nextPageToken={0}"; + var apiTemplate = "https://accounts.epicgames.com/account/v2/payment/ajaxGetOrderHistory?sortDir=DESC&sortBy=DATE&locale=en-US&nextPageToken={0}"; var nextPageToken = DateTime.Now.ToString("u").Replace(" ", "T"); using (var webView = Playnite.SDK.API.Instance.WebViews.CreateOffscreenView(new WebViewSettings { UserAgent = epicUserAgent })) @@ -82,4 +82,4 @@ public static List GetLicenses() return licensesList; } } -} \ No newline at end of file +}