Skip to content

Commit 85bd75e

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent 7d1860e commit 85bd75e

5 files changed

Lines changed: 89 additions & 33 deletions

File tree

ScrapeBadger.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{184AF483-A976-44E6-AEA9-3E33AEFD35EA}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{85D25E9E-4114-4CD2-B55F-D0FC2478E364}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger.Test", "src\ScrapeBadger.Test\ScrapeBadger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{184AF483-A976-44E6-AEA9-3E33AEFD35EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{184AF483-A976-44E6-AEA9-3E33AEFD35EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{184AF483-A976-44E6-AEA9-3E33AEFD35EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{184AF483-A976-44E6-AEA9-3E33AEFD35EA}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{85D25E9E-4114-4CD2-B55F-D0FC2478E364}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{85D25E9E-4114-4CD2-B55F-D0FC2478E364}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{85D25E9E-4114-4CD2-B55F-D0FC2478E364}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{85D25E9E-4114-4CD2-B55F-D0FC2478E364}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

api/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4406,6 +4406,15 @@ paths:
44064406
nullable: true
44074407
type: string
44084408
style: form
4409+
- description: english|japanese|chinese|korean
4410+
explode: true
4411+
in: query
4412+
name: language
4413+
required: false
4414+
schema:
4415+
nullable: true
4416+
type: string
4417+
style: form
44094418
responses:
44104419
"200":
44114420
content:
@@ -4678,6 +4687,15 @@ paths:
46784687
nullable: true
46794688
type: string
46804689
style: form
4690+
- description: english|japanese|chinese|korean
4691+
explode: true
4692+
in: query
4693+
name: language
4694+
required: false
4695+
schema:
4696+
nullable: true
4697+
type: string
4698+
style: form
46814699
responses:
46824700
"200":
46834701
content:

docs/EBayApi.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ catch (ApiException e)
133133

134134
<a id="ebaycompletedsoldlistings"></a>
135135
# **EbayCompletedSoldListings**
136-
> Object EbayCompletedSoldListings (string query, string domain = null, string categoryId = null, int? page = null, int? perPage = null, string sortBy = null, string condition = null, decimal? minPrice = null, decimal? maxPrice = null, string location = null)
136+
> Object EbayCompletedSoldListings (string query, string domain = null, string categoryId = null, int? page = null, int? perPage = null, string sortBy = null, string condition = null, decimal? minPrice = null, decimal? maxPrice = null, string location = null, string language = null)
137137
138138
Completed / sold listings
139139

@@ -175,11 +175,12 @@ namespace Example
175175
var minPrice = 8.14D; // decimal? | (optional)
176176
var maxPrice = 8.14D; // decimal? | (optional)
177177
var location = "location_example"; // string | domestic|worldwide (optional)
178+
var language = "language_example"; // string | english|japanese|chinese|korean (optional)
178179
179180
try
180181
{
181182
// Completed / sold listings
182-
Object result = apiInstance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location);
183+
Object result = apiInstance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location, language);
183184
Debug.WriteLine(result);
184185
}
185186
catch (ApiException e)
@@ -200,7 +201,7 @@ This returns an ApiResponse object which contains the response data, status code
200201
try
201202
{
202203
// Completed / sold listings
203-
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location);
204+
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location, language);
204205
Debug.Write("Status Code: " + response.StatusCode);
205206
Debug.Write("Response Headers: " + response.Headers);
206207
Debug.Write("Response Body: " + response.Data);
@@ -227,6 +228,7 @@ catch (ApiException e)
227228
| **minPrice** | **decimal?** | | [optional] |
228229
| **maxPrice** | **decimal?** | | [optional] |
229230
| **location** | **string** | domestic|worldwide | [optional] |
231+
| **language** | **string** | english|japanese|chinese|korean | [optional] |
230232

231233
### Return type
232234

@@ -1260,7 +1262,7 @@ This endpoint does not need any parameter.
12601262

12611263
<a id="ebaysearchlistings"></a>
12621264
# **EbaySearchListings**
1263-
> Object EbaySearchListings (string query, string domain = null, string categoryId = null, int? page = null, int? perPage = null, string sortBy = null, string condition = null, string buyingFormat = null, decimal? minPrice = null, decimal? maxPrice = null, bool? freeShipping = null, string location = null)
1265+
> Object EbaySearchListings (string query, string domain = null, string categoryId = null, int? page = null, int? perPage = null, string sortBy = null, string condition = null, string buyingFormat = null, decimal? minPrice = null, decimal? maxPrice = null, bool? freeShipping = null, string location = null, string language = null)
12641266
12651267
Search listings
12661268

@@ -1304,11 +1306,12 @@ namespace Example
13041306
var maxPrice = 8.14D; // decimal? | (optional)
13051307
var freeShipping = false; // bool? | (optional) (default to false)
13061308
var location = "location_example"; // string | domestic|worldwide (optional)
1309+
var language = "language_example"; // string | english|japanese|chinese|korean (optional)
13071310
13081311
try
13091312
{
13101313
// Search listings
1311-
Object result = apiInstance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location);
1314+
Object result = apiInstance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location, language);
13121315
Debug.WriteLine(result);
13131316
}
13141317
catch (ApiException e)
@@ -1329,7 +1332,7 @@ This returns an ApiResponse object which contains the response data, status code
13291332
try
13301333
{
13311334
// Search listings
1332-
ApiResponse<Object> response = apiInstance.EbaySearchListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location);
1335+
ApiResponse<Object> response = apiInstance.EbaySearchListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location, language);
13331336
Debug.Write("Status Code: " + response.StatusCode);
13341337
Debug.Write("Response Headers: " + response.Headers);
13351338
Debug.Write("Response Body: " + response.Data);
@@ -1358,6 +1361,7 @@ catch (ApiException e)
13581361
| **maxPrice** | **decimal?** | | [optional] |
13591362
| **freeShipping** | **bool?** | | [optional] [default to false] |
13601363
| **location** | **string** | domestic|worldwide | [optional] |
1364+
| **language** | **string** | english|japanese|chinese|korean | [optional] |
13611365

13621366
### Return type
13631367

src/ScrapeBadger.Test/Api/EBayApiTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public void EbayCompletedSoldListingsTest()
8888
//decimal? minPrice = null;
8989
//decimal? maxPrice = null;
9090
//string location = null;
91-
//var response = instance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location);
91+
//string language = null;
92+
//var response = instance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location, language);
9293
//Assert.IsType<Object>(response);
9394
}
9495

@@ -238,7 +239,8 @@ public void EbaySearchListingsTest()
238239
//decimal? maxPrice = null;
239240
//bool? freeShipping = null;
240241
//string location = null;
241-
//var response = instance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location);
242+
//string language = null;
243+
//var response = instance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location, language);
242244
//Assert.IsType<Object>(response);
243245
}
244246
}

0 commit comments

Comments
 (0)