| | 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.Linq; |
| | 11 | |
|
| | 12 | | /// <summary> |
| | 13 | | /// Defines a merchant's offer. |
| | 14 | | /// </summary> |
| | 15 | | public partial class Offer : Thing |
| | 16 | | { |
| | 17 | | /// <summary> |
| | 18 | | /// Initializes a new instance of the Offer class. |
| | 19 | | /// </summary> |
| 0 | 20 | | public Offer() |
| | 21 | | { |
| | 22 | | CustomInit(); |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Initializes a new instance of the Offer class. |
| | 27 | | /// </summary> |
| | 28 | | /// <param name="id">A String identifier.</param> |
| | 29 | | /// <param name="readLink">The URL that returns this resource.</param> |
| | 30 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 31 | | /// item.</param> |
| | 32 | | /// <param name="name">The name of the thing represented by this |
| | 33 | | /// object.</param> |
| | 34 | | /// <param name="url">The URL to get more information about the thing |
| | 35 | | /// represented by this object.</param> |
| | 36 | | /// <param name="image">An image of the item.</param> |
| | 37 | | /// <param name="description">A short description of the item.</param> |
| | 38 | | /// <param name="alternateName">An alias for the item</param> |
| | 39 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 40 | | /// item.</param> |
| | 41 | | /// <param name="seller">Seller for this offer</param> |
| | 42 | | /// <param name="price">The item's price.</param> |
| | 43 | | /// <param name="priceCurrency">The monetary currency. For example, |
| | 44 | | /// USD. Possible values include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', |
| | 45 | | /// 'JPY', 'CNY', 'AUD', 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', |
| | 46 | | /// 'AOA', 'ARS', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', |
| | 47 | | /// 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', |
| | 48 | | /// 'BYR', 'BZD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', |
| | 49 | | /// 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', |
| | 50 | | /// 'EGP', 'ERN', 'ETB', 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', |
| | 51 | | /// 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', |
| | 52 | | /// 'ILS', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', |
| | 53 | | /// 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', |
| | 54 | | /// 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', |
| | 55 | | /// 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', |
| | 56 | | /// 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', |
| | 57 | | /// 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', |
| | 58 | | /// 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', |
| | 59 | | /// 'SOS', 'SRD', 'SSP', 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', |
| | 60 | | /// 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', |
| | 61 | | /// 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', |
| | 62 | | /// 'YER', 'ZAR', 'ZMW'</param> |
| | 63 | | /// <param name="availability">The item's availability. The following |
| | 64 | | /// are the possible values: Discontinued, InStock, InStoreOnly, |
| | 65 | | /// LimitedAvailability, OnlineOnly, OutOfStock, PreOrder, SoldOut. |
| | 66 | | /// Possible values include: 'Discontinued', 'InStock', 'InStoreOnly', |
| | 67 | | /// 'LimitedAvailability', 'OnlineOnly', 'OutOfStock', 'PreOrder', |
| | 68 | | /// 'SoldOut'</param> |
| | 69 | | /// <param name="aggregateRating">An aggregated rating that indicates |
| | 70 | | /// how well the product has been rated by others.</param> |
| | 71 | | /// <param name="lastUpdated">The last date that the offer was updated. |
| | 72 | | /// The date is in the form YYYY-MM-DD.</param> |
| | 73 | | public Offer(string id = default(string), string readLink = default(string), string webSearchUrl = default(strin |
| 0 | 74 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId) |
| | 75 | | { |
| 0 | 76 | | Seller = seller; |
| 0 | 77 | | Price = price; |
| 0 | 78 | | PriceCurrency = priceCurrency; |
| 0 | 79 | | Availability = availability; |
| 0 | 80 | | AggregateRating = aggregateRating; |
| 0 | 81 | | LastUpdated = lastUpdated; |
| | 82 | | CustomInit(); |
| 0 | 83 | | } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// An initialization method that performs custom operations like setting defaults |
| | 87 | | /// </summary> |
| | 88 | | partial void CustomInit(); |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets seller for this offer |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "seller")] |
| 0 | 94 | | public Organization Seller { get; private set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets the item's price. |
| | 98 | | /// </summary> |
| | 99 | | [JsonProperty(PropertyName = "price")] |
| 0 | 100 | | public double? Price { get; private set; } |
| | 101 | |
|
| | 102 | | /// <summary> |
| | 103 | | /// Gets the monetary currency. For example, USD. Possible values |
| | 104 | | /// include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', 'JPY', 'CNY', 'AUD', |
| | 105 | | /// 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AWG', |
| | 106 | | /// 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', |
| | 107 | | /// 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CDF', |
| | 108 | | /// 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', 'CRC', 'CUC', 'CUP', |
| | 109 | | /// 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', |
| | 110 | | /// 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', |
| | 111 | | /// 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IQD', 'IRR', |
| | 112 | | /// 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', |
| | 113 | | /// 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', |
| | 114 | | /// 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', |
| | 115 | | /// 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', |
| | 116 | | /// 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', |
| | 117 | | /// 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', |
| | 118 | | /// 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', |
| | 119 | | /// 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', |
| | 120 | | /// 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', 'UZS', 'VEF', 'VND', |
| | 121 | | /// 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW' |
| | 122 | | /// </summary> |
| | 123 | | [JsonProperty(PropertyName = "priceCurrency")] |
| 0 | 124 | | public string PriceCurrency { get; private set; } |
| | 125 | |
|
| | 126 | | /// <summary> |
| | 127 | | /// Gets the item's availability. The following are the possible |
| | 128 | | /// values: Discontinued, InStock, InStoreOnly, LimitedAvailability, |
| | 129 | | /// OnlineOnly, OutOfStock, PreOrder, SoldOut. Possible values include: |
| | 130 | | /// 'Discontinued', 'InStock', 'InStoreOnly', 'LimitedAvailability', |
| | 131 | | /// 'OnlineOnly', 'OutOfStock', 'PreOrder', 'SoldOut' |
| | 132 | | /// </summary> |
| | 133 | | [JsonProperty(PropertyName = "availability")] |
| 0 | 134 | | public string Availability { get; private set; } |
| | 135 | |
|
| | 136 | | /// <summary> |
| | 137 | | /// Gets an aggregated rating that indicates how well the product has |
| | 138 | | /// been rated by others. |
| | 139 | | /// </summary> |
| | 140 | | [JsonProperty(PropertyName = "aggregateRating")] |
| 0 | 141 | | public AggregateRating AggregateRating { get; private set; } |
| | 142 | |
|
| | 143 | | /// <summary> |
| | 144 | | /// Gets the last date that the offer was updated. The date is in the |
| | 145 | | /// form YYYY-MM-DD. |
| | 146 | | /// </summary> |
| | 147 | | [JsonProperty(PropertyName = "lastUpdated")] |
| 0 | 148 | | public string LastUpdated { get; private set; } |
| | 149 | |
|
| | 150 | | } |
| | 151 | | } |