Skip to content

Commit

Permalink
Merge pull request #17 from ingrammicro-xvantage/feature
Browse files Browse the repository at this point in the history
Feature
  • Loading branch information
im-deviprakash authored Feb 20, 2024
2 parents 315a981 + db5a30c commit 38f6133
Show file tree
Hide file tree
Showing 25 changed files with 67 additions and 59 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ This Python package is automatically generated by the [OpenAPI Generator](https:

Python 3.7+

# Installation & Usage
## Installation & Usage
### pip install
If you want to install package from pypi:
If you want to install from PyPI:
```sh
pip install xi.sdk.resellers
```
Expand All @@ -25,7 +25,6 @@ pip install git+https://github.com/ingrammicro-xvantage/xi-sdk-resellers-python.
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/ingrammicro-xvantage/xi-sdk-resellers-python.git`)


Then import the package:
```python
import xi.sdk.resellers
Expand Down Expand Up @@ -334,5 +333,3 @@ Authentication schemes defined for the API:
For any inquiries or support, please feel free to contact us at:

- Email: [xi_support@ingrammicro.com](xi_support@ingrammicro.com)


4 changes: 2 additions & 2 deletions docs/DealsDetailsResponseProductsInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Name | Type | Description | Notes
**remaining_quantity** | **int** | The quantity remaining as part of the deal for the customer to order. | [optional]
**comments** | **str** | Comments of the deal. | [optional]
**special_conditions** | **str** | Special conditions of the deal. | [optional]
**start_date** | **date** | Start Date. | [optional]
**expiration_date** | **date** | Expiration date. | [optional]
**start_date** | **str** | Start Date. | [optional]
**expiration_date** | **str** | Expiration date. | [optional]
**days_remaining** | **int** | Number of days remaining before the deal expires. | [optional]

## Example
Expand Down
1 change: 1 addition & 0 deletions docs/OrderDetailB2BLinesInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Name | Type | Description | Notes
**special_bid_number** | **str** | The line-level bid number provided to the reseller by the vendor for special pricing and discounts. Used to track the bid number in the case of split orders or where different line items have different bid numbers. Line-level bid numbers take precedence over header-level bid numbers. | [optional]
**requested_deliverydate** | **str** | Reseller-requested delivery date. Delivery date is not guaranteed. | [optional]
**promised_delivery_date** | **str** | The delivery date promised by IngramMicro. | [optional]
**back_order_eta_data** | **str** | Backorder ETA date | [optional]
**line_notes** | **str** | Line-level notes for the order. | [optional]
**shipment_details** | [**List[OrderDetailB2BLinesInnerShipmentDetailsInner]**](OrderDetailB2BLinesInnerShipmentDetailsInner.md) | Shipping details for the line item. | [optional]
**service_contract_info** | [**OrderDetailB2BLinesInnerServiceContractInfo**](OrderDetailB2BLinesInnerServiceContractInfo.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ProductDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**product_detail_description** | **str** | The detailed description given for the product. | [optional]
**upc** | **str** | The UPC code for the product. Consists of 12 numeric digits that are uniquely assigned to each trade item. | [optional]
**product_category** | **str** | The category of the product. | [optional]
**product_subcategory** | **str** | The sub-category of the product. | [optional]
**product_sub_category** | **str** | The sub-category of the product. | [optional]
**vendor_name** | **str** | Vendor name for the order. | [optional]
**vendor_number** | **str** | Vendor number that identifies the product. | [optional]
**product_status_code** | **str** | Status code of the product. | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/QuoteDetailsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Description | Notes
**intro_preamble** | **str** | Introductory paragraph included in each quote. Legally required - must be included when presenting the quote details. | [optional]
**purchase_instructions** | **str** | Purchase instructions. Legally required - must be included when presenting the quote details. | [optional]
**legal_terms** | **str** | Legal terms - Legally required - must be included when presenting the quote details. | [optional]
**quote_type** | **str** | | [optional]
**lease_info** | **str** | Lease information. | [optional]
**leasing_instructions** | **str** | Leasing information | [optional]
**reseller_info** | [**QuoteDetailsResponseResellerInfo**](QuoteDetailsResponseResellerInfo.md) | | [optional]
Expand Down
6 changes: 2 additions & 4 deletions docs/RenewalsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Name | Type | Description | Notes
[[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)

# **post_renewalssearch**
> RenewalsSearchResponse post_renewalssearch(im_customer_number, im_country_code, im_correlation_id, content_type, im_sender_id=im_sender_id, customer_order_number=customer_order_number, ingram_purchase_order_number=ingram_purchase_order_number, serial_number=serial_number, page=page, size=size, sort=sort, renewals_search_request=renewals_search_request)
> RenewalsSearchResponse post_renewalssearch(im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id, customer_order_number=customer_order_number, ingram_purchase_order_number=ingram_purchase_order_number, serial_number=serial_number, page=page, size=size, sort=sort, renewals_search_request=renewals_search_request)
Renewals Search

Expand Down Expand Up @@ -131,7 +131,6 @@ with xi.sdk.resellers.ApiClient(configuration) as 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.
content_type = 'application/json' # str | The media type for JSON Request.
im_sender_id = 'MyCompany' # str | Unique value used to identify the sender of the transaction. Example: MyCompany (optional)
customer_order_number = 'customer_order_number_example' # str | The reseller's unique PO/Order number. (optional)
ingram_purchase_order_number = 'ingram_purchase_order_number_example' # str | Sales order number. (optional)
Expand All @@ -143,7 +142,7 @@ with xi.sdk.resellers.ApiClient(configuration) as api_client:

try:
# Renewals Search
api_response = api_instance.post_renewalssearch(im_customer_number, im_country_code, im_correlation_id, content_type, im_sender_id=im_sender_id, customer_order_number=customer_order_number, ingram_purchase_order_number=ingram_purchase_order_number, serial_number=serial_number, page=page, size=size, sort=sort, renewals_search_request=renewals_search_request)
api_response = api_instance.post_renewalssearch(im_customer_number, im_country_code, im_correlation_id, im_sender_id=im_sender_id, customer_order_number=customer_order_number, ingram_purchase_order_number=ingram_purchase_order_number, serial_number=serial_number, page=page, size=size, sort=sort, renewals_search_request=renewals_search_request)
print("The response of RenewalsApi->post_renewalssearch:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -160,7 +159,6 @@ Name | Type | Description | Notes
**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. |
**content_type** | **str**| The media type for JSON Request. |
**im_sender_id** | **str**| Unique value used to identify the sender of the transaction. Example: MyCompany | [optional]
**customer_order_number** | **str**| The reseller's unique PO/Order number. | [optional]
**ingram_purchase_order_number** | **str**| Sales order number. | [optional]
Expand Down
5 changes: 3 additions & 2 deletions docs/ReturnsDetailsResponseProductsInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ Name | Type | Description | Notes
**ingram_part_number** | **str** | Unique IngramMicro part number. | [optional]
**vendor_part_number** | **str** | The vendor's part number for the line item. | [optional]
**upc** | **str** | The UPC code of a product. | [optional]
**invoice_date** | **date** | The date of the invoice. | [optional]
**invoice_date** | **str** | The date of the invoice. | [optional]
**invoice_number** | **str** | Ingram micro Invoice number. | [optional]
**customer_order_number** | **str** | The reseller's order number for reference in their system. | [optional]
**request_details** | **str** | Request details. | [optional]
**quantity** | **float** | The quantity of the line item. | [optional]
**unit_price** | **float** | The unit price of the line item. | [optional]
**extended_price** | **float** | Unit price X quantity for the line item. | [optional]
**status** | **str** | The status of the line item. | [optional]
**return_branch** | **str** | The code of the return branch. | [optional]
**ship_from_branch** | **str** | The code of the ship from branch. | [optional]
**request_details** | **str** | Request details. | [optional]
**additional_details** | **str** | | [optional]

## Example

Expand Down
4 changes: 4 additions & 0 deletions docs/ValidateQuoteResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Name | Type | Description | Notes
**vendor_name** | **str** | The name of the vendor. | [optional]
**vmf_additional_attributes** | [**List[ValidateQuoteResponseVmfAdditionalAttributesInner]**](ValidateQuoteResponseVmfAdditionalAttributesInner.md) | The object containing the list of fields required at a header level by the vendor. | [optional]
**lines** | [**List[ValidateQuoteResponseLinesInner]**](ValidateQuoteResponseLinesInner.md) | The object containing the lines from the quote. | [optional]
**quote_type** | **int** | | [optional]
**vendor_group_name** | **str** | | [optional]
**vendor_quote_number** | **str** | | [optional]
**vendor_master_number** | **str** | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

setup(
name=NAME,
version="0.0.4",
version="0.0.5",
description="Ingram Micro - Xvantage Integration (XI) Python Server-side SDK.",
author="Ingram Micro Xvantage Integration(XI)",
author_email="xi_support@ingrammicro.com",
Expand Down
4 changes: 2 additions & 2 deletions test/test_deals_details_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def make_instance(self, include_optional) -> DealsDetailsResponse:
remaining_quantity = 56,
comments = '',
special_conditions = '',
start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
start_date = '',
expiration_date = '',
days_remaining = 56, )
]
)
Expand Down
4 changes: 2 additions & 2 deletions test/test_deals_details_response_products_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def make_instance(self, include_optional) -> DealsDetailsResponseProductsInner:
remaining_quantity = 56,
comments = '',
special_conditions = '',
start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
start_date = '',
expiration_date = '',
days_remaining = 56
)
else:
Expand Down
1 change: 1 addition & 0 deletions test/test_order_detail_b2_b.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def make_instance(self, include_optional) -> OrderDetailB2B:
special_bid_number = '',
requested_deliverydate = '',
promised_delivery_date = '',
back_order_eta_data = '',
line_notes = '',
shipment_details = [
xi.sdk.resellers.models.order_detail_b2_b_lines_inner_shipment_details_inner.OrderDetailB2B_lines_inner_shipmentDetails_inner(
Expand Down
1 change: 1 addition & 0 deletions test/test_order_detail_b2_b_lines_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def make_instance(self, include_optional) -> OrderDetailB2BLinesInner:
special_bid_number = '',
requested_deliverydate = '',
promised_delivery_date = '',
back_order_eta_data = '',
line_notes = '',
shipment_details = [
xi.sdk.resellers.models.order_detail_b2_b_lines_inner_shipment_details_inner.OrderDetailB2B_lines_inner_shipmentDetails_inner(
Expand Down
2 changes: 1 addition & 1 deletion test/test_product_detail_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> ProductDetailResponse:
product_detail_description = '',
upc = '',
product_category = '',
product_subcategory = '',
product_sub_category = '',
vendor_name = '',
vendor_number = '',
product_status_code = '',
Expand Down
1 change: 1 addition & 0 deletions test/test_quote_details_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def make_instance(self, include_optional) -> QuoteDetailsResponse:
intro_preamble = '',
purchase_instructions = '',
legal_terms = '',
quote_type = '',
lease_info = '',
leasing_instructions = '',
reseller_info = xi.sdk.resellers.models.quote_details_response_reseller_info.QuoteDetailsResponse_resellerInfo(
Expand Down
7 changes: 4 additions & 3 deletions test/test_returns_details_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ def make_instance(self, include_optional) -> ReturnsDetailsResponse:
ingram_part_number = '',
vendor_part_number = '',
upc = '',
invoice_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
invoice_date = '',
invoice_number = '',
customer_order_number = '',
request_details = '',
quantity = 1.337,
unit_price = 1.337,
extended_price = 1.337,
status = '',
return_branch = '',
ship_from_branch = '', )
ship_from_branch = '',
request_details = '',
additional_details = '', )
],
sub_total = 1.337,
tax = 1.337,
Expand Down
7 changes: 4 additions & 3 deletions test/test_returns_details_response_products_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@ def make_instance(self, include_optional) -> ReturnsDetailsResponseProductsInner
ingram_part_number = '',
vendor_part_number = '',
upc = '',
invoice_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
invoice_date = '',
invoice_number = '',
customer_order_number = '',
request_details = '',
quantity = 1.337,
unit_price = 1.337,
extended_price = 1.337,
status = '',
return_branch = '',
ship_from_branch = ''
ship_from_branch = '',
request_details = '',
additional_details = ''
)
else:
return ReturnsDetailsResponseProductsInner(
Expand Down
6 changes: 5 additions & 1 deletion test/test_validate_quote_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ def make_instance(self, include_optional) -> ValidateQuoteResponse:
attribute_value = '',
attribute_description = '', )
], )
]
],
quote_type = 56,
vendor_group_name = '',
vendor_quote_number = '',
vendor_master_number = ''
)
else:
return ValidateQuoteResponse(
Expand Down
Loading

0 comments on commit 38f6133

Please sign in to comment.