Skip to content

Commit

Permalink
-Update all to netstandard2.0
Browse files Browse the repository at this point in the history
-Add Subscriptions
  • Loading branch information
claytondus committed Jan 24, 2020
1 parent e4bd1a6 commit 5a21e41
Show file tree
Hide file tree
Showing 72 changed files with 5,607 additions and 89 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ Thumbs.db
# dotCover
*.dotCover
.vs/
.idea/
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;netstandard2.0;net46</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.FbaInbound</PackageId>
<PackageVersion>0.3.0</PackageVersion>
<PackageVersion>0.4.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS FBA Inbound client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2017 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<Copyright>Copyright 2019 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.4.0" />
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.5.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;net46;netstandard2.0</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.FbaInventory</PackageId>
<PackageVersion>0.2.0</PackageVersion>
<PackageVersion>0.3.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS FBA Inventory client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2018 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<Copyright>Copyright 2019 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.4.0" />
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.5.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Claytondus.AmazonMWS.FbaOutbound\Claytondus.AmazonMWS.FbaOutbound.csproj" />
<ProjectReference Include="..\Claytondus.AmazonMWS.Runtime\Claytondus.AmazonMWS.Runtime.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;net46;netstandard2.0</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.FbaOutbound</PackageId>
<PackageVersion>0.3.0</PackageVersion>
<PackageVersion>0.4.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS FBA Outbound client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2017 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<Copyright>Copyright 2019 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.4.0" />
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.5.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
18 changes: 5 additions & 13 deletions Claytondus.AmazonMWS.Feeds/Claytondus.AmazonMWS.Feeds.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard1.5;net46</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.Feeds</PackageId>
<PackageVersion>0.3.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS Feeds client</Description>
<PackageVersion>0.4.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS Feeds and Reports client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2017 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<Copyright>Copyright 2019 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard1.5'">
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
<PackageReference Include="System.Threading.Thread" Version="4.3.0" />
<PackageReference Include="System.ComponentModel.Primitives" Version="4.3.0" />
<PackageReference Include="System.Net.Requests" Version="4.3.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" />
<PackageReference Include="System.Reflection.Primitives" Version="4.3.0" />
</ItemGroup>

</Project>
16 changes: 8 additions & 8 deletions Claytondus.AmazonMWS.Feeds/MarketplaceWebServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,17 +466,17 @@ private HttpWebRequest ConfigureWebRequest(String queryParameters, ContentType c

if (config.IsSetProxyHost())
{
//request.Proxy = new WebProxy(config.ProxyHost, config.ProxyPort);
request.Proxy = new WebProxy(config.ProxyHost, config.ProxyPort);
}

//request.UserAgent = config.UserAgent;
request.UserAgent = config.UserAgent;

request.Method = "POST";
//request.Timeout = config.RequestTimeout;
request.Timeout = config.RequestTimeout;

request.ContentType = contentType.ToString();

//request.SendChunked = true;
request.SendChunked = true;
//System.Net.ServicePointManager.Expect100Continue = false;

return request;
Expand All @@ -492,13 +492,13 @@ private HttpWebRequest ConfigureWebRequest(int contentLength)

if (config.IsSetProxyHost())
{
//request.Proxy = new WebProxy(config.ProxyHost, config.ProxyPort);
request.Proxy = new WebProxy(config.ProxyHost, config.ProxyPort);
}
//request.UserAgent = config.UserAgent;
request.UserAgent = config.UserAgent;
request.Method = "POST";
//request.Timeout = 50000;
request.Timeout = 50000;
request.ContentType = "application/x-www-form-urlencoded; charset=utf-8";
//request.ContentLength = contentLength;
request.ContentLength = contentLength;

return request;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Claytondus.AmazonMWS.Finances\Claytondus.AmazonMWS.Finances.csproj" />
<ProjectReference Include="..\Claytondus.AmazonMWS.Runtime\Claytondus.AmazonMWS.Runtime.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;netstandard2.0;net46</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.Finances</PackageId>
<PackageVersion>0.2.0</PackageVersion>
<PackageVersion>0.3.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS Finances client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2018 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<Copyright>Copyright 2019 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.4.0" />
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.5.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;netstandard2.0;net46</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.MerchantFulfillment</PackageId>
<PackageVersion>0.2.0</PackageVersion>
<PackageVersion>0.3.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS MerchantFulfillment client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2017 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.4.0" />
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.5.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;net46;netstandard2.0</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.Orders</PackageId>
<PackageVersion>0.3.0</PackageVersion>
<PackageVersion>0.4.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS Orders client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2017 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<Copyright>Copyright 2019 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.4.0" />
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.5.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static void Main(string[] args)
// response = sample.InvokeGetLowestPricedOffersForSKU();
// response = sample.InvokeGetMatchingProduct();
// response = sample.InvokeGetMatchingProductForId();
// response = sample.InvokeGetMyFeesEstimate();
response = sample.InvokeGetMyFeesEstimate();
// response = sample.InvokeGetMyPriceForASIN();
// response = sample.InvokeGetMyPriceForSKU();
// response = sample.InvokeGetProductCategoriesForASIN();
Expand Down Expand Up @@ -250,11 +250,32 @@ public GetMyFeesEstimateResponse InvokeGetMyFeesEstimate()
{
// Create a request.
GetMyFeesEstimateRequest request = new GetMyFeesEstimateRequest();
string sellerId = "example";
string sellerId = "";
request.SellerId = sellerId;
string mwsAuthToken = "example";
request.MWSAuthToken = mwsAuthToken;
FeesEstimateRequestList feesEstimateRequestList = new FeesEstimateRequestList();
FeesEstimateRequestList feesEstimateRequestList = new FeesEstimateRequestList
{
FeesEstimateRequest = new List<FeesEstimateRequest>()
{
new FeesEstimateRequest()
{
MarketplaceId = "ATVPDKIKX0DER",
IdType = "ASIN",
IdValue = "B016W63ZYS",
IsAmazonFulfilled = false,
Identifier = "request1",
PriceToEstimateFees = new PriceToEstimateFees()
{
ListingPrice = new MoneyType()
{
Amount = 12.99M,
CurrencyCode = "USD",
},
}
}
}
};
request.FeesEstimateRequestList = feesEstimateRequestList;
return this.client.GetMyFeesEstimate(request);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;netstandard2.0;net46</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Claytondus.AmazonMWS.Products</PackageId>
<PackageVersion>0.3.0</PackageVersion>
<PackageVersion>0.4.0</PackageVersion>
<Description>.NET Standard fork of Amazon MWS Products client</Description>
<Authors>Amazon and Clayton Davis</Authors>
<Copyright>Copyright 2017 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<Copyright>Copyright 2019 (c) Amazon Technologies, Inc. and Clayton Davis. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/claytondus/Claytondus.AmazonMWS</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.4.0" />
<PackageReference Include="Claytondus.AmazonMWS.Runtime" Version="0.5.0" />
</ItemGroup>
</Project>
Loading

0 comments on commit 5a21e41

Please sign in to comment.