Skip to content

Commit

Permalink
v2.1.0 UPS OAuth 2.0 Security Model
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeybusygin committed Jun 30, 2024
1 parent 0e64f05 commit ded31d6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions ShippingRates/ShippingProviders/UPSProviderConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@
namespace ShippingRates.ShippingProviders
{
/// <summary>
/// UPS Provider Configuration
/// </summary>
public class UPSProviderConfiguration
{
/// <summary>
/// UPS Client Id (required)
/// </summary>
public string ClientId { get; set; }
/// <summary>
/// UPS Client Secret (required)
/// </summary>
public string ClientSecret { get; set; }
/// <summary>
/// UPS Account Number (6 chars, required)
/// </summary>
public string AccountNumber { get; set; }
/// <summary>
/// Use production endpoint
/// </summary>
public bool UseProduction { get; set; }
/// <summary>
/// Optional. Service description from GetServiceCodes() values, e.g. "UPS Second Day Air".
/// If omitted, all possible services will be fetched
/// </summary>
public string ServiceDescription { get; set; }
/// <summary>
/// Use retails rates (for shipping from a UPS retail location)
/// </summary>
public bool UseRetailRates { get; set; }
/// <summary>
/// Use daily rates (for customers who have a scheduled pickup and/or an account that provides you with daily rates)
/// </summary>
public bool UseDailyRates { get; set; }
/// <summary>
/// Use negotiated rates (only shippers approved to ship using negotiated rates can use negotiated rates)
/// </summary>
public bool UseNegotiatedRates { get; set; }
}
}
4 changes: 2 additions & 2 deletions ShippingRates/ShippingRates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<TargetFramework>netstandard2.0</TargetFramework>
<Authors>Alexey Busygin, Kyle West</Authors>
<Description>.NET Standard 2.0 wrapper for UPS, FedEx, USPS, and DHL shipping rates APIs. Works with .NET Core 2.0+ and .NET Framework 4.6.1+</Description>
<Copyright>Copyright © 2022 Alexey Busygin, Kyle West</Copyright>
<Copyright>Copyright © 2024 Alexey Busygin, Kyle West</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/alexeybusygin/ShippingRates</PackageProjectUrl>
<PackageTags>ups fedex usps shipping rates .net .net-standard .net-core dhl dhl-ecommerce</PackageTags>
<Version>2.0-beta</Version>
<Version>2.1.0</Version>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# version format
version: 2.0.{build}-beta
version: 2.1.0

image: Visual Studio 2022

Expand Down

0 comments on commit ded31d6

Please sign in to comment.