|
1 |
| -using System; |
2 |
| -using System.Text; |
3 |
| -using System.Collections; |
4 |
| -using System.Collections.Generic; |
5 |
| -using System.Runtime.Serialization; |
6 | 1 | using Newtonsoft.Json;
|
| 2 | +using System.Runtime.Serialization; |
| 3 | +using System.Text; |
7 | 4 |
|
8 |
| -namespace FikaAmazonAPI.AmazonSpApiSDK.Models.ShippingV2 { |
9 |
| - |
10 |
| - /// <summary> |
11 |
| - /// The payload for the getRates operation. |
12 |
| - /// </summary> |
13 |
| - [DataContract] |
14 |
| - public class GetRatesResult { |
15 |
| - /// <summary> |
16 |
| - /// Gets or Sets RequestToken |
17 |
| - /// </summary> |
18 |
| - [DataMember(Name="requestToken", EmitDefaultValue=false)] |
19 |
| - [JsonProperty(PropertyName = "requestToken")] |
20 |
| - public RequestToken RequestToken { get; set; } |
21 |
| - |
22 |
| - /// <summary> |
23 |
| - /// Gets or Sets Rates |
24 |
| - /// </summary> |
25 |
| - [DataMember(Name="rates", EmitDefaultValue=false)] |
26 |
| - [JsonProperty(PropertyName = "rates")] |
27 |
| - public RateList Rates { get; set; } |
28 |
| - |
29 |
| - /// <summary> |
30 |
| - /// Gets or Sets IneligibleRates |
31 |
| - /// </summary> |
32 |
| - [DataMember(Name="ineligibleRates", EmitDefaultValue=false)] |
33 |
| - [JsonProperty(PropertyName = "ineligibleRates")] |
34 |
| - public IneligibleRateList IneligibleRates { get; set; } |
35 |
| - |
| 5 | +namespace FikaAmazonAPI.AmazonSpApiSDK.Models.ShippingV2 |
| 6 | +{ |
36 | 7 |
|
37 | 8 | /// <summary>
|
38 |
| - /// Get the string presentation of the object |
| 9 | + /// The payload for the getRates operation. |
39 | 10 | /// </summary>
|
40 |
| - /// <returns>String presentation of the object</returns> |
41 |
| - public override string ToString() { |
42 |
| - var sb = new StringBuilder(); |
43 |
| - sb.Append("class GetRatesResult {\n"); |
44 |
| - sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); |
45 |
| - sb.Append(" Rates: ").Append(Rates).Append("\n"); |
46 |
| - sb.Append(" IneligibleRates: ").Append(IneligibleRates).Append("\n"); |
47 |
| - sb.Append("}\n"); |
48 |
| - return sb.ToString(); |
49 |
| - } |
| 11 | + [DataContract] |
| 12 | + public class GetRatesResult |
| 13 | + { |
| 14 | + /// <summary> |
| 15 | + /// Gets or Sets RequestToken |
| 16 | + /// </summary> |
| 17 | + [DataMember(Name = "requestToken", EmitDefaultValue = false)] |
| 18 | + [JsonProperty(PropertyName = "requestToken")] |
| 19 | + public string RequestToken { get; set; } |
| 20 | + |
| 21 | + /// <summary> |
| 22 | + /// Gets or Sets Rates |
| 23 | + /// </summary> |
| 24 | + [DataMember(Name = "rates", EmitDefaultValue = false)] |
| 25 | + [JsonProperty(PropertyName = "rates")] |
| 26 | + public RateList Rates { get; set; } |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// Gets or Sets IneligibleRates |
| 30 | + /// </summary> |
| 31 | + [DataMember(Name = "ineligibleRates", EmitDefaultValue = false)] |
| 32 | + [JsonProperty(PropertyName = "ineligibleRates")] |
| 33 | + public IneligibleRateList IneligibleRates { get; set; } |
| 34 | + |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// Get the string presentation of the object |
| 38 | + /// </summary> |
| 39 | + /// <returns>String presentation of the object</returns> |
| 40 | + public override string ToString() |
| 41 | + { |
| 42 | + var sb = new StringBuilder(); |
| 43 | + sb.Append("class GetRatesResult {\n"); |
| 44 | + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); |
| 45 | + sb.Append(" Rates: ").Append(Rates).Append("\n"); |
| 46 | + sb.Append(" IneligibleRates: ").Append(IneligibleRates).Append("\n"); |
| 47 | + sb.Append("}\n"); |
| 48 | + return sb.ToString(); |
| 49 | + } |
| 50 | + |
| 51 | + /// <summary> |
| 52 | + /// Get the JSON string presentation of the object |
| 53 | + /// </summary> |
| 54 | + /// <returns>JSON string presentation of the object</returns> |
| 55 | + public string ToJson() |
| 56 | + { |
| 57 | + return JsonConvert.SerializeObject(this, Formatting.Indented); |
| 58 | + } |
50 | 59 |
|
51 |
| - /// <summary> |
52 |
| - /// Get the JSON string presentation of the object |
53 |
| - /// </summary> |
54 |
| - /// <returns>JSON string presentation of the object</returns> |
55 |
| - public string ToJson() { |
56 |
| - return JsonConvert.SerializeObject(this, Formatting.Indented); |
57 | 60 | }
|
58 |
| - |
59 |
| -} |
60 | 61 | }
|
0 commit comments