Skip to content

Commit 6fd0285

Browse files
committed
Updated naming conventions
1 parent f0bc99f commit 6fd0285

13 files changed

+43
-37
lines changed

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/currency.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
}
1515

1616
angular.module("umbraco")
17-
.controller("UmbracoForms.Integrations.Commerce.emerchantpay.CurrencyController", CurrencyController);
17+
.controller("UmbracoForms.Integrations.Commerce.Emerchantpay.CurrencyController", CurrencyController);

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/currency.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div ng-controller="UmbracoForms.Integrations.Commerce.emerchantpay.CurrencyController as vm">
1+
<div ng-controller="UmbracoForms.Integrations.Commerce.Emerchantpay.CurrencyController as vm">
22

33
<div>
44
<select ng-model="vm.selectedCurrency" ng-click="vm.saveCurrency()">

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/customer-details-mapper.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@
6868
}
6969

7070
angular.module("umbraco")
71-
.controller("UmbracoForms.Integrations.Commerce.emerchantpay.CustomerDetailsMapperController", CustomerDetailsMapperController);
71+
.controller("UmbracoForms.Integrations.Commerce.Emerchantpay.CustomerDetailsMapperController", CustomerDetailsMapperController);

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/customer-details-mapper.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div ng-controller="UmbracoForms.Integrations.Commerce.emerchantpay.CustomerDetailsMapperController as vm">
1+
<div ng-controller="UmbracoForms.Integrations.Commerce.Emerchantpay.CustomerDetailsMapperController as vm">
22

33
<div>
44
<select ng-model="vm.selectedCustomerProperty">

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/emerchantpay.resource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function emerchantpayResource($http, umbRequestHelper) {
22

3-
const apiEndpoint = "backoffice/UmbracoFormsIntegrationsCommerceEmerchantpay/emerchantpay";
3+
const apiEndpoint = "backoffice/UmbracoFormsIntegrationsCommerceEmerchantpay/Emerchantpay";
44

55
return {
66
isAccountAvailable: function () {

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/field-picker.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
}
2222

2323
angular.module("umbraco")
24-
.controller("UmbracoForms.Integrations.Commerce.emerchantpay.FieldPickerController", FieldPickerController);
24+
.controller("UmbracoForms.Integrations.Commerce.Emerchantpay.FieldPickerController", FieldPickerController);

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/field-picker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div ng-controller="UmbracoForms.Integrations.Commerce.emerchantpay.FieldPickerController as vm">
1+
<div ng-controller="UmbracoForms.Integrations.Commerce.Emerchantpay.FieldPickerController as vm">
22

33
<div>
44
<select ng-model="vm.selectedField" ng-click="vm.saveField()">
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"javascript": [
3-
"~/App_Plugins/UmbracoForms.Integrations/Commerce/emerchantpay/customer-details-mapper.controller.js",
4-
"~/App_Plugins/UmbracoForms.Integrations/Commerce/emerchantpay/currency.controller.js",
5-
"~/App_Plugins/UmbracoForms.Integrations/Commerce/emerchantpay/emerchantpay.resource.js",
6-
"~/App_Plugins/UmbracoForms.Integrations/Commerce/emerchantpay/emerchantpay.service.js",
7-
"~/App_Plugins/UmbracoForms.Integrations/Commerce/emerchantpay/field-picker.controller.js"
3+
"~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/customer-details-mapper.controller.js",
4+
"~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/currency.controller.js",
5+
"~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/emerchantpay.resource.js",
6+
"~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/emerchantpay.service.js",
7+
"~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/field-picker.controller.js"
88
],
99
"css": [ "" ]
1010
}

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/Constants.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ public class Constants
77

88
public static class Configuration
99
{
10-
public const string Settings = "Umbraco:Forms:Integrations:Commerce:eMerchantPay:Settings";
10+
public const string Settings = "Umbraco:Forms:Integrations:Commerce:Emerchantpay:Settings";
1111

12-
public const string GatewayBaseUrlKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.GatewayBaseurl";
12+
public const string GatewayBaseUrlKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.GatewayBaseurl";
1313

14-
public const string WpfUrlKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.WpfUrl";
14+
public const string WpfUrlKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.WpfUrl";
1515

16-
public const string UsernameKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.Username";
16+
public const string UsernameKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.Username";
1717

18-
public const string PasswordKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.Password";
18+
public const string PasswordKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.Password";
1919

20-
public const string SupplierKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.Supplier";
20+
public const string SupplierKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.Supplier";
2121

22-
public const string UsageKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.Usage";
22+
public const string UsageKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.Usage";
2323

24-
public const string CurrenciesKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.Currencies";
24+
public const string CurrenciesKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.Currencies";
2525

26-
public const string TransactionTypesKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.TransactionTypes";
26+
public const string TransactionTypesKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.TransactionTypes";
2727

28-
public const string MappingFieldsKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.MappingFields";
28+
public const string MappingFieldsKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.MappingFields";
2929

30-
public const string UmbracoBaseUrlKey = "Umbraco.Forms.Integrations.Commerce.eMerchantPay.UmbracoBaseUrl";
30+
public const string UmbracoBaseUrlKey = "Umbraco.Forms.Integrations.Commerce.Emerchantpay.UmbracoBaseUrl";
3131
}
3232

3333
public static class ErrorCode

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/PaymentProviderWorkflow.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,27 @@ public class PaymentProviderWorkflow : WorkflowType
5151

5252
[Core.Attributes.Setting("Currency",
5353
Description = "Payment currency",
54-
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/currency.html")]
54+
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/currency.html")]
5555
public string Currency { get; set; }
5656

5757
[Core.Attributes.Setting("Number of Items",
5858
Description = "Map number of items with form field. If selected, final amount will be Amount x NumberOfItems.",
59-
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/field-picker.html")]
59+
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/field-picker.html")]
6060
public string NumberOfItems { get; set; }
6161

6262
[Core.Attributes.Setting("Record Status",
6363
Description = "Map payment record status with form field",
64-
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/field-picker.html")]
64+
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/field-picker.html")]
6565
public string RecordStatus { get; set; }
6666

6767
[Core.Attributes.Setting("Record Payment Unique ID",
6868
Description = "Map payment unique ID with form field",
69-
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/field-picker.html")]
69+
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/field-picker.html")]
7070
public string UniqueId { get; set; }
7171

7272
[Core.Attributes.Setting("Customer Details",
7373
Description = "Map customer details with form fields",
74-
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/eMerchantPay/customer-details-mapper.html")]
74+
View = "~/App_Plugins/UmbracoForms.Integrations/Commerce/Emerchantpay/customer-details-mapper.html")]
7575
public string CustomerDetailsMappings { get; set; }
7676

7777
[Core.Attributes.Setting("Success URL",
@@ -104,8 +104,8 @@ public PaymentProviderWorkflow(IHttpContextAccessor httpContextAccessor,
104104
#endif
105105
{
106106
Id = new Guid(Constants.WorkflowId);
107-
Name = "eMerchantPay Gateway";
108-
Description = "eMerchantPay provider handling form-based payments.";
107+
Name = "emerchantpay Gateway";
108+
Description = "emerchantpay provider handling form-based payments.";
109109
Icon = "icon-multiple-credit-cards";
110110

111111
_consumerService = consumerService;

0 commit comments

Comments
 (0)