Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CatalogObject"/> class.
 /// </summary>
 /// <param name="type">type.</param>
 /// <param name="id">id.</param>
 /// <param name="updatedAt">updated_at.</param>
 /// <param name="version">version.</param>
 /// <param name="isDeleted">is_deleted.</param>
 /// <param name="customAttributeValues">custom_attribute_values.</param>
 /// <param name="catalogV1Ids">catalog_v1_ids.</param>
 /// <param name="presentAtAllLocations">present_at_all_locations.</param>
 /// <param name="presentAtLocationIds">present_at_location_ids.</param>
 /// <param name="absentAtLocationIds">absent_at_location_ids.</param>
 /// <param name="imageId">image_id.</param>
 /// <param name="itemData">item_data.</param>
 /// <param name="categoryData">category_data.</param>
 /// <param name="itemVariationData">item_variation_data.</param>
 /// <param name="taxData">tax_data.</param>
 /// <param name="discountData">discount_data.</param>
 /// <param name="modifierListData">modifier_list_data.</param>
 /// <param name="modifierData">modifier_data.</param>
 /// <param name="timePeriodData">time_period_data.</param>
 /// <param name="productSetData">product_set_data.</param>
 /// <param name="pricingRuleData">pricing_rule_data.</param>
 /// <param name="imageData">image_data.</param>
 /// <param name="measurementUnitData">measurement_unit_data.</param>
 /// <param name="subscriptionPlanData">subscription_plan_data.</param>
 /// <param name="itemOptionData">item_option_data.</param>
 /// <param name="itemOptionValueData">item_option_value_data.</param>
 /// <param name="customAttributeDefinitionData">custom_attribute_definition_data.</param>
 /// <param name="quickAmountsSettingsData">quick_amounts_settings_data.</param>
 public CatalogObject(
     string type,
     string id,
     string updatedAt = null,
     long?version     = null,
     bool?isDeleted   = null,
     IDictionary <string, Models.CatalogCustomAttributeValue> customAttributeValues = null,
     IList <Models.CatalogV1Id> catalogV1Ids = null,
     bool?presentAtAllLocations          = null,
     IList <string> presentAtLocationIds = null,
     IList <string> absentAtLocationIds  = null,
     string imageId = null,
     Models.CatalogItem itemData                   = null,
     Models.CatalogCategory categoryData           = null,
     Models.CatalogItemVariation itemVariationData = null,
     Models.CatalogTax taxData                           = null,
     Models.CatalogDiscount discountData                 = null,
     Models.CatalogModifierList modifierListData         = null,
     Models.CatalogModifier modifierData                 = null,
     Models.CatalogTimePeriod timePeriodData             = null,
     Models.CatalogProductSet productSetData             = null,
     Models.CatalogPricingRule pricingRuleData           = null,
     Models.CatalogImage imageData                       = null,
     Models.CatalogMeasurementUnit measurementUnitData   = null,
     Models.CatalogSubscriptionPlan subscriptionPlanData = null,
     Models.CatalogItemOption itemOptionData             = null,
     Models.CatalogItemOptionValue itemOptionValueData   = null,
     Models.CatalogCustomAttributeDefinition customAttributeDefinitionData = null,
     Models.CatalogQuickAmountsSettings quickAmountsSettingsData           = null)
 {
     this.Type                          = type;
     this.Id                            = id;
     this.UpdatedAt                     = updatedAt;
     this.Version                       = version;
     this.IsDeleted                     = isDeleted;
     this.CustomAttributeValues         = customAttributeValues;
     this.CatalogV1Ids                  = catalogV1Ids;
     this.PresentAtAllLocations         = presentAtAllLocations;
     this.PresentAtLocationIds          = presentAtLocationIds;
     this.AbsentAtLocationIds           = absentAtLocationIds;
     this.ImageId                       = imageId;
     this.ItemData                      = itemData;
     this.CategoryData                  = categoryData;
     this.ItemVariationData             = itemVariationData;
     this.TaxData                       = taxData;
     this.DiscountData                  = discountData;
     this.ModifierListData              = modifierListData;
     this.ModifierData                  = modifierData;
     this.TimePeriodData                = timePeriodData;
     this.ProductSetData                = productSetData;
     this.PricingRuleData               = pricingRuleData;
     this.ImageData                     = imageData;
     this.MeasurementUnitData           = measurementUnitData;
     this.SubscriptionPlanData          = subscriptionPlanData;
     this.ItemOptionData                = itemOptionData;
     this.ItemOptionValueData           = itemOptionValueData;
     this.CustomAttributeDefinitionData = customAttributeDefinitionData;
     this.QuickAmountsSettingsData      = quickAmountsSettingsData;
 }
Ejemplo n.º 2
0
 public CatalogObject(string type,
                      string id,
                      string updatedAt = null,
                      long?version     = null,
                      bool?isDeleted   = null,
                      IDictionary <string, Models.CatalogCustomAttributeValue> customAttributeValues = null,
                      IList <Models.CatalogV1Id> catalogV1Ids = null,
                      bool?presentAtAllLocations          = null,
                      IList <string> presentAtLocationIds = null,
                      IList <string> absentAtLocationIds  = null,
                      string imageId = null,
                      Models.CatalogItem itemData                   = null,
                      Models.CatalogCategory categoryData           = null,
                      Models.CatalogItemVariation itemVariationData = null,
                      Models.CatalogTax taxData                         = null,
                      Models.CatalogDiscount discountData               = null,
                      Models.CatalogModifierList modifierListData       = null,
                      Models.CatalogModifier modifierData               = null,
                      Models.CatalogTimePeriod timePeriodData           = null,
                      Models.CatalogProductSet productSetData           = null,
                      Models.CatalogPricingRule pricingRuleData         = null,
                      Models.CatalogImage imageData                     = null,
                      Models.CatalogMeasurementUnit measurementUnitData = null,
                      Models.CatalogItemOption itemOptionData           = null,
                      Models.CatalogItemOptionValue itemOptionValueData = null,
                      Models.CatalogCustomAttributeDefinition customAttributeDefinitionData = null)
 {
     Type                          = type;
     Id                            = id;
     UpdatedAt                     = updatedAt;
     Version                       = version;
     IsDeleted                     = isDeleted;
     CustomAttributeValues         = customAttributeValues;
     CatalogV1Ids                  = catalogV1Ids;
     PresentAtAllLocations         = presentAtAllLocations;
     PresentAtLocationIds          = presentAtLocationIds;
     AbsentAtLocationIds           = absentAtLocationIds;
     ImageId                       = imageId;
     ItemData                      = itemData;
     CategoryData                  = categoryData;
     ItemVariationData             = itemVariationData;
     TaxData                       = taxData;
     DiscountData                  = discountData;
     ModifierListData              = modifierListData;
     ModifierData                  = modifierData;
     TimePeriodData                = timePeriodData;
     ProductSetData                = productSetData;
     PricingRuleData               = pricingRuleData;
     ImageData                     = imageData;
     MeasurementUnitData           = measurementUnitData;
     ItemOptionData                = itemOptionData;
     ItemOptionValueData           = itemOptionValueData;
     CustomAttributeDefinitionData = customAttributeDefinitionData;
 }
Ejemplo n.º 3
0
 public Builder TaxData(Models.CatalogTax value)
 {
     taxData = value;
     return(this);
 }
Ejemplo n.º 4
0
 public Builder TaxData(Models.CatalogTax taxData)
 {
     this.taxData = taxData;
     return(this);
 }