-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from easykeys/bug/amazon/shipping/label-gen
Update version to 5.1.0 and enhance shipping providers
- Loading branch information
Showing
5 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mode: Mainline | ||
next-version: 5.0.0 | ||
next-version: 5.1.0 | ||
branches: | ||
feature: | ||
tag: preview | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ public async Task<Shipment> GetRatesAsync(Shipment shipment, CancellationToken c | |
Value = (double)shipment.Packages.Sum(x => x.InsuredValue), | ||
Unit = "USD" | ||
}, | ||
PackageClientReferenceId = "packageClientReferenceId", | ||
PackageClientReferenceId = Guid.NewGuid().ToString(), | ||
Items = new () | ||
{ | ||
new () | ||
|
@@ -124,7 +124,7 @@ public async Task<Shipment> GetRatesAsync(Shipment shipment, CancellationToken c | |
{ | ||
foreach (var error in ex.Result.Errors) | ||
{ | ||
shipment.InternalErrors.Add(error.Message); | ||
shipment.InternalErrors.Add($"{error.Message}-{error.Details}"); | ||
} | ||
|
||
_logger.LogError(ex, $"Error getting rates from Amazon Shipping API: {string.Join(",",ex.Result.Errors)}"); | ||
Check warning on line 130 in src/EasyKeys.Shipping.Amazon.Rates/AmazonShippingRateProvider.cs
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters