Skip to content

Commit 8f51154

Browse files
committed
42083 V14 integrations: Shopify
- Rename Project from Core.New to Core - Remove redundant files - Update API return type
1 parent 9a6dbb9 commit 8f51154

File tree

79 files changed

+141
-624
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+141
-624
lines changed

src/Umbraco.Cms.Integrations.Commerce.Shopify.Core.New/Controllers/ProductsController.cs

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/Umbraco.Cms.Integrations.Commerce.Shopify.Core.New/Controllers/ShopifyAuthorizationController.cs

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
using System.Linq;
88
using System.Text;
99
using System.Threading.Tasks;
10-
using Umbraco.Cms.Integrations.Commerce.Shopify.Configuration;
10+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Configuration;
1111
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers;
12-
using Umbraco.Cms.Integrations.Commerce.Shopify.Models.Dtos;
13-
using Umbraco.Cms.Integrations.Commerce.Shopify.Services;
12+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models;
13+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models.Dtos;
14+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Services;
1415

15-
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.New.Api.Management.Controllers
16+
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers
1617
{
1718
[ApiVersion("1.0")]
1819
[ApiExplorerSettings(GroupName = Constants.ManagementApi.GroupName)]
@@ -23,7 +24,7 @@ public CheckConfigurationController(IOptions<ShopifySettings> shopifySettings, I
2324
}
2425

2526
[HttpGet("check-configuration")]
26-
[ProducesResponseType(StatusCodes.Status200OK)]
27+
[ProducesResponseType(typeof(EditorSettings), StatusCodes.Status200OK)]
2728
public ActionResult CheckConfiguration()
2829
{
2930
var setting = ShopifyService.GetApiConfiguration();
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
using System.Linq;
88
using System.Text;
99
using System.Threading.Tasks;
10-
using Umbraco.Cms.Integrations.Commerce.Shopify.Configuration;
10+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Configuration;
1111
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers;
12-
using Umbraco.Cms.Integrations.Commerce.Shopify.Models.Dtos;
13-
using Umbraco.Cms.Integrations.Commerce.Shopify.Services;
12+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models.Dtos;
13+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Services;
1414

15-
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.New.Api.Management.Controllers
15+
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers
1616
{
1717
[ApiVersion("1.0")]
1818
[ApiExplorerSettings(GroupName = Constants.ManagementApi.GroupName)]
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
using System.Linq;
99
using System.Text;
1010
using System.Threading.Tasks;
11-
using Umbraco.Cms.Integrations.Commerce.Shopify.Configuration;
11+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Configuration;
1212
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers;
13-
using Umbraco.Cms.Integrations.Commerce.Shopify.Models.Dtos;
14-
using Umbraco.Cms.Integrations.Commerce.Shopify.Services;
13+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models.Dtos;
14+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Services;
1515

16-
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.New.Api.Management.Controllers
16+
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers
1717
{
1818
[ApiVersion("1.0")]
1919
[ApiExplorerSettings(GroupName = Constants.ManagementApi.GroupName)]
@@ -24,7 +24,7 @@ public GetAuthorizationUrlController(IOptions<ShopifySettings> shopifySettings,
2424
}
2525

2626
[HttpGet("get-authorization-url")]
27-
[ProducesResponseType(StatusCodes.Status200OK)]
27+
[ProducesResponseType(typeof(string), StatusCodes.Status200OK)]
2828
public ActionResult GetAuthorizationUrl()
2929
{
3030
var authUrl = ShopifyAuthorizationService.GetAuthorizationUrl();
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
using System.Linq;
88
using System.Text;
99
using System.Threading.Tasks;
10-
using Umbraco.Cms.Integrations.Commerce.Shopify.Configuration;
10+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Configuration;
1111
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers;
12-
using Umbraco.Cms.Integrations.Commerce.Shopify.Models.Dtos;
13-
using Umbraco.Cms.Integrations.Commerce.Shopify.Services;
12+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models.Dtos;
13+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Services;
1414

15-
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.New.Api.Management.Controllers
15+
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers
1616
{
1717
[ApiVersion("1.0")]
1818
[ApiExplorerSettings(GroupName = Constants.ManagementApi.GroupName)]
@@ -22,7 +22,7 @@ public GetListByIdsController(IOptions<ShopifySettings> shopifySettings, IShopif
2222
{
2323
}
2424

25-
[HttpPost("get-list-by-ids")]
25+
[HttpGet("get-list-by-ids")]
2626
[ProducesResponseType(typeof(ResponseDto<ProductsListDto>), StatusCodes.Status200OK)]
2727
public async Task<IActionResult> GetListByIds([FromBody] RequestDto dto)
2828
{
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
using System.Linq;
88
using System.Text;
99
using System.Threading.Tasks;
10-
using Umbraco.Cms.Integrations.Commerce.Shopify.Configuration;
10+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Configuration;
1111
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers;
12-
using Umbraco.Cms.Integrations.Commerce.Shopify.Models.Dtos;
13-
using Umbraco.Cms.Integrations.Commerce.Shopify.Services;
12+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models.Dtos;
13+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Services;
1414

15-
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.New.Api.Management.Controllers
15+
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers
1616
{
1717
[ApiVersion("1.0")]
1818
[ApiExplorerSettings(GroupName = Constants.ManagementApi.GroupName)]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
using System.Linq;
88
using System.Text;
99
using System.Threading.Tasks;
10-
using Umbraco.Cms.Integrations.Commerce.Shopify.Configuration;
10+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Configuration;
1111
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers;
12-
using Umbraco.Cms.Integrations.Commerce.Shopify.Models.Dtos;
13-
using Umbraco.Cms.Integrations.Commerce.Shopify.Services;
12+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models.Dtos;
13+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Services;
1414

15-
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.New.Api.Management.Controllers
15+
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers
1616
{
1717
[ApiVersion("1.0")]
1818
[ApiExplorerSettings(GroupName = Constants.ManagementApi.GroupName)]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
using System.Linq;
88
using System.Text;
99
using System.Threading.Tasks;
10-
using Umbraco.Cms.Integrations.Commerce.Shopify.Configuration;
10+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Configuration;
1111
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers;
12-
using Umbraco.Cms.Integrations.Commerce.Shopify.Models.Dtos;
13-
using Umbraco.Cms.Integrations.Commerce.Shopify.Services;
12+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Models.Dtos;
13+
using Umbraco.Cms.Integrations.Commerce.Shopify.Core.Services;
1414

15-
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.New.Api.Management.Controllers
15+
namespace Umbraco.Cms.Integrations.Commerce.Shopify.Core.Api.Management.Controllers
1616
{
1717
[ApiVersion("1.0")]
1818
[ApiExplorerSettings(GroupName = Constants.ManagementApi.GroupName)]

0 commit comments

Comments
 (0)