/// <summary> /// Initializes a new instance of the <see cref="OrderIdentifier" /> class. /// </summary> /// <param name="MarketplaceTechnicalCode">MarketplaceTechnicalCode (required).</param> /// <param name="AccountId">AccountId (required).</param> /// <param name="BeezUPOrderId">BeezUPOrderId (required).</param> public OrderIdentifier(BeezUPCommonMarketplaceTechnicalCode MarketplaceTechnicalCode = default(BeezUPCommonMarketplaceTechnicalCode), AccountId AccountId = default(AccountId), BeezUPOrderId BeezUPOrderId = default(BeezUPOrderId)) { // to ensure "MarketplaceTechnicalCode" is required (not null) if (MarketplaceTechnicalCode == null) { throw new InvalidDataException("MarketplaceTechnicalCode is a required property for OrderIdentifier and cannot be null"); } else { this.MarketplaceTechnicalCode = MarketplaceTechnicalCode; } // to ensure "AccountId" is required (not null) if (AccountId == null) { throw new InvalidDataException("AccountId is a required property for OrderIdentifier and cannot be null"); } else { this.AccountId = AccountId; } // to ensure "BeezUPOrderId" is required (not null) if (BeezUPOrderId == null) { throw new InvalidDataException("BeezUPOrderId is a required property for OrderIdentifier and cannot be null"); } else { this.BeezUPOrderId = BeezUPOrderId; } }