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