From 97a3a2ecb85dab4b46e4b95042e663ae083ac4c2 Mon Sep 17 00:00:00 2001 From: Prakash Date: Thu, 29 Feb 2024 15:58:05 +0530 Subject: [PATCH] Modified github workflow to find and replace instance names. --- .github/workflows/find_replace.yml | 2 ++ docs/AccesstokenAPI.md | 4 ++-- docs/DealsAPI.md | 8 ++++---- docs/FreightEstimateAPI.md | 4 ++-- docs/InvoicesAPI.md | 8 ++++---- docs/OrderStatusAPI.md | 4 ++-- docs/OrdersAPI.md | 20 ++++++++++---------- docs/ProductCatalogAPI.md | 12 ++++++------ docs/QuoteToOrderAPI.md | 4 ++-- docs/QuotesAPI.md | 12 ++++++------ docs/RenewalsAPI.md | 8 ++++---- docs/ReturnsAPI.md | 12 ++++++------ docs/StockUpdateAPI.md | 4 ++-- 13 files changed, 52 insertions(+), 50 deletions(-) diff --git a/.github/workflows/find_replace.yml b/.github/workflows/find_replace.yml index 623d525..3e0a7c7 100644 --- a/.github/workflows/find_replace.yml +++ b/.github/workflows/find_replace.yml @@ -14,6 +14,8 @@ jobs: - name: Find and Replace run: | find docs/ -type f -name "*.md" -exec sed -i 's/openapiclient "github.com\/GIT_USER_ID\/GIT_REPO_ID"/xi_sdk_resellers "https:\/\/github.com\/ingrammicro-xvantage\/xi-sdk-resellers-go"/g' {} + + find docs/ -type f -name "*.md" -exec sed -i 's/openapiclient\.NewConfiguration()/xi_sdk_resellers.NewConfiguration()/g' {} + + find docs/ -type f -name "*.md" -exec sed -i 's/openapiclient\.NewAPIClient(configuration)/xi_sdk_resellers.NewAPIClient(configuration)/g' {} + - name: Commit changes run: | git config --global user.email "${{ secrets.ADMIN_EMAIL }}" diff --git a/docs/AccesstokenAPI.md b/docs/AccesstokenAPI.md index d4655bb..906d2b2 100644 --- a/docs/AccesstokenAPI.md +++ b/docs/AccesstokenAPI.md @@ -33,8 +33,8 @@ func main() { 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) diff --git a/docs/DealsAPI.md b/docs/DealsAPI.md index d8205e8..3814f44 100644 --- a/docs/DealsAPI.md +++ b/docs/DealsAPI.md @@ -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) @@ -118,8 +118,8 @@ func main() { vendor := "Cisco" // string | The vendor's name. (optional) dealId := "12345678" // string | Deal/Special bid number. (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.DealsAPI.GetResellersV6Dealssearch(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).EndUser(endUser).Vendor(vendor).DealId(dealId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DealsAPI.GetResellersV6Dealssearch``: %v\n", err) diff --git a/docs/FreightEstimateAPI.md b/docs/FreightEstimateAPI.md index 5b77949..12e5a63 100644 --- a/docs/FreightEstimateAPI.md +++ b/docs/FreightEstimateAPI.md @@ -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) diff --git a/docs/InvoicesAPI.md b/docs/InvoicesAPI.md index bbdfeff..d0ef313 100644 --- a/docs/InvoicesAPI.md +++ b/docs/InvoicesAPI.md @@ -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) @@ -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) diff --git a/docs/OrderStatusAPI.md b/docs/OrderStatusAPI.md index 5f7d442..4731854 100644 --- a/docs/OrderStatusAPI.md +++ b/docs/OrderStatusAPI.md @@ -31,8 +31,8 @@ func main() { 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) diff --git a/docs/OrdersAPI.md b/docs/OrdersAPI.md index ef79483..2cb5f67 100644 --- a/docs/OrdersAPI.md +++ b/docs/OrdersAPI.md @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) diff --git a/docs/ProductCatalogAPI.md b/docs/ProductCatalogAPI.md index 2d24fd8..378e040 100644 --- a/docs/ProductCatalogAPI.md +++ b/docs/ProductCatalogAPI.md @@ -37,8 +37,8 @@ func main() { iMCorrelationID := "fbac82ba-cf0a-4bcf-fc03-0c5084" // string | Unique transaction number to identify each transaction accross all the systems iMSenderID := "MyCompany" // string | Sender Identification text (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.ProductCatalogAPI.GetResellerV6Productdetail(context.Background(), ingramPartNumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProductCatalogAPI.GetResellerV6Productdetail``: %v\n", err) @@ -125,8 +125,8 @@ func main() { category := "Accessories" // string | The category of the product. Example: Displays. (optional) skipAuthorisation := "true" // string | This parameter is True when you want Skip the authorization, so template will work like current B2b template. (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.ProductCatalogAPI.GetResellerV6Productsearch(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCorrelationID(iMCorrelationID).IMCountryCode(iMCountryCode).PageNumber(pageNumber).PageSize(pageSize).IMSenderID(iMSenderID).Type_(type_).HasDiscounts(hasDiscounts).Vendor(vendor).VendorPartNumber(vendorPartNumber).AcceptLanguage(acceptLanguage).VendorNumber(vendorNumber).Keyword(keyword).Category(category).SkipAuthorisation(skipAuthorisation).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProductCatalogAPI.GetResellerV6Productsearch``: %v\n", err) @@ -212,8 +212,8 @@ func main() { includeProductAttributes := true // bool | Pass boolean value as input, if true the response will contain detailed attributes related to the Product, if false or not sent the response will contain very few Product details. (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.ProductCatalogAPI.PostPriceandavailability(context.Background()).IncludeAvailability(includeAvailability).IncludePricing(includePricing).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).PriceAndAvailabilityRequest(priceAndAvailabilityRequest).IncludeProductAttributes(includeProductAttributes).IMSenderID(iMSenderID).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ProductCatalogAPI.PostPriceandavailability``: %v\n", err) diff --git a/docs/QuoteToOrderAPI.md b/docs/QuoteToOrderAPI.md index 350ac78..1614691 100644 --- a/docs/QuoteToOrderAPI.md +++ b/docs/QuoteToOrderAPI.md @@ -35,8 +35,8 @@ func main() { quoteToOrderDetailsDTO := *openapiclient.NewQuoteToOrderDetailsDTO() // QuoteToOrderDetailsDTO | iMSenderID := "MyCompany" // string | Unique value used to identify the sender of the transaction. (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + 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() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `QuoteToOrderAPI.PostQuoteToOrderV6``: %v\n", err) diff --git a/docs/QuotesAPI.md b/docs/QuotesAPI.md index c470e45..af05e09 100644 --- a/docs/QuotesAPI.md +++ b/docs/QuotesAPI.md @@ -49,8 +49,8 @@ func main() { quoteCreateDateBt := "quoteCreateDateBt_example" // string | Search with start and end date(only 2 entries allowed). (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.QuotesAPI.GetQuotessearchV6(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCustomerContact(iMCustomerContact).IMCorrelationID(iMCorrelationID).IngramOrderDateBt(ingramOrderDateBt).QuoteNumber(quoteNumber).SpecialBidNumber(specialBidNumber).EndUserContact(endUserContact).SortingOrder(sortingOrder).SortBy(sortBy).PageSize(pageSize).PageNumber(pageNumber).VendorName(vendorName).QuoteName(quoteName).Status(status).QuoteCreateDateBt(quoteCreateDateBt).IMSenderID(iMSenderID).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `QuotesAPI.GetQuotessearchV6``: %v\n", err) @@ -135,8 +135,8 @@ func main() { iMCorrelationID := "fbac82ba-cf0a-4bcf-fc03-0c5084" // string | Unique transaction number to identify each transaction accross all the systems. iMSenderID := "MyCompany" // string | Unique identifier used to identify the third party source accessing the services. (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.QuotesAPI.GetResellerV6ValidateQuote(context.Background()).QuoteNumber(quoteNumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `QuotesAPI.GetResellerV6ValidateQuote``: %v\n", err) @@ -209,8 +209,8 @@ func main() { quoteNumber := "QUO-10926-Y8G1B3" // 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. iMSenderID := "MyCompany" // string | Unique identifier used to identify the third party source accessing the services. (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.QuotesAPI.GetResellersV6Quotes(context.Background(), quoteNumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `QuotesAPI.GetResellersV6Quotes``: %v\n", err) diff --git a/docs/RenewalsAPI.md b/docs/RenewalsAPI.md index e9bbe0f..ede4875 100644 --- a/docs/RenewalsAPI.md +++ b/docs/RenewalsAPI.md @@ -36,8 +36,8 @@ func main() { renewalId := "123456" // string | Unique Ingram renewal ID. 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.RenewalsAPI.GetResellersV6Renewalsdetails(context.Background(), renewalId).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RenewalsAPI.GetResellersV6Renewalsdetails``: %v\n", err) @@ -120,8 +120,8 @@ func main() { sort := "sort_example" // string | Refers to the column selected to apply the sorting criteria. (optional) renewalsSearchRequest := *openapiclient.NewRenewalsSearchRequest() // RenewalsSearchRequest | (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.RenewalsAPI.PostRenewalssearch(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).CustomerOrderNumber(customerOrderNumber).IngramPurchaseOrderNumber(ingramPurchaseOrderNumber).SerialNumber(serialNumber).Page(page).Size(size).Sort(sort).RenewalsSearchRequest(renewalsSearchRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RenewalsAPI.PostRenewalssearch``: %v\n", err) diff --git a/docs/ReturnsAPI.md b/docs/ReturnsAPI.md index bb0ce54..b727ad1 100644 --- a/docs/ReturnsAPI.md +++ b/docs/ReturnsAPI.md @@ -37,8 +37,8 @@ func main() { caseRequestNumber := "12345678" // string | A unique return request number. 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.ReturnsAPI.GetResellersV6Returnsdetails(context.Background(), caseRequestNumber).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ReturnsAPI.GetResellersV6Returnsdetails``: %v\n", err) @@ -129,8 +129,8 @@ func main() { sort := "sort_example" // string | Refers to the column selected to apply the sorting criteria. (optional) sortingColumnName := "sortingColumnName_example" // string | The column name which will be sorted on. (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.ReturnsAPI.GetResellersV6Returnssearch(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).CaseRequestNumber(caseRequestNumber).InvoiceNumber(invoiceNumber).ReturnClaimId(returnClaimId).ReferenceNumber(referenceNumber).IngramPartNumber(ingramPartNumber).VendorPartNumber(vendorPartNumber).ReturnStatusIn(returnStatusIn).ClaimStatusIn(claimStatusIn).CreatedOnBt(createdOnBt).ModifiedOnBt(modifiedOnBt).ReturnReasonIn(returnReasonIn).Page(page).Size(size).Sort(sort).SortingColumnName(sortingColumnName).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ReturnsAPI.GetResellersV6Returnssearch``: %v\n", err) @@ -217,8 +217,8 @@ func main() { iMSenderID := "MyCompany" // string | Unique value used to identify the sender of the transaction. Example: MyCompany (optional) returnsCreateRequest := *openapiclient.NewReturnsCreateRequest() // ReturnsCreateRequest | (optional) - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) resp, r, err := apiClient.ReturnsAPI.PostReturnscreate(context.Background()).IMCustomerNumber(iMCustomerNumber).IMCountryCode(iMCountryCode).IMCorrelationID(iMCorrelationID).IMSenderID(iMSenderID).ReturnsCreateRequest(returnsCreateRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ReturnsAPI.PostReturnscreate``: %v\n", err) diff --git a/docs/StockUpdateAPI.md b/docs/StockUpdateAPI.md index a6abbb3..117c9d5 100644 --- a/docs/StockUpdateAPI.md +++ b/docs/StockUpdateAPI.md @@ -31,8 +31,8 @@ func main() { 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. availabilityAsyncNotificationRequest := *openapiclient.NewAvailabilityAsyncNotificationRequest() // AvailabilityAsyncNotificationRequest | - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) + configuration := xi_sdk_resellers.NewConfiguration() + apiClient := xi_sdk_resellers.NewAPIClient(configuration) r, err := apiClient.StockUpdateAPI.ResellersV1WebhooksAvailabilityupdatePost(context.Background()).Targeturl(targeturl).XHubSignature(xHubSignature).AvailabilityAsyncNotificationRequest(availabilityAsyncNotificationRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `StockUpdateAPI.ResellersV1WebhooksAvailabilityupdatePost``: %v\n", err)