@@ -34,7 +34,8 @@ public MarketplaceParticipation() { }
3434 /// </summary>
3535 /// <param name="Marketplace">Marketplace (required).</param>
3636 /// <param name="Participation">Participation (required).</param>
37- public MarketplaceParticipation ( Marketplace Marketplace = default ( Marketplace ) , Participation Participation = default ( Participation ) )
37+ /// <param name="StoreName">StoreName (required).</param>
38+ public MarketplaceParticipation ( Marketplace Marketplace = default ( Marketplace ) , Participation Participation = default ( Participation ) , string StoreName = default ( string ) )
3839 {
3940 // to ensure "Marketplace" is required (not null)
4041 if ( Marketplace == null )
@@ -54,6 +55,15 @@ public MarketplaceParticipation() { }
5455 {
5556 this . Participation = Participation ;
5657 }
58+ // to ensure "StoreName" is required (not null)
59+ if ( StoreName == null )
60+ {
61+ throw new InvalidDataException ( "StoreName is a required property for MarketplaceParticipation and cannot be null" ) ;
62+ }
63+ else
64+ {
65+ this . StoreName = StoreName ;
66+ }
5767 }
5868
5969 /// <summary>
@@ -68,6 +78,12 @@ public MarketplaceParticipation() { }
6878 [ DataMember ( Name = "participation" , EmitDefaultValue = false ) ]
6979 public Participation Participation { get ; set ; }
7080
81+ /// <summary>
82+ /// Gets or Sets StoreName
83+ /// </summary>
84+ [ DataMember ( Name = "storeName" , EmitDefaultValue = false ) ]
85+ public string StoreName { get ; set ; }
86+
7187 /// <summary>
7288 /// Returns the string presentation of the object
7389 /// </summary>
@@ -78,6 +94,7 @@ public override string ToString()
7894 sb . Append ( "class MarketplaceParticipation {\n " ) ;
7995 sb . Append ( " Marketplace: " ) . Append ( Marketplace ) . Append ( "\n " ) ;
8096 sb . Append ( " Participation: " ) . Append ( Participation ) . Append ( "\n " ) ;
97+ sb . Append ( " StoreName: " ) . Append ( StoreName ) . Append ( "\n " ) ;
8198 sb . Append ( "}\n " ) ;
8299 return sb . ToString ( ) ;
83100 }
@@ -121,6 +138,11 @@ public bool Equals(MarketplaceParticipation input)
121138 this . Participation == input . Participation ||
122139 ( this . Participation != null &&
123140 this . Participation . Equals ( input . Participation ) )
141+ ) &&
142+ (
143+ this . StoreName == input . StoreName ||
144+ ( this . StoreName != null &&
145+ this . StoreName . Equals ( input . StoreName ) )
124146 ) ;
125147 }
126148
0 commit comments