|
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 { |
| 5 | +namespace FikaAmazonAPI.AmazonSpApiSDK.Models.ShippingV2 |
| 6 | +{ |
9 | 7 |
|
10 | | - /// <summary> |
11 | | - /// The response schema for the getAdditionalInputs operation. |
12 | | - /// </summary> |
13 | | - [DataContract] |
14 | | - public class GetAdditionalInputsResponse { |
15 | 8 | /// <summary> |
16 | | - /// Gets or Sets Payload |
| 9 | + /// The response schema for the getAdditionalInputs operation. |
17 | 10 | /// </summary> |
18 | | - [DataMember(Name="payload", EmitDefaultValue=false)] |
19 | | - [JsonProperty(PropertyName = "payload")] |
20 | | - public GetAdditionalInputsResult Payload { get; set; } |
| 11 | + [DataContract] |
| 12 | + public class GetAdditionalInputsResponse |
| 13 | + { |
| 14 | + /// <summary> |
| 15 | + /// Gets or Sets Payload |
| 16 | + /// See: https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-reference#getadditionalinputsresponse |
| 17 | + /// </summary> |
| 18 | + [DataMember(Name = "payload", EmitDefaultValue = false)] |
| 19 | + [JsonProperty(PropertyName = "payload", Required = Required.AllowNull, NullValueHandling = NullValueHandling.Ignore)] |
| 20 | + public GetAdditionalInputsResult Payload { get; set; } |
21 | 21 |
|
22 | 22 |
|
23 | | - /// <summary> |
24 | | - /// Get the string presentation of the object |
25 | | - /// </summary> |
26 | | - /// <returns>String presentation of the object</returns> |
27 | | - public override string ToString() { |
28 | | - var sb = new StringBuilder(); |
29 | | - sb.Append("class GetAdditionalInputsResponse {\n"); |
30 | | - sb.Append(" Payload: ").Append(Payload).Append("\n"); |
31 | | - sb.Append("}\n"); |
32 | | - return sb.ToString(); |
33 | | - } |
| 23 | + /// <summary> |
| 24 | + /// Get the string presentation of the object |
| 25 | + /// </summary> |
| 26 | + /// <returns>String presentation of the object</returns> |
| 27 | + public override string ToString() |
| 28 | + { |
| 29 | + var sb = new StringBuilder(); |
| 30 | + sb.Append("class GetAdditionalInputsResponse {\n"); |
| 31 | + sb.Append(" Payload: ").Append(Payload).Append("\n"); |
| 32 | + sb.Append("}\n"); |
| 33 | + return sb.ToString(); |
| 34 | + } |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// Get the JSON string presentation of the object |
| 38 | + /// </summary> |
| 39 | + /// <returns>JSON string presentation of the object</returns> |
| 40 | + public string ToJson() |
| 41 | + { |
| 42 | + return JsonConvert.SerializeObject(this, Formatting.Indented); |
| 43 | + } |
34 | 44 |
|
35 | | - /// <summary> |
36 | | - /// Get the JSON string presentation of the object |
37 | | - /// </summary> |
38 | | - /// <returns>JSON string presentation of the object</returns> |
39 | | - public string ToJson() { |
40 | | - return JsonConvert.SerializeObject(this, Formatting.Indented); |
41 | 45 | } |
42 | 46 |
|
43 | 47 | } |
44 | | -} |
|
0 commit comments