| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.Search.VisualSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Defines a list of offers from merchants that are related to the image. |
| | 16 | | /// </summary> |
| | 17 | | public partial class AggregateOffer : Offer |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the AggregateOffer class. |
| | 21 | | /// </summary> |
| 0 | 22 | | public AggregateOffer() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 0 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the AggregateOffer class. |
| | 29 | | /// </summary> |
| | 30 | | /// <param name="id">A String identifier.</param> |
| | 31 | | /// <param name="readLink">The URL that returns this resource. To use |
| | 32 | | /// the URL, append query parameters as appropriate and include the |
| | 33 | | /// Ocp-Apim-Subscription-Key header.</param> |
| | 34 | | /// <param name="webSearchUrl">The URL to Bing's search result for this |
| | 35 | | /// item.</param> |
| | 36 | | /// <param name="name">The name of the thing represented by this |
| | 37 | | /// object.</param> |
| | 38 | | /// <param name="url">The URL to get more information about the thing |
| | 39 | | /// represented by this object.</param> |
| | 40 | | /// <param name="image">An image of the item.</param> |
| | 41 | | /// <param name="description">A short description of the item.</param> |
| | 42 | | /// <param name="alternateName">An alias for the item.</param> |
| | 43 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 44 | | /// item.</param> |
| | 45 | | /// <param name="seller">Seller for this offer.</param> |
| | 46 | | /// <param name="price">The item's price.</param> |
| | 47 | | /// <param name="priceCurrency">The monetary currency. For example, |
| | 48 | | /// USD. Possible values include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', |
| | 49 | | /// 'JPY', 'CNY', 'AUD', 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', |
| | 50 | | /// 'AOA', 'ARS', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', |
| | 51 | | /// 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', |
| | 52 | | /// 'BYR', 'BZD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', |
| | 53 | | /// 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', |
| | 54 | | /// 'EGP', 'ERN', 'ETB', 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', |
| | 55 | | /// 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', |
| | 56 | | /// 'ILS', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', |
| | 57 | | /// 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', |
| | 58 | | /// 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', |
| | 59 | | /// 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', |
| | 60 | | /// 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', |
| | 61 | | /// 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', |
| | 62 | | /// 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', |
| | 63 | | /// 'SOS', 'SRD', 'SSP', 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', |
| | 64 | | /// 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', |
| | 65 | | /// 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', |
| | 66 | | /// 'YER', 'ZAR', 'ZMW'</param> |
| | 67 | | /// <param name="availability">The item's availability. The following |
| | 68 | | /// are the possible values: Discontinued, InStock, InStoreOnly, |
| | 69 | | /// LimitedAvailability, OnlineOnly, OutOfStock, PreOrder, SoldOut. |
| | 70 | | /// Possible values include: 'Discontinued', 'InStock', 'InStoreOnly', |
| | 71 | | /// 'LimitedAvailability', 'OnlineOnly', 'OutOfStock', 'PreOrder', |
| | 72 | | /// 'SoldOut'</param> |
| | 73 | | /// <param name="aggregateRating">An aggregated rating that indicates |
| | 74 | | /// how well the product has been rated by others.</param> |
| | 75 | | /// <param name="lastUpdated">The last date that the offer was updated. |
| | 76 | | /// The date is in the form YYYY-MM-DD.</param> |
| | 77 | | /// <param name="offers">A list of offers from merchants that have |
| | 78 | | /// offerings related to the image.</param> |
| | 79 | | public AggregateOffer(string id = default(string), string readLink = default(string), string webSearchUrl = defa |
| 0 | 80 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, seller, price, pric |
| | 81 | | { |
| 0 | 82 | | Offers = offers; |
| | 83 | | CustomInit(); |
| 0 | 84 | | } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// An initialization method that performs custom operations like setting defaults |
| | 88 | | /// </summary> |
| | 89 | | partial void CustomInit(); |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets a list of offers from merchants that have offerings related to |
| | 93 | | /// the image. |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "offers")] |
| 0 | 96 | | public IList<Offer> Offers { get; private set; } |
| | 97 | |
|
| | 98 | | } |
| | 99 | | } |