Skip to content

Commit 880e4ed

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent 2d96845 commit 880e4ed

4 files changed

Lines changed: 35 additions & 12 deletions

File tree

api/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,18 @@ paths:
11231123
nullable: true
11241124
type: string
11251125
style: form
1126+
- description: "Offer page, 10 rows each"
1127+
explode: true
1128+
in: query
1129+
name: page
1130+
required: false
1131+
schema:
1132+
default: 1
1133+
description: "Offer page, 10 rows each"
1134+
minimum: 1
1135+
title: Page
1136+
type: integer
1137+
style: form
11261138
responses:
11271139
"200":
11281140
content:

docs/AmazonApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public class Example {
304304

305305
<a id="amazonGetAllSellerOffersBuybox"></a>
306306
# **amazonGetAllSellerOffersBuybox**
307-
> Object amazonGetAllSellerOffersBuybox(asin, domain, zip)
307+
> Object amazonGetAllSellerOffersBuybox(asin, domain, zip, page)
308308
309309
Get all seller offers (buybox)
310310

@@ -335,8 +335,9 @@ public class Example {
335335
String asin = "asin_example"; // String |
336336
String domain = "com"; // String |
337337
String zip = "zip_example"; // String |
338+
Integer page = 1; // Integer | Offer page, 10 rows each
338339
try {
339-
Object result = apiInstance.amazonGetAllSellerOffersBuybox(asin, domain, zip);
340+
Object result = apiInstance.amazonGetAllSellerOffersBuybox(asin, domain, zip, page);
340341
System.out.println(result);
341342
} catch (ApiException e) {
342343
System.err.println("Exception when calling AmazonApi#amazonGetAllSellerOffersBuybox");
@@ -356,6 +357,7 @@ public class Example {
356357
| **asin** | **String**| | |
357358
| **domain** | **String**| | [optional] [default to com] |
358359
| **zip** | **String**| | [optional] |
360+
| **page** | **Integer**| Offer page, 10 rows each | [optional] [default to 1] |
359361

360362
### Return type
361363

src/main/java/com/scrapebadger/client/api/AmazonApi.java

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ public okhttp3.Call amazonBrowseNodeCategoryListingAsync(String node, String dom
615615
* @param asin (required)
616616
* @param domain (optional, default to com)
617617
* @param zip (optional)
618+
* @param page Offer page, 10 rows each (optional, default to 1)
618619
* @param _callback Callback for upload/download progress
619620
* @return Call to execute
620621
* @throws ApiException If fail to serialize the request body object
@@ -626,7 +627,7 @@ public okhttp3.Call amazonBrowseNodeCategoryListingAsync(String node, String dom
626627
<tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
627628
</table>
628629
*/
629-
public okhttp3.Call amazonGetAllSellerOffersBuyboxCall(String asin, String domain, String zip, final ApiCallback _callback) throws ApiException {
630+
public okhttp3.Call amazonGetAllSellerOffersBuyboxCall(String asin, String domain, String zip, Integer page, final ApiCallback _callback) throws ApiException {
630631
String basePath = null;
631632
// Operation Servers
632633
String[] localBasePaths = new String[] { };
@@ -660,6 +661,10 @@ public okhttp3.Call amazonGetAllSellerOffersBuyboxCall(String asin, String domai
660661
localVarQueryParams.addAll(localVarApiClient.parameterToPair("zip", zip));
661662
}
662663

664+
if (page != null) {
665+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
666+
}
667+
663668
final String[] localVarAccepts = {
664669
"application/json"
665670
};
@@ -680,13 +685,13 @@ public okhttp3.Call amazonGetAllSellerOffersBuyboxCall(String asin, String domai
680685
}
681686

682687
@SuppressWarnings("rawtypes")
683-
private okhttp3.Call amazonGetAllSellerOffersBuyboxValidateBeforeCall(String asin, String domain, String zip, final ApiCallback _callback) throws ApiException {
688+
private okhttp3.Call amazonGetAllSellerOffersBuyboxValidateBeforeCall(String asin, String domain, String zip, Integer page, final ApiCallback _callback) throws ApiException {
684689
// verify the required parameter 'asin' is set
685690
if (asin == null) {
686691
throw new ApiException("Missing the required parameter 'asin' when calling amazonGetAllSellerOffersBuybox(Async)");
687692
}
688693

689-
return amazonGetAllSellerOffersBuyboxCall(asin, domain, zip, _callback);
694+
return amazonGetAllSellerOffersBuyboxCall(asin, domain, zip, page, _callback);
690695

691696
}
692697

@@ -696,6 +701,7 @@ private okhttp3.Call amazonGetAllSellerOffersBuyboxValidateBeforeCall(String asi
696701
* @param asin (required)
697702
* @param domain (optional, default to com)
698703
* @param zip (optional)
704+
* @param page Offer page, 10 rows each (optional, default to 1)
699705
* @return Object
700706
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
701707
* @http.response.details
@@ -706,8 +712,8 @@ private okhttp3.Call amazonGetAllSellerOffersBuyboxValidateBeforeCall(String asi
706712
<tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
707713
</table>
708714
*/
709-
public Object amazonGetAllSellerOffersBuybox(String asin, String domain, String zip) throws ApiException {
710-
ApiResponse<Object> localVarResp = amazonGetAllSellerOffersBuyboxWithHttpInfo(asin, domain, zip);
715+
public Object amazonGetAllSellerOffersBuybox(String asin, String domain, String zip, Integer page) throws ApiException {
716+
ApiResponse<Object> localVarResp = amazonGetAllSellerOffersBuyboxWithHttpInfo(asin, domain, zip, page);
711717
return localVarResp.getData();
712718
}
713719

@@ -717,6 +723,7 @@ public Object amazonGetAllSellerOffersBuybox(String asin, String domain, String
717723
* @param asin (required)
718724
* @param domain (optional, default to com)
719725
* @param zip (optional)
726+
* @param page Offer page, 10 rows each (optional, default to 1)
720727
* @return ApiResponse&lt;Object&gt;
721728
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
722729
* @http.response.details
@@ -727,8 +734,8 @@ public Object amazonGetAllSellerOffersBuybox(String asin, String domain, String
727734
<tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
728735
</table>
729736
*/
730-
public ApiResponse<Object> amazonGetAllSellerOffersBuyboxWithHttpInfo(String asin, String domain, String zip) throws ApiException {
731-
okhttp3.Call localVarCall = amazonGetAllSellerOffersBuyboxValidateBeforeCall(asin, domain, zip, null);
737+
public ApiResponse<Object> amazonGetAllSellerOffersBuyboxWithHttpInfo(String asin, String domain, String zip, Integer page) throws ApiException {
738+
okhttp3.Call localVarCall = amazonGetAllSellerOffersBuyboxValidateBeforeCall(asin, domain, zip, page, null);
732739
Type localVarReturnType = new TypeToken<Object>(){}.getType();
733740
return localVarApiClient.execute(localVarCall, localVarReturnType);
734741
}
@@ -739,6 +746,7 @@ public ApiResponse<Object> amazonGetAllSellerOffersBuyboxWithHttpInfo(String asi
739746
* @param asin (required)
740747
* @param domain (optional, default to com)
741748
* @param zip (optional)
749+
* @param page Offer page, 10 rows each (optional, default to 1)
742750
* @param _callback The callback to be executed when the API call finishes
743751
* @return The request call
744752
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -750,9 +758,9 @@ public ApiResponse<Object> amazonGetAllSellerOffersBuyboxWithHttpInfo(String asi
750758
<tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
751759
</table>
752760
*/
753-
public okhttp3.Call amazonGetAllSellerOffersBuyboxAsync(String asin, String domain, String zip, final ApiCallback<Object> _callback) throws ApiException {
761+
public okhttp3.Call amazonGetAllSellerOffersBuyboxAsync(String asin, String domain, String zip, Integer page, final ApiCallback<Object> _callback) throws ApiException {
754762

755-
okhttp3.Call localVarCall = amazonGetAllSellerOffersBuyboxValidateBeforeCall(asin, domain, zip, _callback);
763+
okhttp3.Call localVarCall = amazonGetAllSellerOffersBuyboxValidateBeforeCall(asin, domain, zip, page, _callback);
756764
Type localVarReturnType = new TypeToken<Object>(){}.getType();
757765
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
758766
return localVarCall;

src/test/java/com/scrapebadger/client/api/AmazonApiTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public void amazonGetAllSellerOffersBuyboxTest() throws ApiException {
103103
String asin = null;
104104
String domain = null;
105105
String zip = null;
106-
Object response = api.amazonGetAllSellerOffersBuybox(asin, domain, zip);
106+
Integer page = null;
107+
Object response = api.amazonGetAllSellerOffersBuybox(asin, domain, zip, page);
107108
// TODO: test validations
108109
}
109110

0 commit comments

Comments
 (0)