Skip to content

Commit

Permalink
Apply "emitdefaultvalue" fix to models
Browse files Browse the repository at this point in the history
  • Loading branch information
altJake authored and kkupreeva committed May 28, 2024
1 parent d5af796 commit addcb02
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/TalonOne/Model/AddItemCatalogAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected AddItemCatalogAction() { }
/// Price of the item.
/// </summary>
/// <value>Price of the item.</value>
[DataMember(Name="price", EmitDefaultValue=false)]
[DataMember(Name="price", EmitDefaultValue=true)]
public decimal Price { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TalonOne/Model/AdditionalCost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected AdditionalCost() { }
/// <summary>
/// Gets or Sets Price
/// </summary>
[DataMember(Name="price", EmitDefaultValue=false)]
[DataMember(Name="price", EmitDefaultValue=true)]
public decimal Price { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/TalonOne/Model/CartItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected CartItem() { }
/// Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog.
/// </summary>
/// <value>Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. </value>
[DataMember(Name="price", EmitDefaultValue=false)]
[DataMember(Name="price", EmitDefaultValue=true)]
public decimal Price { get; set; }

/// <summary>
Expand Down Expand Up @@ -163,7 +163,7 @@ protected CartItem() { }
/// Position of the Cart Item in the Cart (calculated internally).
/// </summary>
/// <value>Position of the Cart Item in the Cart (calculated internally).</value>
[DataMember(Name="position", EmitDefaultValue=false)]
[DataMember(Name="position", EmitDefaultValue=true)]
public decimal Position { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TalonOne/Model/CatalogItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected CatalogItem() { }
/// Price of the item.
/// </summary>
/// <value>Price of the item.</value>
[DataMember(Name="price", EmitDefaultValue=false)]
[DataMember(Name="price", EmitDefaultValue=true)]
public decimal Price { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TalonOne/Model/PatchItemCatalogAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected PatchItemCatalogAction() { }
/// Price of the item.
/// </summary>
/// <value>Price of the item.</value>
[DataMember(Name="price", EmitDefaultValue=false)]
[DataMember(Name="price", EmitDefaultValue=true)]
public decimal Price { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TalonOne/Model/PatchManyItemsCatalogAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public partial class PatchManyItemsCatalogAction : IEquatable<PatchManyItemsCat
/// Price of the item.
/// </summary>
/// <value>Price of the item.</value>
[DataMember(Name="price", EmitDefaultValue=false)]
[DataMember(Name="price", EmitDefaultValue=true)]
public decimal Price { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TalonOne/Model/ReturnedCartItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected ReturnedCartItem() { }
/// The index of the cart item in the provided customer session&#39;s &#x60;cartItems&#x60; property.
/// </summary>
/// <value>The index of the cart item in the provided customer session&#39;s &#x60;cartItems&#x60; property.</value>
[DataMember(Name="position", EmitDefaultValue=false)]
[DataMember(Name="position", EmitDefaultValue=true)]
public int Position { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected SetDiscountPerAdditionalCostPerItemEffectProps() { }
/// The index of the item in the cart item list containing the additional cost to be discounted.
/// </summary>
/// <value>The index of the item in the cart item list containing the additional cost to be discounted.</value>
[DataMember(Name="position", EmitDefaultValue=false)]
[DataMember(Name="position", EmitDefaultValue=true)]
public decimal Position { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TalonOne/Model/SetDiscountPerItemEffectProps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected SetDiscountPerItemEffectProps() { }
/// The index of the item in the cart items list on which this discount should be applied.
/// </summary>
/// <value>The index of the item in the cart items list on which this discount should be applied.</value>
[DataMember(Name="position", EmitDefaultValue=false)]
[DataMember(Name="position", EmitDefaultValue=true)]
public decimal Position { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/TalonOne/Model/StrikethroughChangedItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected StrikethroughChangedItem() { }
/// The price of the changed item.
/// </summary>
/// <value>The price of the changed item.</value>
[DataMember(Name="price", EmitDefaultValue=false)]
[DataMember(Name="price", EmitDefaultValue=true)]
public decimal Price { get; set; }

/// <summary>
Expand Down

0 comments on commit addcb02

Please sign in to comment.