-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ingrammicro-xvantage/feature
New SDK because of changes in open API spec file
- Loading branch information
Showing
729 changed files
with
3,078 additions
and
3,031 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.2.0 | ||
7.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Ingram Micro | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# xi.sdk.resellers | ||
|
||
Reseller API | ||
- API version: 6.0 | ||
- Build date: 2024-01-22T11:06:29.712836Z[Etc/UTC] | ||
XI Sdk Resellers | ||
- API version: 1.0.0 | ||
- Build date: 2024-02-14T10:07:36.431201Z[Etc/UTC] | ||
|
||
For Resellers. <br> | ||
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. 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. | ||
|
||
|
||
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* | ||
|
@@ -17,6 +16,7 @@ Building the API client library requires: | |
1. Java 1.8+ | ||
2. Maven (3.8.3+)/Gradle (7.2+) | ||
|
||
|
||
## Installation | ||
|
||
To install the API client library to your local Maven repository, simply execute: | ||
|
@@ -49,12 +49,15 @@ Add this dependency to your project's POM: | |
### | ||
If you want to compile it yourself, here's how: | ||
|
||
|
||
```shell | ||
git clone [email protected]:ingrammicro-xvantage/xi-sdk-resellers-java | ||
cd xi-sdk-resellers-java | ||
mvn install # Requires maven, download from https://maven.apache.org/download.html | ||
|
||
``` | ||
|
||
|
||
### Others | ||
|
||
At first generate the JAR by executing: | ||
|
@@ -87,7 +90,7 @@ import xiresellers.client.api.DealsApi; | |
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = Configuration.getDefaultApiClient(); | ||
defaultClient.setBasePath("https://api.ingrammicro.com:443/sandbox"); | ||
defaultClient.setBasePath("https://api.ingrammicro.com:443"); | ||
|
||
// Configure OAuth2 access token for authorization: application | ||
OAuth application = (OAuth) defaultClient.getAuthentication("application"); | ||
|
@@ -97,10 +100,11 @@ public class Example { | |
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 across all the systems. | ||
String imApplicationId = "MyCompany"; // String | Unique value used to identify the sender of the transaction. Example: MyCompany | ||
String imEnvironment = "20-222222"; // String | Environment name. | ||
String dealId = "12345678"; // String | Unique deal ID. | ||
String imSenderID = "MyCompany"; // String | Unique value used to identify the sender of the transaction. Example: MyCompany | ||
try { | ||
DealsDetailsResponse result = apiInstance.getResellersV6Dealsdetails(imCustomerNumber, imCountryCode, imCorrelationID, dealId, imSenderID); | ||
DealsDetailsResponse result = apiInstance.getResellersV6Dealsdetails(imCustomerNumber, imCountryCode, imCorrelationID, imApplicationId, imEnvironment, dealId); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println("Exception when calling DealsApi#getResellersV6Dealsdetails"); | ||
|
@@ -116,15 +120,15 @@ public class Example { | |
|
||
## Documentation for API Endpoints | ||
|
||
All URIs are relative to *https://api.ingrammicro.com:443/sandbox* | ||
All URIs are relative to *https://api.ingrammicro.com:443* | ||
|
||
Class | Method | HTTP request | Description | ||
------------ | ------------- | ------------- | ------------- | ||
*DealsApi* | [**getResellersV6Dealsdetails**](docs/DealsApi.md#getResellersV6Dealsdetails) | **GET** /resellers/v6/deals/{dealId} | Deals Details | ||
*DealsApi* | [**getResellersV6Dealssearch**](docs/DealsApi.md#getResellersV6Dealssearch) | **GET** /resellers/v6/deals/search | Deals Search | ||
*FreightEstimateApi* | [**postFreightestimate**](docs/FreightEstimateApi.md#postFreightestimate) | **POST** /resellers/v6/freightestimate | Freight Estimate | ||
*InvoicesApi* | [**getInvoicedetailsV61**](docs/InvoicesApi.md#getInvoicedetailsV61) | **GET** /resellers/v6.1/invoices/{invoiceNumber} | Get Invoice Details v6.1 | ||
*InvoicesApi* | [**getResellersV6Invoicesearch**](docs/InvoicesApi.md#getResellersV6Invoicesearch) | **GET** /resellers/v6/invoices/ | Search your invoice | ||
*InvoicesApi* | [**getResellersV6Invoicesearch**](docs/InvoicesApi.md#getResellersV6Invoicesearch) | **GET** /resellers/v6/invoices | Search your invoice | ||
*InvoicesV4Api* | [**postV4Invoicedetails**](docs/InvoicesV4Api.md#postV4Invoicedetails) | **POST** /invoices/v4/invoicedetails | Get Invoice Details | ||
*InvoicesV5Api* | [**getInvoices**](docs/InvoicesV5Api.md#getInvoices) | **GET** /resellers/v5/invoices/{invoiceNumber} | Get Invoice Details | ||
*InvoicesV6Api* | [**getInvoicedetailsV6**](docs/InvoicesV6Api.md#getInvoicedetailsV6) | **GET** /resellers/v6/invoices/{invoicenumber} | Get Invoice Details v6 | ||
|
@@ -398,8 +402,8 @@ Class | Method | HTTP request | Description | |
- [ProductDetailResponse](docs/ProductDetailResponse.md) | ||
- [ProductDetailResponseAdditionalInformation](docs/ProductDetailResponseAdditionalInformation.md) | ||
- [ProductDetailResponseAdditionalInformationProductWeightInner](docs/ProductDetailResponseAdditionalInformationProductWeightInner.md) | ||
- [ProductDetailResponseCiscoFieldsInner](docs/ProductDetailResponseCiscoFieldsInner.md) | ||
- [ProductDetailResponseIndicatorsInner](docs/ProductDetailResponseIndicatorsInner.md) | ||
- [ProductDetailResponseCiscoFields](docs/ProductDetailResponseCiscoFields.md) | ||
- [ProductDetailResponseIndicators](docs/ProductDetailResponseIndicators.md) | ||
- [ProductDetailResponseTechnicalSpecificationsInner](docs/ProductDetailResponseTechnicalSpecificationsInner.md) | ||
- [ProductLineType](docs/ProductLineType.md) | ||
- [ProductLineTypeSerialnumberdetailsInner](docs/ProductLineTypeSerialnumberdetailsInner.md) | ||
|
@@ -515,8 +519,7 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea | |
|
||
For any inquiries or support, please feel free to contact us at: | ||
|
||
- Email: [[email protected]]([email protected]) | ||
|
||
|
||
- Email: [[email protected]]([email protected]) | ||
|
||
|
Oops, something went wrong.