Skip to content

Commit 3bb0eb0

Browse files
committed
2 parents b8fdb09 + cba16b2 commit 3bb0eb0

23 files changed

+677
-404
lines changed

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

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Address() { }
4242
/// <param name="CountryCode">Recipient&#39;s country code. (required).</param>
4343
/// <param name="PostalCode">The postal code (required for shipments to the U.S.)..</param>
4444
/// <param name="PhoneNumber">Recipient&#39;s phone number..</param>
45-
public Address(string Name = default(string), string Line1 = default(string), string Line2 = default(string), string Line3 = default(string), string DistrictOrCounty = default(string), string City = default(string), string StateOrProvinceCode = default(string), string CountryCode = default(string), string PostalCode = default(string), string PhoneNumber = default(string))
45+
public Address(string Name = default(string), string AddressLine1 = default(string), string AddressLine2 = default(string), string AddressLine3 = default(string), string DistrictOrCounty = default(string), string City = default(string), string StateOrRegion = default(string), string CountryCode = default(string), string PostalCode = default(string), string Phone = default(string))
4646
{
4747
// to ensure "Name" is required (not null)
4848
if (Name == null)
@@ -54,22 +54,22 @@ public Address() { }
5454
this.Name = Name;
5555
}
5656
// to ensure "Line1" is required (not null)
57-
if (Line1 == null)
57+
if (AddressLine1 == null)
5858
{
5959
throw new InvalidDataException("Line1 is a required property for Address and cannot be null");
6060
}
6161
else
6262
{
63-
this.Line1 = Line1;
63+
this.AddressLine1 = AddressLine1;
6464
}
6565
// to ensure "StateOrProvinceCode" is required (not null)
66-
if (StateOrProvinceCode == null)
66+
if (StateOrRegion == null)
6767
{
68-
throw new InvalidDataException("StateOrProvinceCode is a required property for Address and cannot be null");
68+
throw new InvalidDataException("StateOrRegion is a required property for Address and cannot be null");
6969
}
7070
else
7171
{
72-
this.StateOrProvinceCode = StateOrProvinceCode;
72+
this.StateOrRegion = StateOrRegion;
7373
}
7474
// to ensure "CountryCode" is required (not null)
7575
if (CountryCode == null)
@@ -80,83 +80,83 @@ public Address() { }
8080
{
8181
this.CountryCode = CountryCode;
8282
}
83-
this.Line2 = Line2;
84-
this.Line3 = Line3;
83+
this.AddressLine2 = AddressLine2;
84+
this.AddressLine3 = AddressLine3;
8585
this.DistrictOrCounty = DistrictOrCounty;
8686
this.City = City;
8787
this.PostalCode = PostalCode;
88-
this.PhoneNumber = PhoneNumber;
88+
this.Phone = Phone;
8989
}
9090

9191
/// <summary>
9292
/// Recipient&#39;s name.
9393
/// </summary>
9494
/// <value>Recipient&#39;s name.</value>
95-
[DataMember(Name = "Name", EmitDefaultValue = false)]
95+
[DataMember(Name = "name", EmitDefaultValue = false)]
9696
public string Name { get; set; }
9797

9898
/// <summary>
9999
/// Recipient&#39;s street address information.
100100
/// </summary>
101101
/// <value>Recipient&#39;s street address information.</value>
102-
[DataMember(Name = "Line1", EmitDefaultValue = false)]
103-
public string Line1 { get; set; }
102+
[DataMember(Name = "addressLine1", EmitDefaultValue = false)]
103+
public string AddressLine1 { get; set; }
104104

105105
/// <summary>
106106
/// Additional street address information, if required.
107107
/// </summary>
108108
/// <value>Additional street address information, if required.</value>
109-
[DataMember(Name = "Line2", EmitDefaultValue = false)]
110-
public string Line2 { get; set; }
109+
[DataMember(Name = "addressLine2", EmitDefaultValue = false)]
110+
public string AddressLine2 { get; set; }
111111

112112
/// <summary>
113113
/// Additional street address information, if required.
114114
/// </summary>
115115
/// <value>Additional street address information, if required.</value>
116-
[DataMember(Name = "Line3", EmitDefaultValue = false)]
117-
public string Line3 { get; set; }
116+
[DataMember(Name = "addressLine3", EmitDefaultValue = false)]
117+
public string AddressLine3 { get; set; }
118118

119119
/// <summary>
120120
/// Recipient&#39;s district or county.
121121
/// </summary>
122122
/// <value>Recipient&#39;s district or county.</value>
123-
[DataMember(Name = "DistrictOrCounty", EmitDefaultValue = false)]
123+
[DataMember(Name = "districtOrCounty", EmitDefaultValue = false)]
124124
public string DistrictOrCounty { get; set; }
125125

126126
/// <summary>
127127
/// Recipient&#39;s city.
128128
/// </summary>
129129
/// <value>Recipient&#39;s city.</value>
130-
[DataMember(Name = "City", EmitDefaultValue = false)]
130+
[DataMember(Name = "city", EmitDefaultValue = false)]
131131
public string City { get; set; }
132132

133133
/// <summary>
134134
/// Recipient&#39;s state or province code.
135135
/// </summary>
136136
/// <value>Recipient&#39;s state or province code.</value>
137-
[DataMember(Name = "StateOrProvinceCode", EmitDefaultValue = false)]
138-
public string StateOrProvinceCode { get; set; }
137+
[DataMember(Name = "stateOrRegion", EmitDefaultValue = false)]
138+
public string StateOrRegion { get; set; }
139139

140140
/// <summary>
141141
/// Recipient&#39;s country code.
142142
/// </summary>
143143
/// <value>Recipient&#39;s country code.</value>
144-
[DataMember(Name = "CountryCode", EmitDefaultValue = false)]
144+
[DataMember(Name = "countryCode", EmitDefaultValue = false)]
145145
public string CountryCode { get; set; }
146146

147147
/// <summary>
148148
/// The postal code (required for shipments to the U.S.).
149149
/// </summary>
150150
/// <value>The postal code (required for shipments to the U.S.).</value>
151-
[DataMember(Name = "PostalCode", EmitDefaultValue = false)]
151+
[DataMember(Name = "postalCode", EmitDefaultValue = false)]
152152
public string PostalCode { get; set; }
153153

154154
/// <summary>
155155
/// Recipient&#39;s phone number.
156156
/// </summary>
157157
/// <value>Recipient&#39;s phone number.</value>
158-
[DataMember(Name = "PhoneNumber", EmitDefaultValue = false)]
159-
public string PhoneNumber { get; set; }
158+
[DataMember(Name = "phone", EmitDefaultValue = false)]
159+
public string Phone { get; set; }
160160

161161
/// <summary>
162162
/// Returns the string presentation of the object
@@ -167,15 +167,15 @@ public override string ToString()
167167
var sb = new StringBuilder();
168168
sb.Append("class Address {\n");
169169
sb.Append(" Name: ").Append(Name).Append("\n");
170-
sb.Append(" Line1: ").Append(Line1).Append("\n");
171-
sb.Append(" Line2: ").Append(Line2).Append("\n");
172-
sb.Append(" Line3: ").Append(Line3).Append("\n");
170+
sb.Append(" AddressLine1: ").Append(AddressLine1).Append("\n");
171+
sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n");
172+
sb.Append(" AddressLine3: ").Append(AddressLine3).Append("\n");
173173
sb.Append(" DistrictOrCounty: ").Append(DistrictOrCounty).Append("\n");
174174
sb.Append(" City: ").Append(City).Append("\n");
175-
sb.Append(" StateOrProvinceCode: ").Append(StateOrProvinceCode).Append("\n");
175+
sb.Append(" StateOrRegion: ").Append(StateOrRegion).Append("\n");
176176
sb.Append(" CountryCode: ").Append(CountryCode).Append("\n");
177177
sb.Append(" PostalCode: ").Append(PostalCode).Append("\n");
178-
sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n");
178+
sb.Append(" Phone: ").Append(Phone).Append("\n");
179179
sb.Append("}\n");
180180
return sb.ToString();
181181
}
@@ -216,19 +216,19 @@ public bool Equals(Address input)
216216
this.Name.Equals(input.Name))
217217
) &&
218218
(
219-
this.Line1 == input.Line1 ||
220-
(this.Line1 != null &&
221-
this.Line1.Equals(input.Line1))
219+
this.AddressLine1 == input.AddressLine1 ||
220+
(this.AddressLine1 != null &&
221+
this.AddressLine1.Equals(input.AddressLine1))
222222
) &&
223223
(
224-
this.Line2 == input.Line2 ||
225-
(this.Line2 != null &&
226-
this.Line2.Equals(input.Line2))
224+
this.AddressLine2 == input.AddressLine2 ||
225+
(this.AddressLine2 != null &&
226+
this.AddressLine2.Equals(input.AddressLine2))
227227
) &&
228228
(
229-
this.Line3 == input.Line3 ||
230-
(this.Line3 != null &&
231-
this.Line3.Equals(input.Line3))
229+
this.AddressLine3 == input.AddressLine3 ||
230+
(this.AddressLine3 != null &&
231+
this.AddressLine3.Equals(input.AddressLine3))
232232
) &&
233233
(
234234
this.DistrictOrCounty == input.DistrictOrCounty ||
@@ -241,9 +241,9 @@ public bool Equals(Address input)
241241
this.City.Equals(input.City))
242242
) &&
243243
(
244-
this.StateOrProvinceCode == input.StateOrProvinceCode ||
245-
(this.StateOrProvinceCode != null &&
246-
this.StateOrProvinceCode.Equals(input.StateOrProvinceCode))
244+
this.StateOrRegion == input.StateOrRegion ||
245+
(this.StateOrRegion != null &&
246+
this.StateOrRegion.Equals(input.StateOrRegion))
247247
) &&
248248
(
249249
this.CountryCode == input.CountryCode ||
@@ -256,9 +256,9 @@ public bool Equals(Address input)
256256
this.PostalCode.Equals(input.PostalCode))
257257
) &&
258258
(
259-
this.PhoneNumber == input.PhoneNumber ||
260-
(this.PhoneNumber != null &&
261-
this.PhoneNumber.Equals(input.PhoneNumber))
259+
this.Phone == input.Phone ||
260+
(this.Phone != null &&
261+
this.Phone.Equals(input.Phone))
262262
);
263263
}
264264

@@ -273,24 +273,24 @@ public override int GetHashCode()
273273
int hashCode = 41;
274274
if (this.Name != null)
275275
hashCode = hashCode * 59 + this.Name.GetHashCode();
276-
if (this.Line1 != null)
277-
hashCode = hashCode * 59 + this.Line1.GetHashCode();
278-
if (this.Line2 != null)
279-
hashCode = hashCode * 59 + this.Line2.GetHashCode();
280-
if (this.Line3 != null)
281-
hashCode = hashCode * 59 + this.Line3.GetHashCode();
276+
if (this.AddressLine1 != null)
277+
hashCode = hashCode * 59 + this.AddressLine1.GetHashCode();
278+
if (this.AddressLine2 != null)
279+
hashCode = hashCode * 59 + this.AddressLine2.GetHashCode();
280+
if (this.AddressLine3 != null)
281+
hashCode = hashCode * 59 + this.AddressLine3.GetHashCode();
282282
if (this.DistrictOrCounty != null)
283283
hashCode = hashCode * 59 + this.DistrictOrCounty.GetHashCode();
284284
if (this.City != null)
285285
hashCode = hashCode * 59 + this.City.GetHashCode();
286-
if (this.StateOrProvinceCode != null)
287-
hashCode = hashCode * 59 + this.StateOrProvinceCode.GetHashCode();
286+
if (this.StateOrRegion != null)
287+
hashCode = hashCode * 59 + this.StateOrRegion.GetHashCode();
288288
if (this.CountryCode != null)
289289
hashCode = hashCode * 59 + this.CountryCode.GetHashCode();
290290
if (this.PostalCode != null)
291291
hashCode = hashCode * 59 + this.PostalCode.GetHashCode();
292-
if (this.PhoneNumber != null)
293-
hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode();
292+
if (this.Phone != null)
293+
hashCode = hashCode * 59 + this.Phone.GetHashCode();
294294
return hashCode;
295295
}
296296
}
@@ -309,19 +309,19 @@ public override int GetHashCode()
309309
}
310310

311311
// Line1 (string) maxLength
312-
if (this.Line1 != null && this.Line1.Length > 60)
312+
if (this.AddressLine1 != null && this.AddressLine1.Length > 60)
313313
{
314314
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Line1, length must be less than 60.", new[] { "Line1" });
315315
}
316316

317317
// Line2 (string) maxLength
318-
if (this.Line2 != null && this.Line2.Length > 60)
318+
if (this.AddressLine2 != null && this.AddressLine2.Length > 60)
319319
{
320320
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Line2, length must be less than 60.", new[] { "Line2" });
321321
}
322322

323323
// Line3 (string) maxLength
324-
if (this.Line3 != null && this.Line3.Length > 60)
324+
if (this.AddressLine3 != null && this.AddressLine3.Length > 60)
325325
{
326326
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Line3, length must be less than 60.", new[] { "Line3" });
327327
}
@@ -339,9 +339,9 @@ public override int GetHashCode()
339339
}
340340

341341
// StateOrProvinceCode (string) maxLength
342-
if (this.StateOrProvinceCode != null && this.StateOrProvinceCode.Length > 150)
342+
if (this.StateOrRegion != null && this.StateOrRegion.Length > 150)
343343
{
344-
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StateOrProvinceCode, length must be less than 150.", new[] { "StateOrProvinceCode" });
344+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StateOrRegion, length must be less than 150.", new[] { "StateOrProvinceCode" });
345345
}
346346

347347
// CountryCode (string) maxLength
@@ -357,9 +357,9 @@ public override int GetHashCode()
357357
}
358358

359359
// PhoneNumber (string) maxLength
360-
if (this.PhoneNumber != null && this.PhoneNumber.Length > 20)
360+
if (this.Phone != null && this.Phone.Length > 20)
361361
{
362-
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than 20.", new[] { "PhoneNumber" });
362+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Phone, length must be less than 20.", new[] { "PhoneNumber" });
363363
}
364364

365365
yield break;

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentOutbound/CreateFulfillmentOrderItem.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,62 +82,62 @@ public CreateFulfillmentOrderItem() { }
8282
/// The seller SKU of the item.
8383
/// </summary>
8484
/// <value>The seller SKU of the item.</value>
85-
[DataMember(Name = "SellerSKU", EmitDefaultValue = false)]
85+
[DataMember(Name = "sellerSku", EmitDefaultValue = false)]
8686
public string SellerSKU { get; set; }
8787

8888
/// <summary>
8989
/// A fulfillment order item identifier that the seller creates to track fulfillment order items. Used to disambiguate multiple fulfillment items that have the same seller SKU. For example, the seller might assign different SellerFulfillmentOrderItemId values to two items in a fulfillment order that share the same seller SKU but have different GiftMessage values.
9090
/// </summary>
9191
/// <value>A fulfillment order item identifier that the seller creates to track fulfillment order items. Used to disambiguate multiple fulfillment items that have the same seller SKU. For example, the seller might assign different SellerFulfillmentOrderItemId values to two items in a fulfillment order that share the same seller SKU but have different GiftMessage values.</value>
92-
[DataMember(Name = "SellerFulfillmentOrderItemId", EmitDefaultValue = false)]
92+
[DataMember(Name = "sellerFulfillmentOrderItemId", EmitDefaultValue = false)]
9393
public string SellerFulfillmentOrderItemId { get; set; }
9494

9595
/// <summary>
9696
/// Gets or Sets Quantity
9797
/// </summary>
98-
[DataMember(Name = "Quantity", EmitDefaultValue = false)]
98+
[DataMember(Name = "quantity", EmitDefaultValue = false)]
9999
public int Quantity { get; set; }
100100

101101
/// <summary>
102102
/// A message to the gift recipient, if applicable.
103103
/// </summary>
104104
/// <value>A message to the gift recipient, if applicable.</value>
105-
[DataMember(Name = "GiftMessage", EmitDefaultValue = false)]
105+
[DataMember(Name = "giftMessage", EmitDefaultValue = false)]
106106
public string GiftMessage { get; set; }
107107

108108
/// <summary>
109109
/// Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip.
110110
/// </summary>
111111
/// <value>Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip.</value>
112-
[DataMember(Name = "DisplayableComment", EmitDefaultValue = false)]
112+
[DataMember(Name = "displayableComment", EmitDefaultValue = false)]
113113
public string DisplayableComment { get; set; }
114114

115115
/// <summary>
116116
/// Amazon&#39;s fulfillment network SKU of the item.
117117
/// </summary>
118118
/// <value>Amazon&#39;s fulfillment network SKU of the item.</value>
119-
[DataMember(Name = "FulfillmentNetworkSKU", EmitDefaultValue = false)]
119+
[DataMember(Name = "fulfillmentNetworkSKU", EmitDefaultValue = false)]
120120
public string FulfillmentNetworkSKU { get; set; }
121121

122122
/// <summary>
123123
/// The monetary value assigned by the seller to this item.
124124
/// </summary>
125125
/// <value>The monetary value assigned by the seller to this item.</value>
126-
[DataMember(Name = "PerUnitDeclaredValue", EmitDefaultValue = false)]
126+
[DataMember(Name = "perUnitDeclaredValue", EmitDefaultValue = false)]
127127
public Currency PerUnitDeclaredValue { get; set; }
128128

129129
/// <summary>
130130
/// The amount to be collected from the recipient for this item in a COD (Cash On Delivery) order.
131131
/// </summary>
132132
/// <value>The amount to be collected from the recipient for this item in a COD (Cash On Delivery) order.</value>
133-
[DataMember(Name = "PerUnitPrice", EmitDefaultValue = false)]
133+
[DataMember(Name = "perUnitPrice", EmitDefaultValue = false)]
134134
public Currency PerUnitPrice { get; set; }
135135

136136
/// <summary>
137137
/// The tax on the amount to be collected from the recipient for this item in a COD (Cash On Delivery) order.
138138
/// </summary>
139139
/// <value>The tax on the amount to be collected from the recipient for this item in a COD (Cash On Delivery) order.</value>
140-
[DataMember(Name = "PerUnitTax", EmitDefaultValue = false)]
140+
[DataMember(Name = "perUnitTax", EmitDefaultValue = false)]
141141
public Currency PerUnitTax { get; set; }
142142

143143
/// <summary>

0 commit comments

Comments
 (0)