diff --git a/.github/workflows/integration-core.yml b/.github/workflows/integration-core.yml
index 83711e6..94eb82a 100644
--- a/.github/workflows/integration-core.yml
+++ b/.github/workflows/integration-core.yml
@@ -18,7 +18,7 @@ env:
repo: Integration
project_path: ./src/Integration.Core/
- nupkg_path: ./src/Integration.Core/bin/Release/Integration.Core.12.12.23.1.0.0.nupkg
+ nupkg_path: ./src/Integration.Core/bin/Release/Integration.Core.1.0.0.nupkg
nupkg_source: 'github'
nupkg_secret: ${{ secrets.GITHUB_TOKEN }}
diff --git a/src/Integration.Core/IFilterBuilder.cs b/src/Integration.Core/IFilterBuilder.cs
new file mode 100644
index 0000000..57aa508
--- /dev/null
+++ b/src/Integration.Core/IFilterBuilder.cs
@@ -0,0 +1,5 @@
+namespace Integration.Core;
+public interface IFilterBuilder
+{
+
+}
\ No newline at end of file
diff --git a/src/Integration.Core/Integration.Core.csproj b/src/Integration.Core/Integration.Core.csproj
index c6d2779..656f8d3 100644
--- a/src/Integration.Core/Integration.Core.csproj
+++ b/src/Integration.Core/Integration.Core.csproj
@@ -4,7 +4,7 @@
net8.0
enable
enable
- Integration.Core.12.12.23
+ Integration.Core
1.0.0
onurkanbakirci
onurkanbakirci
diff --git a/src/Marketplaces/Integration.Marketplaces.Trendyol/Dtos/Claim/GetApproveClaimLineItemsDto.cs b/src/Marketplaces/Integration.Marketplaces.Trendyol/Dtos/Claim/GetApproveClaimLineItemsDto.cs
new file mode 100644
index 0000000..a879abd
--- /dev/null
+++ b/src/Marketplaces/Integration.Marketplaces.Trendyol/Dtos/Claim/GetApproveClaimLineItemsDto.cs
@@ -0,0 +1,7 @@
+using Integration.Core;
+namespace Integration.Marketplaces.Trendyol.Dtos.Claim;
+public class ApproveClaimLineItemsDto : IDto
+{
+ public List ClaimLineItemIdList { get; set; }
+ public object Params { get; set; }//TODO: Check this
+}
\ No newline at end of file
diff --git a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/Helpers/ClaimFilterBuilder.cs b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/Helpers/ClaimFilterBuilder.cs
index 8fd9de0..e7be022 100644
--- a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/Helpers/ClaimFilterBuilder.cs
+++ b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/Helpers/ClaimFilterBuilder.cs
@@ -1,5 +1,7 @@
+using Integration.Core;
+
namespace Integration.Marketplaces.Trendyol.Infrastructure.ClaimIntegration.Helpers;
-public class ClaimFilterBuilder
+public class ClaimFilterBuilder : IFilterBuilder
{
private string _filterQuery;
public ClaimFilterBuilder()
diff --git a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/TrendyolClaimIntegration.cs b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/TrendyolClaimIntegration.cs
index a22de3f..79ac983 100644
--- a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/TrendyolClaimIntegration.cs
+++ b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ClaimIntegration/TrendyolClaimIntegration.cs
@@ -16,13 +16,13 @@ public TrendyolClaimIntegration(string supplierId, string apiKey, string apiSecr
return await InvokeRequestAsync((client) => client.GetAsync(GetClaimsUrl() + filterQuery));
}
- public async Task<> CreateClaimAsync(AddClaimDto addClaimDto)
+ public async Task CreateClaimAsync(AddClaimDto addClaimDto)
{
- return await InvokeRequestAsync<>((client, requestBody) => client.PostAsync(GetCreateClaimUrl(), requestBody), addClaimDto);
+ return await InvokeRequestAsync((client, requestBody) => client.PostAsync(GetCreateClaimUrl(), requestBody), addClaimDto);
}
- public async Task<> ApproveClaimLineItemsAsync(string claimId)
+ public async Task ApproveClaimLineItemsAsync(ApproveClaimLineItemsDto getApproveClaimLineItemsDto, string claimId)
{
- return await InvokeRequestAsync<>((client) => client.PostAsync(GetApproveClaimLineItemUrl(claimId), ));
+ return await InvokeRequestAsync((client, requestBody) => client.PutAsync(GetApproveClaimLineItemUrl(claimId), requestBody), getApproveClaimLineItemsDto);
}
}
\ No newline at end of file
diff --git a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/PackageIntegration/Helpers/ShipmentFilterBuilder.cs b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/PackageIntegration/Helpers/ShipmentFilterBuilder.cs
index c781a6a..221368f 100644
--- a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/PackageIntegration/Helpers/ShipmentFilterBuilder.cs
+++ b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/PackageIntegration/Helpers/ShipmentFilterBuilder.cs
@@ -1,7 +1,8 @@
+using Integration.Core;
using Integration.Marketplaces.Trendyol.Infrastructure.OrderIntegration.Constants;
namespace Integration.Marketplaces.Trendyol.Infrastructure.OrderIntegration.Helpers;
-public class ShipmentFilterBuilder
+public class ShipmentFilterBuilder : IFilterBuilder
{
private string _filterQuery;
public ShipmentFilterBuilder()
diff --git a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ProductIntegration/Helpers/ProductFilterBuilder.cs b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ProductIntegration/Helpers/ProductFilterBuilder.cs
index a6046b4..faa6d47 100644
--- a/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ProductIntegration/Helpers/ProductFilterBuilder.cs
+++ b/src/Marketplaces/Integration.Marketplaces.Trendyol/Infrastructure/ProductIntegration/Helpers/ProductFilterBuilder.cs
@@ -1,5 +1,7 @@
+using Integration.Core;
+
namespace Integration.Marketplaces.Trendyol.Infrastructure.ProductIntegration.Helpers;
-public class ProductFilterBuilder
+public class ProductFilterBuilder : IFilterBuilder
{
private string _filterQuery;
public ProductFilterBuilder()
diff --git a/src/Marketplaces/Integration.Marketplaces.Trendyol/Integration.Marketplaces.Trendyol.csproj b/src/Marketplaces/Integration.Marketplaces.Trendyol/Integration.Marketplaces.Trendyol.csproj
index 5b6056d..0f00234 100644
--- a/src/Marketplaces/Integration.Marketplaces.Trendyol/Integration.Marketplaces.Trendyol.csproj
+++ b/src/Marketplaces/Integration.Marketplaces.Trendyol/Integration.Marketplaces.Trendyol.csproj
@@ -8,7 +8,7 @@
net8.0
enable
enable
- Integration.Marketplaces.Trendyol.12.12.23
+ Integration.Marketplaces.Trendyol
1.0.0
onurkanbakirci
onurkanbakirci