Skip to content

Commit 4d30a33

Browse files
Reverted setting class renaming
1 parent 417df0c commit 4d30a33

14 files changed

Lines changed: 32 additions & 32 deletions

src/Plugins/SmartStore.PayPal/Controllers/PayPalDirectController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public class PayPalDirectController : PaymentControllerBase
3030
private readonly IPaymentService _paymentService;
3131
private readonly IOrderService _orderService;
3232
private readonly IOrderProcessingService _orderProcessingService;
33-
private readonly PayPalDirectSettings _paypalDirectSettings;
33+
private readonly PayPalDirectPaymentSettings _paypalDirectSettings;
3434
private readonly PaymentSettings _paymentSettings;
3535
private readonly ILocalizationService _localizationService;
3636

3737
public PayPalDirectController(ISettingService settingService,
3838
IPaymentService paymentService, IOrderService orderService,
3939
IOrderProcessingService orderProcessingService,
40-
PayPalDirectSettings paypalDirectSettings,
40+
PayPalDirectPaymentSettings paypalDirectSettings,
4141
PaymentSettings paymentSettings, ILocalizationService localizationService,
4242
IComponentContext ctx)
4343
{

src/Plugins/SmartStore.PayPal/Controllers/PayPalExpressController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class PayPalExpressController : PaymentControllerBase
4242
private readonly IOrderService _orderService;
4343
private readonly IOrderProcessingService _orderProcessingService;
4444
private readonly ILogger _logger;
45-
private readonly PayPalExpressSettings _payPalExpressPaymentSettings;
45+
private readonly PayPalExpressPaymentSettings _payPalExpressPaymentSettings;
4646
private readonly PaymentSettings _paymentSettings;
4747
private readonly ILocalizationService _localizationService;
4848
private readonly IWorkContext _workContext;
@@ -58,7 +58,7 @@ public class PayPalExpressController : PaymentControllerBase
5858
public PayPalExpressController(ISettingService settingService,
5959
IPaymentService paymentService, IOrderService orderService,
6060
IOrderProcessingService orderProcessingService,
61-
ILogger logger, PayPalExpressSettings PayPalExpressPaymentSettings,
61+
ILogger logger, PayPalExpressPaymentSettings PayPalExpressPaymentSettings,
6262
PaymentSettings paymentSettings, ILocalizationService localizationService,
6363
IWorkContext workContext, OrderSettings orderSettings,
6464
ICurrencyService currencyService, CurrencySettings currencySettings,

src/Plugins/SmartStore.PayPal/Controllers/PayPalStandardController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class PayPalStandardController : PaymentControllerBase
3131
private readonly IStoreContext _storeContext;
3232
private readonly IWorkContext _workContext;
3333
private readonly IWebHelper _webHelper;
34-
private readonly PayPalStandardSettings _paypalStandardSettings;
34+
private readonly PayPalStandardPaymentSettings _paypalStandardSettings;
3535
private readonly PaymentSettings _paymentSettings;
3636
private readonly ILocalizationService _localizationService;
3737

@@ -41,7 +41,7 @@ public PayPalStandardController(ISettingService settingService,
4141
IStoreContext storeContext,
4242
IWorkContext workContext,
4343
IWebHelper webHelper,
44-
PayPalStandardSettings paypalStandardSettings,
44+
PayPalStandardPaymentSettings paypalStandardSettings,
4545
PaymentSettings paymentSettings,
4646
ILocalizationService localizationService)
4747
{

src/Plugins/SmartStore.PayPal/Plugin.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ public Plugin(
2525

2626
public override void Install()
2727
{
28-
var paypalExpressSettings = new PayPalExpressSettings()
28+
var paypalExpressSettings = new PayPalExpressPaymentSettings()
2929
{
3030
UseSandbox = true,
3131
TransactMode = TransactMode.Authorize
3232
};
33-
_settingService.SaveSetting<PayPalExpressSettings>(paypalExpressSettings);
33+
_settingService.SaveSetting<PayPalExpressPaymentSettings>(paypalExpressSettings);
3434

35-
var paypalDirectSettings = new PayPalDirectSettings()
35+
var paypalDirectSettings = new PayPalDirectPaymentSettings()
3636
{
3737
TransactMode = TransactMode.Authorize,
3838
UseSandbox = true,
3939
};
40-
_settingService.SaveSetting<PayPalDirectSettings>(paypalDirectSettings);
40+
_settingService.SaveSetting<PayPalDirectPaymentSettings>(paypalDirectSettings);
4141

42-
var paypalStandardSettings = new PayPalStandardSettings()
42+
var paypalStandardSettings = new PayPalStandardPaymentSettings()
4343
{
4444
UseSandbox = true,
4545
PdtValidateOrderTotal = true,
4646
EnableIpn = true,
4747
};
48-
_settingService.SaveSetting<PayPalStandardSettings>(paypalStandardSettings);
48+
_settingService.SaveSetting<PayPalStandardPaymentSettings>(paypalStandardSettings);
4949

5050
_localizationService.ImportPluginResourcesFromXml(this.PluginDescriptor);
5151

@@ -54,9 +54,9 @@ public override void Install()
5454

5555
public override void Uninstall()
5656
{
57-
_settingService.DeleteSetting<PayPalExpressSettings>();
58-
_settingService.DeleteSetting<PayPalDirectSettings>();
59-
_settingService.DeleteSetting<PayPalStandardSettings>();
57+
_settingService.DeleteSetting<PayPalExpressPaymentSettings>();
58+
_settingService.DeleteSetting<PayPalDirectPaymentSettings>();
59+
_settingService.DeleteSetting<PayPalStandardPaymentSettings>();
6060

6161
_localizationService.DeleteLocaleStringResources(PluginDescriptor.ResourceRootKey);
6262

src/Plugins/SmartStore.PayPal/Providers/PayPalDirectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace SmartStore.PayPal
3434
[SystemName("Payments.PayPalDirect")]
3535
[FriendlyName("PayPal Direct")]
3636
[DisplayOrder(1)]
37-
public class PayPalDirectProvider : PayPalProviderBase<PayPalDirectSettings>
37+
public class PayPalDirectProvider : PayPalProviderBase<PayPalDirectPaymentSettings>
3838
{
3939
#region Fields
4040

src/Plugins/SmartStore.PayPal/Providers/PayPalExpressProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace SmartStore.PayPal
3232
[SystemName("Payments.PayPalExpress")]
3333
[FriendlyName("PayPal Express")]
3434
[DisplayOrder(0)]
35-
public partial class PayPalExpress : PayPalProviderBase<PayPalExpressSettings>
35+
public partial class PayPalExpress : PayPalProviderBase<PayPalExpressPaymentSettings>
3636
{
3737
private readonly ICurrencyService _currencyService;
3838
private readonly CurrencySettings _currencySettings;

src/Plugins/SmartStore.PayPal/Providers/PayPalStandardProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public partial class PayPalStandardProvider : PaymentPluginBase, IConfigurable
4646
private readonly ICheckoutAttributeParser _checkoutAttributeParser;
4747
private readonly ITaxService _taxService;
4848
private readonly HttpContextBase _httpContext;
49-
private readonly PayPalStandardSettings _paypalStandardSettings;
49+
private readonly PayPalStandardPaymentSettings _paypalStandardSettings;
5050
private readonly ICommonServices _commonServices;
5151
private readonly ILogger _logger;
5252

@@ -60,7 +60,7 @@ public PayPalStandardProvider(ICurrencyService currencyService,
6060
IOrderTotalCalculationService orderTotalCalculationService,
6161
ICheckoutAttributeParser checkoutAttributeParser,
6262
ITaxService taxService,
63-
PayPalStandardSettings paypalStandardSettings,
63+
PayPalStandardPaymentSettings paypalStandardSettings,
6464
ICommonServices commonServices,
6565
ILogger logger)
6666
{

src/Plugins/SmartStore.PayPal/Services/PayPalHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public static CreditCardTypeType GetPaypalCreditCardType(string creditCardType)
212212
return creditCardTypeType;
213213
}
214214

215-
public static PaymentActionCodeType GetPaymentAction(PayPalExpressSettings payPalExpressPaymentSettings)
215+
public static PaymentActionCodeType GetPaymentAction(PayPalExpressPaymentSettings payPalExpressPaymentSettings)
216216
{
217217
if (payPalExpressPaymentSettings.TransactMode == TransactMode.Authorize)
218218
{

src/Plugins/SmartStore.PayPal/Settings/PayPalSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ public abstract class PayPalApiSettingsBase : PayPalSettingsBase
2424
public string Signature { get; set; }
2525
}
2626

27-
public class PayPalDirectSettings : PayPalApiSettingsBase, ISettings
27+
public class PayPalDirectPaymentSettings : PayPalApiSettingsBase, ISettings
2828
{
2929
}
3030

31-
public class PayPalExpressSettings : PayPalApiSettingsBase, ISettings
31+
public class PayPalExpressPaymentSettings : PayPalApiSettingsBase, ISettings
3232
{
3333
/// <summary>
3434
/// Determines whether the checkout button is displayed beneath the cart
@@ -56,7 +56,7 @@ public class PayPalExpressSettings : PayPalApiSettingsBase, ISettings
5656
public decimal DefaultShippingPrice { get; set; }
5757
}
5858

59-
public class PayPalStandardSettings : PayPalSettingsBase, ISettings
59+
public class PayPalStandardPaymentSettings : PayPalSettingsBase, ISettings
6060
{
6161
public string BusinessEmail { get; set; }
6262
public string PdtToken { get; set; }

src/Plugins/SmartStore.Shipping/Controllers/ByTotalController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ByTotalController : PluginControllerBase
2020
private readonly IStoreService _storeService;
2121
private readonly ISettingService _settingService;
2222
private readonly IShippingByTotalService _shippingByTotalService;
23-
private readonly ByTotalSettings _shippingByTotalSettings;
23+
private readonly ShippingByTotalSettings _shippingByTotalSettings;
2424
private readonly ICountryService _countryService;
2525
private readonly ICurrencyService _currencyService;
2626
private readonly CurrencySettings _currencySettings;
@@ -30,7 +30,7 @@ public ByTotalController(IShippingService shippingService,
3030
IStoreService storeService,
3131
ISettingService settingService,
3232
IShippingByTotalService shippingByTotalService,
33-
ByTotalSettings shippingByTotalSettings,
33+
ShippingByTotalSettings shippingByTotalSettings,
3434
ICountryService countryService,
3535
ICurrencyService currencyService,
3636
CurrencySettings currencySettings,

0 commit comments

Comments
 (0)