Skip to content

Commit 1cd4192

Browse files
authored
Merge pull request #880 from kevinvenclovas/fix-xml-price-issue
fixed xml build issue
2 parents 49f2f27 + 00ddf11 commit 1cd4192

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Source/FikaAmazonAPI/ConstructFeed/Messages/StandardPrice.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
using System.Xml.Serialization;
1+
using System.Globalization;
2+
using System.Xml.Serialization;
23

34
namespace FikaAmazonAPI.ConstructFeed.Messages
45
{
56
public class StandardPrice
67
{
7-
[XmlText]
8+
[XmlIgnore]
89
public decimal Value { get; set; }
10+
11+
[XmlText]
12+
public string ValueString
13+
{
14+
get => Value.ToString(CultureInfo.InvariantCulture);
15+
set => Value = decimal.Parse(value, CultureInfo.InvariantCulture);
16+
}
17+
918
[XmlAttribute]
1019
public string currency { get; set; }
1120
public string start_at { get; set; }

0 commit comments

Comments
 (0)