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,41 +39,41 @@ public partial class LabelDimensions : IEquatable<LabelDimensions>, IValidatable
34
39
/// Initializes a new instance of the <see cref="LabelDimensions" /> class.
35
40
/// </summary>
36
41
[ JsonConstructorAttribute ]
37
- public LabelDimensions ( ) { }
42
+ protected LabelDimensions ( ) { }
38
43
/// <summary>
39
44
/// Initializes a new instance of the <see cref="LabelDimensions" /> class.
40
45
/// </summary>
41
- /// <param name="Length ">The length dimension. (required).</param>
42
- /// <param name="Width ">The width dimension. (required).</param>
43
- /// <param name="Unit ">The unit of measurement. (required).</param>
44
- public LabelDimensions ( LabelDimension Length = default ( LabelDimension ) , LabelDimension Width = default ( LabelDimension ) , UnitOfLength Unit = default ( UnitOfLength ) )
46
+ /// <param name="length ">The length dimension. (required).</param>
47
+ /// <param name="width ">The width dimension. (required).</param>
48
+ /// <param name="unit ">The unit of measurement. (required).</param>
49
+ public LabelDimensions ( decimal ? length = default ( decimal ? ) , decimal ? width = default ( decimal ? ) , UnitOfLength unit = default ( UnitOfLength ) )
45
50
{
46
- // to ensure "Length " is required (not null)
47
- if ( Length == null )
51
+ // to ensure "length " is required (not null)
52
+ if ( length == null )
48
53
{
49
- throw new InvalidDataException ( "Length is a required property for LabelDimensions and cannot be null" ) ;
54
+ throw new InvalidDataException ( "length is a required property for LabelDimensions and cannot be null" ) ;
50
55
}
51
56
else
52
57
{
53
- this . Length = Length ;
58
+ this . Length = length ;
54
59
}
55
- // to ensure "Width " is required (not null)
56
- if ( Width == null )
60
+ // to ensure "width " is required (not null)
61
+ if ( width == null )
57
62
{
58
- throw new InvalidDataException ( "Width is a required property for LabelDimensions and cannot be null" ) ;
63
+ throw new InvalidDataException ( "width is a required property for LabelDimensions and cannot be null" ) ;
59
64
}
60
65
else
61
66
{
62
- this . Width = Width ;
67
+ this . Width = width ;
63
68
}
64
- // to ensure "Unit " is required (not null)
65
- if ( Unit == null )
69
+ // to ensure "unit " is required (not null)
70
+ if ( unit == null )
66
71
{
67
- throw new InvalidDataException ( "Unit is a required property for LabelDimensions and cannot be null" ) ;
72
+ throw new InvalidDataException ( "unit is a required property for LabelDimensions and cannot be null" ) ;
68
73
}
69
74
else
70
75
{
71
- this . Unit = Unit ;
76
+ this . Unit = unit ;
72
77
}
73
78
}
74
79
@@ -77,14 +82,14 @@ public LabelDimensions() { }
77
82
/// </summary>
78
83
/// <value>The length dimension.</value>
79
84
[ DataMember ( Name = "Length" , EmitDefaultValue = false ) ]
80
- public LabelDimension Length { get ; set ; }
85
+ public decimal ? Length { get ; set ; }
81
86
82
87
/// <summary>
83
88
/// The width dimension.
84
89
/// </summary>
85
90
/// <value>The width dimension.</value>
86
91
[ DataMember ( Name = "Width" , EmitDefaultValue = false ) ]
87
- public LabelDimension Width { get ; set ; }
92
+ public decimal ? Width { get ; set ; }
88
93
89
94
90
95
/// <summary>
@@ -106,7 +111,7 @@ public override string ToString()
106
111
/// Returns the JSON string presentation of the object
107
112
/// </summary>
108
113
/// <returns>JSON string presentation of the object</returns>
109
- public string ToJson ( )
114
+ public virtual string ToJson ( )
110
115
{
111
116
return JsonConvert . SerializeObject ( this , Formatting . Indented ) ;
112
117
}
0 commit comments