Skip to content

Commit

Permalink
Regenerate from spec v1.20.5, version 3.0.0-beta.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mattburton committed Oct 3, 2024
1 parent f0e0aa8 commit c8b1523
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 57 deletions.
71 changes: 52 additions & 19 deletions ShipEngineSDK/Model/AdvancedShipmentOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,78 +64,88 @@ public partial class AdvancedShipmentOptions
[JsonPropertyName("bill_to_postal_code"), JsonPropertyOrder(5)]
public string? BillToPostalCode { get; set; }

/// <summary>
/// certificate number.
/// </summary>
/// <value>certificate number.</value>
/// <example>
/// 784515
/// </example>
[JsonPropertyName("certificate_number"), JsonPropertyOrder(6)]
public string? CertificateNumber { get; set; }

/// <summary>
/// Gets or Sets CollectOnDelivery
/// </summary>
[JsonPropertyName("collect_on_delivery"), JsonPropertyOrder(6)]
[JsonPropertyName("collect_on_delivery"), JsonPropertyOrder(7)]
public CollectOnDelivery? CollectOnDelivery { get; set; }

/// <summary>
/// Indicates that the shipment contains alcohol.
/// </summary>
/// <value>Indicates that the shipment contains alcohol.</value>
[JsonPropertyName("contains_alcohol"), JsonPropertyOrder(7)]
[JsonPropertyName("contains_alcohol"), JsonPropertyOrder(8)]
public bool? ContainsAlcohol { get; set; }

/// <summary>
/// An arbitrary field that can be used to store information about the shipment.
/// </summary>
/// <value>An arbitrary field that can be used to store information about the shipment. </value>
[JsonPropertyName("custom_field1"), JsonPropertyOrder(8)]
[JsonPropertyName("custom_field1"), JsonPropertyOrder(9)]
public string? CustomField1 { get; set; }

/// <summary>
/// An arbitrary field that can be used to store information about the shipment.
/// </summary>
/// <value>An arbitrary field that can be used to store information about the shipment. </value>
[JsonPropertyName("custom_field2"), JsonPropertyOrder(9)]
[JsonPropertyName("custom_field2"), JsonPropertyOrder(10)]
public string? CustomField2 { get; set; }

/// <summary>
/// An arbitrary field that can be used to store information about the shipment.
/// </summary>
/// <value>An arbitrary field that can be used to store information about the shipment. </value>
[JsonPropertyName("custom_field3"), JsonPropertyOrder(10)]
[JsonPropertyName("custom_field3"), JsonPropertyOrder(11)]
public string? CustomField3 { get; set; }

/// <summary>
/// Indicates if the Dangerous goods are present in the shipment
/// </summary>
/// <value>Indicates if the Dangerous goods are present in the shipment</value>
[JsonPropertyName("dangerous_goods"), JsonPropertyOrder(11)]
[JsonPropertyName("dangerous_goods"), JsonPropertyOrder(12)]
public bool? DangerousGoods { get; set; }

/// <summary>
/// Gets or Sets DangerousGoodsContact
/// </summary>
[JsonPropertyName("dangerous_goods_contact"), JsonPropertyOrder(12)]
[JsonPropertyName("dangerous_goods_contact"), JsonPropertyOrder(13)]
public AdvancedShipmentOptionsDangerousGoodsContact? DangerousGoodsContact { get; set; }

/// <summary>
/// Indicates that the shipper is paying the international delivery duties for this shipment. This option is supported by UPS, FedEx, and DHL Express.
/// </summary>
/// <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>
[JsonPropertyName("delivered_duty_paid"), JsonPropertyOrder(13)]
[JsonPropertyName("delivered_duty_paid"), JsonPropertyOrder(14)]
public bool? DeliveredDutyPaid { get; set; }

/// <summary>
/// Indicates if the shipment contain dry ice
/// </summary>
/// <value>Indicates if the shipment contain dry ice</value>
[JsonPropertyName("dry_ice"), JsonPropertyOrder(14)]
[JsonPropertyName("dry_ice"), JsonPropertyOrder(15)]
public bool? DryIce { get; set; }

/// <summary>
/// The weight of the dry ice in the shipment
/// </summary>
/// <value>The weight of the dry ice in the shipment</value>
[JsonPropertyName("dry_ice_weight"), JsonPropertyOrder(15)]
[JsonPropertyName("dry_ice_weight"), JsonPropertyOrder(16)]
public Weight? DryIceWeight { get; set; }

/// <summary>
/// Gets or Sets FedexFreight
/// </summary>
[JsonPropertyName("fedex_freight"), JsonPropertyOrder(16)]
[JsonPropertyName("fedex_freight"), JsonPropertyOrder(17)]
public AdvancedShipmentOptionsFedexFreight? FedexFreight { get; set; }

/// <summary>
Expand All @@ -145,53 +155,73 @@ public partial class AdvancedShipmentOptions
/// <example>
/// 77.5
/// </example>
[JsonPropertyName("freight_class"), JsonPropertyOrder(17)]
[JsonPropertyName("freight_class"), JsonPropertyOrder(18)]
public string? FreightClass { get; set; }

/// <summary>
/// invoice number.
/// </summary>
/// <value>invoice number.</value>
/// <example>
/// IOC56888
/// </example>
[JsonPropertyName("invoice_number"), JsonPropertyOrder(19)]
public string? InvoiceNumber { get; set; }

/// <summary>
/// license number.
/// </summary>
/// <value>license number.</value>
/// <example>
/// 514785
/// </example>
[JsonPropertyName("license_number"), JsonPropertyOrder(20)]
public string? LicenseNumber { get; set; }

/// <summary>
/// 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.
/// </summary>
/// <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>
[JsonPropertyName("non_machinable"), JsonPropertyOrder(18)]
[JsonPropertyName("non_machinable"), JsonPropertyOrder(21)]
public bool? NonMachinable { get; set; }

/// <summary>
/// Gets or Sets OriginType
/// </summary>
[JsonPropertyName("origin_type"), JsonPropertyOrder(19)]
[JsonPropertyName("origin_type"), JsonPropertyOrder(22)]
public OriginType? OriginType { get; set; }

/// <summary>
/// Enables Saturday delivery, if supported by the carrier.
/// </summary>
/// <value>Enables Saturday delivery, if supported by the carrier.</value>
[JsonPropertyName("saturday_delivery"), JsonPropertyOrder(20)]
[JsonPropertyName("saturday_delivery"), JsonPropertyOrder(23)]
public bool? SaturdayDelivery { get; set; }

/// <summary>
/// Gets or Sets ShipperRelease
/// </summary>
[JsonPropertyName("shipper_release"), JsonPropertyOrder(21)]
[JsonPropertyName("shipper_release"), JsonPropertyOrder(24)]
public bool? ShipperRelease { get; set; }

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

/// <summary>
/// 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.
/// </summary>
/// <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>
[JsonPropertyName("use_ups_ground_freight_pricing"), JsonPropertyOrder(23)]
[JsonPropertyName("use_ups_ground_freight_pricing"), JsonPropertyOrder(26)]
public bool? UseUpsGroundFreightPricing { get; set; }

/// <summary>
/// Gets or Sets WindsorFrameworkDetails
/// </summary>
[JsonPropertyName("windsor_framework_details"), JsonPropertyOrder(24)]
[JsonPropertyName("windsor_framework_details"), JsonPropertyOrder(27)]
public AdvancedShipmentOptionsWindsorFrameworkDetails? WindsorFrameworkDetails { get; set; }


Expand All @@ -209,6 +239,7 @@ public override string ToString()
sb.Append(" BillToCountryCode: ").Append(BillToCountryCode).Append("\n");
sb.Append(" BillToParty: ").Append(BillToParty).Append("\n");
sb.Append(" BillToPostalCode: ").Append(BillToPostalCode).Append("\n");
sb.Append(" CertificateNumber: ").Append(CertificateNumber).Append("\n");
sb.Append(" CollectOnDelivery: ").Append(CollectOnDelivery).Append("\n");
sb.Append(" ContainsAlcohol: ").Append(ContainsAlcohol).Append("\n");
sb.Append(" CustomField1: ").Append(CustomField1).Append("\n");
Expand All @@ -221,6 +252,8 @@ public override string ToString()
sb.Append(" DryIceWeight: ").Append(DryIceWeight).Append("\n");
sb.Append(" FedexFreight: ").Append(FedexFreight).Append("\n");
sb.Append(" FreightClass: ").Append(FreightClass).Append("\n");
sb.Append(" InvoiceNumber: ").Append(InvoiceNumber).Append("\n");
sb.Append(" LicenseNumber: ").Append(LicenseNumber).Append("\n");
sb.Append(" NonMachinable: ").Append(NonMachinable).Append("\n");
sb.Append(" OriginType: ").Append(OriginType).Append("\n");
sb.Append(" SaturdayDelivery: ").Append(SaturdayDelivery).Append("\n");
Expand Down
48 changes: 48 additions & 0 deletions ShipEngineSDK/Model/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,54 @@ public ErrorCode(string value)
public static ErrorCode NoRatesReturned { get; } = new("no_rates_returned");


/// <summary>
/// Enum FileNotFound for value: file_not_found
/// </summary>
public static ErrorCode FileNotFound { get; } = new("file_not_found");


/// <summary>
/// Enum ShippingRuleNotFound for value: shipping_rule_not_found
/// </summary>
public static ErrorCode ShippingRuleNotFound { get; } = new("shipping_rule_not_found");


/// <summary>
/// Enum ServiceNotDetermined for value: service_not_determined
/// </summary>
public static ErrorCode ServiceNotDetermined { get; } = new("service_not_determined");


/// <summary>
/// Enum NoRatesReturned2 for value: no_rates_returned
/// </summary>
public static ErrorCode NoRatesReturned2 { get; } = new("no_rates_returned");


/// <summary>
/// Enum FundingSourceRegistrationInProgress for value: funding_source_registration_in_progress
/// </summary>
public static ErrorCode FundingSourceRegistrationInProgress { get; } = new("funding_source_registration_in_progress");


/// <summary>
/// Enum InsuranceFailure for value: insurance_failure
/// </summary>
public static ErrorCode InsuranceFailure { get; } = new("insurance_failure");


/// <summary>
/// Enum FundingSourceMissingConfiguration for value: funding_source_missing_configuration
/// </summary>
public static ErrorCode FundingSourceMissingConfiguration { get; } = new("funding_source_missing_configuration");


/// <summary>
/// Enum FundingSourceError for value: funding_source_error
/// </summary>
public static ErrorCode FundingSourceError { get; } = new("funding_source_error");


/// <summary>
/// Get a string representation of the current value
/// </summary>
Expand Down
30 changes: 15 additions & 15 deletions ShipEngineSDK/Model/GetTrackingLogFromLabelResponseBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ public partial class GetTrackingLogFromLabelResponseBody
[JsonPropertyName("carrier_status_code"), JsonInclude]
public string? CarrierStatusCode { get; set; }

/// <summary>
/// An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time.
/// </summary>
/// <value>An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time. </value>
/// <example>
/// 2018-09-23T15:00Z
/// </example>
[JsonPropertyName("estimated_delivery_date"), JsonPropertyOrder(2)]
public required DateTimeOffset EstimatedDeliveryDate { get; set; }

/// <summary>
/// The events that have occured during the lifetime of this tracking number.
/// </summary>
Expand All @@ -62,7 +52,7 @@ public partial class GetTrackingLogFromLabelResponseBody
/// <summary>
/// Gets or Sets StatusCode
/// </summary>
[JsonPropertyName("status_code"), JsonPropertyOrder(4)]
[JsonPropertyName("status_code"), JsonPropertyOrder(3)]
public required StatusCode StatusCode { get; set; }

/// <summary>
Expand All @@ -72,7 +62,7 @@ public partial class GetTrackingLogFromLabelResponseBody
/// <example>
/// 1Z932R800392060079
/// </example>
[JsonPropertyName("tracking_number"), JsonPropertyOrder(5)]
[JsonPropertyName("tracking_number"), JsonPropertyOrder(4)]
public required string TrackingNumber { get; set; }

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

/// <summary>
Expand All @@ -92,7 +82,7 @@ public partial class GetTrackingLogFromLabelResponseBody
/// <example>
/// dhl_express
/// </example>
[JsonPropertyName("carrier_code"), JsonPropertyOrder(7)]
[JsonPropertyName("carrier_code"), JsonPropertyOrder(6)]
public string? CarrierCode { get; set; }

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

/// <summary>
/// An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time.
/// </summary>
/// <value>An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) string that represents a date and time. </value>
/// <example>
/// 2018-09-23T15:00Z
/// </example>
[JsonPropertyName("estimated_delivery_date"), JsonPropertyOrder(10)]
public DateTimeOffset? EstimatedDeliveryDate { get; set; }

/// <summary>
/// Exception description
/// </summary>
Expand Down Expand Up @@ -207,7 +207,6 @@ public override string ToString()
sb.Append("class GetTrackingLogFromLabelResponseBody {\n");
#pragma warning disable CS0612 // Type or member is obsolete
sb.Append(" CarrierStatusCode: ").Append(CarrierStatusCode).Append("\n");
sb.Append(" EstimatedDeliveryDate: ").Append(EstimatedDeliveryDate).Append("\n");
sb.Append(" Events: ").Append(Events).Append("\n");
sb.Append(" StatusCode: ").Append(StatusCode).Append("\n");
sb.Append(" TrackingNumber: ").Append(TrackingNumber).Append("\n");
Expand All @@ -216,6 +215,7 @@ public override string ToString()
sb.Append(" CarrierDetailCode: ").Append(CarrierDetailCode).Append("\n");
sb.Append(" CarrierId: ").Append(CarrierId).Append("\n");
sb.Append(" CarrierStatusDescription: ").Append(CarrierStatusDescription).Append("\n");
sb.Append(" EstimatedDeliveryDate: ").Append(EstimatedDeliveryDate).Append("\n");
sb.Append(" ExceptionDescription: ").Append(ExceptionDescription).Append("\n");
sb.Append(" ShipDate: ").Append(ShipDate).Append("\n");
sb.Append(" StatusDescription: ").Append(StatusDescription).Append("\n");
Expand Down
Loading

0 comments on commit c8b1523

Please sign in to comment.