Skip to content

Commit 4559056

Browse files
committed
Merge branch 'main' into 3.0.0
2 parents 62d5226 + d491920 commit 4559056

File tree

12 files changed

+130
-11
lines changed

12 files changed

+130
-11
lines changed

CHANGELOG.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,43 @@ Fixed handling of No Content responses
173173
multiple modifiers to be added. For example, a modifier could be added at the global level that applies to all requests and then
174174
another modifier can be added for a single request.
175175

176+
## 2.3.1
177+
178+
### Added
179+
180+
- Added license number, invoice number, and certificate number to advanced options
181+
182+
## 2.3.2
183+
184+
### Added
185+
186+
- Added funding_source and parcelguard to insurance provider enumeration
187+
188+
## 2.3.3
189+
190+
### Changed
191+
192+
- update System.Text.Json to latest version 8.0.5
193+
194+
## 2.3.4
195+
196+
### Added
197+
198+
- Added error code MultipackageNotSupported
199+
200+
## 2.3.5
201+
202+
### Added
203+
204+
- Added error code FundingSourceMissingConfiguration
205+
- Added error code FundingSourceError
206+
207+
## 2.3.6
208+
209+
### Added
210+
211+
- Added SP code TrackingStatusCode
212+
176213
## 3.0.0-beta.1
177214

178215
### Added
@@ -249,4 +286,4 @@ Fixed handling of No Content responses
249286

250287
### Updated
251288

252-
- Marked v2 methods as obsolete
289+
- Marked v2 methods as obsolete

ShipEngineSDK/Enums/ErrorCode.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,5 +261,23 @@ public enum ErrorCode
261261
/// </summary>
262262
[EnumMember(Value = "webhook_event_type_conflict")]
263263
WebhookEventTypeConflict,
264+
265+
/// <summary>
266+
/// Funding source isnt properly configured and can't be used.
267+
/// </summary>
268+
[EnumMember(Value = "funding_source_missing_configuration")]
269+
FundingSourceMissingConfiguration,
270+
271+
/// <summary>
272+
/// There was an unexpected problem with a funding source.
273+
/// </summary>
274+
[EnumMember(Value = "funding_source_error")]
275+
FundingSourceError,
276+
277+
/// <summary>
278+
/// The attempted operation does not support multiple packages.
279+
/// </summary>
280+
[EnumMember(Value = "multipackage_not_supported")]
281+
MultipackageNotSupported,
264282
}
265283
}

ShipEngineSDK/Enums/ErrorType.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ public enum ErrorType
4141
/// An unknown or unexpected error occurred in our system. Or an error occurred that has not yet been assigned a specific error_type. If you receive persistent system errors, then please contact our support or check our API status page to see if there's a known issue.
4242
/// </summary>/
4343
[EnumMember(Value = "system")]
44-
System
44+
System,
45+
46+
/// <summary>
47+
/// General wallet error type.
48+
/// </summary>/
49+
[EnumMember(Value = "wallet")]
50+
Wallet,
51+
52+
/// <summary>
53+
/// General funding sources error type.
54+
/// </summary>/
55+
[EnumMember(Value = "funding_sources")]
56+
FundingSources
4557
}
4658
}

ShipEngineSDK/Models/Dto/Common/AdvancedShipmentOptions.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,28 @@ public class AdvancedShipmentOptions
100100
public OriginType? OriginType { get; set; }
101101

102102
/// <summary>
103-
/// Indicates if this is a shipper relesae
103+
/// Indicates if this is a shipper release
104104
/// </summary>
105105
public bool? ShipperRelease { get; set; }
106106

107107
/// <summary>
108108
/// Defer payment until package is delivered, instead of when it is ordered.
109109
/// </summary>
110110
public CollectOnDelivery? CollectOnDelivery { get; set; }
111+
112+
/// <summary>
113+
/// License number for customs declaration
114+
/// </summary>
115+
public string? LicenseNumber { get; set; }
116+
117+
/// <summary>
118+
/// Invoice number for customs declaration
119+
/// </summary>
120+
public string? InvoiceNumber { get; set; }
121+
122+
/// <summary>
123+
/// Certificate number for customs declaration
124+
/// </summary>
125+
public string? CertificateNumber { get; set; }
111126
}
112127
}

ShipEngineSDK/Models/Dto/Common/Enums/InsuranceProvider.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ public enum InsuranceProvider
2929
/// The package is insured by a third-party insurance service, outside of ShipEngine.
3030
/// </summary>
3131
[EnumMember(Value = "third_party")]
32-
ThirdParty
32+
ThirdParty,
33+
34+
/// <summary>
35+
/// This option will assign the insurance provider available with ShipEngine Carriers to the shipment (currently ParcelGuard). The response will auto-populate the insurance_provider field with parcelguard.
36+
/// </summary>
37+
[EnumMember(Value = "funding_source")]
38+
FundingSource,
39+
40+
/// <summary>
41+
/// This option will assign ParcelGuard as the insurance provider for the shipment. Using this value is functionally the same as using the 'funding_source' value.
42+
/// </summary>
43+
[EnumMember(Value = "parcelguard")]
44+
ParcelGuard
3345
}
3446
}

ShipEngineSDK/Models/Dto/Common/Enums/TrackingStatusCode.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ public enum TrackingStatusCode
5252
/// Not Yet In System
5353
/// </summary>
5454
[EnumMember(Value = "NY")]
55-
NY
55+
NY,
56+
57+
/// <summary>
58+
/// Delivered To The Collection Location
59+
/// </summary>
60+
[EnumMember(Value = "SP")]
61+
SP
5662

5763
}
5864
}

ShipEngineSDK/PublicAPI.Shipped.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ ShipEngineSDK.ErrorCode.InvalidStatus = 20 -> ShipEngineSDK.ErrorCode
857857
ShipEngineSDK.ErrorCode.InvalidStringLength = 21 -> ShipEngineSDK.ErrorCode
858858
ShipEngineSDK.ErrorCode.LabelImagesNotSupported = 22 -> ShipEngineSDK.ErrorCode
859859
ShipEngineSDK.ErrorCode.MeterFailure = 23 -> ShipEngineSDK.ErrorCode
860+
ShipEngineSDK.ErrorCode.MultipackageNotSupported = 39 -> ShipEngineSDK.ErrorCode
860861
ShipEngineSDK.ErrorCode.NoRatesReturned = 25 -> ShipEngineSDK.ErrorCode
861862
ShipEngineSDK.ErrorCode.NotFound = 24 -> ShipEngineSDK.ErrorCode
862863
ShipEngineSDK.ErrorCode.RateLimitExceeded = 26 -> ShipEngineSDK.ErrorCode
@@ -872,6 +873,8 @@ ShipEngineSDK.ErrorCode.Unspecified = 35 -> ShipEngineSDK.ErrorCode
872873
ShipEngineSDK.ErrorCode.VerificationFailure = 36 -> ShipEngineSDK.ErrorCode
873874
ShipEngineSDK.ErrorCode.WarehouseConflict = 37 -> ShipEngineSDK.ErrorCode
874875
ShipEngineSDK.ErrorCode.WebhookEventTypeConflict = 38 -> ShipEngineSDK.ErrorCode
876+
ShipEngineSDK.ErrorCode.FundingSourceMissingConfiguration = 39 -> ShipEngineSDK.ErrorCode
877+
ShipEngineSDK.ErrorCode.FundingSourceError = 40 -> ShipEngineSDK.ErrorCode
875878
ShipEngineSDK.ErrorSource
876879
ShipEngineSDK.ErrorSource.Carrier = 1 -> ShipEngineSDK.ErrorSource
877880
ShipEngineSDK.ErrorSource.OrderSource = 2 -> ShipEngineSDK.ErrorSource
@@ -1592,4 +1595,4 @@ virtual ShipEngineSDK.ShipEngineMock.VoidLabelWithLabelId(string! labelId, ShipE
15921595
~ShipEngineSDK.ValidateAddresses.Result.NormalizedAddress.get -> ShipEngineSDK.Common.Address
15931596
~ShipEngineSDK.ValidateAddresses.Result.NormalizedAddress.set -> void
15941597
~ShipEngineSDK.ValidateAddresses.Result.OriginalAddress.get -> ShipEngineSDK.Common.Address
1595-
~ShipEngineSDK.ValidateAddresses.Result.OriginalAddress.set -> void
1598+
~ShipEngineSDK.ValidateAddresses.Result.OriginalAddress.set -> void

ShipEngineSDK/PublicAPI.Unshipped.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ ShipEngineSDK.Enums.ErrorCode.Unspecified = 35 -> ShipEngineSDK.Enums.ErrorCode
433433
ShipEngineSDK.Enums.ErrorCode.VerificationFailure = 36 -> ShipEngineSDK.Enums.ErrorCode
434434
ShipEngineSDK.Enums.ErrorCode.WarehouseConflict = 37 -> ShipEngineSDK.Enums.ErrorCode
435435
ShipEngineSDK.Enums.ErrorCode.WebhookEventTypeConflict = 38 -> ShipEngineSDK.Enums.ErrorCode
436+
ShipEngineSDK.Enums.ErrorCode.FundingSourceMissingConfiguration = 39 -> ShipEngineSDK.Enums.ErrorCode
437+
ShipEngineSDK.Enums.ErrorCode.FundingSourceError = 40 -> ShipEngineSDK.Enums.ErrorCode
436438
ShipEngineSDK.Enums.ErrorSource
437439
ShipEngineSDK.Enums.ErrorSource.Carrier = 1 -> ShipEngineSDK.Enums.ErrorSource
438440
ShipEngineSDK.Enums.ErrorSource.OrderSource = 2 -> ShipEngineSDK.Enums.ErrorSource
@@ -5532,6 +5534,8 @@ static ShipEngineSDK.Model.ErrorCode.Unspecified.get -> ShipEngineSDK.Model.Erro
55325534
static ShipEngineSDK.Model.ErrorCode.VerificationFailure.get -> ShipEngineSDK.Model.ErrorCode!
55335535
static ShipEngineSDK.Model.ErrorCode.WarehouseConflict.get -> ShipEngineSDK.Model.ErrorCode!
55345536
static ShipEngineSDK.Model.ErrorCode.WebhookEventTypeConflict.get -> ShipEngineSDK.Model.ErrorCode!
5537+
static ShipEngineSDK.Model.ErrorCode.FundingSourceMissingConfiguration.get -> ShipEngineSDK.Model.ErrorCode!
5538+
static ShipEngineSDK.Model.ErrorCode.FundingSourceError.get -> ShipEngineSDK.Model.ErrorCode!
55355539
static ShipEngineSDK.Model.ErrorSource.Carrier.get -> ShipEngineSDK.Model.ErrorSource!
55365540
static ShipEngineSDK.Model.ErrorSource.OrderSource.get -> ShipEngineSDK.Model.ErrorSource!
55375541
static ShipEngineSDK.Model.ErrorSource.Shipengine.get -> ShipEngineSDK.Model.ErrorSource!

generation/swagger.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5665,7 +5665,9 @@
56655665
"validation",
56665666
"security",
56675667
"system",
5668-
"integrations"
5668+
"integrations",
5669+
"wallet",
5670+
"funding_sources"
56695671
],
56705672
"description": "The type of error\n"
56715673
},

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"ignoreFileOverride": "./.openapi-generator-ignore",
1515
"library": "generichost",
1616
"additionalProperties": {
17-
"packageVersion": "3.0.0-beta.14",
17+
"packageVersion": "3.0.0-beta.17",
1818
"targetFramework": "netstandard2.0",
1919
"validatable": false,
2020
"sourceFolder": "",

0 commit comments

Comments
 (0)