Skip to content

Commit 9d0bfd1

Browse files
committed
fix #527 , Update all order API
1 parent 78e512c commit 9d0bfd1

File tree

80 files changed

+6386
-356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+6386
-356
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/BoxContentsSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
1010

11+
using Newtonsoft.Json;
1112
using Newtonsoft.Json.Converters;
1213
using System.Runtime.Serialization;
13-
using System.Text.Json.Serialization;
1414

1515
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound
1616
{

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/ErrorReason.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
1010

11+
using Newtonsoft.Json;
1112
using Newtonsoft.Json.Converters;
1213
using System.Runtime.Serialization;
13-
using System.Text.Json.Serialization;
1414

1515
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound
1616
{

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/InboundGuidance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
1010

11+
using Newtonsoft.Json;
1112
using Newtonsoft.Json.Converters;
1213
using System.Runtime.Serialization;
13-
using System.Text.Json.Serialization;
1414

1515
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound
1616
{

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/PrepGuidance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
1010

11+
using Newtonsoft.Json;
1112
using Newtonsoft.Json.Converters;
1213
using System.Runtime.Serialization;
13-
using System.Text.Json.Serialization;
1414

1515
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound
1616
{

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Notifications/AggregationTimePeriod.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using Newtonsoft.Json.Converters;
1+
using Newtonsoft.Json;
2+
using Newtonsoft.Json.Converters;
23
using System.Runtime.Serialization;
3-
using System.Text.Json.Serialization;
44

55
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.Notifications
66
{

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Orders/Address.cs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -60,42 +60,42 @@ public Address() { }
6060
/// <summary>
6161
/// Initializes a new instance of the <see cref="Address" /> class.
6262
/// </summary>
63-
/// <param name="Name">The name. (required).</param>
64-
/// <param name="AddressLine1">The street address..</param>
65-
/// <param name="AddressLine2">Additional street address information, if required..</param>
66-
/// <param name="AddressLine3">Additional street address information, if required..</param>
67-
/// <param name="City">The city .</param>
68-
/// <param name="County">The county..</param>
69-
/// <param name="District">The district..</param>
70-
/// <param name="StateOrRegion">The state or region..</param>
71-
/// <param name="Municipality">The municipality..</param>
72-
/// <param name="PostalCode">The postal code..</param>
73-
/// <param name="CountryCode">The country code. A two-character country code, in ISO 3166-1 alpha-2 format..</param>
74-
/// <param name="Phone">The phone number. Not returned for Fulfillment by Amazon (FBA) orders..</param>
75-
/// <param name="AddressType">The address type of the shipping address..</param>
76-
public Address(string Name = default(string), string AddressLine1 = default(string), string AddressLine2 = default(string), string AddressLine3 = default(string), string City = default(string), string County = default(string), string District = default(string), string StateOrRegion = default(string), string Municipality = default(string), string PostalCode = default(string), string CountryCode = default(string), string Phone = default(string), AddressTypeEnum? AddressType = default(AddressTypeEnum?))
63+
/// <param name="name">The name. (required).</param>
64+
/// <param name="addressLine1">The street address..</param>
65+
/// <param name="addressLine2">Additional street address information, if required..</param>
66+
/// <param name="addressLine3">Additional street address information, if required..</param>
67+
/// <param name="city">The city .</param>
68+
/// <param name="county">The county..</param>
69+
/// <param name="district">The district..</param>
70+
/// <param name="stateOrRegion">The state or region..</param>
71+
/// <param name="municipality">The municipality..</param>
72+
/// <param name="postalCode">The postal code..</param>
73+
/// <param name="countryCode">The country code. A two-character country code, in ISO 3166-1 alpha-2 format..</param>
74+
/// <param name="phone">The phone number. Not returned for Fulfillment by Amazon (FBA) orders..</param>
75+
/// <param name="addressType">The address type of the shipping address..</param>
76+
public Address(string name = default(string), string addressLine1 = default(string), string addressLine2 = default(string), string addressLine3 = default(string), string city = default(string), string county = default(string), string district = default(string), string stateOrRegion = default(string), string municipality = default(string), string postalCode = default(string), string countryCode = default(string), string phone = default(string), AddressTypeEnum? addressType = default(AddressTypeEnum?))
7777
{
78-
// to ensure "Name" is required (not null)
79-
if (Name == null)
78+
// to ensure "name" is required (not null)
79+
if (name == null)
8080
{
81-
throw new InvalidDataException("Name is a required property for Address and cannot be null");
81+
throw new InvalidDataException("name is a required property for Address and cannot be null");
8282
}
8383
else
8484
{
85-
this.Name = Name;
85+
this.Name = name;
8686
}
87-
this.AddressLine1 = AddressLine1;
88-
this.AddressLine2 = AddressLine2;
89-
this.AddressLine3 = AddressLine3;
90-
this.City = City;
91-
this.County = County;
92-
this.District = District;
93-
this.StateOrRegion = StateOrRegion;
94-
this.Municipality = Municipality;
95-
this.PostalCode = PostalCode;
96-
this.CountryCode = CountryCode;
97-
this.Phone = Phone;
98-
this.AddressType = AddressType;
87+
this.AddressLine1 = addressLine1;
88+
this.AddressLine2 = addressLine2;
89+
this.AddressLine3 = addressLine3;
90+
this.City = city;
91+
this.County = county;
92+
this.District = district;
93+
this.StateOrRegion = stateOrRegion;
94+
this.Municipality = municipality;
95+
this.PostalCode = postalCode;
96+
this.CountryCode = countryCode;
97+
this.Phone = phone;
98+
this.AddressType = addressType;
9999
}
100100

101101
/// <summary>
@@ -212,7 +212,7 @@ public override string ToString()
212212
/// Returns the JSON string presentation of the object
213213
/// </summary>
214214
/// <returns>JSON string presentation of the object</returns>
215-
public string ToJson()
215+
public virtual string ToJson()
216216
{
217217
return JsonConvert.SerializeObject(this, Formatting.Indented);
218218
}
@@ -355,4 +355,4 @@ public override int GetHashCode()
355355
}
356356
}
357357

358-
}
358+
}
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.ComponentModel.DataAnnotations;
5+
using System.IO;
6+
using System.Runtime.Serialization;
7+
using System.Text;
8+
9+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.Orders
10+
{
11+
/// <summary>
12+
/// &lt;Name, Value&gt; tuple to define item approval support data elements.
13+
/// </summary>
14+
[DataContract]
15+
public partial class ApprovalSupportDataElement : IEquatable<ApprovalSupportDataElement>, IValidatableObject
16+
{
17+
/// <summary>
18+
/// Initializes a new instance of the <see cref="ApprovalSupportDataElement" /> class.
19+
/// </summary>
20+
[JsonConstructorAttribute]
21+
protected ApprovalSupportDataElement() { }
22+
/// <summary>
23+
/// Initializes a new instance of the <see cref="ApprovalSupportDataElement" /> class.
24+
/// </summary>
25+
/// <param name="name">Name of the approval support element. Allowed names are defined in specific approval types schemas. (required).</param>
26+
/// <param name="value">String value of the approval support element. (required).</param>
27+
public ApprovalSupportDataElement(string name = default(string), string value = default(string))
28+
{
29+
// to ensure "name" is required (not null)
30+
if (name == null)
31+
{
32+
throw new InvalidDataException("name is a required property for ApprovalSupportDataElement and cannot be null");
33+
}
34+
else
35+
{
36+
this.Name = name;
37+
}
38+
// to ensure "value" is required (not null)
39+
if (value == null)
40+
{
41+
throw new InvalidDataException("value is a required property for ApprovalSupportDataElement and cannot be null");
42+
}
43+
else
44+
{
45+
this.Value = value;
46+
}
47+
}
48+
49+
/// <summary>
50+
/// Name of the approval support element. Allowed names are defined in specific approval types schemas.
51+
/// </summary>
52+
/// <value>Name of the approval support element. Allowed names are defined in specific approval types schemas.</value>
53+
[DataMember(Name = "Name", EmitDefaultValue = false)]
54+
public string Name { get; set; }
55+
56+
/// <summary>
57+
/// String value of the approval support element.
58+
/// </summary>
59+
/// <value>String value of the approval support element.</value>
60+
[DataMember(Name = "Value", EmitDefaultValue = false)]
61+
public string Value { get; set; }
62+
63+
/// <summary>
64+
/// Returns the string presentation of the object
65+
/// </summary>
66+
/// <returns>String presentation of the object</returns>
67+
public override string ToString()
68+
{
69+
var sb = new StringBuilder();
70+
sb.Append("class ApprovalSupportDataElement {\n");
71+
sb.Append(" Name: ").Append(Name).Append("\n");
72+
sb.Append(" Value: ").Append(Value).Append("\n");
73+
sb.Append("}\n");
74+
return sb.ToString();
75+
}
76+
77+
/// <summary>
78+
/// Returns the JSON string presentation of the object
79+
/// </summary>
80+
/// <returns>JSON string presentation of the object</returns>
81+
public virtual string ToJson()
82+
{
83+
return JsonConvert.SerializeObject(this, Formatting.Indented);
84+
}
85+
86+
/// <summary>
87+
/// Returns true if objects are equal
88+
/// </summary>
89+
/// <param name="input">Object to be compared</param>
90+
/// <returns>Boolean</returns>
91+
public override bool Equals(object input)
92+
{
93+
return this.Equals(input as ApprovalSupportDataElement);
94+
}
95+
96+
/// <summary>
97+
/// Returns true if ApprovalSupportDataElement instances are equal
98+
/// </summary>
99+
/// <param name="input">Instance of ApprovalSupportDataElement to be compared</param>
100+
/// <returns>Boolean</returns>
101+
public bool Equals(ApprovalSupportDataElement input)
102+
{
103+
if (input == null)
104+
return false;
105+
106+
return
107+
(
108+
this.Name == input.Name ||
109+
(this.Name != null &&
110+
this.Name.Equals(input.Name))
111+
) &&
112+
(
113+
this.Value == input.Value ||
114+
(this.Value != null &&
115+
this.Value.Equals(input.Value))
116+
);
117+
}
118+
119+
/// <summary>
120+
/// Gets the hash code
121+
/// </summary>
122+
/// <returns>Hash code</returns>
123+
public override int GetHashCode()
124+
{
125+
unchecked // Overflow is fine, just wrap
126+
{
127+
int hashCode = 41;
128+
if (this.Name != null)
129+
hashCode = hashCode * 59 + this.Name.GetHashCode();
130+
if (this.Value != null)
131+
hashCode = hashCode * 59 + this.Value.GetHashCode();
132+
return hashCode;
133+
}
134+
}
135+
136+
/// <summary>
137+
/// To validate all properties of the instance
138+
/// </summary>
139+
/// <param name="validationContext">Validation context</param>
140+
/// <returns>Validation Result</returns>
141+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
142+
{
143+
yield break;
144+
}
145+
}
146+
147+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.ComponentModel.DataAnnotations;
5+
using System.Runtime.Serialization;
6+
using System.Text;
7+
8+
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.Orders
9+
{
10+
/// <summary>
11+
/// List of additional data elements supporting the approval process. Check the applicable restrictions at the specific approval type schemas.
12+
/// </summary>
13+
[DataContract]
14+
public partial class ApprovalSupportDataElementList : List<ApprovalSupportDataElement>, IEquatable<ApprovalSupportDataElementList>, IValidatableObject
15+
{
16+
/// <summary>
17+
/// Initializes a new instance of the <see cref="ApprovalSupportDataElementList" /> class.
18+
/// </summary>
19+
[JsonConstructorAttribute]
20+
public ApprovalSupportDataElementList() : base()
21+
{
22+
}
23+
24+
/// <summary>
25+
/// Returns the string presentation of the object
26+
/// </summary>
27+
/// <returns>String presentation of the object</returns>
28+
public override string ToString()
29+
{
30+
var sb = new StringBuilder();
31+
sb.Append("class ApprovalSupportDataElementList {\n");
32+
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
33+
sb.Append("}\n");
34+
return sb.ToString();
35+
}
36+
37+
/// <summary>
38+
/// Returns the JSON string presentation of the object
39+
/// </summary>
40+
/// <returns>JSON string presentation of the object</returns>
41+
public string ToJson()
42+
{
43+
return JsonConvert.SerializeObject(this, Formatting.Indented);
44+
}
45+
46+
/// <summary>
47+
/// Returns true if objects are equal
48+
/// </summary>
49+
/// <param name="input">Object to be compared</param>
50+
/// <returns>Boolean</returns>
51+
public override bool Equals(object input)
52+
{
53+
return this.Equals(input as ApprovalSupportDataElementList);
54+
}
55+
56+
/// <summary>
57+
/// Returns true if ApprovalSupportDataElementList instances are equal
58+
/// </summary>
59+
/// <param name="input">Instance of ApprovalSupportDataElementList to be compared</param>
60+
/// <returns>Boolean</returns>
61+
public bool Equals(ApprovalSupportDataElementList input)
62+
{
63+
if (input == null)
64+
return false;
65+
66+
return base.Equals(input);
67+
}
68+
69+
/// <summary>
70+
/// Gets the hash code
71+
/// </summary>
72+
/// <returns>Hash code</returns>
73+
public override int GetHashCode()
74+
{
75+
unchecked // Overflow is fine, just wrap
76+
{
77+
int hashCode = base.GetHashCode();
78+
return hashCode;
79+
}
80+
}
81+
82+
/// <summary>
83+
/// To validate all properties of the instance
84+
/// </summary>
85+
/// <param name="validationContext">Validation context</param>
86+
/// <returns>Validation Result</returns>
87+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
88+
{
89+
yield break;
90+
}
91+
}
92+
93+
}

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Orders/AutomatedShippingSettings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,5 @@ public override int GetHashCode()
138138
yield break;
139139
}
140140
}
141-
}
141+
142+
}

0 commit comments

Comments
 (0)