Skip to content

Commit d8752be

Browse files
authored
Merge pull request #117 from gcuadrado/main
Updated MerchantFulfillment models based on swagger json
2 parents 01a2e01 + 7ae222c commit d8752be

File tree

3 files changed

+121
-111
lines changed

3 files changed

+121
-111
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/MerchantFulfillment/CreateShipmentRequest.cs

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@
88
* Generated by: https://github.com/swagger-api/swagger-codegen.git
99
*/
1010

11-
using Newtonsoft.Json;
1211
using System;
13-
using System.Collections.Generic;
14-
using System.ComponentModel.DataAnnotations;
12+
using System.Linq;
1513
using System.IO;
16-
using System.Runtime.Serialization;
1714
using System.Text;
15+
using System.Text.RegularExpressions;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Collections.ObjectModel;
19+
using System.Runtime.Serialization;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using System.ComponentModel.DataAnnotations;
1823

1924
namespace FikaAmazonAPI.AmazonSpApiSDK.Models.MerchantFulfillment
2025
{
@@ -34,40 +39,40 @@ public partial class CreateShipmentRequest : IEquatable<CreateShipmentRequest>,
3439
/// Initializes a new instance of the <see cref="CreateShipmentRequest" /> class.
3540
/// </summary>
3641
[JsonConstructorAttribute]
37-
public CreateShipmentRequest() { }
42+
protected CreateShipmentRequest() { }
3843
/// <summary>
3944
/// Initializes a new instance of the <see cref="CreateShipmentRequest" /> class.
4045
/// </summary>
41-
/// <param name="ShipmentRequestDetails">Shipment information required for creating a shipment. (required).</param>
42-
/// <param name="ShippingServiceId">ShippingServiceId (required).</param>
43-
/// <param name="ShippingServiceOfferId">Identifies a shipping service order made by a carrier..</param>
44-
/// <param name="HazmatType">Hazardous materials options for a package. Consult the terms and conditions for each carrier for more information about hazardous materials..</param>
45-
/// <param name="LabelFormatOption">LabelFormatOption.</param>
46-
/// <param name="ShipmentLevelSellerInputsList">A list of additional seller inputs required to ship this shipment..</param>
47-
public CreateShipmentRequest(ShipmentRequestDetails ShipmentRequestDetails = default(ShipmentRequestDetails), ShippingServiceIdentifier ShippingServiceId = default(ShippingServiceIdentifier), string ShippingServiceOfferId = default(string), HazmatType? HazmatType = default(HazmatType?), LabelFormatOptionRequest LabelFormatOption = default(LabelFormatOptionRequest), AdditionalSellerInputsList ShipmentLevelSellerInputsList = default(AdditionalSellerInputsList))
46+
/// <param name="shipmentRequestDetails">Shipment information required for creating a shipment. (required).</param>
47+
/// <param name="shippingServiceId">shippingServiceId (required).</param>
48+
/// <param name="shippingServiceOfferId">Identifies a shipping service order made by a carrier..</param>
49+
/// <param name="hazmatType">Hazardous materials options for a package. Consult the terms and conditions for each carrier for more information about hazardous materials..</param>
50+
/// <param name="labelFormatOption">labelFormatOption.</param>
51+
/// <param name="shipmentLevelSellerInputsList">A list of additional seller inputs required to ship this shipment..</param>
52+
public CreateShipmentRequest(ShipmentRequestDetails shipmentRequestDetails = default(ShipmentRequestDetails), string shippingServiceId = default(string), string shippingServiceOfferId = default(string), HazmatType? hazmatType = default(HazmatType?), LabelFormatOptionRequest labelFormatOption = default(LabelFormatOptionRequest), AdditionalSellerInputsList shipmentLevelSellerInputsList = default(AdditionalSellerInputsList))
4853
{
49-
// to ensure "ShipmentRequestDetails" is required (not null)
50-
if (ShipmentRequestDetails == null)
54+
// to ensure "shipmentRequestDetails" is required (not null)
55+
if (shipmentRequestDetails == null)
5156
{
52-
throw new InvalidDataException("ShipmentRequestDetails is a required property for CreateShipmentRequest and cannot be null");
57+
throw new InvalidDataException("shipmentRequestDetails is a required property for CreateShipmentRequest and cannot be null");
5358
}
5459
else
5560
{
56-
this.ShipmentRequestDetails = ShipmentRequestDetails;
61+
this.ShipmentRequestDetails = shipmentRequestDetails;
5762
}
58-
// to ensure "ShippingServiceId" is required (not null)
59-
if (ShippingServiceId == null)
63+
// to ensure "shippingServiceId" is required (not null)
64+
if (shippingServiceId == null)
6065
{
61-
throw new InvalidDataException("ShippingServiceId is a required property for CreateShipmentRequest and cannot be null");
66+
throw new InvalidDataException("shippingServiceId is a required property for CreateShipmentRequest and cannot be null");
6267
}
6368
else
6469
{
65-
this.ShippingServiceId = ShippingServiceId;
70+
this.ShippingServiceId = shippingServiceId;
6671
}
67-
this.ShippingServiceOfferId = ShippingServiceOfferId;
68-
this.HazmatType = HazmatType;
69-
this.LabelFormatOption = LabelFormatOption;
70-
this.ShipmentLevelSellerInputsList = ShipmentLevelSellerInputsList;
72+
this.ShippingServiceOfferId = shippingServiceOfferId;
73+
this.HazmatType = hazmatType;
74+
this.LabelFormatOption = labelFormatOption;
75+
this.ShipmentLevelSellerInputsList = shipmentLevelSellerInputsList;
7176
}
7277

7378
/// <summary>
@@ -81,7 +86,7 @@ public CreateShipmentRequest() { }
8186
/// Gets or Sets ShippingServiceId
8287
/// </summary>
8388
[DataMember(Name = "ShippingServiceId", EmitDefaultValue = false)]
84-
public ShippingServiceIdentifier ShippingServiceId { get; set; }
89+
public string ShippingServiceId { get; set; }
8590

8691
/// <summary>
8792
/// Identifies a shipping service order made by a carrier.
@@ -126,7 +131,7 @@ public override string ToString()
126131
/// Returns the JSON string presentation of the object
127132
/// </summary>
128133
/// <returns>JSON string presentation of the object</returns>
129-
public string ToJson()
134+
public virtual string ToJson()
130135
{
131136
return JsonConvert.SerializeObject(this, Formatting.Indented);
132137
}

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/MerchantFulfillment/LabelCustomization.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ public partial class LabelCustomization : IEquatable<LabelCustomization>, IValid
3131
/// <summary>
3232
/// Initializes a new instance of the <see cref="LabelCustomization" /> class.
3333
/// </summary>
34-
/// <param name="CustomTextForLabel">CustomTextForLabel.</param>
35-
/// <param name="StandardIdForLabel">StandardIdForLabel.</param>
36-
public LabelCustomization(CustomTextForLabel CustomTextForLabel = default(CustomTextForLabel), StandardIdForLabel? StandardIdForLabel = default(StandardIdForLabel?))
34+
/// <param name="customTextForLabel">customTextForLabel.</param>
35+
/// <param name="standardIdForLabel">standardIdForLabel.</param>
36+
public LabelCustomization(string customTextForLabel = default(string), StandardIdForLabel? standardIdForLabel = default(StandardIdForLabel?))
3737
{
38-
this.CustomTextForLabel = CustomTextForLabel;
39-
this.StandardIdForLabel = StandardIdForLabel;
38+
this.CustomTextForLabel = customTextForLabel;
39+
this.StandardIdForLabel = standardIdForLabel;
4040
}
4141

4242
/// <summary>
4343
/// Gets or Sets CustomTextForLabel
4444
/// </summary>
4545
[DataMember(Name = "CustomTextForLabel", EmitDefaultValue = false)]
46-
public CustomTextForLabel CustomTextForLabel { get; set; }
46+
public string CustomTextForLabel { get; set; }
4747

4848

4949
/// <summary>
@@ -64,7 +64,7 @@ public override string ToString()
6464
/// Returns the JSON string presentation of the object
6565
/// </summary>
6666
/// <returns>JSON string presentation of the object</returns>
67-
public string ToJson()
67+
public virtual string ToJson()
6868
{
6969
return JsonConvert.SerializeObject(this, Formatting.Indented);
7070
}

0 commit comments

Comments
 (0)