| | 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.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. To use |
| | 30 | | /// the URL, append query parameters as appropriate and include the |
| | 31 | | /// Ocp-Apim-Subscription-Key header.</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 | | public Offer(string id = default(string), string readLink = default(string), string webSearchUrl = default(strin |
| 0 | 76 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId) |
| | 77 | | { |
| 0 | 78 | | Seller = seller; |
| 0 | 79 | | Price = price; |
| 0 | 80 | | PriceCurrency = priceCurrency; |
| 0 | 81 | | Availability = availability; |
| 0 | 82 | | AggregateRating = aggregateRating; |
| 0 | 83 | | LastUpdated = lastUpdated; |
| | 84 | | CustomInit(); |
| 0 | 85 | | } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// An initialization method that performs custom operations like setting defaults |
| | 89 | | /// </summary> |
| | 90 | | partial void CustomInit(); |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets seller for this offer. |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "seller")] |
| 0 | 96 | | public Organization Seller { get; private set; } |
| | 97 | |
|
| | 98 | | /// <summary> |
| | 99 | | /// Gets the item's price. |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "price")] |
| 0 | 102 | | public double? Price { get; private set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets the monetary currency. For example, USD. Possible values |
| | 106 | | /// include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', 'JPY', 'CNY', 'AUD', |
| | 107 | | /// 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AWG', |
| | 108 | | /// 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', |
| | 109 | | /// 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CDF', |
| | 110 | | /// 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', 'CRC', 'CUC', 'CUP', |
| | 111 | | /// 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', |
| | 112 | | /// 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', |
| | 113 | | /// 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IQD', 'IRR', |
| | 114 | | /// 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', |
| | 115 | | /// 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', |
| | 116 | | /// 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', |
| | 117 | | /// 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', |
| | 118 | | /// 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', |
| | 119 | | /// 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', |
| | 120 | | /// 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', |
| | 121 | | /// 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', |
| | 122 | | /// 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', 'UZS', 'VEF', 'VND', |
| | 123 | | /// 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW' |
| | 124 | | /// </summary> |
| | 125 | | [JsonProperty(PropertyName = "priceCurrency")] |
| 0 | 126 | | public string PriceCurrency { get; private set; } |
| | 127 | |
|
| | 128 | | /// <summary> |
| | 129 | | /// Gets the item's availability. The following are the possible |
| | 130 | | /// values: Discontinued, InStock, InStoreOnly, LimitedAvailability, |
| | 131 | | /// OnlineOnly, OutOfStock, PreOrder, SoldOut. Possible values include: |
| | 132 | | /// 'Discontinued', 'InStock', 'InStoreOnly', 'LimitedAvailability', |
| | 133 | | /// 'OnlineOnly', 'OutOfStock', 'PreOrder', 'SoldOut' |
| | 134 | | /// </summary> |
| | 135 | | [JsonProperty(PropertyName = "availability")] |
| 0 | 136 | | public string Availability { get; private set; } |
| | 137 | |
|
| | 138 | | /// <summary> |
| | 139 | | /// Gets an aggregated rating that indicates how well the product has |
| | 140 | | /// been rated by others. |
| | 141 | | /// </summary> |
| | 142 | | [JsonProperty(PropertyName = "aggregateRating")] |
| 0 | 143 | | public AggregateRating AggregateRating { get; private set; } |
| | 144 | |
|
| | 145 | | /// <summary> |
| | 146 | | /// Gets the last date that the offer was updated. The date is in the |
| | 147 | | /// form YYYY-MM-DD. |
| | 148 | | /// </summary> |
| | 149 | | [JsonProperty(PropertyName = "lastUpdated")] |
| 0 | 150 | | public string LastUpdated { get; private set; } |
| | 151 | |
|
| | 152 | | } |
| | 153 | | } |