diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 8ac2bed0..793867d9 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -8,6 +8,19 @@ build.gradle
build.sbt
docs/AccesstokenApi.md
docs/AccesstokenResponse.md
+docs/AsyncOrderCreateDTO.md
+docs/AsyncOrderCreateDTOAdditionalAttributesInner.md
+docs/AsyncOrderCreateDTOEndUserInfo.md
+docs/AsyncOrderCreateDTOLinesInner.md
+docs/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.md
+docs/AsyncOrderCreateDTOResellerInfo.md
+docs/AsyncOrderCreateDTOShipToInfo.md
+docs/AsyncOrderCreateDTOShipmentDetails.md
+docs/AsyncOrderCreateDTOVmfadditionalAttributesInner.md
+docs/AsyncOrderCreateDTOWarrantyInfoInner.md
+docs/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.md
+docs/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.md
+docs/AsyncOrderCreateResponse.md
docs/AvailabilityAsyncNotificationRequest.md
docs/AvailabilityAsyncNotificationRequestResourceInner.md
docs/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.md
@@ -37,7 +50,6 @@ docs/GetAccesstoken500ResponseFault.md
docs/GetAccesstoken500ResponseFaultDetail.md
docs/GetResellerV6ValidateQuote400Response.md
docs/GetResellerV6ValidateQuote400ResponseFieldsInner.md
-docs/GetResellerV6ValidateQuote500Response.md
docs/InvoiceDetailsv61Response.md
docs/InvoiceDetailsv61ResponseBillToInfo.md
docs/InvoiceDetailsv61ResponseFxRateInfo.md
@@ -124,8 +136,9 @@ docs/OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsIn
docs/OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInnerPackageDetailsInner.md
docs/OrderStatusAsyncNotificationRequestResourceInnerLinksInner.md
docs/OrdersApi.md
-docs/PostQuoteToOrderV6400Response.md
-docs/PostQuoteToOrderV6400ResponseFieldsInner.md
+docs/PostCreateorderV7400Response.md
+docs/PostCreateorderV7400ResponseFieldsInner.md
+docs/PostCreateorderV7500Response.md
docs/PostRenewalssearch400Response.md
docs/PriceAndAvailabilityRequest.md
docs/PriceAndAvailabilityRequestAdditionalAttributesInner.md
@@ -156,20 +169,15 @@ docs/QuoteDetailsResponse.md
docs/QuoteDetailsResponseAdditionalAttributesInner.md
docs/QuoteDetailsResponseEndUserInfo.md
docs/QuoteDetailsResponseProductsInner.md
+docs/QuoteDetailsResponseProductsInnerBillDetailsInner.md
docs/QuoteDetailsResponseProductsInnerPrice.md
+docs/QuoteDetailsResponseProductsInnerPriceDiscountsInner.md
+docs/QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.md
docs/QuoteDetailsResponseResellerInfo.md
+docs/QuoteDetailsResponseShippingInfo.md
docs/QuoteSearchResponse.md
docs/QuoteSearchResponseQuotesInner.md
docs/QuoteSearchResponseQuotesInnerLinks.md
-docs/QuoteToOrderApi.md
-docs/QuoteToOrderDetailsDTO.md
-docs/QuoteToOrderDetailsDTOAdditionalAttributesInner.md
-docs/QuoteToOrderDetailsDTOEndUserInfo.md
-docs/QuoteToOrderDetailsDTOLinesInner.md
-docs/QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.md
-docs/QuoteToOrderDetailsDTOShipToInfo.md
-docs/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.md
-docs/QuoteToOrderResponse.md
docs/QuotesApi.md
docs/RenewalsApi.md
docs/RenewalsDetailsResponse.md
@@ -202,6 +210,7 @@ docs/ReturnsSearchResponseReturnsClaimsInnerLinksInner.md
docs/StockUpdateApi.md
docs/ValidateQuoteResponse.md
docs/ValidateQuoteResponseLinesInner.md
+docs/ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.md
docs/ValidateQuoteResponseVmfAdditionalAttributesInner.md
git_push.sh
gradle.properties
@@ -232,7 +241,6 @@ src/main/java/xiresellers/client/api/InvoicesApi.java
src/main/java/xiresellers/client/api/OrderStatusApi.java
src/main/java/xiresellers/client/api/OrdersApi.java
src/main/java/xiresellers/client/api/ProductCatalogApi.java
-src/main/java/xiresellers/client/api/QuoteToOrderApi.java
src/main/java/xiresellers/client/api/QuotesApi.java
src/main/java/xiresellers/client/api/RenewalsApi.java
src/main/java/xiresellers/client/api/ReturnsApi.java
@@ -247,6 +255,19 @@ src/main/java/xiresellers/client/auth/OAuthOkHttpClient.java
src/main/java/xiresellers/client/auth/RetryingOAuth.java
src/main/java/xiresellers/client/model/AbstractOpenApiSchema.java
src/main/java/xiresellers/client/model/AccesstokenResponse.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTO.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOAdditionalAttributesInner.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOEndUserInfo.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInner.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOResellerInfo.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipToInfo.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipmentDetails.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOVmfadditionalAttributesInner.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInner.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.java
+src/main/java/xiresellers/client/model/AsyncOrderCreateResponse.java
src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequest.java
src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInner.java
src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.java
@@ -274,7 +295,6 @@ src/main/java/xiresellers/client/model/GetAccesstoken500ResponseFault.java
src/main/java/xiresellers/client/model/GetAccesstoken500ResponseFaultDetail.java
src/main/java/xiresellers/client/model/GetResellerV6ValidateQuote400Response.java
src/main/java/xiresellers/client/model/GetResellerV6ValidateQuote400ResponseFieldsInner.java
-src/main/java/xiresellers/client/model/GetResellerV6ValidateQuote500Response.java
src/main/java/xiresellers/client/model/InvoiceDetailsv61Response.java
src/main/java/xiresellers/client/model/InvoiceDetailsv61ResponseBillToInfo.java
src/main/java/xiresellers/client/model/InvoiceDetailsv61ResponseFxRateInfo.java
@@ -358,8 +378,9 @@ src/main/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestResour
src/main/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInner.java
src/main/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInnerPackageDetailsInner.java
src/main/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestResourceInnerLinksInner.java
-src/main/java/xiresellers/client/model/PostQuoteToOrderV6400Response.java
-src/main/java/xiresellers/client/model/PostQuoteToOrderV6400ResponseFieldsInner.java
+src/main/java/xiresellers/client/model/PostCreateorderV7400Response.java
+src/main/java/xiresellers/client/model/PostCreateorderV7400ResponseFieldsInner.java
+src/main/java/xiresellers/client/model/PostCreateorderV7500Response.java
src/main/java/xiresellers/client/model/PostRenewalssearch400Response.java
src/main/java/xiresellers/client/model/PriceAndAvailabilityRequest.java
src/main/java/xiresellers/client/model/PriceAndAvailabilityRequestAdditionalAttributesInner.java
@@ -389,19 +410,15 @@ src/main/java/xiresellers/client/model/QuoteDetailsResponse.java
src/main/java/xiresellers/client/model/QuoteDetailsResponseAdditionalAttributesInner.java
src/main/java/xiresellers/client/model/QuoteDetailsResponseEndUserInfo.java
src/main/java/xiresellers/client/model/QuoteDetailsResponseProductsInner.java
+src/main/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerBillDetailsInner.java
src/main/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerPrice.java
+src/main/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerPriceDiscountsInner.java
+src/main/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.java
src/main/java/xiresellers/client/model/QuoteDetailsResponseResellerInfo.java
+src/main/java/xiresellers/client/model/QuoteDetailsResponseShippingInfo.java
src/main/java/xiresellers/client/model/QuoteSearchResponse.java
src/main/java/xiresellers/client/model/QuoteSearchResponseQuotesInner.java
src/main/java/xiresellers/client/model/QuoteSearchResponseQuotesInnerLinks.java
-src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTO.java
-src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOAdditionalAttributesInner.java
-src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOEndUserInfo.java
-src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOLinesInner.java
-src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.java
-src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOShipToInfo.java
-src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.java
-src/main/java/xiresellers/client/model/QuoteToOrderResponse.java
src/main/java/xiresellers/client/model/RenewalsDetailsResponse.java
src/main/java/xiresellers/client/model/RenewalsDetailsResponseAdditionalAttributesInner.java
src/main/java/xiresellers/client/model/RenewalsDetailsResponseEndUserInfo.java
@@ -430,6 +447,7 @@ src/main/java/xiresellers/client/model/ReturnsSearchResponseReturnsClaimsInner.j
src/main/java/xiresellers/client/model/ReturnsSearchResponseReturnsClaimsInnerLinksInner.java
src/main/java/xiresellers/client/model/ValidateQuoteResponse.java
src/main/java/xiresellers/client/model/ValidateQuoteResponseLinesInner.java
+src/main/java/xiresellers/client/model/ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.java
src/main/java/xiresellers/client/model/ValidateQuoteResponseVmfAdditionalAttributesInner.java
src/test/java/xiresellers/client/api/AccesstokenApiTest.java
src/test/java/xiresellers/client/api/DealsApiTest.java
@@ -438,12 +456,24 @@ src/test/java/xiresellers/client/api/InvoicesApiTest.java
src/test/java/xiresellers/client/api/OrderStatusApiTest.java
src/test/java/xiresellers/client/api/OrdersApiTest.java
src/test/java/xiresellers/client/api/ProductCatalogApiTest.java
-src/test/java/xiresellers/client/api/QuoteToOrderApiTest.java
src/test/java/xiresellers/client/api/QuotesApiTest.java
src/test/java/xiresellers/client/api/RenewalsApiTest.java
src/test/java/xiresellers/client/api/ReturnsApiTest.java
src/test/java/xiresellers/client/api/StockUpdateApiTest.java
src/test/java/xiresellers/client/model/AccesstokenResponseTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOAdditionalAttributesInnerTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOEndUserInfoTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInnerEndUserInfoInnerTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInnerTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOResellerInfoTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOShipToInfoTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOShipmentDetailsTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOVmfadditionalAttributesInnerTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInnerTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInnerTest.java
+src/test/java/xiresellers/client/model/AsyncOrderCreateResponseTest.java
src/test/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInnerLinksInnerTest.java
src/test/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInnerTest.java
src/test/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestTest.java
@@ -471,7 +501,6 @@ src/test/java/xiresellers/client/model/GetAccesstoken500ResponseFaultTest.java
src/test/java/xiresellers/client/model/GetAccesstoken500ResponseTest.java
src/test/java/xiresellers/client/model/GetResellerV6ValidateQuote400ResponseFieldsInnerTest.java
src/test/java/xiresellers/client/model/GetResellerV6ValidateQuote400ResponseTest.java
-src/test/java/xiresellers/client/model/GetResellerV6ValidateQuote500ResponseTest.java
src/test/java/xiresellers/client/model/InvoiceDetailsv61ResponseBillToInfoTest.java
src/test/java/xiresellers/client/model/InvoiceDetailsv61ResponseFxRateInfoTest.java
src/test/java/xiresellers/client/model/InvoiceDetailsv61ResponseLinesInnerSerialNumbersInnerTest.java
@@ -555,8 +584,9 @@ src/test/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestResour
src/test/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestResourceInnerLinksInnerTest.java
src/test/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestResourceInnerTest.java
src/test/java/xiresellers/client/model/OrderStatusAsyncNotificationRequestTest.java
-src/test/java/xiresellers/client/model/PostQuoteToOrderV6400ResponseFieldsInnerTest.java
-src/test/java/xiresellers/client/model/PostQuoteToOrderV6400ResponseTest.java
+src/test/java/xiresellers/client/model/PostCreateorderV7400ResponseFieldsInnerTest.java
+src/test/java/xiresellers/client/model/PostCreateorderV7400ResponseTest.java
+src/test/java/xiresellers/client/model/PostCreateorderV7500ResponseTest.java
src/test/java/xiresellers/client/model/PostRenewalssearch400ResponseTest.java
src/test/java/xiresellers/client/model/PriceAndAvailabilityRequestAdditionalAttributesInnerTest.java
src/test/java/xiresellers/client/model/PriceAndAvailabilityRequestAvailabilityByWarehouseInnerTest.java
@@ -584,21 +614,17 @@ src/test/java/xiresellers/client/model/ProductSearchResponseCatalogInnerTest.jav
src/test/java/xiresellers/client/model/ProductSearchResponseTest.java
src/test/java/xiresellers/client/model/QuoteDetailsResponseAdditionalAttributesInnerTest.java
src/test/java/xiresellers/client/model/QuoteDetailsResponseEndUserInfoTest.java
+src/test/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerBillDetailsInnerTest.java
+src/test/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerPriceDiscountsInnerTest.java
+src/test/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInnerTest.java
src/test/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerPriceTest.java
src/test/java/xiresellers/client/model/QuoteDetailsResponseProductsInnerTest.java
src/test/java/xiresellers/client/model/QuoteDetailsResponseResellerInfoTest.java
+src/test/java/xiresellers/client/model/QuoteDetailsResponseShippingInfoTest.java
src/test/java/xiresellers/client/model/QuoteDetailsResponseTest.java
src/test/java/xiresellers/client/model/QuoteSearchResponseQuotesInnerLinksTest.java
src/test/java/xiresellers/client/model/QuoteSearchResponseQuotesInnerTest.java
src/test/java/xiresellers/client/model/QuoteSearchResponseTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderDetailsDTOAdditionalAttributesInnerTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderDetailsDTOEndUserInfoTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderDetailsDTOLinesInnerTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInnerTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderDetailsDTOShipToInfoTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderDetailsDTOTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderDetailsDTOVmfadditionalAttributesInnerTest.java
-src/test/java/xiresellers/client/model/QuoteToOrderResponseTest.java
src/test/java/xiresellers/client/model/RenewalsDetailsResponseAdditionalAttributesInnerTest.java
src/test/java/xiresellers/client/model/RenewalsDetailsResponseEndUserInfoTest.java
src/test/java/xiresellers/client/model/RenewalsDetailsResponseProductsInnerTest.java
@@ -626,5 +652,6 @@ src/test/java/xiresellers/client/model/ReturnsSearchResponseReturnsClaimsInnerLi
src/test/java/xiresellers/client/model/ReturnsSearchResponseReturnsClaimsInnerTest.java
src/test/java/xiresellers/client/model/ReturnsSearchResponseTest.java
src/test/java/xiresellers/client/model/ValidateQuoteResponseLinesInnerTest.java
+src/test/java/xiresellers/client/model/ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInnerTest.java
src/test/java/xiresellers/client/model/ValidateQuoteResponseTest.java
src/test/java/xiresellers/client/model/ValidateQuoteResponseVmfAdditionalAttributesInnerTest.java
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 8b23b8d4..93c8ddab 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.3.0
\ No newline at end of file
+7.6.0
diff --git a/README.md b/README.md
index 44fd7a17..b951c58d 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,6 @@
+
# xi.sdk.resellers
-XI Sdk Resellers
-- API version: 1.0.0
- - Build date: 2024-02-27T08:54:45.542575Z[Etc/UTC]
For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of APIs and webhooks to craft a seamless journey for your customers.
@@ -78,7 +76,7 @@ Add this dependency to your project's POM:
xi.sdk.resellers
xi.sdk.resellers
- 1.0.0
+ 1.1.0
compile
```
@@ -163,11 +161,11 @@ Class | Method | HTTP request | Description
*OrdersApi* | [**getOrderdetailsV61**](docs/OrdersApi.md#getOrderdetailsV61) | **GET** /resellers/v6.1/orders/{ordernumber} | Get Order Details v6.1
*OrdersApi* | [**getResellersV6Ordersearch**](docs/OrdersApi.md#getResellersV6Ordersearch) | **GET** /resellers/v6/orders/search | Search your Orders
*OrdersApi* | [**postCreateorderV6**](docs/OrdersApi.md#postCreateorderV6) | **POST** /resellers/v6/orders | Create your Order
+*OrdersApi* | [**postCreateorderV7**](docs/OrdersApi.md#postCreateorderV7) | **POST** /resellers/v7/orders | Create your Order v7
*OrdersApi* | [**putOrdermodify**](docs/OrdersApi.md#putOrdermodify) | **PUT** /resellers/v6/orders/{orderNumber} | Modify your Order
*ProductCatalogApi* | [**getResellerV6Productdetail**](docs/ProductCatalogApi.md#getResellerV6Productdetail) | **GET** /resellers/v6/catalog/details/{ingramPartNumber} | Product Details
*ProductCatalogApi* | [**getResellerV6Productsearch**](docs/ProductCatalogApi.md#getResellerV6Productsearch) | **GET** /resellers/v6/catalog | Search Products
*ProductCatalogApi* | [**postPriceandavailability**](docs/ProductCatalogApi.md#postPriceandavailability) | **POST** /resellers/v6/catalog/priceandavailability | Price and Availability
-*QuoteToOrderApi* | [**postQuoteToOrderV6**](docs/QuoteToOrderApi.md#postQuoteToOrderV6) | **POST** /resellers/v6/q2o/orders | Quote To Order
*QuotesApi* | [**getQuotessearchV6**](docs/QuotesApi.md#getQuotessearchV6) | **GET** /resellers/v6/quotes/search | Quote Search
*QuotesApi* | [**getResellerV6ValidateQuote**](docs/QuotesApi.md#getResellerV6ValidateQuote) | **GET** /resellers/v6/q2o/validatequote | Validate Quote
*QuotesApi* | [**getResellersV6Quotes**](docs/QuotesApi.md#getResellersV6Quotes) | **GET** /resellers/v6/quotes/{quoteNumber} | Get Quote Details
@@ -182,6 +180,19 @@ Class | Method | HTTP request | Description
## Documentation for Models
- [AccesstokenResponse](docs/AccesstokenResponse.md)
+ - [AsyncOrderCreateDTO](docs/AsyncOrderCreateDTO.md)
+ - [AsyncOrderCreateDTOAdditionalAttributesInner](docs/AsyncOrderCreateDTOAdditionalAttributesInner.md)
+ - [AsyncOrderCreateDTOEndUserInfo](docs/AsyncOrderCreateDTOEndUserInfo.md)
+ - [AsyncOrderCreateDTOLinesInner](docs/AsyncOrderCreateDTOLinesInner.md)
+ - [AsyncOrderCreateDTOLinesInnerEndUserInfoInner](docs/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.md)
+ - [AsyncOrderCreateDTOResellerInfo](docs/AsyncOrderCreateDTOResellerInfo.md)
+ - [AsyncOrderCreateDTOShipToInfo](docs/AsyncOrderCreateDTOShipToInfo.md)
+ - [AsyncOrderCreateDTOShipmentDetails](docs/AsyncOrderCreateDTOShipmentDetails.md)
+ - [AsyncOrderCreateDTOVmfadditionalAttributesInner](docs/AsyncOrderCreateDTOVmfadditionalAttributesInner.md)
+ - [AsyncOrderCreateDTOWarrantyInfoInner](docs/AsyncOrderCreateDTOWarrantyInfoInner.md)
+ - [AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner](docs/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.md)
+ - [AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner](docs/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.md)
+ - [AsyncOrderCreateResponse](docs/AsyncOrderCreateResponse.md)
- [AvailabilityAsyncNotificationRequest](docs/AvailabilityAsyncNotificationRequest.md)
- [AvailabilityAsyncNotificationRequestResourceInner](docs/AvailabilityAsyncNotificationRequestResourceInner.md)
- [AvailabilityAsyncNotificationRequestResourceInnerLinksInner](docs/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.md)
@@ -209,7 +220,6 @@ Class | Method | HTTP request | Description
- [GetAccesstoken500ResponseFaultDetail](docs/GetAccesstoken500ResponseFaultDetail.md)
- [GetResellerV6ValidateQuote400Response](docs/GetResellerV6ValidateQuote400Response.md)
- [GetResellerV6ValidateQuote400ResponseFieldsInner](docs/GetResellerV6ValidateQuote400ResponseFieldsInner.md)
- - [GetResellerV6ValidateQuote500Response](docs/GetResellerV6ValidateQuote500Response.md)
- [InvoiceDetailsv61Response](docs/InvoiceDetailsv61Response.md)
- [InvoiceDetailsv61ResponseBillToInfo](docs/InvoiceDetailsv61ResponseBillToInfo.md)
- [InvoiceDetailsv61ResponseFxRateInfo](docs/InvoiceDetailsv61ResponseFxRateInfo.md)
@@ -293,8 +303,9 @@ Class | Method | HTTP request | Description
- [OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInner](docs/OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInner.md)
- [OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInnerPackageDetailsInner](docs/OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInnerPackageDetailsInner.md)
- [OrderStatusAsyncNotificationRequestResourceInnerLinksInner](docs/OrderStatusAsyncNotificationRequestResourceInnerLinksInner.md)
- - [PostQuoteToOrderV6400Response](docs/PostQuoteToOrderV6400Response.md)
- - [PostQuoteToOrderV6400ResponseFieldsInner](docs/PostQuoteToOrderV6400ResponseFieldsInner.md)
+ - [PostCreateorderV7400Response](docs/PostCreateorderV7400Response.md)
+ - [PostCreateorderV7400ResponseFieldsInner](docs/PostCreateorderV7400ResponseFieldsInner.md)
+ - [PostCreateorderV7500Response](docs/PostCreateorderV7500Response.md)
- [PostRenewalssearch400Response](docs/PostRenewalssearch400Response.md)
- [PriceAndAvailabilityRequest](docs/PriceAndAvailabilityRequest.md)
- [PriceAndAvailabilityRequestAdditionalAttributesInner](docs/PriceAndAvailabilityRequestAdditionalAttributesInner.md)
@@ -324,19 +335,15 @@ Class | Method | HTTP request | Description
- [QuoteDetailsResponseAdditionalAttributesInner](docs/QuoteDetailsResponseAdditionalAttributesInner.md)
- [QuoteDetailsResponseEndUserInfo](docs/QuoteDetailsResponseEndUserInfo.md)
- [QuoteDetailsResponseProductsInner](docs/QuoteDetailsResponseProductsInner.md)
+ - [QuoteDetailsResponseProductsInnerBillDetailsInner](docs/QuoteDetailsResponseProductsInnerBillDetailsInner.md)
- [QuoteDetailsResponseProductsInnerPrice](docs/QuoteDetailsResponseProductsInnerPrice.md)
+ - [QuoteDetailsResponseProductsInnerPriceDiscountsInner](docs/QuoteDetailsResponseProductsInnerPriceDiscountsInner.md)
+ - [QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner](docs/QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.md)
- [QuoteDetailsResponseResellerInfo](docs/QuoteDetailsResponseResellerInfo.md)
+ - [QuoteDetailsResponseShippingInfo](docs/QuoteDetailsResponseShippingInfo.md)
- [QuoteSearchResponse](docs/QuoteSearchResponse.md)
- [QuoteSearchResponseQuotesInner](docs/QuoteSearchResponseQuotesInner.md)
- [QuoteSearchResponseQuotesInnerLinks](docs/QuoteSearchResponseQuotesInnerLinks.md)
- - [QuoteToOrderDetailsDTO](docs/QuoteToOrderDetailsDTO.md)
- - [QuoteToOrderDetailsDTOAdditionalAttributesInner](docs/QuoteToOrderDetailsDTOAdditionalAttributesInner.md)
- - [QuoteToOrderDetailsDTOEndUserInfo](docs/QuoteToOrderDetailsDTOEndUserInfo.md)
- - [QuoteToOrderDetailsDTOLinesInner](docs/QuoteToOrderDetailsDTOLinesInner.md)
- - [QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner](docs/QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.md)
- - [QuoteToOrderDetailsDTOShipToInfo](docs/QuoteToOrderDetailsDTOShipToInfo.md)
- - [QuoteToOrderDetailsDTOVmfadditionalAttributesInner](docs/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.md)
- - [QuoteToOrderResponse](docs/QuoteToOrderResponse.md)
- [RenewalsDetailsResponse](docs/RenewalsDetailsResponse.md)
- [RenewalsDetailsResponseAdditionalAttributesInner](docs/RenewalsDetailsResponseAdditionalAttributesInner.md)
- [RenewalsDetailsResponseEndUserInfo](docs/RenewalsDetailsResponseEndUserInfo.md)
@@ -365,6 +372,7 @@ Class | Method | HTTP request | Description
- [ReturnsSearchResponseReturnsClaimsInnerLinksInner](docs/ReturnsSearchResponseReturnsClaimsInnerLinksInner.md)
- [ValidateQuoteResponse](docs/ValidateQuoteResponse.md)
- [ValidateQuoteResponseLinesInner](docs/ValidateQuoteResponseLinesInner.md)
+ - [ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner](docs/ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.md)
- [ValidateQuoteResponseVmfAdditionalAttributesInner](docs/ValidateQuoteResponseVmfAdditionalAttributesInner.md)
diff --git a/api/openapi.yaml b/api/openapi.yaml
index dd9b95a7..1203f593 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -1,8 +1,8 @@
openapi: 3.0.0
info:
- description: 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.
+ description: "For resellers seeking to innovate with Ingram Micro's API solutions,\
+ \ automate your eCommerce experience with our array of API's and webhooks to craft\
+ \ a seamless journey for your customers."
title: XI Sdk Resellers
version: 1.0.0
servers:
@@ -33,8 +33,6 @@ tags:
\ not accessible through this API.\n \n*Host Production URL - https://api.ingrammicro.com:443/resellers/v6*\
\ "
name: Quotes
-- description: ' '
- name: Quote To Order
- description: |2
The Ingram Micro Invoice v6 API endpoint provide real-time information for invoices. Users can:
@@ -117,7 +115,8 @@ paths:
summary: Accesstoken
tags:
- Accesstoken
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/catalog/priceandavailability:
post:
description: "The PriceAndAvailability API, will retrieve Pricing, Availability,\
@@ -429,7 +428,8 @@ paths:
tags:
- Product Catalog
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/catalog:
get:
description: Search the Ingram Micro product catalog by providing any of the
@@ -728,7 +728,8 @@ paths:
summary: Search Products
tags:
- Product Catalog
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/catalog/details/{ingramPartNumber}:
get:
description: "Search all the product-related details using a unique Ingram Part\
@@ -1369,7 +1370,8 @@ paths:
summary: Product Details
tags:
- Product Catalog
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v1/webhooks/availabilityupdate:
post:
parameters:
@@ -1446,7 +1448,8 @@ paths:
tags:
- StockUpdate
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v1/webhooks/orderstatusevent:
post:
parameters:
@@ -1528,7 +1531,170 @@ paths:
tags:
- OrderStatus
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
+ /resellers/v7/orders:
+ post:
+ description: |
+ This API will allow customers to perform both standard ordering and quote to order functionality via a single API enabling them to have a single endpoint to cater to all types of orders.
+
+ This approach will standardize the ordering flow for customers where they will get the response for all orders on to their webhooks.
+
+ It provides the much-awaited async ordering flow for Reseller API where large orders can also be placed via a single API with guaranteed delivery.
+ operationId: post-createorder_v7
+ parameters:
+ - description: Your unique Ingram Micro customer number.
+ explode: false
+ in: header
+ name: IM-CustomerNumber
+ required: true
+ schema:
+ example: 20-222222
+ maxLength: 10
+ type: string
+ style: simple
+ - description: Two-character ISO country code.
+ explode: false
+ in: header
+ name: IM-CountryCode
+ required: true
+ schema:
+ example: US
+ maxLength: 2
+ minLength: 2
+ type: string
+ style: simple
+ - description: Unique value used to identify the sender of the transaction.
+ explode: false
+ in: header
+ name: IM-SenderID
+ required: false
+ schema:
+ example: MyCompany
+ maxLength: 32
+ type: string
+ style: simple
+ - description: Unique transaction number to identify each transaction accross
+ all the systems.
+ explode: false
+ in: header
+ name: IM-CorrelationID
+ required: true
+ schema:
+ example: fbac82ba-cf0a-4bcf-fc03-0c5084
+ maxLength: 32
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ examples:
+ Sample:
+ value:
+ quoteNumber: QUO-14551943-D2Y9L9
+ customerOrderNumber: "12345"
+ enduserOrderNumber: ""
+ billToAddressId: XYZ
+ endUserInfo:
+ companyName: ABC TECH
+ contact: "44045678"
+ addressLine1: Texas
+ addressLine2: "4"
+ addressLine3: ""
+ city: ""
+ state: ""
+ postalCode: ""
+ countryCode: US
+ email: abc@gmail.com
+ phoneNumber: "445678901"
+ shipToInfo:
+ addressId: "12345"
+ companyName: ""
+ contact: ""
+ addressLine1: Texas
+ addressLine2: "4"
+ addressLine3: ""
+ city: ""
+ state: ""
+ postalCode: ""
+ countryCode: US
+ email: abc@gmail.com
+ additionalAttributes:
+ - attributeName: VEND_AUTH_NBR_FLG
+ attributeValue: ABC1234
+ vmfAdditionalAttributes:
+ - attributeName: ""
+ attributeValue: ""
+ attributeDescription: ""
+ lines:
+ - customerLineNumber: "12"
+ ingramPartNumber: YN6231
+ quantity: "2"
+ vmfAdditionalAttributesLines:
+ - attributeName: ""
+ attributeValue: ""
+ attributeDescription: ""
+ schema:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ "200":
+ description: OK
+ value:
+ quoteNumber: QUO-148378-R0M3Z6
+ confirmationNumber: 1669783293
+ message: "Thank you for submitting the order request, it’s currently\
+ \ under process.We will notify you of the status via the Order\
+ \ Status webhook."
+ schema:
+ $ref: '#/components/schemas/AsyncOrderCreateResponse'
+ description: Success
+ "400":
+ content:
+ application/json:
+ examples:
+ "400":
+ description: Bad Request
+ value:
+ errors:
+ - traceid: "123456"
+ type: /errors/validation-failed
+ message: customer validation failed
+ fields:
+ - field: IM-CountryCode
+ message: Required field is missing
+ value: null
+ schema:
+ $ref: '#/components/schemas/post_createorder_v7_400_response'
+ description: Bad Request
+ "500":
+ content:
+ application/json:
+ examples:
+ "500":
+ description: Internal Server Error
+ value:
+ errors:
+ - traceid: "123456"
+ type: /errors/system-errors
+ message: "Some unexpected error occured, please contact support\
+ \ team for more details"
+ schema:
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
+ description: Server Error
+ security:
+ - application:
+ - read
+ summary: Create your Order v7
+ tags:
+ - Orders
+ x-content-type: application/json
+ x-accepts:
+ - application/json
/resellers/v6/orders:
post:
description: "Instantly create and place orders. The POST API supports stocked\
@@ -3274,7 +3440,8 @@ paths:
tags:
- Orders
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/orders/{orderNumber}:
put:
description: "The Order Modify API endpoint allows for changes to be made to\
@@ -4061,7 +4228,8 @@ paths:
tags:
- Orders
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6.1/orders/{ordernumber}:
get:
description: |+
@@ -4376,7 +4544,8 @@ paths:
summary: Get Order Details v6.1
tags:
- Orders
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/orders/search:
get:
description: "The Orders Search API endpoint allows a customer to search their\
@@ -4706,7 +4875,8 @@ paths:
summary: Search your Orders
tags:
- Orders
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/orders/{OrderNumber}:
delete:
description: This call must be submitted before the order is released to Ingram
@@ -4921,7 +5091,8 @@ paths:
summary: Cancel your Order
tags:
- Orders
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/quotes/search:
get:
description: "The Quote Search API, by default, will retrieve quotes modified\
@@ -5297,7 +5468,8 @@ paths:
summary: Quote Search
tags:
- Quotes
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/quotes/{quoteNumber}:
get:
description: "The quote details API provides all quote details associated with\
@@ -5519,7 +5691,8 @@ paths:
summary: Get Quote Details
tags:
- Quotes
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/q2o/validatequote:
get:
description: "The validate quote helps the customer validate the quote created\
@@ -5653,7 +5826,7 @@ paths:
message: "Some unexpected error occured, please contact support\
\ team for more details"
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -5661,35 +5834,25 @@ paths:
summary: Validate Quote
tags:
- Quotes
- x-accepts: application/json
- /resellers/v6/q2o/orders:
- post:
- description: "The “Quote to Order” (QTO) endpoint allows a customer to create\
- \ an order using the existing quote which is in “Ready to Order” status. A\
- \ customer can create an order using Configure to order (CTO) quote or a non-configure\
- \ to order (Non-CTO) quote. Upon successful submission of the order create\
- \ request, a confirmation message will be returned as an API response.
Ingram Micro offers webhooks as a method to send notifications to\
- \ Resellers once the order creation request is received. All the updates related\
- \ to Order creation will be pushed as a notification to the customer via a\
- \ pre-defined callback URL as an HTTP post.
**Prerequisite:**\
- \ Pre-defined callback URL
Before creating an order using the\
- \ quote, it’s recommended to validate the quote using the “Validate Quote”\
- \ endpoint. Validate Quote endpoint will not only validate the quote but also\
- \ outline all the mandatory fields required by the vendor at a header level\
- \ and at the line level which a customer need to pass to the Quote To Order\
- \ endpoint request. For a detailed understanding of the “Validate Quote”\
- \ endpoint, review the “Validate Quote” endpoint documentation.
\
- \ **How it works:**
- The customer validates the quote with a quote\
- \ number from Validate Quote endpoint.
- The customer copies all the\
- \ mandatory fields required by the vendor and adds them to the QTO request\
- \ body.
- The customer provides all the values for Vendor mandatory\
- \ fields along with other required information for QTO to create an order.\
- \
- After the order creation request receipt acknowledgment from the\
- \ QTO endpoint, all further order creation updates will be provided via webhook\
- \ push notification."
- operationId: post-QuoteToOrder_v6
+ x-accepts:
+ - application/json
+ /resellers/v6/invoices:
+ get:
+ description: Search your Ingram Micro invoices. This endpoint searches by multiple
+ invoice parameters and supports pagination of results.
+ operationId: get-resellers-v6-invoicesearch
parameters:
+ - description: "Unique value used to identify the sender of the transaction.\
+ \ Example: MyCompany"
+ explode: false
+ in: header
+ name: IM-ApplicationID
+ required: true
+ schema:
+ example: MyCompany
+ maxLength: 32
+ type: string
+ style: simple
- description: Your unique Ingram Micro customer number.
explode: false
in: header
@@ -5711,175 +5874,7 @@ paths:
minLength: 2
type: string
style: simple
- - description: Unique value used to identify the sender of the transaction.
- explode: false
- in: header
- name: IM-SenderID
- required: false
- schema:
- example: MyCompany
- maxLength: 32
- type: string
- style: simple
- - description: Unique transaction number to identify each transaction accross
- all the systems.
- explode: false
- in: header
- name: IM-CorrelationID
- required: true
- schema:
- example: fbac82ba-cf0a-4bcf-fc03-0c5084
- maxLength: 32
- type: string
- style: simple
- requestBody:
- content:
- application/json:
- examples:
- Sample:
- value:
- quoteNumber: QUO-14551943-D2Y9L9
- customerOrderNumber: "12345"
- enduserOrderNumber: ""
- billToAddressId: XYZ
- endUserInfo:
- companyName: ABC TECH
- contact: "44045678"
- addressLine1: Texas
- addressLine2: "4"
- addressLine3: ""
- city: ""
- state: ""
- postalCode: ""
- countryCode: US
- email: abc@gmail.com
- phoneNumber: "445678901"
- shipToInfo:
- addressId: "12345"
- companyName: ""
- contact: ""
- addressLine1: Texas
- addressLine2: "4"
- addressLine3: ""
- city: ""
- state: ""
- postalCode: ""
- countryCode: US
- email: abc@gmail.com
- additionalAttributes:
- - attributeName: VEND_AUTH_NBR_FLG
- attributeValue: ABC1234
- vmfAdditionalAttributes:
- - attributeName: ""
- attributeValue: ""
- attributeDescription: ""
- lines:
- - customerLineNumber: "12"
- ingramPartNumber: YN6231
- quantity: "2"
- vmfAdditionalAttributesLines:
- - attributeName: ""
- attributeValue: ""
- attributeDescription: ""
- schema:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO'
- required: true
- responses:
- "200":
- content:
- application/json:
- examples:
- "200":
- description: OK
- value:
- quoteNumber: QUO-148378-R0M3Z6
- confirmationNumber: 1669783293
- message: "Thank you for submitting the order request, it’s currently\
- \ under process.We will notify you of the status via the Order\
- \ Status webhook."
- schema:
- $ref: '#/components/schemas/QuoteToOrderResponse'
- description: Success
- "400":
- content:
- application/json:
- examples:
- "400":
- description: Bad Request
- value:
- errors:
- - traceid: "123456"
- type: /errors/validation-failed
- message: customer validation failed
- fields:
- - field: IM-CountryCode
- message: Required field is missing
- value: null
- schema:
- $ref: '#/components/schemas/post_QuoteToOrder_v6_400_response'
- description: Bad Request
- "500":
- content:
- application/json:
- examples:
- "500":
- description: Internal Server Error
- value:
- errors:
- - traceid: "123456"
- type: /errors/system-errors
- message: "Some unexpected error occured, please contact support\
- \ team for more details"
- schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
- description: Server Error
- security:
- - application:
- - read
- summary: Quote To Order
- tags:
- - Quote To Order
- x-content-type: application/json
- x-accepts: application/json
- /resellers/v6/invoices:
- get:
- description: Search your Ingram Micro invoices. This endpoint searches by multiple
- invoice parameters and supports pagination of results.
- operationId: get-resellers-v6-invoicesearch
- parameters:
- - description: "Unique value used to identify the sender of the transaction.\
- \ Example: MyCompany"
- explode: false
- in: header
- name: IM-ApplicationID
- required: true
- schema:
- example: MyCompany
- maxLength: 32
- type: string
- style: simple
- - description: Your unique Ingram Micro customer number.
- explode: false
- in: header
- name: IM-CustomerNumber
- required: true
- schema:
- example: 20-222222
- maxLength: 10
- type: string
- style: simple
- - description: Two-character ISO country code.
- explode: false
- in: header
- name: IM-CountryCode
- required: true
- schema:
- example: US
- maxLength: 2
- minLength: 2
- type: string
- style: simple
- - description: Unique transaction number to identify each transaction across
+ - description: Unique transaction number to identify each transaction across
all the systems.
explode: false
in: header
@@ -6165,7 +6160,8 @@ paths:
summary: Search your invoice
tags:
- Invoices
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6.1/invoices/{invoiceNumber}:
get:
description: |-
@@ -6424,7 +6420,8 @@ paths:
summary: Get Invoice Details v6.1
tags:
- Invoices
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/renewals/search:
post:
description: "The Renewal Search API, by default, will retrieve all the renewals\
@@ -6614,7 +6611,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -6623,7 +6620,8 @@ paths:
tags:
- Renewals
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/renewals/{renewalId}:
get:
description: The Renewal Details API endpoint will retrieve all the details
@@ -6783,7 +6781,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -6791,7 +6789,8 @@ paths:
summary: Renewals Details
tags:
- Renewals
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/deals/search:
get:
description: "The Deals Search API, by default, will retrieve all the deals\
@@ -6869,6 +6868,25 @@ paths:
example: "12345678"
type: string
style: form
+ - description: The number of records required in the call - max records 100
+ per page.
+ explode: true
+ in: query
+ name: Size
+ required: false
+ schema:
+ format: int32
+ type: integer
+ style: form
+ - description: The page number reference.
+ explode: true
+ in: query
+ name: Page
+ required: false
+ schema:
+ format: int32
+ type: integer
+ style: form
responses:
"200":
content:
@@ -6936,7 +6954,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -6944,7 +6962,8 @@ paths:
summary: Deals Search
tags:
- Deals
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/deals/{dealId}:
get:
description: The Deals Details API will retrieve all the details related to
@@ -7095,7 +7114,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -7103,7 +7122,8 @@ paths:
summary: Deals Details
tags:
- Deals
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/returns/search:
get:
description: "The Returns Search API, by default, will retrieve all the returns\
@@ -7356,7 +7376,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -7364,7 +7384,8 @@ paths:
summary: Returns Search
tags:
- Returns
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/returns/{caseRequestNumber}:
get:
description: The Returns Details API will retrieve all the details related to
@@ -7500,7 +7521,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -7508,7 +7529,8 @@ paths:
summary: Returns Details
tags:
- Returns
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/returns/create:
post:
description: "Return create endpoint will allow customers to create a return\
@@ -7654,7 +7676,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -7663,7 +7685,8 @@ paths:
tags:
- Returns
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
/resellers/v6/freightestimate:
post:
description: The freight estimator endpoint will allow customers to understand
@@ -7849,7 +7872,7 @@ paths:
Micro API support team
fields: []
schema:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_500_response'
+ $ref: '#/components/schemas/post_createorder_v7_500_response'
description: Internal Server Error
security:
- application:
@@ -7858,7 +7881,8 @@ paths:
tags:
- Freight Estimate
x-content-type: application/json
- x-accepts: application/json
+ x-accepts:
+ - application/json
components:
schemas:
AccesstokenResponse:
@@ -7882,7 +7906,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 6
+ phoneNumber: phoneNumber
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -7938,8 +7962,8 @@ components:
acceptBackOrder: true
lines:
- ingramPartNumber: ingramPartNumber
- unitPrice: 5.962133916683182
- quantity: 1
+ unitPrice: 1.4658129805029452
+ quantity: 6
specialBidNumber: specialBidNumber
notes: notes
endUserInfo:
@@ -7947,7 +7971,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 2.3021358869347655
+ phoneNumber: 5.637376656633329
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -7963,7 +7987,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 2.3021358869347655
+ phoneNumber: 5.637376656633329
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -7975,7 +7999,7 @@ components:
addressLine4: addressLine4
name1: name1
email: email
- endUserPrice: 5.637376656633329
+ endUserPrice: 5.962133916683182
warrantyInfo:
- hardwareLineLink: hardwareLineLink
directLineLink: directLineLink
@@ -8008,8 +8032,8 @@ components:
- attributeValue: attributeValue
attributeName: attributeName
- ingramPartNumber: ingramPartNumber
- unitPrice: 5.962133916683182
- quantity: 1
+ unitPrice: 1.4658129805029452
+ quantity: 6
specialBidNumber: specialBidNumber
notes: notes
endUserInfo:
@@ -8017,7 +8041,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 2.3021358869347655
+ phoneNumber: 5.637376656633329
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -8033,7 +8057,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 2.3021358869347655
+ phoneNumber: 5.637376656633329
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -8045,7 +8069,7 @@ components:
addressLine4: addressLine4
name1: name1
email: email
- endUserPrice: 5.637376656633329
+ endUserPrice: 5.962133916683182
warrantyInfo:
- hardwareLineLink: hardwareLineLink
directLineLink: directLineLink
@@ -8133,128 +8157,302 @@ components:
required:
- customerOrderNumber
type: object
- QuoteToOrderDetailsDTO:
- additionalProperties: false
+ AsyncOrderCreateDTO:
example:
+ internalComments: internalComments
+ notes: notes
endUserInfo:
- phoneNumber: phoneNumber
+ endUserId: endUserId
city: city
- countryCode: countryCode
companyName: companyName
- contact: contact
postalCode: postalCode
- addressLine1: addressLine1
- addressLine2: addressLine2
- addressLine3: addressLine3
- state: state
- email: email
- shipToInfo:
- city: city
+ name3: name3
+ phoneNumber: phoneNumber
countryCode: countryCode
- companyName: companyName
contact: contact
- postalCode: postalCode
addressLine1: addressLine1
addressLine2: addressLine2
addressLine3: addressLine3
state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
email: email
- addressId: addressId
+ vendAuthNumber: vendAuthNumber
+ endCustomerOrderNumber: endCustomerOrderNumber
billToAddressId: billToAddressId
- enduserOrderNumber: enduserOrderNumber
- lines:
- - ingramPartNumber: ingramPartNumber
+ warrantyInfo:
+ - hardwareLineLink: hardwareLineLink
vmfAdditionalAttributesLines:
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
- quantity: quantity
- customerLineNumber: customerLineNumber
- - ingramPartNumber: ingramPartNumber
+ warrantyLineLink: warrantyLineLink
+ directLineLink: directLineLink
+ serialInfo:
+ - dateOfPurchase: dateOfPurchase
+ primarySerialNumber: primarySerialNumber
+ secondarySerialNumber: secondarySerialNumber
+ shipDate: shipDate
+ - dateOfPurchase: dateOfPurchase
+ primarySerialNumber: primarySerialNumber
+ secondarySerialNumber: secondarySerialNumber
+ shipDate: shipDate
+ - hardwareLineLink: hardwareLineLink
vmfAdditionalAttributesLines:
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
- quantity: quantity
- customerLineNumber: customerLineNumber
+ warrantyLineLink: warrantyLineLink
+ directLineLink: directLineLink
+ serialInfo:
+ - dateOfPurchase: dateOfPurchase
+ primarySerialNumber: primarySerialNumber
+ secondarySerialNumber: secondarySerialNumber
+ shipDate: shipDate
+ - dateOfPurchase: dateOfPurchase
+ primarySerialNumber: primarySerialNumber
+ secondarySerialNumber: secondarySerialNumber
+ shipDate: shipDate
customerOrderNumber: customerOrderNumber
vmfadditionalAttributes:
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
quoteNumber: quoteNumber
- additionalAttributes:
- - attributeValue: attributeValue
- attributeName: attributeName
- - attributeValue: attributeValue
- attributeName: attributeName
- properties:
- quoteNumber:
- description: A unique identifier generated by Ingram Micro's CRM specific
- to each quote.
- maxLength: 35
- nullable: true
- type: string
- customerOrderNumber:
- description: The reseller's order number for reference in their system.
- maxLength: 35
- nullable: true
- type: string
- enduserOrderNumber:
- description: The end customer's order number for reference in their system.
- maxLength: 35
- nullable: true
- type: string
- billToAddressId:
- description: Suffix used to identify billing address. Created during onboarding.
- Resellers are provided with one or more address IDs depending on how many
- bill to addresses they need for various flooring companies they are using
- for credit.
- nullable: true
- type: string
- endUserInfo:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO_endUserInfo'
+ specialBidNumber: specialBidNumber
shipToInfo:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO_shipToInfo'
- additionalAttributes:
- description: Additional order create attributes.
- items:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO_additionalAttributes_inner'
- type: array
- vmfadditionalAttributes:
- description: The object containing the list of fields required at a header
- level by the vendor.
- items:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO_vmfadditionalAttributes_inner'
- type: array
- lines:
- description: The object containing the lines that require vendor mandatory
- fields.
- items:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO_lines_inner'
- type: array
- type: object
- ValidateQuoteResponse:
- example:
- vmfAdditionalAttributes:
- - attributeValue: ABC1234
- attributeName: VEND_AUTH_NBR_FLG
- attributeDescription: Authorization Number
- - attributeValue: ABC1234
- attributeName: VEND_AUTH_NBR_FLG
- attributeDescription: Authorization Number
- vendorMasterNumber: vendorMasterNumber
- vendorName: Cisco
+ shippingNotes: shippingNotes
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ addressId: addressId
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ addressLine4: addressLine4
+ name2: name2
+ name1: name1
+ email: email
+ shipmentDetails:
+ shipComplete: shipComplete
+ freightAccountNumber: freightAccountNumber
+ shippingInstructions: shippingInstructions
+ carrierCode: carrierCode
+ signatureRequired: true
+ requestedDeliveryDate: requestedDeliveryDate
+ resellerInfo:
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ resellerId: resellerId
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ addressLine4: addressLine4
+ email: email
+ acceptBackOrder: true
lines:
+ - ingramPartNumber: ingramPartNumber
+ unitPrice: unitPrice
+ quantity: quantity
+ specialBidNumber: specialBidNumber
+ notes: notes
+ endUserInfo:
+ - endUserId: endUserId
+ contactId: contactId
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
+ email: email
+ - endUserId: endUserId
+ contactId: contactId
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
+ email: email
+ endUserPrice: endUserPrice
+ customerLineNumber: customerLineNumber
+ - ingramPartNumber: ingramPartNumber
+ unitPrice: unitPrice
+ quantity: quantity
+ specialBidNumber: specialBidNumber
+ notes: notes
+ endUserInfo:
+ - endUserId: endUserId
+ contactId: contactId
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
+ email: email
+ - endUserId: endUserId
+ contactId: contactId
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
+ email: email
+ endUserPrice: endUserPrice
+ customerLineNumber: customerLineNumber
+ additionalAttributes:
+ - attributeValue: attributeValue
+ attributeName: attributeName
+ - attributeValue: attributeValue
+ attributeName: attributeName
+ properties:
+ quoteNumber:
+ description: A unique identifier generated by Ingram Micro's CRM specific
+ to each quote.
+ maxLength: 35
+ nullable: true
+ type: string
+ customerOrderNumber:
+ description: The reseller's order number for reference in their system.
+ maxLength: 35
+ nullable: true
+ type: string
+ endCustomerOrderNumber:
+ description: The end customer's order number for reference in their system.
+ maxLength: 35
+ nullable: true
+ type: string
+ notes:
+ description: Order header level notes.
+ type: string
+ billToAddressId:
+ description: Suffix used to identify billing address. Created during onboarding.
+ Resellers are provided with one or more address IDs depending on how many
+ bill to addresses they need for various flooring companies they are using
+ for credit.
+ nullable: true
+ type: string
+ specialBidNumber:
+ description: The bid number is provided to the reseller by the vendor for
+ special pricing and discounts. Line-level bid numbers take precedence
+ over header-level bid numbers.
+ type: string
+ internalComments:
+ description: need to replace with actual description
+ type: string
+ acceptBackOrder:
+ description: "ENUM [\"true\",\"false\"] - accept order if this item is backordered.\
+ \ This field along with shipComplete field decides the value of backorderflag.\
+ \ The value of this field is ignored when shipComplete field is present."
+ type: boolean
+ vendAuthNumber:
+ description: "Authorization number provided by vendor to Ingram's reseller.\
+ \ Orders will be placed on hold without this value, vendor specific mandatory\
+ \ field - please reach out Ingram Sales team for list of vendor for whom\
+ \ this is mandatory."
+ type: string
+ resellerInfo:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_resellerInfo'
+ endUserInfo:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_endUserInfo'
+ shipToInfo:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_shipToInfo'
+ shipmentDetails:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_shipmentDetails'
+ additionalAttributes:
+ description: Additional order create attributes.
+ items:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_additionalAttributes_inner'
+ type: array
+ vmfadditionalAttributes:
+ description: The object containing the list of fields required at a header
+ level by the vendor.
+ items:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_vmfadditionalAttributes_inner'
+ type: array
+ lines:
+ description: The object containing the lines that require vendor mandatory
+ fields.
+ items:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_lines_inner'
+ type: array
+ warrantyInfo:
+ description: Warranty Information
+ items:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_warrantyInfo_inner'
+ type: array
+ type: object
+ ValidateQuoteResponse:
+ example:
+ vmfAdditionalAttributes:
+ - attributeValue: ABC1234
+ attributeName: VEND_AUTH_NBR_FLG
+ attributeDescription: Authorization Number
+ - attributeValue: ABC1234
+ attributeName: VEND_AUTH_NBR_FLG
+ attributeDescription: Authorization Number
+ vendorMasterNumber: vendorMasterNumber
+ vendorName: Cisco
+ lines:
+ - ingramPartNumber: YN6551
+ vmfAdditionalAttributesLines:
+ - attributeValue: attributeValue
+ attributeName: attributeName
+ attributeDescription: attributeDescription
+ - attributeValue: attributeValue
+ attributeName: attributeName
+ attributeDescription: attributeDescription
+ quantity: 1
+ customerLineNumber: "11"
- ingramPartNumber: YN6551
vmfAdditionalAttributesLines:
- attributeValue: attributeValue
@@ -8263,17 +8461,7 @@ components:
- attributeValue: attributeValue
attributeName: attributeName
attributeDescription: attributeDescription
- quantity: "1"
- customerLineNumber: "11"
- - ingramPartNumber: YN6551
- vmfAdditionalAttributesLines:
- - attributeValue: attributeValue
- attributeName: attributeName
- attributeDescription: attributeDescription
- - attributeValue: attributeValue
- attributeName: attributeName
- attributeDescription: attributeDescription
- quantity: "1"
+ quantity: 1
customerLineNumber: "11"
quoteType: 0
quoteNumber: QUO-14551943-D2Y9L9
@@ -9771,15 +9959,15 @@ components:
totalTaxAmount: 6.027456183070403
distribution:
- carrierList:
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
freightRate: 2.3021358869347655
shipVia: shipVia
@@ -9788,15 +9976,15 @@ components:
shipFromBranchNumber: shipFromBranchNumber
transitDays: 9
- carrierList:
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
freightRate: 2.3021358869347655
shipVia: shipVia
@@ -9806,16 +9994,16 @@ components:
transitDays: 9
lines:
- ingramPartNumber: ingramPartNumber
- unitPrice: 7.386281948385884
- quantity: 4
+ unitPrice: 2.027123023002322
+ quantity: 3
warehouseId: warehouseId
- netAmount: 1.2315135367772556
+ netAmount: 4.145608029883936
vendorPartNumber: vendorPartNumber
- ingramPartNumber: ingramPartNumber
- unitPrice: 7.386281948385884
- quantity: 4
+ unitPrice: 2.027123023002322
+ quantity: 3
warehouseId: warehouseId
- netAmount: 1.2315135367772556
+ netAmount: 4.145608029883936
vendorPartNumber: vendorPartNumber
currencyCode: currencyCode
properties:
@@ -9825,8 +10013,10 @@ components:
QuoteSearchResponse:
example:
pageNumber: 1
+ nextPage: nextPage
pageSize: 6
recordsFound: 0
+ prevPage: prevPage
quotes:
- lastModifiedDate: lastModifiedDate
endUserName: endUserName
@@ -9845,6 +10035,7 @@ components:
href: href
type: type
quoteTotal: 5.962133916683182
+ currencyCode: currencyCode
quoteName: quoteName
ingramQuoteDate: ingramQuoteDate
- lastModifiedDate: lastModifiedDate
@@ -9864,6 +10055,7 @@ components:
href: href
type: type
quoteTotal: 5.962133916683182
+ currencyCode: currencyCode
quoteName: quoteName
ingramQuoteDate: ingramQuoteDate
properties:
@@ -9882,75 +10074,183 @@ components:
items:
$ref: '#/components/schemas/QuoteSearchResponse_quotes_inner'
type: array
+ nextPage:
+ type: string
+ prevPage:
+ type: string
type: object
QuoteDetailsResponse:
example:
quantityTotal: 7
- quoteSubType: quoteSubType
+ shippingInfo:
+ phoneNumber: phoneNumber
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ shpToGstinNumber: shpToGstinNumber
+ email: email
+ taxTotal: 4.965218492984954
leaseInfo: leaseInfo
dateClosed: dateClosed
+ imWarehouse: imWarehouse
quoteType: quoteType
products:
- - ingramPartNumber: ingramPartNumber
- coo: coo
+ - coo: coo
vpnCategory: vpnCategory
- quantity: 0
notes: notes
- resellerMargin: resellerMargin
+ endDate: endDate
description: description
- weight: 6
- vendorName: vendorName
+ requestedStartDate: requestedStartDate
isSubscription: true
ean: ean
terms: terms
price:
- quotePrice: 1
- totalVisibleReserveQuantity: 3
- extendedvendorprice: 9.301444243932576
- msrp: 5
- extendedQuotePrice: 2
+ quotePrice: 1.4658129805029452
+ extrafees: 9.301444243932576
+ unitOfMeasure: unitOfMeasure
+ discounts:
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ msrp: 5.962133916683182
+ extendedQuotePrice: 2.3021358869347655
recurringPriceModel: recurringPriceModel
- vendorprice: 7.061401241503109
+ tax: 7.061401241503109
type: type
- extendedMsrp: 5
+ extraFeesDetails:
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ extendedMsrp: 5.637376656633329
discountOffList: discountOffList
- quoteProductGuid: quoteProductGuid
vendorPartNumber: vendorPartNumber
- lineNumber: lineNumber
- weightUom: weightUom
quoteProductsSupplierPartAuxiliaryId: quoteProductsSupplierPartAuxiliaryId
isSuggestionProduct: true
- - ingramPartNumber: ingramPartNumber
- coo: coo
- vpnCategory: vpnCategory
+ ingramPartNumber: ingramPartNumber
+ billDetails:
+ - unit: unit
+ type: type
+ frequency: 1
+ unitValue: unitValue
+ - unit: unit
+ type: type
+ frequency: 1
+ unitValue: unitValue
quantity: 0
- notes: notes
+ serialNumber: serialNumber
resellerMargin: resellerMargin
- description: description
- weight: 6
+ weight: 6.027456183070403
vendorName: vendorName
+ quoteProductGuid: quoteProductGuid
+ planDescription: planDescription
+ lineNumber: lineNumber
+ weightUom: weightUom
+ startDate: startDate
+ - coo: coo
+ vpnCategory: vpnCategory
+ notes: notes
+ endDate: endDate
+ description: description
+ requestedStartDate: requestedStartDate
isSubscription: true
ean: ean
terms: terms
price:
- quotePrice: 1
- totalVisibleReserveQuantity: 3
- extendedvendorprice: 9.301444243932576
- msrp: 5
- extendedQuotePrice: 2
+ quotePrice: 1.4658129805029452
+ extrafees: 9.301444243932576
+ unitOfMeasure: unitOfMeasure
+ discounts:
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ msrp: 5.962133916683182
+ extendedQuotePrice: 2.3021358869347655
recurringPriceModel: recurringPriceModel
- vendorprice: 7.061401241503109
+ tax: 7.061401241503109
type: type
- extendedMsrp: 5
+ extraFeesDetails:
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ extendedMsrp: 5.637376656633329
discountOffList: discountOffList
- quoteProductGuid: quoteProductGuid
vendorPartNumber: vendorPartNumber
- lineNumber: lineNumber
- weightUom: weightUom
quoteProductsSupplierPartAuxiliaryId: quoteProductsSupplierPartAuxiliaryId
isSuggestionProduct: true
+ ingramPartNumber: ingramPartNumber
+ billDetails:
+ - unit: unit
+ type: type
+ frequency: 1
+ unitValue: unitValue
+ - unit: unit
+ type: type
+ frequency: 1
+ unitValue: unitValue
+ quantity: 0
+ serialNumber: serialNumber
+ resellerMargin: resellerMargin
+ weight: 6.027456183070403
+ vendorName: vendorName
+ quoteProductGuid: quoteProductGuid
+ planDescription: planDescription
+ lineNumber: lineNumber
+ weightUom: weightUom
+ startDate: startDate
+ statusReason: statusReason
+ imWarehouseGstNumber: imWarehouseGstNumber
leasingInstructions: leasingInstructions
- productsCount: 2
+ productsCount: 1
+ extraFeesTotalDetails:
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ vendorQuoteNumber: vendorQuoteNumber
specialBidEffectiveDate: specialBidEffectiveDate
endUserInfo:
phoneNumber: phoneNumber
@@ -9965,14 +10265,18 @@ components:
email: email
marketSegment: marketSegment
introPreamble: introPreamble
- extendedMsrpTotal: 4
+ extendedMsrpTotal: 6.84685269835264
+ freightAmount: 9.965781217890562
lastModifiedDate: lastModifiedDate
legalTerms: legalTerms
specialBidExpirationDate: specialBidExpirationDate
quoteNumber: quoteNumber
+ extraFeesTotal: 1.1730742509559433
revision: revision
- extendedQuotePriceTotal: 1
+ quoteGuid: quoteGuid
+ extendedQuotePriceTotal: 5.025004791520295
customerNeed: customerNeed
+ paymentTermsName: paymentTermsName
resellerInfo:
phoneNumber: phoneNumber
contact: contact
@@ -10006,6 +10310,8 @@ components:
\ included in the filter can be retrieved as a subset of all available\
\ customer quotes."
type: string
+ quoteGuid:
+ type: string
revision:
description: "When a quote has been revised and updated, the quote number\
\ remains the same throughout the lifecycle of the quote, however, a Revision\
@@ -10038,10 +10344,14 @@ components:
description: If a price discount has been applied to the quote - The date
the discount expires and will no longer be applicable.
type: string
+ vendorQuoteNumber:
+ type: string
status:
description: This refers to the primary status of the quote. API responses
will return
type: string
+ statusReason:
+ type: string
closingReason:
description: Closing Reason for quote.
type: string
@@ -10074,12 +10384,20 @@ components:
leasingInstructions:
description: Leasing information
type: string
- quoteSubType:
+ imWarehouse:
+ description: Warehouse name and Address
+ type: string
+ imWarehouseGstNumber:
+ description: Warehouse GST Number
+ type: string
+ paymentTermsName:
type: string
resellerInfo:
$ref: '#/components/schemas/QuoteDetailsResponse_resellerInfo'
endUserInfo:
$ref: '#/components/schemas/QuoteDetailsResponse_endUserInfo'
+ shippingInfo:
+ $ref: '#/components/schemas/QuoteDetailsResponse_shippingInfo'
products:
items:
$ref: '#/components/schemas/QuoteDetailsResponse_products_inner'
@@ -10089,14 +10407,31 @@ components:
type: integer
extendedMsrpTotal:
description: Total extended MSRP for all products included in the quote
- type: integer
+ format: decimal
+ type: number
quantityTotal:
description: Total quantity of all items in the quote.
type: integer
+ extraFeesTotal:
+ format: deciaml
+ type: number
+ extraFeesTotalDetails:
+ items:
+ $ref: '#/components/schemas/QuoteDetailsResponse_products_inner_price_extraFeesDetails_inner'
+ type: array
+ taxTotal:
+ format: decimal
+ nullable: true
+ type: number
extendedQuotePriceTotal:
description: Total amount of quoted price for all products in the quote
including both solution products and suggested products.
- type: integer
+ format: decimal
+ type: number
+ freightAmount:
+ format: decimal
+ nullable: true
+ type: number
totalQuoteAmount:
type: string
additionalAttributes:
@@ -10368,6 +10703,9 @@ components:
invoicedAmountDue: 5.962133916683182
endCustomerOrderNumber: endCustomerOrderNumber
invoiceAmountInclTax: 5.637376656633329
+ specialBidNumbers:
+ - specialBidNumbers
+ - specialBidNumbers
invoiceDate: invoiceDate
customerOrderNumber: customerOrderNumber
invoiceDueDate: invoiceDueDate
@@ -10382,6 +10720,9 @@ components:
invoicedAmountDue: 5.962133916683182
endCustomerOrderNumber: endCustomerOrderNumber
invoiceAmountInclTax: 5.637376656633329
+ specialBidNumbers:
+ - specialBidNumbers
+ - specialBidNumbers
invoiceDate: invoiceDate
customerOrderNumber: customerOrderNumber
invoiceDueDate: invoiceDueDate
@@ -10432,7 +10773,7 @@ components:
totals:
netInvoiceAmount: 1.4894159098541704
freightAmount: 4.965218492984954
- invoicesAmountDue: 1.1730742509559433
+ invoicedAmountDue: 1.1730742509559433
discountAmount: 6.84685269835264
discountType: discountType
totalTaxAmount: 7.457744773683766
@@ -10627,7 +10968,7 @@ components:
$ref: '#/components/schemas/ErrorResponse_errors_inner'
type: array
type: object
- QuoteToOrderResponse:
+ AsyncOrderCreateResponse:
example:
confirmationNumber: "987654322"
message: message
@@ -10842,10 +11183,10 @@ components:
ingramOrderLineNumber: ingramOrderLineNumber
estimatedDates:
- delivery:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -10858,10 +11199,10 @@ components:
shipDateType: shipDateType
shipDescription: shipDescription
- delivery:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -10873,6 +11214,7 @@ components:
shipDate: shipDate
shipDateType: shipDateType
shipDescription: shipDescription
+ defaultCarrierName: FEDEX GROUND
serviceContractInfo:
subscriptions:
renewalTerm: renewalTerm
@@ -11085,10 +11427,10 @@ components:
ingramOrderLineNumber: ingramOrderLineNumber
estimatedDates:
- delivery:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -11101,10 +11443,10 @@ components:
shipDateType: shipDateType
shipDescription: shipDescription
- delivery:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -11116,6 +11458,7 @@ components:
shipDate: shipDate
shipDateType: shipDateType
shipDescription: shipDescription
+ defaultCarrierName: FEDEX GROUND
serviceContractInfo:
subscriptions:
renewalTerm: renewalTerm
@@ -11403,23 +11746,23 @@ components:
fault:
$ref: '#/components/schemas/get_accesstoken_500_response_fault'
type: object
- get_reseller_v6_validateQuote_400_response_fields_inner:
+ post_createorder_v7_400_response_fields_inner:
example:
field: field
message: message
value: value
properties:
field:
- description: Contains the name of the field.
+ description: Name of the field.
type: string
message:
- description: Gives the description of the field message.
+ description: A filed level error message.
type: string
value:
- description: Value sent in the input for the specific field.
+ description: Value of the message.
type: string
type: object
- get_reseller_v6_validateQuote_400_response:
+ post_createorder_v7_400_response:
example:
traceid: traceid
type: type
@@ -11433,20 +11776,20 @@ components:
value: value
properties:
traceid:
- description: Unique Id to identify error.
+ description: A unique trace id to identify the issue.
type: string
type:
- description: Describes the type of the error.
+ description: Type of the error message.
type: string
message:
description: A detailed error message.
type: string
fields:
items:
- $ref: '#/components/schemas/get_reseller_v6_validateQuote_400_response_fields_inner'
+ $ref: '#/components/schemas/post_createorder_v7_400_response_fields_inner'
type: array
type: object
- get_reseller_v6_validateQuote_500_response:
+ post_createorder_v7_500_response:
example:
traceid: traceid
type: type
@@ -11469,23 +11812,23 @@ components:
type: object
type: array
type: object
- post_QuoteToOrder_v6_400_response_fields_inner:
+ get_reseller_v6_validateQuote_400_response_fields_inner:
example:
field: field
message: message
value: value
properties:
field:
- description: Name of the field.
+ description: Contains the name of the field.
type: string
message:
- description: A filed level error message.
+ description: Gives the description of the field message.
type: string
value:
- description: Value of the message.
+ description: Value sent in the input for the specific field.
type: string
type: object
- post_QuoteToOrder_v6_400_response:
+ get_reseller_v6_validateQuote_400_response:
example:
traceid: traceid
type: type
@@ -11499,17 +11842,17 @@ components:
value: value
properties:
traceid:
- description: A unique trace id to identify the issue.
+ description: Unique Id to identify error.
type: string
type:
- description: Type of the error message.
+ description: Describes the type of the error.
type: string
message:
description: A detailed error message.
type: string
fields:
items:
- $ref: '#/components/schemas/post_QuoteToOrder_v6_400_response_fields_inner'
+ $ref: '#/components/schemas/get_reseller_v6_validateQuote_400_response_fields_inner'
type: array
type: object
post_renewalssearch_400_response:
@@ -11695,7 +12038,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 6
+ phoneNumber: phoneNumber
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -11761,7 +12104,7 @@ components:
type: string
phoneNumber:
description: The end user/customer's phone number.
- type: integer
+ type: string
email:
description: The end user/customer's email.
type: string
@@ -11843,7 +12186,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 2.3021358869347655
+ phoneNumber: 5.637376656633329
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -11914,8 +12257,8 @@ components:
OrderCreateRequest_lines_inner:
example:
ingramPartNumber: ingramPartNumber
- unitPrice: 5.962133916683182
- quantity: 1
+ unitPrice: 1.4658129805029452
+ quantity: 6
specialBidNumber: specialBidNumber
notes: notes
endUserInfo:
@@ -11923,7 +12266,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 2.3021358869347655
+ phoneNumber: 5.637376656633329
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -11939,7 +12282,7 @@ components:
city: city
companyName: companyName
postalCode: postalCode
- phoneNumber: 2.3021358869347655
+ phoneNumber: 5.637376656633329
countryCode: countryCode
contact: contact
addressLine1: addressLine1
@@ -11951,7 +12294,7 @@ components:
addressLine4: addressLine4
name1: name1
email: email
- endUserPrice: 5.637376656633329
+ endUserPrice: 5.962133916683182
warrantyInfo:
- hardwareLineLink: hardwareLineLink
directLineLink: directLineLink
@@ -12119,27 +12462,97 @@ components:
description: attributefield data
type: string
type: object
- QuoteToOrderDetailsDTO_endUserInfo:
+ AsyncOrderCreateDTO_resellerInfo:
+ description: The address and contact information provided by the reseller.
+ example:
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ resellerId: resellerId
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ addressLine4: addressLine4
+ email: email
+ properties:
+ resellerId:
+ description: The reseller's Id.
+ type: string
+ companyName:
+ description: The reseller's company name.
+ type: string
+ contact:
+ description: The reseller's contact name.
+ type: string
+ addressLine1:
+ description: The reseller's address line 1.
+ type: string
+ addressLine2:
+ description: The reseller's address line 2.
+ type: string
+ addressLine3:
+ description: The reseller's address line 3.
+ type: string
+ addressLine4:
+ description: The reseller's address line 4.
+ type: string
+ city:
+ description: The reseller's city.
+ type: string
+ state:
+ description: The reseller's state.
+ type: string
+ postalCode:
+ description: The reseller's zip or postal code.
+ type: string
+ countryCode:
+ description: The reseller's two-character ISO country code.
+ type: string
+ phoneNumber:
+ description: The reseller's phone number.
+ type: string
+ email:
+ description: The reseller's Email Address.
+ type: string
+ type: object
+ AsyncOrderCreateDTO_endUserInfo:
description: The contact information for the end user/customer provided by the
reseller. Used to determine pricing and discounts.
example:
- phoneNumber: phoneNumber
+ endUserId: endUserId
city: city
- countryCode: countryCode
companyName: companyName
- contact: contact
postalCode: postalCode
+ name3: name3
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
addressLine1: addressLine1
addressLine2: addressLine2
addressLine3: addressLine3
state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
email: email
properties:
+ endUserId:
+ description: ID for the end user/customer in Ingram Micro's system.
+ type: string
+ endUserType:
+ description: End user type
+ type: string
companyName:
description: The company name for the end user/customer.
type: string
- contact:
- description: The contact name for the end user/customer.
+ name1:
+ type: string
+ name2:
type: string
addressLine1:
description: The address line 1 for the end user/customer.
@@ -12150,6 +12563,11 @@ components:
addressLine3:
description: The address line 3 for the end user/customer.
type: string
+ contact:
+ description: The contact name for the end user/customer.
+ type: string
+ name3:
+ type: string
city:
description: The end user/customer's city.
type: string
@@ -12159,40 +12577,48 @@ components:
postalCode:
description: The end user/customer's zip or postal code.
type: string
+ addressLine4:
+ description: The address line 4 for the end user/customer.
+ type: string
countryCode:
description: The end user/customer's two character ISO country code.
type: string
- email:
+ phoneNumber:
description: The end user/customer's phone number.
type: string
- phoneNumber:
+ email:
description: The end user/customer's phone number.
type: string
type: object
- QuoteToOrderDetailsDTO_shipToInfo:
+ AsyncOrderCreateDTO_shipToInfo:
description: The shipping information provided by the reseller for order delivery.
example:
+ shippingNotes: shippingNotes
city: city
- countryCode: countryCode
companyName: companyName
- contact: contact
postalCode: postalCode
+ addressId: addressId
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
addressLine1: addressLine1
addressLine2: addressLine2
addressLine3: addressLine3
state: state
+ addressLine4: addressLine4
+ name2: name2
+ name1: name1
email: email
- addressId: addressId
properties:
addressId:
description: The company contact provided by the reseller.
type: string
- companyName:
- description: The name of the company the order will be shipped to.
- type: string
contact:
description: The contact name for the order will be shipped to.
type: string
+ companyName:
+ description: The name of the company the order will be shipped to.
+ type: string
addressLine1:
description: The address line 1 the order will be shipped to.
type: string
@@ -12203,60 +12629,262 @@ components:
description: The address line 3 the order will be shipped to.
nullable: true
type: string
+ addressLine4:
+ description: The address line 4 the order will be shipped to.
+ nullable: true
+ type: string
+ name1:
+ description: Need description
+ type: string
+ name2:
+ description: Need description
+ type: string
city:
description: The city the order will be shipped to.
type: string
state:
description: The state the order will be shipped to.
type: string
- postalCode:
- description: The zip or postal code the order will be shipped to.
+ postalCode:
+ description: The zip or postal code the order will be shipped to.
+ type: string
+ countryCode:
+ description: The two-character ISO country code the order will be shipped
+ to.
+ type: string
+ email:
+ description: The company contact email address.
+ nullable: true
+ type: string
+ shippingNotes:
+ description: Shipping Notes
+ type: string
+ phoneNumber:
+ description: Phone number for shipping
+ type: string
+ type: object
+ AsyncOrderCreateDTO_shipmentDetails:
+ description: Shipping details for the order provided by the customer.
+ example:
+ shipComplete: shipComplete
+ freightAccountNumber: freightAccountNumber
+ shippingInstructions: shippingInstructions
+ carrierCode: carrierCode
+ signatureRequired: true
+ requestedDeliveryDate: requestedDeliveryDate
+ properties:
+ carrierCode:
+ description: The code for the shipping carrier for the line item.
+ type: string
+ requestedDeliveryDate:
+ description: The reseller-requested delivery date in UTC format. Delivery
+ date is not guaranteed.
+ type: string
+ shipComplete:
+ description: "Specifies whether the shipment will be shipped only when all\
+ \ products are fulfilled. The value of this field along with acceptBackOrder\
+ \ field decides the value of backorderflag. If this field is set, acceptBackOrder\
+ \ field is ignored. Possible values for this field are true, C, P, E."
+ type: string
+ shippingInstructions:
+ description: Any special shipping instructions for the order.
+ type: string
+ freightAccountNumber:
+ description: The reseller 's shipping account number with carrier. Used
+ to bill the shipping carrier directly from the reseller's account with
+ the carrier.
+ type: string
+ signatureRequired:
+ description: Specifies whether a signature is required for delivery. Default
+ is False.
+ type: boolean
+ type: object
+ AsyncOrderCreateDTO_additionalAttributes_inner:
+ example:
+ attributeValue: attributeValue
+ attributeName: attributeName
+ properties:
+ attributeName:
+ description: "The attribute name. allowDuplicateCustomerOrderNumber: Allow\
+ \ orders with duplicate customer PO numbers. Enables resellers to have\
+ \ the same PO number for multiple orders. enableCommentsAsLines: It will\
+ \ enable comments as lines."
+ type: string
+ attributeValue:
+ description: The attribute field data.
+ type: string
+ AsyncOrderCreateDTO_vmfadditionalAttributes_inner:
+ example:
+ attributeValue: attributeValue
+ attributeName: attributeName
+ properties:
+ attributeName:
+ description: The name of the header level field.
+ type: string
+ attributeValue:
+ description: The value of the header level field.
+ type: string
+ type: object
+ AsyncOrderCreateDTO_lines_inner_endUserInfo_inner:
+ example:
+ endUserId: endUserId
+ contactId: contactId
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
+ email: email
+ properties:
+ endUserId:
+ description: ID for the end user/customer in Ingram Micro's system.
+ type: string
+ endUserType:
+ description: End user type
+ type: string
+ companyName:
+ description: The company name for the end user/customer.
+ type: string
+ name1:
+ type: string
+ name2:
+ type: string
+ contactId:
+ description: The contact Id for the end user/customer.
+ type: string
+ addressLine1:
+ description: The address line 1 for the end user/customer.
+ type: string
+ addressLine2:
+ description: The address line 2 for the end user/customer.
+ type: string
+ addressLine3:
+ description: The address line 3 for the end user/customer.
+ type: string
+ contact:
+ description: The contact name for the end user/customer.
+ type: string
+ city:
+ description: The end user/customer's city.
+ type: string
+ state:
+ description: The end user/customer's state.
+ type: string
+ postalCode:
+ description: The end user/customer's zip or postal code.
+ type: string
+ addressLine4:
+ description: The address line 4 for the end user/customer.
+ type: string
+ countryCode:
+ description: The end user/customer's two character ISO country code.
+ type: string
+ phoneNumber:
+ description: The end user/customer's phone number.
+ type: string
+ email:
+ description: The end user/customer's phone number.
+ type: string
+ type: object
+ AsyncOrderCreateDTO_lines_inner:
+ example:
+ ingramPartNumber: ingramPartNumber
+ unitPrice: unitPrice
+ quantity: quantity
+ specialBidNumber: specialBidNumber
+ notes: notes
+ endUserInfo:
+ - endUserId: endUserId
+ contactId: contactId
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
+ email: email
+ - endUserId: endUserId
+ contactId: contactId
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ phoneNumber: phoneNumber
+ countryCode: countryCode
+ contact: contact
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ endUserType: endUserType
+ name2: name2
+ addressLine4: addressLine4
+ name1: name1
+ email: email
+ endUserPrice: endUserPrice
+ customerLineNumber: customerLineNumber
+ properties:
+ customerLineNumber:
+ description: The reseller's line item number for reference in their system.
+ type: string
+ ingramPartNumber:
+ description: Unique IngramMicro part number.
+ type: string
+ quantity:
+ description: The quantity of the line item.
+ type: string
+ unitPrice:
+ description: Unit Price of Item
type: string
- countryCode:
- description: The two-character ISO country code the order will be shipped
- to.
+ specialBidNumber:
type: string
- email:
- description: The company contact email address.
- nullable: true
+ endUserPrice:
+ type: string
+ notes:
type: string
+ endUserInfo:
+ description: The contact information for the end user/customer provided
+ by the reseller. Used to determine pricing and discounts.
+ items:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_lines_inner_endUserInfo_inner'
+ type: array
type: object
- QuoteToOrderDetailsDTO_additionalAttributes_inner:
+ AsyncOrderCreateDTO_warrantyInfo_inner_serialInfo_inner:
example:
- attributeValue: attributeValue
- attributeName: attributeName
+ dateOfPurchase: dateOfPurchase
+ primarySerialNumber: primarySerialNumber
+ secondarySerialNumber: secondarySerialNumber
+ shipDate: shipDate
properties:
- attributeName:
- description: "The attribute name. allowDuplicateCustomerOrderNumber: Allow\
- \ orders with duplicate customer PO numbers. Enables resellers to have\
- \ the same PO number for multiple orders. enableCommentsAsLines: It will\
- \ enable comments as lines."
- type: string
- attributeValue:
- description: The attribute field data.
+ dateOfPurchase:
type: string
- QuoteToOrderDetailsDTO_vmfadditionalAttributes_inner:
- additionalProperties: false
- example:
- attributeValue: attributeValue
- attributeName: attributeName
- attributeDescription: attributeDescription
- properties:
- attributeName:
- description: The name of the header level field.
+ shipDate:
type: string
- attributeValue:
- description: The value of the header level field.
+ primarySerialNumber:
type: string
- attributeDescription:
- description: The description of the header level field.
+ secondarySerialNumber:
type: string
type: object
- QuoteToOrderDetailsDTO_lines_inner_vmfAdditionalAttributesLines_inner:
+ AsyncOrderCreateDTO_warrantyInfo_inner_vmfAdditionalAttributesLines_inner:
example:
attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
properties:
attributeName:
description: The name of the line level field.
@@ -12264,37 +12892,42 @@ components:
attributeValue:
description: The value of the line level field.
type: string
- attributeDescription:
- description: The description of the line level field.
- type: string
type: object
- QuoteToOrderDetailsDTO_lines_inner:
+ AsyncOrderCreateDTO_warrantyInfo_inner:
example:
- ingramPartNumber: ingramPartNumber
+ hardwareLineLink: hardwareLineLink
vmfAdditionalAttributesLines:
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
- attributeValue: attributeValue
attributeName: attributeName
- attributeDescription: attributeDescription
- quantity: quantity
- customerLineNumber: customerLineNumber
+ warrantyLineLink: warrantyLineLink
+ directLineLink: directLineLink
+ serialInfo:
+ - dateOfPurchase: dateOfPurchase
+ primarySerialNumber: primarySerialNumber
+ secondarySerialNumber: secondarySerialNumber
+ shipDate: shipDate
+ - dateOfPurchase: dateOfPurchase
+ primarySerialNumber: primarySerialNumber
+ secondarySerialNumber: secondarySerialNumber
+ shipDate: shipDate
properties:
- customerLineNumber:
- description: The reseller's line item number for reference in their system.
+ hardwareLineLink:
type: string
- ingramPartNumber:
- description: Unique IngramMicro part number.
+ warrantyLineLink:
type: string
- quantity:
- description: The quantity of the line item.
+ directLineLink:
type: string
+ serialInfo:
+ items:
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_warrantyInfo_inner_serialInfo_inner'
+ type: array
vmfAdditionalAttributesLines:
description: The object containing the list of fields required at a line
level by the vendor.
items:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO_lines_inner_vmfAdditionalAttributesLines_inner'
+ $ref: '#/components/schemas/AsyncOrderCreateDTO_warrantyInfo_inner_vmfAdditionalAttributesLines_inner'
type: array
type: object
ValidateQuoteResponse_vmfAdditionalAttributes_inner:
@@ -12316,6 +12949,22 @@ components:
example: Authorization Number
type: string
type: object
+ ValidateQuoteResponse_lines_inner_vmfAdditionalAttributesLines_inner:
+ example:
+ attributeValue: attributeValue
+ attributeName: attributeName
+ attributeDescription: attributeDescription
+ properties:
+ attributeName:
+ description: The name of the line level field.
+ type: string
+ attributeValue:
+ description: The value of the line level field.
+ type: string
+ attributeDescription:
+ description: The description of the line level field.
+ type: string
+ type: object
ValidateQuoteResponse_lines_inner:
example:
ingramPartNumber: YN6551
@@ -12326,7 +12975,7 @@ components:
- attributeValue: attributeValue
attributeName: attributeName
attributeDescription: attributeDescription
- quantity: "1"
+ quantity: 1
customerLineNumber: "11"
properties:
customerLineNumber:
@@ -12339,13 +12988,13 @@ components:
type: string
quantity:
description: The quantity of the line item.
- example: "1"
- type: string
+ example: 1
+ type: integer
vmfAdditionalAttributesLines:
description: The object containing the list of fields required at a line
level by the vendor.
items:
- $ref: '#/components/schemas/QuoteToOrderDetailsDTO_lines_inner_vmfAdditionalAttributesLines_inner'
+ $ref: '#/components/schemas/ValidateQuoteResponse_lines_inner_vmfAdditionalAttributesLines_inner'
type: array
type: object
OrderCreateResponse_shipToInfo:
@@ -15042,10 +15691,10 @@ components:
type: object
freightResponse_freightEstimateResponse_distribution_inner_carrierList_inner:
example:
- daysInTransit: 2
+ daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
properties:
carrierCode:
@@ -15059,24 +15708,23 @@ components:
type: string
estimatedFreightCharge:
description: Estimated freight charge.
- format: decimal
- type: number
+ type: string
daysInTransit:
description: Number of transit days.
- type: integer
+ type: string
type: object
freightResponse_freightEstimateResponse_distribution_inner:
example:
carrierList:
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
freightRate: 2.3021358869347655
shipVia: shipVia
@@ -15113,10 +15761,10 @@ components:
freightResponse_freightEstimateResponse_lines_inner:
example:
ingramPartNumber: ingramPartNumber
- unitPrice: 7.386281948385884
- quantity: 4
+ unitPrice: 2.027123023002322
+ quantity: 3
warehouseId: warehouseId
- netAmount: 1.2315135367772556
+ netAmount: 4.145608029883936
vendorPartNumber: vendorPartNumber
properties:
ingramPartNumber:
@@ -15149,15 +15797,15 @@ components:
totalTaxAmount: 6.027456183070403
distribution:
- carrierList:
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
freightRate: 2.3021358869347655
shipVia: shipVia
@@ -15166,15 +15814,15 @@ components:
shipFromBranchNumber: shipFromBranchNumber
transitDays: 9
- carrierList:
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
- - daysInTransit: 2
+ - daysInTransit: daysInTransit
shipVia: shipVia
carrierCode: carrierCode
- estimatedFreightCharge: 3.616076749251911
+ estimatedFreightCharge: estimatedFreightCharge
carrierMode: carrierMode
freightRate: 2.3021358869347655
shipVia: shipVia
@@ -15184,16 +15832,16 @@ components:
transitDays: 9
lines:
- ingramPartNumber: ingramPartNumber
- unitPrice: 7.386281948385884
- quantity: 4
+ unitPrice: 2.027123023002322
+ quantity: 3
warehouseId: warehouseId
- netAmount: 1.2315135367772556
+ netAmount: 4.145608029883936
vendorPartNumber: vendorPartNumber
- ingramPartNumber: ingramPartNumber
- unitPrice: 7.386281948385884
- quantity: 4
+ unitPrice: 2.027123023002322
+ quantity: 3
warehouseId: warehouseId
- netAmount: 1.2315135367772556
+ netAmount: 4.145608029883936
vendorPartNumber: vendorPartNumber
currencyCode: currencyCode
properties:
@@ -15262,6 +15910,7 @@ components:
href: href
type: type
quoteTotal: 5.962133916683182
+ currencyCode: currencyCode
quoteName: quoteName
ingramQuoteDate: ingramQuoteDate
properties:
@@ -15284,6 +15933,10 @@ components:
\ number is updated for each revision of the quote. The revision numbers\
\ is associated with the Unique Quote Number."
type: string
+ currencyCode:
+ description: The country-specific three digit ISO 4217 currency code for
+ the order.
+ type: string
endUserContact:
description: End User Name is the end customer name that is associated with
a quote in Ingram Micros CRM.
@@ -15399,78 +16052,272 @@ components:
\ may receive special pricing due to their segmentation."
type: string
type: object
+ QuoteDetailsResponse_shippingInfo:
+ example:
+ phoneNumber: phoneNumber
+ city: city
+ companyName: companyName
+ postalCode: postalCode
+ addressLine1: addressLine1
+ addressLine2: addressLine2
+ addressLine3: addressLine3
+ state: state
+ shpToGstinNumber: shpToGstinNumber
+ email: email
+ properties:
+ companyName:
+ description: Contact name of shipping info associated with the quote.
+ type: string
+ addressLine1:
+ description: Address line 1 for shipping info associated with the quote
+ type: string
+ addressLine2:
+ description: Address line 2 for shipping info associated with the quote.
+ type: string
+ addressLine3:
+ description: Address line 3 for shipping info associated with the quote.
+ type: string
+ city:
+ description: City for shipping info associated with the quote
+ type: string
+ state:
+ description: Two letter state abreviation for shipping info associated with
+ the quote
+ type: string
+ email:
+ description: Email of shipping info the quote associated with the quote.
+ type: string
+ phoneNumber:
+ description: Phone number of shipping info associated with the quote.
+ type: string
+ postalCode:
+ description: Zip code of shipping info associated with the quote.
+ type: string
+ shpToGstinNumber:
+ type: string
+ type: object
+ QuoteDetailsResponse_products_inner_price_extraFeesDetails_inner:
+ example:
+ extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ properties:
+ extraFeesDescription:
+ type: string
+ extraFeesAmount:
+ format: decimal
+ type: number
+ type: object
+ QuoteDetailsResponse_products_inner_price_discounts_inner:
+ example:
+ amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ properties:
+ type:
+ type: string
+ amount:
+ format: decimal
+ type: number
+ expirationDate:
+ type: string
+ description:
+ type: string
+ avaliableQunatity:
+ type: integer
+ minimumQuantity:
+ type: integer
+ bidNumber:
+ type: string
+ bidVersion:
+ type: string
+ validFrom:
+ type: string
+ validTo:
+ type: string
+ discountOffList:
+ format: decimal
+ type: number
+ type: object
QuoteDetailsResponse_products_inner_price:
example:
- quotePrice: 1
- totalVisibleReserveQuantity: 3
- extendedvendorprice: 9.301444243932576
- msrp: 5
- extendedQuotePrice: 2
+ quotePrice: 1.4658129805029452
+ extrafees: 9.301444243932576
+ unitOfMeasure: unitOfMeasure
+ discounts:
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ msrp: 5.962133916683182
+ extendedQuotePrice: 2.3021358869347655
recurringPriceModel: recurringPriceModel
- vendorprice: 7.061401241503109
+ tax: 7.061401241503109
type: type
- extendedMsrp: 5
+ extraFeesDetails:
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ extendedMsrp: 5.637376656633329
discountOffList: discountOffList
properties:
quotePrice:
description: Ingram Micro quoted price specific to the reseller and quote.
- type: integer
+ format: decimal
+ type: number
msrp:
description: Manufacturer Suggested Retail Price
- type: integer
+ format: decimal
+ type: number
extendedMsrp:
description: Extended MSRP - Manufacturer Suggested Retail Price X Quantity
- type: integer
+ format: decimal
+ type: number
extendedQuotePrice:
description: Extended reseller quoted price (cost to reseller) X Quantity
- type: integer
+ format: decimal
+ type: number
discountOffList:
description: Discount off list percentage extended
type: string
- vendorprice:
+ type:
+ type: string
+ recurringPriceModel:
+ type: string
+ unitOfMeasure:
+ type: string
+ tax:
format: decimal
+ nullable: true
type: number
- extendedvendorprice:
+ extrafees:
format: decimal
+ nullable: true
type: number
- totalVisibleReserveQuantity:
- type: integer
+ extraFeesDetails:
+ items:
+ $ref: '#/components/schemas/QuoteDetailsResponse_products_inner_price_extraFeesDetails_inner'
+ type: array
+ discounts:
+ items:
+ $ref: '#/components/schemas/QuoteDetailsResponse_products_inner_price_discounts_inner'
+ type: array
+ type: object
+ QuoteDetailsResponse_products_inner_billDetails_inner:
+ example:
+ unit: unit
+ type: type
+ frequency: 1
+ unitValue: unitValue
+ properties:
type:
type: string
- recurringPriceModel:
+ unit:
+ type: string
+ frequency:
+ type: integer
+ unitValue:
type: string
type: object
QuoteDetailsResponse_products_inner:
example:
- ingramPartNumber: ingramPartNumber
coo: coo
vpnCategory: vpnCategory
- quantity: 0
notes: notes
- resellerMargin: resellerMargin
+ endDate: endDate
description: description
- weight: 6
- vendorName: vendorName
+ requestedStartDate: requestedStartDate
isSubscription: true
ean: ean
terms: terms
price:
- quotePrice: 1
- totalVisibleReserveQuantity: 3
- extendedvendorprice: 9.301444243932576
- msrp: 5
- extendedQuotePrice: 2
+ quotePrice: 1.4658129805029452
+ extrafees: 9.301444243932576
+ unitOfMeasure: unitOfMeasure
+ discounts:
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ - amount: 2.027123023002322
+ description: description
+ avaliableQunatity: 4
+ bidVersion: bidVersion
+ validFrom: validFrom
+ type: type
+ bidNumber: bidNumber
+ minimumQuantity: 7
+ discountOffList: 1.2315135367772556
+ expirationDate: expirationDate
+ validTo: validTo
+ msrp: 5.962133916683182
+ extendedQuotePrice: 2.3021358869347655
recurringPriceModel: recurringPriceModel
- vendorprice: 7.061401241503109
+ tax: 7.061401241503109
type: type
- extendedMsrp: 5
+ extraFeesDetails:
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ - extraFeesAmount: 3.616076749251911
+ extraFeesDescription: extraFeesDescription
+ extendedMsrp: 5.637376656633329
discountOffList: discountOffList
- quoteProductGuid: quoteProductGuid
vendorPartNumber: vendorPartNumber
- lineNumber: lineNumber
- weightUom: weightUom
quoteProductsSupplierPartAuxiliaryId: quoteProductsSupplierPartAuxiliaryId
isSuggestionProduct: true
+ ingramPartNumber: ingramPartNumber
+ billDetails:
+ - unit: unit
+ type: type
+ frequency: 1
+ unitValue: unitValue
+ - unit: unit
+ type: type
+ frequency: 1
+ unitValue: unitValue
+ quantity: 0
+ serialNumber: serialNumber
+ resellerMargin: resellerMargin
+ weight: 6.027456183070403
+ vendorName: vendorName
+ quoteProductGuid: quoteProductGuid
+ planDescription: planDescription
+ lineNumber: lineNumber
+ weightUom: weightUom
+ startDate: startDate
properties:
quoteProductGuid:
description: Quote Product GUID is the primary quote key in Ingram Micro's
@@ -15511,7 +16358,8 @@ components:
\ following Imperial standards - weight is presented as pounds with decimal.\
\ In countries following metric standards, weight is provided as kilograms\
\ with decimal."
- type: integer
+ format: decimal
+ type: number
weightUom:
description: Unit of measure
type: string
@@ -15534,12 +16382,26 @@ components:
terms:
description: Terms of the quote
type: string
+ planDescription:
+ type: string
isSubscription:
type: boolean
resellerMargin:
type: string
+ requestedStartDate:
+ type: string
+ startDate:
+ type: string
+ endDate:
+ type: string
+ serialNumber:
+ type: string
price:
$ref: '#/components/schemas/QuoteDetailsResponse_products_inner_price'
+ billDetails:
+ items:
+ $ref: '#/components/schemas/QuoteDetailsResponse_products_inner_billDetails_inner'
+ type: array
type: object
QuoteDetailsResponse_additionalAttributes_inner:
example:
@@ -15897,6 +16759,9 @@ components:
invoicedAmountDue: 5.962133916683182
endCustomerOrderNumber: endCustomerOrderNumber
invoiceAmountInclTax: 5.637376656633329
+ specialBidNumbers:
+ - specialBidNumbers
+ - specialBidNumbers
invoiceDate: invoiceDate
customerOrderNumber: customerOrderNumber
invoiceDueDate: invoiceDueDate
@@ -15911,6 +16776,11 @@ components:
paymentTermsDueDate:
description: Payment Terms Due date.
type: string
+ specialBidNumbers:
+ items:
+ description: List of Ingram Micro Special Bid Number
+ type: string
+ type: array
erpOrderNumber:
description: Order number
type: string
@@ -16246,7 +17116,7 @@ components:
example:
netInvoiceAmount: 1.4894159098541704
freightAmount: 4.965218492984954
- invoicesAmountDue: 1.1730742509559433
+ invoicedAmountDue: 1.1730742509559433
discountAmount: 6.84685269835264
discountType: discountType
totalTaxAmount: 7.457744773683766
@@ -16266,7 +17136,7 @@ components:
description: Total Tax amount.
format: double
type: number
- invoicesAmountDue:
+ invoicedAmountDue:
description: Total amount due for the invoice.
format: double
type: number
@@ -16319,7 +17189,7 @@ components:
totals:
netInvoiceAmount: 1.4894159098541704
freightAmount: 4.965218492984954
- invoicesAmountDue: 1.1730742509559433
+ invoicedAmountDue: 1.1730742509559433
discountAmount: 6.84685269835264
discountType: discountType
totalTaxAmount: 7.457744773683766
@@ -16943,10 +17813,10 @@ components:
type: string
OrderDetailB2B_lines_inner_estimatedDates_inner_delivery:
example:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -16962,17 +17832,17 @@ components:
deliveryDescription:
description: Delivery description.
type: string
- deliveredDate:
+ deliveryDate:
description: Delivery date.
type: string
type: object
OrderDetailB2B_lines_inner_estimatedDates_inner:
example:
delivery:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -17114,10 +17984,10 @@ components:
ingramOrderLineNumber: ingramOrderLineNumber
estimatedDates:
- delivery:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -17130,10 +18000,10 @@ components:
shipDateType: shipDateType
shipDescription: shipDescription
- delivery:
- deliveredDate: deliveredDate
deliveryDescription: deliveryDescription
deliveryDateType: deliveryDateType
deliverySource: deliverySource
+ deliveryDate: deliveryDate
deliveryDateRange:
endDate: endDate
startDate: startDate
@@ -17145,6 +18015,7 @@ components:
shipDate: shipDate
shipDateType: shipDateType
shipDescription: shipDescription
+ defaultCarrierName: FEDEX GROUND
serviceContractInfo:
subscriptions:
renewalTerm: renewalTerm
@@ -17419,6 +18290,9 @@ components:
items:
$ref: '#/components/schemas/OrderDetailB2B_lines_inner_multipleShipments_inner'
type: array
+ defaultCarrierName:
+ example: FEDEX GROUND
+ type: string
type: object
OrderDetailB2B_miscellaneousCharges_inner:
additionalProperties: false
@@ -17467,12 +18341,14 @@ components:
tokenUrl: https://api.ingrammicro.com:443/oauth/oauth30/token
type: oauth2
x-tagGroups:
+- name: Reseller API (Version 7)
+ tags:
+ - AyncOrderCreate
- name: Reseller API (Version 6)
tags:
- Product Catalog
- Orders
- Quotes
- - Quote To Order
- Invoices
- Renewals
- Deals
diff --git a/build.gradle b/build.gradle
index 10a6389c..2fe479b5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -108,8 +108,8 @@ ext {
dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.google.code.findbugs:jsr305:3.0.2"
- implementation 'com.squareup.okhttp3:okhttp:4.10.0'
- implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
+ implementation 'com.squareup.okhttp3:okhttp:4.12.0'
+ implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation 'com.google.code.gson:gson:2.9.1'
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'javax.ws.rs:jsr311-api:1.1.1'
@@ -118,9 +118,9 @@ dependencies {
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
+ testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testImplementation 'org.mockito:mockito-core:3.12.4'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
}
javadoc {
diff --git a/build.sbt b/build.sbt
index 3ee09616..bbfc804b 100644
--- a/build.sbt
+++ b/build.sbt
@@ -10,8 +10,8 @@ lazy val root = (project in file(".")).
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.6.5",
- "com.squareup.okhttp3" % "okhttp" % "4.10.0",
- "com.squareup.okhttp3" % "logging-interceptor" % "4.10.0",
+ "com.squareup.okhttp3" % "okhttp" % "4.12.0",
+ "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
"org.apache.commons" % "commons-lang3" % "3.12.0",
"javax.ws.rs" % "jsr311-api" % "1.1.1",
@@ -22,7 +22,7 @@ lazy val root = (project in file(".")).
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
- "org.junit.jupiter" % "junit-jupiter-api" % "5.9.1" % "test",
+ "org.junit.jupiter" % "junit-jupiter-api" % "5.10.2" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test",
"org.mockito" % "mockito-core" % "3.12.4" % "test"
)
diff --git a/docs/AsyncOrderCreateDTO.md b/docs/AsyncOrderCreateDTO.md
new file mode 100644
index 00000000..d9dd214d
--- /dev/null
+++ b/docs/AsyncOrderCreateDTO.md
@@ -0,0 +1,29 @@
+
+
+# AsyncOrderCreateDTO
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**quoteNumber** | **String** | A unique identifier generated by Ingram Micro's CRM specific to each quote. | [optional] |
+|**customerOrderNumber** | **String** | The reseller's order number for reference in their system. | [optional] |
+|**endCustomerOrderNumber** | **String** | The end customer's order number for reference in their system. | [optional] |
+|**notes** | **String** | Order header level notes. | [optional] |
+|**billToAddressId** | **String** | Suffix used to identify billing address. Created during onboarding. Resellers are provided with one or more address IDs depending on how many bill to addresses they need for various flooring companies they are using for credit. | [optional] |
+|**specialBidNumber** | **String** | The bid number is provided to the reseller by the vendor for special pricing and discounts. Line-level bid numbers take precedence over header-level bid numbers. | [optional] |
+|**internalComments** | **String** | need to replace with actual description | [optional] |
+|**acceptBackOrder** | **Boolean** | ENUM [\"true\",\"false\"] - accept order if this item is backordered. This field along with shipComplete field decides the value of backorderflag. The value of this field is ignored when shipComplete field is present. | [optional] |
+|**vendAuthNumber** | **String** | Authorization number provided by vendor to Ingram's reseller. Orders will be placed on hold without this value, vendor specific mandatory field - please reach out Ingram Sales team for list of vendor for whom this is mandatory. | [optional] |
+|**resellerInfo** | [**AsyncOrderCreateDTOResellerInfo**](AsyncOrderCreateDTOResellerInfo.md) | | [optional] |
+|**endUserInfo** | [**AsyncOrderCreateDTOEndUserInfo**](AsyncOrderCreateDTOEndUserInfo.md) | | [optional] |
+|**shipToInfo** | [**AsyncOrderCreateDTOShipToInfo**](AsyncOrderCreateDTOShipToInfo.md) | | [optional] |
+|**shipmentDetails** | [**AsyncOrderCreateDTOShipmentDetails**](AsyncOrderCreateDTOShipmentDetails.md) | | [optional] |
+|**additionalAttributes** | [**List<AsyncOrderCreateDTOAdditionalAttributesInner>**](AsyncOrderCreateDTOAdditionalAttributesInner.md) | Additional order create attributes. | [optional] |
+|**vmfadditionalAttributes** | [**List<AsyncOrderCreateDTOVmfadditionalAttributesInner>**](AsyncOrderCreateDTOVmfadditionalAttributesInner.md) | The object containing the list of fields required at a header level by the vendor. | [optional] |
+|**lines** | [**List<AsyncOrderCreateDTOLinesInner>**](AsyncOrderCreateDTOLinesInner.md) | The object containing the lines that require vendor mandatory fields. | [optional] |
+|**warrantyInfo** | [**List<AsyncOrderCreateDTOWarrantyInfoInner>**](AsyncOrderCreateDTOWarrantyInfoInner.md) | Warranty Information | [optional] |
+
+
+
diff --git a/docs/QuoteToOrderDetailsDTOAdditionalAttributesInner.md b/docs/AsyncOrderCreateDTOAdditionalAttributesInner.md
similarity index 90%
rename from docs/QuoteToOrderDetailsDTOAdditionalAttributesInner.md
rename to docs/AsyncOrderCreateDTOAdditionalAttributesInner.md
index 9080e107..ee6556ca 100644
--- a/docs/QuoteToOrderDetailsDTOAdditionalAttributesInner.md
+++ b/docs/AsyncOrderCreateDTOAdditionalAttributesInner.md
@@ -1,6 +1,6 @@
-# QuoteToOrderDetailsDTOAdditionalAttributesInner
+# AsyncOrderCreateDTOAdditionalAttributesInner
## Properties
diff --git a/docs/QuoteToOrderDetailsDTOEndUserInfo.md b/docs/AsyncOrderCreateDTOEndUserInfo.md
similarity index 74%
rename from docs/QuoteToOrderDetailsDTOEndUserInfo.md
rename to docs/AsyncOrderCreateDTOEndUserInfo.md
index 7541ce29..fe16708f 100644
--- a/docs/QuoteToOrderDetailsDTOEndUserInfo.md
+++ b/docs/AsyncOrderCreateDTOEndUserInfo.md
@@ -1,6 +1,6 @@
-# QuoteToOrderDetailsDTOEndUserInfo
+# AsyncOrderCreateDTOEndUserInfo
The contact information for the end user/customer provided by the reseller. Used to determine pricing and discounts.
@@ -8,17 +8,23 @@ The contact information for the end user/customer provided by the reseller. Used
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
+|**endUserId** | **String** | ID for the end user/customer in Ingram Micro's system. | [optional] |
+|**endUserType** | **String** | End user type | [optional] |
|**companyName** | **String** | The company name for the end user/customer. | [optional] |
-|**contact** | **String** | The contact name for the end user/customer. | [optional] |
+|**name1** | **String** | | [optional] |
+|**name2** | **String** | | [optional] |
|**addressLine1** | **String** | The address line 1 for the end user/customer. | [optional] |
|**addressLine2** | **String** | The address line 2 for the end user/customer. | [optional] |
|**addressLine3** | **String** | The address line 3 for the end user/customer. | [optional] |
+|**contact** | **String** | The contact name for the end user/customer. | [optional] |
+|**name3** | **String** | | [optional] |
|**city** | **String** | The end user/customer's city. | [optional] |
|**state** | **String** | The end user/customer's state. | [optional] |
|**postalCode** | **String** | The end user/customer's zip or postal code. | [optional] |
+|**addressLine4** | **String** | The address line 4 for the end user/customer. | [optional] |
|**countryCode** | **String** | The end user/customer's two character ISO country code. | [optional] |
-|**email** | **String** | The end user/customer's phone number. | [optional] |
|**phoneNumber** | **String** | The end user/customer's phone number. | [optional] |
+|**email** | **String** | The end user/customer's phone number. | [optional] |
diff --git a/docs/AsyncOrderCreateDTOLinesInner.md b/docs/AsyncOrderCreateDTOLinesInner.md
new file mode 100644
index 00000000..4635bdb7
--- /dev/null
+++ b/docs/AsyncOrderCreateDTOLinesInner.md
@@ -0,0 +1,20 @@
+
+
+# AsyncOrderCreateDTOLinesInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**customerLineNumber** | **String** | The reseller's line item number for reference in their system. | [optional] |
+|**ingramPartNumber** | **String** | Unique IngramMicro part number. | [optional] |
+|**quantity** | **String** | The quantity of the line item. | [optional] |
+|**unitPrice** | **String** | Unit Price of Item | [optional] |
+|**specialBidNumber** | **String** | | [optional] |
+|**endUserPrice** | **String** | | [optional] |
+|**notes** | **String** | | [optional] |
+|**endUserInfo** | [**List<AsyncOrderCreateDTOLinesInnerEndUserInfoInner>**](AsyncOrderCreateDTOLinesInnerEndUserInfoInner.md) | The contact information for the end user/customer provided by the reseller. Used to determine pricing and discounts. | [optional] |
+
+
+
diff --git a/docs/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.md b/docs/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.md
new file mode 100644
index 00000000..81e1070f
--- /dev/null
+++ b/docs/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.md
@@ -0,0 +1,29 @@
+
+
+# AsyncOrderCreateDTOLinesInnerEndUserInfoInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**endUserId** | **String** | ID for the end user/customer in Ingram Micro's system. | [optional] |
+|**endUserType** | **String** | End user type | [optional] |
+|**companyName** | **String** | The company name for the end user/customer. | [optional] |
+|**name1** | **String** | | [optional] |
+|**name2** | **String** | | [optional] |
+|**contactId** | **String** | The contact Id for the end user/customer. | [optional] |
+|**addressLine1** | **String** | The address line 1 for the end user/customer. | [optional] |
+|**addressLine2** | **String** | The address line 2 for the end user/customer. | [optional] |
+|**addressLine3** | **String** | The address line 3 for the end user/customer. | [optional] |
+|**contact** | **String** | The contact name for the end user/customer. | [optional] |
+|**city** | **String** | The end user/customer's city. | [optional] |
+|**state** | **String** | The end user/customer's state. | [optional] |
+|**postalCode** | **String** | The end user/customer's zip or postal code. | [optional] |
+|**addressLine4** | **String** | The address line 4 for the end user/customer. | [optional] |
+|**countryCode** | **String** | The end user/customer's two character ISO country code. | [optional] |
+|**phoneNumber** | **String** | The end user/customer's phone number. | [optional] |
+|**email** | **String** | The end user/customer's phone number. | [optional] |
+
+
+
diff --git a/docs/AsyncOrderCreateDTOResellerInfo.md b/docs/AsyncOrderCreateDTOResellerInfo.md
new file mode 100644
index 00000000..f13abe44
--- /dev/null
+++ b/docs/AsyncOrderCreateDTOResellerInfo.md
@@ -0,0 +1,26 @@
+
+
+# AsyncOrderCreateDTOResellerInfo
+
+The address and contact information provided by the reseller.
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**resellerId** | **String** | The reseller's Id. | [optional] |
+|**companyName** | **String** | The reseller's company name. | [optional] |
+|**contact** | **String** | The reseller's contact name. | [optional] |
+|**addressLine1** | **String** | The reseller's address line 1. | [optional] |
+|**addressLine2** | **String** | The reseller's address line 2. | [optional] |
+|**addressLine3** | **String** | The reseller's address line 3. | [optional] |
+|**addressLine4** | **String** | The reseller's address line 4. | [optional] |
+|**city** | **String** | The reseller's city. | [optional] |
+|**state** | **String** | The reseller's state. | [optional] |
+|**postalCode** | **String** | The reseller's zip or postal code. | [optional] |
+|**countryCode** | **String** | The reseller's two-character ISO country code. | [optional] |
+|**phoneNumber** | **String** | The reseller's phone number. | [optional] |
+|**email** | **String** | The reseller's Email Address. | [optional] |
+
+
+
diff --git a/docs/QuoteToOrderDetailsDTOShipToInfo.md b/docs/AsyncOrderCreateDTOShipToInfo.md
similarity index 76%
rename from docs/QuoteToOrderDetailsDTOShipToInfo.md
rename to docs/AsyncOrderCreateDTOShipToInfo.md
index 58e7137f..c6a584c4 100644
--- a/docs/QuoteToOrderDetailsDTOShipToInfo.md
+++ b/docs/AsyncOrderCreateDTOShipToInfo.md
@@ -1,6 +1,6 @@
-# QuoteToOrderDetailsDTOShipToInfo
+# AsyncOrderCreateDTOShipToInfo
The shipping information provided by the reseller for order delivery.
@@ -9,16 +9,21 @@ The shipping information provided by the reseller for order delivery.
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**addressId** | **String** | The company contact provided by the reseller. | [optional] |
-|**companyName** | **String** | The name of the company the order will be shipped to. | [optional] |
|**contact** | **String** | The contact name for the order will be shipped to. | [optional] |
+|**companyName** | **String** | The name of the company the order will be shipped to. | [optional] |
|**addressLine1** | **String** | The address line 1 the order will be shipped to. | [optional] |
|**addressLine2** | **String** | The address line 2 the order will be shipped to. | [optional] |
|**addressLine3** | **String** | The address line 3 the order will be shipped to. | [optional] |
+|**addressLine4** | **String** | The address line 4 the order will be shipped to. | [optional] |
+|**name1** | **String** | Need description | [optional] |
+|**name2** | **String** | Need description | [optional] |
|**city** | **String** | The city the order will be shipped to. | [optional] |
|**state** | **String** | The state the order will be shipped to. | [optional] |
|**postalCode** | **String** | The zip or postal code the order will be shipped to. | [optional] |
|**countryCode** | **String** | The two-character ISO country code the order will be shipped to. | [optional] |
|**email** | **String** | The company contact email address. | [optional] |
+|**shippingNotes** | **String** | Shipping Notes | [optional] |
+|**phoneNumber** | **String** | Phone number for shipping | [optional] |
diff --git a/docs/AsyncOrderCreateDTOShipmentDetails.md b/docs/AsyncOrderCreateDTOShipmentDetails.md
new file mode 100644
index 00000000..d7dd3167
--- /dev/null
+++ b/docs/AsyncOrderCreateDTOShipmentDetails.md
@@ -0,0 +1,19 @@
+
+
+# AsyncOrderCreateDTOShipmentDetails
+
+Shipping details for the order provided by the customer.
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**carrierCode** | **String** | The code for the shipping carrier for the line item. | [optional] |
+|**requestedDeliveryDate** | **String** | The reseller-requested delivery date in UTC format. Delivery date is not guaranteed. | [optional] |
+|**shipComplete** | **String** | Specifies whether the shipment will be shipped only when all products are fulfilled. The value of this field along with acceptBackOrder field decides the value of backorderflag. If this field is set, acceptBackOrder field is ignored. Possible values for this field are true, C, P, E. | [optional] |
+|**shippingInstructions** | **String** | Any special shipping instructions for the order. | [optional] |
+|**freightAccountNumber** | **String** | The reseller 's shipping account number with carrier. Used to bill the shipping carrier directly from the reseller's account with the carrier. | [optional] |
+|**signatureRequired** | **Boolean** | Specifies whether a signature is required for delivery. Default is False. | [optional] |
+
+
+
diff --git a/docs/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.md b/docs/AsyncOrderCreateDTOVmfadditionalAttributesInner.md
similarity index 66%
rename from docs/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.md
rename to docs/AsyncOrderCreateDTOVmfadditionalAttributesInner.md
index 4fdd524d..2c24dda7 100644
--- a/docs/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.md
+++ b/docs/AsyncOrderCreateDTOVmfadditionalAttributesInner.md
@@ -1,6 +1,6 @@
-# QuoteToOrderDetailsDTOVmfadditionalAttributesInner
+# AsyncOrderCreateDTOVmfadditionalAttributesInner
## Properties
@@ -9,7 +9,6 @@
|------------ | ------------- | ------------- | -------------|
|**attributeName** | **String** | The name of the header level field. | [optional] |
|**attributeValue** | **String** | The value of the header level field. | [optional] |
-|**attributeDescription** | **String** | The description of the header level field. | [optional] |
diff --git a/docs/AsyncOrderCreateDTOWarrantyInfoInner.md b/docs/AsyncOrderCreateDTOWarrantyInfoInner.md
new file mode 100644
index 00000000..a19c58af
--- /dev/null
+++ b/docs/AsyncOrderCreateDTOWarrantyInfoInner.md
@@ -0,0 +1,17 @@
+
+
+# AsyncOrderCreateDTOWarrantyInfoInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**hardwareLineLink** | **String** | | [optional] |
+|**warrantyLineLink** | **String** | | [optional] |
+|**directLineLink** | **String** | | [optional] |
+|**serialInfo** | [**List<AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner>**](AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.md) | | [optional] |
+|**vmfAdditionalAttributesLines** | [**List<AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner>**](AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.md) | The object containing the list of fields required at a line level by the vendor. | [optional] |
+
+
+
diff --git a/docs/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.md b/docs/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.md
new file mode 100644
index 00000000..6b348b90
--- /dev/null
+++ b/docs/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.md
@@ -0,0 +1,16 @@
+
+
+# AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**dateOfPurchase** | **String** | | [optional] |
+|**shipDate** | **String** | | [optional] |
+|**primarySerialNumber** | **String** | | [optional] |
+|**secondarySerialNumber** | **String** | | [optional] |
+
+
+
diff --git a/docs/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.md b/docs/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.md
new file mode 100644
index 00000000..c391da70
--- /dev/null
+++ b/docs/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.md
@@ -0,0 +1,14 @@
+
+
+# AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**attributeName** | **String** | The name of the line level field. | [optional] |
+|**attributeValue** | **String** | The value of the line level field. | [optional] |
+
+
+
diff --git a/docs/QuoteToOrderResponse.md b/docs/AsyncOrderCreateResponse.md
similarity index 94%
rename from docs/QuoteToOrderResponse.md
rename to docs/AsyncOrderCreateResponse.md
index 33f9d429..6a00071e 100644
--- a/docs/QuoteToOrderResponse.md
+++ b/docs/AsyncOrderCreateResponse.md
@@ -1,6 +1,6 @@
-# QuoteToOrderResponse
+# AsyncOrderCreateResponse
## Properties
diff --git a/docs/DealsApi.md b/docs/DealsApi.md
index 8fd0349e..e8e16eb1 100644
--- a/docs/DealsApi.md
+++ b/docs/DealsApi.md
@@ -89,7 +89,7 @@ public class Example {
# **getResellersV6Dealssearch**
-> DealsSearchResponse getResellersV6Dealssearch(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId)
+> DealsSearchResponse getResellersV6Dealssearch(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, size, page)
Deals Search
@@ -122,8 +122,10 @@ public class Example {
String endUser = "EnduserCompany"; // String | The end user/customer's name.
String vendor = "Cisco"; // String | The vendor's name.
String dealId = "12345678"; // String | Deal/Special bid number.
+ Integer size = 56; // Integer | The number of records required in the call - max records 100 per page.
+ Integer page = 56; // Integer | The page number reference.
try {
- DealsSearchResponse result = apiInstance.getResellersV6Dealssearch(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId);
+ DealsSearchResponse result = apiInstance.getResellersV6Dealssearch(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, size, page);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DealsApi#getResellersV6Dealssearch");
@@ -147,6 +149,8 @@ public class Example {
| **endUser** | **String**| The end user/customer's name. | [optional] |
| **vendor** | **String**| The vendor's name. | [optional] |
| **dealId** | **String**| Deal/Special bid number. | [optional] |
+| **size** | **Integer**| The number of records required in the call - max records 100 per page. | [optional] |
+| **page** | **Integer**| The page number reference. | [optional] |
### Return type
diff --git a/docs/FreightResponseFreightEstimateResponseDistributionInnerCarrierListInner.md b/docs/FreightResponseFreightEstimateResponseDistributionInnerCarrierListInner.md
index f62a7114..8373dec6 100644
--- a/docs/FreightResponseFreightEstimateResponseDistributionInnerCarrierListInner.md
+++ b/docs/FreightResponseFreightEstimateResponseDistributionInnerCarrierListInner.md
@@ -10,8 +10,8 @@
|**carrierCode** | **String** | The code for the shipping carrier for the line item. | [optional] |
|**shipVia** | **String** | The name of the shipping carrier. | [optional] |
|**carrierMode** | **String** | Mode of the carrier. | [optional] |
-|**estimatedFreightCharge** | **BigDecimal** | Estimated freight charge. | [optional] |
-|**daysInTransit** | **Integer** | Number of transit days. | [optional] |
+|**estimatedFreightCharge** | **String** | Estimated freight charge. | [optional] |
+|**daysInTransit** | **String** | Number of transit days. | [optional] |
diff --git a/docs/InvoiceDetailsv61ResponseSummaryTotals.md b/docs/InvoiceDetailsv61ResponseSummaryTotals.md
index 81888d40..01a9fb0a 100644
--- a/docs/InvoiceDetailsv61ResponseSummaryTotals.md
+++ b/docs/InvoiceDetailsv61ResponseSummaryTotals.md
@@ -11,7 +11,7 @@
|**discountAmount** | **Double** | Discount amount. | [optional] |
|**discountType** | **String** | Type of discount. | [optional] |
|**totalTaxAmount** | **Double** | Total Tax amount. | [optional] |
-|**invoicesAmountDue** | **Double** | Total amount due for the invoice. | [optional] |
+|**invoicedAmountDue** | **Double** | Total amount due for the invoice. | [optional] |
|**freightAmount** | **Double** | Freight amount | [optional] |
diff --git a/docs/InvoiceSearchResponseInvoicesInner.md b/docs/InvoiceSearchResponseInvoicesInner.md
index 1893b832..fee07167 100644
--- a/docs/InvoiceSearchResponseInvoicesInner.md
+++ b/docs/InvoiceSearchResponseInvoicesInner.md
@@ -8,6 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**paymentTermsDueDate** | **String** | Payment Terms Due date. | [optional] |
+|**specialBidNumbers** | **List<String>** | | [optional] |
|**erpOrderNumber** | **String** | Order number | [optional] |
|**invoiceNumber** | **String** | Invoice no. | [optional] |
|**invoiceStatus** | **String** | Invoice Status. | [optional] |
diff --git a/docs/OrderCreateRequestEndUserInfo.md b/docs/OrderCreateRequestEndUserInfo.md
index 12398188..f02c9c2e 100644
--- a/docs/OrderCreateRequestEndUserInfo.md
+++ b/docs/OrderCreateRequestEndUserInfo.md
@@ -21,7 +21,7 @@ The contact information for the end user/customer provided by the reseller. Used
|**state** | **String** | The end user/customer's state. Required for Impulse countries but optional for EMEA countries. | [optional] |
|**postalCode** | **String** | The end user/customer's zip or postal code. Required for Impulse countries. | [optional] |
|**countryCode** | **String** | The end user/customer's two-character ISO country code. | [optional] |
-|**phoneNumber** | **Integer** | The end user/customer's phone number. | [optional] |
+|**phoneNumber** | **String** | The end user/customer's phone number. | [optional] |
|**email** | **String** | The end user/customer's email. | [optional] |
diff --git a/docs/OrderDetailB2BLinesInner.md b/docs/OrderDetailB2BLinesInner.md
index 2fbe55c4..b33ef459 100644
--- a/docs/OrderDetailB2BLinesInner.md
+++ b/docs/OrderDetailB2BLinesInner.md
@@ -38,6 +38,7 @@
|**estimatedDates** | [**List<OrderDetailB2BLinesInnerEstimatedDatesInner>**](OrderDetailB2BLinesInnerEstimatedDatesInner.md) | | [optional] |
|**scheduleLines** | [**List<OrderDetailB2BLinesInnerScheduleLinesInner>**](OrderDetailB2BLinesInnerScheduleLinesInner.md) | | [optional] |
|**multipleShipments** | [**List<OrderDetailB2BLinesInnerMultipleShipmentsInner>**](OrderDetailB2BLinesInnerMultipleShipmentsInner.md) | | [optional] |
+|**defaultCarrierName** | **String** | | [optional] |
diff --git a/docs/OrderDetailB2BLinesInnerEstimatedDatesInnerDelivery.md b/docs/OrderDetailB2BLinesInnerEstimatedDatesInnerDelivery.md
index 2157ceef..56bae08f 100644
--- a/docs/OrderDetailB2BLinesInnerEstimatedDatesInnerDelivery.md
+++ b/docs/OrderDetailB2BLinesInnerEstimatedDatesInnerDelivery.md
@@ -11,7 +11,7 @@
|**deliveryDateRange** | [**OrderDetailB2BLinesInnerEstimatedDatesInnerDeliveryDeliveryDateRange**](OrderDetailB2BLinesInnerEstimatedDatesInnerDeliveryDeliveryDateRange.md) | | [optional] |
|**deliverySource** | **String** | Source of the delivery. | [optional] |
|**deliveryDescription** | **String** | Delivery description. | [optional] |
-|**deliveredDate** | **String** | Delivery date. | [optional] |
+|**deliveryDate** | **String** | Delivery date. | [optional] |
diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md
index b2d0da49..da57c5d6 100644
--- a/docs/OrdersApi.md
+++ b/docs/OrdersApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *https://api.ingrammicro.com:443*
| [**getOrderdetailsV61**](OrdersApi.md#getOrderdetailsV61) | **GET** /resellers/v6.1/orders/{ordernumber} | Get Order Details v6.1 |
| [**getResellersV6Ordersearch**](OrdersApi.md#getResellersV6Ordersearch) | **GET** /resellers/v6/orders/search | Search your Orders |
| [**postCreateorderV6**](OrdersApi.md#postCreateorderV6) | **POST** /resellers/v6/orders | Create your Order |
+| [**postCreateorderV7**](OrdersApi.md#postCreateorderV7) | **POST** /resellers/v7/orders | Create your Order v7 |
| [**putOrdermodify**](OrdersApi.md#putOrdermodify) | **PUT** /resellers/v6/orders/{orderNumber} | Modify your Order |
@@ -367,6 +368,83 @@ public class Example {
| **400** | Bad Request | * IM-CorrelationID - Unique transaction number to identify each transaction across all the systems.
* IM-SenderID - Unique value used to identify the sender of the transaction. Example: MyCompany
|
| **500** | Internal Server Error | * IM-CorrelationID - Unique transaction number to identify each transaction across all the systems.
* IM-SenderID - Unique value used to identify the sender of the transaction. Example: MyCompany
|
+
+# **postCreateorderV7**
+> AsyncOrderCreateResponse postCreateorderV7(imCustomerNumber, imCountryCode, imCorrelationID, asyncOrderCreateDTO, imSenderID)
+
+Create your Order v7
+
+This API will allow customers to perform both standard ordering and quote to order functionality via a single API enabling them to have a single endpoint to cater to all types of orders. This approach will standardize the ordering flow for customers where they will get the response for all orders on to their webhooks. It provides the much-awaited async ordering flow for Reseller API where large orders can also be placed via a single API with guaranteed delivery.
+
+### Example
+```java
+// Import classes:
+import xiresellers.client.ApiClient;
+import xiresellers.client.ApiException;
+import xiresellers.client.Configuration;
+import xiresellers.client.auth.*;
+import xiresellers.client.models.*;
+import xiresellers.client.api.OrdersApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://api.ingrammicro.com:443");
+
+ // Configure OAuth2 access token for authorization: application
+ OAuth application = (OAuth) defaultClient.getAuthentication("application");
+ application.setAccessToken("YOUR ACCESS TOKEN");
+
+ OrdersApi apiInstance = new OrdersApi(defaultClient);
+ String imCustomerNumber = "20-222222"; // String | Your unique Ingram Micro customer number.
+ String imCountryCode = "US"; // String | Two-character ISO country code.
+ String imCorrelationID = "fbac82ba-cf0a-4bcf-fc03-0c5084"; // String | Unique transaction number to identify each transaction accross all the systems.
+ AsyncOrderCreateDTO asyncOrderCreateDTO = new AsyncOrderCreateDTO(); // AsyncOrderCreateDTO |
+ String imSenderID = "MyCompany"; // String | Unique value used to identify the sender of the transaction.
+ try {
+ AsyncOrderCreateResponse result = apiInstance.postCreateorderV7(imCustomerNumber, imCountryCode, imCorrelationID, asyncOrderCreateDTO, imSenderID);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling OrdersApi#postCreateorderV7");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **imCustomerNumber** | **String**| Your unique Ingram Micro customer number. | |
+| **imCountryCode** | **String**| Two-character ISO country code. | |
+| **imCorrelationID** | **String**| Unique transaction number to identify each transaction accross all the systems. | |
+| **asyncOrderCreateDTO** | [**AsyncOrderCreateDTO**](AsyncOrderCreateDTO.md)| | |
+| **imSenderID** | **String**| Unique value used to identify the sender of the transaction. | [optional] |
+
+### Return type
+
+[**AsyncOrderCreateResponse**](AsyncOrderCreateResponse.md)
+
+### Authorization
+
+[application](../README.md#application)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+| **400** | Bad Request | - |
+| **500** | Server Error | - |
+
# **putOrdermodify**
> OrderModifyResponse putOrdermodify(orderNumber, imCustomerNumber, imCountryCode, imCorrelationID, orderModifyRequest, actionCode, regionCode, imSenderID)
diff --git a/docs/PostQuoteToOrderV6400Response.md b/docs/PostCreateorderV7400Response.md
similarity index 67%
rename from docs/PostQuoteToOrderV6400Response.md
rename to docs/PostCreateorderV7400Response.md
index 99f7aad7..b78a9bd7 100644
--- a/docs/PostQuoteToOrderV6400Response.md
+++ b/docs/PostCreateorderV7400Response.md
@@ -1,6 +1,6 @@
-# PostQuoteToOrderV6400Response
+# PostCreateorderV7400Response
## Properties
@@ -10,7 +10,7 @@
|**traceid** | **String** | A unique trace id to identify the issue. | [optional] |
|**type** | **String** | Type of the error message. | [optional] |
|**message** | **String** | A detailed error message. | [optional] |
-|**fields** | [**List<PostQuoteToOrderV6400ResponseFieldsInner>**](PostQuoteToOrderV6400ResponseFieldsInner.md) | | [optional] |
+|**fields** | [**List<PostCreateorderV7400ResponseFieldsInner>**](PostCreateorderV7400ResponseFieldsInner.md) | | [optional] |
diff --git a/docs/PostQuoteToOrderV6400ResponseFieldsInner.md b/docs/PostCreateorderV7400ResponseFieldsInner.md
similarity index 88%
rename from docs/PostQuoteToOrderV6400ResponseFieldsInner.md
rename to docs/PostCreateorderV7400ResponseFieldsInner.md
index 023401c1..645fc4ae 100644
--- a/docs/PostQuoteToOrderV6400ResponseFieldsInner.md
+++ b/docs/PostCreateorderV7400ResponseFieldsInner.md
@@ -1,6 +1,6 @@
-# PostQuoteToOrderV6400ResponseFieldsInner
+# PostCreateorderV7400ResponseFieldsInner
## Properties
diff --git a/docs/GetResellerV6ValidateQuote500Response.md b/docs/PostCreateorderV7500Response.md
similarity index 90%
rename from docs/GetResellerV6ValidateQuote500Response.md
rename to docs/PostCreateorderV7500Response.md
index c22ab9f6..004ef5e7 100644
--- a/docs/GetResellerV6ValidateQuote500Response.md
+++ b/docs/PostCreateorderV7500Response.md
@@ -1,6 +1,6 @@
-# GetResellerV6ValidateQuote500Response
+# PostCreateorderV7500Response
## Properties
diff --git a/docs/QuoteDetailsResponse.md b/docs/QuoteDetailsResponse.md
index 5367c5c5..7e42b1c9 100644
--- a/docs/QuoteDetailsResponse.md
+++ b/docs/QuoteDetailsResponse.md
@@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**quoteName** | **String** | Quote Name given to quote by sales team or system generated. Generally used as a reference to identify the quote. | [optional] |
|**quoteNumber** | **String** | Unique identifier generated by Ingram Micro's 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] |
+|**quoteGuid** | **String** | | [optional] |
|**revision** | **String** | 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] |
|**ingramQuoteDate** | **String** | Date the Quote was initially Created. | [optional] |
|**lastModifiedDate** | **String** | Date the Quote was last updated or modified. | [optional] |
@@ -17,7 +18,9 @@
|**specialBidId** | **String** | 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] |
|**specialBidEffectiveDate** | **String** | If price discount has been applied to the quote - the starting date the discount begins. | [optional] |
|**specialBidExpirationDate** | **String** | If a price discount has been applied to the quote - The date the discount expires and will no longer be applicable. | [optional] |
+|**vendorQuoteNumber** | **String** | | [optional] |
|**status** | **String** | This refers to the primary status of the quote. API responses will return | [optional] |
+|**statusReason** | **String** | | [optional] |
|**closingReason** | **String** | Closing Reason for quote. | [optional] |
|**dateClosed** | **String** | | [optional] |
|**customerNeed** | **String** | Details related to the customer's request for the quote entered by the sales representative or system generated. | [optional] |
@@ -28,14 +31,21 @@
|**quoteType** | **String** | | [optional] |
|**leaseInfo** | **String** | Lease information. | [optional] |
|**leasingInstructions** | **String** | Leasing information | [optional] |
-|**quoteSubType** | **String** | | [optional] |
+|**imWarehouse** | **String** | Warehouse name and Address | [optional] |
+|**imWarehouseGstNumber** | **String** | Warehouse GST Number | [optional] |
+|**paymentTermsName** | **String** | | [optional] |
|**resellerInfo** | [**QuoteDetailsResponseResellerInfo**](QuoteDetailsResponseResellerInfo.md) | | [optional] |
|**endUserInfo** | [**QuoteDetailsResponseEndUserInfo**](QuoteDetailsResponseEndUserInfo.md) | | [optional] |
+|**shippingInfo** | [**QuoteDetailsResponseShippingInfo**](QuoteDetailsResponseShippingInfo.md) | | [optional] |
|**products** | [**List<QuoteDetailsResponseProductsInner>**](QuoteDetailsResponseProductsInner.md) | | [optional] |
|**productsCount** | **Integer** | Total number of products included in the quote | [optional] |
-|**extendedMsrpTotal** | **Integer** | Total extended MSRP for all products included in the quote | [optional] |
+|**extendedMsrpTotal** | **BigDecimal** | Total extended MSRP for all products included in the quote | [optional] |
|**quantityTotal** | **Integer** | Total quantity of all items in the quote. | [optional] |
-|**extendedQuotePriceTotal** | **Integer** | Total amount of quoted price for all products in the quote including both solution products and suggested products. | [optional] |
+|**extraFeesTotal** | **BigDecimal** | | [optional] |
+|**extraFeesTotalDetails** | [**List<QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner>**](QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.md) | | [optional] |
+|**taxTotal** | **BigDecimal** | | [optional] |
+|**extendedQuotePriceTotal** | **BigDecimal** | Total amount of quoted price for all products in the quote including both solution products and suggested products. | [optional] |
+|**freightAmount** | **BigDecimal** | | [optional] |
|**totalQuoteAmount** | **String** | | [optional] |
|**additionalAttributes** | [**List<QuoteDetailsResponseAdditionalAttributesInner>**](QuoteDetailsResponseAdditionalAttributesInner.md) | | [optional] |
diff --git a/docs/QuoteDetailsResponseProductsInner.md b/docs/QuoteDetailsResponseProductsInner.md
index de96d4d1..f120546c 100644
--- a/docs/QuoteDetailsResponseProductsInner.md
+++ b/docs/QuoteDetailsResponseProductsInner.md
@@ -16,16 +16,22 @@
|**ingramPartNumber** | **String** | Ingram Micro SKU (stock keeping unit). An identification, usually alphanumeric, of a particular product that allows it to be tracked for inventory purposes | [optional] |
|**vendorPartNumber** | **String** | Vendor Part Number | [optional] |
|**description** | **String** | Product description. Note - The quote view api returns only the product short description as maintained in Ingram Micro's crm system. For long descriptions, please refer to alternative information sources. | [optional] |
-|**weight** | **Integer** | Weight is provided based on country standard. For countries following Imperial standards - weight is presented as pounds with decimal. In countries following metric standards, weight is provided as kilograms with decimal. | [optional] |
+|**weight** | **BigDecimal** | Weight is provided based on country standard. For countries following Imperial standards - weight is presented as pounds with decimal. In countries following metric standards, weight is provided as kilograms with decimal. | [optional] |
|**weightUom** | **String** | Unit of measure | [optional] |
|**isSuggestionProduct** | **Boolean** | Flag to indicate if a product line item is a suggested product. The suggested product is provided in addition to the requested quoted products and a suggested option. Suggested products are grouped together for subtotal and total calculations. | [optional] |
|**vpnCategory** | **String** | Vendor product category specific to Cisco. HWDW (hardware) or service. | [optional] |
|**quoteProductsSupplierPartAuxiliaryId** | **String** | Vendor product configuration ID specific to Cisco. | [optional] |
|**vendorName** | **String** | Vendor name of the product | [optional] |
|**terms** | **String** | Terms of the quote | [optional] |
+|**planDescription** | **String** | | [optional] |
|**isSubscription** | **Boolean** | | [optional] |
|**resellerMargin** | **String** | | [optional] |
+|**requestedStartDate** | **String** | | [optional] |
+|**startDate** | **String** | | [optional] |
+|**endDate** | **String** | | [optional] |
+|**serialNumber** | **String** | | [optional] |
|**price** | [**QuoteDetailsResponseProductsInnerPrice**](QuoteDetailsResponseProductsInnerPrice.md) | | [optional] |
+|**billDetails** | [**List<QuoteDetailsResponseProductsInnerBillDetailsInner>**](QuoteDetailsResponseProductsInnerBillDetailsInner.md) | | [optional] |
diff --git a/docs/QuoteDetailsResponseProductsInnerBillDetailsInner.md b/docs/QuoteDetailsResponseProductsInnerBillDetailsInner.md
new file mode 100644
index 00000000..1c21a596
--- /dev/null
+++ b/docs/QuoteDetailsResponseProductsInnerBillDetailsInner.md
@@ -0,0 +1,16 @@
+
+
+# QuoteDetailsResponseProductsInnerBillDetailsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**type** | **String** | | [optional] |
+|**unit** | **String** | | [optional] |
+|**frequency** | **Integer** | | [optional] |
+|**unitValue** | **String** | | [optional] |
+
+
+
diff --git a/docs/QuoteDetailsResponseProductsInnerPrice.md b/docs/QuoteDetailsResponseProductsInnerPrice.md
index 92241a3a..558104ca 100644
--- a/docs/QuoteDetailsResponseProductsInnerPrice.md
+++ b/docs/QuoteDetailsResponseProductsInnerPrice.md
@@ -7,16 +7,18 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**quotePrice** | **Integer** | Ingram Micro quoted price specific to the reseller and quote. | [optional] |
-|**msrp** | **Integer** | Manufacturer Suggested Retail Price | [optional] |
-|**extendedMsrp** | **Integer** | Extended MSRP - Manufacturer Suggested Retail Price X Quantity | [optional] |
-|**extendedQuotePrice** | **Integer** | Extended reseller quoted price (cost to reseller) X Quantity | [optional] |
+|**quotePrice** | **BigDecimal** | Ingram Micro quoted price specific to the reseller and quote. | [optional] |
+|**msrp** | **BigDecimal** | Manufacturer Suggested Retail Price | [optional] |
+|**extendedMsrp** | **BigDecimal** | Extended MSRP - Manufacturer Suggested Retail Price X Quantity | [optional] |
+|**extendedQuotePrice** | **BigDecimal** | Extended reseller quoted price (cost to reseller) X Quantity | [optional] |
|**discountOffList** | **String** | Discount off list percentage extended | [optional] |
-|**vendorprice** | **BigDecimal** | | [optional] |
-|**extendedvendorprice** | **BigDecimal** | | [optional] |
-|**totalVisibleReserveQuantity** | **Integer** | | [optional] |
|**type** | **String** | | [optional] |
|**recurringPriceModel** | **String** | | [optional] |
+|**unitOfMeasure** | **String** | | [optional] |
+|**tax** | **BigDecimal** | | [optional] |
+|**extrafees** | **BigDecimal** | | [optional] |
+|**extraFeesDetails** | [**List<QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner>**](QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.md) | | [optional] |
+|**discounts** | [**List<QuoteDetailsResponseProductsInnerPriceDiscountsInner>**](QuoteDetailsResponseProductsInnerPriceDiscountsInner.md) | | [optional] |
diff --git a/docs/QuoteDetailsResponseProductsInnerPriceDiscountsInner.md b/docs/QuoteDetailsResponseProductsInnerPriceDiscountsInner.md
new file mode 100644
index 00000000..4a115e29
--- /dev/null
+++ b/docs/QuoteDetailsResponseProductsInnerPriceDiscountsInner.md
@@ -0,0 +1,23 @@
+
+
+# QuoteDetailsResponseProductsInnerPriceDiscountsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**type** | **String** | | [optional] |
+|**amount** | **BigDecimal** | | [optional] |
+|**expirationDate** | **String** | | [optional] |
+|**description** | **String** | | [optional] |
+|**avaliableQunatity** | **Integer** | | [optional] |
+|**minimumQuantity** | **Integer** | | [optional] |
+|**bidNumber** | **String** | | [optional] |
+|**bidVersion** | **String** | | [optional] |
+|**validFrom** | **String** | | [optional] |
+|**validTo** | **String** | | [optional] |
+|**discountOffList** | **BigDecimal** | | [optional] |
+
+
+
diff --git a/docs/QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.md b/docs/QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.md
new file mode 100644
index 00000000..2b46a296
--- /dev/null
+++ b/docs/QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.md
@@ -0,0 +1,14 @@
+
+
+# QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**extraFeesDescription** | **String** | | [optional] |
+|**extraFeesAmount** | **BigDecimal** | | [optional] |
+
+
+
diff --git a/docs/QuoteDetailsResponseShippingInfo.md b/docs/QuoteDetailsResponseShippingInfo.md
new file mode 100644
index 00000000..8c1610ac
--- /dev/null
+++ b/docs/QuoteDetailsResponseShippingInfo.md
@@ -0,0 +1,22 @@
+
+
+# QuoteDetailsResponseShippingInfo
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**companyName** | **String** | Contact name of shipping info associated with the quote. | [optional] |
+|**addressLine1** | **String** | Address line 1 for shipping info associated with the quote | [optional] |
+|**addressLine2** | **String** | Address line 2 for shipping info associated with the quote. | [optional] |
+|**addressLine3** | **String** | Address line 3 for shipping info associated with the quote. | [optional] |
+|**city** | **String** | City for shipping info associated with the quote | [optional] |
+|**state** | **String** | Two letter state abreviation for shipping info associated with the quote | [optional] |
+|**email** | **String** | Email of shipping info the quote associated with the quote. | [optional] |
+|**phoneNumber** | **String** | Phone number of shipping info associated with the quote. | [optional] |
+|**postalCode** | **String** | Zip code of shipping info associated with the quote. | [optional] |
+|**shpToGstinNumber** | **String** | | [optional] |
+
+
+
diff --git a/docs/QuoteSearchResponse.md b/docs/QuoteSearchResponse.md
index e34b7abb..6dd22e08 100644
--- a/docs/QuoteSearchResponse.md
+++ b/docs/QuoteSearchResponse.md
@@ -11,6 +11,8 @@
|**pageSize** | **Integer** | Number of records (quotes) displayed per page in the quote list. | [optional] |
|**pageNumber** | **Integer** | Page index or page number for the list of quotes being returned. | [optional] |
|**quotes** | [**List<QuoteSearchResponseQuotesInner>**](QuoteSearchResponseQuotesInner.md) | The quote details for the requested criteria. | [optional] |
+|**nextPage** | **String** | | [optional] |
+|**prevPage** | **String** | | [optional] |
diff --git a/docs/QuoteSearchResponseQuotesInner.md b/docs/QuoteSearchResponseQuotesInner.md
index 5bd41787..652193da 100644
--- a/docs/QuoteSearchResponseQuotesInner.md
+++ b/docs/QuoteSearchResponseQuotesInner.md
@@ -11,6 +11,7 @@
|**quoteName** | **String** | Quote Name given to quote by sales team or system generated. Generally used as a reference to identify the quote. | [optional] |
|**quoteNumber** | **String** | 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** | **String** | 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] |
+|**currencyCode** | **String** | The country-specific three digit ISO 4217 currency code for the order. | [optional] |
|**endUserContact** | **String** | End User Name is the end customer name that is associated with a quote in Ingram Micros CRM. | [optional] |
|**specialBidNumber** | **String** | Special Pricing Bid Number, also refers to as Dart Number relates to a unique pricing deal associated with a vendor for the quote. | [optional] |
|**quoteTotal** | **BigDecimal** | Total amount of quoted price for all products in the quote. | [optional] |
diff --git a/docs/QuoteToOrderApi.md b/docs/QuoteToOrderApi.md
deleted file mode 100644
index a8f683ef..00000000
--- a/docs/QuoteToOrderApi.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# QuoteToOrderApi
-
-All URIs are relative to *https://api.ingrammicro.com:443*
-
-| Method | HTTP request | Description |
-|------------- | ------------- | -------------|
-| [**postQuoteToOrderV6**](QuoteToOrderApi.md#postQuoteToOrderV6) | **POST** /resellers/v6/q2o/orders | Quote To Order |
-
-
-
-# **postQuoteToOrderV6**
-> QuoteToOrderResponse postQuoteToOrderV6(imCustomerNumber, imCountryCode, imCorrelationID, quoteToOrderDetailsDTO, imSenderID)
-
-Quote To Order
-
-The “Quote to Order” (QTO) endpoint allows a customer to create an order using the existing quote which is in “Ready to Order” status. A customer can create an order using Configure to order (CTO) quote or a non-configure to order (Non-CTO) quote. Upon successful submission of the order create request, a confirmation message will be returned as an API response. <br > <br >Ingram Micro offers webhooks as a method to send notifications to Resellers once the order creation request is received. All the updates related to Order creation will be pushed as a notification to the customer via a pre-defined callback URL as an HTTP post. <br > <br > **Prerequisite:** Pre-defined callback URL <br > <br > Before creating an order using the quote, it’s recommended to validate the quote using the “Validate Quote” endpoint. Validate Quote endpoint will not only validate the quote but also outline all the mandatory fields required by the vendor at a header level and at the line level which a customer need to pass to the Quote To Order endpoint request. For a detailed understanding of the “Validate Quote” endpoint, review the “Validate Quote” endpoint documentation. <br ><br > **How it works:** <br ><br > - The customer validates the quote with a quote number from Validate Quote endpoint. <br > - The customer copies all the mandatory fields required by the vendor and adds them to the QTO request body. <br > - The customer provides all the values for Vendor mandatory fields along with other required information for QTO to create an order. <br > - After the order creation request receipt acknowledgment from the QTO endpoint, all further order creation updates will be provided via webhook push notification.
-
-### Example
-```java
-// Import classes:
-import xiresellers.client.ApiClient;
-import xiresellers.client.ApiException;
-import xiresellers.client.Configuration;
-import xiresellers.client.auth.*;
-import xiresellers.client.models.*;
-import xiresellers.client.api.QuoteToOrderApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://api.ingrammicro.com:443");
-
- // Configure OAuth2 access token for authorization: application
- OAuth application = (OAuth) defaultClient.getAuthentication("application");
- application.setAccessToken("YOUR ACCESS TOKEN");
-
- QuoteToOrderApi apiInstance = new QuoteToOrderApi(defaultClient);
- String imCustomerNumber = "20-222222"; // String | Your unique Ingram Micro customer number.
- String imCountryCode = "US"; // String | Two-character ISO country code.
- String imCorrelationID = "fbac82ba-cf0a-4bcf-fc03-0c5084"; // String | Unique transaction number to identify each transaction accross all the systems.
- QuoteToOrderDetailsDTO quoteToOrderDetailsDTO = new QuoteToOrderDetailsDTO(); // QuoteToOrderDetailsDTO |
- String imSenderID = "MyCompany"; // String | Unique value used to identify the sender of the transaction.
- try {
- QuoteToOrderResponse result = apiInstance.postQuoteToOrderV6(imCustomerNumber, imCountryCode, imCorrelationID, quoteToOrderDetailsDTO, imSenderID);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling QuoteToOrderApi#postQuoteToOrderV6");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-| Name | Type | Description | Notes |
-|------------- | ------------- | ------------- | -------------|
-| **imCustomerNumber** | **String**| Your unique Ingram Micro customer number. | |
-| **imCountryCode** | **String**| Two-character ISO country code. | |
-| **imCorrelationID** | **String**| Unique transaction number to identify each transaction accross all the systems. | |
-| **quoteToOrderDetailsDTO** | [**QuoteToOrderDetailsDTO**](QuoteToOrderDetailsDTO.md)| | |
-| **imSenderID** | **String**| Unique value used to identify the sender of the transaction. | [optional] |
-
-### Return type
-
-[**QuoteToOrderResponse**](QuoteToOrderResponse.md)
-
-### Authorization
-
-[application](../README.md#application)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | Success | - |
-| **400** | Bad Request | - |
-| **500** | Server Error | - |
-
diff --git a/docs/QuoteToOrderDetailsDTO.md b/docs/QuoteToOrderDetailsDTO.md
deleted file mode 100644
index fec4e0a9..00000000
--- a/docs/QuoteToOrderDetailsDTO.md
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-# QuoteToOrderDetailsDTO
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**quoteNumber** | **String** | A unique identifier generated by Ingram Micro's CRM specific to each quote. | [optional] |
-|**customerOrderNumber** | **String** | The reseller's order number for reference in their system. | [optional] |
-|**enduserOrderNumber** | **String** | The end customer's order number for reference in their system. | [optional] |
-|**billToAddressId** | **String** | Suffix used to identify billing address. Created during onboarding. Resellers are provided with one or more address IDs depending on how many bill to addresses they need for various flooring companies they are using for credit. | [optional] |
-|**endUserInfo** | [**QuoteToOrderDetailsDTOEndUserInfo**](QuoteToOrderDetailsDTOEndUserInfo.md) | | [optional] |
-|**shipToInfo** | [**QuoteToOrderDetailsDTOShipToInfo**](QuoteToOrderDetailsDTOShipToInfo.md) | | [optional] |
-|**additionalAttributes** | [**List<QuoteToOrderDetailsDTOAdditionalAttributesInner>**](QuoteToOrderDetailsDTOAdditionalAttributesInner.md) | Additional order create attributes. | [optional] |
-|**vmfadditionalAttributes** | [**List<QuoteToOrderDetailsDTOVmfadditionalAttributesInner>**](QuoteToOrderDetailsDTOVmfadditionalAttributesInner.md) | The object containing the list of fields required at a header level by the vendor. | [optional] |
-|**lines** | [**List<QuoteToOrderDetailsDTOLinesInner>**](QuoteToOrderDetailsDTOLinesInner.md) | The object containing the lines that require vendor mandatory fields. | [optional] |
-
-
-
diff --git a/docs/QuoteToOrderDetailsDTOLinesInner.md b/docs/QuoteToOrderDetailsDTOLinesInner.md
deleted file mode 100644
index d5623092..00000000
--- a/docs/QuoteToOrderDetailsDTOLinesInner.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-# QuoteToOrderDetailsDTOLinesInner
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-|**customerLineNumber** | **String** | The reseller's line item number for reference in their system. | [optional] |
-|**ingramPartNumber** | **String** | Unique IngramMicro part number. | [optional] |
-|**quantity** | **String** | The quantity of the line item. | [optional] |
-|**vmfAdditionalAttributesLines** | [**List<QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner>**](QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.md) | The object containing the list of fields required at a line level by the vendor. | [optional] |
-
-
-
diff --git a/docs/ValidateQuoteResponseLinesInner.md b/docs/ValidateQuoteResponseLinesInner.md
index 857e5553..bc379c2f 100644
--- a/docs/ValidateQuoteResponseLinesInner.md
+++ b/docs/ValidateQuoteResponseLinesInner.md
@@ -9,8 +9,8 @@
|------------ | ------------- | ------------- | -------------|
|**customerLineNumber** | **String** | The reseller's line item number for reference in their system. | [optional] |
|**ingramPartNumber** | **String** | Unique Ingram Micro part number. | [optional] |
-|**quantity** | **String** | The quantity of the line item. | [optional] |
-|**vmfAdditionalAttributesLines** | [**List<QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner>**](QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.md) | The object containing the list of fields required at a line level by the vendor. | [optional] |
+|**quantity** | **Integer** | The quantity of the line item. | [optional] |
+|**vmfAdditionalAttributesLines** | [**List<ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner>**](ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.md) | The object containing the list of fields required at a line level by the vendor. | [optional] |
diff --git a/docs/QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.md b/docs/ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.md
similarity index 85%
rename from docs/QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.md
rename to docs/ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.md
index 9cd88422..d9c9ca4b 100644
--- a/docs/QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.md
+++ b/docs/ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.md
@@ -1,6 +1,6 @@
-# QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner
+# ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner
## Properties
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 7454180f..e6441136 100644
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index ffed3a25..b82aa23a 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
+networkTimeout=10000
+validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index 005bcde0..9d0ce634 100644
--- a/gradlew
+++ b/gradlew
@@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
-# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -69,37 +69,35 @@ app_path=$0
# Need this for daisy-chained symlinks.
while
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
- [ -h "$app_path" ]
+APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+[ -h "$app_path" ]
do
- ls=$( ls -ld "$app_path" )
- link=${ls#*' -> '}
- case $link in #(
- /*) app_path=$link ;; #(
- *) app_path=$APP_HOME$link ;;
- esac
+ls=$( ls -ld "$app_path" )
+link=${ls#*' -> '}
+case $link in #(
+/*) app_path=$link ;; #(
+*) app_path=$APP_HOME$link ;;
+esac
done
-APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
-
-APP_NAME="Gradle"
+# This is normally unused
+# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"'
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
- echo "$*"
+echo "$*"
} >&2
die () {
- echo
- echo "$*"
- echo
- exit 1
+echo
+echo "$*"
+echo
+exit 1
} >&2
# OS specific support (must be 'true' or 'false').
@@ -108,10 +106,10 @@ msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
- CYGWIN* ) cygwin=true ;; #(
- Darwin* ) darwin=true ;; #(
- MSYS* | MINGW* ) msys=true ;; #(
- NONSTOP* ) nonstop=true ;;
+CYGWIN* ) cygwin=true ;; #(
+Darwin* ) darwin=true ;; #(
+MSYS* | MINGW* ) msys=true ;; #(
+NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
@@ -119,39 +117,46 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD=$JAVA_HOME/jre/sh/java
- else
- JAVACMD=$JAVA_HOME/bin/java
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+# IBM's JDK on AIX uses strange locations for the executables
+JAVACMD=$JAVA_HOME/jre/sh/java
+else
+JAVACMD=$JAVA_HOME/bin/java
+fi
+if [ ! -x "$JAVACMD" ] ; then
+die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
- fi
+fi
else
- JAVACMD=java
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+JAVACMD=java
+if ! command -v java >/dev/null 2>&1
+then
+die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
+fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
- case $MAX_FD in #(
- max*)
- MAX_FD=$( ulimit -H -n ) ||
- warn "Could not query maximum file descriptor limit"
- esac
- case $MAX_FD in #(
- '' | soft) :;; #(
- *)
- ulimit -n "$MAX_FD" ||
- warn "Could not set maximum file descriptor limit to $MAX_FD"
- esac
+case $MAX_FD in #(
+max*)
+# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+# shellcheck disable=SC2039,SC3045
+MAX_FD=$( ulimit -H -n ) ||
+warn "Could not query maximum file descriptor limit"
+esac
+case $MAX_FD in #(
+'' | soft) :;; #(
+*)
+# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+# shellcheck disable=SC2039,SC3045
+ulimit -n "$MAX_FD" ||
+warn "Could not set maximum file descriptor limit to $MAX_FD"
+esac
fi
# Collect all arguments for the java command, stacking in reverse order:
@@ -164,46 +169,56 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
-
- JAVACMD=$( cygpath --unix "$JAVACMD" )
-
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- for arg do
- if
- case $arg in #(
- -*) false ;; # don't mess with options #(
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
- [ -e "$t" ] ;; #(
- *) false ;;
- esac
- then
- arg=$( cygpath --path --ignore --mixed "$arg" )
- fi
- # Roll the args list around exactly as many times as the number of
- # args, so each arg winds up back in the position where it started, but
- # possibly modified.
- #
- # NB: a `for` loop captures its iteration list before it begins, so
- # changing the positional parameters here affects neither the number of
- # iterations, nor the values presented in `arg`.
- shift # remove old arg
- set -- "$@" "$arg" # push replacement arg
- done
+APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+# Now convert the arguments - kludge to limit ourselves to /bin/sh
+for arg do
+if
+case $arg in #(
+-*) false ;; # don't mess with options #(
+/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+[ -e "$t" ] ;; #(
+*) false ;;
+esac
+then
+arg=$( cygpath --path --ignore --mixed "$arg" )
+fi
+# Roll the args list around exactly as many times as the number of
+# args, so each arg winds up back in the position where it started, but
+# possibly modified.
+#
+# NB: a `for` loop captures its iteration list before it begins, so
+# changing the positional parameters here affects neither the number of
+# iterations, nor the values presented in `arg`.
+shift # remove old arg
+set -- "$@" "$arg" # push replacement arg
+done
fi
-# Collect all arguments for the java command;
-# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
-# shell script including quotes and variable substitutions, so put them in
-# double quotes to make sure that they get re-expanded; and
-# * put everything else in single quotes, so that it's not re-expanded.
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
set -- \
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
- -classpath "$CLASSPATH" \
- org.gradle.wrapper.GradleWrapperMain \
- "$@"
+"-Dorg.gradle.appname=$APP_BASE_NAME" \
+-classpath "$CLASSPATH" \
+org.gradle.wrapper.GradleWrapperMain \
+"$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+die "xargs is not available"
+fi
# Use "xargs" to parse quoted args.
#
@@ -225,10 +240,10 @@ set -- \
#
eval "set -- $(
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
- xargs -n1 |
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
- tr '\n' ' '
- )" '"$@"'
+printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+xargs -n1 |
+sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+tr '\n' ' '
+)" '"$@"'
exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
index 6a68175e..25da30db 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -14,7 +14,7 @@
@rem limitations under the License.
@rem
-@if "%DEBUG%" == "" @echo off
+@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@@ -25,7 +25,8 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@@ -33,20 +34,20 @@ set APP_HOME=%DIRNAME%
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto execute
+if %ERRORLEVEL% equ 0 goto execute
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
goto fail
@@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
goto fail
@@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
:end
@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
+if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
diff --git a/pom.xml b/pom.xml
index 62876d61..a6d29533 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
xi.sdk.resellers
jar
xi.sdk.resellers
- 1.0.0
+ 1.1.0
https://github.com/ingrammicro-xvantage/xi-sdk-resellers-java
diff --git a/src/main/java/xiresellers/client/ApiCallback.java b/src/main/java/xiresellers/client/ApiCallback.java
index 2a27fc34..fcaf0616 100644
--- a/src/main/java/xiresellers/client/ApiCallback.java
+++ b/src/main/java/xiresellers/client/ApiCallback.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/ApiClient.java b/src/main/java/xiresellers/client/ApiClient.java
index 9fca53e5..ad13627d 100644
--- a/src/main/java/xiresellers/client/ApiClient.java
+++ b/src/main/java/xiresellers/client/ApiClient.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -544,6 +544,19 @@ public void setAWS4Configuration(String accessKey, String secretKey, String regi
throw new RuntimeException("No AWS4 authentication configured!");
}
+ /**
+ * Helper method to set credentials for AWSV4 Signature
+ *
+ * @param accessKey Access Key
+ * @param secretKey Secret Key
+ * @param sessionToken Session Token
+ * @param region Region
+ * @param service Service to access to
+ */
+ public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) {
+ throw new RuntimeException("No AWS4 authentication configured!");
+ }
+
/**
* Set the User-Agent header's value (by adding to the default header map).
*
diff --git a/src/main/java/xiresellers/client/ApiException.java b/src/main/java/xiresellers/client/ApiException.java
index 0f5df301..fe7705a6 100644
--- a/src/main/java/xiresellers/client/ApiException.java
+++ b/src/main/java/xiresellers/client/ApiException.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -21,7 +21,7 @@
* ApiException class.
*/
@SuppressWarnings("serial")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;
diff --git a/src/main/java/xiresellers/client/ApiResponse.java b/src/main/java/xiresellers/client/ApiResponse.java
index 5c973b30..1c4c7410 100644
--- a/src/main/java/xiresellers/client/ApiResponse.java
+++ b/src/main/java/xiresellers/client/ApiResponse.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/Configuration.java b/src/main/java/xiresellers/client/Configuration.java
index 6b49e82b..20c998b5 100644
--- a/src/main/java/xiresellers/client/Configuration.java
+++ b/src/main/java/xiresellers/client/Configuration.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -13,7 +13,7 @@
package xiresellers.client;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class Configuration {
public static final String VERSION = "1.0.0";
diff --git a/src/main/java/xiresellers/client/GzipRequestInterceptor.java b/src/main/java/xiresellers/client/GzipRequestInterceptor.java
index e86f99bd..999f08b3 100644
--- a/src/main/java/xiresellers/client/GzipRequestInterceptor.java
+++ b/src/main/java/xiresellers/client/GzipRequestInterceptor.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/JSON.java b/src/main/java/xiresellers/client/JSON.java
index 5d3b7cee..f65539da 100644
--- a/src/main/java/xiresellers/client/JSON.java
+++ b/src/main/java/xiresellers/client/JSON.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -93,7 +93,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
return clazz;
}
- {
+ static {
GsonBuilder gsonBuilder = createGson();
gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter);
gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter);
@@ -101,6 +101,19 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter);
gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter);
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AccesstokenResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTO.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOAdditionalAttributesInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOEndUserInfo.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOLinesInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOLinesInnerEndUserInfoInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOResellerInfo.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOShipToInfo.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOShipmentDetails.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOVmfadditionalAttributesInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOWarrantyInfoInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AsyncOrderCreateResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AvailabilityAsyncNotificationRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AvailabilityAsyncNotificationRequestResourceInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.AvailabilityAsyncNotificationRequestResourceInnerLinksInner.CustomTypeAdapterFactory());
@@ -128,7 +141,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.GetAccesstoken500ResponseFaultDetail.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.GetResellerV6ValidateQuote400Response.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.GetResellerV6ValidateQuote400ResponseFieldsInner.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.GetResellerV6ValidateQuote500Response.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.InvoiceDetailsv61Response.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.InvoiceDetailsv61ResponseBillToInfo.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.InvoiceDetailsv61ResponseFxRateInfo.CustomTypeAdapterFactory());
@@ -212,8 +224,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.OrderStatusAsyncNotificationRequestResourceInnerLinesInnerShipmentDetailsInnerPackageDetailsInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.OrderStatusAsyncNotificationRequestResourceInnerLinksInner.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PostQuoteToOrderV6400Response.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PostQuoteToOrderV6400ResponseFieldsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PostCreateorderV7400Response.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PostCreateorderV7400ResponseFieldsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PostCreateorderV7500Response.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PostRenewalssearch400Response.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PriceAndAvailabilityRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.PriceAndAvailabilityRequestAdditionalAttributesInner.CustomTypeAdapterFactory());
@@ -243,19 +256,15 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseAdditionalAttributesInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseEndUserInfo.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseProductsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseProductsInnerBillDetailsInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseProductsInnerPrice.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseProductsInnerPriceDiscountsInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseProductsInnerPriceExtraFeesDetailsInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseResellerInfo.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteDetailsResponseShippingInfo.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteSearchResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteSearchResponseQuotesInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteSearchResponseQuotesInnerLinks.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderDetailsDTO.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderDetailsDTOAdditionalAttributesInner.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderDetailsDTOEndUserInfo.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderDetailsDTOLinesInner.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderDetailsDTOLinesInnerVmfAdditionalAttributesLinesInner.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderDetailsDTOShipToInfo.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderDetailsDTOVmfadditionalAttributesInner.CustomTypeAdapterFactory());
- gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.QuoteToOrderResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.RenewalsDetailsResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.RenewalsDetailsResponseAdditionalAttributesInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.RenewalsDetailsResponseEndUserInfo.CustomTypeAdapterFactory());
@@ -284,6 +293,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.ReturnsSearchResponseReturnsClaimsInnerLinksInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.ValidateQuoteResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.ValidateQuoteResponseLinesInner.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.ValidateQuoteResponseLinesInnerVmfAdditionalAttributesLinesInner.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new xiresellers.client.model.ValidateQuoteResponseVmfAdditionalAttributesInner.CustomTypeAdapterFactory());
gson = gsonBuilder.create();
}
diff --git a/src/main/java/xiresellers/client/Pair.java b/src/main/java/xiresellers/client/Pair.java
index 9e08afa2..d3f00dde 100644
--- a/src/main/java/xiresellers/client/Pair.java
+++ b/src/main/java/xiresellers/client/Pair.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -13,7 +13,7 @@
package xiresellers.client;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class Pair {
private String name = "";
private String value = "";
diff --git a/src/main/java/xiresellers/client/ProgressRequestBody.java b/src/main/java/xiresellers/client/ProgressRequestBody.java
index eebd806d..1a566f1e 100644
--- a/src/main/java/xiresellers/client/ProgressRequestBody.java
+++ b/src/main/java/xiresellers/client/ProgressRequestBody.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/ProgressResponseBody.java b/src/main/java/xiresellers/client/ProgressResponseBody.java
index 1d8fab3b..b4f0c770 100644
--- a/src/main/java/xiresellers/client/ProgressResponseBody.java
+++ b/src/main/java/xiresellers/client/ProgressResponseBody.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/ServerConfiguration.java b/src/main/java/xiresellers/client/ServerConfiguration.java
index 5f1aed47..5763cb0c 100644
--- a/src/main/java/xiresellers/client/ServerConfiguration.java
+++ b/src/main/java/xiresellers/client/ServerConfiguration.java
@@ -5,6 +5,7 @@
/**
* Representing a Server configuration.
*/
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ServerConfiguration {
public String URL;
public String description;
diff --git a/src/main/java/xiresellers/client/ServerVariable.java b/src/main/java/xiresellers/client/ServerVariable.java
index f231caed..fa216e6b 100644
--- a/src/main/java/xiresellers/client/ServerVariable.java
+++ b/src/main/java/xiresellers/client/ServerVariable.java
@@ -5,6 +5,7 @@
/**
* Representing a Server Variable for server URL template substitution.
*/
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ServerVariable {
public String description;
public String defaultValue;
diff --git a/src/main/java/xiresellers/client/StringUtil.java b/src/main/java/xiresellers/client/StringUtil.java
index 2c45ffef..5930f479 100644
--- a/src/main/java/xiresellers/client/StringUtil.java
+++ b/src/main/java/xiresellers/client/StringUtil.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
diff --git a/src/main/java/xiresellers/client/api/AccesstokenApi.java b/src/main/java/xiresellers/client/api/AccesstokenApi.java
index 61da7968..ce1f6f50 100644
--- a/src/main/java/xiresellers/client/api/AccesstokenApi.java
+++ b/src/main/java/xiresellers/client/api/AccesstokenApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/api/DealsApi.java b/src/main/java/xiresellers/client/api/DealsApi.java
index 40ac41dd..f733a3b6 100644
--- a/src/main/java/xiresellers/client/api/DealsApi.java
+++ b/src/main/java/xiresellers/client/api/DealsApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -29,7 +29,7 @@
import xiresellers.client.model.DealsDetailsResponse;
import xiresellers.client.model.DealsSearchResponse;
-import xiresellers.client.model.GetResellerV6ValidateQuote500Response;
+import xiresellers.client.model.PostCreateorderV7500Response;
import xiresellers.client.model.PostRenewalssearch400Response;
import java.lang.reflect.Type;
@@ -280,6 +280,8 @@ public okhttp3.Call getResellersV6DealsdetailsAsync(String imCustomerNumber, Str
* @param endUser The end user/customer's name. (optional)
* @param vendor The vendor's name. (optional)
* @param dealId Deal/Special bid number. (optional)
+ * @param size The number of records required in the call - max records 100 per page. (optional)
+ * @param page The page number reference. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -291,7 +293,7 @@ public okhttp3.Call getResellersV6DealsdetailsAsync(String imCustomerNumber, Str
500 | Internal Server Error | - |
*/
- public okhttp3.Call getResellersV6DealssearchCall(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getResellersV6DealssearchCall(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, Integer size, Integer page, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -328,6 +330,14 @@ public okhttp3.Call getResellersV6DealssearchCall(String imCustomerNumber, Strin
localVarQueryParams.addAll(localVarApiClient.parameterToPair("dealId", dealId));
}
+ if (size != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("Size", size));
+ }
+
+ if (page != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("Page", page));
+ }
+
if (imCustomerNumber != null) {
localVarHeaderParams.put("IM-CustomerNumber", localVarApiClient.parameterToString(imCustomerNumber));
}
@@ -364,7 +374,7 @@ public okhttp3.Call getResellersV6DealssearchCall(String imCustomerNumber, Strin
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getResellersV6DealssearchValidateBeforeCall(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call getResellersV6DealssearchValidateBeforeCall(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, Integer size, Integer page, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'imCustomerNumber' is set
if (imCustomerNumber == null) {
throw new ApiException("Missing the required parameter 'imCustomerNumber' when calling getResellersV6Dealssearch(Async)");
@@ -380,7 +390,7 @@ private okhttp3.Call getResellersV6DealssearchValidateBeforeCall(String imCustom
throw new ApiException("Missing the required parameter 'imCorrelationID' when calling getResellersV6Dealssearch(Async)");
}
- return getResellersV6DealssearchCall(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, _callback);
+ return getResellersV6DealssearchCall(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, size, page, _callback);
}
@@ -394,6 +404,8 @@ private okhttp3.Call getResellersV6DealssearchValidateBeforeCall(String imCustom
* @param endUser The end user/customer's name. (optional)
* @param vendor The vendor's name. (optional)
* @param dealId Deal/Special bid number. (optional)
+ * @param size The number of records required in the call - max records 100 per page. (optional)
+ * @param page The page number reference. (optional)
* @return DealsSearchResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -404,8 +416,8 @@ private okhttp3.Call getResellersV6DealssearchValidateBeforeCall(String imCustom
500 | Internal Server Error | - |
*/
- public DealsSearchResponse getResellersV6Dealssearch(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId) throws ApiException {
- ApiResponse localVarResp = getResellersV6DealssearchWithHttpInfo(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId);
+ public DealsSearchResponse getResellersV6Dealssearch(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, Integer size, Integer page) throws ApiException {
+ ApiResponse localVarResp = getResellersV6DealssearchWithHttpInfo(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, size, page);
return localVarResp.getData();
}
@@ -419,6 +431,8 @@ public DealsSearchResponse getResellersV6Dealssearch(String imCustomerNumber, St
* @param endUser The end user/customer's name. (optional)
* @param vendor The vendor's name. (optional)
* @param dealId Deal/Special bid number. (optional)
+ * @param size The number of records required in the call - max records 100 per page. (optional)
+ * @param page The page number reference. (optional)
* @return ApiResponse<DealsSearchResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -429,8 +443,8 @@ public DealsSearchResponse getResellersV6Dealssearch(String imCustomerNumber, St
500 | Internal Server Error | - |
*/
- public ApiResponse getResellersV6DealssearchWithHttpInfo(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId) throws ApiException {
- okhttp3.Call localVarCall = getResellersV6DealssearchValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, null);
+ public ApiResponse getResellersV6DealssearchWithHttpInfo(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, Integer size, Integer page) throws ApiException {
+ okhttp3.Call localVarCall = getResellersV6DealssearchValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, size, page, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -445,6 +459,8 @@ public ApiResponse getResellersV6DealssearchWithHttpInfo(St
* @param endUser The end user/customer's name. (optional)
* @param vendor The vendor's name. (optional)
* @param dealId Deal/Special bid number. (optional)
+ * @param size The number of records required in the call - max records 100 per page. (optional)
+ * @param page The page number reference. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -456,9 +472,9 @@ public ApiResponse getResellersV6DealssearchWithHttpInfo(St
500 | Internal Server Error | - |
*/
- public okhttp3.Call getResellersV6DealssearchAsync(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getResellersV6DealssearchAsync(String imCustomerNumber, String imCountryCode, String imCorrelationID, String imSenderID, String endUser, String vendor, String dealId, Integer size, Integer page, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = getResellersV6DealssearchValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, _callback);
+ okhttp3.Call localVarCall = getResellersV6DealssearchValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, endUser, vendor, dealId, size, page, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
diff --git a/src/main/java/xiresellers/client/api/FreightEstimateApi.java b/src/main/java/xiresellers/client/api/FreightEstimateApi.java
index b386dcca..b68861f8 100644
--- a/src/main/java/xiresellers/client/api/FreightEstimateApi.java
+++ b/src/main/java/xiresellers/client/api/FreightEstimateApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -29,7 +29,7 @@
import xiresellers.client.model.FreightRequest;
import xiresellers.client.model.FreightResponse;
-import xiresellers.client.model.GetResellerV6ValidateQuote500Response;
+import xiresellers.client.model.PostCreateorderV7500Response;
import xiresellers.client.model.PostRenewalssearch400Response;
import java.lang.reflect.Type;
diff --git a/src/main/java/xiresellers/client/api/InvoicesApi.java b/src/main/java/xiresellers/client/api/InvoicesApi.java
index ab22af29..efa63541 100644
--- a/src/main/java/xiresellers/client/api/InvoicesApi.java
+++ b/src/main/java/xiresellers/client/api/InvoicesApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/api/OrderStatusApi.java b/src/main/java/xiresellers/client/api/OrderStatusApi.java
index f1685555..af8556d5 100644
--- a/src/main/java/xiresellers/client/api/OrderStatusApi.java
+++ b/src/main/java/xiresellers/client/api/OrderStatusApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/api/OrdersApi.java b/src/main/java/xiresellers/client/api/OrdersApi.java
index 4406831b..0e2463c7 100644
--- a/src/main/java/xiresellers/client/api/OrdersApi.java
+++ b/src/main/java/xiresellers/client/api/OrdersApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -27,6 +27,8 @@
import java.io.IOException;
+import xiresellers.client.model.AsyncOrderCreateDTO;
+import xiresellers.client.model.AsyncOrderCreateResponse;
import xiresellers.client.model.ErrorResponse;
import xiresellers.client.model.ErrorResponseDTO;
import java.time.LocalDate;
@@ -36,6 +38,8 @@
import xiresellers.client.model.OrderModifyRequest;
import xiresellers.client.model.OrderModifyResponse;
import xiresellers.client.model.OrderSearchResponse;
+import xiresellers.client.model.PostCreateorderV7400Response;
+import xiresellers.client.model.PostCreateorderV7500Response;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -982,6 +986,184 @@ public okhttp3.Call postCreateorderV6Async(String imCustomerNumber, String imCou
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
+ /**
+ * Build call for postCreateorderV7
+ * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
+ * @param imCountryCode Two-character ISO country code. (required)
+ * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
+ * @param asyncOrderCreateDTO (required)
+ * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+ 400 | Bad Request | - |
+ 500 | Server Error | - |
+
+ */
+ public okhttp3.Call postCreateorderV7Call(String imCustomerNumber, String imCountryCode, String imCorrelationID, AsyncOrderCreateDTO asyncOrderCreateDTO, String imSenderID, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] { };
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null){
+ basePath = localCustomBaseUrl;
+ } else if ( localBasePaths.length > 0 ) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = asyncOrderCreateDTO;
+
+ // create path and map variables
+ String localVarPath = "/resellers/v7/orders";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (imCustomerNumber != null) {
+ localVarHeaderParams.put("IM-CustomerNumber", localVarApiClient.parameterToString(imCustomerNumber));
+ }
+
+ if (imCountryCode != null) {
+ localVarHeaderParams.put("IM-CountryCode", localVarApiClient.parameterToString(imCountryCode));
+ }
+
+ if (imSenderID != null) {
+ localVarHeaderParams.put("IM-SenderID", localVarApiClient.parameterToString(imSenderID));
+ }
+
+ if (imCorrelationID != null) {
+ localVarHeaderParams.put("IM-CorrelationID", localVarApiClient.parameterToString(imCorrelationID));
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] { "application" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call postCreateorderV7ValidateBeforeCall(String imCustomerNumber, String imCountryCode, String imCorrelationID, AsyncOrderCreateDTO asyncOrderCreateDTO, String imSenderID, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'imCustomerNumber' is set
+ if (imCustomerNumber == null) {
+ throw new ApiException("Missing the required parameter 'imCustomerNumber' when calling postCreateorderV7(Async)");
+ }
+
+ // verify the required parameter 'imCountryCode' is set
+ if (imCountryCode == null) {
+ throw new ApiException("Missing the required parameter 'imCountryCode' when calling postCreateorderV7(Async)");
+ }
+
+ // verify the required parameter 'imCorrelationID' is set
+ if (imCorrelationID == null) {
+ throw new ApiException("Missing the required parameter 'imCorrelationID' when calling postCreateorderV7(Async)");
+ }
+
+ // verify the required parameter 'asyncOrderCreateDTO' is set
+ if (asyncOrderCreateDTO == null) {
+ throw new ApiException("Missing the required parameter 'asyncOrderCreateDTO' when calling postCreateorderV7(Async)");
+ }
+
+ return postCreateorderV7Call(imCustomerNumber, imCountryCode, imCorrelationID, asyncOrderCreateDTO, imSenderID, _callback);
+
+ }
+
+ /**
+ * Create your Order v7
+ * This API will allow customers to perform both standard ordering and quote to order functionality via a single API enabling them to have a single endpoint to cater to all types of orders. This approach will standardize the ordering flow for customers where they will get the response for all orders on to their webhooks. It provides the much-awaited async ordering flow for Reseller API where large orders can also be placed via a single API with guaranteed delivery.
+ * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
+ * @param imCountryCode Two-character ISO country code. (required)
+ * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
+ * @param asyncOrderCreateDTO (required)
+ * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
+ * @return AsyncOrderCreateResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+ 400 | Bad Request | - |
+ 500 | Server Error | - |
+
+ */
+ public AsyncOrderCreateResponse postCreateorderV7(String imCustomerNumber, String imCountryCode, String imCorrelationID, AsyncOrderCreateDTO asyncOrderCreateDTO, String imSenderID) throws ApiException {
+ ApiResponse localVarResp = postCreateorderV7WithHttpInfo(imCustomerNumber, imCountryCode, imCorrelationID, asyncOrderCreateDTO, imSenderID);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Create your Order v7
+ * This API will allow customers to perform both standard ordering and quote to order functionality via a single API enabling them to have a single endpoint to cater to all types of orders. This approach will standardize the ordering flow for customers where they will get the response for all orders on to their webhooks. It provides the much-awaited async ordering flow for Reseller API where large orders can also be placed via a single API with guaranteed delivery.
+ * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
+ * @param imCountryCode Two-character ISO country code. (required)
+ * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
+ * @param asyncOrderCreateDTO (required)
+ * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
+ * @return ApiResponse<AsyncOrderCreateResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+ 400 | Bad Request | - |
+ 500 | Server Error | - |
+
+ */
+ public ApiResponse postCreateorderV7WithHttpInfo(String imCustomerNumber, String imCountryCode, String imCorrelationID, AsyncOrderCreateDTO asyncOrderCreateDTO, String imSenderID) throws ApiException {
+ okhttp3.Call localVarCall = postCreateorderV7ValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, asyncOrderCreateDTO, imSenderID, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Create your Order v7 (asynchronously)
+ * This API will allow customers to perform both standard ordering and quote to order functionality via a single API enabling them to have a single endpoint to cater to all types of orders. This approach will standardize the ordering flow for customers where they will get the response for all orders on to their webhooks. It provides the much-awaited async ordering flow for Reseller API where large orders can also be placed via a single API with guaranteed delivery.
+ * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
+ * @param imCountryCode Two-character ISO country code. (required)
+ * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
+ * @param asyncOrderCreateDTO (required)
+ * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+ 400 | Bad Request | - |
+ 500 | Server Error | - |
+
+ */
+ public okhttp3.Call postCreateorderV7Async(String imCustomerNumber, String imCountryCode, String imCorrelationID, AsyncOrderCreateDTO asyncOrderCreateDTO, String imSenderID, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = postCreateorderV7ValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, asyncOrderCreateDTO, imSenderID, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
/**
* Build call for putOrdermodify
* @param orderNumber Ingram sales order number. (required)
diff --git a/src/main/java/xiresellers/client/api/ProductCatalogApi.java b/src/main/java/xiresellers/client/api/ProductCatalogApi.java
index 020acf01..8c9f58b7 100644
--- a/src/main/java/xiresellers/client/api/ProductCatalogApi.java
+++ b/src/main/java/xiresellers/client/api/ProductCatalogApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/api/QuoteToOrderApi.java b/src/main/java/xiresellers/client/api/QuoteToOrderApi.java
deleted file mode 100644
index 25db6fa8..00000000
--- a/src/main/java/xiresellers/client/api/QuoteToOrderApi.java
+++ /dev/null
@@ -1,256 +0,0 @@
-/*
- * 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
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package xiresellers.client.api;
-
-import xiresellers.client.ApiCallback;
-import xiresellers.client.ApiClient;
-import xiresellers.client.ApiException;
-import xiresellers.client.ApiResponse;
-import xiresellers.client.Configuration;
-import xiresellers.client.Pair;
-import xiresellers.client.ProgressRequestBody;
-import xiresellers.client.ProgressResponseBody;
-
-import com.google.gson.reflect.TypeToken;
-
-import java.io.IOException;
-
-
-import xiresellers.client.model.GetResellerV6ValidateQuote500Response;
-import xiresellers.client.model.PostQuoteToOrderV6400Response;
-import xiresellers.client.model.QuoteToOrderDetailsDTO;
-import xiresellers.client.model.QuoteToOrderResponse;
-
-import java.lang.reflect.Type;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-public class QuoteToOrderApi {
- private ApiClient localVarApiClient;
- private int localHostIndex;
- private String localCustomBaseUrl;
-
- public QuoteToOrderApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public QuoteToOrderApi(ApiClient apiClient) {
- this.localVarApiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return localVarApiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.localVarApiClient = apiClient;
- }
-
- public int getHostIndex() {
- return localHostIndex;
- }
-
- public void setHostIndex(int hostIndex) {
- this.localHostIndex = hostIndex;
- }
-
- public String getCustomBaseUrl() {
- return localCustomBaseUrl;
- }
-
- public void setCustomBaseUrl(String customBaseUrl) {
- this.localCustomBaseUrl = customBaseUrl;
- }
-
- /**
- * Build call for postQuoteToOrderV6
- * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
- * @param imCountryCode Two-character ISO country code. (required)
- * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
- * @param quoteToOrderDetailsDTO (required)
- * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
- * @param _callback Callback for upload/download progress
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
- 400 | Bad Request | - |
- 500 | Server Error | - |
-
- */
- public okhttp3.Call postQuoteToOrderV6Call(String imCustomerNumber, String imCountryCode, String imCorrelationID, QuoteToOrderDetailsDTO quoteToOrderDetailsDTO, String imSenderID, final ApiCallback _callback) throws ApiException {
- String basePath = null;
- // Operation Servers
- String[] localBasePaths = new String[] { };
-
- // Determine Base Path to Use
- if (localCustomBaseUrl != null){
- basePath = localCustomBaseUrl;
- } else if ( localBasePaths.length > 0 ) {
- basePath = localBasePaths[localHostIndex];
- } else {
- basePath = null;
- }
-
- Object localVarPostBody = quoteToOrderDetailsDTO;
-
- // create path and map variables
- String localVarPath = "/resellers/v6/q2o/orders";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (imCustomerNumber != null) {
- localVarHeaderParams.put("IM-CustomerNumber", localVarApiClient.parameterToString(imCustomerNumber));
- }
-
- if (imCountryCode != null) {
- localVarHeaderParams.put("IM-CountryCode", localVarApiClient.parameterToString(imCountryCode));
- }
-
- if (imSenderID != null) {
- localVarHeaderParams.put("IM-SenderID", localVarApiClient.parameterToString(imSenderID));
- }
-
- if (imCorrelationID != null) {
- localVarHeaderParams.put("IM-CorrelationID", localVarApiClient.parameterToString(imCorrelationID));
- }
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
- localVarHeaderParams.put("Accept", localVarAccept);
- }
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- if (localVarContentType != null) {
- localVarHeaderParams.put("Content-Type", localVarContentType);
- }
-
- String[] localVarAuthNames = new String[] { "application" };
- return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call postQuoteToOrderV6ValidateBeforeCall(String imCustomerNumber, String imCountryCode, String imCorrelationID, QuoteToOrderDetailsDTO quoteToOrderDetailsDTO, String imSenderID, final ApiCallback _callback) throws ApiException {
- // verify the required parameter 'imCustomerNumber' is set
- if (imCustomerNumber == null) {
- throw new ApiException("Missing the required parameter 'imCustomerNumber' when calling postQuoteToOrderV6(Async)");
- }
-
- // verify the required parameter 'imCountryCode' is set
- if (imCountryCode == null) {
- throw new ApiException("Missing the required parameter 'imCountryCode' when calling postQuoteToOrderV6(Async)");
- }
-
- // verify the required parameter 'imCorrelationID' is set
- if (imCorrelationID == null) {
- throw new ApiException("Missing the required parameter 'imCorrelationID' when calling postQuoteToOrderV6(Async)");
- }
-
- // verify the required parameter 'quoteToOrderDetailsDTO' is set
- if (quoteToOrderDetailsDTO == null) {
- throw new ApiException("Missing the required parameter 'quoteToOrderDetailsDTO' when calling postQuoteToOrderV6(Async)");
- }
-
- return postQuoteToOrderV6Call(imCustomerNumber, imCountryCode, imCorrelationID, quoteToOrderDetailsDTO, imSenderID, _callback);
-
- }
-
- /**
- * Quote To Order
- * The “Quote to Order” (QTO) endpoint allows a customer to create an order using the existing quote which is in “Ready to Order” status. A customer can create an order using Configure to order (CTO) quote or a non-configure to order (Non-CTO) quote. Upon successful submission of the order create request, a confirmation message will be returned as an API response. <br > <br >Ingram Micro offers webhooks as a method to send notifications to Resellers once the order creation request is received. All the updates related to Order creation will be pushed as a notification to the customer via a pre-defined callback URL as an HTTP post. <br > <br > **Prerequisite:** Pre-defined callback URL <br > <br > Before creating an order using the quote, it’s recommended to validate the quote using the “Validate Quote” endpoint. Validate Quote endpoint will not only validate the quote but also outline all the mandatory fields required by the vendor at a header level and at the line level which a customer need to pass to the Quote To Order endpoint request. For a detailed understanding of the “Validate Quote” endpoint, review the “Validate Quote” endpoint documentation. <br ><br > **How it works:** <br ><br > - The customer validates the quote with a quote number from Validate Quote endpoint. <br > - The customer copies all the mandatory fields required by the vendor and adds them to the QTO request body. <br > - The customer provides all the values for Vendor mandatory fields along with other required information for QTO to create an order. <br > - After the order creation request receipt acknowledgment from the QTO endpoint, all further order creation updates will be provided via webhook push notification.
- * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
- * @param imCountryCode Two-character ISO country code. (required)
- * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
- * @param quoteToOrderDetailsDTO (required)
- * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
- * @return QuoteToOrderResponse
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
- 400 | Bad Request | - |
- 500 | Server Error | - |
-
- */
- public QuoteToOrderResponse postQuoteToOrderV6(String imCustomerNumber, String imCountryCode, String imCorrelationID, QuoteToOrderDetailsDTO quoteToOrderDetailsDTO, String imSenderID) throws ApiException {
- ApiResponse localVarResp = postQuoteToOrderV6WithHttpInfo(imCustomerNumber, imCountryCode, imCorrelationID, quoteToOrderDetailsDTO, imSenderID);
- return localVarResp.getData();
- }
-
- /**
- * Quote To Order
- * The “Quote to Order” (QTO) endpoint allows a customer to create an order using the existing quote which is in “Ready to Order” status. A customer can create an order using Configure to order (CTO) quote or a non-configure to order (Non-CTO) quote. Upon successful submission of the order create request, a confirmation message will be returned as an API response. <br > <br >Ingram Micro offers webhooks as a method to send notifications to Resellers once the order creation request is received. All the updates related to Order creation will be pushed as a notification to the customer via a pre-defined callback URL as an HTTP post. <br > <br > **Prerequisite:** Pre-defined callback URL <br > <br > Before creating an order using the quote, it’s recommended to validate the quote using the “Validate Quote” endpoint. Validate Quote endpoint will not only validate the quote but also outline all the mandatory fields required by the vendor at a header level and at the line level which a customer need to pass to the Quote To Order endpoint request. For a detailed understanding of the “Validate Quote” endpoint, review the “Validate Quote” endpoint documentation. <br ><br > **How it works:** <br ><br > - The customer validates the quote with a quote number from Validate Quote endpoint. <br > - The customer copies all the mandatory fields required by the vendor and adds them to the QTO request body. <br > - The customer provides all the values for Vendor mandatory fields along with other required information for QTO to create an order. <br > - After the order creation request receipt acknowledgment from the QTO endpoint, all further order creation updates will be provided via webhook push notification.
- * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
- * @param imCountryCode Two-character ISO country code. (required)
- * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
- * @param quoteToOrderDetailsDTO (required)
- * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
- * @return ApiResponse<QuoteToOrderResponse>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
- 400 | Bad Request | - |
- 500 | Server Error | - |
-
- */
- public ApiResponse postQuoteToOrderV6WithHttpInfo(String imCustomerNumber, String imCountryCode, String imCorrelationID, QuoteToOrderDetailsDTO quoteToOrderDetailsDTO, String imSenderID) throws ApiException {
- okhttp3.Call localVarCall = postQuoteToOrderV6ValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, quoteToOrderDetailsDTO, imSenderID, null);
- Type localVarReturnType = new TypeToken(){}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * Quote To Order (asynchronously)
- * The “Quote to Order” (QTO) endpoint allows a customer to create an order using the existing quote which is in “Ready to Order” status. A customer can create an order using Configure to order (CTO) quote or a non-configure to order (Non-CTO) quote. Upon successful submission of the order create request, a confirmation message will be returned as an API response. <br > <br >Ingram Micro offers webhooks as a method to send notifications to Resellers once the order creation request is received. All the updates related to Order creation will be pushed as a notification to the customer via a pre-defined callback URL as an HTTP post. <br > <br > **Prerequisite:** Pre-defined callback URL <br > <br > Before creating an order using the quote, it’s recommended to validate the quote using the “Validate Quote” endpoint. Validate Quote endpoint will not only validate the quote but also outline all the mandatory fields required by the vendor at a header level and at the line level which a customer need to pass to the Quote To Order endpoint request. For a detailed understanding of the “Validate Quote” endpoint, review the “Validate Quote” endpoint documentation. <br ><br > **How it works:** <br ><br > - The customer validates the quote with a quote number from Validate Quote endpoint. <br > - The customer copies all the mandatory fields required by the vendor and adds them to the QTO request body. <br > - The customer provides all the values for Vendor mandatory fields along with other required information for QTO to create an order. <br > - After the order creation request receipt acknowledgment from the QTO endpoint, all further order creation updates will be provided via webhook push notification.
- * @param imCustomerNumber Your unique Ingram Micro customer number. (required)
- * @param imCountryCode Two-character ISO country code. (required)
- * @param imCorrelationID Unique transaction number to identify each transaction accross all the systems. (required)
- * @param quoteToOrderDetailsDTO (required)
- * @param imSenderID Unique value used to identify the sender of the transaction. (optional)
- * @param _callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
- 400 | Bad Request | - |
- 500 | Server Error | - |
-
- */
- public okhttp3.Call postQuoteToOrderV6Async(String imCustomerNumber, String imCountryCode, String imCorrelationID, QuoteToOrderDetailsDTO quoteToOrderDetailsDTO, String imSenderID, final ApiCallback _callback) throws ApiException {
-
- okhttp3.Call localVarCall = postQuoteToOrderV6ValidateBeforeCall(imCustomerNumber, imCountryCode, imCorrelationID, quoteToOrderDetailsDTO, imSenderID, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
- localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
- return localVarCall;
- }
-}
diff --git a/src/main/java/xiresellers/client/api/QuotesApi.java b/src/main/java/xiresellers/client/api/QuotesApi.java
index e7451780..5268a431 100644
--- a/src/main/java/xiresellers/client/api/QuotesApi.java
+++ b/src/main/java/xiresellers/client/api/QuotesApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -29,7 +29,7 @@
import xiresellers.client.model.ErrorResponse;
import xiresellers.client.model.GetResellerV6ValidateQuote400Response;
-import xiresellers.client.model.GetResellerV6ValidateQuote500Response;
+import xiresellers.client.model.PostCreateorderV7500Response;
import xiresellers.client.model.QuoteDetailsResponse;
import xiresellers.client.model.QuoteSearchResponse;
import xiresellers.client.model.ValidateQuoteResponse;
diff --git a/src/main/java/xiresellers/client/api/RenewalsApi.java b/src/main/java/xiresellers/client/api/RenewalsApi.java
index 9242fad3..cb713ac0 100644
--- a/src/main/java/xiresellers/client/api/RenewalsApi.java
+++ b/src/main/java/xiresellers/client/api/RenewalsApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -27,7 +27,7 @@
import java.io.IOException;
-import xiresellers.client.model.GetResellerV6ValidateQuote500Response;
+import xiresellers.client.model.PostCreateorderV7500Response;
import xiresellers.client.model.PostRenewalssearch400Response;
import xiresellers.client.model.RenewalsDetailsResponse;
import xiresellers.client.model.RenewalsSearchRequest;
diff --git a/src/main/java/xiresellers/client/api/ReturnsApi.java b/src/main/java/xiresellers/client/api/ReturnsApi.java
index 9f46cb7e..30cb3e95 100644
--- a/src/main/java/xiresellers/client/api/ReturnsApi.java
+++ b/src/main/java/xiresellers/client/api/ReturnsApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -27,7 +27,7 @@
import java.io.IOException;
-import xiresellers.client.model.GetResellerV6ValidateQuote500Response;
+import xiresellers.client.model.PostCreateorderV7500Response;
import xiresellers.client.model.PostRenewalssearch400Response;
import xiresellers.client.model.ReturnsCreateRequest;
import xiresellers.client.model.ReturnsCreateResponse;
diff --git a/src/main/java/xiresellers/client/api/StockUpdateApi.java b/src/main/java/xiresellers/client/api/StockUpdateApi.java
index 79aaa612..2e2f581a 100644
--- a/src/main/java/xiresellers/client/api/StockUpdateApi.java
+++ b/src/main/java/xiresellers/client/api/StockUpdateApi.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/auth/ApiKeyAuth.java b/src/main/java/xiresellers/client/auth/ApiKeyAuth.java
index 7f1bc9ac..c9091251 100644
--- a/src/main/java/xiresellers/client/auth/ApiKeyAuth.java
+++ b/src/main/java/xiresellers/client/auth/ApiKeyAuth.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -20,7 +20,7 @@
import java.util.Map;
import java.util.List;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
diff --git a/src/main/java/xiresellers/client/auth/Authentication.java b/src/main/java/xiresellers/client/auth/Authentication.java
index 56dcd66e..f26f0c0f 100644
--- a/src/main/java/xiresellers/client/auth/Authentication.java
+++ b/src/main/java/xiresellers/client/auth/Authentication.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/auth/HttpBasicAuth.java b/src/main/java/xiresellers/client/auth/HttpBasicAuth.java
index 096c9f24..38d592b9 100644
--- a/src/main/java/xiresellers/client/auth/HttpBasicAuth.java
+++ b/src/main/java/xiresellers/client/auth/HttpBasicAuth.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/src/main/java/xiresellers/client/auth/HttpBearerAuth.java b/src/main/java/xiresellers/client/auth/HttpBearerAuth.java
index ab817e21..f2e1087d 100644
--- a/src/main/java/xiresellers/client/auth/HttpBearerAuth.java
+++ b/src/main/java/xiresellers/client/auth/HttpBearerAuth.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -22,7 +22,7 @@
import java.util.Optional;
import java.util.function.Supplier;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private Supplier tokenSupplier;
diff --git a/src/main/java/xiresellers/client/auth/OAuth.java b/src/main/java/xiresellers/client/auth/OAuth.java
index 78ec48f3..95d8536c 100644
--- a/src/main/java/xiresellers/client/auth/OAuth.java
+++ b/src/main/java/xiresellers/client/auth/OAuth.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -20,7 +20,7 @@
import java.util.Map;
import java.util.List;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class OAuth implements Authentication {
private String accessToken;
diff --git a/src/main/java/xiresellers/client/auth/OAuthFlow.java b/src/main/java/xiresellers/client/auth/OAuthFlow.java
index 6080cc80..e445edff 100644
--- a/src/main/java/xiresellers/client/auth/OAuthFlow.java
+++ b/src/main/java/xiresellers/client/auth/OAuthFlow.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -16,7 +16,7 @@
/**
* OAuth flows that are supported by this client
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public enum OAuthFlow {
ACCESS_CODE, //called authorizationCode in OpenAPI 3.0
IMPLICIT,
diff --git a/src/main/java/xiresellers/client/model/AbstractOpenApiSchema.java b/src/main/java/xiresellers/client/model/AbstractOpenApiSchema.java
index b04ebe0c..63807a0a 100644
--- a/src/main/java/xiresellers/client/model/AbstractOpenApiSchema.java
+++ b/src/main/java/xiresellers/client/model/AbstractOpenApiSchema.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -21,7 +21,7 @@
/**
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public abstract class AbstractOpenApiSchema {
// store the actual instance of the schema/object
diff --git a/src/main/java/xiresellers/client/model/AccesstokenResponse.java b/src/main/java/xiresellers/client/model/AccesstokenResponse.java
index 35d685de..2d434ef9 100644
--- a/src/main/java/xiresellers/client/model/AccesstokenResponse.java
+++ b/src/main/java/xiresellers/client/model/AccesstokenResponse.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -49,7 +49,7 @@
/**
* AccesstokenResponse
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class AccesstokenResponse {
public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token";
@SerializedName(SERIALIZED_NAME_ACCESS_TOKEN)
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTO.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTO.java
new file mode 100644
index 00000000..d7e039ca
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTO.java
@@ -0,0 +1,769 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
+import xiresellers.client.model.AsyncOrderCreateDTOAdditionalAttributesInner;
+import xiresellers.client.model.AsyncOrderCreateDTOEndUserInfo;
+import xiresellers.client.model.AsyncOrderCreateDTOLinesInner;
+import xiresellers.client.model.AsyncOrderCreateDTOResellerInfo;
+import xiresellers.client.model.AsyncOrderCreateDTOShipToInfo;
+import xiresellers.client.model.AsyncOrderCreateDTOShipmentDetails;
+import xiresellers.client.model.AsyncOrderCreateDTOVmfadditionalAttributesInner;
+import xiresellers.client.model.AsyncOrderCreateDTOWarrantyInfoInner;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * AsyncOrderCreateDTO
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTO {
+ public static final String SERIALIZED_NAME_QUOTE_NUMBER = "quoteNumber";
+ @SerializedName(SERIALIZED_NAME_QUOTE_NUMBER)
+ private String quoteNumber;
+
+ public static final String SERIALIZED_NAME_CUSTOMER_ORDER_NUMBER = "customerOrderNumber";
+ @SerializedName(SERIALIZED_NAME_CUSTOMER_ORDER_NUMBER)
+ private String customerOrderNumber;
+
+ public static final String SERIALIZED_NAME_END_CUSTOMER_ORDER_NUMBER = "endCustomerOrderNumber";
+ @SerializedName(SERIALIZED_NAME_END_CUSTOMER_ORDER_NUMBER)
+ private String endCustomerOrderNumber;
+
+ public static final String SERIALIZED_NAME_NOTES = "notes";
+ @SerializedName(SERIALIZED_NAME_NOTES)
+ private String notes;
+
+ public static final String SERIALIZED_NAME_BILL_TO_ADDRESS_ID = "billToAddressId";
+ @SerializedName(SERIALIZED_NAME_BILL_TO_ADDRESS_ID)
+ private String billToAddressId;
+
+ public static final String SERIALIZED_NAME_SPECIAL_BID_NUMBER = "specialBidNumber";
+ @SerializedName(SERIALIZED_NAME_SPECIAL_BID_NUMBER)
+ private String specialBidNumber;
+
+ public static final String SERIALIZED_NAME_INTERNAL_COMMENTS = "internalComments";
+ @SerializedName(SERIALIZED_NAME_INTERNAL_COMMENTS)
+ private String internalComments;
+
+ public static final String SERIALIZED_NAME_ACCEPT_BACK_ORDER = "acceptBackOrder";
+ @SerializedName(SERIALIZED_NAME_ACCEPT_BACK_ORDER)
+ private Boolean acceptBackOrder;
+
+ public static final String SERIALIZED_NAME_VEND_AUTH_NUMBER = "vendAuthNumber";
+ @SerializedName(SERIALIZED_NAME_VEND_AUTH_NUMBER)
+ private String vendAuthNumber;
+
+ public static final String SERIALIZED_NAME_RESELLER_INFO = "resellerInfo";
+ @SerializedName(SERIALIZED_NAME_RESELLER_INFO)
+ private AsyncOrderCreateDTOResellerInfo resellerInfo;
+
+ public static final String SERIALIZED_NAME_END_USER_INFO = "endUserInfo";
+ @SerializedName(SERIALIZED_NAME_END_USER_INFO)
+ private AsyncOrderCreateDTOEndUserInfo endUserInfo;
+
+ public static final String SERIALIZED_NAME_SHIP_TO_INFO = "shipToInfo";
+ @SerializedName(SERIALIZED_NAME_SHIP_TO_INFO)
+ private AsyncOrderCreateDTOShipToInfo shipToInfo;
+
+ public static final String SERIALIZED_NAME_SHIPMENT_DETAILS = "shipmentDetails";
+ @SerializedName(SERIALIZED_NAME_SHIPMENT_DETAILS)
+ private AsyncOrderCreateDTOShipmentDetails shipmentDetails;
+
+ public static final String SERIALIZED_NAME_ADDITIONAL_ATTRIBUTES = "additionalAttributes";
+ @SerializedName(SERIALIZED_NAME_ADDITIONAL_ATTRIBUTES)
+ private List additionalAttributes = new ArrayList<>();
+
+ public static final String SERIALIZED_NAME_VMFADDITIONAL_ATTRIBUTES = "vmfadditionalAttributes";
+ @SerializedName(SERIALIZED_NAME_VMFADDITIONAL_ATTRIBUTES)
+ private List vmfadditionalAttributes = new ArrayList<>();
+
+ public static final String SERIALIZED_NAME_LINES = "lines";
+ @SerializedName(SERIALIZED_NAME_LINES)
+ private List lines = new ArrayList<>();
+
+ public static final String SERIALIZED_NAME_WARRANTY_INFO = "warrantyInfo";
+ @SerializedName(SERIALIZED_NAME_WARRANTY_INFO)
+ private List warrantyInfo = new ArrayList<>();
+
+ public AsyncOrderCreateDTO() {
+ }
+
+ public AsyncOrderCreateDTO quoteNumber(String quoteNumber) {
+ this.quoteNumber = quoteNumber;
+ return this;
+ }
+
+ /**
+ * A unique identifier generated by Ingram Micro's CRM specific to each quote.
+ * @return quoteNumber
+ **/
+ @javax.annotation.Nullable
+ public String getQuoteNumber() {
+ return quoteNumber;
+ }
+
+ public void setQuoteNumber(String quoteNumber) {
+ this.quoteNumber = quoteNumber;
+ }
+
+
+ public AsyncOrderCreateDTO customerOrderNumber(String customerOrderNumber) {
+ this.customerOrderNumber = customerOrderNumber;
+ return this;
+ }
+
+ /**
+ * The reseller's order number for reference in their system.
+ * @return customerOrderNumber
+ **/
+ @javax.annotation.Nullable
+ public String getCustomerOrderNumber() {
+ return customerOrderNumber;
+ }
+
+ public void setCustomerOrderNumber(String customerOrderNumber) {
+ this.customerOrderNumber = customerOrderNumber;
+ }
+
+
+ public AsyncOrderCreateDTO endCustomerOrderNumber(String endCustomerOrderNumber) {
+ this.endCustomerOrderNumber = endCustomerOrderNumber;
+ return this;
+ }
+
+ /**
+ * The end customer's order number for reference in their system.
+ * @return endCustomerOrderNumber
+ **/
+ @javax.annotation.Nullable
+ public String getEndCustomerOrderNumber() {
+ return endCustomerOrderNumber;
+ }
+
+ public void setEndCustomerOrderNumber(String endCustomerOrderNumber) {
+ this.endCustomerOrderNumber = endCustomerOrderNumber;
+ }
+
+
+ public AsyncOrderCreateDTO notes(String notes) {
+ this.notes = notes;
+ return this;
+ }
+
+ /**
+ * Order header level notes.
+ * @return notes
+ **/
+ @javax.annotation.Nullable
+ public String getNotes() {
+ return notes;
+ }
+
+ public void setNotes(String notes) {
+ this.notes = notes;
+ }
+
+
+ public AsyncOrderCreateDTO billToAddressId(String billToAddressId) {
+ this.billToAddressId = billToAddressId;
+ return this;
+ }
+
+ /**
+ * Suffix used to identify billing address. Created during onboarding. Resellers are provided with one or more address IDs depending on how many bill to addresses they need for various flooring companies they are using for credit.
+ * @return billToAddressId
+ **/
+ @javax.annotation.Nullable
+ public String getBillToAddressId() {
+ return billToAddressId;
+ }
+
+ public void setBillToAddressId(String billToAddressId) {
+ this.billToAddressId = billToAddressId;
+ }
+
+
+ public AsyncOrderCreateDTO specialBidNumber(String specialBidNumber) {
+ this.specialBidNumber = specialBidNumber;
+ return this;
+ }
+
+ /**
+ * The bid number is provided to the reseller by the vendor for special pricing and discounts. Line-level bid numbers take precedence over header-level bid numbers.
+ * @return specialBidNumber
+ **/
+ @javax.annotation.Nullable
+ public String getSpecialBidNumber() {
+ return specialBidNumber;
+ }
+
+ public void setSpecialBidNumber(String specialBidNumber) {
+ this.specialBidNumber = specialBidNumber;
+ }
+
+
+ public AsyncOrderCreateDTO internalComments(String internalComments) {
+ this.internalComments = internalComments;
+ return this;
+ }
+
+ /**
+ * need to replace with actual description
+ * @return internalComments
+ **/
+ @javax.annotation.Nullable
+ public String getInternalComments() {
+ return internalComments;
+ }
+
+ public void setInternalComments(String internalComments) {
+ this.internalComments = internalComments;
+ }
+
+
+ public AsyncOrderCreateDTO acceptBackOrder(Boolean acceptBackOrder) {
+ this.acceptBackOrder = acceptBackOrder;
+ return this;
+ }
+
+ /**
+ * ENUM [\"true\",\"false\"] - accept order if this item is backordered. This field along with shipComplete field decides the value of backorderflag. The value of this field is ignored when shipComplete field is present.
+ * @return acceptBackOrder
+ **/
+ @javax.annotation.Nullable
+ public Boolean getAcceptBackOrder() {
+ return acceptBackOrder;
+ }
+
+ public void setAcceptBackOrder(Boolean acceptBackOrder) {
+ this.acceptBackOrder = acceptBackOrder;
+ }
+
+
+ public AsyncOrderCreateDTO vendAuthNumber(String vendAuthNumber) {
+ this.vendAuthNumber = vendAuthNumber;
+ return this;
+ }
+
+ /**
+ * Authorization number provided by vendor to Ingram's reseller. Orders will be placed on hold without this value, vendor specific mandatory field - please reach out Ingram Sales team for list of vendor for whom this is mandatory.
+ * @return vendAuthNumber
+ **/
+ @javax.annotation.Nullable
+ public String getVendAuthNumber() {
+ return vendAuthNumber;
+ }
+
+ public void setVendAuthNumber(String vendAuthNumber) {
+ this.vendAuthNumber = vendAuthNumber;
+ }
+
+
+ public AsyncOrderCreateDTO resellerInfo(AsyncOrderCreateDTOResellerInfo resellerInfo) {
+ this.resellerInfo = resellerInfo;
+ return this;
+ }
+
+ /**
+ * Get resellerInfo
+ * @return resellerInfo
+ **/
+ @javax.annotation.Nullable
+ public AsyncOrderCreateDTOResellerInfo getResellerInfo() {
+ return resellerInfo;
+ }
+
+ public void setResellerInfo(AsyncOrderCreateDTOResellerInfo resellerInfo) {
+ this.resellerInfo = resellerInfo;
+ }
+
+
+ public AsyncOrderCreateDTO endUserInfo(AsyncOrderCreateDTOEndUserInfo endUserInfo) {
+ this.endUserInfo = endUserInfo;
+ return this;
+ }
+
+ /**
+ * Get endUserInfo
+ * @return endUserInfo
+ **/
+ @javax.annotation.Nullable
+ public AsyncOrderCreateDTOEndUserInfo getEndUserInfo() {
+ return endUserInfo;
+ }
+
+ public void setEndUserInfo(AsyncOrderCreateDTOEndUserInfo endUserInfo) {
+ this.endUserInfo = endUserInfo;
+ }
+
+
+ public AsyncOrderCreateDTO shipToInfo(AsyncOrderCreateDTOShipToInfo shipToInfo) {
+ this.shipToInfo = shipToInfo;
+ return this;
+ }
+
+ /**
+ * Get shipToInfo
+ * @return shipToInfo
+ **/
+ @javax.annotation.Nullable
+ public AsyncOrderCreateDTOShipToInfo getShipToInfo() {
+ return shipToInfo;
+ }
+
+ public void setShipToInfo(AsyncOrderCreateDTOShipToInfo shipToInfo) {
+ this.shipToInfo = shipToInfo;
+ }
+
+
+ public AsyncOrderCreateDTO shipmentDetails(AsyncOrderCreateDTOShipmentDetails shipmentDetails) {
+ this.shipmentDetails = shipmentDetails;
+ return this;
+ }
+
+ /**
+ * Get shipmentDetails
+ * @return shipmentDetails
+ **/
+ @javax.annotation.Nullable
+ public AsyncOrderCreateDTOShipmentDetails getShipmentDetails() {
+ return shipmentDetails;
+ }
+
+ public void setShipmentDetails(AsyncOrderCreateDTOShipmentDetails shipmentDetails) {
+ this.shipmentDetails = shipmentDetails;
+ }
+
+
+ public AsyncOrderCreateDTO additionalAttributes(List additionalAttributes) {
+ this.additionalAttributes = additionalAttributes;
+ return this;
+ }
+
+ public AsyncOrderCreateDTO addAdditionalAttributesItem(AsyncOrderCreateDTOAdditionalAttributesInner additionalAttributesItem) {
+ if (this.additionalAttributes == null) {
+ this.additionalAttributes = new ArrayList<>();
+ }
+ this.additionalAttributes.add(additionalAttributesItem);
+ return this;
+ }
+
+ /**
+ * Additional order create attributes.
+ * @return additionalAttributes
+ **/
+ @javax.annotation.Nullable
+ public List getAdditionalAttributes() {
+ return additionalAttributes;
+ }
+
+ public void setAdditionalAttributes(List additionalAttributes) {
+ this.additionalAttributes = additionalAttributes;
+ }
+
+
+ public AsyncOrderCreateDTO vmfadditionalAttributes(List vmfadditionalAttributes) {
+ this.vmfadditionalAttributes = vmfadditionalAttributes;
+ return this;
+ }
+
+ public AsyncOrderCreateDTO addVmfadditionalAttributesItem(AsyncOrderCreateDTOVmfadditionalAttributesInner vmfadditionalAttributesItem) {
+ if (this.vmfadditionalAttributes == null) {
+ this.vmfadditionalAttributes = new ArrayList<>();
+ }
+ this.vmfadditionalAttributes.add(vmfadditionalAttributesItem);
+ return this;
+ }
+
+ /**
+ * The object containing the list of fields required at a header level by the vendor.
+ * @return vmfadditionalAttributes
+ **/
+ @javax.annotation.Nullable
+ public List getVmfadditionalAttributes() {
+ return vmfadditionalAttributes;
+ }
+
+ public void setVmfadditionalAttributes(List vmfadditionalAttributes) {
+ this.vmfadditionalAttributes = vmfadditionalAttributes;
+ }
+
+
+ public AsyncOrderCreateDTO lines(List lines) {
+ this.lines = lines;
+ return this;
+ }
+
+ public AsyncOrderCreateDTO addLinesItem(AsyncOrderCreateDTOLinesInner linesItem) {
+ if (this.lines == null) {
+ this.lines = new ArrayList<>();
+ }
+ this.lines.add(linesItem);
+ return this;
+ }
+
+ /**
+ * The object containing the lines that require vendor mandatory fields.
+ * @return lines
+ **/
+ @javax.annotation.Nullable
+ public List getLines() {
+ return lines;
+ }
+
+ public void setLines(List lines) {
+ this.lines = lines;
+ }
+
+
+ public AsyncOrderCreateDTO warrantyInfo(List warrantyInfo) {
+ this.warrantyInfo = warrantyInfo;
+ return this;
+ }
+
+ public AsyncOrderCreateDTO addWarrantyInfoItem(AsyncOrderCreateDTOWarrantyInfoInner warrantyInfoItem) {
+ if (this.warrantyInfo == null) {
+ this.warrantyInfo = new ArrayList<>();
+ }
+ this.warrantyInfo.add(warrantyInfoItem);
+ return this;
+ }
+
+ /**
+ * Warranty Information
+ * @return warrantyInfo
+ **/
+ @javax.annotation.Nullable
+ public List getWarrantyInfo() {
+ return warrantyInfo;
+ }
+
+ public void setWarrantyInfo(List warrantyInfo) {
+ this.warrantyInfo = warrantyInfo;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTO asyncOrderCreateDTO = (AsyncOrderCreateDTO) o;
+ return Objects.equals(this.quoteNumber, asyncOrderCreateDTO.quoteNumber) &&
+ Objects.equals(this.customerOrderNumber, asyncOrderCreateDTO.customerOrderNumber) &&
+ Objects.equals(this.endCustomerOrderNumber, asyncOrderCreateDTO.endCustomerOrderNumber) &&
+ Objects.equals(this.notes, asyncOrderCreateDTO.notes) &&
+ Objects.equals(this.billToAddressId, asyncOrderCreateDTO.billToAddressId) &&
+ Objects.equals(this.specialBidNumber, asyncOrderCreateDTO.specialBidNumber) &&
+ Objects.equals(this.internalComments, asyncOrderCreateDTO.internalComments) &&
+ Objects.equals(this.acceptBackOrder, asyncOrderCreateDTO.acceptBackOrder) &&
+ Objects.equals(this.vendAuthNumber, asyncOrderCreateDTO.vendAuthNumber) &&
+ Objects.equals(this.resellerInfo, asyncOrderCreateDTO.resellerInfo) &&
+ Objects.equals(this.endUserInfo, asyncOrderCreateDTO.endUserInfo) &&
+ Objects.equals(this.shipToInfo, asyncOrderCreateDTO.shipToInfo) &&
+ Objects.equals(this.shipmentDetails, asyncOrderCreateDTO.shipmentDetails) &&
+ Objects.equals(this.additionalAttributes, asyncOrderCreateDTO.additionalAttributes) &&
+ Objects.equals(this.vmfadditionalAttributes, asyncOrderCreateDTO.vmfadditionalAttributes) &&
+ Objects.equals(this.lines, asyncOrderCreateDTO.lines) &&
+ Objects.equals(this.warrantyInfo, asyncOrderCreateDTO.warrantyInfo);
+ }
+
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(quoteNumber, customerOrderNumber, endCustomerOrderNumber, notes, billToAddressId, specialBidNumber, internalComments, acceptBackOrder, vendAuthNumber, resellerInfo, endUserInfo, shipToInfo, shipmentDetails, additionalAttributes, vmfadditionalAttributes, lines, warrantyInfo);
+ }
+
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTO {\n");
+ sb.append(" quoteNumber: ").append(toIndentedString(quoteNumber)).append("\n");
+ sb.append(" customerOrderNumber: ").append(toIndentedString(customerOrderNumber)).append("\n");
+ sb.append(" endCustomerOrderNumber: ").append(toIndentedString(endCustomerOrderNumber)).append("\n");
+ sb.append(" notes: ").append(toIndentedString(notes)).append("\n");
+ sb.append(" billToAddressId: ").append(toIndentedString(billToAddressId)).append("\n");
+ sb.append(" specialBidNumber: ").append(toIndentedString(specialBidNumber)).append("\n");
+ sb.append(" internalComments: ").append(toIndentedString(internalComments)).append("\n");
+ sb.append(" acceptBackOrder: ").append(toIndentedString(acceptBackOrder)).append("\n");
+ sb.append(" vendAuthNumber: ").append(toIndentedString(vendAuthNumber)).append("\n");
+ sb.append(" resellerInfo: ").append(toIndentedString(resellerInfo)).append("\n");
+ sb.append(" endUserInfo: ").append(toIndentedString(endUserInfo)).append("\n");
+ sb.append(" shipToInfo: ").append(toIndentedString(shipToInfo)).append("\n");
+ sb.append(" shipmentDetails: ").append(toIndentedString(shipmentDetails)).append("\n");
+ sb.append(" additionalAttributes: ").append(toIndentedString(additionalAttributes)).append("\n");
+ sb.append(" vmfadditionalAttributes: ").append(toIndentedString(vmfadditionalAttributes)).append("\n");
+ sb.append(" lines: ").append(toIndentedString(lines)).append("\n");
+ sb.append(" warrantyInfo: ").append(toIndentedString(warrantyInfo)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("quoteNumber");
+ openapiFields.add("customerOrderNumber");
+ openapiFields.add("endCustomerOrderNumber");
+ openapiFields.add("notes");
+ openapiFields.add("billToAddressId");
+ openapiFields.add("specialBidNumber");
+ openapiFields.add("internalComments");
+ openapiFields.add("acceptBackOrder");
+ openapiFields.add("vendAuthNumber");
+ openapiFields.add("resellerInfo");
+ openapiFields.add("endUserInfo");
+ openapiFields.add("shipToInfo");
+ openapiFields.add("shipmentDetails");
+ openapiFields.add("additionalAttributes");
+ openapiFields.add("vmfadditionalAttributes");
+ openapiFields.add("lines");
+ openapiFields.add("warrantyInfo");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTO
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTO.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTO is not found in the empty JSON string", AsyncOrderCreateDTO.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTO.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTO` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("quoteNumber") != null && !jsonObj.get("quoteNumber").isJsonNull()) && !jsonObj.get("quoteNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `quoteNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quoteNumber").toString()));
+ }
+ if ((jsonObj.get("customerOrderNumber") != null && !jsonObj.get("customerOrderNumber").isJsonNull()) && !jsonObj.get("customerOrderNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `customerOrderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerOrderNumber").toString()));
+ }
+ if ((jsonObj.get("endCustomerOrderNumber") != null && !jsonObj.get("endCustomerOrderNumber").isJsonNull()) && !jsonObj.get("endCustomerOrderNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `endCustomerOrderNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endCustomerOrderNumber").toString()));
+ }
+ if ((jsonObj.get("notes") != null && !jsonObj.get("notes").isJsonNull()) && !jsonObj.get("notes").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `notes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notes").toString()));
+ }
+ if ((jsonObj.get("billToAddressId") != null && !jsonObj.get("billToAddressId").isJsonNull()) && !jsonObj.get("billToAddressId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `billToAddressId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("billToAddressId").toString()));
+ }
+ if ((jsonObj.get("specialBidNumber") != null && !jsonObj.get("specialBidNumber").isJsonNull()) && !jsonObj.get("specialBidNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `specialBidNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("specialBidNumber").toString()));
+ }
+ if ((jsonObj.get("internalComments") != null && !jsonObj.get("internalComments").isJsonNull()) && !jsonObj.get("internalComments").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `internalComments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("internalComments").toString()));
+ }
+ if ((jsonObj.get("vendAuthNumber") != null && !jsonObj.get("vendAuthNumber").isJsonNull()) && !jsonObj.get("vendAuthNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `vendAuthNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("vendAuthNumber").toString()));
+ }
+ // validate the optional field `resellerInfo`
+ if (jsonObj.get("resellerInfo") != null && !jsonObj.get("resellerInfo").isJsonNull()) {
+ AsyncOrderCreateDTOResellerInfo.validateJsonElement(jsonObj.get("resellerInfo"));
+ }
+ // validate the optional field `endUserInfo`
+ if (jsonObj.get("endUserInfo") != null && !jsonObj.get("endUserInfo").isJsonNull()) {
+ AsyncOrderCreateDTOEndUserInfo.validateJsonElement(jsonObj.get("endUserInfo"));
+ }
+ // validate the optional field `shipToInfo`
+ if (jsonObj.get("shipToInfo") != null && !jsonObj.get("shipToInfo").isJsonNull()) {
+ AsyncOrderCreateDTOShipToInfo.validateJsonElement(jsonObj.get("shipToInfo"));
+ }
+ // validate the optional field `shipmentDetails`
+ if (jsonObj.get("shipmentDetails") != null && !jsonObj.get("shipmentDetails").isJsonNull()) {
+ AsyncOrderCreateDTOShipmentDetails.validateJsonElement(jsonObj.get("shipmentDetails"));
+ }
+ if (jsonObj.get("additionalAttributes") != null && !jsonObj.get("additionalAttributes").isJsonNull()) {
+ JsonArray jsonArrayadditionalAttributes = jsonObj.getAsJsonArray("additionalAttributes");
+ if (jsonArrayadditionalAttributes != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("additionalAttributes").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `additionalAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("additionalAttributes").toString()));
+ }
+
+ // validate the optional field `additionalAttributes` (array)
+ for (int i = 0; i < jsonArrayadditionalAttributes.size(); i++) {
+ AsyncOrderCreateDTOAdditionalAttributesInner.validateJsonElement(jsonArrayadditionalAttributes.get(i));
+ };
+ }
+ }
+ if (jsonObj.get("vmfadditionalAttributes") != null && !jsonObj.get("vmfadditionalAttributes").isJsonNull()) {
+ JsonArray jsonArrayvmfadditionalAttributes = jsonObj.getAsJsonArray("vmfadditionalAttributes");
+ if (jsonArrayvmfadditionalAttributes != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("vmfadditionalAttributes").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `vmfadditionalAttributes` to be an array in the JSON string but got `%s`", jsonObj.get("vmfadditionalAttributes").toString()));
+ }
+
+ // validate the optional field `vmfadditionalAttributes` (array)
+ for (int i = 0; i < jsonArrayvmfadditionalAttributes.size(); i++) {
+ AsyncOrderCreateDTOVmfadditionalAttributesInner.validateJsonElement(jsonArrayvmfadditionalAttributes.get(i));
+ };
+ }
+ }
+ if (jsonObj.get("lines") != null && !jsonObj.get("lines").isJsonNull()) {
+ JsonArray jsonArraylines = jsonObj.getAsJsonArray("lines");
+ if (jsonArraylines != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("lines").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `lines` to be an array in the JSON string but got `%s`", jsonObj.get("lines").toString()));
+ }
+
+ // validate the optional field `lines` (array)
+ for (int i = 0; i < jsonArraylines.size(); i++) {
+ AsyncOrderCreateDTOLinesInner.validateJsonElement(jsonArraylines.get(i));
+ };
+ }
+ }
+ if (jsonObj.get("warrantyInfo") != null && !jsonObj.get("warrantyInfo").isJsonNull()) {
+ JsonArray jsonArraywarrantyInfo = jsonObj.getAsJsonArray("warrantyInfo");
+ if (jsonArraywarrantyInfo != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("warrantyInfo").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `warrantyInfo` to be an array in the JSON string but got `%s`", jsonObj.get("warrantyInfo").toString()));
+ }
+
+ // validate the optional field `warrantyInfo` (array)
+ for (int i = 0; i < jsonArraywarrantyInfo.size(); i++) {
+ AsyncOrderCreateDTOWarrantyInfoInner.validateJsonElement(jsonArraywarrantyInfo.get(i));
+ };
+ }
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTO.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTO' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTO.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTO value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTO read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTO given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTO
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTO
+ */
+ public static AsyncOrderCreateDTO fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTO.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTO to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOAdditionalAttributesInner.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOAdditionalAttributesInner.java
new file mode 100644
index 00000000..da340957
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOAdditionalAttributesInner.java
@@ -0,0 +1,235 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * AsyncOrderCreateDTOAdditionalAttributesInner
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOAdditionalAttributesInner {
+ public static final String SERIALIZED_NAME_ATTRIBUTE_NAME = "attributeName";
+ @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NAME)
+ private String attributeName;
+
+ public static final String SERIALIZED_NAME_ATTRIBUTE_VALUE = "attributeValue";
+ @SerializedName(SERIALIZED_NAME_ATTRIBUTE_VALUE)
+ private String attributeValue;
+
+ public AsyncOrderCreateDTOAdditionalAttributesInner() {
+ }
+
+ public AsyncOrderCreateDTOAdditionalAttributesInner attributeName(String attributeName) {
+ this.attributeName = attributeName;
+ return this;
+ }
+
+ /**
+ * The attribute name. allowDuplicateCustomerOrderNumber: Allow orders with duplicate customer PO numbers. Enables resellers to have the same PO number for multiple orders. enableCommentsAsLines: It will enable comments as lines.
+ * @return attributeName
+ **/
+ @javax.annotation.Nullable
+ public String getAttributeName() {
+ return attributeName;
+ }
+
+ public void setAttributeName(String attributeName) {
+ this.attributeName = attributeName;
+ }
+
+
+ public AsyncOrderCreateDTOAdditionalAttributesInner attributeValue(String attributeValue) {
+ this.attributeValue = attributeValue;
+ return this;
+ }
+
+ /**
+ * The attribute field data.
+ * @return attributeValue
+ **/
+ @javax.annotation.Nullable
+ public String getAttributeValue() {
+ return attributeValue;
+ }
+
+ public void setAttributeValue(String attributeValue) {
+ this.attributeValue = attributeValue;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOAdditionalAttributesInner asyncOrderCreateDTOAdditionalAttributesInner = (AsyncOrderCreateDTOAdditionalAttributesInner) o;
+ return Objects.equals(this.attributeName, asyncOrderCreateDTOAdditionalAttributesInner.attributeName) &&
+ Objects.equals(this.attributeValue, asyncOrderCreateDTOAdditionalAttributesInner.attributeValue);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(attributeName, attributeValue);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOAdditionalAttributesInner {\n");
+ sb.append(" attributeName: ").append(toIndentedString(attributeName)).append("\n");
+ sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("attributeName");
+ openapiFields.add("attributeValue");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOAdditionalAttributesInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOAdditionalAttributesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOAdditionalAttributesInner is not found in the empty JSON string", AsyncOrderCreateDTOAdditionalAttributesInner.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOAdditionalAttributesInner.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOAdditionalAttributesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("attributeName") != null && !jsonObj.get("attributeName").isJsonNull()) && !jsonObj.get("attributeName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `attributeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeName").toString()));
+ }
+ if ((jsonObj.get("attributeValue") != null && !jsonObj.get("attributeValue").isJsonNull()) && !jsonObj.get("attributeValue").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `attributeValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeValue").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOAdditionalAttributesInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOAdditionalAttributesInner' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOAdditionalAttributesInner.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOAdditionalAttributesInner value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOAdditionalAttributesInner read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOAdditionalAttributesInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOAdditionalAttributesInner
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOAdditionalAttributesInner
+ */
+ public static AsyncOrderCreateDTOAdditionalAttributesInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOAdditionalAttributesInner.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOAdditionalAttributesInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOEndUserInfo.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOEndUserInfo.java
new file mode 100644
index 00000000..367a7cbe
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOEndUserInfo.java
@@ -0,0 +1,670 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * The contact information for the end user/customer provided by the reseller. Used to determine pricing and discounts.
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOEndUserInfo {
+ public static final String SERIALIZED_NAME_END_USER_ID = "endUserId";
+ @SerializedName(SERIALIZED_NAME_END_USER_ID)
+ private String endUserId;
+
+ public static final String SERIALIZED_NAME_END_USER_TYPE = "endUserType";
+ @SerializedName(SERIALIZED_NAME_END_USER_TYPE)
+ private String endUserType;
+
+ public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName";
+ @SerializedName(SERIALIZED_NAME_COMPANY_NAME)
+ private String companyName;
+
+ public static final String SERIALIZED_NAME_NAME1 = "name1";
+ @SerializedName(SERIALIZED_NAME_NAME1)
+ private String name1;
+
+ public static final String SERIALIZED_NAME_NAME2 = "name2";
+ @SerializedName(SERIALIZED_NAME_NAME2)
+ private String name2;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE1 = "addressLine1";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE1)
+ private String addressLine1;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE2 = "addressLine2";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE2)
+ private String addressLine2;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE3 = "addressLine3";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE3)
+ private String addressLine3;
+
+ public static final String SERIALIZED_NAME_CONTACT = "contact";
+ @SerializedName(SERIALIZED_NAME_CONTACT)
+ private String contact;
+
+ public static final String SERIALIZED_NAME_NAME3 = "name3";
+ @SerializedName(SERIALIZED_NAME_NAME3)
+ private String name3;
+
+ public static final String SERIALIZED_NAME_CITY = "city";
+ @SerializedName(SERIALIZED_NAME_CITY)
+ private String city;
+
+ public static final String SERIALIZED_NAME_STATE = "state";
+ @SerializedName(SERIALIZED_NAME_STATE)
+ private String state;
+
+ public static final String SERIALIZED_NAME_POSTAL_CODE = "postalCode";
+ @SerializedName(SERIALIZED_NAME_POSTAL_CODE)
+ private String postalCode;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE4 = "addressLine4";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE4)
+ private String addressLine4;
+
+ public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
+ @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
+ private String countryCode;
+
+ public static final String SERIALIZED_NAME_PHONE_NUMBER = "phoneNumber";
+ @SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
+ private String phoneNumber;
+
+ public static final String SERIALIZED_NAME_EMAIL = "email";
+ @SerializedName(SERIALIZED_NAME_EMAIL)
+ private String email;
+
+ public AsyncOrderCreateDTOEndUserInfo() {
+ }
+
+ public AsyncOrderCreateDTOEndUserInfo endUserId(String endUserId) {
+ this.endUserId = endUserId;
+ return this;
+ }
+
+ /**
+ * ID for the end user/customer in Ingram Micro's system.
+ * @return endUserId
+ **/
+ @javax.annotation.Nullable
+ public String getEndUserId() {
+ return endUserId;
+ }
+
+ public void setEndUserId(String endUserId) {
+ this.endUserId = endUserId;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo endUserType(String endUserType) {
+ this.endUserType = endUserType;
+ return this;
+ }
+
+ /**
+ * End user type
+ * @return endUserType
+ **/
+ @javax.annotation.Nullable
+ public String getEndUserType() {
+ return endUserType;
+ }
+
+ public void setEndUserType(String endUserType) {
+ this.endUserType = endUserType;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo companyName(String companyName) {
+ this.companyName = companyName;
+ return this;
+ }
+
+ /**
+ * The company name for the end user/customer.
+ * @return companyName
+ **/
+ @javax.annotation.Nullable
+ public String getCompanyName() {
+ return companyName;
+ }
+
+ public void setCompanyName(String companyName) {
+ this.companyName = companyName;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo name1(String name1) {
+ this.name1 = name1;
+ return this;
+ }
+
+ /**
+ * Get name1
+ * @return name1
+ **/
+ @javax.annotation.Nullable
+ public String getName1() {
+ return name1;
+ }
+
+ public void setName1(String name1) {
+ this.name1 = name1;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo name2(String name2) {
+ this.name2 = name2;
+ return this;
+ }
+
+ /**
+ * Get name2
+ * @return name2
+ **/
+ @javax.annotation.Nullable
+ public String getName2() {
+ return name2;
+ }
+
+ public void setName2(String name2) {
+ this.name2 = name2;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo addressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ return this;
+ }
+
+ /**
+ * The address line 1 for the end user/customer.
+ * @return addressLine1
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine1() {
+ return addressLine1;
+ }
+
+ public void setAddressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo addressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ return this;
+ }
+
+ /**
+ * The address line 2 for the end user/customer.
+ * @return addressLine2
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine2() {
+ return addressLine2;
+ }
+
+ public void setAddressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo addressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ return this;
+ }
+
+ /**
+ * The address line 3 for the end user/customer.
+ * @return addressLine3
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine3() {
+ return addressLine3;
+ }
+
+ public void setAddressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo contact(String contact) {
+ this.contact = contact;
+ return this;
+ }
+
+ /**
+ * The contact name for the end user/customer.
+ * @return contact
+ **/
+ @javax.annotation.Nullable
+ public String getContact() {
+ return contact;
+ }
+
+ public void setContact(String contact) {
+ this.contact = contact;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo name3(String name3) {
+ this.name3 = name3;
+ return this;
+ }
+
+ /**
+ * Get name3
+ * @return name3
+ **/
+ @javax.annotation.Nullable
+ public String getName3() {
+ return name3;
+ }
+
+ public void setName3(String name3) {
+ this.name3 = name3;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo city(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * The end user/customer's city.
+ * @return city
+ **/
+ @javax.annotation.Nullable
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * The end user/customer's state.
+ * @return state
+ **/
+ @javax.annotation.Nullable
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo postalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
+
+ /**
+ * The end user/customer's zip or postal code.
+ * @return postalCode
+ **/
+ @javax.annotation.Nullable
+ public String getPostalCode() {
+ return postalCode;
+ }
+
+ public void setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo addressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ return this;
+ }
+
+ /**
+ * The address line 4 for the end user/customer.
+ * @return addressLine4
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine4() {
+ return addressLine4;
+ }
+
+ public void setAddressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo countryCode(String countryCode) {
+ this.countryCode = countryCode;
+ return this;
+ }
+
+ /**
+ * The end user/customer's two character ISO country code.
+ * @return countryCode
+ **/
+ @javax.annotation.Nullable
+ public String getCountryCode() {
+ return countryCode;
+ }
+
+ public void setCountryCode(String countryCode) {
+ this.countryCode = countryCode;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo phoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ return this;
+ }
+
+ /**
+ * The end user/customer's phone number.
+ * @return phoneNumber
+ **/
+ @javax.annotation.Nullable
+ public String getPhoneNumber() {
+ return phoneNumber;
+ }
+
+ public void setPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+
+ public AsyncOrderCreateDTOEndUserInfo email(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /**
+ * The end user/customer's phone number.
+ * @return email
+ **/
+ @javax.annotation.Nullable
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOEndUserInfo asyncOrderCreateDTOEndUserInfo = (AsyncOrderCreateDTOEndUserInfo) o;
+ return Objects.equals(this.endUserId, asyncOrderCreateDTOEndUserInfo.endUserId) &&
+ Objects.equals(this.endUserType, asyncOrderCreateDTOEndUserInfo.endUserType) &&
+ Objects.equals(this.companyName, asyncOrderCreateDTOEndUserInfo.companyName) &&
+ Objects.equals(this.name1, asyncOrderCreateDTOEndUserInfo.name1) &&
+ Objects.equals(this.name2, asyncOrderCreateDTOEndUserInfo.name2) &&
+ Objects.equals(this.addressLine1, asyncOrderCreateDTOEndUserInfo.addressLine1) &&
+ Objects.equals(this.addressLine2, asyncOrderCreateDTOEndUserInfo.addressLine2) &&
+ Objects.equals(this.addressLine3, asyncOrderCreateDTOEndUserInfo.addressLine3) &&
+ Objects.equals(this.contact, asyncOrderCreateDTOEndUserInfo.contact) &&
+ Objects.equals(this.name3, asyncOrderCreateDTOEndUserInfo.name3) &&
+ Objects.equals(this.city, asyncOrderCreateDTOEndUserInfo.city) &&
+ Objects.equals(this.state, asyncOrderCreateDTOEndUserInfo.state) &&
+ Objects.equals(this.postalCode, asyncOrderCreateDTOEndUserInfo.postalCode) &&
+ Objects.equals(this.addressLine4, asyncOrderCreateDTOEndUserInfo.addressLine4) &&
+ Objects.equals(this.countryCode, asyncOrderCreateDTOEndUserInfo.countryCode) &&
+ Objects.equals(this.phoneNumber, asyncOrderCreateDTOEndUserInfo.phoneNumber) &&
+ Objects.equals(this.email, asyncOrderCreateDTOEndUserInfo.email);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(endUserId, endUserType, companyName, name1, name2, addressLine1, addressLine2, addressLine3, contact, name3, city, state, postalCode, addressLine4, countryCode, phoneNumber, email);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOEndUserInfo {\n");
+ sb.append(" endUserId: ").append(toIndentedString(endUserId)).append("\n");
+ sb.append(" endUserType: ").append(toIndentedString(endUserType)).append("\n");
+ sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
+ sb.append(" name1: ").append(toIndentedString(name1)).append("\n");
+ sb.append(" name2: ").append(toIndentedString(name2)).append("\n");
+ sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n");
+ sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n");
+ sb.append(" addressLine3: ").append(toIndentedString(addressLine3)).append("\n");
+ sb.append(" contact: ").append(toIndentedString(contact)).append("\n");
+ sb.append(" name3: ").append(toIndentedString(name3)).append("\n");
+ sb.append(" city: ").append(toIndentedString(city)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
+ sb.append(" addressLine4: ").append(toIndentedString(addressLine4)).append("\n");
+ sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
+ sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
+ sb.append(" email: ").append(toIndentedString(email)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("endUserId");
+ openapiFields.add("endUserType");
+ openapiFields.add("companyName");
+ openapiFields.add("name1");
+ openapiFields.add("name2");
+ openapiFields.add("addressLine1");
+ openapiFields.add("addressLine2");
+ openapiFields.add("addressLine3");
+ openapiFields.add("contact");
+ openapiFields.add("name3");
+ openapiFields.add("city");
+ openapiFields.add("state");
+ openapiFields.add("postalCode");
+ openapiFields.add("addressLine4");
+ openapiFields.add("countryCode");
+ openapiFields.add("phoneNumber");
+ openapiFields.add("email");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOEndUserInfo
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOEndUserInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOEndUserInfo is not found in the empty JSON string", AsyncOrderCreateDTOEndUserInfo.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOEndUserInfo.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOEndUserInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("endUserId") != null && !jsonObj.get("endUserId").isJsonNull()) && !jsonObj.get("endUserId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `endUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endUserId").toString()));
+ }
+ if ((jsonObj.get("endUserType") != null && !jsonObj.get("endUserType").isJsonNull()) && !jsonObj.get("endUserType").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `endUserType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endUserType").toString()));
+ }
+ if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString()));
+ }
+ if ((jsonObj.get("name1") != null && !jsonObj.get("name1").isJsonNull()) && !jsonObj.get("name1").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `name1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name1").toString()));
+ }
+ if ((jsonObj.get("name2") != null && !jsonObj.get("name2").isJsonNull()) && !jsonObj.get("name2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `name2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name2").toString()));
+ }
+ if ((jsonObj.get("addressLine1") != null && !jsonObj.get("addressLine1").isJsonNull()) && !jsonObj.get("addressLine1").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine1").toString()));
+ }
+ if ((jsonObj.get("addressLine2") != null && !jsonObj.get("addressLine2").isJsonNull()) && !jsonObj.get("addressLine2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine2").toString()));
+ }
+ if ((jsonObj.get("addressLine3") != null && !jsonObj.get("addressLine3").isJsonNull()) && !jsonObj.get("addressLine3").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine3").toString()));
+ }
+ if ((jsonObj.get("contact") != null && !jsonObj.get("contact").isJsonNull()) && !jsonObj.get("contact").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `contact` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contact").toString()));
+ }
+ if ((jsonObj.get("name3") != null && !jsonObj.get("name3").isJsonNull()) && !jsonObj.get("name3").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `name3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name3").toString()));
+ }
+ if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
+ }
+ if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
+ }
+ if ((jsonObj.get("postalCode") != null && !jsonObj.get("postalCode").isJsonNull()) && !jsonObj.get("postalCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `postalCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("postalCode").toString()));
+ }
+ if ((jsonObj.get("addressLine4") != null && !jsonObj.get("addressLine4").isJsonNull()) && !jsonObj.get("addressLine4").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine4` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine4").toString()));
+ }
+ if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
+ }
+ if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) && !jsonObj.get("phoneNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phoneNumber").toString()));
+ }
+ if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOEndUserInfo.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOEndUserInfo' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOEndUserInfo.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOEndUserInfo value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOEndUserInfo read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOEndUserInfo given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOEndUserInfo
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOEndUserInfo
+ */
+ public static AsyncOrderCreateDTOEndUserInfo fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOEndUserInfo.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOEndUserInfo to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInner.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInner.java
new file mode 100644
index 00000000..3eb995df
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInner.java
@@ -0,0 +1,431 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import xiresellers.client.model.AsyncOrderCreateDTOLinesInnerEndUserInfoInner;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * AsyncOrderCreateDTOLinesInner
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOLinesInner {
+ public static final String SERIALIZED_NAME_CUSTOMER_LINE_NUMBER = "customerLineNumber";
+ @SerializedName(SERIALIZED_NAME_CUSTOMER_LINE_NUMBER)
+ private String customerLineNumber;
+
+ public static final String SERIALIZED_NAME_INGRAM_PART_NUMBER = "ingramPartNumber";
+ @SerializedName(SERIALIZED_NAME_INGRAM_PART_NUMBER)
+ private String ingramPartNumber;
+
+ public static final String SERIALIZED_NAME_QUANTITY = "quantity";
+ @SerializedName(SERIALIZED_NAME_QUANTITY)
+ private String quantity;
+
+ public static final String SERIALIZED_NAME_UNIT_PRICE = "unitPrice";
+ @SerializedName(SERIALIZED_NAME_UNIT_PRICE)
+ private String unitPrice;
+
+ public static final String SERIALIZED_NAME_SPECIAL_BID_NUMBER = "specialBidNumber";
+ @SerializedName(SERIALIZED_NAME_SPECIAL_BID_NUMBER)
+ private String specialBidNumber;
+
+ public static final String SERIALIZED_NAME_END_USER_PRICE = "endUserPrice";
+ @SerializedName(SERIALIZED_NAME_END_USER_PRICE)
+ private String endUserPrice;
+
+ public static final String SERIALIZED_NAME_NOTES = "notes";
+ @SerializedName(SERIALIZED_NAME_NOTES)
+ private String notes;
+
+ public static final String SERIALIZED_NAME_END_USER_INFO = "endUserInfo";
+ @SerializedName(SERIALIZED_NAME_END_USER_INFO)
+ private List endUserInfo = new ArrayList<>();
+
+ public AsyncOrderCreateDTOLinesInner() {
+ }
+
+ public AsyncOrderCreateDTOLinesInner customerLineNumber(String customerLineNumber) {
+ this.customerLineNumber = customerLineNumber;
+ return this;
+ }
+
+ /**
+ * The reseller's line item number for reference in their system.
+ * @return customerLineNumber
+ **/
+ @javax.annotation.Nullable
+ public String getCustomerLineNumber() {
+ return customerLineNumber;
+ }
+
+ public void setCustomerLineNumber(String customerLineNumber) {
+ this.customerLineNumber = customerLineNumber;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInner ingramPartNumber(String ingramPartNumber) {
+ this.ingramPartNumber = ingramPartNumber;
+ return this;
+ }
+
+ /**
+ * Unique IngramMicro part number.
+ * @return ingramPartNumber
+ **/
+ @javax.annotation.Nullable
+ public String getIngramPartNumber() {
+ return ingramPartNumber;
+ }
+
+ public void setIngramPartNumber(String ingramPartNumber) {
+ this.ingramPartNumber = ingramPartNumber;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInner quantity(String quantity) {
+ this.quantity = quantity;
+ return this;
+ }
+
+ /**
+ * The quantity of the line item.
+ * @return quantity
+ **/
+ @javax.annotation.Nullable
+ public String getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(String quantity) {
+ this.quantity = quantity;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInner unitPrice(String unitPrice) {
+ this.unitPrice = unitPrice;
+ return this;
+ }
+
+ /**
+ * Unit Price of Item
+ * @return unitPrice
+ **/
+ @javax.annotation.Nullable
+ public String getUnitPrice() {
+ return unitPrice;
+ }
+
+ public void setUnitPrice(String unitPrice) {
+ this.unitPrice = unitPrice;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInner specialBidNumber(String specialBidNumber) {
+ this.specialBidNumber = specialBidNumber;
+ return this;
+ }
+
+ /**
+ * Get specialBidNumber
+ * @return specialBidNumber
+ **/
+ @javax.annotation.Nullable
+ public String getSpecialBidNumber() {
+ return specialBidNumber;
+ }
+
+ public void setSpecialBidNumber(String specialBidNumber) {
+ this.specialBidNumber = specialBidNumber;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInner endUserPrice(String endUserPrice) {
+ this.endUserPrice = endUserPrice;
+ return this;
+ }
+
+ /**
+ * Get endUserPrice
+ * @return endUserPrice
+ **/
+ @javax.annotation.Nullable
+ public String getEndUserPrice() {
+ return endUserPrice;
+ }
+
+ public void setEndUserPrice(String endUserPrice) {
+ this.endUserPrice = endUserPrice;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInner notes(String notes) {
+ this.notes = notes;
+ return this;
+ }
+
+ /**
+ * Get notes
+ * @return notes
+ **/
+ @javax.annotation.Nullable
+ public String getNotes() {
+ return notes;
+ }
+
+ public void setNotes(String notes) {
+ this.notes = notes;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInner endUserInfo(List endUserInfo) {
+ this.endUserInfo = endUserInfo;
+ return this;
+ }
+
+ public AsyncOrderCreateDTOLinesInner addEndUserInfoItem(AsyncOrderCreateDTOLinesInnerEndUserInfoInner endUserInfoItem) {
+ if (this.endUserInfo == null) {
+ this.endUserInfo = new ArrayList<>();
+ }
+ this.endUserInfo.add(endUserInfoItem);
+ return this;
+ }
+
+ /**
+ * The contact information for the end user/customer provided by the reseller. Used to determine pricing and discounts.
+ * @return endUserInfo
+ **/
+ @javax.annotation.Nullable
+ public List getEndUserInfo() {
+ return endUserInfo;
+ }
+
+ public void setEndUserInfo(List endUserInfo) {
+ this.endUserInfo = endUserInfo;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOLinesInner asyncOrderCreateDTOLinesInner = (AsyncOrderCreateDTOLinesInner) o;
+ return Objects.equals(this.customerLineNumber, asyncOrderCreateDTOLinesInner.customerLineNumber) &&
+ Objects.equals(this.ingramPartNumber, asyncOrderCreateDTOLinesInner.ingramPartNumber) &&
+ Objects.equals(this.quantity, asyncOrderCreateDTOLinesInner.quantity) &&
+ Objects.equals(this.unitPrice, asyncOrderCreateDTOLinesInner.unitPrice) &&
+ Objects.equals(this.specialBidNumber, asyncOrderCreateDTOLinesInner.specialBidNumber) &&
+ Objects.equals(this.endUserPrice, asyncOrderCreateDTOLinesInner.endUserPrice) &&
+ Objects.equals(this.notes, asyncOrderCreateDTOLinesInner.notes) &&
+ Objects.equals(this.endUserInfo, asyncOrderCreateDTOLinesInner.endUserInfo);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(customerLineNumber, ingramPartNumber, quantity, unitPrice, specialBidNumber, endUserPrice, notes, endUserInfo);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOLinesInner {\n");
+ sb.append(" customerLineNumber: ").append(toIndentedString(customerLineNumber)).append("\n");
+ sb.append(" ingramPartNumber: ").append(toIndentedString(ingramPartNumber)).append("\n");
+ sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
+ sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
+ sb.append(" specialBidNumber: ").append(toIndentedString(specialBidNumber)).append("\n");
+ sb.append(" endUserPrice: ").append(toIndentedString(endUserPrice)).append("\n");
+ sb.append(" notes: ").append(toIndentedString(notes)).append("\n");
+ sb.append(" endUserInfo: ").append(toIndentedString(endUserInfo)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("customerLineNumber");
+ openapiFields.add("ingramPartNumber");
+ openapiFields.add("quantity");
+ openapiFields.add("unitPrice");
+ openapiFields.add("specialBidNumber");
+ openapiFields.add("endUserPrice");
+ openapiFields.add("notes");
+ openapiFields.add("endUserInfo");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOLinesInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOLinesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOLinesInner is not found in the empty JSON string", AsyncOrderCreateDTOLinesInner.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOLinesInner.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOLinesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("customerLineNumber") != null && !jsonObj.get("customerLineNumber").isJsonNull()) && !jsonObj.get("customerLineNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `customerLineNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customerLineNumber").toString()));
+ }
+ if ((jsonObj.get("ingramPartNumber") != null && !jsonObj.get("ingramPartNumber").isJsonNull()) && !jsonObj.get("ingramPartNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `ingramPartNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ingramPartNumber").toString()));
+ }
+ if ((jsonObj.get("quantity") != null && !jsonObj.get("quantity").isJsonNull()) && !jsonObj.get("quantity").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `quantity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("quantity").toString()));
+ }
+ if ((jsonObj.get("unitPrice") != null && !jsonObj.get("unitPrice").isJsonNull()) && !jsonObj.get("unitPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `unitPrice` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitPrice").toString()));
+ }
+ if ((jsonObj.get("specialBidNumber") != null && !jsonObj.get("specialBidNumber").isJsonNull()) && !jsonObj.get("specialBidNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `specialBidNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("specialBidNumber").toString()));
+ }
+ if ((jsonObj.get("endUserPrice") != null && !jsonObj.get("endUserPrice").isJsonNull()) && !jsonObj.get("endUserPrice").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `endUserPrice` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endUserPrice").toString()));
+ }
+ if ((jsonObj.get("notes") != null && !jsonObj.get("notes").isJsonNull()) && !jsonObj.get("notes").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `notes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notes").toString()));
+ }
+ if (jsonObj.get("endUserInfo") != null && !jsonObj.get("endUserInfo").isJsonNull()) {
+ JsonArray jsonArrayendUserInfo = jsonObj.getAsJsonArray("endUserInfo");
+ if (jsonArrayendUserInfo != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("endUserInfo").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `endUserInfo` to be an array in the JSON string but got `%s`", jsonObj.get("endUserInfo").toString()));
+ }
+
+ // validate the optional field `endUserInfo` (array)
+ for (int i = 0; i < jsonArrayendUserInfo.size(); i++) {
+ AsyncOrderCreateDTOLinesInnerEndUserInfoInner.validateJsonElement(jsonArrayendUserInfo.get(i));
+ };
+ }
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOLinesInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOLinesInner' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOLinesInner.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOLinesInner value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOLinesInner read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOLinesInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOLinesInner
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOLinesInner
+ */
+ public static AsyncOrderCreateDTOLinesInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOLinesInner.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOLinesInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.java
new file mode 100644
index 00000000..d8aa1ba7
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOLinesInnerEndUserInfoInner.java
@@ -0,0 +1,670 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * AsyncOrderCreateDTOLinesInnerEndUserInfoInner
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOLinesInnerEndUserInfoInner {
+ public static final String SERIALIZED_NAME_END_USER_ID = "endUserId";
+ @SerializedName(SERIALIZED_NAME_END_USER_ID)
+ private String endUserId;
+
+ public static final String SERIALIZED_NAME_END_USER_TYPE = "endUserType";
+ @SerializedName(SERIALIZED_NAME_END_USER_TYPE)
+ private String endUserType;
+
+ public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName";
+ @SerializedName(SERIALIZED_NAME_COMPANY_NAME)
+ private String companyName;
+
+ public static final String SERIALIZED_NAME_NAME1 = "name1";
+ @SerializedName(SERIALIZED_NAME_NAME1)
+ private String name1;
+
+ public static final String SERIALIZED_NAME_NAME2 = "name2";
+ @SerializedName(SERIALIZED_NAME_NAME2)
+ private String name2;
+
+ public static final String SERIALIZED_NAME_CONTACT_ID = "contactId";
+ @SerializedName(SERIALIZED_NAME_CONTACT_ID)
+ private String contactId;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE1 = "addressLine1";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE1)
+ private String addressLine1;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE2 = "addressLine2";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE2)
+ private String addressLine2;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE3 = "addressLine3";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE3)
+ private String addressLine3;
+
+ public static final String SERIALIZED_NAME_CONTACT = "contact";
+ @SerializedName(SERIALIZED_NAME_CONTACT)
+ private String contact;
+
+ public static final String SERIALIZED_NAME_CITY = "city";
+ @SerializedName(SERIALIZED_NAME_CITY)
+ private String city;
+
+ public static final String SERIALIZED_NAME_STATE = "state";
+ @SerializedName(SERIALIZED_NAME_STATE)
+ private String state;
+
+ public static final String SERIALIZED_NAME_POSTAL_CODE = "postalCode";
+ @SerializedName(SERIALIZED_NAME_POSTAL_CODE)
+ private String postalCode;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE4 = "addressLine4";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE4)
+ private String addressLine4;
+
+ public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
+ @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
+ private String countryCode;
+
+ public static final String SERIALIZED_NAME_PHONE_NUMBER = "phoneNumber";
+ @SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
+ private String phoneNumber;
+
+ public static final String SERIALIZED_NAME_EMAIL = "email";
+ @SerializedName(SERIALIZED_NAME_EMAIL)
+ private String email;
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner() {
+ }
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner endUserId(String endUserId) {
+ this.endUserId = endUserId;
+ return this;
+ }
+
+ /**
+ * ID for the end user/customer in Ingram Micro's system.
+ * @return endUserId
+ **/
+ @javax.annotation.Nullable
+ public String getEndUserId() {
+ return endUserId;
+ }
+
+ public void setEndUserId(String endUserId) {
+ this.endUserId = endUserId;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner endUserType(String endUserType) {
+ this.endUserType = endUserType;
+ return this;
+ }
+
+ /**
+ * End user type
+ * @return endUserType
+ **/
+ @javax.annotation.Nullable
+ public String getEndUserType() {
+ return endUserType;
+ }
+
+ public void setEndUserType(String endUserType) {
+ this.endUserType = endUserType;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner companyName(String companyName) {
+ this.companyName = companyName;
+ return this;
+ }
+
+ /**
+ * The company name for the end user/customer.
+ * @return companyName
+ **/
+ @javax.annotation.Nullable
+ public String getCompanyName() {
+ return companyName;
+ }
+
+ public void setCompanyName(String companyName) {
+ this.companyName = companyName;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner name1(String name1) {
+ this.name1 = name1;
+ return this;
+ }
+
+ /**
+ * Get name1
+ * @return name1
+ **/
+ @javax.annotation.Nullable
+ public String getName1() {
+ return name1;
+ }
+
+ public void setName1(String name1) {
+ this.name1 = name1;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner name2(String name2) {
+ this.name2 = name2;
+ return this;
+ }
+
+ /**
+ * Get name2
+ * @return name2
+ **/
+ @javax.annotation.Nullable
+ public String getName2() {
+ return name2;
+ }
+
+ public void setName2(String name2) {
+ this.name2 = name2;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner contactId(String contactId) {
+ this.contactId = contactId;
+ return this;
+ }
+
+ /**
+ * The contact Id for the end user/customer.
+ * @return contactId
+ **/
+ @javax.annotation.Nullable
+ public String getContactId() {
+ return contactId;
+ }
+
+ public void setContactId(String contactId) {
+ this.contactId = contactId;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner addressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ return this;
+ }
+
+ /**
+ * The address line 1 for the end user/customer.
+ * @return addressLine1
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine1() {
+ return addressLine1;
+ }
+
+ public void setAddressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner addressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ return this;
+ }
+
+ /**
+ * The address line 2 for the end user/customer.
+ * @return addressLine2
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine2() {
+ return addressLine2;
+ }
+
+ public void setAddressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner addressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ return this;
+ }
+
+ /**
+ * The address line 3 for the end user/customer.
+ * @return addressLine3
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine3() {
+ return addressLine3;
+ }
+
+ public void setAddressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner contact(String contact) {
+ this.contact = contact;
+ return this;
+ }
+
+ /**
+ * The contact name for the end user/customer.
+ * @return contact
+ **/
+ @javax.annotation.Nullable
+ public String getContact() {
+ return contact;
+ }
+
+ public void setContact(String contact) {
+ this.contact = contact;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner city(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * The end user/customer's city.
+ * @return city
+ **/
+ @javax.annotation.Nullable
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * The end user/customer's state.
+ * @return state
+ **/
+ @javax.annotation.Nullable
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner postalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
+
+ /**
+ * The end user/customer's zip or postal code.
+ * @return postalCode
+ **/
+ @javax.annotation.Nullable
+ public String getPostalCode() {
+ return postalCode;
+ }
+
+ public void setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner addressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ return this;
+ }
+
+ /**
+ * The address line 4 for the end user/customer.
+ * @return addressLine4
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine4() {
+ return addressLine4;
+ }
+
+ public void setAddressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner countryCode(String countryCode) {
+ this.countryCode = countryCode;
+ return this;
+ }
+
+ /**
+ * The end user/customer's two character ISO country code.
+ * @return countryCode
+ **/
+ @javax.annotation.Nullable
+ public String getCountryCode() {
+ return countryCode;
+ }
+
+ public void setCountryCode(String countryCode) {
+ this.countryCode = countryCode;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner phoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ return this;
+ }
+
+ /**
+ * The end user/customer's phone number.
+ * @return phoneNumber
+ **/
+ @javax.annotation.Nullable
+ public String getPhoneNumber() {
+ return phoneNumber;
+ }
+
+ public void setPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner email(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /**
+ * The end user/customer's phone number.
+ * @return email
+ **/
+ @javax.annotation.Nullable
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOLinesInnerEndUserInfoInner asyncOrderCreateDTOLinesInnerEndUserInfoInner = (AsyncOrderCreateDTOLinesInnerEndUserInfoInner) o;
+ return Objects.equals(this.endUserId, asyncOrderCreateDTOLinesInnerEndUserInfoInner.endUserId) &&
+ Objects.equals(this.endUserType, asyncOrderCreateDTOLinesInnerEndUserInfoInner.endUserType) &&
+ Objects.equals(this.companyName, asyncOrderCreateDTOLinesInnerEndUserInfoInner.companyName) &&
+ Objects.equals(this.name1, asyncOrderCreateDTOLinesInnerEndUserInfoInner.name1) &&
+ Objects.equals(this.name2, asyncOrderCreateDTOLinesInnerEndUserInfoInner.name2) &&
+ Objects.equals(this.contactId, asyncOrderCreateDTOLinesInnerEndUserInfoInner.contactId) &&
+ Objects.equals(this.addressLine1, asyncOrderCreateDTOLinesInnerEndUserInfoInner.addressLine1) &&
+ Objects.equals(this.addressLine2, asyncOrderCreateDTOLinesInnerEndUserInfoInner.addressLine2) &&
+ Objects.equals(this.addressLine3, asyncOrderCreateDTOLinesInnerEndUserInfoInner.addressLine3) &&
+ Objects.equals(this.contact, asyncOrderCreateDTOLinesInnerEndUserInfoInner.contact) &&
+ Objects.equals(this.city, asyncOrderCreateDTOLinesInnerEndUserInfoInner.city) &&
+ Objects.equals(this.state, asyncOrderCreateDTOLinesInnerEndUserInfoInner.state) &&
+ Objects.equals(this.postalCode, asyncOrderCreateDTOLinesInnerEndUserInfoInner.postalCode) &&
+ Objects.equals(this.addressLine4, asyncOrderCreateDTOLinesInnerEndUserInfoInner.addressLine4) &&
+ Objects.equals(this.countryCode, asyncOrderCreateDTOLinesInnerEndUserInfoInner.countryCode) &&
+ Objects.equals(this.phoneNumber, asyncOrderCreateDTOLinesInnerEndUserInfoInner.phoneNumber) &&
+ Objects.equals(this.email, asyncOrderCreateDTOLinesInnerEndUserInfoInner.email);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(endUserId, endUserType, companyName, name1, name2, contactId, addressLine1, addressLine2, addressLine3, contact, city, state, postalCode, addressLine4, countryCode, phoneNumber, email);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOLinesInnerEndUserInfoInner {\n");
+ sb.append(" endUserId: ").append(toIndentedString(endUserId)).append("\n");
+ sb.append(" endUserType: ").append(toIndentedString(endUserType)).append("\n");
+ sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
+ sb.append(" name1: ").append(toIndentedString(name1)).append("\n");
+ sb.append(" name2: ").append(toIndentedString(name2)).append("\n");
+ sb.append(" contactId: ").append(toIndentedString(contactId)).append("\n");
+ sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n");
+ sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n");
+ sb.append(" addressLine3: ").append(toIndentedString(addressLine3)).append("\n");
+ sb.append(" contact: ").append(toIndentedString(contact)).append("\n");
+ sb.append(" city: ").append(toIndentedString(city)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
+ sb.append(" addressLine4: ").append(toIndentedString(addressLine4)).append("\n");
+ sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
+ sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
+ sb.append(" email: ").append(toIndentedString(email)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("endUserId");
+ openapiFields.add("endUserType");
+ openapiFields.add("companyName");
+ openapiFields.add("name1");
+ openapiFields.add("name2");
+ openapiFields.add("contactId");
+ openapiFields.add("addressLine1");
+ openapiFields.add("addressLine2");
+ openapiFields.add("addressLine3");
+ openapiFields.add("contact");
+ openapiFields.add("city");
+ openapiFields.add("state");
+ openapiFields.add("postalCode");
+ openapiFields.add("addressLine4");
+ openapiFields.add("countryCode");
+ openapiFields.add("phoneNumber");
+ openapiFields.add("email");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOLinesInnerEndUserInfoInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOLinesInnerEndUserInfoInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOLinesInnerEndUserInfoInner is not found in the empty JSON string", AsyncOrderCreateDTOLinesInnerEndUserInfoInner.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOLinesInnerEndUserInfoInner.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOLinesInnerEndUserInfoInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("endUserId") != null && !jsonObj.get("endUserId").isJsonNull()) && !jsonObj.get("endUserId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `endUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endUserId").toString()));
+ }
+ if ((jsonObj.get("endUserType") != null && !jsonObj.get("endUserType").isJsonNull()) && !jsonObj.get("endUserType").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `endUserType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endUserType").toString()));
+ }
+ if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString()));
+ }
+ if ((jsonObj.get("name1") != null && !jsonObj.get("name1").isJsonNull()) && !jsonObj.get("name1").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `name1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name1").toString()));
+ }
+ if ((jsonObj.get("name2") != null && !jsonObj.get("name2").isJsonNull()) && !jsonObj.get("name2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `name2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name2").toString()));
+ }
+ if ((jsonObj.get("contactId") != null && !jsonObj.get("contactId").isJsonNull()) && !jsonObj.get("contactId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `contactId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contactId").toString()));
+ }
+ if ((jsonObj.get("addressLine1") != null && !jsonObj.get("addressLine1").isJsonNull()) && !jsonObj.get("addressLine1").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine1").toString()));
+ }
+ if ((jsonObj.get("addressLine2") != null && !jsonObj.get("addressLine2").isJsonNull()) && !jsonObj.get("addressLine2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine2").toString()));
+ }
+ if ((jsonObj.get("addressLine3") != null && !jsonObj.get("addressLine3").isJsonNull()) && !jsonObj.get("addressLine3").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine3").toString()));
+ }
+ if ((jsonObj.get("contact") != null && !jsonObj.get("contact").isJsonNull()) && !jsonObj.get("contact").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `contact` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contact").toString()));
+ }
+ if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
+ }
+ if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
+ }
+ if ((jsonObj.get("postalCode") != null && !jsonObj.get("postalCode").isJsonNull()) && !jsonObj.get("postalCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `postalCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("postalCode").toString()));
+ }
+ if ((jsonObj.get("addressLine4") != null && !jsonObj.get("addressLine4").isJsonNull()) && !jsonObj.get("addressLine4").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine4` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine4").toString()));
+ }
+ if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
+ }
+ if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) && !jsonObj.get("phoneNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phoneNumber").toString()));
+ }
+ if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOLinesInnerEndUserInfoInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOLinesInnerEndUserInfoInner' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOLinesInnerEndUserInfoInner.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOLinesInnerEndUserInfoInner value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOLinesInnerEndUserInfoInner read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOLinesInnerEndUserInfoInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOLinesInnerEndUserInfoInner
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOLinesInnerEndUserInfoInner
+ */
+ public static AsyncOrderCreateDTOLinesInnerEndUserInfoInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOLinesInnerEndUserInfoInner.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOLinesInnerEndUserInfoInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOEndUserInfo.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOResellerInfo.java
similarity index 66%
rename from src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOEndUserInfo.java
rename to src/main/java/xiresellers/client/model/AsyncOrderCreateDTOResellerInfo.java
index 3844ac61..b40467ae 100644
--- a/src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOEndUserInfo.java
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOResellerInfo.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -47,10 +47,14 @@
import xiresellers.client.JSON;
/**
- * The contact information for the end user/customer provided by the reseller. Used to determine pricing and discounts.
+ * The address and contact information provided by the reseller.
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
-public class QuoteToOrderDetailsDTOEndUserInfo {
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOResellerInfo {
+ public static final String SERIALIZED_NAME_RESELLER_ID = "resellerId";
+ @SerializedName(SERIALIZED_NAME_RESELLER_ID)
+ private String resellerId;
+
public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName";
@SerializedName(SERIALIZED_NAME_COMPANY_NAME)
private String companyName;
@@ -71,6 +75,10 @@ public class QuoteToOrderDetailsDTOEndUserInfo {
@SerializedName(SERIALIZED_NAME_ADDRESS_LINE3)
private String addressLine3;
+ public static final String SERIALIZED_NAME_ADDRESS_LINE4 = "addressLine4";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE4)
+ private String addressLine4;
+
public static final String SERIALIZED_NAME_CITY = "city";
@SerializedName(SERIALIZED_NAME_CITY)
private String city;
@@ -87,24 +95,43 @@ public class QuoteToOrderDetailsDTOEndUserInfo {
@SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
private String countryCode;
+ public static final String SERIALIZED_NAME_PHONE_NUMBER = "phoneNumber";
+ @SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
+ private String phoneNumber;
+
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
private String email;
- public static final String SERIALIZED_NAME_PHONE_NUMBER = "phoneNumber";
- @SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
- private String phoneNumber;
+ public AsyncOrderCreateDTOResellerInfo() {
+ }
+
+ public AsyncOrderCreateDTOResellerInfo resellerId(String resellerId) {
+ this.resellerId = resellerId;
+ return this;
+ }
- public QuoteToOrderDetailsDTOEndUserInfo() {
+ /**
+ * The reseller's Id.
+ * @return resellerId
+ **/
+ @javax.annotation.Nullable
+ public String getResellerId() {
+ return resellerId;
}
- public QuoteToOrderDetailsDTOEndUserInfo companyName(String companyName) {
+ public void setResellerId(String resellerId) {
+ this.resellerId = resellerId;
+ }
+
+
+ public AsyncOrderCreateDTOResellerInfo companyName(String companyName) {
this.companyName = companyName;
return this;
}
/**
- * The company name for the end user/customer.
+ * The reseller's company name.
* @return companyName
**/
@javax.annotation.Nullable
@@ -117,13 +144,13 @@ public void setCompanyName(String companyName) {
}
- public QuoteToOrderDetailsDTOEndUserInfo contact(String contact) {
+ public AsyncOrderCreateDTOResellerInfo contact(String contact) {
this.contact = contact;
return this;
}
/**
- * The contact name for the end user/customer.
+ * The reseller's contact name.
* @return contact
**/
@javax.annotation.Nullable
@@ -136,13 +163,13 @@ public void setContact(String contact) {
}
- public QuoteToOrderDetailsDTOEndUserInfo addressLine1(String addressLine1) {
+ public AsyncOrderCreateDTOResellerInfo addressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
return this;
}
/**
- * The address line 1 for the end user/customer.
+ * The reseller's address line 1.
* @return addressLine1
**/
@javax.annotation.Nullable
@@ -155,13 +182,13 @@ public void setAddressLine1(String addressLine1) {
}
- public QuoteToOrderDetailsDTOEndUserInfo addressLine2(String addressLine2) {
+ public AsyncOrderCreateDTOResellerInfo addressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
return this;
}
/**
- * The address line 2 for the end user/customer.
+ * The reseller's address line 2.
* @return addressLine2
**/
@javax.annotation.Nullable
@@ -174,13 +201,13 @@ public void setAddressLine2(String addressLine2) {
}
- public QuoteToOrderDetailsDTOEndUserInfo addressLine3(String addressLine3) {
+ public AsyncOrderCreateDTOResellerInfo addressLine3(String addressLine3) {
this.addressLine3 = addressLine3;
return this;
}
/**
- * The address line 3 for the end user/customer.
+ * The reseller's address line 3.
* @return addressLine3
**/
@javax.annotation.Nullable
@@ -193,13 +220,32 @@ public void setAddressLine3(String addressLine3) {
}
- public QuoteToOrderDetailsDTOEndUserInfo city(String city) {
+ public AsyncOrderCreateDTOResellerInfo addressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ return this;
+ }
+
+ /**
+ * The reseller's address line 4.
+ * @return addressLine4
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine4() {
+ return addressLine4;
+ }
+
+ public void setAddressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ }
+
+
+ public AsyncOrderCreateDTOResellerInfo city(String city) {
this.city = city;
return this;
}
/**
- * The end user/customer's city.
+ * The reseller's city.
* @return city
**/
@javax.annotation.Nullable
@@ -212,13 +258,13 @@ public void setCity(String city) {
}
- public QuoteToOrderDetailsDTOEndUserInfo state(String state) {
+ public AsyncOrderCreateDTOResellerInfo state(String state) {
this.state = state;
return this;
}
/**
- * The end user/customer's state.
+ * The reseller's state.
* @return state
**/
@javax.annotation.Nullable
@@ -231,13 +277,13 @@ public void setState(String state) {
}
- public QuoteToOrderDetailsDTOEndUserInfo postalCode(String postalCode) {
+ public AsyncOrderCreateDTOResellerInfo postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
- * The end user/customer's zip or postal code.
+ * The reseller's zip or postal code.
* @return postalCode
**/
@javax.annotation.Nullable
@@ -250,13 +296,13 @@ public void setPostalCode(String postalCode) {
}
- public QuoteToOrderDetailsDTOEndUserInfo countryCode(String countryCode) {
+ public AsyncOrderCreateDTOResellerInfo countryCode(String countryCode) {
this.countryCode = countryCode;
return this;
}
/**
- * The end user/customer's two character ISO country code.
+ * The reseller's two-character ISO country code.
* @return countryCode
**/
@javax.annotation.Nullable
@@ -269,41 +315,41 @@ public void setCountryCode(String countryCode) {
}
- public QuoteToOrderDetailsDTOEndUserInfo email(String email) {
- this.email = email;
+ public AsyncOrderCreateDTOResellerInfo phoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
return this;
}
/**
- * The end user/customer's phone number.
- * @return email
+ * The reseller's phone number.
+ * @return phoneNumber
**/
@javax.annotation.Nullable
- public String getEmail() {
- return email;
+ public String getPhoneNumber() {
+ return phoneNumber;
}
- public void setEmail(String email) {
- this.email = email;
+ public void setPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
}
- public QuoteToOrderDetailsDTOEndUserInfo phoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
+ public AsyncOrderCreateDTOResellerInfo email(String email) {
+ this.email = email;
return this;
}
/**
- * The end user/customer's phone number.
- * @return phoneNumber
+ * The reseller's Email Address.
+ * @return email
**/
@javax.annotation.Nullable
- public String getPhoneNumber() {
- return phoneNumber;
+ public String getEmail() {
+ return email;
}
- public void setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
+ public void setEmail(String email) {
+ this.email = email;
}
@@ -316,40 +362,44 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- QuoteToOrderDetailsDTOEndUserInfo quoteToOrderDetailsDTOEndUserInfo = (QuoteToOrderDetailsDTOEndUserInfo) o;
- return Objects.equals(this.companyName, quoteToOrderDetailsDTOEndUserInfo.companyName) &&
- Objects.equals(this.contact, quoteToOrderDetailsDTOEndUserInfo.contact) &&
- Objects.equals(this.addressLine1, quoteToOrderDetailsDTOEndUserInfo.addressLine1) &&
- Objects.equals(this.addressLine2, quoteToOrderDetailsDTOEndUserInfo.addressLine2) &&
- Objects.equals(this.addressLine3, quoteToOrderDetailsDTOEndUserInfo.addressLine3) &&
- Objects.equals(this.city, quoteToOrderDetailsDTOEndUserInfo.city) &&
- Objects.equals(this.state, quoteToOrderDetailsDTOEndUserInfo.state) &&
- Objects.equals(this.postalCode, quoteToOrderDetailsDTOEndUserInfo.postalCode) &&
- Objects.equals(this.countryCode, quoteToOrderDetailsDTOEndUserInfo.countryCode) &&
- Objects.equals(this.email, quoteToOrderDetailsDTOEndUserInfo.email) &&
- Objects.equals(this.phoneNumber, quoteToOrderDetailsDTOEndUserInfo.phoneNumber);
+ AsyncOrderCreateDTOResellerInfo asyncOrderCreateDTOResellerInfo = (AsyncOrderCreateDTOResellerInfo) o;
+ return Objects.equals(this.resellerId, asyncOrderCreateDTOResellerInfo.resellerId) &&
+ Objects.equals(this.companyName, asyncOrderCreateDTOResellerInfo.companyName) &&
+ Objects.equals(this.contact, asyncOrderCreateDTOResellerInfo.contact) &&
+ Objects.equals(this.addressLine1, asyncOrderCreateDTOResellerInfo.addressLine1) &&
+ Objects.equals(this.addressLine2, asyncOrderCreateDTOResellerInfo.addressLine2) &&
+ Objects.equals(this.addressLine3, asyncOrderCreateDTOResellerInfo.addressLine3) &&
+ Objects.equals(this.addressLine4, asyncOrderCreateDTOResellerInfo.addressLine4) &&
+ Objects.equals(this.city, asyncOrderCreateDTOResellerInfo.city) &&
+ Objects.equals(this.state, asyncOrderCreateDTOResellerInfo.state) &&
+ Objects.equals(this.postalCode, asyncOrderCreateDTOResellerInfo.postalCode) &&
+ Objects.equals(this.countryCode, asyncOrderCreateDTOResellerInfo.countryCode) &&
+ Objects.equals(this.phoneNumber, asyncOrderCreateDTOResellerInfo.phoneNumber) &&
+ Objects.equals(this.email, asyncOrderCreateDTOResellerInfo.email);
}
@Override
public int hashCode() {
- return Objects.hash(companyName, contact, addressLine1, addressLine2, addressLine3, city, state, postalCode, countryCode, email, phoneNumber);
+ return Objects.hash(resellerId, companyName, contact, addressLine1, addressLine2, addressLine3, addressLine4, city, state, postalCode, countryCode, phoneNumber, email);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class QuoteToOrderDetailsDTOEndUserInfo {\n");
+ sb.append("class AsyncOrderCreateDTOResellerInfo {\n");
+ sb.append(" resellerId: ").append(toIndentedString(resellerId)).append("\n");
sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
sb.append(" contact: ").append(toIndentedString(contact)).append("\n");
sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n");
sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n");
sb.append(" addressLine3: ").append(toIndentedString(addressLine3)).append("\n");
+ sb.append(" addressLine4: ").append(toIndentedString(addressLine4)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
- sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
+ sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -372,17 +422,19 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet();
+ openapiFields.add("resellerId");
openapiFields.add("companyName");
openapiFields.add("contact");
openapiFields.add("addressLine1");
openapiFields.add("addressLine2");
openapiFields.add("addressLine3");
+ openapiFields.add("addressLine4");
openapiFields.add("city");
openapiFields.add("state");
openapiFields.add("postalCode");
openapiFields.add("countryCode");
- openapiFields.add("email");
openapiFields.add("phoneNumber");
+ openapiFields.add("email");
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
@@ -392,23 +444,26 @@ private String toIndentedString(Object o) {
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to QuoteToOrderDetailsDTOEndUserInfo
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOResellerInfo
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
- if (!QuoteToOrderDetailsDTOEndUserInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in QuoteToOrderDetailsDTOEndUserInfo is not found in the empty JSON string", QuoteToOrderDetailsDTOEndUserInfo.openapiRequiredFields.toString()));
+ if (!AsyncOrderCreateDTOResellerInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOResellerInfo is not found in the empty JSON string", AsyncOrderCreateDTOResellerInfo.openapiRequiredFields.toString()));
}
}
Set> entries = jsonElement.getAsJsonObject().entrySet();
// check to see if the JSON string contains additional fields
for (Map.Entry entry : entries) {
- if (!QuoteToOrderDetailsDTOEndUserInfo.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QuoteToOrderDetailsDTOEndUserInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ if (!AsyncOrderCreateDTOResellerInfo.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOResellerInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("resellerId") != null && !jsonObj.get("resellerId").isJsonNull()) && !jsonObj.get("resellerId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `resellerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resellerId").toString()));
+ }
if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString()));
}
@@ -424,6 +479,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("addressLine3") != null && !jsonObj.get("addressLine3").isJsonNull()) && !jsonObj.get("addressLine3").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `addressLine3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine3").toString()));
}
+ if ((jsonObj.get("addressLine4") != null && !jsonObj.get("addressLine4").isJsonNull()) && !jsonObj.get("addressLine4").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine4` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine4").toString()));
+ }
if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
}
@@ -436,34 +494,34 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
}
- if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
- }
if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) && !jsonObj.get("phoneNumber").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phoneNumber").toString()));
}
+ if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
@SuppressWarnings("unchecked")
@Override
public TypeAdapter create(Gson gson, TypeToken type) {
- if (!QuoteToOrderDetailsDTOEndUserInfo.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'QuoteToOrderDetailsDTOEndUserInfo' and its subtypes
+ if (!AsyncOrderCreateDTOResellerInfo.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOResellerInfo' and its subtypes
}
final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(QuoteToOrderDetailsDTOEndUserInfo.class));
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOResellerInfo.class));
- return (TypeAdapter) new TypeAdapter() {
+ return (TypeAdapter) new TypeAdapter() {
@Override
- public void write(JsonWriter out, QuoteToOrderDetailsDTOEndUserInfo value) throws IOException {
+ public void write(JsonWriter out, AsyncOrderCreateDTOResellerInfo value) throws IOException {
JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
elementAdapter.write(out, obj);
}
@Override
- public QuoteToOrderDetailsDTOEndUserInfo read(JsonReader in) throws IOException {
+ public AsyncOrderCreateDTOResellerInfo read(JsonReader in) throws IOException {
JsonElement jsonElement = elementAdapter.read(in);
validateJsonElement(jsonElement);
return thisAdapter.fromJsonTree(jsonElement);
@@ -474,18 +532,18 @@ public QuoteToOrderDetailsDTOEndUserInfo read(JsonReader in) throws IOException
}
/**
- * Create an instance of QuoteToOrderDetailsDTOEndUserInfo given an JSON string
+ * Create an instance of AsyncOrderCreateDTOResellerInfo given an JSON string
*
* @param jsonString JSON string
- * @return An instance of QuoteToOrderDetailsDTOEndUserInfo
- * @throws IOException if the JSON string is invalid with respect to QuoteToOrderDetailsDTOEndUserInfo
+ * @return An instance of AsyncOrderCreateDTOResellerInfo
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOResellerInfo
*/
- public static QuoteToOrderDetailsDTOEndUserInfo fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, QuoteToOrderDetailsDTOEndUserInfo.class);
+ public static AsyncOrderCreateDTOResellerInfo fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOResellerInfo.class);
}
/**
- * Convert an instance of QuoteToOrderDetailsDTOEndUserInfo to an JSON string
+ * Convert an instance of AsyncOrderCreateDTOResellerInfo to an JSON string
*
* @return JSON string
*/
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipToInfo.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipToInfo.java
new file mode 100644
index 00000000..8b4e0a40
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipToInfo.java
@@ -0,0 +1,653 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+import org.openapitools.jackson.nullable.JsonNullable;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * The shipping information provided by the reseller for order delivery.
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOShipToInfo {
+ public static final String SERIALIZED_NAME_ADDRESS_ID = "addressId";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_ID)
+ private String addressId;
+
+ public static final String SERIALIZED_NAME_CONTACT = "contact";
+ @SerializedName(SERIALIZED_NAME_CONTACT)
+ private String contact;
+
+ public static final String SERIALIZED_NAME_COMPANY_NAME = "companyName";
+ @SerializedName(SERIALIZED_NAME_COMPANY_NAME)
+ private String companyName;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE1 = "addressLine1";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE1)
+ private String addressLine1;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE2 = "addressLine2";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE2)
+ private String addressLine2;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE3 = "addressLine3";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE3)
+ private String addressLine3;
+
+ public static final String SERIALIZED_NAME_ADDRESS_LINE4 = "addressLine4";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_LINE4)
+ private String addressLine4;
+
+ public static final String SERIALIZED_NAME_NAME1 = "name1";
+ @SerializedName(SERIALIZED_NAME_NAME1)
+ private String name1;
+
+ public static final String SERIALIZED_NAME_NAME2 = "name2";
+ @SerializedName(SERIALIZED_NAME_NAME2)
+ private String name2;
+
+ public static final String SERIALIZED_NAME_CITY = "city";
+ @SerializedName(SERIALIZED_NAME_CITY)
+ private String city;
+
+ public static final String SERIALIZED_NAME_STATE = "state";
+ @SerializedName(SERIALIZED_NAME_STATE)
+ private String state;
+
+ public static final String SERIALIZED_NAME_POSTAL_CODE = "postalCode";
+ @SerializedName(SERIALIZED_NAME_POSTAL_CODE)
+ private String postalCode;
+
+ public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
+ @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
+ private String countryCode;
+
+ public static final String SERIALIZED_NAME_EMAIL = "email";
+ @SerializedName(SERIALIZED_NAME_EMAIL)
+ private String email;
+
+ public static final String SERIALIZED_NAME_SHIPPING_NOTES = "shippingNotes";
+ @SerializedName(SERIALIZED_NAME_SHIPPING_NOTES)
+ private String shippingNotes;
+
+ public static final String SERIALIZED_NAME_PHONE_NUMBER = "phoneNumber";
+ @SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
+ private String phoneNumber;
+
+ public AsyncOrderCreateDTOShipToInfo() {
+ }
+
+ public AsyncOrderCreateDTOShipToInfo addressId(String addressId) {
+ this.addressId = addressId;
+ return this;
+ }
+
+ /**
+ * The company contact provided by the reseller.
+ * @return addressId
+ **/
+ @javax.annotation.Nullable
+ public String getAddressId() {
+ return addressId;
+ }
+
+ public void setAddressId(String addressId) {
+ this.addressId = addressId;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo contact(String contact) {
+ this.contact = contact;
+ return this;
+ }
+
+ /**
+ * The contact name for the order will be shipped to.
+ * @return contact
+ **/
+ @javax.annotation.Nullable
+ public String getContact() {
+ return contact;
+ }
+
+ public void setContact(String contact) {
+ this.contact = contact;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo companyName(String companyName) {
+ this.companyName = companyName;
+ return this;
+ }
+
+ /**
+ * The name of the company the order will be shipped to.
+ * @return companyName
+ **/
+ @javax.annotation.Nullable
+ public String getCompanyName() {
+ return companyName;
+ }
+
+ public void setCompanyName(String companyName) {
+ this.companyName = companyName;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo addressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ return this;
+ }
+
+ /**
+ * The address line 1 the order will be shipped to.
+ * @return addressLine1
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine1() {
+ return addressLine1;
+ }
+
+ public void setAddressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo addressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ return this;
+ }
+
+ /**
+ * The address line 2 the order will be shipped to.
+ * @return addressLine2
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine2() {
+ return addressLine2;
+ }
+
+ public void setAddressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo addressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ return this;
+ }
+
+ /**
+ * The address line 3 the order will be shipped to.
+ * @return addressLine3
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine3() {
+ return addressLine3;
+ }
+
+ public void setAddressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo addressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ return this;
+ }
+
+ /**
+ * The address line 4 the order will be shipped to.
+ * @return addressLine4
+ **/
+ @javax.annotation.Nullable
+ public String getAddressLine4() {
+ return addressLine4;
+ }
+
+ public void setAddressLine4(String addressLine4) {
+ this.addressLine4 = addressLine4;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo name1(String name1) {
+ this.name1 = name1;
+ return this;
+ }
+
+ /**
+ * Need description
+ * @return name1
+ **/
+ @javax.annotation.Nullable
+ public String getName1() {
+ return name1;
+ }
+
+ public void setName1(String name1) {
+ this.name1 = name1;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo name2(String name2) {
+ this.name2 = name2;
+ return this;
+ }
+
+ /**
+ * Need description
+ * @return name2
+ **/
+ @javax.annotation.Nullable
+ public String getName2() {
+ return name2;
+ }
+
+ public void setName2(String name2) {
+ this.name2 = name2;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo city(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * The city the order will be shipped to.
+ * @return city
+ **/
+ @javax.annotation.Nullable
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * The state the order will be shipped to.
+ * @return state
+ **/
+ @javax.annotation.Nullable
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo postalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
+
+ /**
+ * The zip or postal code the order will be shipped to.
+ * @return postalCode
+ **/
+ @javax.annotation.Nullable
+ public String getPostalCode() {
+ return postalCode;
+ }
+
+ public void setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo countryCode(String countryCode) {
+ this.countryCode = countryCode;
+ return this;
+ }
+
+ /**
+ * The two-character ISO country code the order will be shipped to.
+ * @return countryCode
+ **/
+ @javax.annotation.Nullable
+ public String getCountryCode() {
+ return countryCode;
+ }
+
+ public void setCountryCode(String countryCode) {
+ this.countryCode = countryCode;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo email(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /**
+ * The company contact email address.
+ * @return email
+ **/
+ @javax.annotation.Nullable
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo shippingNotes(String shippingNotes) {
+ this.shippingNotes = shippingNotes;
+ return this;
+ }
+
+ /**
+ * Shipping Notes
+ * @return shippingNotes
+ **/
+ @javax.annotation.Nullable
+ public String getShippingNotes() {
+ return shippingNotes;
+ }
+
+ public void setShippingNotes(String shippingNotes) {
+ this.shippingNotes = shippingNotes;
+ }
+
+
+ public AsyncOrderCreateDTOShipToInfo phoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ return this;
+ }
+
+ /**
+ * Phone number for shipping
+ * @return phoneNumber
+ **/
+ @javax.annotation.Nullable
+ public String getPhoneNumber() {
+ return phoneNumber;
+ }
+
+ public void setPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOShipToInfo asyncOrderCreateDTOShipToInfo = (AsyncOrderCreateDTOShipToInfo) o;
+ return Objects.equals(this.addressId, asyncOrderCreateDTOShipToInfo.addressId) &&
+ Objects.equals(this.contact, asyncOrderCreateDTOShipToInfo.contact) &&
+ Objects.equals(this.companyName, asyncOrderCreateDTOShipToInfo.companyName) &&
+ Objects.equals(this.addressLine1, asyncOrderCreateDTOShipToInfo.addressLine1) &&
+ Objects.equals(this.addressLine2, asyncOrderCreateDTOShipToInfo.addressLine2) &&
+ Objects.equals(this.addressLine3, asyncOrderCreateDTOShipToInfo.addressLine3) &&
+ Objects.equals(this.addressLine4, asyncOrderCreateDTOShipToInfo.addressLine4) &&
+ Objects.equals(this.name1, asyncOrderCreateDTOShipToInfo.name1) &&
+ Objects.equals(this.name2, asyncOrderCreateDTOShipToInfo.name2) &&
+ Objects.equals(this.city, asyncOrderCreateDTOShipToInfo.city) &&
+ Objects.equals(this.state, asyncOrderCreateDTOShipToInfo.state) &&
+ Objects.equals(this.postalCode, asyncOrderCreateDTOShipToInfo.postalCode) &&
+ Objects.equals(this.countryCode, asyncOrderCreateDTOShipToInfo.countryCode) &&
+ Objects.equals(this.email, asyncOrderCreateDTOShipToInfo.email) &&
+ Objects.equals(this.shippingNotes, asyncOrderCreateDTOShipToInfo.shippingNotes) &&
+ Objects.equals(this.phoneNumber, asyncOrderCreateDTOShipToInfo.phoneNumber);
+ }
+
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(addressId, contact, companyName, addressLine1, addressLine2, addressLine3, addressLine4, name1, name2, city, state, postalCode, countryCode, email, shippingNotes, phoneNumber);
+ }
+
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOShipToInfo {\n");
+ sb.append(" addressId: ").append(toIndentedString(addressId)).append("\n");
+ sb.append(" contact: ").append(toIndentedString(contact)).append("\n");
+ sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
+ sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n");
+ sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n");
+ sb.append(" addressLine3: ").append(toIndentedString(addressLine3)).append("\n");
+ sb.append(" addressLine4: ").append(toIndentedString(addressLine4)).append("\n");
+ sb.append(" name1: ").append(toIndentedString(name1)).append("\n");
+ sb.append(" name2: ").append(toIndentedString(name2)).append("\n");
+ sb.append(" city: ").append(toIndentedString(city)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
+ sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
+ sb.append(" email: ").append(toIndentedString(email)).append("\n");
+ sb.append(" shippingNotes: ").append(toIndentedString(shippingNotes)).append("\n");
+ sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("addressId");
+ openapiFields.add("contact");
+ openapiFields.add("companyName");
+ openapiFields.add("addressLine1");
+ openapiFields.add("addressLine2");
+ openapiFields.add("addressLine3");
+ openapiFields.add("addressLine4");
+ openapiFields.add("name1");
+ openapiFields.add("name2");
+ openapiFields.add("city");
+ openapiFields.add("state");
+ openapiFields.add("postalCode");
+ openapiFields.add("countryCode");
+ openapiFields.add("email");
+ openapiFields.add("shippingNotes");
+ openapiFields.add("phoneNumber");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOShipToInfo
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOShipToInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOShipToInfo is not found in the empty JSON string", AsyncOrderCreateDTOShipToInfo.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOShipToInfo.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOShipToInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("addressId") != null && !jsonObj.get("addressId").isJsonNull()) && !jsonObj.get("addressId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressId").toString()));
+ }
+ if ((jsonObj.get("contact") != null && !jsonObj.get("contact").isJsonNull()) && !jsonObj.get("contact").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `contact` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contact").toString()));
+ }
+ if ((jsonObj.get("companyName") != null && !jsonObj.get("companyName").isJsonNull()) && !jsonObj.get("companyName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `companyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("companyName").toString()));
+ }
+ if ((jsonObj.get("addressLine1") != null && !jsonObj.get("addressLine1").isJsonNull()) && !jsonObj.get("addressLine1").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine1").toString()));
+ }
+ if ((jsonObj.get("addressLine2") != null && !jsonObj.get("addressLine2").isJsonNull()) && !jsonObj.get("addressLine2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine2").toString()));
+ }
+ if ((jsonObj.get("addressLine3") != null && !jsonObj.get("addressLine3").isJsonNull()) && !jsonObj.get("addressLine3").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine3").toString()));
+ }
+ if ((jsonObj.get("addressLine4") != null && !jsonObj.get("addressLine4").isJsonNull()) && !jsonObj.get("addressLine4").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `addressLine4` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine4").toString()));
+ }
+ if ((jsonObj.get("name1") != null && !jsonObj.get("name1").isJsonNull()) && !jsonObj.get("name1").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `name1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name1").toString()));
+ }
+ if ((jsonObj.get("name2") != null && !jsonObj.get("name2").isJsonNull()) && !jsonObj.get("name2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `name2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name2").toString()));
+ }
+ if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
+ }
+ if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
+ }
+ if ((jsonObj.get("postalCode") != null && !jsonObj.get("postalCode").isJsonNull()) && !jsonObj.get("postalCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `postalCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("postalCode").toString()));
+ }
+ if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
+ }
+ if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
+ }
+ if ((jsonObj.get("shippingNotes") != null && !jsonObj.get("shippingNotes").isJsonNull()) && !jsonObj.get("shippingNotes").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `shippingNotes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shippingNotes").toString()));
+ }
+ if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) && !jsonObj.get("phoneNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phoneNumber").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOShipToInfo.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOShipToInfo' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOShipToInfo.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOShipToInfo value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOShipToInfo read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOShipToInfo given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOShipToInfo
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOShipToInfo
+ */
+ public static AsyncOrderCreateDTOShipToInfo fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOShipToInfo.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOShipToInfo to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipmentDetails.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipmentDetails.java
new file mode 100644
index 00000000..b1ea252a
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOShipmentDetails.java
@@ -0,0 +1,348 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * Shipping details for the order provided by the customer.
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOShipmentDetails {
+ public static final String SERIALIZED_NAME_CARRIER_CODE = "carrierCode";
+ @SerializedName(SERIALIZED_NAME_CARRIER_CODE)
+ private String carrierCode;
+
+ public static final String SERIALIZED_NAME_REQUESTED_DELIVERY_DATE = "requestedDeliveryDate";
+ @SerializedName(SERIALIZED_NAME_REQUESTED_DELIVERY_DATE)
+ private String requestedDeliveryDate;
+
+ public static final String SERIALIZED_NAME_SHIP_COMPLETE = "shipComplete";
+ @SerializedName(SERIALIZED_NAME_SHIP_COMPLETE)
+ private String shipComplete;
+
+ public static final String SERIALIZED_NAME_SHIPPING_INSTRUCTIONS = "shippingInstructions";
+ @SerializedName(SERIALIZED_NAME_SHIPPING_INSTRUCTIONS)
+ private String shippingInstructions;
+
+ public static final String SERIALIZED_NAME_FREIGHT_ACCOUNT_NUMBER = "freightAccountNumber";
+ @SerializedName(SERIALIZED_NAME_FREIGHT_ACCOUNT_NUMBER)
+ private String freightAccountNumber;
+
+ public static final String SERIALIZED_NAME_SIGNATURE_REQUIRED = "signatureRequired";
+ @SerializedName(SERIALIZED_NAME_SIGNATURE_REQUIRED)
+ private Boolean signatureRequired;
+
+ public AsyncOrderCreateDTOShipmentDetails() {
+ }
+
+ public AsyncOrderCreateDTOShipmentDetails carrierCode(String carrierCode) {
+ this.carrierCode = carrierCode;
+ return this;
+ }
+
+ /**
+ * The code for the shipping carrier for the line item.
+ * @return carrierCode
+ **/
+ @javax.annotation.Nullable
+ public String getCarrierCode() {
+ return carrierCode;
+ }
+
+ public void setCarrierCode(String carrierCode) {
+ this.carrierCode = carrierCode;
+ }
+
+
+ public AsyncOrderCreateDTOShipmentDetails requestedDeliveryDate(String requestedDeliveryDate) {
+ this.requestedDeliveryDate = requestedDeliveryDate;
+ return this;
+ }
+
+ /**
+ * The reseller-requested delivery date in UTC format. Delivery date is not guaranteed.
+ * @return requestedDeliveryDate
+ **/
+ @javax.annotation.Nullable
+ public String getRequestedDeliveryDate() {
+ return requestedDeliveryDate;
+ }
+
+ public void setRequestedDeliveryDate(String requestedDeliveryDate) {
+ this.requestedDeliveryDate = requestedDeliveryDate;
+ }
+
+
+ public AsyncOrderCreateDTOShipmentDetails shipComplete(String shipComplete) {
+ this.shipComplete = shipComplete;
+ return this;
+ }
+
+ /**
+ * Specifies whether the shipment will be shipped only when all products are fulfilled. The value of this field along with acceptBackOrder field decides the value of backorderflag. If this field is set, acceptBackOrder field is ignored. Possible values for this field are true, C, P, E.
+ * @return shipComplete
+ **/
+ @javax.annotation.Nullable
+ public String getShipComplete() {
+ return shipComplete;
+ }
+
+ public void setShipComplete(String shipComplete) {
+ this.shipComplete = shipComplete;
+ }
+
+
+ public AsyncOrderCreateDTOShipmentDetails shippingInstructions(String shippingInstructions) {
+ this.shippingInstructions = shippingInstructions;
+ return this;
+ }
+
+ /**
+ * Any special shipping instructions for the order.
+ * @return shippingInstructions
+ **/
+ @javax.annotation.Nullable
+ public String getShippingInstructions() {
+ return shippingInstructions;
+ }
+
+ public void setShippingInstructions(String shippingInstructions) {
+ this.shippingInstructions = shippingInstructions;
+ }
+
+
+ public AsyncOrderCreateDTOShipmentDetails freightAccountNumber(String freightAccountNumber) {
+ this.freightAccountNumber = freightAccountNumber;
+ return this;
+ }
+
+ /**
+ * The reseller 's shipping account number with carrier. Used to bill the shipping carrier directly from the reseller's account with the carrier.
+ * @return freightAccountNumber
+ **/
+ @javax.annotation.Nullable
+ public String getFreightAccountNumber() {
+ return freightAccountNumber;
+ }
+
+ public void setFreightAccountNumber(String freightAccountNumber) {
+ this.freightAccountNumber = freightAccountNumber;
+ }
+
+
+ public AsyncOrderCreateDTOShipmentDetails signatureRequired(Boolean signatureRequired) {
+ this.signatureRequired = signatureRequired;
+ return this;
+ }
+
+ /**
+ * Specifies whether a signature is required for delivery. Default is False.
+ * @return signatureRequired
+ **/
+ @javax.annotation.Nullable
+ public Boolean getSignatureRequired() {
+ return signatureRequired;
+ }
+
+ public void setSignatureRequired(Boolean signatureRequired) {
+ this.signatureRequired = signatureRequired;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOShipmentDetails asyncOrderCreateDTOShipmentDetails = (AsyncOrderCreateDTOShipmentDetails) o;
+ return Objects.equals(this.carrierCode, asyncOrderCreateDTOShipmentDetails.carrierCode) &&
+ Objects.equals(this.requestedDeliveryDate, asyncOrderCreateDTOShipmentDetails.requestedDeliveryDate) &&
+ Objects.equals(this.shipComplete, asyncOrderCreateDTOShipmentDetails.shipComplete) &&
+ Objects.equals(this.shippingInstructions, asyncOrderCreateDTOShipmentDetails.shippingInstructions) &&
+ Objects.equals(this.freightAccountNumber, asyncOrderCreateDTOShipmentDetails.freightAccountNumber) &&
+ Objects.equals(this.signatureRequired, asyncOrderCreateDTOShipmentDetails.signatureRequired);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(carrierCode, requestedDeliveryDate, shipComplete, shippingInstructions, freightAccountNumber, signatureRequired);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOShipmentDetails {\n");
+ sb.append(" carrierCode: ").append(toIndentedString(carrierCode)).append("\n");
+ sb.append(" requestedDeliveryDate: ").append(toIndentedString(requestedDeliveryDate)).append("\n");
+ sb.append(" shipComplete: ").append(toIndentedString(shipComplete)).append("\n");
+ sb.append(" shippingInstructions: ").append(toIndentedString(shippingInstructions)).append("\n");
+ sb.append(" freightAccountNumber: ").append(toIndentedString(freightAccountNumber)).append("\n");
+ sb.append(" signatureRequired: ").append(toIndentedString(signatureRequired)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("carrierCode");
+ openapiFields.add("requestedDeliveryDate");
+ openapiFields.add("shipComplete");
+ openapiFields.add("shippingInstructions");
+ openapiFields.add("freightAccountNumber");
+ openapiFields.add("signatureRequired");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOShipmentDetails
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOShipmentDetails.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOShipmentDetails is not found in the empty JSON string", AsyncOrderCreateDTOShipmentDetails.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOShipmentDetails.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOShipmentDetails` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("carrierCode") != null && !jsonObj.get("carrierCode").isJsonNull()) && !jsonObj.get("carrierCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `carrierCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("carrierCode").toString()));
+ }
+ if ((jsonObj.get("requestedDeliveryDate") != null && !jsonObj.get("requestedDeliveryDate").isJsonNull()) && !jsonObj.get("requestedDeliveryDate").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `requestedDeliveryDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestedDeliveryDate").toString()));
+ }
+ if ((jsonObj.get("shipComplete") != null && !jsonObj.get("shipComplete").isJsonNull()) && !jsonObj.get("shipComplete").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `shipComplete` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shipComplete").toString()));
+ }
+ if ((jsonObj.get("shippingInstructions") != null && !jsonObj.get("shippingInstructions").isJsonNull()) && !jsonObj.get("shippingInstructions").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `shippingInstructions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shippingInstructions").toString()));
+ }
+ if ((jsonObj.get("freightAccountNumber") != null && !jsonObj.get("freightAccountNumber").isJsonNull()) && !jsonObj.get("freightAccountNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `freightAccountNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("freightAccountNumber").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOShipmentDetails.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOShipmentDetails' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOShipmentDetails.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOShipmentDetails value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOShipmentDetails read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOShipmentDetails given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOShipmentDetails
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOShipmentDetails
+ */
+ public static AsyncOrderCreateDTOShipmentDetails fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOShipmentDetails.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOShipmentDetails to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOAdditionalAttributesInner.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOVmfadditionalAttributesInner.java
similarity index 70%
rename from src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOAdditionalAttributesInner.java
rename to src/main/java/xiresellers/client/model/AsyncOrderCreateDTOVmfadditionalAttributesInner.java
index db7aabcf..e620bd18 100644
--- a/src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOAdditionalAttributesInner.java
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOVmfadditionalAttributesInner.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -47,10 +47,10 @@
import xiresellers.client.JSON;
/**
- * QuoteToOrderDetailsDTOAdditionalAttributesInner
+ * AsyncOrderCreateDTOVmfadditionalAttributesInner
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
-public class QuoteToOrderDetailsDTOAdditionalAttributesInner {
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOVmfadditionalAttributesInner {
public static final String SERIALIZED_NAME_ATTRIBUTE_NAME = "attributeName";
@SerializedName(SERIALIZED_NAME_ATTRIBUTE_NAME)
private String attributeName;
@@ -59,16 +59,16 @@ public class QuoteToOrderDetailsDTOAdditionalAttributesInner {
@SerializedName(SERIALIZED_NAME_ATTRIBUTE_VALUE)
private String attributeValue;
- public QuoteToOrderDetailsDTOAdditionalAttributesInner() {
+ public AsyncOrderCreateDTOVmfadditionalAttributesInner() {
}
- public QuoteToOrderDetailsDTOAdditionalAttributesInner attributeName(String attributeName) {
+ public AsyncOrderCreateDTOVmfadditionalAttributesInner attributeName(String attributeName) {
this.attributeName = attributeName;
return this;
}
/**
- * The attribute name. allowDuplicateCustomerOrderNumber: Allow orders with duplicate customer PO numbers. Enables resellers to have the same PO number for multiple orders. enableCommentsAsLines: It will enable comments as lines.
+ * The name of the header level field.
* @return attributeName
**/
@javax.annotation.Nullable
@@ -81,13 +81,13 @@ public void setAttributeName(String attributeName) {
}
- public QuoteToOrderDetailsDTOAdditionalAttributesInner attributeValue(String attributeValue) {
+ public AsyncOrderCreateDTOVmfadditionalAttributesInner attributeValue(String attributeValue) {
this.attributeValue = attributeValue;
return this;
}
/**
- * The attribute field data.
+ * The value of the header level field.
* @return attributeValue
**/
@javax.annotation.Nullable
@@ -109,9 +109,9 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- QuoteToOrderDetailsDTOAdditionalAttributesInner quoteToOrderDetailsDTOAdditionalAttributesInner = (QuoteToOrderDetailsDTOAdditionalAttributesInner) o;
- return Objects.equals(this.attributeName, quoteToOrderDetailsDTOAdditionalAttributesInner.attributeName) &&
- Objects.equals(this.attributeValue, quoteToOrderDetailsDTOAdditionalAttributesInner.attributeValue);
+ AsyncOrderCreateDTOVmfadditionalAttributesInner asyncOrderCreateDTOVmfadditionalAttributesInner = (AsyncOrderCreateDTOVmfadditionalAttributesInner) o;
+ return Objects.equals(this.attributeName, asyncOrderCreateDTOVmfadditionalAttributesInner.attributeName) &&
+ Objects.equals(this.attributeValue, asyncOrderCreateDTOVmfadditionalAttributesInner.attributeValue);
}
@Override
@@ -122,7 +122,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class QuoteToOrderDetailsDTOAdditionalAttributesInner {\n");
+ sb.append("class AsyncOrderCreateDTOVmfadditionalAttributesInner {\n");
sb.append(" attributeName: ").append(toIndentedString(attributeName)).append("\n");
sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n");
sb.append("}");
@@ -158,20 +158,20 @@ private String toIndentedString(Object o) {
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to QuoteToOrderDetailsDTOAdditionalAttributesInner
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOVmfadditionalAttributesInner
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
- if (!QuoteToOrderDetailsDTOAdditionalAttributesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in QuoteToOrderDetailsDTOAdditionalAttributesInner is not found in the empty JSON string", QuoteToOrderDetailsDTOAdditionalAttributesInner.openapiRequiredFields.toString()));
+ if (!AsyncOrderCreateDTOVmfadditionalAttributesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOVmfadditionalAttributesInner is not found in the empty JSON string", AsyncOrderCreateDTOVmfadditionalAttributesInner.openapiRequiredFields.toString()));
}
}
Set> entries = jsonElement.getAsJsonObject().entrySet();
// check to see if the JSON string contains additional fields
for (Map.Entry entry : entries) {
- if (!QuoteToOrderDetailsDTOAdditionalAttributesInner.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QuoteToOrderDetailsDTOAdditionalAttributesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ if (!AsyncOrderCreateDTOVmfadditionalAttributesInner.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOVmfadditionalAttributesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
@@ -187,22 +187,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
@SuppressWarnings("unchecked")
@Override
public TypeAdapter create(Gson gson, TypeToken type) {
- if (!QuoteToOrderDetailsDTOAdditionalAttributesInner.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'QuoteToOrderDetailsDTOAdditionalAttributesInner' and its subtypes
+ if (!AsyncOrderCreateDTOVmfadditionalAttributesInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOVmfadditionalAttributesInner' and its subtypes
}
final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(QuoteToOrderDetailsDTOAdditionalAttributesInner.class));
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOVmfadditionalAttributesInner.class));
- return (TypeAdapter) new TypeAdapter() {
+ return (TypeAdapter) new TypeAdapter() {
@Override
- public void write(JsonWriter out, QuoteToOrderDetailsDTOAdditionalAttributesInner value) throws IOException {
+ public void write(JsonWriter out, AsyncOrderCreateDTOVmfadditionalAttributesInner value) throws IOException {
JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
elementAdapter.write(out, obj);
}
@Override
- public QuoteToOrderDetailsDTOAdditionalAttributesInner read(JsonReader in) throws IOException {
+ public AsyncOrderCreateDTOVmfadditionalAttributesInner read(JsonReader in) throws IOException {
JsonElement jsonElement = elementAdapter.read(in);
validateJsonElement(jsonElement);
return thisAdapter.fromJsonTree(jsonElement);
@@ -213,18 +213,18 @@ public QuoteToOrderDetailsDTOAdditionalAttributesInner read(JsonReader in) throw
}
/**
- * Create an instance of QuoteToOrderDetailsDTOAdditionalAttributesInner given an JSON string
+ * Create an instance of AsyncOrderCreateDTOVmfadditionalAttributesInner given an JSON string
*
* @param jsonString JSON string
- * @return An instance of QuoteToOrderDetailsDTOAdditionalAttributesInner
- * @throws IOException if the JSON string is invalid with respect to QuoteToOrderDetailsDTOAdditionalAttributesInner
+ * @return An instance of AsyncOrderCreateDTOVmfadditionalAttributesInner
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOVmfadditionalAttributesInner
*/
- public static QuoteToOrderDetailsDTOAdditionalAttributesInner fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, QuoteToOrderDetailsDTOAdditionalAttributesInner.class);
+ public static AsyncOrderCreateDTOVmfadditionalAttributesInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOVmfadditionalAttributesInner.class);
}
/**
- * Convert an instance of QuoteToOrderDetailsDTOAdditionalAttributesInner to an JSON string
+ * Convert an instance of AsyncOrderCreateDTOVmfadditionalAttributesInner to an JSON string
*
* @return JSON string
*/
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInner.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInner.java
new file mode 100644
index 00000000..eb975d85
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInner.java
@@ -0,0 +1,364 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import xiresellers.client.model.AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner;
+import xiresellers.client.model.AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * AsyncOrderCreateDTOWarrantyInfoInner
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOWarrantyInfoInner {
+ public static final String SERIALIZED_NAME_HARDWARE_LINE_LINK = "hardwareLineLink";
+ @SerializedName(SERIALIZED_NAME_HARDWARE_LINE_LINK)
+ private String hardwareLineLink;
+
+ public static final String SERIALIZED_NAME_WARRANTY_LINE_LINK = "warrantyLineLink";
+ @SerializedName(SERIALIZED_NAME_WARRANTY_LINE_LINK)
+ private String warrantyLineLink;
+
+ public static final String SERIALIZED_NAME_DIRECT_LINE_LINK = "directLineLink";
+ @SerializedName(SERIALIZED_NAME_DIRECT_LINE_LINK)
+ private String directLineLink;
+
+ public static final String SERIALIZED_NAME_SERIAL_INFO = "serialInfo";
+ @SerializedName(SERIALIZED_NAME_SERIAL_INFO)
+ private List serialInfo = new ArrayList<>();
+
+ public static final String SERIALIZED_NAME_VMF_ADDITIONAL_ATTRIBUTES_LINES = "vmfAdditionalAttributesLines";
+ @SerializedName(SERIALIZED_NAME_VMF_ADDITIONAL_ATTRIBUTES_LINES)
+ private List vmfAdditionalAttributesLines = new ArrayList<>();
+
+ public AsyncOrderCreateDTOWarrantyInfoInner() {
+ }
+
+ public AsyncOrderCreateDTOWarrantyInfoInner hardwareLineLink(String hardwareLineLink) {
+ this.hardwareLineLink = hardwareLineLink;
+ return this;
+ }
+
+ /**
+ * Get hardwareLineLink
+ * @return hardwareLineLink
+ **/
+ @javax.annotation.Nullable
+ public String getHardwareLineLink() {
+ return hardwareLineLink;
+ }
+
+ public void setHardwareLineLink(String hardwareLineLink) {
+ this.hardwareLineLink = hardwareLineLink;
+ }
+
+
+ public AsyncOrderCreateDTOWarrantyInfoInner warrantyLineLink(String warrantyLineLink) {
+ this.warrantyLineLink = warrantyLineLink;
+ return this;
+ }
+
+ /**
+ * Get warrantyLineLink
+ * @return warrantyLineLink
+ **/
+ @javax.annotation.Nullable
+ public String getWarrantyLineLink() {
+ return warrantyLineLink;
+ }
+
+ public void setWarrantyLineLink(String warrantyLineLink) {
+ this.warrantyLineLink = warrantyLineLink;
+ }
+
+
+ public AsyncOrderCreateDTOWarrantyInfoInner directLineLink(String directLineLink) {
+ this.directLineLink = directLineLink;
+ return this;
+ }
+
+ /**
+ * Get directLineLink
+ * @return directLineLink
+ **/
+ @javax.annotation.Nullable
+ public String getDirectLineLink() {
+ return directLineLink;
+ }
+
+ public void setDirectLineLink(String directLineLink) {
+ this.directLineLink = directLineLink;
+ }
+
+
+ public AsyncOrderCreateDTOWarrantyInfoInner serialInfo(List serialInfo) {
+ this.serialInfo = serialInfo;
+ return this;
+ }
+
+ public AsyncOrderCreateDTOWarrantyInfoInner addSerialInfoItem(AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner serialInfoItem) {
+ if (this.serialInfo == null) {
+ this.serialInfo = new ArrayList<>();
+ }
+ this.serialInfo.add(serialInfoItem);
+ return this;
+ }
+
+ /**
+ * Get serialInfo
+ * @return serialInfo
+ **/
+ @javax.annotation.Nullable
+ public List getSerialInfo() {
+ return serialInfo;
+ }
+
+ public void setSerialInfo(List serialInfo) {
+ this.serialInfo = serialInfo;
+ }
+
+
+ public AsyncOrderCreateDTOWarrantyInfoInner vmfAdditionalAttributesLines(List vmfAdditionalAttributesLines) {
+ this.vmfAdditionalAttributesLines = vmfAdditionalAttributesLines;
+ return this;
+ }
+
+ public AsyncOrderCreateDTOWarrantyInfoInner addVmfAdditionalAttributesLinesItem(AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner vmfAdditionalAttributesLinesItem) {
+ if (this.vmfAdditionalAttributesLines == null) {
+ this.vmfAdditionalAttributesLines = new ArrayList<>();
+ }
+ this.vmfAdditionalAttributesLines.add(vmfAdditionalAttributesLinesItem);
+ return this;
+ }
+
+ /**
+ * The object containing the list of fields required at a line level by the vendor.
+ * @return vmfAdditionalAttributesLines
+ **/
+ @javax.annotation.Nullable
+ public List getVmfAdditionalAttributesLines() {
+ return vmfAdditionalAttributesLines;
+ }
+
+ public void setVmfAdditionalAttributesLines(List vmfAdditionalAttributesLines) {
+ this.vmfAdditionalAttributesLines = vmfAdditionalAttributesLines;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOWarrantyInfoInner asyncOrderCreateDTOWarrantyInfoInner = (AsyncOrderCreateDTOWarrantyInfoInner) o;
+ return Objects.equals(this.hardwareLineLink, asyncOrderCreateDTOWarrantyInfoInner.hardwareLineLink) &&
+ Objects.equals(this.warrantyLineLink, asyncOrderCreateDTOWarrantyInfoInner.warrantyLineLink) &&
+ Objects.equals(this.directLineLink, asyncOrderCreateDTOWarrantyInfoInner.directLineLink) &&
+ Objects.equals(this.serialInfo, asyncOrderCreateDTOWarrantyInfoInner.serialInfo) &&
+ Objects.equals(this.vmfAdditionalAttributesLines, asyncOrderCreateDTOWarrantyInfoInner.vmfAdditionalAttributesLines);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(hardwareLineLink, warrantyLineLink, directLineLink, serialInfo, vmfAdditionalAttributesLines);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOWarrantyInfoInner {\n");
+ sb.append(" hardwareLineLink: ").append(toIndentedString(hardwareLineLink)).append("\n");
+ sb.append(" warrantyLineLink: ").append(toIndentedString(warrantyLineLink)).append("\n");
+ sb.append(" directLineLink: ").append(toIndentedString(directLineLink)).append("\n");
+ sb.append(" serialInfo: ").append(toIndentedString(serialInfo)).append("\n");
+ sb.append(" vmfAdditionalAttributesLines: ").append(toIndentedString(vmfAdditionalAttributesLines)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("hardwareLineLink");
+ openapiFields.add("warrantyLineLink");
+ openapiFields.add("directLineLink");
+ openapiFields.add("serialInfo");
+ openapiFields.add("vmfAdditionalAttributesLines");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOWarrantyInfoInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOWarrantyInfoInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOWarrantyInfoInner is not found in the empty JSON string", AsyncOrderCreateDTOWarrantyInfoInner.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOWarrantyInfoInner.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOWarrantyInfoInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("hardwareLineLink") != null && !jsonObj.get("hardwareLineLink").isJsonNull()) && !jsonObj.get("hardwareLineLink").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `hardwareLineLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hardwareLineLink").toString()));
+ }
+ if ((jsonObj.get("warrantyLineLink") != null && !jsonObj.get("warrantyLineLink").isJsonNull()) && !jsonObj.get("warrantyLineLink").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `warrantyLineLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warrantyLineLink").toString()));
+ }
+ if ((jsonObj.get("directLineLink") != null && !jsonObj.get("directLineLink").isJsonNull()) && !jsonObj.get("directLineLink").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `directLineLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("directLineLink").toString()));
+ }
+ if (jsonObj.get("serialInfo") != null && !jsonObj.get("serialInfo").isJsonNull()) {
+ JsonArray jsonArrayserialInfo = jsonObj.getAsJsonArray("serialInfo");
+ if (jsonArrayserialInfo != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("serialInfo").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `serialInfo` to be an array in the JSON string but got `%s`", jsonObj.get("serialInfo").toString()));
+ }
+
+ // validate the optional field `serialInfo` (array)
+ for (int i = 0; i < jsonArrayserialInfo.size(); i++) {
+ AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.validateJsonElement(jsonArrayserialInfo.get(i));
+ };
+ }
+ }
+ if (jsonObj.get("vmfAdditionalAttributesLines") != null && !jsonObj.get("vmfAdditionalAttributesLines").isJsonNull()) {
+ JsonArray jsonArrayvmfAdditionalAttributesLines = jsonObj.getAsJsonArray("vmfAdditionalAttributesLines");
+ if (jsonArrayvmfAdditionalAttributesLines != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("vmfAdditionalAttributesLines").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `vmfAdditionalAttributesLines` to be an array in the JSON string but got `%s`", jsonObj.get("vmfAdditionalAttributesLines").toString()));
+ }
+
+ // validate the optional field `vmfAdditionalAttributesLines` (array)
+ for (int i = 0; i < jsonArrayvmfAdditionalAttributesLines.size(); i++) {
+ AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.validateJsonElement(jsonArrayvmfAdditionalAttributesLines.get(i));
+ };
+ }
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOWarrantyInfoInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOWarrantyInfoInner' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOWarrantyInfoInner.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOWarrantyInfoInner value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOWarrantyInfoInner read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOWarrantyInfoInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOWarrantyInfoInner
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOWarrantyInfoInner
+ */
+ public static AsyncOrderCreateDTOWarrantyInfoInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOWarrantyInfoInner.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOWarrantyInfoInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.java
new file mode 100644
index 00000000..b77d5886
--- /dev/null
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.java
@@ -0,0 +1,293 @@
+/*
+ * XI Sdk Resellers
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package xiresellers.client.model;
+
+import java.util.Objects;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import xiresellers.client.JSON;
+
+/**
+ * AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner {
+ public static final String SERIALIZED_NAME_DATE_OF_PURCHASE = "dateOfPurchase";
+ @SerializedName(SERIALIZED_NAME_DATE_OF_PURCHASE)
+ private String dateOfPurchase;
+
+ public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate";
+ @SerializedName(SERIALIZED_NAME_SHIP_DATE)
+ private String shipDate;
+
+ public static final String SERIALIZED_NAME_PRIMARY_SERIAL_NUMBER = "primarySerialNumber";
+ @SerializedName(SERIALIZED_NAME_PRIMARY_SERIAL_NUMBER)
+ private String primarySerialNumber;
+
+ public static final String SERIALIZED_NAME_SECONDARY_SERIAL_NUMBER = "secondarySerialNumber";
+ @SerializedName(SERIALIZED_NAME_SECONDARY_SERIAL_NUMBER)
+ private String secondarySerialNumber;
+
+ public AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner() {
+ }
+
+ public AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner dateOfPurchase(String dateOfPurchase) {
+ this.dateOfPurchase = dateOfPurchase;
+ return this;
+ }
+
+ /**
+ * Get dateOfPurchase
+ * @return dateOfPurchase
+ **/
+ @javax.annotation.Nullable
+ public String getDateOfPurchase() {
+ return dateOfPurchase;
+ }
+
+ public void setDateOfPurchase(String dateOfPurchase) {
+ this.dateOfPurchase = dateOfPurchase;
+ }
+
+
+ public AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner shipDate(String shipDate) {
+ this.shipDate = shipDate;
+ return this;
+ }
+
+ /**
+ * Get shipDate
+ * @return shipDate
+ **/
+ @javax.annotation.Nullable
+ public String getShipDate() {
+ return shipDate;
+ }
+
+ public void setShipDate(String shipDate) {
+ this.shipDate = shipDate;
+ }
+
+
+ public AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner primarySerialNumber(String primarySerialNumber) {
+ this.primarySerialNumber = primarySerialNumber;
+ return this;
+ }
+
+ /**
+ * Get primarySerialNumber
+ * @return primarySerialNumber
+ **/
+ @javax.annotation.Nullable
+ public String getPrimarySerialNumber() {
+ return primarySerialNumber;
+ }
+
+ public void setPrimarySerialNumber(String primarySerialNumber) {
+ this.primarySerialNumber = primarySerialNumber;
+ }
+
+
+ public AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner secondarySerialNumber(String secondarySerialNumber) {
+ this.secondarySerialNumber = secondarySerialNumber;
+ return this;
+ }
+
+ /**
+ * Get secondarySerialNumber
+ * @return secondarySerialNumber
+ **/
+ @javax.annotation.Nullable
+ public String getSecondarySerialNumber() {
+ return secondarySerialNumber;
+ }
+
+ public void setSecondarySerialNumber(String secondarySerialNumber) {
+ this.secondarySerialNumber = secondarySerialNumber;
+ }
+
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner asyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner = (AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner) o;
+ return Objects.equals(this.dateOfPurchase, asyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.dateOfPurchase) &&
+ Objects.equals(this.shipDate, asyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.shipDate) &&
+ Objects.equals(this.primarySerialNumber, asyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.primarySerialNumber) &&
+ Objects.equals(this.secondarySerialNumber, asyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.secondarySerialNumber);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(dateOfPurchase, shipDate, primarySerialNumber, secondarySerialNumber);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner {\n");
+ sb.append(" dateOfPurchase: ").append(toIndentedString(dateOfPurchase)).append("\n");
+ sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n");
+ sb.append(" primarySerialNumber: ").append(toIndentedString(primarySerialNumber)).append("\n");
+ sb.append(" secondarySerialNumber: ").append(toIndentedString(secondarySerialNumber)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("dateOfPurchase");
+ openapiFields.add("shipDate");
+ openapiFields.add("primarySerialNumber");
+ openapiFields.add("secondarySerialNumber");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner is not found in the empty JSON string", AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.openapiRequiredFields.toString()));
+ }
+ }
+
+ Set> entries = jsonElement.getAsJsonObject().entrySet();
+ // check to see if the JSON string contains additional fields
+ for (Map.Entry entry : entries) {
+ if (!AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if ((jsonObj.get("dateOfPurchase") != null && !jsonObj.get("dateOfPurchase").isJsonNull()) && !jsonObj.get("dateOfPurchase").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `dateOfPurchase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dateOfPurchase").toString()));
+ }
+ if ((jsonObj.get("shipDate") != null && !jsonObj.get("shipDate").isJsonNull()) && !jsonObj.get("shipDate").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `shipDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shipDate").toString()));
+ }
+ if ((jsonObj.get("primarySerialNumber") != null && !jsonObj.get("primarySerialNumber").isJsonNull()) && !jsonObj.get("primarySerialNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `primarySerialNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("primarySerialNumber").toString()));
+ }
+ if ((jsonObj.get("secondarySerialNumber") != null && !jsonObj.get("secondarySerialNumber").isJsonNull()) && !jsonObj.get("secondarySerialNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `secondarySerialNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secondarySerialNumber").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner
+ */
+ public static AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner.class);
+ }
+
+ /**
+ * Convert an instance of AsyncOrderCreateDTOWarrantyInfoInnerSerialInfoInner to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.java
similarity index 56%
rename from src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.java
rename to src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.java
index b62b9707..abb186c4 100644
--- a/src/main/java/xiresellers/client/model/QuoteToOrderDetailsDTOVmfadditionalAttributesInner.java
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -47,10 +47,10 @@
import xiresellers.client.JSON;
/**
- * QuoteToOrderDetailsDTOVmfadditionalAttributesInner
+ * AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
-public class QuoteToOrderDetailsDTOVmfadditionalAttributesInner {
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner {
public static final String SERIALIZED_NAME_ATTRIBUTE_NAME = "attributeName";
@SerializedName(SERIALIZED_NAME_ATTRIBUTE_NAME)
private String attributeName;
@@ -59,20 +59,16 @@ public class QuoteToOrderDetailsDTOVmfadditionalAttributesInner {
@SerializedName(SERIALIZED_NAME_ATTRIBUTE_VALUE)
private String attributeValue;
- public static final String SERIALIZED_NAME_ATTRIBUTE_DESCRIPTION = "attributeDescription";
- @SerializedName(SERIALIZED_NAME_ATTRIBUTE_DESCRIPTION)
- private String attributeDescription;
-
- public QuoteToOrderDetailsDTOVmfadditionalAttributesInner() {
+ public AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner() {
}
- public QuoteToOrderDetailsDTOVmfadditionalAttributesInner attributeName(String attributeName) {
+ public AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner attributeName(String attributeName) {
this.attributeName = attributeName;
return this;
}
/**
- * The name of the header level field.
+ * The name of the line level field.
* @return attributeName
**/
@javax.annotation.Nullable
@@ -85,13 +81,13 @@ public void setAttributeName(String attributeName) {
}
- public QuoteToOrderDetailsDTOVmfadditionalAttributesInner attributeValue(String attributeValue) {
+ public AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner attributeValue(String attributeValue) {
this.attributeValue = attributeValue;
return this;
}
/**
- * The value of the header level field.
+ * The value of the line level field.
* @return attributeValue
**/
@javax.annotation.Nullable
@@ -104,25 +100,6 @@ public void setAttributeValue(String attributeValue) {
}
- public QuoteToOrderDetailsDTOVmfadditionalAttributesInner attributeDescription(String attributeDescription) {
- this.attributeDescription = attributeDescription;
- return this;
- }
-
- /**
- * The description of the header level field.
- * @return attributeDescription
- **/
- @javax.annotation.Nullable
- public String getAttributeDescription() {
- return attributeDescription;
- }
-
- public void setAttributeDescription(String attributeDescription) {
- this.attributeDescription = attributeDescription;
- }
-
-
@Override
public boolean equals(Object o) {
@@ -132,24 +109,22 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- QuoteToOrderDetailsDTOVmfadditionalAttributesInner quoteToOrderDetailsDTOVmfadditionalAttributesInner = (QuoteToOrderDetailsDTOVmfadditionalAttributesInner) o;
- return Objects.equals(this.attributeName, quoteToOrderDetailsDTOVmfadditionalAttributesInner.attributeName) &&
- Objects.equals(this.attributeValue, quoteToOrderDetailsDTOVmfadditionalAttributesInner.attributeValue) &&
- Objects.equals(this.attributeDescription, quoteToOrderDetailsDTOVmfadditionalAttributesInner.attributeDescription);
+ AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner asyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner = (AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner) o;
+ return Objects.equals(this.attributeName, asyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.attributeName) &&
+ Objects.equals(this.attributeValue, asyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.attributeValue);
}
@Override
public int hashCode() {
- return Objects.hash(attributeName, attributeValue, attributeDescription);
+ return Objects.hash(attributeName, attributeValue);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class QuoteToOrderDetailsDTOVmfadditionalAttributesInner {\n");
+ sb.append("class AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner {\n");
sb.append(" attributeName: ").append(toIndentedString(attributeName)).append("\n");
sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n");
- sb.append(" attributeDescription: ").append(toIndentedString(attributeDescription)).append("\n");
sb.append("}");
return sb.toString();
}
@@ -174,7 +149,6 @@ private String toIndentedString(Object o) {
openapiFields = new HashSet();
openapiFields.add("attributeName");
openapiFields.add("attributeValue");
- openapiFields.add("attributeDescription");
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
@@ -184,20 +158,20 @@ private String toIndentedString(Object o) {
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to QuoteToOrderDetailsDTOVmfadditionalAttributesInner
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
- if (!QuoteToOrderDetailsDTOVmfadditionalAttributesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in QuoteToOrderDetailsDTOVmfadditionalAttributesInner is not found in the empty JSON string", QuoteToOrderDetailsDTOVmfadditionalAttributesInner.openapiRequiredFields.toString()));
+ if (!AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner is not found in the empty JSON string", AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.openapiRequiredFields.toString()));
}
}
Set> entries = jsonElement.getAsJsonObject().entrySet();
// check to see if the JSON string contains additional fields
for (Map.Entry entry : entries) {
- if (!QuoteToOrderDetailsDTOVmfadditionalAttributesInner.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QuoteToOrderDetailsDTOVmfadditionalAttributesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ if (!AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
@@ -207,31 +181,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("attributeValue") != null && !jsonObj.get("attributeValue").isJsonNull()) && !jsonObj.get("attributeValue").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `attributeValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeValue").toString()));
}
- if ((jsonObj.get("attributeDescription") != null && !jsonObj.get("attributeDescription").isJsonNull()) && !jsonObj.get("attributeDescription").isJsonPrimitive()) {
- throw new IllegalArgumentException(String.format("Expected the field `attributeDescription` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeDescription").toString()));
- }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
@SuppressWarnings("unchecked")
@Override
public TypeAdapter create(Gson gson, TypeToken type) {
- if (!QuoteToOrderDetailsDTOVmfadditionalAttributesInner.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'QuoteToOrderDetailsDTOVmfadditionalAttributesInner' and its subtypes
+ if (!AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner' and its subtypes
}
final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(QuoteToOrderDetailsDTOVmfadditionalAttributesInner.class));
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.class));
- return (TypeAdapter) new TypeAdapter() {
+ return (TypeAdapter) new TypeAdapter() {
@Override
- public void write(JsonWriter out, QuoteToOrderDetailsDTOVmfadditionalAttributesInner value) throws IOException {
+ public void write(JsonWriter out, AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner value) throws IOException {
JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
elementAdapter.write(out, obj);
}
@Override
- public QuoteToOrderDetailsDTOVmfadditionalAttributesInner read(JsonReader in) throws IOException {
+ public AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner read(JsonReader in) throws IOException {
JsonElement jsonElement = elementAdapter.read(in);
validateJsonElement(jsonElement);
return thisAdapter.fromJsonTree(jsonElement);
@@ -242,18 +213,18 @@ public QuoteToOrderDetailsDTOVmfadditionalAttributesInner read(JsonReader in) th
}
/**
- * Create an instance of QuoteToOrderDetailsDTOVmfadditionalAttributesInner given an JSON string
+ * Create an instance of AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner given an JSON string
*
* @param jsonString JSON string
- * @return An instance of QuoteToOrderDetailsDTOVmfadditionalAttributesInner
- * @throws IOException if the JSON string is invalid with respect to QuoteToOrderDetailsDTOVmfadditionalAttributesInner
+ * @return An instance of AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner
*/
- public static QuoteToOrderDetailsDTOVmfadditionalAttributesInner fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, QuoteToOrderDetailsDTOVmfadditionalAttributesInner.class);
+ public static AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner.class);
}
/**
- * Convert an instance of QuoteToOrderDetailsDTOVmfadditionalAttributesInner to an JSON string
+ * Convert an instance of AsyncOrderCreateDTOWarrantyInfoInnerVmfAdditionalAttributesLinesInner to an JSON string
*
* @return JSON string
*/
diff --git a/src/main/java/xiresellers/client/model/QuoteToOrderResponse.java b/src/main/java/xiresellers/client/model/AsyncOrderCreateResponse.java
similarity index 74%
rename from src/main/java/xiresellers/client/model/QuoteToOrderResponse.java
rename to src/main/java/xiresellers/client/model/AsyncOrderCreateResponse.java
index f9e10bab..4777f171 100644
--- a/src/main/java/xiresellers/client/model/QuoteToOrderResponse.java
+++ b/src/main/java/xiresellers/client/model/AsyncOrderCreateResponse.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -47,10 +47,10 @@
import xiresellers.client.JSON;
/**
- * QuoteToOrderResponse
+ * AsyncOrderCreateResponse
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
-public class QuoteToOrderResponse {
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
+public class AsyncOrderCreateResponse {
public static final String SERIALIZED_NAME_QUOTE_NUMBER = "quoteNumber";
@SerializedName(SERIALIZED_NAME_QUOTE_NUMBER)
private String quoteNumber;
@@ -63,10 +63,10 @@ public class QuoteToOrderResponse {
@SerializedName(SERIALIZED_NAME_MESSAGE)
private String message;
- public QuoteToOrderResponse() {
+ public AsyncOrderCreateResponse() {
}
- public QuoteToOrderResponse quoteNumber(String quoteNumber) {
+ public AsyncOrderCreateResponse quoteNumber(String quoteNumber) {
this.quoteNumber = quoteNumber;
return this;
}
@@ -85,7 +85,7 @@ public void setQuoteNumber(String quoteNumber) {
}
- public QuoteToOrderResponse confirmationNumber(String confirmationNumber) {
+ public AsyncOrderCreateResponse confirmationNumber(String confirmationNumber) {
this.confirmationNumber = confirmationNumber;
return this;
}
@@ -104,7 +104,7 @@ public void setConfirmationNumber(String confirmationNumber) {
}
- public QuoteToOrderResponse message(String message) {
+ public AsyncOrderCreateResponse message(String message) {
this.message = message;
return this;
}
@@ -132,10 +132,10 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- QuoteToOrderResponse quoteToOrderResponse = (QuoteToOrderResponse) o;
- return Objects.equals(this.quoteNumber, quoteToOrderResponse.quoteNumber) &&
- Objects.equals(this.confirmationNumber, quoteToOrderResponse.confirmationNumber) &&
- Objects.equals(this.message, quoteToOrderResponse.message);
+ AsyncOrderCreateResponse asyncOrderCreateResponse = (AsyncOrderCreateResponse) o;
+ return Objects.equals(this.quoteNumber, asyncOrderCreateResponse.quoteNumber) &&
+ Objects.equals(this.confirmationNumber, asyncOrderCreateResponse.confirmationNumber) &&
+ Objects.equals(this.message, asyncOrderCreateResponse.message);
}
@Override
@@ -146,7 +146,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class QuoteToOrderResponse {\n");
+ sb.append("class AsyncOrderCreateResponse {\n");
sb.append(" quoteNumber: ").append(toIndentedString(quoteNumber)).append("\n");
sb.append(" confirmationNumber: ").append(toIndentedString(confirmationNumber)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
@@ -184,20 +184,20 @@ private String toIndentedString(Object o) {
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to QuoteToOrderResponse
+ * @throws IOException if the JSON Element is invalid with respect to AsyncOrderCreateResponse
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
- if (!QuoteToOrderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
- throw new IllegalArgumentException(String.format("The required field(s) %s in QuoteToOrderResponse is not found in the empty JSON string", QuoteToOrderResponse.openapiRequiredFields.toString()));
+ if (!AsyncOrderCreateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncOrderCreateResponse is not found in the empty JSON string", AsyncOrderCreateResponse.openapiRequiredFields.toString()));
}
}
Set> entries = jsonElement.getAsJsonObject().entrySet();
// check to see if the JSON string contains additional fields
for (Map.Entry entry : entries) {
- if (!QuoteToOrderResponse.openapiFields.contains(entry.getKey())) {
- throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QuoteToOrderResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
+ if (!AsyncOrderCreateResponse.openapiFields.contains(entry.getKey())) {
+ throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AsyncOrderCreateResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
@@ -216,22 +216,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
@SuppressWarnings("unchecked")
@Override
public TypeAdapter create(Gson gson, TypeToken type) {
- if (!QuoteToOrderResponse.class.isAssignableFrom(type.getRawType())) {
- return null; // this class only serializes 'QuoteToOrderResponse' and its subtypes
+ if (!AsyncOrderCreateResponse.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'AsyncOrderCreateResponse' and its subtypes
}
final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final TypeAdapter thisAdapter
- = gson.getDelegateAdapter(this, TypeToken.get(QuoteToOrderResponse.class));
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(AsyncOrderCreateResponse.class));
- return (TypeAdapter) new TypeAdapter() {
+ return (TypeAdapter) new TypeAdapter() {
@Override
- public void write(JsonWriter out, QuoteToOrderResponse value) throws IOException {
+ public void write(JsonWriter out, AsyncOrderCreateResponse value) throws IOException {
JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
elementAdapter.write(out, obj);
}
@Override
- public QuoteToOrderResponse read(JsonReader in) throws IOException {
+ public AsyncOrderCreateResponse read(JsonReader in) throws IOException {
JsonElement jsonElement = elementAdapter.read(in);
validateJsonElement(jsonElement);
return thisAdapter.fromJsonTree(jsonElement);
@@ -242,18 +242,18 @@ public QuoteToOrderResponse read(JsonReader in) throws IOException {
}
/**
- * Create an instance of QuoteToOrderResponse given an JSON string
+ * Create an instance of AsyncOrderCreateResponse given an JSON string
*
* @param jsonString JSON string
- * @return An instance of QuoteToOrderResponse
- * @throws IOException if the JSON string is invalid with respect to QuoteToOrderResponse
+ * @return An instance of AsyncOrderCreateResponse
+ * @throws IOException if the JSON string is invalid with respect to AsyncOrderCreateResponse
*/
- public static QuoteToOrderResponse fromJson(String jsonString) throws IOException {
- return JSON.getGson().fromJson(jsonString, QuoteToOrderResponse.class);
+ public static AsyncOrderCreateResponse fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, AsyncOrderCreateResponse.class);
}
/**
- * Convert an instance of QuoteToOrderResponse to an JSON string
+ * Convert an instance of AsyncOrderCreateResponse to an JSON string
*
* @return JSON string
*/
diff --git a/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequest.java b/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequest.java
index 7e2626e5..76319e0f 100644
--- a/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequest.java
+++ b/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequest.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -52,7 +52,7 @@
/**
* AvailabilityAsyncNotificationRequest
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class AvailabilityAsyncNotificationRequest {
public static final String SERIALIZED_NAME_TOPIC = "topic";
@SerializedName(SERIALIZED_NAME_TOPIC)
@@ -72,7 +72,7 @@ public class AvailabilityAsyncNotificationRequest {
public static final String SERIALIZED_NAME_RESOURCE = "resource";
@SerializedName(SERIALIZED_NAME_RESOURCE)
- private List resource;
+ private List resource = new ArrayList<>();
public AvailabilityAsyncNotificationRequest() {
}
diff --git a/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInner.java b/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInner.java
index 01b8d827..64f55dd8 100644
--- a/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInner.java
+++ b/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInner.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -52,7 +52,7 @@
/**
* AvailabilityAsyncNotificationRequestResourceInner
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class AvailabilityAsyncNotificationRequestResourceInner {
public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType";
@SerializedName(SERIALIZED_NAME_EVENT_TYPE)
@@ -88,7 +88,7 @@ public class AvailabilityAsyncNotificationRequestResourceInner {
public static final String SERIALIZED_NAME_LINKS = "links";
@SerializedName(SERIALIZED_NAME_LINKS)
- private List links;
+ private List links = new ArrayList<>();
public AvailabilityAsyncNotificationRequestResourceInner() {
}
diff --git a/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.java b/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.java
index 8f5e56ae..0b261fe9 100644
--- a/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.java
+++ b/src/main/java/xiresellers/client/model/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -49,7 +49,7 @@
/**
* AvailabilityAsyncNotificationRequestResourceInnerLinksInner
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class AvailabilityAsyncNotificationRequestResourceInnerLinksInner {
public static final String SERIALIZED_NAME_TOPIC = "topic";
@SerializedName(SERIALIZED_NAME_TOPIC)
diff --git a/src/main/java/xiresellers/client/model/DealsDetailsResponse.java b/src/main/java/xiresellers/client/model/DealsDetailsResponse.java
index 0dd63e46..fcc126fa 100644
--- a/src/main/java/xiresellers/client/model/DealsDetailsResponse.java
+++ b/src/main/java/xiresellers/client/model/DealsDetailsResponse.java
@@ -1,6 +1,6 @@
/*
* 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.
+ * For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
*
* The version of the OpenAPI document: 1.0.0
*
@@ -54,7 +54,7 @@
/**
* DealsDetailsResponse
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-27T08:54:45.542575Z[Etc/UTC]")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-04T13:12:48.606866Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class DealsDetailsResponse {
public static final String SERIALIZED_NAME_DEAL_ID = "dealId";
@SerializedName(SERIALIZED_NAME_DEAL_ID)
@@ -98,7 +98,7 @@ public class DealsDetailsResponse {
public static final String SERIALIZED_NAME_PRODUCTS = "products";
@SerializedName(SERIALIZED_NAME_PRODUCTS)
- private List