From dbb2fe62acf2d02636529a277d90732195340b55 Mon Sep 17 00:00:00 2001 From: ingrammicro-xvantage Date: Tue, 29 Oct 2024 04:45:59 +0000 Subject: [PATCH] Update from https://github.com/ingrammicro-xvantage/xi-sdk-openapispec/commit/9f8d0efff3a37b009224e2f7bc6d031db4e280d4 --- README.md | 1 + docs/ProductCatalogApi.md | 95 ++++- test/test_product_catalog_api.py | 7 + xi/sdk/resellers/api/product_catalog_api.py | 363 ++++++++++++++++++-- 4 files changed, 437 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 285b5b23..816cca55 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ Class | Method | HTTP request | Description *OrdersApi* | [**post_createorder_v7**](docs/OrdersApi.md#post_createorder_v7) | **POST** /resellers/v7/orders | Create your Order v7 *OrdersApi* | [**put_ordermodify**](docs/OrdersApi.md#put_ordermodify) | **PUT** /resellers/v6/orders/{orderNumber} | Modify your Order *ProductCatalogApi* | [**get_reseller_v6_productdetail**](docs/ProductCatalogApi.md#get_reseller_v6_productdetail) | **GET** /resellers/v6/catalog/details/{ingramPartNumber} | Product Details +*ProductCatalogApi* | [**get_reseller_v6_productdetail_cmp**](docs/ProductCatalogApi.md#get_reseller_v6_productdetail_cmp) | **GET** /resellers/v6/catalog/details | Product Details *ProductCatalogApi* | [**get_reseller_v6_productsearch**](docs/ProductCatalogApi.md#get_reseller_v6_productsearch) | **GET** /resellers/v6/catalog | Search Products *ProductCatalogApi* | [**post_priceandavailability**](docs/ProductCatalogApi.md#post_priceandavailability) | **POST** /resellers/v6/catalog/priceandavailability | Price and Availability *QuotesApi* | [**get_quotessearch_v6**](docs/QuotesApi.md#get_quotessearch_v6) | **GET** /resellers/v6/quotes/search | Quote Search diff --git a/docs/ProductCatalogApi.md b/docs/ProductCatalogApi.md index 034104c6..62080399 100644 --- a/docs/ProductCatalogApi.md +++ b/docs/ProductCatalogApi.md @@ -5,12 +5,13 @@ All URIs are relative to *https://api.ingrammicro.com:443* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_reseller_v6_productdetail**](ProductCatalogApi.md#get_reseller_v6_productdetail) | **GET** /resellers/v6/catalog/details/{ingramPartNumber} | Product Details +[**get_reseller_v6_productdetail_cmp**](ProductCatalogApi.md#get_reseller_v6_productdetail_cmp) | **GET** /resellers/v6/catalog/details | Product Details [**get_reseller_v6_productsearch**](ProductCatalogApi.md#get_reseller_v6_productsearch) | **GET** /resellers/v6/catalog | Search Products [**post_priceandavailability**](ProductCatalogApi.md#post_priceandavailability) | **POST** /resellers/v6/catalog/priceandavailability | Price and Availability # **get_reseller_v6_productdetail** -> ProductDetailResponse get_reseller_v6_productdetail(ingram_part_number, im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id, vendor_part_number=vendor_part_number, plan_name=plan_name, plan_id=plan_id) +> ProductDetailResponse get_reseller_v6_productdetail(ingram_part_number, im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id) Product Details @@ -46,6 +47,91 @@ with xi.sdk.resellers.ApiClient(configuration) as api_client: ingram_part_number = '6YE881' # str | Ingram Micro unique part number for the product im_customer_number = '20-222222' # str | Your unique Ingram Micro customer number im_country_code = 'US' # str | Two-character ISO country code. + im_correlation_id = 'fbac82ba-cf0a-4bcf-fc03-0c5084' # str | Unique transaction number to identify each transaction accross all the systems + im_sender_id = 'MyCompany' # str | Sender Identification text (optional) + + try: + # Product Details + api_response = api_instance.get_reseller_v6_productdetail(ingram_part_number, im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id) + print("The response of ProductCatalogApi->get_reseller_v6_productdetail:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProductCatalogApi->get_reseller_v6_productdetail: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ingram_part_number** | **str**| Ingram Micro unique part number for the product | + **im_customer_number** | **str**| Your unique Ingram Micro customer number | + **im_country_code** | **str**| Two-character ISO country code. | + **im_correlation_id** | **str**| Unique transaction number to identify each transaction accross all the systems | + **im_sender_id** | **str**| Sender Identification text | [optional] + +### Return type + +[**ProductDetailResponse**](ProductDetailResponse.md) + +### Authorization + +[application](../README.md#application) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**404** | No Content | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reseller_v6_productdetail_cmp** +> ProductDetailResponse get_reseller_v6_productdetail_cmp(im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id, vendor_part_number=vendor_part_number, plan_name=plan_name, plan_id=plan_id) + +Product Details + +Search all the product-related details using a unique Ingram Part Number. + +### Example + +* OAuth Authentication (application): + +```python +import xi.sdk.resellers +from xi.sdk.resellers.models.product_detail_response import ProductDetailResponse +from xi.sdk.resellers.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.ingrammicro.com:443 +# See configuration.py for a list of all supported configuration parameters. +configuration = xi.sdk.resellers.Configuration( + host = "https://api.ingrammicro.com:443" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with xi.sdk.resellers.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = xi.sdk.resellers.ProductCatalogApi(api_client) + im_customer_number = '20-222222' # str | Your unique Ingram Micro customer number + im_country_code = 'US' # str | Two-character ISO country code. im_correlation_id = 'fbac82ba-cf0a-4bcf-fc03-0c5084' # str | Unique transaction number to identify each transaction across all the systems im_sender_id = 'MyCompany' # str | Sender Identification text (optional) vendor_part_number = 'vendor_part_number_example' # str | Vendor’s part number for the product. (optional) @@ -54,11 +140,11 @@ with xi.sdk.resellers.ApiClient(configuration) as api_client: try: # Product Details - api_response = api_instance.get_reseller_v6_productdetail(ingram_part_number, im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id, vendor_part_number=vendor_part_number, plan_name=plan_name, plan_id=plan_id) - print("The response of ProductCatalogApi->get_reseller_v6_productdetail:\n") + api_response = api_instance.get_reseller_v6_productdetail_cmp(im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id, vendor_part_number=vendor_part_number, plan_name=plan_name, plan_id=plan_id) + print("The response of ProductCatalogApi->get_reseller_v6_productdetail_cmp:\n") pprint(api_response) except Exception as e: - print("Exception when calling ProductCatalogApi->get_reseller_v6_productdetail: %s\n" % e) + print("Exception when calling ProductCatalogApi->get_reseller_v6_productdetail_cmp: %s\n" % e) ``` @@ -68,7 +154,6 @@ with xi.sdk.resellers.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ingram_part_number** | **str**| Ingram Micro unique part number for the product | **im_customer_number** | **str**| Your unique Ingram Micro customer number | **im_country_code** | **str**| Two-character ISO country code. | **im_correlation_id** | **str**| Unique transaction number to identify each transaction across all the systems | diff --git a/test/test_product_catalog_api.py b/test/test_product_catalog_api.py index 2bdec189..8c733428 100644 --- a/test/test_product_catalog_api.py +++ b/test/test_product_catalog_api.py @@ -33,6 +33,13 @@ def test_get_reseller_v6_productdetail(self) -> None: """ pass + def test_get_reseller_v6_productdetail_cmp(self) -> None: + """Test case for get_reseller_v6_productdetail_cmp + + Product Details + """ + pass + def test_get_reseller_v6_productsearch(self) -> None: """Test case for get_reseller_v6_productsearch diff --git a/xi/sdk/resellers/api/product_catalog_api.py b/xi/sdk/resellers/api/product_catalog_api.py index d52e1a09..36f4e352 100644 --- a/xi/sdk/resellers/api/product_catalog_api.py +++ b/xi/sdk/resellers/api/product_catalog_api.py @@ -48,6 +48,335 @@ def get_reseller_v6_productdetail( ingram_part_number: Annotated[str, Field(strict=True, max_length=6, description="Ingram Micro unique part number for the product")], im_customer_number: Annotated[str, Field(strict=True, max_length=10, description="Your unique Ingram Micro customer number")], im_country_code: Annotated[str, Field(min_length=2, strict=True, max_length=2, description="Two-character ISO country code.")], + im_correlation_id: Annotated[str, Field(strict=True, max_length=32, description="Unique transaction number to identify each transaction accross all the systems")], + im_sender_id: Annotated[Optional[Annotated[str, Field(strict=True, max_length=32)]], Field(description="Sender Identification text")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ProductDetailResponse: + """Product Details + + Search all the product-related details using a unique Ingram Part Number. Currently, this API is available in the USA, India, and Netherlands. + + :param ingram_part_number: Ingram Micro unique part number for the product (required) + :type ingram_part_number: str + :param im_customer_number: Your unique Ingram Micro customer number (required) + :type im_customer_number: str + :param im_country_code: Two-character ISO country code. (required) + :type im_country_code: str + :param im_correlation_id: Unique transaction number to identify each transaction accross all the systems (required) + :type im_correlation_id: str + :param im_sender_id: Sender Identification text + :type im_sender_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reseller_v6_productdetail_serialize( + ingram_part_number=ingram_part_number, + im_customer_number=im_customer_number, + im_country_code=im_country_code, + im_correlation_id=im_correlation_id, + im_sender_id=im_sender_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProductDetailResponse", + '400': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reseller_v6_productdetail_with_http_info( + self, + ingram_part_number: Annotated[str, Field(strict=True, max_length=6, description="Ingram Micro unique part number for the product")], + im_customer_number: Annotated[str, Field(strict=True, max_length=10, description="Your unique Ingram Micro customer number")], + im_country_code: Annotated[str, Field(min_length=2, strict=True, max_length=2, description="Two-character ISO country code.")], + im_correlation_id: Annotated[str, Field(strict=True, max_length=32, description="Unique transaction number to identify each transaction accross all the systems")], + im_sender_id: Annotated[Optional[Annotated[str, Field(strict=True, max_length=32)]], Field(description="Sender Identification text")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ProductDetailResponse]: + """Product Details + + Search all the product-related details using a unique Ingram Part Number. Currently, this API is available in the USA, India, and Netherlands. + + :param ingram_part_number: Ingram Micro unique part number for the product (required) + :type ingram_part_number: str + :param im_customer_number: Your unique Ingram Micro customer number (required) + :type im_customer_number: str + :param im_country_code: Two-character ISO country code. (required) + :type im_country_code: str + :param im_correlation_id: Unique transaction number to identify each transaction accross all the systems (required) + :type im_correlation_id: str + :param im_sender_id: Sender Identification text + :type im_sender_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reseller_v6_productdetail_serialize( + ingram_part_number=ingram_part_number, + im_customer_number=im_customer_number, + im_country_code=im_country_code, + im_correlation_id=im_correlation_id, + im_sender_id=im_sender_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProductDetailResponse", + '400': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reseller_v6_productdetail_without_preload_content( + self, + ingram_part_number: Annotated[str, Field(strict=True, max_length=6, description="Ingram Micro unique part number for the product")], + im_customer_number: Annotated[str, Field(strict=True, max_length=10, description="Your unique Ingram Micro customer number")], + im_country_code: Annotated[str, Field(min_length=2, strict=True, max_length=2, description="Two-character ISO country code.")], + im_correlation_id: Annotated[str, Field(strict=True, max_length=32, description="Unique transaction number to identify each transaction accross all the systems")], + im_sender_id: Annotated[Optional[Annotated[str, Field(strict=True, max_length=32)]], Field(description="Sender Identification text")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Product Details + + Search all the product-related details using a unique Ingram Part Number. Currently, this API is available in the USA, India, and Netherlands. + + :param ingram_part_number: Ingram Micro unique part number for the product (required) + :type ingram_part_number: str + :param im_customer_number: Your unique Ingram Micro customer number (required) + :type im_customer_number: str + :param im_country_code: Two-character ISO country code. (required) + :type im_country_code: str + :param im_correlation_id: Unique transaction number to identify each transaction accross all the systems (required) + :type im_correlation_id: str + :param im_sender_id: Sender Identification text + :type im_sender_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reseller_v6_productdetail_serialize( + ingram_part_number=ingram_part_number, + im_customer_number=im_customer_number, + im_country_code=im_country_code, + im_correlation_id=im_correlation_id, + im_sender_id=im_sender_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ProductDetailResponse", + '400': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reseller_v6_productdetail_serialize( + self, + ingram_part_number, + im_customer_number, + im_country_code, + im_correlation_id, + im_sender_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if ingram_part_number is not None: + _path_params['ingramPartNumber'] = ingram_part_number + # process the query parameters + # process the header parameters + if im_customer_number is not None: + _header_params['IM-CustomerNumber'] = im_customer_number + if im_country_code is not None: + _header_params['IM-CountryCode'] = im_country_code + if im_sender_id is not None: + _header_params['IM-SenderID'] = im_sender_id + if im_correlation_id is not None: + _header_params['IM-CorrelationID'] = im_correlation_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'application' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/resellers/v6/catalog/details/{ingramPartNumber}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reseller_v6_productdetail_cmp( + self, + im_customer_number: Annotated[str, Field(strict=True, max_length=10, description="Your unique Ingram Micro customer number")], + im_country_code: Annotated[str, Field(min_length=2, strict=True, max_length=2, description="Two-character ISO country code.")], im_correlation_id: Annotated[str, Field(strict=True, max_length=32, description="Unique transaction number to identify each transaction across all the systems")], im_sender_id: Annotated[Optional[Annotated[str, Field(strict=True, max_length=32)]], Field(description="Sender Identification text")] = None, vendor_part_number: Annotated[Optional[StrictStr], Field(description="Vendor’s part number for the product.")] = None, @@ -68,10 +397,8 @@ def get_reseller_v6_productdetail( ) -> ProductDetailResponse: """Product Details - Search all the product-related details using a unique Ingram Part Number. Currently, this API is available in the USA, India, and Netherlands. + Search all the product-related details using a unique Ingram Part Number. - :param ingram_part_number: Ingram Micro unique part number for the product (required) - :type ingram_part_number: str :param im_customer_number: Your unique Ingram Micro customer number (required) :type im_customer_number: str :param im_country_code: Two-character ISO country code. (required) @@ -108,8 +435,7 @@ def get_reseller_v6_productdetail( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reseller_v6_productdetail_serialize( - ingram_part_number=ingram_part_number, + _param = self._get_reseller_v6_productdetail_cmp_serialize( im_customer_number=im_customer_number, im_country_code=im_country_code, im_correlation_id=im_correlation_id, @@ -141,9 +467,8 @@ def get_reseller_v6_productdetail( @validate_call - def get_reseller_v6_productdetail_with_http_info( + def get_reseller_v6_productdetail_cmp_with_http_info( self, - ingram_part_number: Annotated[str, Field(strict=True, max_length=6, description="Ingram Micro unique part number for the product")], im_customer_number: Annotated[str, Field(strict=True, max_length=10, description="Your unique Ingram Micro customer number")], im_country_code: Annotated[str, Field(min_length=2, strict=True, max_length=2, description="Two-character ISO country code.")], im_correlation_id: Annotated[str, Field(strict=True, max_length=32, description="Unique transaction number to identify each transaction across all the systems")], @@ -166,10 +491,8 @@ def get_reseller_v6_productdetail_with_http_info( ) -> ApiResponse[ProductDetailResponse]: """Product Details - Search all the product-related details using a unique Ingram Part Number. Currently, this API is available in the USA, India, and Netherlands. + Search all the product-related details using a unique Ingram Part Number. - :param ingram_part_number: Ingram Micro unique part number for the product (required) - :type ingram_part_number: str :param im_customer_number: Your unique Ingram Micro customer number (required) :type im_customer_number: str :param im_country_code: Two-character ISO country code. (required) @@ -206,8 +529,7 @@ def get_reseller_v6_productdetail_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reseller_v6_productdetail_serialize( - ingram_part_number=ingram_part_number, + _param = self._get_reseller_v6_productdetail_cmp_serialize( im_customer_number=im_customer_number, im_country_code=im_country_code, im_correlation_id=im_correlation_id, @@ -239,9 +561,8 @@ def get_reseller_v6_productdetail_with_http_info( @validate_call - def get_reseller_v6_productdetail_without_preload_content( + def get_reseller_v6_productdetail_cmp_without_preload_content( self, - ingram_part_number: Annotated[str, Field(strict=True, max_length=6, description="Ingram Micro unique part number for the product")], im_customer_number: Annotated[str, Field(strict=True, max_length=10, description="Your unique Ingram Micro customer number")], im_country_code: Annotated[str, Field(min_length=2, strict=True, max_length=2, description="Two-character ISO country code.")], im_correlation_id: Annotated[str, Field(strict=True, max_length=32, description="Unique transaction number to identify each transaction across all the systems")], @@ -264,10 +585,8 @@ def get_reseller_v6_productdetail_without_preload_content( ) -> RESTResponseType: """Product Details - Search all the product-related details using a unique Ingram Part Number. Currently, this API is available in the USA, India, and Netherlands. + Search all the product-related details using a unique Ingram Part Number. - :param ingram_part_number: Ingram Micro unique part number for the product (required) - :type ingram_part_number: str :param im_customer_number: Your unique Ingram Micro customer number (required) :type im_customer_number: str :param im_country_code: Two-character ISO country code. (required) @@ -304,8 +623,7 @@ def get_reseller_v6_productdetail_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reseller_v6_productdetail_serialize( - ingram_part_number=ingram_part_number, + _param = self._get_reseller_v6_productdetail_cmp_serialize( im_customer_number=im_customer_number, im_country_code=im_country_code, im_correlation_id=im_correlation_id, @@ -332,9 +650,8 @@ def get_reseller_v6_productdetail_without_preload_content( return response_data.response - def _get_reseller_v6_productdetail_serialize( + def _get_reseller_v6_productdetail_cmp_serialize( self, - ingram_part_number, im_customer_number, im_country_code, im_correlation_id, @@ -363,8 +680,6 @@ def _get_reseller_v6_productdetail_serialize( _body_params: Optional[bytes] = None # process the path parameters - if ingram_part_number is not None: - _path_params['ingramPartNumber'] = ingram_part_number # process the query parameters if vendor_part_number is not None: @@ -407,7 +722,7 @@ def _get_reseller_v6_productdetail_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/resellers/v6/catalog/details/{ingramPartNumber}', + resource_path='/resellers/v6/catalog/details', path_params=_path_params, query_params=_query_params, header_params=_header_params,