Skip to content

Commit 552d372

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent 2aea6f2 commit 552d372

5 files changed

Lines changed: 111 additions & 55 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", "{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{07A90D8E-B0D6-4096-95D3-C52512A9518F}"
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-
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{07A90D8E-B0D6-4096-95D3-C52512A9518F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{07A90D8E-B0D6-4096-95D3-C52512A9518F}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{07A90D8E-B0D6-4096-95D3-C52512A9518F}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{07A90D8E-B0D6-4096-95D3-C52512A9518F}.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: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4358,7 +4358,7 @@ paths:
43584358
title: Sort By
43594359
type: string
43604360
style: form
4361-
- description: new|open_box|refurbished|used|for_parts
4361+
- description: new|open_box|refurbished|used|for_parts|graded|ungraded
43624362
explode: true
43634363
in: query
43644364
name: condition
@@ -4385,6 +4385,15 @@ paths:
43854385
nullable: true
43864386
type: number
43874387
style: form
4388+
- description: domestic|worldwide
4389+
explode: true
4390+
in: query
4391+
name: location
4392+
required: false
4393+
schema:
4394+
nullable: true
4395+
type: string
4396+
style: form
43884397
responses:
43894398
"200":
43904399
content:
@@ -4603,7 +4612,7 @@ paths:
46034612
title: Sort By
46044613
type: string
46054614
style: form
4606-
- description: new|open_box|refurbished|used|for_parts
4615+
- description: new|open_box|refurbished|used|for_parts|graded|ungraded
46074616
explode: true
46084617
in: query
46094618
name: condition
@@ -4648,6 +4657,15 @@ paths:
46484657
title: Free Shipping
46494658
type: boolean
46504659
style: form
4660+
- description: domestic|worldwide
4661+
explode: true
4662+
in: query
4663+
name: location
4664+
required: false
4665+
schema:
4666+
nullable: true
4667+
type: string
4668+
style: form
46514669
responses:
46524670
"200":
46534671
content:

docs/EBayApi.md

Lines changed: 14 additions & 10 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)
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)
137137
138138
Completed / sold listings
139139

@@ -171,14 +171,15 @@ namespace Example
171171
var page = 1; // int? | (optional) (default to 1)
172172
var perPage = 56; // int? | 60, 120 or 240 (optional)
173173
var sortBy = "\"best_match\""; // string | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low (optional) (default to "best_match")
174-
var condition = "condition_example"; // string | new|open_box|refurbished|used|for_parts (optional)
174+
var condition = "condition_example"; // string | new|open_box|refurbished|used|for_parts|graded|ungraded (optional)
175175
var minPrice = 8.14D; // decimal? | (optional)
176176
var maxPrice = 8.14D; // decimal? | (optional)
177+
var location = "location_example"; // string | domestic|worldwide (optional)
177178
178179
try
179180
{
180181
// Completed / sold listings
181-
Object result = apiInstance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
182+
Object result = apiInstance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location);
182183
Debug.WriteLine(result);
183184
}
184185
catch (ApiException e)
@@ -199,7 +200,7 @@ This returns an ApiResponse object which contains the response data, status code
199200
try
200201
{
201202
// Completed / sold listings
202-
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
203+
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice, location);
203204
Debug.Write("Status Code: " + response.StatusCode);
204205
Debug.Write("Response Headers: " + response.Headers);
205206
Debug.Write("Response Body: " + response.Data);
@@ -222,9 +223,10 @@ catch (ApiException e)
222223
| **page** | **int?** | | [optional] [default to 1] |
223224
| **perPage** | **int?** | 60, 120 or 240 | [optional] |
224225
| **sortBy** | **string** | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low | [optional] [default to &quot;best_match&quot;] |
225-
| **condition** | **string** | new|open_box|refurbished|used|for_parts | [optional] |
226+
| **condition** | **string** | new|open_box|refurbished|used|for_parts|graded|ungraded | [optional] |
226227
| **minPrice** | **decimal?** | | [optional] |
227228
| **maxPrice** | **decimal?** | | [optional] |
229+
| **location** | **string** | domestic|worldwide | [optional] |
228230

229231
### Return type
230232

@@ -1258,7 +1260,7 @@ This endpoint does not need any parameter.
12581260

12591261
<a id="ebaysearchlistings"></a>
12601262
# **EbaySearchListings**
1261-
> 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)
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)
12621264
12631265
Search listings
12641266

@@ -1296,16 +1298,17 @@ namespace Example
12961298
var page = 1; // int? | (optional) (default to 1)
12971299
var perPage = 56; // int? | 60, 120 or 240 (optional)
12981300
var sortBy = "\"best_match\""; // string | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low (optional) (default to "best_match")
1299-
var condition = "condition_example"; // string | new|open_box|refurbished|used|for_parts (optional)
1301+
var condition = "condition_example"; // string | new|open_box|refurbished|used|for_parts|graded|ungraded (optional)
13001302
var buyingFormat = "buyingFormat_example"; // string | auction|buy_it_now|best_offer (optional)
13011303
var minPrice = 8.14D; // decimal? | (optional)
13021304
var maxPrice = 8.14D; // decimal? | (optional)
13031305
var freeShipping = false; // bool? | (optional) (default to false)
1306+
var location = "location_example"; // string | domestic|worldwide (optional)
13041307
13051308
try
13061309
{
13071310
// Search listings
1308-
Object result = apiInstance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping);
1311+
Object result = apiInstance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location);
13091312
Debug.WriteLine(result);
13101313
}
13111314
catch (ApiException e)
@@ -1326,7 +1329,7 @@ This returns an ApiResponse object which contains the response data, status code
13261329
try
13271330
{
13281331
// Search listings
1329-
ApiResponse<Object> response = apiInstance.EbaySearchListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping);
1332+
ApiResponse<Object> response = apiInstance.EbaySearchListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location);
13301333
Debug.Write("Status Code: " + response.StatusCode);
13311334
Debug.Write("Response Headers: " + response.Headers);
13321335
Debug.Write("Response Body: " + response.Data);
@@ -1349,11 +1352,12 @@ catch (ApiException e)
13491352
| **page** | **int?** | | [optional] [default to 1] |
13501353
| **perPage** | **int?** | 60, 120 or 240 | [optional] |
13511354
| **sortBy** | **string** | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low | [optional] [default to &quot;best_match&quot;] |
1352-
| **condition** | **string** | new|open_box|refurbished|used|for_parts | [optional] |
1355+
| **condition** | **string** | new|open_box|refurbished|used|for_parts|graded|ungraded | [optional] |
13531356
| **buyingFormat** | **string** | auction|buy_it_now|best_offer | [optional] |
13541357
| **minPrice** | **decimal?** | | [optional] |
13551358
| **maxPrice** | **decimal?** | | [optional] |
13561359
| **freeShipping** | **bool?** | | [optional] [default to false] |
1360+
| **location** | **string** | domestic|worldwide | [optional] |
13571361

13581362
### Return type
13591363

src/ScrapeBadger.Test/Api/EBayApiTests.cs

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

@@ -236,7 +237,8 @@ public void EbaySearchListingsTest()
236237
//decimal? minPrice = null;
237238
//decimal? maxPrice = null;
238239
//bool? freeShipping = null;
239-
//var response = instance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping);
240+
//string location = null;
241+
//var response = instance.EbaySearchListings(query, domain, categoryId, page, perPage, sortBy, condition, buyingFormat, minPrice, maxPrice, freeShipping, location);
240242
//Assert.IsType<Object>(response);
241243
}
242244
}

0 commit comments

Comments
 (0)