Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public MarketplaceParticipation() { }
/// </summary>
/// <param name="Marketplace">Marketplace (required).</param>
/// <param name="Participation">Participation (required).</param>
public MarketplaceParticipation(Marketplace Marketplace = default(Marketplace), Participation Participation = default(Participation))
/// <param name="StoreName">StoreName (required).</param>
public MarketplaceParticipation(Marketplace Marketplace = default(Marketplace), Participation Participation = default(Participation), string StoreName = default(string))
{
// to ensure "Marketplace" is required (not null)
if (Marketplace == null)
Expand All @@ -54,6 +55,15 @@ public MarketplaceParticipation() { }
{
this.Participation = Participation;
}
// to ensure "StoreName" is required (not null)
if (StoreName == null)
{
throw new InvalidDataException("StoreName is a required property for MarketplaceParticipation and cannot be null");
}
else
{
this.StoreName = StoreName;
}
}

/// <summary>
Expand All @@ -68,6 +78,12 @@ public MarketplaceParticipation() { }
[DataMember(Name = "participation", EmitDefaultValue = false)]
public Participation Participation { get; set; }

/// <summary>
/// Gets or Sets StoreName
/// </summary>
[DataMember(Name = "storeName", EmitDefaultValue = false)]
public string StoreName { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -78,6 +94,7 @@ public override string ToString()
sb.Append("class MarketplaceParticipation {\n");
sb.Append(" Marketplace: ").Append(Marketplace).Append("\n");
sb.Append(" Participation: ").Append(Participation).Append("\n");
sb.Append(" StoreName: ").Append(StoreName).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -121,6 +138,11 @@ public bool Equals(MarketplaceParticipation input)
this.Participation == input.Participation ||
(this.Participation != null &&
this.Participation.Equals(input.Participation))
) &&
(
this.StoreName == input.StoreName ||
(this.StoreName != null &&
this.StoreName.Equals(input.StoreName))
);
}

Expand Down
Loading