Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xvantage-integration committed Feb 20, 2024
1 parent 27a67a1 commit 9ed71cf
Show file tree
Hide file tree
Showing 206 changed files with 604 additions and 337 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

XI Sdk Resellers
- API version: 1.0.0
- Build date: 2024-02-20T05:40:29.622284Z[Etc/UTC]
- Build date: 2024-02-20T09:00:28.102704Z[Etc/UTC]

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.

Expand Down Expand Up @@ -45,15 +45,19 @@ Add this dependency to your project's POM:
</dependency>
```

###
If you want to compile it yourself, here's how:
### Gradle users

Add this dependency to your project's build file:

```shell
git clone https://github.com/ingrammicro-xvantage/xi-sdk-resellers-java.git
cd xi-sdk-resellers-java
mvn install # Requires maven, download from https://maven.apache.org/download.html
```groovy
repositories {
mavenCentral() // Needed if the 'xi.sdk.resellers' jar has been published to maven central.
mavenLocal() // Needed if the 'xi.sdk.resellers' jar has been published to the local maven repo.
}
dependencies {
implementation "xi.sdk.resellers:xi.sdk.resellers:1.0.0"
}
```

### Others
Expand Down Expand Up @@ -351,10 +355,6 @@ Authentication schemes defined for the API:
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.

## Author
-[Ingram Micro Xvantage](https://github.com/ingrammicro-xvantage)

## Contact

For any inquiries or support, please feel free to contact us at:

- Email: [[email protected]]([email protected])
67 changes: 41 additions & 26 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6481,15 +6481,6 @@ paths:
maxLength: 32
type: string
style: simple
- description: The media type for JSON Request.
explode: false
in: header
name: Content Type
required: true
schema:
example: application/json
type: string
style: simple
- description: The reseller's unique PO/Order number.
explode: true
in: query
Expand Down Expand Up @@ -8282,6 +8273,7 @@ components:
- attributeValue: ABC1234
attributeName: VEND_AUTH_NBR_FLG
attributeDescription: Authorization Number
vendorMasterNumber: vendorMasterNumber
vendorName: Cisco
lines:
- ingramPartNumber: YN6551
Expand All @@ -8304,7 +8296,10 @@ components:
attributeDescription: attributeDescription
quantity: "1"
customerLineNumber: "11"
quoteType: 0
quoteNumber: QUO-14551943-D2Y9L9
vendorQuoteNumber: vendorQuoteNumber
vendorGroupName: vendorGroupName
properties:
quoteNumber:
description: A unique identifier generated by Ingram Micro's CRM specific
Expand All @@ -8326,6 +8321,14 @@ components:
items:
$ref: '#/components/schemas/ValidateQuoteResponse_lines_inner'
type: array
quoteType:
type: integer
vendorGroupName:
type: string
vendorQuoteNumber:
type: string
vendorMasterNumber:
type: string
type: object
OrderCreateResponse:
example:
Expand Down Expand Up @@ -9134,7 +9137,6 @@ components:
hasBundle: true
isDirectship: true
productCategory: productCategory
productSubcategory: productSubcategory
ciscoFields:
itemType: itemType
productSubGroup: productSubGroup
Expand All @@ -9152,6 +9154,7 @@ components:
attributevalue: attributevalue
attributedisplay: attributedisplay
attributename: attributename
productSubCategory: productSubCategory
productDetailDescription: productDetailDescription
vendorPartNumber: vendorPartNumber
productStatusCode: productStatusCode
Expand Down Expand Up @@ -9182,7 +9185,7 @@ components:
productCategory:
description: The category of the product.
type: string
productSubcategory:
productSubCategory:
description: The sub-category of the product.
type: string
vendorName:
Expand Down Expand Up @@ -9514,8 +9517,8 @@ components:
vendorPartNumber: vendorPartNumber
extendedMSRP: 1.4658129805029452
productDescription: productDescription
startDate: 2000-01-23
expirationDate: 2000-01-23
startDate: startDate
expirationDate: expirationDate
- ingramPartNumber: ingramPartNumber
remainingQuantity: 2
daysRemaining: 7
Expand All @@ -9528,8 +9531,8 @@ components:
vendorPartNumber: vendorPartNumber
extendedMSRP: 1.4658129805029452
productDescription: productDescription
startDate: 2000-01-23
expirationDate: 2000-01-23
startDate: startDate
expirationDate: expirationDate
properties:
dealId:
description: Deal/Special bid number.
Expand Down Expand Up @@ -9644,7 +9647,8 @@ components:
description: description
upc: upc
ingramLineNumber: 0
invoiceDate: 2000-01-23
invoiceDate: invoiceDate
additionalDetails: additionalDetails
customerOrderNumber: customerOrderNumber
extendedPrice: 5.962133916683182
invoiceNumber: invoiceNumber
Expand All @@ -9659,7 +9663,8 @@ components:
description: description
upc: upc
ingramLineNumber: 0
invoiceDate: 2000-01-23
invoiceDate: invoiceDate
additionalDetails: additionalDetails
customerOrderNumber: customerOrderNumber
extendedPrice: 5.962133916683182
invoiceNumber: invoiceNumber
Expand Down Expand Up @@ -9930,6 +9935,7 @@ components:
example:
quantityTotal: 2
leaseInfo: leaseInfo
quoteType: quoteType
products:
- ingramPartNumber: ingramPartNumber
CoO: CoO
Expand Down Expand Up @@ -10089,6 +10095,8 @@ components:
description: Legal terms - Legally required - must be included when presenting
the quote details.
type: string
quoteType:
type: string
leaseInfo:
description: Lease information.
type: string
Expand Down Expand Up @@ -10823,6 +10831,7 @@ components:
confirmedQuantity: confirmedQuantity
quantityOrdered: 4
customerLineNumber: customerLineNumber
backOrderETAData: backOrderETAData
lineStatus: lineStatus
extendedPrice: 3.616076749251911
scheduleLines:
Expand Down Expand Up @@ -11061,6 +11070,7 @@ components:
confirmedQuantity: confirmedQuantity
quantityOrdered: 4
customerLineNumber: customerLineNumber
backOrderETAData: backOrderETAData
lineStatus: lineStatus
extendedPrice: 3.616076749251911
scheduleLines:
Expand Down Expand Up @@ -14587,8 +14597,8 @@ components:
vendorPartNumber: vendorPartNumber
extendedMSRP: 1.4658129805029452
productDescription: productDescription
startDate: 2000-01-23
expirationDate: 2000-01-23
startDate: startDate
expirationDate: expirationDate
properties:
ingramPartNumber:
description: Unique Ingram part number.
Expand Down Expand Up @@ -14630,11 +14640,9 @@ components:
type: string
startDate:
description: Start Date.
format: date
type: string
expirationDate:
description: Expiration date.
format: date
type: string
daysRemaining:
description: Number of days remaining before the deal expires.
Expand Down Expand Up @@ -14723,7 +14731,8 @@ components:
description: description
upc: upc
ingramLineNumber: 0
invoiceDate: 2000-01-23
invoiceDate: invoiceDate
additionalDetails: additionalDetails
customerOrderNumber: customerOrderNumber
extendedPrice: 5.962133916683182
invoiceNumber: invoiceNumber
Expand All @@ -14749,17 +14758,13 @@ components:
type: string
invoiceDate:
description: The date of the invoice.
format: date
type: string
invoiceNumber:
description: Ingram micro Invoice number.
type: string
customerOrderNumber:
description: The reseller's order number for reference in their system.
type: string
requestDetails:
description: Request details.
type: string
quantity:
description: The quantity of the line item.
format: decimal
Expand All @@ -14781,6 +14786,11 @@ components:
shipFromBranch:
description: The code of the ship from branch.
type: string
requestDetails:
description: Request details.
type: string
additionalDetails:
type: string
type: object
returnsCreateRequest_list_inner_shipFromInfo_inner:
properties:
Expand Down Expand Up @@ -15283,6 +15293,7 @@ components:
items:
$ref: '#/components/schemas/QuoteSearchResponse_quotes_inner_links_inner'
type: array
type: object
QuoteDetailsResponse_resellerInfo:
example:
phoneNumber: phoneNumber
Expand Down Expand Up @@ -17000,6 +17011,7 @@ components:
confirmedQuantity: confirmedQuantity
quantityOrdered: 4
customerLineNumber: customerLineNumber
backOrderETAData: backOrderETAData
lineStatus: lineStatus
extendedPrice: 3.616076749251911
scheduleLines:
Expand Down Expand Up @@ -17292,6 +17304,9 @@ components:
promisedDeliveryDate:
description: The delivery date promised by IngramMicro.
type: string
backOrderETAData:
description: Backorder ETA date
type: string
lineNotes:
description: Line-level notes for the order.
type: string
Expand Down
4 changes: 2 additions & 2 deletions docs/DealsDetailsResponseProductsInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
|**remainingQuantity** | **Integer** | The quantity remaining as part of the deal for the customer to order. | [optional] |
|**comments** | **String** | Comments of the deal. | [optional] |
|**specialConditions** | **String** | Special conditions of the deal. | [optional] |
|**startDate** | **LocalDate** | Start Date. | [optional] |
|**expirationDate** | **LocalDate** | Expiration date. | [optional] |
|**startDate** | **String** | Start Date. | [optional] |
|**expirationDate** | **String** | Expiration date. | [optional] |
|**daysRemaining** | **Integer** | Number of days remaining before the deal expires. | [optional] |


Expand Down
1 change: 1 addition & 0 deletions docs/OrderDetailB2BLinesInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
|**specialBidNumber** | **String** | The line-level bid number provided to the reseller by the vendor for special pricing and discounts. Used to track the bid number in the case of split orders or where different line items have different bid numbers. Line-level bid numbers take precedence over header-level bid numbers. | [optional] |
|**requestedDeliverydate** | **String** | Reseller-requested delivery date. Delivery date is not guaranteed. | [optional] |
|**promisedDeliveryDate** | **String** | The delivery date promised by IngramMicro. | [optional] |
|**backOrderETAData** | **String** | Backorder ETA date | [optional] |
|**lineNotes** | **String** | Line-level notes for the order. | [optional] |
|**shipmentDetails** | [**List&lt;OrderDetailB2BLinesInnerShipmentDetailsInner&gt;**](OrderDetailB2BLinesInnerShipmentDetailsInner.md) | Shipping details for the line item. | [optional] |
|**serviceContractInfo** | [**OrderDetailB2BLinesInnerServiceContractInfo**](OrderDetailB2BLinesInnerServiceContractInfo.md) | | [optional] |
Expand Down
2 changes: 1 addition & 1 deletion docs/ProductDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
|**productDetailDescription** | **String** | The detailed description given for the product. | [optional] |
|**upc** | **String** | The UPC code for the product. Consists of 12 numeric digits that are uniquely assigned to each trade item. | [optional] |
|**productCategory** | **String** | The category of the product. | [optional] |
|**productSubcategory** | **String** | The sub-category of the product. | [optional] |
|**productSubCategory** | **String** | The sub-category of the product. | [optional] |
|**vendorName** | **String** | Vendor name for the order. | [optional] |
|**vendorNumber** | **String** | Vendor number that identifies the product. | [optional] |
|**productStatusCode** | **String** | Status code of the product. | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/QuoteDetailsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
|**introPreamble** | **String** | Introductory paragraph included in each quote. Legally required - must be included when presenting the quote details. | [optional] |
|**purchaseInstructions** | **String** | Purchase instructions. Legally required - must be included when presenting the quote details. | [optional] |
|**legalTerms** | **String** | Legal terms - Legally required - must be included when presenting the quote details. | [optional] |
|**quoteType** | **String** | | [optional] |
|**leaseInfo** | **String** | Lease information. | [optional] |
|**leasingInstructions** | **String** | Leasing information | [optional] |
|**resellerInfo** | [**QuoteDetailsResponseResellerInfo**](QuoteDetailsResponseResellerInfo.md) | | [optional] |
Expand Down
6 changes: 2 additions & 4 deletions docs/RenewalsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class Example {

<a id="postRenewalssearch"></a>
# **postRenewalssearch**
> RenewalsSearchResponse postRenewalssearch(imCustomerNumber, imCountryCode, imCorrelationID, contentType, imSenderID, customerOrderNumber, ingramPurchaseOrderNumber, serialNumber, page, size, sort, renewalsSearchRequest)
> RenewalsSearchResponse postRenewalssearch(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, customerOrderNumber, ingramPurchaseOrderNumber, serialNumber, page, size, sort, renewalsSearchRequest)
Renewals Search

Expand Down Expand Up @@ -116,7 +116,6 @@ 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 contentType = "application/json"; // String | The media type for JSON Request.
String imSenderID = "MyCompany"; // String | Unique value used to identify the sender of the transaction. Example: MyCompany
String customerOrderNumber = "customerOrderNumber_example"; // String | The reseller's unique PO/Order number.
String ingramPurchaseOrderNumber = "ingramPurchaseOrderNumber_example"; // String | Sales order number.
Expand All @@ -126,7 +125,7 @@ public class Example {
String sort = "sort_example"; // String | Refers to the column selected to apply the sorting criteria.
RenewalsSearchRequest renewalsSearchRequest = new RenewalsSearchRequest(); // RenewalsSearchRequest |
try {
RenewalsSearchResponse result = apiInstance.postRenewalssearch(imCustomerNumber, imCountryCode, imCorrelationID, contentType, imSenderID, customerOrderNumber, ingramPurchaseOrderNumber, serialNumber, page, size, sort, renewalsSearchRequest);
RenewalsSearchResponse result = apiInstance.postRenewalssearch(imCustomerNumber, imCountryCode, imCorrelationID, imSenderID, customerOrderNumber, ingramPurchaseOrderNumber, serialNumber, page, size, sort, renewalsSearchRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RenewalsApi#postRenewalssearch");
Expand All @@ -146,7 +145,6 @@ public class Example {
| **imCustomerNumber** | **String**| Your unique Ingram Micro customer number. | |
| **imCountryCode** | **String**| Two-character ISO country code. | |
| **imCorrelationID** | **String**| Unique transaction number to identify each transaction across all the systems. | |
| **contentType** | **String**| The media type for JSON Request. | |
| **imSenderID** | **String**| Unique value used to identify the sender of the transaction. Example: MyCompany | [optional] |
| **customerOrderNumber** | **String**| The reseller&#39;s unique PO/Order number. | [optional] |
| **ingramPurchaseOrderNumber** | **String**| Sales order number. | [optional] |
Expand Down
5 changes: 3 additions & 2 deletions docs/ReturnsDetailsResponseProductsInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
|**ingramPartNumber** | **String** | Unique IngramMicro part number. | [optional] |
|**vendorPartNumber** | **String** | The vendor&#39;s part number for the line item. | [optional] |
|**upc** | **String** | The UPC code of a product. | [optional] |
|**invoiceDate** | **LocalDate** | The date of the invoice. | [optional] |
|**invoiceDate** | **String** | The date of the invoice. | [optional] |
|**invoiceNumber** | **String** | Ingram micro Invoice number. | [optional] |
|**customerOrderNumber** | **String** | The reseller&#39;s order number for reference in their system. | [optional] |
|**requestDetails** | **String** | Request details. | [optional] |
|**quantity** | **BigDecimal** | The quantity of the line item. | [optional] |
|**unitPrice** | **BigDecimal** | The unit price of the line item. | [optional] |
|**extendedPrice** | **BigDecimal** | Unit price X quantity for the line item. | [optional] |
|**status** | **String** | The status of the line item. | [optional] |
|**returnBranch** | **String** | The code of the return branch. | [optional] |
|**shipFromBranch** | **String** | The code of the ship from branch. | [optional] |
|**requestDetails** | **String** | Request details. | [optional] |
|**additionalDetails** | **String** | | [optional] |



4 changes: 4 additions & 0 deletions docs/ValidateQuoteResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
|**vendorName** | **String** | The name of the vendor. | [optional] |
|**vmfAdditionalAttributes** | [**List&lt;ValidateQuoteResponseVmfAdditionalAttributesInner&gt;**](ValidateQuoteResponseVmfAdditionalAttributesInner.md) | The object containing the list of fields required at a header level by the vendor. | [optional] |
|**lines** | [**List&lt;ValidateQuoteResponseLinesInner&gt;**](ValidateQuoteResponseLinesInner.md) | The object containing the lines from the quote. | [optional] |
|**quoteType** | **Integer** | | [optional] |
|**vendorGroupName** | **String** | | [optional] |
|**vendorQuoteNumber** | **String** | | [optional] |
|**vendorMasterNumber** | **String** | | [optional] |



2 changes: 1 addition & 1 deletion src/main/java/xiresellers/client/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-20T05:40:29.622284Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-20T09:00:28.102704Z[Etc/UTC]")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;

Expand Down
Loading

0 comments on commit 9ed71cf

Please sign in to comment.