Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dprakash2101 committed Apr 8, 2024
2 parents bd89b1c + dc0c33b commit 33f76f5
Show file tree
Hide file tree
Showing 13 changed files with 90 additions and 77 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Go API client for xi_sdk_resellers

<<<<<<< HEAD
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.
=======
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.
>>>>>>> main
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
Expand Down Expand Up @@ -311,20 +315,19 @@ Class | Method | HTTP request | Description
- [ValidateQuoteResponseVmfAdditionalAttributesInner](docs/ValidateQuoteResponseVmfAdditionalAttributesInner.md)


## Documentation For Authorization
## Documentation for Authorization


Authentication schemes defined for the API:
### application


- **Type**: OAuth
- **Flow**: application
- **Authorization URL**:
- **Authorization URL**: https://api.ingrammicro.com:443/oauth/oauth20/token?grant_type=client_credentials&client_id={ClientId}&client_secret={clientSecret}
- **Method**: Get
- **Scopes**:
- **write**: allows modifying resources
- **read**: allows reading resources
- **description**:
- write: allows modifying resources
- read: allows reading resources

Example

Expand Down Expand Up @@ -369,6 +372,10 @@ Each of these functions takes a value of the given basic type and returns a poin

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

<<<<<<< HEAD
- Email: xi_support@ingrammicro.com


=======
- Email: xi_support@ingrammicro.com
>>>>>>> main
6 changes: 3 additions & 3 deletions docs/AccesstokenAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
grantType := "client_credentials" // string | Keep grant_type as client_credentials only.
clientId := "clientId_example" // string |
clientSecret := "clientSecret_example" // string |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.AccesstokenAPI.GetAccesstoken(context.Background()).GrantType(grantType).ClientId(clientId).ClientSecret(clientSecret).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccesstokenAPI.GetAccesstoken``: %v\n", err)
Expand Down
8 changes: 7 additions & 1 deletion docs/AsyncOrderCreateAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -35,9 +35,15 @@ func main() {
asyncOrderCreateDTO := *openapiclient.NewAsyncOrderCreateDTO() // AsyncOrderCreateDTO |
iMSenderID := "MyCompany" // string | Unique value used to identify the sender of the transaction. (optional)

<<<<<<< HEAD:docs/AsyncOrderCreateAPI.md
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AsyncOrderCreateAPI.PostAsyncOrderCreateV7(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).AsyncOrderCreateDTO(asyncOrderCreateDTO).IMSenderID(iMSenderID).Execute()
=======
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.QuoteToOrderAPI.PostQuoteToOrderV6(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).QuoteToOrderDetailsDTO(quoteToOrderDetailsDTO).IMSenderID(iMSenderID).Execute()
>>>>>>> main:docs/QuoteToOrderAPI.md
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AsyncOrderCreateAPI.PostAsyncOrderCreateV7``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down
8 changes: 4 additions & 4 deletions docs/DealsAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -37,8 +37,8 @@ func main() {
iMEnvironment := "prodChicago" // string | Environment name.
dealId := "12345678" // string | Unique deal ID.

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.DealsAPI.GetResellersV6Dealsdetails(context.Background(), dealId).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMApplicationId(iMApplicationId).IMEnvironment(iMEnvironment).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsAPI.GetResellersV6Dealsdetails``: %v\n", err)
Expand Down Expand Up @@ -106,7 +106,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions docs/FreightEstimateAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -36,8 +36,8 @@ func main() {
iMSenderID := "MyCompany" // string | Unique value used to identify the sender of the transaction. (optional)
freightRequest := *openapiclient.NewFreightRequest() // FreightRequest | (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.FreightEstimateAPI.PostFreightestimate(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMCustomerContact(iMCustomerContact).IMSenderID(iMSenderID).FreightRequest(freightRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FreightEstimateAPI.PostFreightestimate``: %v\n", err)
Expand Down
12 changes: 6 additions & 6 deletions docs/InvoicesAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -38,8 +38,8 @@ func main() {
customerType := "invoice" // string | it should be invoice or order (optional)
includeSerialNumbers := false // bool | if serial in the response send as true or else false (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.InvoicesAPI.GetInvoicedetailsV61(context.Background(), invoiceNumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMApplicationID(iMApplicationID).CustomerType(customerType).IncludeSerialNumbers(includeSerialNumbers).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InvoicesAPI.GetInvoicedetailsV61``: %v\n", err)
Expand Down Expand Up @@ -108,7 +108,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand Down Expand Up @@ -140,8 +140,8 @@ func main() {
direction := "desc" // string | asc or desc , along with orderby column result set will be sorted. (optional)
serialNumber := "serialNumber_example" // string | Serial number of the product. (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.InvoicesAPI.GetResellersV6Invoicesearch(context.Background()).IMApplicationID(iMApplicationID).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).PaymentTermsNetDate(paymentTermsNetDate).InvoiceDate(invoiceDate).InvoiceDueDate(invoiceDueDate).OrderDate(orderDate).OrderFromDate(orderFromDate).OrderToDate(orderToDate).OrderNumber(orderNumber).DeliveryNumber(deliveryNumber).InvoiceNumber(invoiceNumber).InvoiceStatus(invoiceStatus).InvoiceType(invoiceType).CustomerOrderNumber(customerOrderNumber).EndCustomerOrderNumber(endCustomerOrderNumber).SpecialBidNumber(specialBidNumber).InvoiceFromDueDate(invoiceFromDueDate).InvoiceToDueDate(invoiceToDueDate).InvoiceFromDate(invoiceFromDate).InvoiceToDate(invoiceToDate).PageSize(pageSize).PageNumber(pageNumber).Orderby(orderby).Direction(direction).SerialNumber(serialNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InvoicesAPI.GetResellersV6Invoicesearch``: %v\n", err)
Expand Down
6 changes: 3 additions & 3 deletions docs/OrderStatusAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
targeturl := "https://59a2dc5368073ab42fd9a92e210a9fdb.m.pipedream.net/" // string | The webhook url where the request needs to sent.
xHubSignature := "3LeaTfLE5FLj1FcYflwdwFosH4ADHmMbds6thtirGC3e9lEkF9/1pt4T2fQQGlxf40EznDBER0b60M75K6ZW0A==" // string | Ingram Micro creates a signature token by use of a secret key + Event ID. The algorithm to generate the secret ley is given at link https://developer.ingrammicro.com/reseller/article/how-use-webhook-secret-key. Use the event Id in the below sample along with your secret key to generate the key. Alternatively, to send try this out, use a random text to see how it works.
orderStatusAsyncNotificationRequest := *openapiclient.NewOrderStatusAsyncNotificationRequest() // OrderStatusAsyncNotificationRequest |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
r, err := apiClient.OrderStatusAPI.ResellersV1WebhooksOrderstatuseventPost(context.Background()).Targeturl(targeturl).XHubSignature(xHubSignature).OrderStatusAsyncNotificationRequest(orderStatusAsyncNotificationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrderStatusAPI.ResellersV1WebhooksOrderstatuseventPost``: %v\n", err)
Expand Down
30 changes: 15 additions & 15 deletions docs/OrdersAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -40,8 +40,8 @@ func main() {
regionCode := "CS" // string | Region code for sandbox testing - Not for use in production. (optional)
iMSenderID := "MyCompany" // string | Unique value used to identify the sender of the transaction. Example: MyCompany (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
r, err := apiClient.OrdersAPI.DeleteOrdercancel(context.Background(), orderNumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).RegionCode(regionCode).IMSenderID(iMSenderID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrdersAPI.DeleteOrdercancel``: %v\n", err)
Expand Down Expand Up @@ -108,7 +108,7 @@ import (
"fmt"
"os"
"time"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -123,8 +123,8 @@ func main() {
isIml := true // bool | True/False only for IML customers. (optional)
regionCode := "regionCode_example" // string | Region code for sandbox testing - Not for use in production. (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.OrdersAPI.GetOrderdetailsV61(context.Background(), ordernumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).IngramOrderDate(ingramOrderDate).VendorNumber(vendorNumber).SimulateStatus(simulateStatus).IsIml(isIml).RegionCode(regionCode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrdersAPI.GetOrderdetailsV61``: %v\n", err)
Expand Down Expand Up @@ -196,7 +196,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -223,8 +223,8 @@ func main() {
vendorName := "vendorName_example" // string | Name of the vendor. (optional)
specialBidNumber := "specialBidNumber_example" // string | The bid number provided to the reseller by the vendor for special pricing and discounts. Line-level bid numbers take precedence over header-level bid numbers.*Currently, this feature is not available in Australia (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.OrdersAPI.GetResellersV6Ordersearch(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IngramOrderNumber(ingramOrderNumber).OrderStatus(orderStatus).OrderStatusIn(orderStatusIn).IngramOrderDate(ingramOrderDate).IngramOrderDateBt(ingramOrderDateBt).IMSenderID(iMSenderID).CustomerOrderNumber(customerOrderNumber).PageSize(pageSize).PageNumber(pageNumber).EndCustomerOrderNumber(endCustomerOrderNumber).InvoiceDateBt(invoiceDateBt).ShipDateBt(shipDateBt).DeliveryDateBt(deliveryDateBt).IngramPartNumber(ingramPartNumber).VendorPartNumber(vendorPartNumber).SerialNumber(serialNumber).TrackingNumber(trackingNumber).VendorName(vendorName).SpecialBidNumber(specialBidNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrdersAPI.GetResellersV6Ordersearch``: %v\n", err)
Expand Down Expand Up @@ -304,7 +304,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -314,8 +314,8 @@ func main() {
orderCreateRequest := *openapiclient.NewOrderCreateRequest("CustomerOrderNumber_example") // OrderCreateRequest |
iMSenderID := "MyCompany" // string | Unique value used to identify the sender of the transaction. Example: MyCompany (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.OrdersAPI.PostCreateorderV6(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).OrderCreateRequest(orderCreateRequest).IMSenderID(iMSenderID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrdersAPI.PostCreateorderV6``: %v\n", err)
Expand Down Expand Up @@ -378,7 +378,7 @@ import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
xi_sdk_resellers "https://github.com/ingrammicro-xvantage/xi-sdk-resellers-go"
)

func main() {
Expand All @@ -391,8 +391,8 @@ func main() {
regionCode := "CS" // string | Region code paramter to be used only for order release functionality.Region code is only for sandbox not for production (optional)
iMSenderID := "MyCompany" // string | Unique value used to identify the sender of the transaction. Example: MyCompany (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
configuration := xi_sdk_resellers.NewConfiguration()
apiClient := xi_sdk_resellers.NewAPIClient(configuration)
resp, r, err := apiClient.OrdersAPI.PutOrdermodify(context.Background(), orderNumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).OrderModifyRequest(orderModifyRequest).ActionCode(actionCode).RegionCode(regionCode).IMSenderID(iMSenderID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrdersAPI.PutOrdermodify``: %v\n", err)
Expand Down
Loading

0 comments on commit 33f76f5

Please sign in to comment.