Skip to content

Commit c8b1523

Browse files
committed
Regenerate from spec v1.20.5, version 3.0.0-beta.13
1 parent f0e0aa8 commit c8b1523

7 files changed

+172
-57
lines changed

ShipEngineSDK/Model/AdvancedShipmentOptions.cs

+52-19
Original file line numberDiff line numberDiff line change
@@ -64,78 +64,88 @@ public partial class AdvancedShipmentOptions
6464
[JsonPropertyName("bill_to_postal_code"), JsonPropertyOrder(5)]
6565
public string? BillToPostalCode { get; set; }
6666

67+
/// <summary>
68+
/// certificate number.
69+
/// </summary>
70+
/// <value>certificate number.</value>
71+
/// <example>
72+
/// 784515
73+
/// </example>
74+
[JsonPropertyName("certificate_number"), JsonPropertyOrder(6)]
75+
public string? CertificateNumber { get; set; }
76+
6777
/// <summary>
6878
/// Gets or Sets CollectOnDelivery
6979
/// </summary>
70-
[JsonPropertyName("collect_on_delivery"), JsonPropertyOrder(6)]
80+
[JsonPropertyName("collect_on_delivery"), JsonPropertyOrder(7)]
7181
public CollectOnDelivery? CollectOnDelivery { get; set; }
7282

7383
/// <summary>
7484
/// Indicates that the shipment contains alcohol.
7585
/// </summary>
7686
/// <value>Indicates that the shipment contains alcohol.</value>
77-
[JsonPropertyName("contains_alcohol"), JsonPropertyOrder(7)]
87+
[JsonPropertyName("contains_alcohol"), JsonPropertyOrder(8)]
7888
public bool? ContainsAlcohol { get; set; }
7989

8090
/// <summary>
8191
/// An arbitrary field that can be used to store information about the shipment.
8292
/// </summary>
8393
/// <value>An arbitrary field that can be used to store information about the shipment. </value>
84-
[JsonPropertyName("custom_field1"), JsonPropertyOrder(8)]
94+
[JsonPropertyName("custom_field1"), JsonPropertyOrder(9)]
8595
public string? CustomField1 { get; set; }
8696

8797
/// <summary>
8898
/// An arbitrary field that can be used to store information about the shipment.
8999
/// </summary>
90100
/// <value>An arbitrary field that can be used to store information about the shipment. </value>
91-
[JsonPropertyName("custom_field2"), JsonPropertyOrder(9)]
101+
[JsonPropertyName("custom_field2"), JsonPropertyOrder(10)]
92102
public string? CustomField2 { get; set; }
93103

94104
/// <summary>
95105
/// An arbitrary field that can be used to store information about the shipment.
96106
/// </summary>
97107
/// <value>An arbitrary field that can be used to store information about the shipment. </value>
98-
[JsonPropertyName("custom_field3"), JsonPropertyOrder(10)]
108+
[JsonPropertyName("custom_field3"), JsonPropertyOrder(11)]
99109
public string? CustomField3 { get; set; }
100110

101111
/// <summary>
102112
/// Indicates if the Dangerous goods are present in the shipment
103113
/// </summary>
104114
/// <value>Indicates if the Dangerous goods are present in the shipment</value>
105-
[JsonPropertyName("dangerous_goods"), JsonPropertyOrder(11)]
115+
[JsonPropertyName("dangerous_goods"), JsonPropertyOrder(12)]
106116
public bool? DangerousGoods { get; set; }
107117

108118
/// <summary>
109119
/// Gets or Sets DangerousGoodsContact
110120
/// </summary>
111-
[JsonPropertyName("dangerous_goods_contact"), JsonPropertyOrder(12)]
121+
[JsonPropertyName("dangerous_goods_contact"), JsonPropertyOrder(13)]
112122
public AdvancedShipmentOptionsDangerousGoodsContact? DangerousGoodsContact { get; set; }
113123

114124
/// <summary>
115125
/// Indicates that the shipper is paying the international delivery duties for this shipment. This option is supported by UPS, FedEx, and DHL Express.
116126
/// </summary>
117127
/// <value>Indicates that the shipper is paying the international delivery duties for this shipment. This option is supported by UPS, FedEx, and DHL Express. </value>
118-
[JsonPropertyName("delivered_duty_paid"), JsonPropertyOrder(13)]
128+
[JsonPropertyName("delivered_duty_paid"), JsonPropertyOrder(14)]
119129
public bool? DeliveredDutyPaid { get; set; }
120130

121131
/// <summary>
122132
/// Indicates if the shipment contain dry ice
123133
/// </summary>
124134
/// <value>Indicates if the shipment contain dry ice</value>
125-
[JsonPropertyName("dry_ice"), JsonPropertyOrder(14)]
135+
[JsonPropertyName("dry_ice"), JsonPropertyOrder(15)]
126136
public bool? DryIce { get; set; }
127137

128138
/// <summary>
129139
/// The weight of the dry ice in the shipment
130140
/// </summary>
131141
/// <value>The weight of the dry ice in the shipment</value>
132-
[JsonPropertyName("dry_ice_weight"), JsonPropertyOrder(15)]
142+
[JsonPropertyName("dry_ice_weight"), JsonPropertyOrder(16)]
133143
public Weight? DryIceWeight { get; set; }
134144

135145
/// <summary>
136146
/// Gets or Sets FedexFreight
137147
/// </summary>
138-
[JsonPropertyName("fedex_freight"), JsonPropertyOrder(16)]
148+
[JsonPropertyName("fedex_freight"), JsonPropertyOrder(17)]
139149
public AdvancedShipmentOptionsFedexFreight? FedexFreight { get; set; }
140150

141151
/// <summary>
@@ -145,53 +155,73 @@ public partial class AdvancedShipmentOptions
145155
/// <example>
146156
/// 77.5
147157
/// </example>
148-
[JsonPropertyName("freight_class"), JsonPropertyOrder(17)]
158+
[JsonPropertyName("freight_class"), JsonPropertyOrder(18)]
149159
public string? FreightClass { get; set; }
150160

161+
/// <summary>
162+
/// invoice number.
163+
/// </summary>
164+
/// <value>invoice number.</value>
165+
/// <example>
166+
/// IOC56888
167+
/// </example>
168+
[JsonPropertyName("invoice_number"), JsonPropertyOrder(19)]
169+
public string? InvoiceNumber { get; set; }
170+
171+
/// <summary>
172+
/// license number.
173+
/// </summary>
174+
/// <value>license number.</value>
175+
/// <example>
176+
/// 514785
177+
/// </example>
178+
[JsonPropertyName("license_number"), JsonPropertyOrder(20)]
179+
public string? LicenseNumber { get; set; }
180+
151181
/// <summary>
152182
/// Indicates that the package cannot be processed automatically because it is too large or irregularly shaped. This is primarily for USPS shipments. See [Section 1.2 of the USPS parcel standards](https://pe.usps.com/text/dmm300/101.htm#ep1047495) for details.
153183
/// </summary>
154184
/// <value>Indicates that the package cannot be processed automatically because it is too large or irregularly shaped. This is primarily for USPS shipments. See [Section 1.2 of the USPS parcel standards](https://pe.usps.com/text/dmm300/101.htm#ep1047495) for details. </value>
155-
[JsonPropertyName("non_machinable"), JsonPropertyOrder(18)]
185+
[JsonPropertyName("non_machinable"), JsonPropertyOrder(21)]
156186
public bool? NonMachinable { get; set; }
157187

158188
/// <summary>
159189
/// Gets or Sets OriginType
160190
/// </summary>
161-
[JsonPropertyName("origin_type"), JsonPropertyOrder(19)]
191+
[JsonPropertyName("origin_type"), JsonPropertyOrder(22)]
162192
public OriginType? OriginType { get; set; }
163193

164194
/// <summary>
165195
/// Enables Saturday delivery, if supported by the carrier.
166196
/// </summary>
167197
/// <value>Enables Saturday delivery, if supported by the carrier.</value>
168-
[JsonPropertyName("saturday_delivery"), JsonPropertyOrder(20)]
198+
[JsonPropertyName("saturday_delivery"), JsonPropertyOrder(23)]
169199
public bool? SaturdayDelivery { get; set; }
170200

171201
/// <summary>
172202
/// Gets or Sets ShipperRelease
173203
/// </summary>
174-
[JsonPropertyName("shipper_release"), JsonPropertyOrder(21)]
204+
[JsonPropertyName("shipper_release"), JsonPropertyOrder(24)]
175205
public bool? ShipperRelease { get; set; }
176206

177207
/// <summary>
178208
/// Third Party Consignee option is a value-added service that allows the shipper to supply goods without commercial invoices being attached
179209
/// </summary>
180210
/// <value>Third Party Consignee option is a value-added service that allows the shipper to supply goods without commercial invoices being attached</value>
181-
[JsonPropertyName("third_party_consignee"), JsonPropertyOrder(22)]
211+
[JsonPropertyName("third_party_consignee"), JsonPropertyOrder(25)]
182212
public bool? ThirdPartyConsignee { get; set; }
183213

184214
/// <summary>
185215
/// Whether to use [UPS Ground Freight pricing](https://www.shipengine.com/docs/shipping/ups-ground-freight/). If enabled, then a &#x60;freight_class&#x60; must also be specified.
186216
/// </summary>
187217
/// <value>Whether to use [UPS Ground Freight pricing](https://www.shipengine.com/docs/shipping/ups-ground-freight/). If enabled, then a &#x60;freight_class&#x60; must also be specified. </value>
188-
[JsonPropertyName("use_ups_ground_freight_pricing"), JsonPropertyOrder(23)]
218+
[JsonPropertyName("use_ups_ground_freight_pricing"), JsonPropertyOrder(26)]
189219
public bool? UseUpsGroundFreightPricing { get; set; }
190220

191221
/// <summary>
192222
/// Gets or Sets WindsorFrameworkDetails
193223
/// </summary>
194-
[JsonPropertyName("windsor_framework_details"), JsonPropertyOrder(24)]
224+
[JsonPropertyName("windsor_framework_details"), JsonPropertyOrder(27)]
195225
public AdvancedShipmentOptionsWindsorFrameworkDetails? WindsorFrameworkDetails { get; set; }
196226

197227

@@ -209,6 +239,7 @@ public override string ToString()
209239
sb.Append(" BillToCountryCode: ").Append(BillToCountryCode).Append("\n");
210240
sb.Append(" BillToParty: ").Append(BillToParty).Append("\n");
211241
sb.Append(" BillToPostalCode: ").Append(BillToPostalCode).Append("\n");
242+
sb.Append(" CertificateNumber: ").Append(CertificateNumber).Append("\n");
212243
sb.Append(" CollectOnDelivery: ").Append(CollectOnDelivery).Append("\n");
213244
sb.Append(" ContainsAlcohol: ").Append(ContainsAlcohol).Append("\n");
214245
sb.Append(" CustomField1: ").Append(CustomField1).Append("\n");
@@ -221,6 +252,8 @@ public override string ToString()
221252
sb.Append(" DryIceWeight: ").Append(DryIceWeight).Append("\n");
222253
sb.Append(" FedexFreight: ").Append(FedexFreight).Append("\n");
223254
sb.Append(" FreightClass: ").Append(FreightClass).Append("\n");
255+
sb.Append(" InvoiceNumber: ").Append(InvoiceNumber).Append("\n");
256+
sb.Append(" LicenseNumber: ").Append(LicenseNumber).Append("\n");
224257
sb.Append(" NonMachinable: ").Append(NonMachinable).Append("\n");
225258
sb.Append(" OriginType: ").Append(OriginType).Append("\n");
226259
sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n");

ShipEngineSDK/Model/ErrorCode.cs

+48
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,54 @@ public ErrorCode(string value)
308308
public static ErrorCode NoRatesReturned { get; } = new("no_rates_returned");
309309

310310

311+
/// <summary>
312+
/// Enum FileNotFound for value: file_not_found
313+
/// </summary>
314+
public static ErrorCode FileNotFound { get; } = new("file_not_found");
315+
316+
317+
/// <summary>
318+
/// Enum ShippingRuleNotFound for value: shipping_rule_not_found
319+
/// </summary>
320+
public static ErrorCode ShippingRuleNotFound { get; } = new("shipping_rule_not_found");
321+
322+
323+
/// <summary>
324+
/// Enum ServiceNotDetermined for value: service_not_determined
325+
/// </summary>
326+
public static ErrorCode ServiceNotDetermined { get; } = new("service_not_determined");
327+
328+
329+
/// <summary>
330+
/// Enum NoRatesReturned2 for value: no_rates_returned
331+
/// </summary>
332+
public static ErrorCode NoRatesReturned2 { get; } = new("no_rates_returned");
333+
334+
335+
/// <summary>
336+
/// Enum FundingSourceRegistrationInProgress for value: funding_source_registration_in_progress
337+
/// </summary>
338+
public static ErrorCode FundingSourceRegistrationInProgress { get; } = new("funding_source_registration_in_progress");
339+
340+
341+
/// <summary>
342+
/// Enum InsuranceFailure for value: insurance_failure
343+
/// </summary>
344+
public static ErrorCode InsuranceFailure { get; } = new("insurance_failure");
345+
346+
347+
/// <summary>
348+
/// Enum FundingSourceMissingConfiguration for value: funding_source_missing_configuration
349+
/// </summary>
350+
public static ErrorCode FundingSourceMissingConfiguration { get; } = new("funding_source_missing_configuration");
351+
352+
353+
/// <summary>
354+
/// Enum FundingSourceError for value: funding_source_error
355+
/// </summary>
356+
public static ErrorCode FundingSourceError { get; } = new("funding_source_error");
357+
358+
311359
/// <summary>
312360
/// Get a string representation of the current value
313361
/// </summary>

ShipEngineSDK/Model/GetTrackingLogFromLabelResponseBody.cs

+15-15
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ public partial class GetTrackingLogFromLabelResponseBody
3939
[JsonPropertyName("carrier_status_code"), JsonInclude]
4040
public string? CarrierStatusCode { get; set; }
4141

42-
/// <summary>
43-
/// An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time.
44-
/// </summary>
45-
/// <value>An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time. </value>
46-
/// <example>
47-
/// 2018-09-23T15:00Z
48-
/// </example>
49-
[JsonPropertyName("estimated_delivery_date"), JsonPropertyOrder(2)]
50-
public required DateTimeOffset EstimatedDeliveryDate { get; set; }
51-
5242
/// <summary>
5343
/// The events that have occured during the lifetime of this tracking number.
5444
/// </summary>
@@ -62,7 +52,7 @@ public partial class GetTrackingLogFromLabelResponseBody
6252
/// <summary>
6353
/// Gets or Sets StatusCode
6454
/// </summary>
65-
[JsonPropertyName("status_code"), JsonPropertyOrder(4)]
55+
[JsonPropertyName("status_code"), JsonPropertyOrder(3)]
6656
public required StatusCode StatusCode { get; set; }
6757

6858
/// <summary>
@@ -72,7 +62,7 @@ public partial class GetTrackingLogFromLabelResponseBody
7262
/// <example>
7363
/// 1Z932R800392060079
7464
/// </example>
75-
[JsonPropertyName("tracking_number"), JsonPropertyOrder(5)]
65+
[JsonPropertyName("tracking_number"), JsonPropertyOrder(4)]
7666
public required string TrackingNumber { get; set; }
7767

7868
/// <summary>
@@ -82,7 +72,7 @@ public partial class GetTrackingLogFromLabelResponseBody
8272
/// <example>
8373
/// 2018-09-23T15:00Z
8474
/// </example>
85-
[JsonPropertyName("actual_delivery_date"), JsonPropertyOrder(6)]
75+
[JsonPropertyName("actual_delivery_date"), JsonPropertyOrder(5)]
8676
public DateTimeOffset? ActualDeliveryDate { get; set; }
8777

8878
/// <summary>
@@ -92,7 +82,7 @@ public partial class GetTrackingLogFromLabelResponseBody
9282
/// <example>
9383
/// dhl_express
9484
/// </example>
95-
[JsonPropertyName("carrier_code"), JsonPropertyOrder(7)]
85+
[JsonPropertyName("carrier_code"), JsonPropertyOrder(6)]
9686
public string? CarrierCode { get; set; }
9787

9888
/// <summary>
@@ -131,6 +121,16 @@ public partial class GetTrackingLogFromLabelResponseBody
131121
[JsonPropertyName("carrier_status_description"), JsonInclude]
132122
public string? CarrierStatusDescription { get; set; }
133123

124+
/// <summary>
125+
/// An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time.
126+
/// </summary>
127+
/// <value>An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time. </value>
128+
/// <example>
129+
/// 2018-09-23T15:00Z
130+
/// </example>
131+
[JsonPropertyName("estimated_delivery_date"), JsonPropertyOrder(10)]
132+
public DateTimeOffset? EstimatedDeliveryDate { get; set; }
133+
134134
/// <summary>
135135
/// Exception description
136136
/// </summary>
@@ -207,7 +207,6 @@ public override string ToString()
207207
sb.Append("class GetTrackingLogFromLabelResponseBody {\n");
208208
#pragma warning disable CS0612 // Type or member is obsolete
209209
sb.Append(" CarrierStatusCode: ").Append(CarrierStatusCode).Append("\n");
210-
sb.Append(" EstimatedDeliveryDate: ").Append(EstimatedDeliveryDate).Append("\n");
211210
sb.Append(" Events: ").Append(Events).Append("\n");
212211
sb.Append(" StatusCode: ").Append(StatusCode).Append("\n");
213212
sb.Append(" TrackingNumber: ").Append(TrackingNumber).Append("\n");
@@ -216,6 +215,7 @@ public override string ToString()
216215
sb.Append(" CarrierDetailCode: ").Append(CarrierDetailCode).Append("\n");
217216
sb.Append(" CarrierId: ").Append(CarrierId).Append("\n");
218217
sb.Append(" CarrierStatusDescription: ").Append(CarrierStatusDescription).Append("\n");
218+
sb.Append(" EstimatedDeliveryDate: ").Append(EstimatedDeliveryDate).Append("\n");
219219
sb.Append(" ExceptionDescription: ").Append(ExceptionDescription).Append("\n");
220220
sb.Append(" ShipDate: ").Append(ShipDate).Append("\n");
221221
sb.Append(" StatusDescription: ").Append(StatusDescription).Append("\n");

0 commit comments

Comments
 (0)