Skip to content

Commit

Permalink
Make helpers internal
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeybusygin committed Aug 17, 2024
1 parent cc16674 commit 8fa0421
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
8 changes: 3 additions & 5 deletions ShippingRates/Helpers/DHLServicesValidator.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System;
using System.Collections.Generic;
using ShippingRates.ShippingProviders;
using System;
using System.Linq;
using System.Text;
using ShippingRates.ShippingProviders;

namespace ShippingRates.Helpers
{
public static class DHLServicesValidator
internal static class DHLServicesValidator
{
public static bool IsServiceValid(char c) =>
DHLProvider.AvailableServices.ContainsKey(char.ToUpperInvariant(c));
Expand Down
5 changes: 1 addition & 4 deletions ShippingRates/Helpers/Extensions/AddressExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ShippingRates.RateServiceWebReference;

namespace ShippingRates.Helpers.Extensions
{
public static class AddressExtensions
internal static class AddressExtensions
{
/// <summary>
/// Get FedEx API address from ShippingRates.Address
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ShippingRates.RateServiceWebReference;
using ShippingRates.RateServiceWebReference;

namespace ShippingRates.Helpers.Extensions
{
/// <summary>
/// Extension methods for RequestedShipment
/// </summary>
public static class RequestedShipmentExtensions
internal static class RequestedShipmentExtensions
{
/// <summary>
/// Calculates the total weight for all packages in the requested shipment
Expand Down
9 changes: 2 additions & 7 deletions ShippingRates/Helpers/Extensions/ShipmentOptionsExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

namespace ShippingRates.Helpers.Extensions
namespace ShippingRates.Helpers.Extensions
{
public static class ShipmentOptionsExtensions
internal static class ShipmentOptionsExtensions
{
public static string GetCurrencyCode(this ShipmentOptions options)
{
Expand Down

0 comments on commit 8fa0421

Please sign in to comment.