Skip to content

Commit 30b2efd

Browse files
authored
Merge pull request #12 from eBay/feature/v1379
Upgrade to WSDL version 1379 and remove deprecated types
2 parents 2451452 + 2705604 commit 30b2efd

31 files changed

+38241
-66795
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,4 +404,6 @@ FodyWeavers.xsd
404404
**/listing_log.txt
405405
*.AssemblyAttributes.vb
406406
*.AssemblyAttributes.cs
407-
*.nupkg
407+
*.nupkg
408+
409+
**/.idea/**

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Please note that upgrades to an SDK should always be done in a test environment.
88

99
## Add the eBay.Service.SDK NuGet Package
1010

11-
**Current Version** : 1.0.0
11+
**Current Version** : 1.0.1
1212

1313
Use of this source code is governed by [Apache-2.0 license](https://opensource.org/licenses/Apache-2.0). If you’re looking for the latest stable version, you can get it directly from NuGet.org.
1414

@@ -30,15 +30,15 @@ Use of this source code is governed by [Apache-2.0 license](https://opensource.o
3030
**eBay.Service.SDK** package:
3131

3232
``` xml
33-
Install-Package eBay.Service.SDK -Version 1.0.0
33+
Install-Package eBay.Service.SDK -Version 1.0.1
3434
```
3535

3636
- After the command completes, open the **.csproj** file to see the
3737
added reference:
3838

3939
``` xml
4040
<ItemGroup>
41-
<PackageReference Include="eBay.Service.SDK" Version="1.0.0" />
41+
<PackageReference Include="eBay.Service.SDK" Version="1.0.1" />
4242
</ItemGroup>
4343
```
4444

@@ -48,15 +48,15 @@ Install-Package eBay.Service.SDK -Version 1.0.0
4848
**eBay.Service.SDK** package:
4949

5050
``` xml
51-
dotnet add package eBay.Service.SDK --version 1.0.0
51+
dotnet add package eBay.Service.SDK --version 1.0.1
5252
```
5353

5454
- After the command completes, open the **.csproj** file to see the
5555
added reference:
5656

5757
``` xml
5858
<ItemGroup>
59-
<PackageReference Include="eBay.Service.SDK" Version="1.0.0" />
59+
<PackageReference Include="eBay.Service.SDK" Version="1.0.1" />
6060
</ItemGroup>
6161
```
6262

@@ -66,15 +66,15 @@ dotnet add package eBay.Service.SDK --version 1.0.0
6666
**eBay.Service.SDK** package:
6767

6868
``` xml
69-
paket add eBay.Service.SDK --version 1.0.0
69+
paket add eBay.Service.SDK --version 1.0.1
7070
```
7171

7272
- After the command completes, open the **.csproj** file to see the
7373
added reference:
7474

7575
``` xml
7676
<ItemGroup>
77-
<PackageReference Include="eBay.Service.SDK" Version="1.0.0" />
77+
<PackageReference Include="eBay.Service.SDK" Version="1.0.1" />
7878
</ItemGroup>
7979
```
8080

Source/Helper/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// You can specify all the values or you can default the Revision and Build Numbers
4848
// by using the '*' as shown below:
4949

50-
[assembly: AssemblyVersion("3.1131.0.0")]
50+
[assembly: AssemblyVersion("3.1379.0.0")]
5151

5252
//
5353
// In order to sign your assembly you must specify a key to use. Refer to the

Source/Helper/Helper.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@
9393
<Prefer32Bit>false</Prefer32Bit>
9494
</PropertyGroup>
9595
<ItemGroup>
96-
<Reference Include="eBay.Service">
97-
<HintPath>..\eBay.Service.SDK\bin\Debug\eBay.Service.dll</HintPath>
98-
</Reference>
9996
<Reference Include="System">
10097
<Name>System</Name>
10198
</Reference>
@@ -206,6 +203,10 @@
206203
<Project>{3f7b51be-720d-44ef-86d2-f80fe3ae5081}</Project>
207204
<Name>eBay.Service.SDK.Attribute</Name>
208205
</ProjectReference>
206+
<ProjectReference Include="..\eBay.Service.SDK\eBay.Service.csproj">
207+
<Project>{068a6c45-faaf-49f5-b3f2-3928da55d01a}</Project>
208+
<Name>eBay.Service</Name>
209+
</ProjectReference>
209210
</ItemGroup>
210211
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
211212
<PropertyGroup>

Source/Helper/ShippingServiceHelper.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,30 +60,10 @@ private void Init()
6060
InitShipToLocations();
6161
InitShippingServiceOptions();
6262
InitIntlShippingServiceOptions();
63-
InitInsuranceOptions();
6463
InitPackageSizeOptions();
6564
InitSalesTaxStateOptions();
6665
}
6766

68-
private void InitInsuranceOptions()
69-
{
70-
InsuranceOptionCodeType[] options =
71-
new InsuranceOptionCodeType[] {
72-
InsuranceOptionCodeType.Optional,
73-
InsuranceOptionCodeType.IncludedInShippingHandling,
74-
InsuranceOptionCodeType.NotOffered,
75-
InsuranceOptionCodeType.Required
76-
};
77-
78-
int len = options.Length;
79-
ControlTagItem[] items = new ControlTagItem[len];
80-
for (int i = 0; i < len; i++)
81-
{
82-
items[i] = new ControlTagItem(options[i].ToString(), options[i]);
83-
}
84-
this.htInsuranceOptionControlTagItems.Add(SiteCodeType.US, items);
85-
}
86-
8767
private void InitPackageSizeOptions()
8868
{
8969
ShippingPackageCodeType[] options = new ShippingPackageCodeType[]

Source/eBay.Service.SDK/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// You can specify all the values or you can default the Revision and Build Numbers
2828
// by using the '*' as shown below:
2929

30-
[assembly: AssemblyVersion("3.1131.0.0")]
30+
[assembly: AssemblyVersion("3.1379.0.0")]
3131

3232
//
3333
// In order to sign your assembly you must specify a key to use. Refer to the

Source/eBay.Service.SDK/Call/EndItemCall.cs

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -71,31 +71,15 @@ public EndItemCall(ApiContext ApiContext)
7171
/// The seller's reason for ending the listing early is input into this required field. The seller is not allowed to use the <code>ProductDeleted</code> value, as this ending reason can only be used internally by eBay to administratively end a listing due to the associated Catalog product being removed from the eBay Catalog.
7272
/// </param>
7373
///
74-
/// <param name="SellerInventoryID">
75-
/// This field was previously only used to identify and end Half.com listings, and since the Half.com site has been shut down, this element is no longer applicable.
76-
/// </param>
77-
///
78-
public DateTime EndItem(string ItemID, EndReasonCodeType EndingReason, string SellerInventoryID)
74+
public DateTime EndItem(string ItemID, EndReasonCodeType EndingReason)
7975
{
8076
this.ItemID = ItemID;
8177
this.EndingReason = EndingReason;
82-
this.SellerInventoryID = SellerInventoryID;
8378

8479
Execute();
8580
return ApiResponse.EndTime;
8681
}
8782

88-
89-
/// <summary>
90-
/// For backward compatibility with old wrappers.
91-
/// </summary>
92-
public void EndItem(string ItemID, EndReasonCodeType EndingReason)
93-
{
94-
this.ItemID = ItemID;
95-
this.EndingReason = EndingReason;
96-
Execute();
97-
}
98-
9983
#endregion
10084

10185

@@ -147,16 +131,6 @@ public EndReasonCodeType EndingReason
147131
set { ApiRequest.EndingReason = value; }
148132
}
149133

150-
/// <summary>
151-
/// Gets or sets the <see cref="EndItemRequestType.SellerInventoryID"/> of type <see cref="string"/>.
152-
/// </summary>
153-
public string SellerInventoryID
154-
{
155-
get { return ApiRequest.SellerInventoryID; }
156-
set { ApiRequest.SellerInventoryID = value; }
157-
}
158-
159-
160134
/// <summary>
161135
/// Gets the returned <see cref="EndItemResponseType.EndTime"/> of type <see cref="DateTime"/>.
162136
/// </summary>

Source/eBay.Service.SDK/Call/GetClientAlertsAuthTokenCall.cs

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

Source/eBay.Service.SDK/Call/GetItemCall.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,10 @@ public GetItemCall(ApiContext ApiContext)
178178
/// Parts Compatibility lists are only applicable to motor parts and accessory categories on the sites that support eBay Motors - US, CA, UK, and DE.
179179
/// </param>
180180
///
181-
public ItemType GetItem(string ItemID, bool IncludeWatchCount, bool IncludeCrossPromotion, bool IncludeItemSpecifics, bool IncludeTaxTable, string SKU, string VariationSKU, NameValueListTypeCollection VariationSpecificList, string TransactionID, bool IncludeItemCompatibilityList)
181+
public ItemType GetItem(string ItemID, bool IncludeWatchCount, bool IncludeItemSpecifics, bool IncludeTaxTable, string SKU, string VariationSKU, NameValueListTypeCollection VariationSpecificList, string TransactionID, bool IncludeItemCompatibilityList)
182182
{
183183
this.ItemID = ItemID;
184184
this.IncludeWatchCount = IncludeWatchCount;
185-
this.IncludeCrossPromotion = IncludeCrossPromotion;
186185
this.IncludeItemSpecifics = IncludeItemSpecifics;
187186
this.IncludeTaxTable = IncludeTaxTable;
188187
this.SKU = SKU;
@@ -268,15 +267,6 @@ public bool IncludeWatchCount
268267
set { ApiRequest.IncludeWatchCount = value; }
269268
}
270269

271-
/// <summary>
272-
/// Gets or sets the <see cref="GetItemRequestType.IncludeCrossPromotion"/> of type <see cref="bool"/>.
273-
/// </summary>
274-
public bool IncludeCrossPromotion
275-
{
276-
get { return ApiRequest.IncludeCrossPromotion; }
277-
set { ApiRequest.IncludeCrossPromotion = value; }
278-
}
279-
280270
/// <summary>
281271
/// Gets or sets the <see cref="GetItemRequestType.IncludeItemSpecifics"/> of type <see cref="bool"/>.
282272
/// </summary>

Source/eBay.Service.SDK/Call/GetItemTransactionsCall.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -375,15 +375,6 @@ public TransactionTypeCollection TransactionList
375375
get { return ApiResponse.TransactionArray; }
376376
}
377377

378-
/// <summary>
379-
/// Gets the returned <see cref="GetItemTransactionsResponseType.PayPalPreferred"/> of type <see cref="bool"/>.
380-
/// </summary>
381-
public bool PayPalPreferred
382-
{
383-
get { return ApiResponse.PayPalPreferred; }
384-
}
385-
386-
387378
#endregion
388379

389380

0 commit comments

Comments
 (0)