Beispiel #1
0
        public static BenefitExternalReporting CreateBenefitExternalReporting(string benefitPlanID,
                                                                              global::System.DateTimeOffset validFrom,
                                                                              global::System.DateTimeOffset validTo,
                                                                              string countryRegionId,
                                                                              global::Microsoft.Dynamics.DataEntities.BenefitPlan benefitPlan,
                                                                              global::Microsoft.Dynamics.DataEntities.AddressCountryRegion addressCountryRegion)
        {
            BenefitExternalReporting benefitExternalReporting = new BenefitExternalReporting();

            benefitExternalReporting.BenefitPlanID   = benefitPlanID;
            benefitExternalReporting.ValidFrom       = validFrom;
            benefitExternalReporting.ValidTo         = validTo;
            benefitExternalReporting.CountryRegionId = countryRegionId;
            if ((benefitPlan == null))
            {
                throw new global::System.ArgumentNullException("benefitPlan");
            }
            benefitExternalReporting.BenefitPlan = benefitPlan;
            if ((addressCountryRegion == null))
            {
                throw new global::System.ArgumentNullException("addressCountryRegion");
            }
            benefitExternalReporting.AddressCountryRegion = addressCountryRegion;
            return(benefitExternalReporting);
        }
        public static Benefit CreateBenefit(string benefitPlanId,
                                            string benefitOptionId,
                                            global::System.DateTimeOffset effective,
                                            global::System.DateTimeOffset expiration,
                                            global::Microsoft.Dynamics.DataEntities.BenefitPlan benefitPlan,
                                            global::Microsoft.Dynamics.DataEntities.BenefitOption benefitOption)
        {
            Benefit benefit = new Benefit();

            benefit.BenefitPlanId   = benefitPlanId;
            benefit.BenefitOptionId = benefitOptionId;
            benefit.Effective       = effective;
            benefit.Expiration      = expiration;
            if ((benefitPlan == null))
            {
                throw new global::System.ArgumentNullException("benefitPlan");
            }
            benefit.BenefitPlan = benefitPlan;
            if ((benefitOption == null))
            {
                throw new global::System.ArgumentNullException("benefitOption");
            }
            benefit.BenefitOption = benefitOption;
            return(benefit);
        }
        public static BenefitTaxRuleUS CreateBenefitTaxRuleUS(string benefitPlanID, global::Microsoft.Dynamics.DataEntities.BenefitPlan benefitPlan)
        {
            BenefitTaxRuleUS benefitTaxRuleUS = new BenefitTaxRuleUS();

            benefitTaxRuleUS.BenefitPlanID = benefitPlanID;
            if ((benefitPlan == null))
            {
                throw new global::System.ArgumentNullException("benefitPlan");
            }
            benefitTaxRuleUS.BenefitPlan = benefitPlan;
            return(benefitTaxRuleUS);
        }
        public static BenefitEligibilityOverride CreateBenefitEligibilityOverride(string benefitPlanId,
                                                                                  string benefitOptionId,
                                                                                  global::System.DateTimeOffset effective,
                                                                                  global::System.DateTimeOffset expiration,
                                                                                  string workerId,
                                                                                  global::System.DateTimeOffset overrideStartDate,
                                                                                  global::System.DateTimeOffset overrideEndDate,
                                                                                  global::Microsoft.Dynamics.DataEntities.BenefitPlan benefitPlan,
                                                                                  global::Microsoft.Dynamics.DataEntities.Worker worker,
                                                                                  global::Microsoft.Dynamics.DataEntities.BenefitOption benefitOption,
                                                                                  global::Microsoft.Dynamics.DataEntities.Benefit benefit)
        {
            BenefitEligibilityOverride benefitEligibilityOverride = new BenefitEligibilityOverride();

            benefitEligibilityOverride.BenefitPlanId     = benefitPlanId;
            benefitEligibilityOverride.BenefitOptionId   = benefitOptionId;
            benefitEligibilityOverride.Effective         = effective;
            benefitEligibilityOverride.Expiration        = expiration;
            benefitEligibilityOverride.WorkerId          = workerId;
            benefitEligibilityOverride.OverrideStartDate = overrideStartDate;
            benefitEligibilityOverride.OverrideEndDate   = overrideEndDate;
            if ((benefitPlan == null))
            {
                throw new global::System.ArgumentNullException("benefitPlan");
            }
            benefitEligibilityOverride.BenefitPlan = benefitPlan;
            if ((worker == null))
            {
                throw new global::System.ArgumentNullException("worker");
            }
            benefitEligibilityOverride.Worker = worker;
            if ((benefitOption == null))
            {
                throw new global::System.ArgumentNullException("benefitOption");
            }
            benefitEligibilityOverride.BenefitOption = benefitOption;
            if ((benefit == null))
            {
                throw new global::System.ArgumentNullException("benefit");
            }
            benefitEligibilityOverride.Benefit = benefit;
            return(benefitEligibilityOverride);
        }
Beispiel #5
0
 partial void OnBenefitPlanChanging(global::Microsoft.Dynamics.DataEntities.BenefitPlan value);
Beispiel #6
0
        public static RetirementBenefitPlanDetail CreateRetirementBenefitPlanDetail(string benefitPlanID, global::Microsoft.Dynamics.DataEntities.BenefitPlan benefitPlan)
        {
            RetirementBenefitPlanDetail retirementBenefitPlanDetail = new RetirementBenefitPlanDetail();

            retirementBenefitPlanDetail.BenefitPlanID = benefitPlanID;
            if ((benefitPlan == null))
            {
                throw new global::System.ArgumentNullException("benefitPlan");
            }
            retirementBenefitPlanDetail.BenefitPlan = benefitPlan;
            return(retirementBenefitPlanDetail);
        }
        public static BenefitPlanDefaultDimension CreateBenefitPlanDefaultDimension(string benefitPlanId, string legalEntityId, global::Microsoft.Dynamics.DataEntities.BenefitPlan benefitPlan)
        {
            BenefitPlanDefaultDimension benefitPlanDefaultDimension = new BenefitPlanDefaultDimension();

            benefitPlanDefaultDimension.BenefitPlanId = benefitPlanId;
            benefitPlanDefaultDimension.LegalEntityId = legalEntityId;
            if ((benefitPlan == null))
            {
                throw new global::System.ArgumentNullException("benefitPlan");
            }
            benefitPlanDefaultDimension.BenefitPlan = benefitPlan;
            return(benefitPlanDefaultDimension);
        }