8
8
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
*/
10
10
11
- using Newtonsoft . Json ;
12
11
using System ;
12
+ using System . Linq ;
13
+ using System . IO ;
14
+ using System . Text ;
15
+ using System . Text . RegularExpressions ;
16
+ using System . Collections ;
13
17
using System . Collections . Generic ;
14
- using System . ComponentModel . DataAnnotations ;
18
+ using System . Collections . ObjectModel ;
15
19
using System . Runtime . Serialization ;
16
- using System . Text ;
20
+ using Newtonsoft . Json ;
21
+ using Newtonsoft . Json . Converters ;
22
+ using System . ComponentModel . DataAnnotations ;
23
+
17
24
18
25
namespace FikaAmazonAPI . AmazonSpApiSDK . Models . MerchantFulfillment
19
26
{
20
27
/// <summary>
21
28
/// Additional information required to purchase shipping.
22
29
/// </summary>
23
30
[ DataContract ]
24
- public partial class AdditionalSellerInput : IEquatable < AdditionalSellerInput > , IValidatableObject
31
+ public partial class AdditionalSellerInput : IEquatable < AdditionalSellerInput > , IValidatableObject
25
32
{
26
33
/// <summary>
27
34
/// Initializes a new instance of the <see cref="AdditionalSellerInput" /> class.
28
35
/// </summary>
29
- /// <param name="DataType ">The data type of the additional information..</param>
30
- /// <param name="ValueAsString ">The value when the data type is string..</param>
31
- /// <param name="ValueAsBoolean ">The value when the data type is boolean..</param>
32
- /// <param name="ValueAsInteger ">The value when the data type is integer..</param>
33
- /// <param name="ValueAsTimestamp ">The value when the data type is a date-time formatted string..</param>
34
- /// <param name="ValueAsAddress">ValueAsAddress .</param>
35
- /// <param name="ValueAsWeight">ValueAsWeight .</param>
36
- /// <param name="ValueAsDimension">ValueAsDimension .</param>
37
- /// <param name="ValueAsCurrency">ValueAsCurrency .</param>
38
- public AdditionalSellerInput ( string DataType = default ( string ) , string ValueAsString = default ( string ) , bool ? ValueAsBoolean = default ( bool ? ) , int ? ValueAsInteger = default ( int ? ) , Timestamp ValueAsTimestamp = default ( Timestamp ) , Address ValueAsAddress = default ( Address ) , Weight ValueAsWeight = default ( Weight ) , Length ValueAsDimension = default ( Length ) , CurrencyAmount ValueAsCurrency = default ( CurrencyAmount ) )
36
+ /// <param name="dataType ">The data type of the additional information..</param>
37
+ /// <param name="valueAsString ">The value when the data type is string..</param>
38
+ /// <param name="valueAsBoolean ">The value when the data type is boolean..</param>
39
+ /// <param name="valueAsInteger ">The value when the data type is integer..</param>
40
+ /// <param name="valueAsTimestamp ">The value when the data type is a date-time formatted string..</param>
41
+ /// <param name="valueAsAddress">valueAsAddress .</param>
42
+ /// <param name="valueAsWeight">valueAsWeight .</param>
43
+ /// <param name="valueAsDimension">valueAsDimension .</param>
44
+ /// <param name="valueAsCurrency">valueAsCurrency .</param>
45
+ public AdditionalSellerInput ( string dataType = default ( string ) , string valueAsString = default ( string ) , bool ? valueAsBoolean = default ( bool ? ) , int ? valueAsInteger = default ( int ? ) , DateTime ? valueAsTimestamp = default ( DateTime ? ) , Address valueAsAddress = default ( Address ) , Weight valueAsWeight = default ( Weight ) , Length valueAsDimension = default ( Length ) , CurrencyAmount valueAsCurrency = default ( CurrencyAmount ) )
39
46
{
40
- this . DataType = DataType ;
41
- this . ValueAsString = ValueAsString ;
42
- this . ValueAsBoolean = ValueAsBoolean ;
43
- this . ValueAsInteger = ValueAsInteger ;
44
- this . ValueAsTimestamp = ValueAsTimestamp ;
45
- this . ValueAsAddress = ValueAsAddress ;
46
- this . ValueAsWeight = ValueAsWeight ;
47
- this . ValueAsDimension = ValueAsDimension ;
48
- this . ValueAsCurrency = ValueAsCurrency ;
47
+ this . DataType = dataType ;
48
+ this . ValueAsString = valueAsString ;
49
+ this . ValueAsBoolean = valueAsBoolean ;
50
+ this . ValueAsInteger = valueAsInteger ;
51
+ this . ValueAsTimestamp = valueAsTimestamp ;
52
+ this . ValueAsAddress = valueAsAddress ;
53
+ this . ValueAsWeight = valueAsWeight ;
54
+ this . ValueAsDimension = valueAsDimension ;
55
+ this . ValueAsCurrency = valueAsCurrency ;
49
56
}
50
-
57
+
51
58
/// <summary>
52
59
/// The data type of the additional information.
53
60
/// </summary>
54
61
/// <value>The data type of the additional information.</value>
55
- [ DataMember ( Name = "DataType" , EmitDefaultValue = false ) ]
62
+ [ DataMember ( Name = "DataType" , EmitDefaultValue = false ) ]
56
63
public string DataType { get ; set ; }
57
64
58
65
/// <summary>
59
66
/// The value when the data type is string.
60
67
/// </summary>
61
68
/// <value>The value when the data type is string.</value>
62
- [ DataMember ( Name = "ValueAsString" , EmitDefaultValue = false ) ]
69
+ [ DataMember ( Name = "ValueAsString" , EmitDefaultValue = false ) ]
63
70
public string ValueAsString { get ; set ; }
64
71
65
72
/// <summary>
66
73
/// The value when the data type is boolean.
67
74
/// </summary>
68
75
/// <value>The value when the data type is boolean.</value>
69
- [ DataMember ( Name = "ValueAsBoolean" , EmitDefaultValue = false ) ]
76
+ [ DataMember ( Name = "ValueAsBoolean" , EmitDefaultValue = false ) ]
70
77
public bool ? ValueAsBoolean { get ; set ; }
71
78
72
79
/// <summary>
73
80
/// The value when the data type is integer.
74
81
/// </summary>
75
82
/// <value>The value when the data type is integer.</value>
76
- [ DataMember ( Name = "ValueAsInteger" , EmitDefaultValue = false ) ]
83
+ [ DataMember ( Name = "ValueAsInteger" , EmitDefaultValue = false ) ]
77
84
public int ? ValueAsInteger { get ; set ; }
78
85
79
86
/// <summary>
80
87
/// The value when the data type is a date-time formatted string.
81
88
/// </summary>
82
89
/// <value>The value when the data type is a date-time formatted string.</value>
83
- [ DataMember ( Name = "ValueAsTimestamp" , EmitDefaultValue = false ) ]
84
- public Timestamp ValueAsTimestamp { get ; set ; }
90
+ [ DataMember ( Name = "ValueAsTimestamp" , EmitDefaultValue = false ) ]
91
+ public DateTime ? ValueAsTimestamp { get ; set ; }
85
92
86
93
/// <summary>
87
94
/// Gets or Sets ValueAsAddress
88
95
/// </summary>
89
- [ DataMember ( Name = "ValueAsAddress" , EmitDefaultValue = false ) ]
96
+ [ DataMember ( Name = "ValueAsAddress" , EmitDefaultValue = false ) ]
90
97
public Address ValueAsAddress { get ; set ; }
91
98
92
99
/// <summary>
93
100
/// Gets or Sets ValueAsWeight
94
101
/// </summary>
95
- [ DataMember ( Name = "ValueAsWeight" , EmitDefaultValue = false ) ]
102
+ [ DataMember ( Name = "ValueAsWeight" , EmitDefaultValue = false ) ]
96
103
public Weight ValueAsWeight { get ; set ; }
97
104
98
105
/// <summary>
99
106
/// Gets or Sets ValueAsDimension
100
107
/// </summary>
101
- [ DataMember ( Name = "ValueAsDimension" , EmitDefaultValue = false ) ]
108
+ [ DataMember ( Name = "ValueAsDimension" , EmitDefaultValue = false ) ]
102
109
public Length ValueAsDimension { get ; set ; }
103
110
104
111
/// <summary>
105
112
/// Gets or Sets ValueAsCurrency
106
113
/// </summary>
107
- [ DataMember ( Name = "ValueAsCurrency" , EmitDefaultValue = false ) ]
114
+ [ DataMember ( Name = "ValueAsCurrency" , EmitDefaultValue = false ) ]
108
115
public CurrencyAmount ValueAsCurrency { get ; set ; }
109
116
110
117
/// <summary>
@@ -127,12 +134,12 @@ public override string ToString()
127
134
sb . Append ( "}\n " ) ;
128
135
return sb . ToString ( ) ;
129
136
}
130
-
137
+
131
138
/// <summary>
132
139
/// Returns the JSON string presentation of the object
133
140
/// </summary>
134
141
/// <returns>JSON string presentation of the object</returns>
135
- public string ToJson ( )
142
+ public virtual string ToJson ( )
136
143
{
137
144
return JsonConvert . SerializeObject ( this , Formatting . Indented ) ;
138
145
}
@@ -157,47 +164,47 @@ public bool Equals(AdditionalSellerInput input)
157
164
if ( input == null )
158
165
return false ;
159
166
160
- return
167
+ return
161
168
(
162
169
this . DataType == input . DataType ||
163
170
( this . DataType != null &&
164
171
this . DataType . Equals ( input . DataType ) )
165
- ) &&
172
+ ) &&
166
173
(
167
174
this . ValueAsString == input . ValueAsString ||
168
175
( this . ValueAsString != null &&
169
176
this . ValueAsString . Equals ( input . ValueAsString ) )
170
- ) &&
177
+ ) &&
171
178
(
172
179
this . ValueAsBoolean == input . ValueAsBoolean ||
173
180
( this . ValueAsBoolean != null &&
174
181
this . ValueAsBoolean . Equals ( input . ValueAsBoolean ) )
175
- ) &&
182
+ ) &&
176
183
(
177
184
this . ValueAsInteger == input . ValueAsInteger ||
178
185
( this . ValueAsInteger != null &&
179
186
this . ValueAsInteger . Equals ( input . ValueAsInteger ) )
180
- ) &&
187
+ ) &&
181
188
(
182
189
this . ValueAsTimestamp == input . ValueAsTimestamp ||
183
190
( this . ValueAsTimestamp != null &&
184
191
this . ValueAsTimestamp . Equals ( input . ValueAsTimestamp ) )
185
- ) &&
192
+ ) &&
186
193
(
187
194
this . ValueAsAddress == input . ValueAsAddress ||
188
195
( this . ValueAsAddress != null &&
189
196
this . ValueAsAddress . Equals ( input . ValueAsAddress ) )
190
- ) &&
197
+ ) &&
191
198
(
192
199
this . ValueAsWeight == input . ValueAsWeight ||
193
200
( this . ValueAsWeight != null &&
194
201
this . ValueAsWeight . Equals ( input . ValueAsWeight ) )
195
- ) &&
202
+ ) &&
196
203
(
197
204
this . ValueAsDimension == input . ValueAsDimension ||
198
205
( this . ValueAsDimension != null &&
199
206
this . ValueAsDimension . Equals ( input . ValueAsDimension ) )
200
- ) &&
207
+ ) &&
201
208
(
202
209
this . ValueAsCurrency == input . ValueAsCurrency ||
203
210
( this . ValueAsCurrency != null &&
0 commit comments