@@ -34,7 +34,8 @@ public MarketplaceParticipation() { }
34
34
/// </summary>
35
35
/// <param name="Marketplace">Marketplace (required).</param>
36
36
/// <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 ) )
38
39
{
39
40
// to ensure "Marketplace" is required (not null)
40
41
if ( Marketplace == null )
@@ -54,6 +55,15 @@ public MarketplaceParticipation() { }
54
55
{
55
56
this . Participation = Participation ;
56
57
}
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
+ }
57
67
}
58
68
59
69
/// <summary>
@@ -68,6 +78,12 @@ public MarketplaceParticipation() { }
68
78
[ DataMember ( Name = "participation" , EmitDefaultValue = false ) ]
69
79
public Participation Participation { get ; set ; }
70
80
81
+ /// <summary>
82
+ /// Gets or Sets StoreName
83
+ /// </summary>
84
+ [ DataMember ( Name = "storeName" , EmitDefaultValue = false ) ]
85
+ public string StoreName { get ; set ; }
86
+
71
87
/// <summary>
72
88
/// Returns the string presentation of the object
73
89
/// </summary>
@@ -78,6 +94,7 @@ public override string ToString()
78
94
sb . Append ( "class MarketplaceParticipation {\n " ) ;
79
95
sb . Append ( " Marketplace: " ) . Append ( Marketplace ) . Append ( "\n " ) ;
80
96
sb . Append ( " Participation: " ) . Append ( Participation ) . Append ( "\n " ) ;
97
+ sb . Append ( " StoreName: " ) . Append ( StoreName ) . Append ( "\n " ) ;
81
98
sb . Append ( "}\n " ) ;
82
99
return sb . ToString ( ) ;
83
100
}
@@ -121,6 +138,11 @@ public bool Equals(MarketplaceParticipation input)
121
138
this . Participation == input . Participation ||
122
139
( this . Participation != null &&
123
140
this . Participation . Equals ( input . Participation ) )
141
+ ) &&
142
+ (
143
+ this . StoreName == input . StoreName ||
144
+ ( this . StoreName != null &&
145
+ this . StoreName . Equals ( input . StoreName ) )
124
146
) ;
125
147
}
126
148
0 commit comments