-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
namespace Integration.Core; | ||
public class BulkDto<T> : IDto | ||
public class BulkModel<T> : IRequestModel, IResponseModel | ||
{ | ||
public List<T> Items { get; set; } | ||
Check warning on line 4 in src/Integration.Core/BulkModel.cs GitHub Actions / Build Lib
Check warning on line 4 in src/Integration.Core/BulkModel.cs GitHub Actions / Build Lib
|
||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Integration.Core; | ||
public class IRequestModel : IModel | ||
{ | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Integration.Core; | ||
public interface IResponseModel : IModel | ||
{ | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Integration.Core; | ||
|
||
namespace Integration.Marketplaces.Trendyol.Infrastructure; | ||
public class HepsiburadaIntegrationBase : IntegrationBase | ||
{ | ||
public const string ProdBaseUrl = "https://mpop-sit.hepsiburada.com/"; | ||
public const string StageBaseUrl = "https://mpop-sit.hepsiburada.com/"; | ||
protected readonly string _username; | ||
protected readonly string _password; | ||
protected readonly bool _isInProduction; | ||
|
||
public HepsiburadaIntegrationBase(string username, string password, bool isInProduction = true) | ||
{ | ||
_username = username ?? throw new ArgumentNullException(nameof(username)); | ||
_password = password ?? throw new ArgumentNullException(nameof(password)); | ||
_isInProduction = isInProduction; | ||
} | ||
|
||
public string GetBaseUrl() => _isInProduction ? ProdBaseUrl : StageBaseUrl; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Integration.Core; | ||
using Integration.Marketplaces.Hepsiburada.Infrastructure.ProductIntegration; | ||
using Integration.Marketplaces.Trendyol.Infrastructure; | ||
|
||
public class HepsiburadaProductIntegration : HepsiburadaIntegrationBase, IHepsiburadaProductIntegration, IMarketplaceIntegration | ||
{ | ||
public HepsiburadaProductIntegration(string username, string password, bool isInProduction = true) : base(username, password, isInProduction) | ||
{ | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Integration.Marketplaces.Hepsiburada.Infrastructure.ProductIntegration; | ||
public interface IHepsiburadaProductIntegration | ||
{ | ||
|
||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.