8
8
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
*/
10
10
11
- using Newtonsoft . Json ;
12
11
using System ;
13
- using System . Collections . Generic ;
14
- using System . ComponentModel . DataAnnotations ;
12
+ using System . Linq ;
15
13
using System . IO ;
16
- using System . Runtime . Serialization ;
17
14
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 ;
18
23
19
24
namespace FikaAmazonAPI . AmazonSpApiSDK . Models . MerchantFulfillment
20
25
{
@@ -34,40 +39,40 @@ public partial class CreateShipmentRequest : IEquatable<CreateShipmentRequest>,
34
39
/// Initializes a new instance of the <see cref="CreateShipmentRequest" /> class.
35
40
/// </summary>
36
41
[ JsonConstructorAttribute ]
37
- public CreateShipmentRequest ( ) { }
42
+ protected CreateShipmentRequest ( ) { }
38
43
/// <summary>
39
44
/// Initializes a new instance of the <see cref="CreateShipmentRequest" /> class.
40
45
/// </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 ) )
48
53
{
49
- // to ensure "ShipmentRequestDetails " is required (not null)
50
- if ( ShipmentRequestDetails == null )
54
+ // to ensure "shipmentRequestDetails " is required (not null)
55
+ if ( shipmentRequestDetails == null )
51
56
{
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" ) ;
53
58
}
54
59
else
55
60
{
56
- this . ShipmentRequestDetails = ShipmentRequestDetails ;
61
+ this . ShipmentRequestDetails = shipmentRequestDetails ;
57
62
}
58
- // to ensure "ShippingServiceId " is required (not null)
59
- if ( ShippingServiceId == null )
63
+ // to ensure "shippingServiceId " is required (not null)
64
+ if ( shippingServiceId == null )
60
65
{
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" ) ;
62
67
}
63
68
else
64
69
{
65
- this . ShippingServiceId = ShippingServiceId ;
70
+ this . ShippingServiceId = shippingServiceId ;
66
71
}
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 ;
71
76
}
72
77
73
78
/// <summary>
@@ -81,7 +86,7 @@ public CreateShipmentRequest() { }
81
86
/// Gets or Sets ShippingServiceId
82
87
/// </summary>
83
88
[ DataMember ( Name = "ShippingServiceId" , EmitDefaultValue = false ) ]
84
- public ShippingServiceIdentifier ShippingServiceId { get ; set ; }
89
+ public string ShippingServiceId { get ; set ; }
85
90
86
91
/// <summary>
87
92
/// Identifies a shipping service order made by a carrier.
@@ -126,7 +131,7 @@ public override string ToString()
126
131
/// Returns the JSON string presentation of the object
127
132
/// </summary>
128
133
/// <returns>JSON string presentation of the object</returns>
129
- public string ToJson ( )
134
+ public virtual string ToJson ( )
130
135
{
131
136
return JsonConvert . SerializeObject ( this , Formatting . Indented ) ;
132
137
}
0 commit comments