コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1UpdateCategoryRequest" /> class.
 /// </summary>
 /// <param name="Body">An object containing the fields to POST for the request.  See the corresponding object definition for field details. (required).</param>
 public V1UpdateCategoryRequest(V1Category Body = default(V1Category))
 {
     // to ensure "Body" is required (not null)
     if (Body == null)
     {
         throw new InvalidDataException("Body is a required property for V1UpdateCategoryRequest and cannot be null");
     }
     else
     {
         this.Body = Body;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Item" /> class.
 /// </summary>
 /// <param name="Id">The item&#39;s ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_)..</param>
 /// <param name="Name">The item&#39;s name..</param>
 /// <param name="Description">The item&#39;s description..</param>
 /// <param name="Type">The item&#39;s type. This value is NORMAL for almost all items. See [V1ItemType](#type-v1itemtype) for possible values.</param>
 /// <param name="Color">The color of the discount&#39;s display label in Square Register, if not the default color. The default color is 9da2a6. See [V1ItemColor](#type-v1itemcolor) for possible values.</param>
 /// <param name="Abbreviation">The text of the item&#39;s display label in Square Register. Only up to the first five characters of the string are used..</param>
 /// <param name="Visibility">Indicates whether the item is viewable from the merchant&#39;s online store (PUBLIC) or PRIVATE. See [V1ItemVisibility](#type-v1itemvisibility) for possible values.</param>
 /// <param name="AvailableOnline">If true, the item can be added to shipping orders from the merchant&#39;s online store..</param>
 /// <param name="MasterImage">The item&#39;s master image, if any..</param>
 /// <param name="Category">The category the item belongs to, if any..</param>
 /// <param name="Variations">The item&#39;s variations. You must specify at least one variation..</param>
 /// <param name="ModifierLists">The modifier lists that apply to the item, if any..</param>
 /// <param name="Fees">The fees that apply to the item, if any..</param>
 /// <param name="Taxable">Deprecated. This field is not used..</param>
 /// <param name="CategoryId">The ID of the item&#39;s category, if any..</param>
 /// <param name="AvailableForPickup">If true, the item can be added to pickup orders from the merchant&#39;s online store. Default value: false.</param>
 /// <param name="V2Id">The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID..</param>
 public V1Item(string Id = default(string), string Name = default(string), string Description = default(string), string Type = default(string), string Color = default(string), string Abbreviation = default(string), string Visibility = default(string), bool?AvailableOnline = default(bool?), V1ItemImage MasterImage = default(V1ItemImage), V1Category Category = default(V1Category), List <V1Variation> Variations = default(List <V1Variation>), List <V1ModifierList> ModifierLists = default(List <V1ModifierList>), List <V1Fee> Fees = default(List <V1Fee>), bool?Taxable = default(bool?), string CategoryId = default(string), bool?AvailableForPickup = default(bool?), string V2Id = default(string))
 {
     this.Id                 = Id;
     this.Name               = Name;
     this.Description        = Description;
     this.Type               = Type;
     this.Color              = Color;
     this.Abbreviation       = Abbreviation;
     this.Visibility         = Visibility;
     this.AvailableOnline    = AvailableOnline;
     this.MasterImage        = MasterImage;
     this.Category           = Category;
     this.Variations         = Variations;
     this.ModifierLists      = ModifierLists;
     this.Fees               = Fees;
     this.Taxable            = Taxable;
     this.CategoryId         = CategoryId;
     this.AvailableForPickup = AvailableForPickup;
     this.V2Id               = V2Id;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1CreateCategoryRequest" /> class.
 /// </summary>
 /// <param name="Body">An object containing the fields to POST for the request.  See the corresponding object definition for field details..</param>
 public V1CreateCategoryRequest(V1Category Body = default(V1Category))
 {
     this.Body = Body;
 }
コード例 #4
0
ファイル: V1Item.cs プロジェクト: mingster/connect-csharp-sdk
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Item" /> class.
 /// </summary>
 /// <param name="Id">The item&#39;s ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_)..</param>
 /// <param name="Name">The item&#39;s name..</param>
 /// <param name="Description">The item&#39;s description..</param>
 /// <param name="Type">The item&#39;s type. This value is NORMAL for almost all items..</param>
 /// <param name="Color">The color of the discount&#39;s display label in Square Register, if not the default color. The default color is 9da2a6..</param>
 /// <param name="Abbreviation">The text of the item&#39;s display label in Square Register. Only up to the first five characters of the string are used..</param>
 /// <param name="Visibility">Indicates whether the item is viewable from the merchant&#39;s online store (PUBLIC) or PRIVATE..</param>
 /// <param name="AvailableOnline">If true, the item can be added to shipping orders from the merchant&#39;s online store..</param>
 /// <param name="MasterImage">The item&#39;s master image, if any..</param>
 /// <param name="Category">The category the item belongs to, if any..</param>
 /// <param name="Variations">The item&#39;s variations. You must specify at least one variation..</param>
 /// <param name="ModifierLists">The modifier lists that apply to the item, if any..</param>
 /// <param name="Fees">The fees that apply to the item, if any..</param>
 /// <param name="Taxable">Deprecated. This field is not used..</param>
 public V1Item(string Id = default(string), string Name = default(string), string Description = default(string), TypeEnum?Type = default(TypeEnum?), ColorEnum?Color = default(ColorEnum?), string Abbreviation = default(string), VisibilityEnum?Visibility = default(VisibilityEnum?), bool?AvailableOnline = default(bool?), V1ItemImage MasterImage = default(V1ItemImage), V1Category Category = default(V1Category), List <V1Variation> Variations = default(List <V1Variation>), List <V1Variation> ModifierLists = default(List <V1Variation>), List <V1Fee> Fees = default(List <V1Fee>), bool?Taxable = default(bool?))
 {
     this.Id              = Id;
     this.Name            = Name;
     this.Description     = Description;
     this.Type            = Type;
     this.Color           = Color;
     this.Abbreviation    = Abbreviation;
     this.Visibility      = Visibility;
     this.AvailableOnline = AvailableOnline;
     this.MasterImage     = MasterImage;
     this.Category        = Category;
     this.Variations      = Variations;
     this.ModifierLists   = ModifierLists;
     this.Fees            = Fees;
     this.Taxable         = Taxable;
 }