/// <summary>
 /// Initializes a new instance of the <see cref="MenuItemOptionSetBase" /> class.
 /// </summary>
 /// <param name="name">Menu item option set name.</param>
 /// <param name="isMasterOptionSet">Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\&quot;with ketchup\&quot;) or modifier (\&quot;large\&quot;)..</param>
 /// <param name="displayOrder">Display order. Displayed in ascending order..</param>
 /// <param name="minSelectCount">Minimum items must be selected.</param>
 /// <param name="maxSelectCount">Maximum number of items can be selected.</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 public MenuItemOptionSetBase(string name = default(string), bool?isMasterOptionSet = default(bool?), int?displayOrder = default(int?), int?minSelectCount = default(int?), int?maxSelectCount = default(int?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?))
 {
     this.Name = name;
     this.IsMasterOptionSet = isMasterOptionSet;
     this.DisplayOrder      = displayOrder;
     this.MinSelectCount    = minSelectCount;
     this.MaxSelectCount    = maxSelectCount;
     this.CellLayoutType    = cellLayoutType;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuItemOptionSetItemBase" /> class.
 /// </summary>
 /// <param name="name">Name.</param>
 /// <param name="price">Price.</param>
 /// <param name="isAvailable">Is available.</param>
 /// <param name="displayOrder">Display order. Displayed in ascending order..</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 /// <param name="imageUrl">Image url.</param>
 public MenuItemOptionSetItemBase(string name = default(string), double?price = default(double?), bool?isAvailable = default(bool?), int?displayOrder = default(int?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string))
 {
     this.Name           = name;
     this.Price          = price;
     this.IsAvailable    = isAvailable;
     this.DisplayOrder   = displayOrder;
     this.CellLayoutType = cellLayoutType;
     this.ImageUrl       = imageUrl;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateFullMenuItemOptionSet" /> class.
 /// </summary>
 /// <param name="menuItemOptionSetId">Menu item option set identifier.</param>
 /// <param name="menuItemOptionSetItems">Option set items.</param>
 /// <param name="name">Menu item option set name.</param>
 /// <param name="isMasterOptionSet">Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\&quot;with ketchup\&quot;) or modifier (\&quot;large\&quot;)..</param>
 /// <param name="displayOrder">Display order. Displayed in ascending order..</param>
 /// <param name="minSelectCount">Minimum items must be selected.</param>
 /// <param name="maxSelectCount">Maximum number of items can be selected.</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 public CreateFullMenuItemOptionSet(int?menuItemOptionSetId = default(int?), List <CreateFullMenuItemOptionSetItem> menuItemOptionSetItems = default(List <CreateFullMenuItemOptionSetItem>), string name = default(string), bool?isMasterOptionSet = default(bool?), int?displayOrder = default(int?), int?minSelectCount = default(int?), int?maxSelectCount = default(int?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?))
 {
     this.MenuItemOptionSetId    = menuItemOptionSetId;
     this.MenuItemOptionSetItems = menuItemOptionSetItems;
     this.Name = name;
     this.IsMasterOptionSet = isMasterOptionSet;
     this.DisplayOrder      = displayOrder;
     this.MinSelectCount    = minSelectCount;
     this.MaxSelectCount    = maxSelectCount;
     this.CellLayoutType    = cellLayoutType;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductItem" /> class.
 /// </summary>
 /// <param name="productId">Product Id to the product to add as Menu Item (required).</param>
 /// <param name="cellLayoutType">Small | Medium | Large | HiddenImage  Affects the layout of the menu..</param>
 public ProductItem(string productId = default(string), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?))
 {
     // to ensure "productId" is required (not null)
     if (productId == null)
     {
         throw new InvalidDataException("productId is a required property for ProductItem and cannot be null");
     }
     else
     {
         this.ProductId = productId;
     }
     this.CellLayoutType = cellLayoutType;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuCatalogItem" /> class.
 /// </summary>
 /// <param name="catalogItemId">Product Id to the product to add as Menu Item (required).</param>
 /// <param name="cellLayoutType">Small | Medium | Large | HiddenImage  Affects the layout of the menu..</param>
 public MenuCatalogItem(string catalogItemId = default(string), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?))
 {
     // to ensure "catalogItemId" is required (not null)
     if (catalogItemId == null)
     {
         throw new InvalidDataException("catalogItemId is a required property for MenuCatalogItem and cannot be null");
     }
     else
     {
         this.CatalogItemId = catalogItemId;
     }
     this.CellLayoutType = cellLayoutType;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateFullMenuItemOptionSetItem" /> class.
 /// </summary>
 /// <param name="menuItemOptionSetItemId">Menu item option set item identifier.</param>
 /// <param name="metadata">List of metadata.</param>
 /// <param name="taxRateName">Tax rate name.</param>
 /// <param name="nextMenuItemOptionSetId">if null, next option set is next. if -1, this is the final option set.</param>
 /// <param name="name">Name.</param>
 /// <param name="price">Price.</param>
 /// <param name="isAvailable">Is available.</param>
 /// <param name="displayOrder">Display order. Displayed in ascending order..</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 /// <param name="imageUrl">Image url.</param>
 public CreateFullMenuItemOptionSetItem(int?menuItemOptionSetItemId = default(int?), List <CreateMetadata> metadata = default(List <CreateMetadata>), string taxRateName = default(string), int?nextMenuItemOptionSetId = default(int?), string name = default(string), double?price = default(double?), bool?isAvailable = default(bool?), int?displayOrder = default(int?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string))
 {
     this.MenuItemOptionSetItemId = menuItemOptionSetItemId;
     this.Metadata                = metadata;
     this.TaxRateName             = taxRateName;
     this.NextMenuItemOptionSetId = nextMenuItemOptionSetId;
     this.Name           = name;
     this.Price          = price;
     this.IsAvailable    = isAvailable;
     this.DisplayOrder   = displayOrder;
     this.CellLayoutType = cellLayoutType;
     this.ImageUrl       = imageUrl;
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuItemOptionSet" /> class.
 /// </summary>
 /// <param name="menuItemOptionSetId">Menu item option set identifier.</param>
 /// <param name="imageName">Image Name.</param>
 /// <param name="imageUrl">Image url.</param>
 /// <param name="menuItemOptionSetItems">Option set items.</param>
 /// <param name="publicId">Permanent reference to the item..</param>
 /// <param name="catalogItemId">Catalog item Id when the OptionSet is associated to a Product.</param>
 /// <param name="name">Menu item option set name.</param>
 /// <param name="isMasterOptionSet">Is master option set. This can affect the layout of the options in the menu displayed to the customer. Usually it is true if the option could be considerd a standalone item as opposed to an addition (\&quot;with ketchup\&quot;) or modifier (\&quot;large\&quot;)..</param>
 /// <param name="displayOrder">Display order. Displayed in ascending order..</param>
 /// <param name="minSelectCount">Minimum items must be selected.</param>
 /// <param name="maxSelectCount">Maximum number of items can be selected.</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 public MenuItemOptionSet(int?menuItemOptionSetId = default(int?), string imageName = default(string), string imageUrl = default(string), List <MenuItemOptionSetItem> menuItemOptionSetItems = default(List <MenuItemOptionSetItem>), Guid?publicId = default(Guid?), string catalogItemId = default(string), string name = default(string), bool?isMasterOptionSet = default(bool?), int?displayOrder = default(int?), int?minSelectCount = default(int?), int?maxSelectCount = default(int?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?))
 {
     this.MenuItemOptionSetId    = menuItemOptionSetId;
     this.ImageName              = imageName;
     this.ImageUrl               = imageUrl;
     this.MenuItemOptionSetItems = menuItemOptionSetItems;
     this.PublicId               = publicId;
     this.CatalogItemId          = catalogItemId;
     this.Name = name;
     this.IsMasterOptionSet = isMasterOptionSet;
     this.DisplayOrder      = displayOrder;
     this.MinSelectCount    = minSelectCount;
     this.MaxSelectCount    = maxSelectCount;
     this.CellLayoutType    = cellLayoutType;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuSectionItemBase" /> class.
 /// </summary>
 /// <param name="name">Menu item name (like \&quot;Korma\&quot;).</param>
 /// <param name="description">Description (like \&quot;A lovely dish from the east\&quot;).</param>
 /// <param name="spicinessRating">Spiciness rating.</param>
 /// <param name="price">Price - this is only used when there is no master option set and should be set to 0 if a master option set exists..</param>
 /// <param name="displayOrder">Display order.</param>
 /// <param name="alcohol">To be set true if the item or an option of the item contains an alcoholic drink..</param>
 /// <param name="isAvailable">True if we accept orders for this item still.</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 /// <param name="disableVouchers">If true, then vouchers won&#39;t be applied for this item.</param>
 /// <param name="imageName">Image url.</param>
 /// <param name="imageUrl">Image url.</param>
 /// <param name="menuItemId">Menu Item Id.</param>
 public MenuSectionItemBase(string name = default(string), string description = default(string), SpicinessRatingEnum?spicinessRating = default(SpicinessRatingEnum?), double?price = default(double?), int?displayOrder = default(int?), bool?alcohol = default(bool?), bool?isAvailable = default(bool?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?), bool?disableVouchers = default(bool?), string imageName = default(string), string imageUrl = default(string), int?menuItemId = default(int?))
 {
     this.Name            = name;
     this.Description     = description;
     this.SpicinessRating = spicinessRating;
     this.Price           = price;
     this.DisplayOrder    = displayOrder;
     this.Alcohol         = alcohol;
     this.IsAvailable     = isAvailable;
     this.CellLayoutType  = cellLayoutType;
     this.DisableVouchers = disableVouchers;
     this.ImageName       = imageName;
     this.ImageUrl        = imageUrl;
     this.MenuItemId      = menuItemId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateFullMenuSectionItem" /> class.
 /// </summary>
 /// <param name="menuItemOptionSets">Menu item option sets.</param>
 /// <param name="metadata">List of metadata.</param>
 /// <param name="taxRateName">Tax rate name.</param>
 /// <param name="name">Menu item name (like \&quot;Korma\&quot;).</param>
 /// <param name="description">Description (like \&quot;A lovely dish from the east\&quot;).</param>
 /// <param name="spicinessRating">Spiciness rating.</param>
 /// <param name="price">Price - this is only used when there is no master option set and should be set to 0 if a master option set exists..</param>
 /// <param name="displayOrder">Display order.</param>
 /// <param name="alcohol">To be set true if the item or an option of the item contains an alcoholic drink..</param>
 /// <param name="isAvailable">True if we accept orders for this item still.</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 /// <param name="disableVouchers">If true, then vouchers won&#39;t be applied for this item.</param>
 /// <param name="imageName">Image url.</param>
 /// <param name="imageUrl">Image url.</param>
 /// <param name="menuItemId">Menu Item Id.</param>
 public CreateFullMenuSectionItem(List <CreateFullMenuItemOptionSet> menuItemOptionSets = default(List <CreateFullMenuItemOptionSet>), List <CreateMetadata> metadata = default(List <CreateMetadata>), string taxRateName = default(string), string name = default(string), string description = default(string), SpicinessRatingEnum?spicinessRating = default(SpicinessRatingEnum?), double?price = default(double?), int?displayOrder = default(int?), bool?alcohol = default(bool?), bool?isAvailable = default(bool?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?), bool?disableVouchers = default(bool?), string imageName = default(string), string imageUrl = default(string), int?menuItemId = default(int?))
 {
     this.MenuItemOptionSets = menuItemOptionSets;
     this.Metadata           = metadata;
     this.TaxRateName        = taxRateName;
     this.Name            = name;
     this.Description     = description;
     this.SpicinessRating = spicinessRating;
     this.Price           = price;
     this.DisplayOrder    = displayOrder;
     this.Alcohol         = alcohol;
     this.IsAvailable     = isAvailable;
     this.CellLayoutType  = cellLayoutType;
     this.DisableVouchers = disableVouchers;
     this.ImageName       = imageName;
     this.ImageUrl        = imageUrl;
     this.MenuItemId      = menuItemId;
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuSectionItem" /> class.
 /// </summary>
 /// <param name="menuItemId">Menu item identifier. This ID may change at any time. Use &#x60;PublicId&#x60; if you need a permanent reference to the item..</param>
 /// <param name="actualPrice">Actual price - the minimum price possible when all required option set items prices are included..</param>
 /// <param name="menuItemOptionSets">Menu item option sets.</param>
 /// <param name="dailySpecialHours">Daily special hours.</param>
 /// <param name="publicId">Permanent reference to the item..</param>
 /// <param name="taxRateName">Tax rate name.</param>
 /// <param name="taxRateId">TaxRate.</param>
 /// <param name="taxValue">TaxValue - the tax associated with this item, based on TaxRate / TaxType and Currency (currency determines decimal point precision).</param>
 /// <param name="metadata">List of metadata.</param>
 /// <param name="catalogItemId">Catalog item Id when the Item is associated to a Product.</param>
 /// <param name="name">Menu item name (like \&quot;Korma\&quot;).</param>
 /// <param name="description">Description (like \&quot;A lovely dish from the east\&quot;).</param>
 /// <param name="spicinessRating">Spiciness rating.</param>
 /// <param name="price">Price - this is only used when there is no master option set and should be set to 0 if a master option set exists..</param>
 /// <param name="displayOrder">Display order.</param>
 /// <param name="alcohol">To be set true if the item or an option of the item contains an alcoholic drink..</param>
 /// <param name="isAvailable">True if we accept orders for this item still.</param>
 /// <param name="cellLayoutType">Small | Medium | Large  Affects the layout of the menu..</param>
 /// <param name="disableVouchers">If true, then vouchers won&#39;t be applied for this item.</param>
 /// <param name="imageName">Image url.</param>
 /// <param name="imageUrl">Image url.</param>
 public MenuSectionItem(int?menuItemId = default(int?), double?actualPrice = default(double?), List <MenuItemOptionSet> menuItemOptionSets = default(List <MenuItemOptionSet>), List <BusinessHoursPeriod> dailySpecialHours = default(List <BusinessHoursPeriod>), Guid?publicId = default(Guid?), string taxRateName = default(string), int?taxRateId = default(int?), double?taxValue = default(double?), List <CreateMetadata> metadata = default(List <CreateMetadata>), string catalogItemId = default(string), string name = default(string), string description = default(string), SpicinessRatingEnum?spicinessRating = default(SpicinessRatingEnum?), double?price = default(double?), int?displayOrder = default(int?), bool?alcohol = default(bool?), bool?isAvailable = default(bool?), CellLayoutTypeEnum?cellLayoutType = default(CellLayoutTypeEnum?), bool?disableVouchers = default(bool?), string imageName = default(string), string imageUrl = default(string))
 {
     this.MenuItemId         = menuItemId;
     this.ActualPrice        = actualPrice;
     this.MenuItemOptionSets = menuItemOptionSets;
     this.DailySpecialHours  = dailySpecialHours;
     this.PublicId           = publicId;
     this.TaxRateName        = taxRateName;
     this.TaxRateId          = taxRateId;
     this.TaxValue           = taxValue;
     this.Metadata           = metadata;
     this.CatalogItemId      = catalogItemId;
     this.Name            = name;
     this.Description     = description;
     this.SpicinessRating = spicinessRating;
     this.Price           = price;
     this.DisplayOrder    = displayOrder;
     this.Alcohol         = alcohol;
     this.IsAvailable     = isAvailable;
     this.CellLayoutType  = cellLayoutType;
     this.DisableVouchers = disableVouchers;
     this.ImageName       = imageName;
     this.ImageUrl        = imageUrl;
 }