Skip to content

Commit

Permalink
Update generated SDKs (#147)
Browse files Browse the repository at this point in the history
Co-authored-by: Auto Mation <[email protected]>
  • Loading branch information
github-actions[bot] and Auto Mation authored Apr 12, 2022
1 parent b992d79 commit 4a61897
Show file tree
Hide file tree
Showing 132 changed files with 204 additions and 192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static IEnumerable<object[]> GetData()
.ProductProjections()
.Search()
.Get()
.WithFuzzyLevel(0.110830665)
.WithFuzzyLevel((decimal)0.110830665)
.Build(),
"Get",
"/test_projectKey/product-projections/search?fuzzyLevel=0.110830665",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/categories/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/categories/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/customers/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/customers/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static IEnumerable<object[]> GetData()
.WithImportContainerKeyValue("test_importContainerKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/import-containers/test_importContainerKey/import-operations?limit=0.26748633",
Expand All @@ -37,7 +37,7 @@ public static IEnumerable<object[]> GetData()
.WithImportContainerKeyValue("test_importContainerKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/import-containers/test_importContainerKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static IEnumerable<object[]> GetData()
.WithProjectKeyValue("test_projectKey")
.ImportContainers()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/import-containers?limit=0.26748633",
Expand All @@ -42,7 +42,7 @@ public static IEnumerable<object[]> GetData()
.WithProjectKeyValue("test_projectKey")
.ImportContainers()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/import-containers?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static IEnumerable<object[]> GetData()
.WithProjectKeyValue("test_projectKey")
.ImportSinks()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/import-sinks?limit=0.26748633",
Expand All @@ -43,7 +43,7 @@ public static IEnumerable<object[]> GetData()
.WithProjectKeyValue("test_projectKey")
.ImportSinks()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/import-sinks?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/order-patches/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/order-patches/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/orders/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/orders/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/prices/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/prices/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/product-drafts/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/product-drafts/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/product-types/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/product-types/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/product-variant-patches/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/product-variant-patches/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/product-variants/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/product-variants/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithLimit(0.26748633)
.WithLimit((decimal)0.26748633)
.Build(),
"Get",
"/test_projectKey/products/importSinkKey=test_importSinkKey/import-operations?limit=0.26748633",
Expand All @@ -38,7 +38,7 @@ public static IEnumerable<object[]> GetData()
.ImportSinkKeyWithImportSinkKeyValue("test_importSinkKey")
.ImportOperations()
.Get()
.WithOffset(0.7475848)
.WithOffset((decimal)0.7475848)
.Build(),
"Get",
"/test_projectKey/products/importSinkKey=test_importSinkKey/import-operations?offset=0.7475848",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static IEnumerable<object[]> GetData()
.Recommendations()
.GeneralCategories()
.Get()
.WithConfidenceMin(0.7340351)
.WithConfidenceMin((decimal)0.7340351)
.Build(),
"Get",
"/test_projectKey/recommendations/general-categories?confidenceMin=0.7340351",
Expand All @@ -79,7 +79,7 @@ public static IEnumerable<object[]> GetData()
.Recommendations()
.GeneralCategories()
.Get()
.WithConfidenceMax(0.30089796)
.WithConfidenceMax((decimal)0.30089796)
.Build(),
"Get",
"/test_projectKey/recommendations/general-categories?confidenceMax=0.30089796",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static IEnumerable<object[]> GetData()
.ProjectCategories()
.WithProductId("test_productId")
.Get()
.WithConfidenceMin(0.7340351)
.WithConfidenceMin((decimal)0.7340351)
.Build(),
"Get",
"/test_projectKey/recommendations/project-categories/test_productId?confidenceMin=0.7340351",
Expand All @@ -73,7 +73,7 @@ public static IEnumerable<object[]> GetData()
.ProjectCategories()
.WithProductId("test_productId")
.Get()
.WithConfidenceMax(0.30089796)
.WithConfidenceMax((decimal)0.30089796)
.Build(),
"Get",
"/test_projectKey/recommendations/project-categories/test_productId?confidenceMax=0.30089796",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public ByProjectKeyProductProjectionsSearchGet WithFuzzy(bool fuzzy)
return this.AddQueryParam("fuzzy", fuzzy.ToString());
}

public ByProjectKeyProductProjectionsSearchGet WithFuzzyLevel(double fuzzyLevel)
public ByProjectKeyProductProjectionsSearchGet WithFuzzyLevel(decimal fuzzyLevel)
{
return this.AddQueryParam("fuzzyLevel", fuzzyLevel.ToString());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace commercetools.Sdk.Api.Models.Carts
{
public partial class DiscountedLineItemPriceForQuantity : IDiscountedLineItemPriceForQuantity
{
public double Quantity { get; set; }
public decimal Quantity { get; set; }

public IDiscountedLineItemPrice DiscountedPrice { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public partial class ExternalTaxRateDraft : IExternalTaxRateDraft
{
public string Name { get; set; }

public double? Amount { get; set; }
public decimal? Amount { get; set; }

public string Country { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace commercetools.Sdk.Api.Models.Carts
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.DiscountedLineItemPriceForQuantity))]
public partial interface IDiscountedLineItemPriceForQuantity
{
double Quantity { get; set; }
decimal Quantity { get; set; }

IDiscountedLineItemPrice DiscountedPrice { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial interface IExternalTaxRateDraft
{
string Name { get; set; }

double? Amount { get; set; }
decimal? Amount { get; set; }

string Country { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public partial interface IItemShippingTarget
{
string AddressKey { get; set; }

double Quantity { get; set; }
decimal Quantity { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ namespace commercetools.Sdk.Api.Models.Carts
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.ScoreShippingRateInput))]
public partial interface IScoreShippingRateInput : IShippingRateInput
{
double Score { get; set; }
decimal Score { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ namespace commercetools.Sdk.Api.Models.Carts
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.ScoreShippingRateInputDraft))]
public partial interface IScoreShippingRateInputDraft : IShippingRateInputDraft
{
double Score { get; set; }
decimal Score { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial interface ITaxPortion
{
string Name { get; set; }

double Rate { get; set; }
decimal Rate { get; set; }

ITypedMoney Amount { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial interface ITaxPortionDraft
{
string Name { get; set; }

double Rate { get; set; }
decimal Rate { get; set; }

IMoney Amount { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ public partial interface ITaxedItemPrice
ITypedMoney TotalNet { get; set; }

ITypedMoney TotalGross { get; set; }

ITypedMoney TotalTax { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ public partial interface ITaxedPrice
ITypedMoney TotalGross { get; set; }

List<ITaxPortion> TaxPortions { get; set; }

ITypedMoney TotalTax { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ public partial class ItemShippingTarget : IItemShippingTarget
{
public string AddressKey { get; set; }

public double Quantity { get; set; }
public decimal Quantity { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public partial class ScoreShippingRateInput : IScoreShippingRateInput
{
public string Type { get; set; }

public double Score { get; set; }
public decimal Score { get; set; }
public ScoreShippingRateInput()
{
this.Type = "Score";
Expand Down
Loading

0 comments on commit 4a61897

Please sign in to comment.