Skip to content

Commit

Permalink
fix: trendyol package fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onurkanbakirci committed Dec 13, 2023
1 parent f3fa882 commit 06b7f98
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
5 changes: 5 additions & 0 deletions src/Integration.Core/IFilterBuilder.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace Integration.Core;
public interface IFilterBuilder
{

}
2 changes: 1 addition & 1 deletion src/Integration.Core/Integration.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Integration.Core.12.12.23</PackageId>
<PackageId>Integration.Core</PackageId>
<Version>1.0.0</Version>
<Authors>onurkanbakirci</Authors>
<Company>onurkanbakirci</Company>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Integration.Core;
namespace Integration.Marketplaces.Trendyol.Dtos.Claim;
public class ApproveClaimLineItemsDto : IDto
{
public List<string> ClaimLineItemIdList { get; set; }
public object Params { get; set; }//TODO: Check this
}
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public TrendyolClaimIntegration(string supplierId, string apiKey, string apiSecr
return await InvokeRequestAsync<GetClaimDto>((client) => client.GetAsync(GetClaimsUrl() + filterQuery));
}

public async Task<> CreateClaimAsync(AddClaimDto addClaimDto)
public async Task<bool> 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<bool> ApproveClaimLineItemsAsync(ApproveClaimLineItemsDto getApproveClaimLineItemsDto, string claimId)
{
return await InvokeRequestAsync<>((client) => client.PostAsync(GetApproveClaimLineItemUrl(claimId), ));
return await InvokeRequestAsync((client, requestBody) => client.PutAsync(GetApproveClaimLineItemUrl(claimId), requestBody), getApproveClaimLineItemsDto);
}
}
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Integration.Marketplaces.Trendyol.12.12.23</PackageId>
<PackageId>Integration.Marketplaces.Trendyol</PackageId>
<Version>1.0.0</Version>
<Authors>onurkanbakirci</Authors>
<Company>onurkanbakirci</Company>
Expand Down

0 comments on commit 06b7f98

Please sign in to comment.