public static CallCenterCatalogCoupon CreateCallCenterCatalogCoupon(string dataAreaId, string couponId, string catalogNumber, global::Microsoft.Dynamics.DataEntities.RetailCatalog retailCatalog)
        {
            CallCenterCatalogCoupon callCenterCatalogCoupon = new CallCenterCatalogCoupon();

            callCenterCatalogCoupon.dataAreaId    = dataAreaId;
            callCenterCatalogCoupon.CouponId      = couponId;
            callCenterCatalogCoupon.CatalogNumber = catalogNumber;
            if ((retailCatalog == null))
            {
                throw new global::System.ArgumentNullException("retailCatalog");
            }
            callCenterCatalogCoupon.RetailCatalog = retailCatalog;
            return(callCenterCatalogCoupon);
        }
 partial void OnRetailCatalogChanging(global::Microsoft.Dynamics.DataEntities.RetailCatalog value);
示例#3
0
        public static RetailCatalogProductAttributeValue CreateRetailCatalogProductAttributeValue(string catalogNumber,
                                                                                                  string categoryHierarchyName,
                                                                                                  string categoryName,
                                                                                                  string displayProductNumber,
                                                                                                  string attributeGroupName,
                                                                                                  string attributeName,
                                                                                                  string attributeTypeName,
                                                                                                  int integerValue,
                                                                                                  decimal decimalValue,
                                                                                                  global::System.DateTimeOffset dateTimeValue,
                                                                                                  decimal currencyValue,
                                                                                                  global::Microsoft.Dynamics.DataEntities.ProductCategory productCategory,
                                                                                                  global::Microsoft.Dynamics.DataEntities.ProductCategoryHierarchy productCategoryHierarchy,
                                                                                                  global::Microsoft.Dynamics.DataEntities.RetailCatalog retailCatalog,
                                                                                                  global::Microsoft.Dynamics.DataEntities.RetailCatalogProduct retailCatalogProduct)
        {
            RetailCatalogProductAttributeValue retailCatalogProductAttributeValue = new RetailCatalogProductAttributeValue();

            retailCatalogProductAttributeValue.CatalogNumber         = catalogNumber;
            retailCatalogProductAttributeValue.CategoryHierarchyName = categoryHierarchyName;
            retailCatalogProductAttributeValue.CategoryName          = categoryName;
            retailCatalogProductAttributeValue.DisplayProductNumber  = displayProductNumber;
            retailCatalogProductAttributeValue.AttributeGroupName    = attributeGroupName;
            retailCatalogProductAttributeValue.AttributeName         = attributeName;
            retailCatalogProductAttributeValue.AttributeTypeName     = attributeTypeName;
            retailCatalogProductAttributeValue.IntegerValue          = integerValue;
            retailCatalogProductAttributeValue.DecimalValue          = decimalValue;
            retailCatalogProductAttributeValue.DateTimeValue         = dateTimeValue;
            retailCatalogProductAttributeValue.CurrencyValue         = currencyValue;
            if ((productCategory == null))
            {
                throw new global::System.ArgumentNullException("productCategory");
            }
            retailCatalogProductAttributeValue.ProductCategory = productCategory;
            if ((productCategoryHierarchy == null))
            {
                throw new global::System.ArgumentNullException("productCategoryHierarchy");
            }
            retailCatalogProductAttributeValue.ProductCategoryHierarchy = productCategoryHierarchy;
            if ((retailCatalog == null))
            {
                throw new global::System.ArgumentNullException("retailCatalog");
            }
            retailCatalogProductAttributeValue.RetailCatalog = retailCatalog;
            if ((retailCatalogProduct == null))
            {
                throw new global::System.ArgumentNullException("retailCatalogProduct");
            }
            retailCatalogProductAttributeValue.RetailCatalogProduct = retailCatalogProduct;
            return(retailCatalogProductAttributeValue);
        }
        public static RetailCatalogPriceGroup CreateRetailCatalogPriceGroup(string catalogNumber, string priceGroupLegalEntity, string priceGroupId, global::Microsoft.Dynamics.DataEntities.RetailCatalog retailCatalog)
        {
            RetailCatalogPriceGroup retailCatalogPriceGroup = new RetailCatalogPriceGroup();

            retailCatalogPriceGroup.CatalogNumber         = catalogNumber;
            retailCatalogPriceGroup.PriceGroupLegalEntity = priceGroupLegalEntity;
            retailCatalogPriceGroup.PriceGroupId          = priceGroupId;
            if ((retailCatalog == null))
            {
                throw new global::System.ArgumentNullException("retailCatalog");
            }
            retailCatalogPriceGroup.RetailCatalog = retailCatalog;
            return(retailCatalogPriceGroup);
        }
        public static RetailCatalogInternalOrganizationProductAttributeValue2 CreateRetailCatalogInternalOrganizationProductAttributeValue2(string catalogNumber,
                                                                                                                                            string internalOrganizationPartyNumber,
                                                                                                                                            string displayProductNumber,
                                                                                                                                            string attributeTypeName,
                                                                                                                                            string attributeName,
                                                                                                                                            int integerValue,
                                                                                                                                            decimal decimalValue,
                                                                                                                                            global::System.DateTimeOffset dateTimeValue,
                                                                                                                                            decimal currencyValue,
                                                                                                                                            global::Microsoft.Dynamics.DataEntities.RetailCatalog retailCatalog,
                                                                                                                                            global::Microsoft.Dynamics.DataEntities.RetailCatalogInternalOrganization retailCatalogInternalOrganization,
                                                                                                                                            global::Microsoft.Dynamics.DataEntities.RetailCatalogProduct retailCatalogProduct,
                                                                                                                                            global::Microsoft.Dynamics.DataEntities.RetailInternalOrganization retailInternalOrganization)
        {
            RetailCatalogInternalOrganizationProductAttributeValue2 retailCatalogInternalOrganizationProductAttributeValue2 = new RetailCatalogInternalOrganizationProductAttributeValue2();

            retailCatalogInternalOrganizationProductAttributeValue2.CatalogNumber = catalogNumber;
            retailCatalogInternalOrganizationProductAttributeValue2.InternalOrganizationPartyNumber = internalOrganizationPartyNumber;
            retailCatalogInternalOrganizationProductAttributeValue2.DisplayProductNumber            = displayProductNumber;
            retailCatalogInternalOrganizationProductAttributeValue2.AttributeTypeName = attributeTypeName;
            retailCatalogInternalOrganizationProductAttributeValue2.AttributeName     = attributeName;
            retailCatalogInternalOrganizationProductAttributeValue2.IntegerValue      = integerValue;
            retailCatalogInternalOrganizationProductAttributeValue2.DecimalValue      = decimalValue;
            retailCatalogInternalOrganizationProductAttributeValue2.DateTimeValue     = dateTimeValue;
            retailCatalogInternalOrganizationProductAttributeValue2.CurrencyValue     = currencyValue;
            if ((retailCatalog == null))
            {
                throw new global::System.ArgumentNullException("retailCatalog");
            }
            retailCatalogInternalOrganizationProductAttributeValue2.RetailCatalog = retailCatalog;
            if ((retailCatalogInternalOrganization == null))
            {
                throw new global::System.ArgumentNullException("retailCatalogInternalOrganization");
            }
            retailCatalogInternalOrganizationProductAttributeValue2.RetailCatalogInternalOrganization = retailCatalogInternalOrganization;
            if ((retailCatalogProduct == null))
            {
                throw new global::System.ArgumentNullException("retailCatalogProduct");
            }
            retailCatalogInternalOrganizationProductAttributeValue2.RetailCatalogProduct = retailCatalogProduct;
            if ((retailInternalOrganization == null))
            {
                throw new global::System.ArgumentNullException("retailInternalOrganization");
            }
            retailCatalogInternalOrganizationProductAttributeValue2.RetailInternalOrganization = retailInternalOrganization;
            return(retailCatalogInternalOrganizationProductAttributeValue2);
        }