From d821e5cd4c0eaaf47ba748003cd3bfb4f615185d Mon Sep 17 00:00:00 2001 From: ingrammicro-xvantage Date: Tue, 27 Feb 2024 08:55:51 +0000 Subject: [PATCH 1/3] Update from https://github.com/ingrammicro-xvantage/xi-sdk-openapispec/commit/a300c7b630aa1207fc9422b7b6885ff41c7f10f1 --- .openapi-generator/FILES | 13 + README.md | 19 +- api/openapi.yaml | 234 ++++++++++++------ api_accesstoken.go | 174 +++++++++++++ client.go | 3 + docs/AccesstokenAPI.md | 79 ++++++ docs/AccesstokenResponse.md | 108 ++++++++ docs/GetAccesstoken400Response.md | 56 +++++ docs/GetAccesstoken500Response.md | 56 +++++ docs/GetAccesstoken500ResponseFault.md | 82 ++++++ docs/GetAccesstoken500ResponseFaultDetail.md | 56 +++++ docs/QuoteDetailsResponseProductsInner.md | 52 ++++ .../QuoteDetailsResponseProductsInnerPrice.md | 138 ++++++++++- docs/QuoteToOrderResponse.md | 8 +- model_accesstoken_response.go | 198 +++++++++++++++ model_get_accesstoken_400_response.go | 126 ++++++++++ model_get_accesstoken_500_response.go | 126 ++++++++++ model_get_accesstoken_500_response_fault.go | 162 ++++++++++++ ...t_accesstoken_500_response_fault_detail.go | 126 ++++++++++ ...l_quote_details_response_products_inner.go | 72 ++++++ ...e_details_response_products_inner_price.go | 194 ++++++++++++++- model_quote_to_order_response.go | 12 +- test/api_accesstoken_test.go | 37 +++ 23 files changed, 2020 insertions(+), 111 deletions(-) create mode 100644 api_accesstoken.go create mode 100644 docs/AccesstokenAPI.md create mode 100644 docs/AccesstokenResponse.md create mode 100644 docs/GetAccesstoken400Response.md create mode 100644 docs/GetAccesstoken500Response.md create mode 100644 docs/GetAccesstoken500ResponseFault.md create mode 100644 docs/GetAccesstoken500ResponseFaultDetail.md create mode 100644 model_accesstoken_response.go create mode 100644 model_get_accesstoken_400_response.go create mode 100644 model_get_accesstoken_500_response.go create mode 100644 model_get_accesstoken_500_response_fault.go create mode 100644 model_get_accesstoken_500_response_fault_detail.go create mode 100644 test/api_accesstoken_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d424bc9..bacb248 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -3,6 +3,7 @@ .travis.yml README.md api/openapi.yaml +api_accesstoken.go api_deals.go api_freight_estimate.go api_invoices.go @@ -16,6 +17,8 @@ api_returns.go api_stock_update.go client.go configuration.go +docs/AccesstokenAPI.md +docs/AccesstokenResponse.md docs/AvailabilityAsyncNotificationRequest.md docs/AvailabilityAsyncNotificationRequestResourceInner.md docs/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.md @@ -39,6 +42,10 @@ docs/FreightResponseFreightEstimateResponse.md docs/FreightResponseFreightEstimateResponseDistributionInner.md docs/FreightResponseFreightEstimateResponseDistributionInnerCarrierListInner.md docs/FreightResponseFreightEstimateResponseLinesInner.md +docs/GetAccesstoken400Response.md +docs/GetAccesstoken500Response.md +docs/GetAccesstoken500ResponseFault.md +docs/GetAccesstoken500ResponseFaultDetail.md docs/GetResellerV6ValidateQuote400Response.md docs/GetResellerV6ValidateQuote400ResponseFieldsInner.md docs/GetResellerV6ValidateQuote500Response.md @@ -210,6 +217,7 @@ docs/ValidateQuoteResponseVmfAdditionalAttributesInner.md git_push.sh go.mod go.sum +model_accesstoken_response.go model_availability_async_notification_request.go model_availability_async_notification_request_resource_inner.go model_availability_async_notification_request_resource_inner_links_inner.go @@ -231,6 +239,10 @@ model_freight_response_freight_estimate_response.go model_freight_response_freight_estimate_response_distribution_inner.go model_freight_response_freight_estimate_response_distribution_inner_carrier_list_inner.go model_freight_response_freight_estimate_response_lines_inner.go +model_get_accesstoken_400_response.go +model_get_accesstoken_500_response.go +model_get_accesstoken_500_response_fault.go +model_get_accesstoken_500_response_fault_detail.go model_get_reseller_v6_validate_quote_400_response.go model_get_reseller_v6_validate_quote_400_response_fields_inner.go model_get_reseller_v6_validate_quote_500_response.go @@ -391,6 +403,7 @@ model_validate_quote_response.go model_validate_quote_response_lines_inner.go model_validate_quote_response_vmf_additional_attributes_inner.go response.go +test/api_accesstoken_test.go test/api_deals_test.go test/api_freight_estimate_test.go test/api_invoices_test.go diff --git a/README.md b/README.md index e902fc6..d64b689 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,8 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen - ## Installation -To install the package use: -```sh -go get -u github.com/ingrammicro-xvantage/xi-sdk-resellers-go -``` Install the following dependencies: ```sh @@ -23,12 +18,11 @@ go get github.com/stretchr/testify/assert go get golang.org/x/oauth2 go get golang.org/x/net/context ``` -``` Put the package under your project folder and add the following in import: ```go -import xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go" +import xi_sdk_resellers "github.com/GIT_USER_ID/GIT_REPO_ID" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -84,6 +78,7 @@ All URIs are relative to *https://api.ingrammicro.com:443* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AccesstokenAPI* | [**GetAccesstoken**](docs/AccesstokenAPI.md#getaccesstoken) | **Get** /oauth/oauth20/token | Accesstoken *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 @@ -112,6 +107,7 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AccesstokenResponse](docs/AccesstokenResponse.md) - [AvailabilityAsyncNotificationRequest](docs/AvailabilityAsyncNotificationRequest.md) - [AvailabilityAsyncNotificationRequestResourceInner](docs/AvailabilityAsyncNotificationRequestResourceInner.md) - [AvailabilityAsyncNotificationRequestResourceInnerLinksInner](docs/AvailabilityAsyncNotificationRequestResourceInnerLinksInner.md) @@ -133,6 +129,10 @@ Class | Method | HTTP request | Description - [FreightResponseFreightEstimateResponseDistributionInner](docs/FreightResponseFreightEstimateResponseDistributionInner.md) - [FreightResponseFreightEstimateResponseDistributionInnerCarrierListInner](docs/FreightResponseFreightEstimateResponseDistributionInnerCarrierListInner.md) - [FreightResponseFreightEstimateResponseLinesInner](docs/FreightResponseFreightEstimateResponseLinesInner.md) + - [GetAccesstoken400Response](docs/GetAccesstoken400Response.md) + - [GetAccesstoken500Response](docs/GetAccesstoken500Response.md) + - [GetAccesstoken500ResponseFault](docs/GetAccesstoken500ResponseFault.md) + - [GetAccesstoken500ResponseFaultDetail](docs/GetAccesstoken500ResponseFaultDetail.md) - [GetResellerV6ValidateQuote400Response](docs/GetResellerV6ValidateQuote400Response.md) - [GetResellerV6ValidateQuote400ResponseFieldsInner](docs/GetResellerV6ValidateQuote400ResponseFieldsInner.md) - [GetResellerV6ValidateQuote500Response](docs/GetResellerV6ValidateQuote500Response.md) @@ -307,6 +307,7 @@ Authentication schemes defined for the API: - **Scopes**: - **write**: allows modifying resources - **read**: allows reading resources + - **description**: Example @@ -345,10 +346,6 @@ Each of these functions takes a value of the given basic type and returns a poin * `PtrTime` ## Author --[Ingram Micro Xvantage](https://github.com/ingrammicro-xvantage) -## Contact -For any inquiries or support, please feel free to contact us at: -- Email: [xi_support@ingrammicro.com](xi_support@ingrammicro.com) \ No newline at end of file diff --git a/api/openapi.yaml b/api/openapi.yaml index a5f0aa3..6863301 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -65,63 +65,58 @@ tags: name: Returns - description: ' ' name: Freight Estimate -- description: |2 - - Ingram Micro’s Orders v5 API endpoints support both standard products and direct-ship products, including licensing and warranties SKUs. Users can: - - Search existing orders by Ingram Micro sales order number. - - View order details. - - Create and place new orders. - - Cancel orders, as permitted by order status. - - - *Host Production URL - https://api.ingrammicro.com:443/resellers/v5* - name: Orders v5 -- description: |2 - - The Ingram Micro Product Catalog v6 API endpoints enable users to: - - Search products by SKU or additional criteria. - - Find price and availability for up to 50 SKUs at one time. - - View inventory by location in the product catalog. - - - *Host Production URL - https://api.ingrammicro.com:443/resellers/v5* - name: Product Catalog v5 -- description: |2 - - The Ingram Micro Quotes v5 API endpoints enable users to: - - Obtain a list of all quotes. - - View details for each quote, including: quote name, quote number, expiration date, product quantity and product price. - - Ingram Micro does not currently offer an API to create a quote. - - - *Host Production URL - https://api.ingrammicro.com:443/resellers/v5* - name: Quotes v5 -- description: |2 - - The Ingram Micro Invoice v5 API endpoint provide real-time information for invoices and corresponding orders. Users can: - - Get invoice information for an open order or shipped order. - - View invoice information is available for orders placed in the last 9 months, by providing a sales order number. - - - *Host Production URL - https://api.ingrammicro.com:443/resellers/v5* - name: Invoices V5 -- description: |2- - - All our archived API endpoints, these APIs will be deprecated in 2021. We recommend using the latest version 6.0 endpoints. - name: Invoices v4 -- description: |2- - - All our archived API endpoints, these APIs will be deprecated in 2021. We recommend using the latest version 6.0 endpoints. - name: Orders v4 -- description: |2- - - All our archived API endpoints, these APIs will be deprecated in 2021. We recommend using the latest version 6.0 endpoints. - name: Product Catalog v4 -- description: |2- - - All our archived API endpoints, these APIs will be deprecated in 2021. We recommend using the latest version 6.0 endpoints. - name: Quotes v4 paths: + /oauth/oauth20/token: + get: + description: The Authentication endpoint will provide an access token to access + the API. + operationId: get-accesstoken + parameters: + - description: Keep grant_type as client_credentials only. + explode: true + in: query + name: grant_type + required: true + schema: + example: client_credentials + type: string + style: form + - explode: true + in: query + name: client_id + required: true + schema: + type: string + style: form + - explode: true + in: query + name: client_secret + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccesstokenResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/get_accesstoken_400_response' + description: Bad Request + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/get_accesstoken_500_response' + description: Internal Server Error + summary: Accesstoken + tags: + - Accesstoken /resellers/v6/catalog/priceandavailability: post: description: "The PriceAndAvailability API, will retrieve Pricing, Availability,\ @@ -7832,6 +7827,19 @@ paths: - Freight Estimate components: schemas: + AccesstokenResponse: + example: + access_token: access_token + token_type: token_type + expires_in: expires_in + properties: + access_token: + type: string + token_type: + type: string + expires_in: + type: string + type: object OrderCreateRequest: example: notes: notes @@ -9843,7 +9851,7 @@ components: type: object QuoteDetailsResponse: example: - quantityTotal: 2 + quantityTotal: 7 quoteSubType: quoteSubType leaseInfo: leaseInfo dateClosed: dateClosed @@ -9854,17 +9862,24 @@ components: vpnCategory: vpnCategory quantity: 0 notes: notes + resellerMargin: resellerMargin description: description weight: 6 vendorName: vendorName + isSubscription: true ean: ean terms: terms price: quotePrice: 1 + totalVisibleReserveQuantity: 3 + extendedvendorprice: 9.301444243932576 msrp: 5 extendedQuotePrice: 2 + recurringPriceModel: recurringPriceModel + vendorprice: 7.061401241503109 + type: type extendedMsrp: 5 - discountOffList: 7.061401241503109 + discountOffList: discountOffList quoteProductGuid: quoteProductGuid vendorPartNumber: vendorPartNumber lineNumber: lineNumber @@ -9876,17 +9891,24 @@ components: vpnCategory: vpnCategory quantity: 0 notes: notes + resellerMargin: resellerMargin description: description weight: 6 vendorName: vendorName + isSubscription: true ean: ean terms: terms price: quotePrice: 1 + totalVisibleReserveQuantity: 3 + extendedvendorprice: 9.301444243932576 msrp: 5 extendedQuotePrice: 2 + recurringPriceModel: recurringPriceModel + vendorprice: 7.061401241503109 + type: type extendedMsrp: 5 - discountOffList: 7.061401241503109 + discountOffList: discountOffList quoteProductGuid: quoteProductGuid vendorPartNumber: vendorPartNumber lineNumber: lineNumber @@ -9894,7 +9916,7 @@ components: quoteProductsSupplierPartAuxiliaryId: quoteProductsSupplierPartAuxiliaryId isSuggestionProduct: true leasingInstructions: leasingInstructions - productsCount: 9 + productsCount: 2 specialBidEffectiveDate: specialBidEffectiveDate endUserInfo: phoneNumber: phoneNumber @@ -9909,13 +9931,13 @@ components: email: email marketSegment: marketSegment introPreamble: introPreamble - extendedMsrpTotal: 3 + extendedMsrpTotal: 4 lastModifiedDate: lastModifiedDate legalTerms: legalTerms specialBidExpirationDate: specialBidExpirationDate quoteNumber: quoteNumber revision: revision - extendedQuotePriceTotal: 4 + extendedQuotePriceTotal: 1 customerNeed: customerNeed resellerInfo: phoneNumber: phoneNumber @@ -10573,7 +10595,7 @@ components: type: object QuoteToOrderResponse: example: - confirmationNumber: 987654322 + confirmationNumber: "987654322" message: message quoteNumber: QUO-14551943-D2Y9L9 properties: @@ -10584,8 +10606,8 @@ components: type: string confirmationNumber: description: A unique confirmation number for tracking purposes. - example: 987654322 - type: number + example: "987654322" + type: string message: description: A confirmation message. type: string @@ -11312,6 +11334,41 @@ components: nullable: true type: array type: object + get_accesstoken_400_response: + example: + message: message + properties: + message: + type: string + type: object + get_accesstoken_500_response_fault_detail: + example: + errorcode: errorcode + properties: + errorcode: + type: string + type: object + get_accesstoken_500_response_fault: + example: + faultstring: faultstring + detail: + errorcode: errorcode + properties: + faultstring: + type: string + detail: + $ref: '#/components/schemas/get_accesstoken_500_response_fault_detail' + type: object + get_accesstoken_500_response: + example: + fault: + faultstring: faultstring + detail: + errorcode: errorcode + properties: + fault: + $ref: '#/components/schemas/get_accesstoken_500_response_fault' + type: object get_reseller_v6_validateQuote_400_response_fields_inner: example: field: field @@ -15311,10 +15368,15 @@ components: QuoteDetailsResponse_products_inner_price: example: quotePrice: 1 + totalVisibleReserveQuantity: 3 + extendedvendorprice: 9.301444243932576 msrp: 5 extendedQuotePrice: 2 + recurringPriceModel: recurringPriceModel + vendorprice: 7.061401241503109 + type: type extendedMsrp: 5 - discountOffList: 7.061401241503109 + discountOffList: discountOffList properties: quotePrice: description: Ingram Micro quoted price specific to the reseller and quote. @@ -15329,9 +15391,20 @@ components: description: Extended reseller quoted price (cost to reseller) X Quantity type: integer discountOffList: - description: Discount off list percentage + description: Discount off list percentage extended + type: string + vendorprice: + format: decimal + type: number + extendedvendorprice: format: decimal type: number + totalVisibleReserveQuantity: + type: integer + type: + type: string + recurringPriceModel: + type: string type: object QuoteDetailsResponse_products_inner: example: @@ -15340,17 +15413,24 @@ components: vpnCategory: vpnCategory quantity: 0 notes: notes + resellerMargin: resellerMargin description: description weight: 6 vendorName: vendorName + isSubscription: true ean: ean terms: terms price: quotePrice: 1 + totalVisibleReserveQuantity: 3 + extendedvendorprice: 9.301444243932576 msrp: 5 extendedQuotePrice: 2 + recurringPriceModel: recurringPriceModel + vendorprice: 7.061401241503109 + type: type extendedMsrp: 5 - discountOffList: 7.061401241503109 + discountOffList: discountOffList quoteProductGuid: quoteProductGuid vendorPartNumber: vendorPartNumber lineNumber: lineNumber @@ -15420,6 +15500,10 @@ components: terms: description: Terms of the quote type: string + isSubscription: + type: boolean + resellerMargin: + type: string price: $ref: '#/components/schemas/QuoteDetailsResponse_products_inner_price' type: object @@ -17345,6 +17429,7 @@ components: scopes: write: allows modifying resources read: allows reading resources + description: "" tokenUrl: https://api.ingrammicro.com:443/oauth/oauth30/token type: oauth2 x-tagGroups: @@ -17367,15 +17452,6 @@ x-tagGroups: tags: - Orders v6 - Invoices v6 -- name: Legacy APIs (Version 5) - tags: - - Product Catalog v5 - - Orders v5 - - Quotes v5 - - Invoices V5 -- name: Legacy APIs (Version 4) +- name: Accesstoken tags: - - Product Catalog v4 - - Orders v4 - - Quotes v4 - - Invoices v4 + - Accesstoken diff --git a/api_accesstoken.go b/api_accesstoken.go new file mode 100644 index 0000000..1a34ff2 --- /dev/null +++ b/api_accesstoken.go @@ -0,0 +1,174 @@ +/* +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. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package xi_sdk_resellers + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// AccesstokenAPIService AccesstokenAPI service +type AccesstokenAPIService service + +type ApiGetAccesstokenRequest struct { + ctx context.Context + ApiService *AccesstokenAPIService + grantType *string + clientId *string + clientSecret *string +} + +// Keep grant_type as client_credentials only. +func (r ApiGetAccesstokenRequest) GrantType(grantType string) ApiGetAccesstokenRequest { + r.grantType = &grantType + return r +} + +func (r ApiGetAccesstokenRequest) ClientId(clientId string) ApiGetAccesstokenRequest { + r.clientId = &clientId + return r +} + +func (r ApiGetAccesstokenRequest) ClientSecret(clientSecret string) ApiGetAccesstokenRequest { + r.clientSecret = &clientSecret + return r +} + +func (r ApiGetAccesstokenRequest) Execute() (*AccesstokenResponse, *http.Response, error) { + return r.ApiService.GetAccesstokenExecute(r) +} + +/* +GetAccesstoken Accesstoken + +The Authentication endpoint will provide an access token to access the API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAccesstokenRequest +*/ +func (a *AccesstokenAPIService) GetAccesstoken(ctx context.Context) ApiGetAccesstokenRequest { + return ApiGetAccesstokenRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AccesstokenResponse +func (a *AccesstokenAPIService) GetAccesstokenExecute(r ApiGetAccesstokenRequest) (*AccesstokenResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccesstokenResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccesstokenAPIService.GetAccesstoken") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/oauth/oauth20/token" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.grantType == nil { + return localVarReturnValue, nil, reportError("grantType is required and must be specified") + } + if r.clientId == nil { + return localVarReturnValue, nil, reportError("clientId is required and must be specified") + } + if r.clientSecret == nil { + return localVarReturnValue, nil, reportError("clientSecret is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "grant_type", r.grantType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "client_id", r.clientId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "client_secret", r.clientSecret, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v GetAccesstoken400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAccesstoken500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/client.go b/client.go index 4fd3715..7c08c55 100644 --- a/client.go +++ b/client.go @@ -50,6 +50,8 @@ type APIClient struct { // API Services + AccesstokenAPI *AccesstokenAPIService + DealsAPI *DealsAPIService FreightEstimateAPI *FreightEstimateAPIService @@ -89,6 +91,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services + c.AccesstokenAPI = (*AccesstokenAPIService)(&c.common) c.DealsAPI = (*DealsAPIService)(&c.common) c.FreightEstimateAPI = (*FreightEstimateAPIService)(&c.common) c.InvoicesAPI = (*InvoicesAPIService)(&c.common) diff --git a/docs/AccesstokenAPI.md b/docs/AccesstokenAPI.md new file mode 100644 index 0000000..24b22ce --- /dev/null +++ b/docs/AccesstokenAPI.md @@ -0,0 +1,79 @@ +# \AccesstokenAPI + +All URIs are relative to *https://api.ingrammicro.com:443* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAccesstoken**](AccesstokenAPI.md#GetAccesstoken) | **Get** /oauth/oauth20/token | Accesstoken + + + +## GetAccesstoken + +> AccesstokenResponse GetAccesstoken(ctx).GrantType(grantType).ClientId(clientId).ClientSecret(clientSecret).Execute() + +Accesstoken + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +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) + 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) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccesstoken`: AccesstokenResponse + fmt.Fprintf(os.Stdout, "Response from `AccesstokenAPI.GetAccesstoken`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAccesstokenRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **grantType** | **string** | Keep grant_type as client_credentials only. | + **clientId** | **string** | | + **clientSecret** | **string** | | + +### Return type + +[**AccesstokenResponse**](AccesstokenResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AccesstokenResponse.md b/docs/AccesstokenResponse.md new file mode 100644 index 0000000..1448fe7 --- /dev/null +++ b/docs/AccesstokenResponse.md @@ -0,0 +1,108 @@ +# AccesstokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | Pointer to **string** | | [optional] +**TokenType** | Pointer to **string** | | [optional] +**ExpiresIn** | Pointer to **string** | | [optional] + +## Methods + +### NewAccesstokenResponse + +`func NewAccesstokenResponse() *AccesstokenResponse` + +NewAccesstokenResponse instantiates a new AccesstokenResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAccesstokenResponseWithDefaults + +`func NewAccesstokenResponseWithDefaults() *AccesstokenResponse` + +NewAccesstokenResponseWithDefaults instantiates a new AccesstokenResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccessToken + +`func (o *AccesstokenResponse) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *AccesstokenResponse) GetAccessTokenOk() (*string, bool)` + +GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessToken + +`func (o *AccesstokenResponse) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + +### HasAccessToken + +`func (o *AccesstokenResponse) HasAccessToken() bool` + +HasAccessToken returns a boolean if a field has been set. + +### GetTokenType + +`func (o *AccesstokenResponse) GetTokenType() string` + +GetTokenType returns the TokenType field if non-nil, zero value otherwise. + +### GetTokenTypeOk + +`func (o *AccesstokenResponse) GetTokenTypeOk() (*string, bool)` + +GetTokenTypeOk returns a tuple with the TokenType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenType + +`func (o *AccesstokenResponse) SetTokenType(v string)` + +SetTokenType sets TokenType field to given value. + +### HasTokenType + +`func (o *AccesstokenResponse) HasTokenType() bool` + +HasTokenType returns a boolean if a field has been set. + +### GetExpiresIn + +`func (o *AccesstokenResponse) GetExpiresIn() string` + +GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise. + +### GetExpiresInOk + +`func (o *AccesstokenResponse) GetExpiresInOk() (*string, bool)` + +GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresIn + +`func (o *AccesstokenResponse) SetExpiresIn(v string)` + +SetExpiresIn sets ExpiresIn field to given value. + +### HasExpiresIn + +`func (o *AccesstokenResponse) HasExpiresIn() bool` + +HasExpiresIn returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetAccesstoken400Response.md b/docs/GetAccesstoken400Response.md new file mode 100644 index 0000000..e152b3b --- /dev/null +++ b/docs/GetAccesstoken400Response.md @@ -0,0 +1,56 @@ +# GetAccesstoken400Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewGetAccesstoken400Response + +`func NewGetAccesstoken400Response() *GetAccesstoken400Response` + +NewGetAccesstoken400Response instantiates a new GetAccesstoken400Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccesstoken400ResponseWithDefaults + +`func NewGetAccesstoken400ResponseWithDefaults() *GetAccesstoken400Response` + +NewGetAccesstoken400ResponseWithDefaults instantiates a new GetAccesstoken400Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *GetAccesstoken400Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *GetAccesstoken400Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *GetAccesstoken400Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *GetAccesstoken400Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetAccesstoken500Response.md b/docs/GetAccesstoken500Response.md new file mode 100644 index 0000000..2d4aa9d --- /dev/null +++ b/docs/GetAccesstoken500Response.md @@ -0,0 +1,56 @@ +# GetAccesstoken500Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fault** | Pointer to [**GetAccesstoken500ResponseFault**](GetAccesstoken500ResponseFault.md) | | [optional] + +## Methods + +### NewGetAccesstoken500Response + +`func NewGetAccesstoken500Response() *GetAccesstoken500Response` + +NewGetAccesstoken500Response instantiates a new GetAccesstoken500Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccesstoken500ResponseWithDefaults + +`func NewGetAccesstoken500ResponseWithDefaults() *GetAccesstoken500Response` + +NewGetAccesstoken500ResponseWithDefaults instantiates a new GetAccesstoken500Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFault + +`func (o *GetAccesstoken500Response) GetFault() GetAccesstoken500ResponseFault` + +GetFault returns the Fault field if non-nil, zero value otherwise. + +### GetFaultOk + +`func (o *GetAccesstoken500Response) GetFaultOk() (*GetAccesstoken500ResponseFault, bool)` + +GetFaultOk returns a tuple with the Fault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFault + +`func (o *GetAccesstoken500Response) SetFault(v GetAccesstoken500ResponseFault)` + +SetFault sets Fault field to given value. + +### HasFault + +`func (o *GetAccesstoken500Response) HasFault() bool` + +HasFault returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetAccesstoken500ResponseFault.md b/docs/GetAccesstoken500ResponseFault.md new file mode 100644 index 0000000..805fc7e --- /dev/null +++ b/docs/GetAccesstoken500ResponseFault.md @@ -0,0 +1,82 @@ +# GetAccesstoken500ResponseFault + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Faultstring** | Pointer to **string** | | [optional] +**Detail** | Pointer to [**GetAccesstoken500ResponseFaultDetail**](GetAccesstoken500ResponseFaultDetail.md) | | [optional] + +## Methods + +### NewGetAccesstoken500ResponseFault + +`func NewGetAccesstoken500ResponseFault() *GetAccesstoken500ResponseFault` + +NewGetAccesstoken500ResponseFault instantiates a new GetAccesstoken500ResponseFault object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccesstoken500ResponseFaultWithDefaults + +`func NewGetAccesstoken500ResponseFaultWithDefaults() *GetAccesstoken500ResponseFault` + +NewGetAccesstoken500ResponseFaultWithDefaults instantiates a new GetAccesstoken500ResponseFault object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFaultstring + +`func (o *GetAccesstoken500ResponseFault) GetFaultstring() string` + +GetFaultstring returns the Faultstring field if non-nil, zero value otherwise. + +### GetFaultstringOk + +`func (o *GetAccesstoken500ResponseFault) GetFaultstringOk() (*string, bool)` + +GetFaultstringOk returns a tuple with the Faultstring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFaultstring + +`func (o *GetAccesstoken500ResponseFault) SetFaultstring(v string)` + +SetFaultstring sets Faultstring field to given value. + +### HasFaultstring + +`func (o *GetAccesstoken500ResponseFault) HasFaultstring() bool` + +HasFaultstring returns a boolean if a field has been set. + +### GetDetail + +`func (o *GetAccesstoken500ResponseFault) GetDetail() GetAccesstoken500ResponseFaultDetail` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *GetAccesstoken500ResponseFault) GetDetailOk() (*GetAccesstoken500ResponseFaultDetail, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *GetAccesstoken500ResponseFault) SetDetail(v GetAccesstoken500ResponseFaultDetail)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *GetAccesstoken500ResponseFault) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetAccesstoken500ResponseFaultDetail.md b/docs/GetAccesstoken500ResponseFaultDetail.md new file mode 100644 index 0000000..cd6fb52 --- /dev/null +++ b/docs/GetAccesstoken500ResponseFaultDetail.md @@ -0,0 +1,56 @@ +# GetAccesstoken500ResponseFaultDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errorcode** | Pointer to **string** | | [optional] + +## Methods + +### NewGetAccesstoken500ResponseFaultDetail + +`func NewGetAccesstoken500ResponseFaultDetail() *GetAccesstoken500ResponseFaultDetail` + +NewGetAccesstoken500ResponseFaultDetail instantiates a new GetAccesstoken500ResponseFaultDetail object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAccesstoken500ResponseFaultDetailWithDefaults + +`func NewGetAccesstoken500ResponseFaultDetailWithDefaults() *GetAccesstoken500ResponseFaultDetail` + +NewGetAccesstoken500ResponseFaultDetailWithDefaults instantiates a new GetAccesstoken500ResponseFaultDetail object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrorcode + +`func (o *GetAccesstoken500ResponseFaultDetail) GetErrorcode() string` + +GetErrorcode returns the Errorcode field if non-nil, zero value otherwise. + +### GetErrorcodeOk + +`func (o *GetAccesstoken500ResponseFaultDetail) GetErrorcodeOk() (*string, bool)` + +GetErrorcodeOk returns a tuple with the Errorcode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorcode + +`func (o *GetAccesstoken500ResponseFaultDetail) SetErrorcode(v string)` + +SetErrorcode sets Errorcode field to given value. + +### HasErrorcode + +`func (o *GetAccesstoken500ResponseFaultDetail) HasErrorcode() bool` + +HasErrorcode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuoteDetailsResponseProductsInner.md b/docs/QuoteDetailsResponseProductsInner.md index b6889a5..61862a5 100644 --- a/docs/QuoteDetailsResponseProductsInner.md +++ b/docs/QuoteDetailsResponseProductsInner.md @@ -20,6 +20,8 @@ Name | Type | Description | Notes **QuoteProductsSupplierPartAuxiliaryId** | Pointer to **string** | Vendor product configuration ID specific to Cisco. | [optional] **VendorName** | Pointer to **string** | Vendor name of the product | [optional] **Terms** | Pointer to **string** | Terms of the quote | [optional] +**IsSubscription** | Pointer to **bool** | | [optional] +**ResellerMargin** | Pointer to **string** | | [optional] **Price** | Pointer to [**QuoteDetailsResponseProductsInnerPrice**](QuoteDetailsResponseProductsInnerPrice.md) | | [optional] ## Methods @@ -441,6 +443,56 @@ SetTerms sets Terms field to given value. HasTerms returns a boolean if a field has been set. +### GetIsSubscription + +`func (o *QuoteDetailsResponseProductsInner) GetIsSubscription() bool` + +GetIsSubscription returns the IsSubscription field if non-nil, zero value otherwise. + +### GetIsSubscriptionOk + +`func (o *QuoteDetailsResponseProductsInner) GetIsSubscriptionOk() (*bool, bool)` + +GetIsSubscriptionOk returns a tuple with the IsSubscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSubscription + +`func (o *QuoteDetailsResponseProductsInner) SetIsSubscription(v bool)` + +SetIsSubscription sets IsSubscription field to given value. + +### HasIsSubscription + +`func (o *QuoteDetailsResponseProductsInner) HasIsSubscription() bool` + +HasIsSubscription returns a boolean if a field has been set. + +### GetResellerMargin + +`func (o *QuoteDetailsResponseProductsInner) GetResellerMargin() string` + +GetResellerMargin returns the ResellerMargin field if non-nil, zero value otherwise. + +### GetResellerMarginOk + +`func (o *QuoteDetailsResponseProductsInner) GetResellerMarginOk() (*string, bool)` + +GetResellerMarginOk returns a tuple with the ResellerMargin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResellerMargin + +`func (o *QuoteDetailsResponseProductsInner) SetResellerMargin(v string)` + +SetResellerMargin sets ResellerMargin field to given value. + +### HasResellerMargin + +`func (o *QuoteDetailsResponseProductsInner) HasResellerMargin() bool` + +HasResellerMargin returns a boolean if a field has been set. + ### GetPrice `func (o *QuoteDetailsResponseProductsInner) GetPrice() QuoteDetailsResponseProductsInnerPrice` diff --git a/docs/QuoteDetailsResponseProductsInnerPrice.md b/docs/QuoteDetailsResponseProductsInnerPrice.md index 6adb87c..dcca4b8 100644 --- a/docs/QuoteDetailsResponseProductsInnerPrice.md +++ b/docs/QuoteDetailsResponseProductsInnerPrice.md @@ -8,7 +8,12 @@ Name | Type | Description | Notes **Msrp** | Pointer to **int32** | Manufacturer Suggested Retail Price | [optional] **ExtendedMsrp** | Pointer to **int32** | Extended MSRP - Manufacturer Suggested Retail Price X Quantity | [optional] **ExtendedQuotePrice** | Pointer to **int32** | Extended reseller quoted price (cost to reseller) X Quantity | [optional] -**DiscountOffList** | Pointer to **float32** | Discount off list percentage | [optional] +**DiscountOffList** | Pointer to **string** | Discount off list percentage extended | [optional] +**Vendorprice** | Pointer to **float32** | | [optional] +**Extendedvendorprice** | Pointer to **float32** | | [optional] +**TotalVisibleReserveQuantity** | Pointer to **int32** | | [optional] +**Type** | Pointer to **string** | | [optional] +**RecurringPriceModel** | Pointer to **string** | | [optional] ## Methods @@ -131,20 +136,20 @@ HasExtendedQuotePrice returns a boolean if a field has been set. ### GetDiscountOffList -`func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffList() float32` +`func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffList() string` GetDiscountOffList returns the DiscountOffList field if non-nil, zero value otherwise. ### GetDiscountOffListOk -`func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffListOk() (*float32, bool)` +`func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffListOk() (*string, bool)` GetDiscountOffListOk returns a tuple with the DiscountOffList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDiscountOffList -`func (o *QuoteDetailsResponseProductsInnerPrice) SetDiscountOffList(v float32)` +`func (o *QuoteDetailsResponseProductsInnerPrice) SetDiscountOffList(v string)` SetDiscountOffList sets DiscountOffList field to given value. @@ -154,6 +159,131 @@ SetDiscountOffList sets DiscountOffList field to given value. HasDiscountOffList returns a boolean if a field has been set. +### GetVendorprice + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetVendorprice() float32` + +GetVendorprice returns the Vendorprice field if non-nil, zero value otherwise. + +### GetVendorpriceOk + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetVendorpriceOk() (*float32, bool)` + +GetVendorpriceOk returns a tuple with the Vendorprice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorprice + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetVendorprice(v float32)` + +SetVendorprice sets Vendorprice field to given value. + +### HasVendorprice + +`func (o *QuoteDetailsResponseProductsInnerPrice) HasVendorprice() bool` + +HasVendorprice returns a boolean if a field has been set. + +### GetExtendedvendorprice + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedvendorprice() float32` + +GetExtendedvendorprice returns the Extendedvendorprice field if non-nil, zero value otherwise. + +### GetExtendedvendorpriceOk + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedvendorpriceOk() (*float32, bool)` + +GetExtendedvendorpriceOk returns a tuple with the Extendedvendorprice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedvendorprice + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedvendorprice(v float32)` + +SetExtendedvendorprice sets Extendedvendorprice field to given value. + +### HasExtendedvendorprice + +`func (o *QuoteDetailsResponseProductsInnerPrice) HasExtendedvendorprice() bool` + +HasExtendedvendorprice returns a boolean if a field has been set. + +### GetTotalVisibleReserveQuantity + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetTotalVisibleReserveQuantity() int32` + +GetTotalVisibleReserveQuantity returns the TotalVisibleReserveQuantity field if non-nil, zero value otherwise. + +### GetTotalVisibleReserveQuantityOk + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetTotalVisibleReserveQuantityOk() (*int32, bool)` + +GetTotalVisibleReserveQuantityOk returns a tuple with the TotalVisibleReserveQuantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalVisibleReserveQuantity + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetTotalVisibleReserveQuantity(v int32)` + +SetTotalVisibleReserveQuantity sets TotalVisibleReserveQuantity field to given value. + +### HasTotalVisibleReserveQuantity + +`func (o *QuoteDetailsResponseProductsInnerPrice) HasTotalVisibleReserveQuantity() bool` + +HasTotalVisibleReserveQuantity returns a boolean if a field has been set. + +### GetType + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *QuoteDetailsResponseProductsInnerPrice) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetRecurringPriceModel + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetRecurringPriceModel() string` + +GetRecurringPriceModel returns the RecurringPriceModel field if non-nil, zero value otherwise. + +### GetRecurringPriceModelOk + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetRecurringPriceModelOk() (*string, bool)` + +GetRecurringPriceModelOk returns a tuple with the RecurringPriceModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecurringPriceModel + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetRecurringPriceModel(v string)` + +SetRecurringPriceModel sets RecurringPriceModel field to given value. + +### HasRecurringPriceModel + +`func (o *QuoteDetailsResponseProductsInnerPrice) HasRecurringPriceModel() bool` + +HasRecurringPriceModel returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/QuoteToOrderResponse.md b/docs/QuoteToOrderResponse.md index ec364b5..cee5c0c 100644 --- a/docs/QuoteToOrderResponse.md +++ b/docs/QuoteToOrderResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **QuoteNumber** | Pointer to **string** | Unique identifier generated by Ingram Micro's CRM specific to each quote. | [optional] -**ConfirmationNumber** | Pointer to **float32** | A unique confirmation number for tracking purposes. | [optional] +**ConfirmationNumber** | Pointer to **string** | A unique confirmation number for tracking purposes. | [optional] **Message** | Pointer to **string** | A confirmation message. | [optional] ## Methods @@ -54,20 +54,20 @@ HasQuoteNumber returns a boolean if a field has been set. ### GetConfirmationNumber -`func (o *QuoteToOrderResponse) GetConfirmationNumber() float32` +`func (o *QuoteToOrderResponse) GetConfirmationNumber() string` GetConfirmationNumber returns the ConfirmationNumber field if non-nil, zero value otherwise. ### GetConfirmationNumberOk -`func (o *QuoteToOrderResponse) GetConfirmationNumberOk() (*float32, bool)` +`func (o *QuoteToOrderResponse) GetConfirmationNumberOk() (*string, bool)` GetConfirmationNumberOk returns a tuple with the ConfirmationNumber field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfirmationNumber -`func (o *QuoteToOrderResponse) SetConfirmationNumber(v float32)` +`func (o *QuoteToOrderResponse) SetConfirmationNumber(v string)` SetConfirmationNumber sets ConfirmationNumber field to given value. diff --git a/model_accesstoken_response.go b/model_accesstoken_response.go new file mode 100644 index 0000000..283e41c --- /dev/null +++ b/model_accesstoken_response.go @@ -0,0 +1,198 @@ +/* +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. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package xi_sdk_resellers + +import ( + "encoding/json" +) + +// checks if the AccesstokenResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccesstokenResponse{} + +// AccesstokenResponse struct for AccesstokenResponse +type AccesstokenResponse struct { + AccessToken *string `json:"access_token,omitempty"` + TokenType *string `json:"token_type,omitempty"` + ExpiresIn *string `json:"expires_in,omitempty"` +} + +// NewAccesstokenResponse instantiates a new AccesstokenResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAccesstokenResponse() *AccesstokenResponse { + this := AccesstokenResponse{} + return &this +} + +// NewAccesstokenResponseWithDefaults instantiates a new AccesstokenResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAccesstokenResponseWithDefaults() *AccesstokenResponse { + this := AccesstokenResponse{} + return &this +} + +// GetAccessToken returns the AccessToken field value if set, zero value otherwise. +func (o *AccesstokenResponse) GetAccessToken() string { + if o == nil || IsNil(o.AccessToken) { + var ret string + return ret + } + return *o.AccessToken +} + +// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccesstokenResponse) GetAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.AccessToken) { + return nil, false + } + return o.AccessToken, true +} + +// HasAccessToken returns a boolean if a field has been set. +func (o *AccesstokenResponse) HasAccessToken() bool { + if o != nil && !IsNil(o.AccessToken) { + return true + } + + return false +} + +// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. +func (o *AccesstokenResponse) SetAccessToken(v string) { + o.AccessToken = &v +} + +// GetTokenType returns the TokenType field value if set, zero value otherwise. +func (o *AccesstokenResponse) GetTokenType() string { + if o == nil || IsNil(o.TokenType) { + var ret string + return ret + } + return *o.TokenType +} + +// GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccesstokenResponse) GetTokenTypeOk() (*string, bool) { + if o == nil || IsNil(o.TokenType) { + return nil, false + } + return o.TokenType, true +} + +// HasTokenType returns a boolean if a field has been set. +func (o *AccesstokenResponse) HasTokenType() bool { + if o != nil && !IsNil(o.TokenType) { + return true + } + + return false +} + +// SetTokenType gets a reference to the given string and assigns it to the TokenType field. +func (o *AccesstokenResponse) SetTokenType(v string) { + o.TokenType = &v +} + +// GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise. +func (o *AccesstokenResponse) GetExpiresIn() string { + if o == nil || IsNil(o.ExpiresIn) { + var ret string + return ret + } + return *o.ExpiresIn +} + +// GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccesstokenResponse) GetExpiresInOk() (*string, bool) { + if o == nil || IsNil(o.ExpiresIn) { + return nil, false + } + return o.ExpiresIn, true +} + +// HasExpiresIn returns a boolean if a field has been set. +func (o *AccesstokenResponse) HasExpiresIn() bool { + if o != nil && !IsNil(o.ExpiresIn) { + return true + } + + return false +} + +// SetExpiresIn gets a reference to the given string and assigns it to the ExpiresIn field. +func (o *AccesstokenResponse) SetExpiresIn(v string) { + o.ExpiresIn = &v +} + +func (o AccesstokenResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccesstokenResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessToken) { + toSerialize["access_token"] = o.AccessToken + } + if !IsNil(o.TokenType) { + toSerialize["token_type"] = o.TokenType + } + if !IsNil(o.ExpiresIn) { + toSerialize["expires_in"] = o.ExpiresIn + } + return toSerialize, nil +} + +type NullableAccesstokenResponse struct { + value *AccesstokenResponse + isSet bool +} + +func (v NullableAccesstokenResponse) Get() *AccesstokenResponse { + return v.value +} + +func (v *NullableAccesstokenResponse) Set(val *AccesstokenResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAccesstokenResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAccesstokenResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccesstokenResponse(val *AccesstokenResponse) *NullableAccesstokenResponse { + return &NullableAccesstokenResponse{value: val, isSet: true} +} + +func (v NullableAccesstokenResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccesstokenResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_accesstoken_400_response.go b/model_get_accesstoken_400_response.go new file mode 100644 index 0000000..8396897 --- /dev/null +++ b/model_get_accesstoken_400_response.go @@ -0,0 +1,126 @@ +/* +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. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package xi_sdk_resellers + +import ( + "encoding/json" +) + +// checks if the GetAccesstoken400Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccesstoken400Response{} + +// GetAccesstoken400Response struct for GetAccesstoken400Response +type GetAccesstoken400Response struct { + Message *string `json:"message,omitempty"` +} + +// NewGetAccesstoken400Response instantiates a new GetAccesstoken400Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccesstoken400Response() *GetAccesstoken400Response { + this := GetAccesstoken400Response{} + return &this +} + +// NewGetAccesstoken400ResponseWithDefaults instantiates a new GetAccesstoken400Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccesstoken400ResponseWithDefaults() *GetAccesstoken400Response { + this := GetAccesstoken400Response{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *GetAccesstoken400Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccesstoken400Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GetAccesstoken400Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *GetAccesstoken400Response) SetMessage(v string) { + o.Message = &v +} + +func (o GetAccesstoken400Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccesstoken400Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableGetAccesstoken400Response struct { + value *GetAccesstoken400Response + isSet bool +} + +func (v NullableGetAccesstoken400Response) Get() *GetAccesstoken400Response { + return v.value +} + +func (v *NullableGetAccesstoken400Response) Set(val *GetAccesstoken400Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccesstoken400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccesstoken400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccesstoken400Response(val *GetAccesstoken400Response) *NullableGetAccesstoken400Response { + return &NullableGetAccesstoken400Response{value: val, isSet: true} +} + +func (v NullableGetAccesstoken400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccesstoken400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_accesstoken_500_response.go b/model_get_accesstoken_500_response.go new file mode 100644 index 0000000..0c5732e --- /dev/null +++ b/model_get_accesstoken_500_response.go @@ -0,0 +1,126 @@ +/* +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. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package xi_sdk_resellers + +import ( + "encoding/json" +) + +// checks if the GetAccesstoken500Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccesstoken500Response{} + +// GetAccesstoken500Response struct for GetAccesstoken500Response +type GetAccesstoken500Response struct { + Fault *GetAccesstoken500ResponseFault `json:"fault,omitempty"` +} + +// NewGetAccesstoken500Response instantiates a new GetAccesstoken500Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccesstoken500Response() *GetAccesstoken500Response { + this := GetAccesstoken500Response{} + return &this +} + +// NewGetAccesstoken500ResponseWithDefaults instantiates a new GetAccesstoken500Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccesstoken500ResponseWithDefaults() *GetAccesstoken500Response { + this := GetAccesstoken500Response{} + return &this +} + +// GetFault returns the Fault field value if set, zero value otherwise. +func (o *GetAccesstoken500Response) GetFault() GetAccesstoken500ResponseFault { + if o == nil || IsNil(o.Fault) { + var ret GetAccesstoken500ResponseFault + return ret + } + return *o.Fault +} + +// GetFaultOk returns a tuple with the Fault field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccesstoken500Response) GetFaultOk() (*GetAccesstoken500ResponseFault, bool) { + if o == nil || IsNil(o.Fault) { + return nil, false + } + return o.Fault, true +} + +// HasFault returns a boolean if a field has been set. +func (o *GetAccesstoken500Response) HasFault() bool { + if o != nil && !IsNil(o.Fault) { + return true + } + + return false +} + +// SetFault gets a reference to the given GetAccesstoken500ResponseFault and assigns it to the Fault field. +func (o *GetAccesstoken500Response) SetFault(v GetAccesstoken500ResponseFault) { + o.Fault = &v +} + +func (o GetAccesstoken500Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccesstoken500Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Fault) { + toSerialize["fault"] = o.Fault + } + return toSerialize, nil +} + +type NullableGetAccesstoken500Response struct { + value *GetAccesstoken500Response + isSet bool +} + +func (v NullableGetAccesstoken500Response) Get() *GetAccesstoken500Response { + return v.value +} + +func (v *NullableGetAccesstoken500Response) Set(val *GetAccesstoken500Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccesstoken500Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccesstoken500Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccesstoken500Response(val *GetAccesstoken500Response) *NullableGetAccesstoken500Response { + return &NullableGetAccesstoken500Response{value: val, isSet: true} +} + +func (v NullableGetAccesstoken500Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccesstoken500Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_accesstoken_500_response_fault.go b/model_get_accesstoken_500_response_fault.go new file mode 100644 index 0000000..9c28488 --- /dev/null +++ b/model_get_accesstoken_500_response_fault.go @@ -0,0 +1,162 @@ +/* +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. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package xi_sdk_resellers + +import ( + "encoding/json" +) + +// checks if the GetAccesstoken500ResponseFault type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccesstoken500ResponseFault{} + +// GetAccesstoken500ResponseFault struct for GetAccesstoken500ResponseFault +type GetAccesstoken500ResponseFault struct { + Faultstring *string `json:"faultstring,omitempty"` + Detail *GetAccesstoken500ResponseFaultDetail `json:"detail,omitempty"` +} + +// NewGetAccesstoken500ResponseFault instantiates a new GetAccesstoken500ResponseFault object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccesstoken500ResponseFault() *GetAccesstoken500ResponseFault { + this := GetAccesstoken500ResponseFault{} + return &this +} + +// NewGetAccesstoken500ResponseFaultWithDefaults instantiates a new GetAccesstoken500ResponseFault object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccesstoken500ResponseFaultWithDefaults() *GetAccesstoken500ResponseFault { + this := GetAccesstoken500ResponseFault{} + return &this +} + +// GetFaultstring returns the Faultstring field value if set, zero value otherwise. +func (o *GetAccesstoken500ResponseFault) GetFaultstring() string { + if o == nil || IsNil(o.Faultstring) { + var ret string + return ret + } + return *o.Faultstring +} + +// GetFaultstringOk returns a tuple with the Faultstring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccesstoken500ResponseFault) GetFaultstringOk() (*string, bool) { + if o == nil || IsNil(o.Faultstring) { + return nil, false + } + return o.Faultstring, true +} + +// HasFaultstring returns a boolean if a field has been set. +func (o *GetAccesstoken500ResponseFault) HasFaultstring() bool { + if o != nil && !IsNil(o.Faultstring) { + return true + } + + return false +} + +// SetFaultstring gets a reference to the given string and assigns it to the Faultstring field. +func (o *GetAccesstoken500ResponseFault) SetFaultstring(v string) { + o.Faultstring = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *GetAccesstoken500ResponseFault) GetDetail() GetAccesstoken500ResponseFaultDetail { + if o == nil || IsNil(o.Detail) { + var ret GetAccesstoken500ResponseFaultDetail + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccesstoken500ResponseFault) GetDetailOk() (*GetAccesstoken500ResponseFaultDetail, bool) { + if o == nil || IsNil(o.Detail) { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *GetAccesstoken500ResponseFault) HasDetail() bool { + if o != nil && !IsNil(o.Detail) { + return true + } + + return false +} + +// SetDetail gets a reference to the given GetAccesstoken500ResponseFaultDetail and assigns it to the Detail field. +func (o *GetAccesstoken500ResponseFault) SetDetail(v GetAccesstoken500ResponseFaultDetail) { + o.Detail = &v +} + +func (o GetAccesstoken500ResponseFault) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccesstoken500ResponseFault) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Faultstring) { + toSerialize["faultstring"] = o.Faultstring + } + if !IsNil(o.Detail) { + toSerialize["detail"] = o.Detail + } + return toSerialize, nil +} + +type NullableGetAccesstoken500ResponseFault struct { + value *GetAccesstoken500ResponseFault + isSet bool +} + +func (v NullableGetAccesstoken500ResponseFault) Get() *GetAccesstoken500ResponseFault { + return v.value +} + +func (v *NullableGetAccesstoken500ResponseFault) Set(val *GetAccesstoken500ResponseFault) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccesstoken500ResponseFault) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccesstoken500ResponseFault) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccesstoken500ResponseFault(val *GetAccesstoken500ResponseFault) *NullableGetAccesstoken500ResponseFault { + return &NullableGetAccesstoken500ResponseFault{value: val, isSet: true} +} + +func (v NullableGetAccesstoken500ResponseFault) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccesstoken500ResponseFault) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_accesstoken_500_response_fault_detail.go b/model_get_accesstoken_500_response_fault_detail.go new file mode 100644 index 0000000..13b7d2a --- /dev/null +++ b/model_get_accesstoken_500_response_fault_detail.go @@ -0,0 +1,126 @@ +/* +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. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package xi_sdk_resellers + +import ( + "encoding/json" +) + +// checks if the GetAccesstoken500ResponseFaultDetail type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAccesstoken500ResponseFaultDetail{} + +// GetAccesstoken500ResponseFaultDetail struct for GetAccesstoken500ResponseFaultDetail +type GetAccesstoken500ResponseFaultDetail struct { + Errorcode *string `json:"errorcode,omitempty"` +} + +// NewGetAccesstoken500ResponseFaultDetail instantiates a new GetAccesstoken500ResponseFaultDetail object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAccesstoken500ResponseFaultDetail() *GetAccesstoken500ResponseFaultDetail { + this := GetAccesstoken500ResponseFaultDetail{} + return &this +} + +// NewGetAccesstoken500ResponseFaultDetailWithDefaults instantiates a new GetAccesstoken500ResponseFaultDetail object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAccesstoken500ResponseFaultDetailWithDefaults() *GetAccesstoken500ResponseFaultDetail { + this := GetAccesstoken500ResponseFaultDetail{} + return &this +} + +// GetErrorcode returns the Errorcode field value if set, zero value otherwise. +func (o *GetAccesstoken500ResponseFaultDetail) GetErrorcode() string { + if o == nil || IsNil(o.Errorcode) { + var ret string + return ret + } + return *o.Errorcode +} + +// GetErrorcodeOk returns a tuple with the Errorcode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAccesstoken500ResponseFaultDetail) GetErrorcodeOk() (*string, bool) { + if o == nil || IsNil(o.Errorcode) { + return nil, false + } + return o.Errorcode, true +} + +// HasErrorcode returns a boolean if a field has been set. +func (o *GetAccesstoken500ResponseFaultDetail) HasErrorcode() bool { + if o != nil && !IsNil(o.Errorcode) { + return true + } + + return false +} + +// SetErrorcode gets a reference to the given string and assigns it to the Errorcode field. +func (o *GetAccesstoken500ResponseFaultDetail) SetErrorcode(v string) { + o.Errorcode = &v +} + +func (o GetAccesstoken500ResponseFaultDetail) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAccesstoken500ResponseFaultDetail) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Errorcode) { + toSerialize["errorcode"] = o.Errorcode + } + return toSerialize, nil +} + +type NullableGetAccesstoken500ResponseFaultDetail struct { + value *GetAccesstoken500ResponseFaultDetail + isSet bool +} + +func (v NullableGetAccesstoken500ResponseFaultDetail) Get() *GetAccesstoken500ResponseFaultDetail { + return v.value +} + +func (v *NullableGetAccesstoken500ResponseFaultDetail) Set(val *GetAccesstoken500ResponseFaultDetail) { + v.value = val + v.isSet = true +} + +func (v NullableGetAccesstoken500ResponseFaultDetail) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAccesstoken500ResponseFaultDetail) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAccesstoken500ResponseFaultDetail(val *GetAccesstoken500ResponseFaultDetail) *NullableGetAccesstoken500ResponseFaultDetail { + return &NullableGetAccesstoken500ResponseFaultDetail{value: val, isSet: true} +} + +func (v NullableGetAccesstoken500ResponseFaultDetail) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAccesstoken500ResponseFaultDetail) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_quote_details_response_products_inner.go b/model_quote_details_response_products_inner.go index 10d9818..42c1fbd 100644 --- a/model_quote_details_response_products_inner.go +++ b/model_quote_details_response_products_inner.go @@ -51,6 +51,8 @@ type QuoteDetailsResponseProductsInner struct { VendorName *string `json:"vendorName,omitempty"` // Terms of the quote Terms *string `json:"terms,omitempty"` + IsSubscription *bool `json:"isSubscription,omitempty"` + ResellerMargin *string `json:"resellerMargin,omitempty"` Price *QuoteDetailsResponseProductsInnerPrice `json:"price,omitempty"` } @@ -583,6 +585,70 @@ func (o *QuoteDetailsResponseProductsInner) SetTerms(v string) { o.Terms = &v } +// GetIsSubscription returns the IsSubscription field value if set, zero value otherwise. +func (o *QuoteDetailsResponseProductsInner) GetIsSubscription() bool { + if o == nil || IsNil(o.IsSubscription) { + var ret bool + return ret + } + return *o.IsSubscription +} + +// GetIsSubscriptionOk returns a tuple with the IsSubscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuoteDetailsResponseProductsInner) GetIsSubscriptionOk() (*bool, bool) { + if o == nil || IsNil(o.IsSubscription) { + return nil, false + } + return o.IsSubscription, true +} + +// HasIsSubscription returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInner) HasIsSubscription() bool { + if o != nil && !IsNil(o.IsSubscription) { + return true + } + + return false +} + +// SetIsSubscription gets a reference to the given bool and assigns it to the IsSubscription field. +func (o *QuoteDetailsResponseProductsInner) SetIsSubscription(v bool) { + o.IsSubscription = &v +} + +// GetResellerMargin returns the ResellerMargin field value if set, zero value otherwise. +func (o *QuoteDetailsResponseProductsInner) GetResellerMargin() string { + if o == nil || IsNil(o.ResellerMargin) { + var ret string + return ret + } + return *o.ResellerMargin +} + +// GetResellerMarginOk returns a tuple with the ResellerMargin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuoteDetailsResponseProductsInner) GetResellerMarginOk() (*string, bool) { + if o == nil || IsNil(o.ResellerMargin) { + return nil, false + } + return o.ResellerMargin, true +} + +// HasResellerMargin returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInner) HasResellerMargin() bool { + if o != nil && !IsNil(o.ResellerMargin) { + return true + } + + return false +} + +// SetResellerMargin gets a reference to the given string and assigns it to the ResellerMargin field. +func (o *QuoteDetailsResponseProductsInner) SetResellerMargin(v string) { + o.ResellerMargin = &v +} + // GetPrice returns the Price field value if set, zero value otherwise. func (o *QuoteDetailsResponseProductsInner) GetPrice() QuoteDetailsResponseProductsInnerPrice { if o == nil || IsNil(o.Price) { @@ -673,6 +739,12 @@ func (o QuoteDetailsResponseProductsInner) ToMap() (map[string]interface{}, erro if !IsNil(o.Terms) { toSerialize["terms"] = o.Terms } + if !IsNil(o.IsSubscription) { + toSerialize["isSubscription"] = o.IsSubscription + } + if !IsNil(o.ResellerMargin) { + toSerialize["resellerMargin"] = o.ResellerMargin + } if !IsNil(o.Price) { toSerialize["price"] = o.Price } diff --git a/model_quote_details_response_products_inner_price.go b/model_quote_details_response_products_inner_price.go index 868d845..c4e0fe0 100644 --- a/model_quote_details_response_products_inner_price.go +++ b/model_quote_details_response_products_inner_price.go @@ -27,8 +27,13 @@ type QuoteDetailsResponseProductsInnerPrice struct { ExtendedMsrp *int32 `json:"extendedMsrp,omitempty"` // Extended reseller quoted price (cost to reseller) X Quantity ExtendedQuotePrice *int32 `json:"extendedQuotePrice,omitempty"` - // Discount off list percentage - DiscountOffList *float32 `json:"discountOffList,omitempty"` + // Discount off list percentage extended + DiscountOffList *string `json:"discountOffList,omitempty"` + Vendorprice *float32 `json:"vendorprice,omitempty"` + Extendedvendorprice *float32 `json:"extendedvendorprice,omitempty"` + TotalVisibleReserveQuantity *int32 `json:"totalVisibleReserveQuantity,omitempty"` + Type *string `json:"type,omitempty"` + RecurringPriceModel *string `json:"recurringPriceModel,omitempty"` } // NewQuoteDetailsResponseProductsInnerPrice instantiates a new QuoteDetailsResponseProductsInnerPrice object @@ -177,9 +182,9 @@ func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedQuotePrice(v int32) } // GetDiscountOffList returns the DiscountOffList field value if set, zero value otherwise. -func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffList() float32 { +func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffList() string { if o == nil || IsNil(o.DiscountOffList) { - var ret float32 + var ret string return ret } return *o.DiscountOffList @@ -187,7 +192,7 @@ func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffList() float32 { // GetDiscountOffListOk returns a tuple with the DiscountOffList field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffListOk() (*float32, bool) { +func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffListOk() (*string, bool) { if o == nil || IsNil(o.DiscountOffList) { return nil, false } @@ -203,11 +208,171 @@ func (o *QuoteDetailsResponseProductsInnerPrice) HasDiscountOffList() bool { return false } -// SetDiscountOffList gets a reference to the given float32 and assigns it to the DiscountOffList field. -func (o *QuoteDetailsResponseProductsInnerPrice) SetDiscountOffList(v float32) { +// SetDiscountOffList gets a reference to the given string and assigns it to the DiscountOffList field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetDiscountOffList(v string) { o.DiscountOffList = &v } +// GetVendorprice returns the Vendorprice field value if set, zero value otherwise. +func (o *QuoteDetailsResponseProductsInnerPrice) GetVendorprice() float32 { + if o == nil || IsNil(o.Vendorprice) { + var ret float32 + return ret + } + return *o.Vendorprice +} + +// GetVendorpriceOk returns a tuple with the Vendorprice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) GetVendorpriceOk() (*float32, bool) { + if o == nil || IsNil(o.Vendorprice) { + return nil, false + } + return o.Vendorprice, true +} + +// HasVendorprice returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) HasVendorprice() bool { + if o != nil && !IsNil(o.Vendorprice) { + return true + } + + return false +} + +// SetVendorprice gets a reference to the given float32 and assigns it to the Vendorprice field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetVendorprice(v float32) { + o.Vendorprice = &v +} + +// GetExtendedvendorprice returns the Extendedvendorprice field value if set, zero value otherwise. +func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedvendorprice() float32 { + if o == nil || IsNil(o.Extendedvendorprice) { + var ret float32 + return ret + } + return *o.Extendedvendorprice +} + +// GetExtendedvendorpriceOk returns a tuple with the Extendedvendorprice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedvendorpriceOk() (*float32, bool) { + if o == nil || IsNil(o.Extendedvendorprice) { + return nil, false + } + return o.Extendedvendorprice, true +} + +// HasExtendedvendorprice returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) HasExtendedvendorprice() bool { + if o != nil && !IsNil(o.Extendedvendorprice) { + return true + } + + return false +} + +// SetExtendedvendorprice gets a reference to the given float32 and assigns it to the Extendedvendorprice field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedvendorprice(v float32) { + o.Extendedvendorprice = &v +} + +// GetTotalVisibleReserveQuantity returns the TotalVisibleReserveQuantity field value if set, zero value otherwise. +func (o *QuoteDetailsResponseProductsInnerPrice) GetTotalVisibleReserveQuantity() int32 { + if o == nil || IsNil(o.TotalVisibleReserveQuantity) { + var ret int32 + return ret + } + return *o.TotalVisibleReserveQuantity +} + +// GetTotalVisibleReserveQuantityOk returns a tuple with the TotalVisibleReserveQuantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) GetTotalVisibleReserveQuantityOk() (*int32, bool) { + if o == nil || IsNil(o.TotalVisibleReserveQuantity) { + return nil, false + } + return o.TotalVisibleReserveQuantity, true +} + +// HasTotalVisibleReserveQuantity returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) HasTotalVisibleReserveQuantity() bool { + if o != nil && !IsNil(o.TotalVisibleReserveQuantity) { + return true + } + + return false +} + +// SetTotalVisibleReserveQuantity gets a reference to the given int32 and assigns it to the TotalVisibleReserveQuantity field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetTotalVisibleReserveQuantity(v int32) { + o.TotalVisibleReserveQuantity = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *QuoteDetailsResponseProductsInnerPrice) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetType(v string) { + o.Type = &v +} + +// GetRecurringPriceModel returns the RecurringPriceModel field value if set, zero value otherwise. +func (o *QuoteDetailsResponseProductsInnerPrice) GetRecurringPriceModel() string { + if o == nil || IsNil(o.RecurringPriceModel) { + var ret string + return ret + } + return *o.RecurringPriceModel +} + +// GetRecurringPriceModelOk returns a tuple with the RecurringPriceModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) GetRecurringPriceModelOk() (*string, bool) { + if o == nil || IsNil(o.RecurringPriceModel) { + return nil, false + } + return o.RecurringPriceModel, true +} + +// HasRecurringPriceModel returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) HasRecurringPriceModel() bool { + if o != nil && !IsNil(o.RecurringPriceModel) { + return true + } + + return false +} + +// SetRecurringPriceModel gets a reference to the given string and assigns it to the RecurringPriceModel field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetRecurringPriceModel(v string) { + o.RecurringPriceModel = &v +} + func (o QuoteDetailsResponseProductsInnerPrice) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -233,6 +398,21 @@ func (o QuoteDetailsResponseProductsInnerPrice) ToMap() (map[string]interface{}, if !IsNil(o.DiscountOffList) { toSerialize["discountOffList"] = o.DiscountOffList } + if !IsNil(o.Vendorprice) { + toSerialize["vendorprice"] = o.Vendorprice + } + if !IsNil(o.Extendedvendorprice) { + toSerialize["extendedvendorprice"] = o.Extendedvendorprice + } + if !IsNil(o.TotalVisibleReserveQuantity) { + toSerialize["totalVisibleReserveQuantity"] = o.TotalVisibleReserveQuantity + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.RecurringPriceModel) { + toSerialize["recurringPriceModel"] = o.RecurringPriceModel + } return toSerialize, nil } diff --git a/model_quote_to_order_response.go b/model_quote_to_order_response.go index 0892b52..007ddb1 100644 --- a/model_quote_to_order_response.go +++ b/model_quote_to_order_response.go @@ -22,7 +22,7 @@ type QuoteToOrderResponse struct { // Unique identifier generated by Ingram Micro's CRM specific to each quote. QuoteNumber *string `json:"quoteNumber,omitempty"` // A unique confirmation number for tracking purposes. - ConfirmationNumber *float32 `json:"confirmationNumber,omitempty"` + ConfirmationNumber *string `json:"confirmationNumber,omitempty"` // A confirmation message. Message *string `json:"message,omitempty"` } @@ -77,9 +77,9 @@ func (o *QuoteToOrderResponse) SetQuoteNumber(v string) { } // GetConfirmationNumber returns the ConfirmationNumber field value if set, zero value otherwise. -func (o *QuoteToOrderResponse) GetConfirmationNumber() float32 { +func (o *QuoteToOrderResponse) GetConfirmationNumber() string { if o == nil || IsNil(o.ConfirmationNumber) { - var ret float32 + var ret string return ret } return *o.ConfirmationNumber @@ -87,7 +87,7 @@ func (o *QuoteToOrderResponse) GetConfirmationNumber() float32 { // GetConfirmationNumberOk returns a tuple with the ConfirmationNumber field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *QuoteToOrderResponse) GetConfirmationNumberOk() (*float32, bool) { +func (o *QuoteToOrderResponse) GetConfirmationNumberOk() (*string, bool) { if o == nil || IsNil(o.ConfirmationNumber) { return nil, false } @@ -103,8 +103,8 @@ func (o *QuoteToOrderResponse) HasConfirmationNumber() bool { return false } -// SetConfirmationNumber gets a reference to the given float32 and assigns it to the ConfirmationNumber field. -func (o *QuoteToOrderResponse) SetConfirmationNumber(v float32) { +// SetConfirmationNumber gets a reference to the given string and assigns it to the ConfirmationNumber field. +func (o *QuoteToOrderResponse) SetConfirmationNumber(v string) { o.ConfirmationNumber = &v } diff --git a/test/api_accesstoken_test.go b/test/api_accesstoken_test.go new file mode 100644 index 0000000..358dcdc --- /dev/null +++ b/test/api_accesstoken_test.go @@ -0,0 +1,37 @@ +/* +XI Sdk Resellers + +Testing AccesstokenAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package xi_sdk_resellers + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_xi_sdk_resellers_AccesstokenAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AccesstokenAPIService GetAccesstoken", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AccesstokenAPI.GetAccesstoken(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} From b8f3f5a2fd4897c102c86cf95091e23dbe06af44 Mon Sep 17 00:00:00 2001 From: im-deviprakash Date: Wed, 28 Feb 2024 10:51:37 +0530 Subject: [PATCH 2/3] Added get access token API to the SDK. --- README.md | 18 +++++++++-------- git_push.sh | 57 ----------------------------------------------------- 2 files changed, 10 insertions(+), 65 deletions(-) delete mode 100644 git_push.sh diff --git a/README.md b/README.md index d64b689..f36509d 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,12 @@ 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. -## 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. - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.GoClientCodegen - ## Installation +To install the package use: +```sh +go get -u github.com/ingrammicro-xvantage/xi-sdk-resellers-go +``` Install the following dependencies: ```sh @@ -19,10 +16,11 @@ go get golang.org/x/oauth2 go get golang.org/x/net/context ``` + Put the package under your project folder and add the following in import: ```go -import xi_sdk_resellers "github.com/GIT_USER_ID/GIT_REPO_ID" +import xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -346,6 +344,10 @@ Each of these functions takes a value of the given basic type and returns a poin * `PtrTime` ## Author +-[Ingram Micro Xvantage](https://github.com/ingrammicro-xvantage) +## Contact +For any inquiries or support, please feel free to contact us at: +- Email: [xi_support@ingrammicro.com](xi_support@ingrammicro.com) diff --git a/git_push.sh b/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' From d9134d9b30a721da8d36e62b653ea84f5a4d90de Mon Sep 17 00:00:00 2001 From: S V S K Devi Prakash Kandikonda <153610898+im-deviprakash@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:52:24 +0530 Subject: [PATCH 3/3] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..84e2962 --- /dev/null +++ b/LICENSE @@ -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.