Skip to content

Commit

Permalink
Add support for 50 customer fields (#21)
Browse files Browse the repository at this point in the history
This commit raises the number of allowed custom fields for a product
 from 30 to 50.
  • Loading branch information
iavorJ committed Nov 11, 2021
1 parent 0d5804b commit d3eee99
Show file tree
Hide file tree
Showing 4 changed files with 2,411 additions and 517 deletions.
2 changes: 1 addition & 1 deletion src/Meplato.Store2.Tests/Products/UpdateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void TestJsonSerialization()
OrderUnit = "PCE",
CustomField12 = "37751543"
};
var expected = "{\"customField12\":\"37751543\",\"ou\":\"PCE\",\"name\":\"Produkt 1000 (NEU!)\",\"price\":2.99}";
var expected = "{\"customField12\":\"37751543\",\"name\":\"Produkt 1000 (NEU!)\",\"ou\":\"PCE\",\"price\":2.99}";
Assert.AreEqual(expected, JsonConvert.SerializeObject(update));
}
// attributes explicitly set to null are serialized unlike omitted ones
Expand Down
14 changes: 8 additions & 6 deletions src/Meplato.Store2/Catalogs/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ public class Catalog
#region Catalog

/// <summary>
/// Country is the ISO-3166 alpha-2 code for the country that the
/// catalog is destined for (e.g. DE or US).
/// Country/Region is the ISO-3166 alpha-2 code for the
/// country/region that the catalog is destined for (e.g. DE or
/// US).
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }
Expand Down Expand Up @@ -497,8 +498,9 @@ public class CreateCatalog
#region CreateCatalog

/// <summary>
/// Country is the ISO-3166 alpha-2 code for the country that the
/// catalog is destined for (e.g. DE or US).
/// Country/Region is the ISO-3166 alpha-2 code for the
/// country/region that the catalog is destined for (e.g. DE or
/// US).
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }
Expand Down Expand Up @@ -686,8 +688,8 @@ public class Project
#region Project

/// <summary>
/// Country specifies the country code where catalogs for this
/// project are located.
/// Country/Region specifies the country/region code where catalogs
/// for this project are located.
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }
Expand Down
Loading

0 comments on commit d3eee99

Please sign in to comment.