partial void OnReplenishmentRuleLinesV2Changing(global::Microsoft.Dynamics.DataEntities.ReplenishmentRuleLinesV2 value);
        public static RetailReplenishmentRule CreateRetailReplenishmentRule(string dataAreaId, string replenishmentRule, global::Microsoft.Dynamics.DataEntities.ReplenishmentRuleLinesV2 replenishmentRuleLinesV2)
        {
            RetailReplenishmentRule retailReplenishmentRule = new RetailReplenishmentRule();

            retailReplenishmentRule.dataAreaId        = dataAreaId;
            retailReplenishmentRule.ReplenishmentRule = replenishmentRule;
            if ((replenishmentRuleLinesV2 == null))
            {
                throw new global::System.ArgumentNullException("replenishmentRuleLinesV2");
            }
            retailReplenishmentRule.ReplenishmentRuleLinesV2 = replenishmentRuleLinesV2;
            return(retailReplenishmentRule);
        }