Skip to content

Commit

Permalink
Merge pull request #15 from ingrammicro-xvantage/feature
Browse files Browse the repository at this point in the history
Feature
  • Loading branch information
im-deviprakash authored Feb 19, 2024
2 parents 2ae9b7b + a7a0cc3 commit 113a335
Show file tree
Hide file tree
Showing 32 changed files with 255 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ docs/QuoteDetailsResponseProductsInnerPrice.md
docs/QuoteDetailsResponseResellerInfo.md
docs/QuoteSearchResponse.md
docs/QuoteSearchResponseQuotesInner.md
docs/QuoteSearchResponseQuotesInnerLinksInner.md
docs/QuoteToOrderApi.md
docs/QuoteToOrderDetailsDTO.md
docs/QuoteToOrderDetailsDTOAdditionalAttributesInner.md
Expand Down Expand Up @@ -349,6 +350,7 @@ test/test_quote_details_response_products_inner_price.py
test/test_quote_details_response_reseller_info.py
test/test_quote_search_response.py
test/test_quote_search_response_quotes_inner.py
test/test_quote_search_response_quotes_inner_links_inner.py
test/test_quote_to_order_api.py
test/test_quote_to_order_details_dto.py
test/test_quote_to_order_details_dto_additional_attributes_inner.py
Expand Down Expand Up @@ -554,6 +556,7 @@ xi/sdk/resellers/models/quote_details_response_products_inner_price.py
xi/sdk/resellers/models/quote_details_response_reseller_info.py
xi/sdk/resellers/models/quote_search_response.py
xi/sdk/resellers/models/quote_search_response_quotes_inner.py
xi/sdk/resellers/models/quote_search_response_quotes_inner_links_inner.py
xi/sdk/resellers/models/quote_to_order_details_dto.py
xi/sdk/resellers/models/quote_to_order_details_dto_additional_attributes_inner.py
xi/sdk/resellers/models/quote_to_order_details_dto_end_user_info_inner.py
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:

Python 3.7+


## Installation & Usage
### pip install

Expand All @@ -26,7 +27,6 @@ Then import the package:
```python
import xi.sdk.resellers
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
Expand Down Expand Up @@ -266,6 +266,7 @@ Class | Method | HTTP request | Description
- [QuoteDetailsResponseResellerInfo](docs/QuoteDetailsResponseResellerInfo.md)
- [QuoteSearchResponse](docs/QuoteSearchResponse.md)
- [QuoteSearchResponseQuotesInner](docs/QuoteSearchResponseQuotesInner.md)
- [QuoteSearchResponseQuotesInnerLinksInner](docs/QuoteSearchResponseQuotesInnerLinksInner.md)
- [QuoteToOrderDetailsDTO](docs/QuoteToOrderDetailsDTO.md)
- [QuoteToOrderDetailsDTOAdditionalAttributesInner](docs/QuoteToOrderDetailsDTOAdditionalAttributesInner.md)
- [QuoteToOrderDetailsDTOEndUserInfoInner](docs/QuoteToOrderDetailsDTOEndUserInfoInner.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/DealsDetailsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**end_user** | **str** | The end user/customer's name. | [optional]
**extended_msrp** | **float** | Extended MSRP - Manufacturer Suggested Retail Price X Quantity. | [optional]
**vendor** | **str** | The vendor's name. | [optional]
**deal_received_on** | **date** | The date on which the deal starts. | [optional]
**deal_received_on** | **str** | The date on which the deal starts. | [optional]
**deal_expiry_date** | **str** | Expiration date of the deal/Special bid. | [optional]
**price_protection_end_date** | **str** | The date on which the price protection will end. | [optional]
**currency_code** | **str** | Country specific currency code. | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/InvoiceDetailsv61Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**invoice_date** | **date** | Date of an Invoice. | [optional]
**customer_order_number** | **str** | The reseller's order number for reference in their system. | [optional]
**end_customer_order_number** | **str** | The end customer's order number for reference in their system. | [optional]
**order_number** | **str** | The end customer's order number for reference in their system. | [optional]
**order_date** | **date** | The date and time in UTC format that the order was created. | [optional]
**bill_to_id** | **str** | Bill to party | [optional]
**invoice_type** | **str** | Type of the Invoice | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/OrderDetailB2B.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**currency_code** | **str** | The country-specific three digit ISO 4217 currency code for the order. | [optional]
**total_weight** | **float** | Total order weight. unit -- North america - Pounds , other countries will be KG. | [optional]
**total_tax** | **float** | Total tax on the orders placed. | [optional]
**total_fees** | **float** | Total fees on the orders placed. | [optional]
**payment_terms** | **str** | The payment terms of the order. (Ex- Net 30 days). | [optional]
**notes** | **str** | The header-level notes for the order. | [optional]
**bill_to_info** | [**OrderDetailB2BBillToInfo**](OrderDetailB2BBillToInfo.md) | | [optional]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**quantity_available** | **int** | The quantity of the product available in a given warehouse. | [optional]
**quantity_backordered** | **int** | The quantity of a product backordered in a given warehouse. | [optional]
**quantity_backordered_eta** | **str** | The estimated time of arrival of a product that has been backordered in a given warehouse. | [optional]
**quantity_on_order** | **int** | The quantity of the product on order. | [optional]
**back_order_info** | [**List[PriceAndAvailabilityResponseInnerAvailabilityAvailabilityByWarehouseInnerBackOrderInfoInner]**](PriceAndAvailabilityResponseInnerAvailabilityAvailabilityByWarehouseInnerBackOrderInfoInner.md) | *Currently, this feature is not available in these countries (Mexico, Turkey, New Zealand, Colombia, Chile, Brazil, Peru, Western Sahara). | [optional]

## Example
Expand Down
1 change: 1 addition & 0 deletions docs/QuoteDetailsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**last_modified_date** | **str** | Date the Quote was last updated or modified. | [optional]
**ingram_quote_expiry_date** | **str** | Quote expiration date. | [optional]
**currency_code** | **str** | Three letter currency code. | [optional]
**closing_reason** | **str** | Closing Reason for quote. | [optional]
**special_bid_id** | **str** | Price discount identifyer to specify a pricing discount that has been applied to the quote. If present - the priceDeviationStartDate and priceDeviationExpiryDate must be presented. Cisco refers to this as a Dart | [optional]
**special_bid_effective_date** | **str** | If price discount has been applied to the quote - the starting date the discount begins. | [optional]
**special_bid_expiration_date** | **str** | If a price discount has been applied to the quote - The date the discount expires and will no longer be applicable. | [optional]
Expand Down
4 changes: 4 additions & 0 deletions docs/QuoteSearchResponseQuotesInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**quote_guid** | **str** | | [optional]
**quote_name** | **str** | Quote Name given to quote by sales team or system generated. Generally used as a reference to identify the quote. | [optional]
**quote_number** | **str** | Unique identifier generated by Ingram Micros CRM specific to each quote. When applying a filter to the quoteNumber and including a partial quote number in the filter, all quotes containing any information included in the filter can be retrieved as a subset of all available customer quotes. | [optional]
**revision** | **str** | When a quote has been revised and updated, the quote number remains the same throughout the lifecycle of the quote, however, a Revision number is updated for each revision of the quote. The revision numbers is associated with the Unique Quote Number. | [optional]
Expand All @@ -15,8 +16,11 @@ Name | Type | Description | Notes
**ingram_quote_date** | **str** | Date the Quote was initially Created. | [optional]
**last_modified_date** | **str** | Date the Quote was last updated or modified. | [optional]
**ingram_quote_expiry_date** | **str** | Date when the Quote Expires. | [optional]
**end_user_name** | **str** | End User Name | [optional]
**vendor** | **str** | Name of the vendor. | [optional]
**created_by** | **str** | Name of the end user/customer who created a quote. | [optional]
**quote_type** | **str** | Type of quote | [optional]
**links** | [**List[QuoteSearchResponseQuotesInnerLinksInner]**](QuoteSearchResponseQuotesInnerLinksInner.md) | | [optional]

## Example

Expand Down
31 changes: 31 additions & 0 deletions docs/QuoteSearchResponseQuotesInnerLinksInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# QuoteSearchResponseQuotesInnerLinksInner


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**topic** | **str** | | [optional]
**href** | **str** | | [optional]
**type** | **str** | | [optional]

## Example

```python
from xi.sdk.resellers.models.quote_search_response_quotes_inner_links_inner import QuoteSearchResponseQuotesInnerLinksInner

# TODO update the JSON string below
json = "{}"
# create an instance of QuoteSearchResponseQuotesInnerLinksInner from a JSON string
quote_search_response_quotes_inner_links_inner_instance = QuoteSearchResponseQuotesInnerLinksInner.from_json(json)
# print the JSON string representation of the object
print QuoteSearchResponseQuotesInnerLinksInner.to_json()

# convert the object into a dict
quote_search_response_quotes_inner_links_inner_dict = quote_search_response_quotes_inner_links_inner_instance.to_dict()
# create an instance of QuoteSearchResponseQuotesInnerLinksInner from a dict
quote_search_response_quotes_inner_links_inner_form_dict = quote_search_response_quotes_inner_links_inner.from_dict(quote_search_response_quotes_inner_links_inner_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/ReturnsDetailsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**type_of_details** | **str** | The type of the details. Return or Claim. | [optional]
**rma_claim_id** | **str** | The rmaClaimId claim id. | [optional]
**case_request_number** | **str** | A unique return request number. | [optional]
**created_on** | **date** | The date on which the return request was created. | [optional]
**created_on** | **str** | The date on which the return request was created. | [optional]
**return_reason** | **str** | The reason for the return. | [optional]
**reference_number** | **str** | The reference number for the return. | [optional]
**status** | **str** | The status of the request. | [optional]
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.2",
version="0.0.3",
description="Ingram Micro - Xvantage Integration (XI) Python Server-side SDK.",
author="Ingram Micro Xvantage Integration(XI)",
author_email="xi_support@ingrammicro.com",
Expand Down
2 changes: 1 addition & 1 deletion test/test_deals_details_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> DealsDetailsResponse:
end_user = '',
extended_msrp = 1.337,
vendor = '',
deal_received_on = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
deal_received_on = '',
deal_expiry_date = '',
price_protection_end_date = '',
currency_code = '',
Expand Down
1 change: 1 addition & 0 deletions test/test_invoice_detailsv61_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> InvoiceDetailsv61Response:
invoice_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
customer_order_number = '',
end_customer_order_number = '',
order_number = '',
order_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
bill_to_id = '',
invoice_type = '',
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 @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> OrderDetailB2B:
currency_code = '',
total_weight = 1.337,
total_tax = 1.337,
total_fees = 1.337,
payment_terms = '',
notes = '',
bill_to_info = xi.sdk.resellers.models.order_detail_b2_b_bill_to_info.OrderDetailB2B_billToInfo(
Expand Down
1 change: 1 addition & 0 deletions test/test_price_and_availability_response_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def make_instance(self, include_optional) -> PriceAndAvailabilityResponseInner:
quantity_available = 56,
quantity_backordered = 56,
quantity_backordered_eta = '',
quantity_on_order = 56,
back_order_info = [
xi.sdk.resellers.models.price_and_availability_response_inner_availability_availability_by_warehouse_inner_back_order_info_inner.PriceAndAvailabilityResponse_inner_availability_availabilityByWarehouse_inner_backOrderInfo_inner(
quantity = 56,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> PriceAndAvailabilityResponseInnerAv
quantity_available = 56,
quantity_backordered = 56,
quantity_backordered_eta = '',
quantity_on_order = 56,
back_order_info = [
xi.sdk.resellers.models.price_and_availability_response_inner_availability_availability_by_warehouse_inner_back_order_info_inner.PriceAndAvailabilityResponse_inner_availability_availabilityByWarehouse_inner_backOrderInfo_inner(
quantity = 56,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> PriceAndAvailabilityResponseInnerAv
quantity_available = 56,
quantity_backordered = 56,
quantity_backordered_eta = '',
quantity_on_order = 56,
back_order_info = [
xi.sdk.resellers.models.price_and_availability_response_inner_availability_availability_by_warehouse_inner_back_order_info_inner.PriceAndAvailabilityResponse_inner_availability_availabilityByWarehouse_inner_backOrderInfo_inner(
quantity = 56,
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 @@ -42,6 +42,7 @@ def make_instance(self, include_optional) -> QuoteDetailsResponse:
last_modified_date = '',
ingram_quote_expiry_date = '',
currency_code = '',
closing_reason = '',
special_bid_id = '',
special_bid_effective_date = '',
special_bid_expiration_date = '',
Expand Down
11 changes: 10 additions & 1 deletion test/test_quote_search_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> QuoteSearchResponse:
page_number = 56,
quotes = [
xi.sdk.resellers.models.quote_search_response_quotes_inner.QuoteSearchResponse_quotes_inner(
quote_guid = '',
quote_name = '',
quote_number = '',
revision = '',
Expand All @@ -50,8 +51,16 @@ def make_instance(self, include_optional) -> QuoteSearchResponse:
ingram_quote_date = '',
last_modified_date = '',
ingram_quote_expiry_date = '',
end_user_name = '',
vendor = '',
created_by = '', )
created_by = '',
quote_type = '',
links = [
xi.sdk.resellers.models.quote_search_response_quotes_inner_links_inner.QuoteSearchResponse_quotes_inner_links_inner(
topic = '',
href = '',
type = '', )
], )
]
)
else:
Expand Down
11 changes: 10 additions & 1 deletion test/test_quote_search_response_quotes_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> QuoteSearchResponseQuotesInner:
model = QuoteSearchResponseQuotesInner()
if include_optional:
return QuoteSearchResponseQuotesInner(
quote_guid = '',
quote_name = '',
quote_number = '',
revision = '',
Expand All @@ -45,8 +46,16 @@ def make_instance(self, include_optional) -> QuoteSearchResponseQuotesInner:
ingram_quote_date = '',
last_modified_date = '',
ingram_quote_expiry_date = '',
end_user_name = '',
vendor = '',
created_by = ''
created_by = '',
quote_type = '',
links = [
xi.sdk.resellers.models.quote_search_response_quotes_inner_links_inner.QuoteSearchResponse_quotes_inner_links_inner(
topic = '',
href = '',
type = '', )
]
)
else:
return QuoteSearchResponseQuotesInner(
Expand Down
53 changes: 53 additions & 0 deletions test/test_quote_search_response_quotes_inner_links_inner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# coding: utf-8

"""
XI Sdk Resellers
For Resellers. Who are looking to Innovate with Ingram Micro's API SolutionsAutomate your eCommerce with our offering of APIs and Webhooks to create a seamless experience for your customers.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


import unittest

from xi.sdk.resellers.models.quote_search_response_quotes_inner_links_inner import QuoteSearchResponseQuotesInnerLinksInner

class TestQuoteSearchResponseQuotesInnerLinksInner(unittest.TestCase):
"""QuoteSearchResponseQuotesInnerLinksInner unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> QuoteSearchResponseQuotesInnerLinksInner:
"""Test QuoteSearchResponseQuotesInnerLinksInner
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `QuoteSearchResponseQuotesInnerLinksInner`
"""
model = QuoteSearchResponseQuotesInnerLinksInner()
if include_optional:
return QuoteSearchResponseQuotesInnerLinksInner(
topic = '',
href = '',
type = ''
)
else:
return QuoteSearchResponseQuotesInnerLinksInner(
)
"""

def testQuoteSearchResponseQuotesInnerLinksInner(self):
"""Test QuoteSearchResponseQuotesInnerLinksInner"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
2 changes: 1 addition & 1 deletion test/test_returns_details_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> ReturnsDetailsResponse:
type_of_details = '',
rma_claim_id = '',
case_request_number = '',
created_on = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
created_on = '',
return_reason = '',
reference_number = '',
status = '',
Expand Down
1 change: 1 addition & 0 deletions xi/sdk/resellers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
from xi.sdk.resellers.models.quote_details_response_reseller_info import QuoteDetailsResponseResellerInfo
from xi.sdk.resellers.models.quote_search_response import QuoteSearchResponse
from xi.sdk.resellers.models.quote_search_response_quotes_inner import QuoteSearchResponseQuotesInner
from xi.sdk.resellers.models.quote_search_response_quotes_inner_links_inner import QuoteSearchResponseQuotesInnerLinksInner
from xi.sdk.resellers.models.quote_to_order_details_dto import QuoteToOrderDetailsDTO
from xi.sdk.resellers.models.quote_to_order_details_dto_additional_attributes_inner import QuoteToOrderDetailsDTOAdditionalAttributesInner
from xi.sdk.resellers.models.quote_to_order_details_dto_end_user_info_inner import QuoteToOrderDetailsDTOEndUserInfoInner
Expand Down
1 change: 1 addition & 0 deletions xi/sdk/resellers/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
from xi.sdk.resellers.models.quote_details_response_reseller_info import QuoteDetailsResponseResellerInfo
from xi.sdk.resellers.models.quote_search_response import QuoteSearchResponse
from xi.sdk.resellers.models.quote_search_response_quotes_inner import QuoteSearchResponseQuotesInner
from xi.sdk.resellers.models.quote_search_response_quotes_inner_links_inner import QuoteSearchResponseQuotesInnerLinksInner
from xi.sdk.resellers.models.quote_to_order_details_dto import QuoteToOrderDetailsDTO
from xi.sdk.resellers.models.quote_to_order_details_dto_additional_attributes_inner import QuoteToOrderDetailsDTOAdditionalAttributesInner
from xi.sdk.resellers.models.quote_to_order_details_dto_end_user_info_inner import QuoteToOrderDetailsDTOEndUserInfoInner
Expand Down
Loading

0 comments on commit 113a335

Please sign in to comment.