public Protocols.ToolkitResultProtocol CreatePriceInstance(Protocols.Interfaces.CreatePriceInstanceSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );
            FChoice.Toolkits.Clarify.Interfaces.CreatePriceInstanceSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.Interfaces.CreatePriceInstanceSetup(setupParam.PartNumber, setupParam.PartDomain, setupParam.PartRevision, setupParam.PriceProgram, setupParam.PriceType, setupParam.PricedQuantity, setupParam.Price);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

            if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
            {
                setup.PartNumber = setupParam.PartNumber;
            }

            if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
            {
                setup.PartDomain = setupParam.PartDomain;
            }

            if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
            {
                setup.PartRevision = setupParam.PartRevision;
            }

            if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
            {
                setup.PriceProgram = setupParam.PriceProgram;
            }

            if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
            {
                setup.PriceType = setupParam.PriceType;
            }

            if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
            {
                setup.PricedQuantity = setupParam.PricedQuantity;
            }

            if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
            {
                setup.Price = setupParam.Price;
            }

            if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
            {
                setup.StartDate = setupParam.StartDate;
            }

            if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
            {
                setup.EndDate = setupParam.EndDate;
            }

            return new Protocols.ToolkitResultProtocol( toolkit.CreatePriceInstance(setup) );
        }
        public Protocols.ToolkitResultProtocol CreatePriceInstance(System.String partNumber, System.String partDomain, System.String partRevision, System.String priceProgram, FChoice.Toolkits.Clarify.PriceInstanceType priceType, System.Int32 pricedQuantity, System.Decimal price)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.CreatePriceInstance(partNumber, partDomain, partRevision, priceProgram, priceType, pricedQuantity, price) );
        }