We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49f2f27 + 00ddf11 commit 1cd4192Copy full SHA for 1cd4192
Source/FikaAmazonAPI/ConstructFeed/Messages/StandardPrice.cs
@@ -1,11 +1,20 @@
1
-using System.Xml.Serialization;
+using System.Globalization;
2
+using System.Xml.Serialization;
3
4
namespace FikaAmazonAPI.ConstructFeed.Messages
5
{
6
public class StandardPrice
7
- [XmlText]
8
+ [XmlIgnore]
9
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
18
[XmlAttribute]
19
public string currency { get; set; }
20
public string start_at { get; set; }
0 commit comments