From 5e03554e25f584fe0131e37abbac3c53b9cd7577 Mon Sep 17 00:00:00 2001 From: ingrammicro-xvantage Date: Mon, 11 Nov 2024 09:59:53 +0000 Subject: [PATCH] Update from https://github.com/ingrammicro-xvantage/xi-sdk-openapispec/commit/5573bdb46f84ce99ab3ede6ea46eda4dd1605d34 --- .openapi-generator/FILES | 8 - README.md | 4 - api/openapi.yaml | 56 +++--- api_product_catalog.go | 4 +- ...tResellerV6ProductsearchPlanIDParameter.md | 30 ---- ...lityRequestAvailabilityByWarehouseInner.md | 8 +- ...WarehouseInnerAvailabilityByWarehouseId.md | 30 ---- ...riceAndAvailabilityRequestProductsInner.md | 16 +- ...dAvailabilityRequestProductsInnerPlanID.md | 30 ---- ...tyRequestProductsInnerQuantityRequested.md | 30 ---- docs/ProductCatalogAPI.md | 4 +- ...ller_v6_productsearch_plan_id_parameter.go | 157 ----------------- ...request_availability_by_warehouse_inner.go | 13 +- ...ouse_inner_availability_by_warehouse_id.go | 157 ----------------- ...and_availability_request_products_inner.go | 26 +-- ...lability_request_products_inner_plan_id.go | 162 ------------------ ...quest_products_inner_quantity_requested.go | 162 ------------------ 17 files changed, 57 insertions(+), 840 deletions(-) delete mode 100644 docs/GetResellerV6ProductsearchPlanIDParameter.md delete mode 100644 docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId.md delete mode 100644 docs/PriceAndAvailabilityRequestProductsInnerPlanID.md delete mode 100644 docs/PriceAndAvailabilityRequestProductsInnerQuantityRequested.md delete mode 100644 model_get_reseller_v6_productsearch_plan_id_parameter.go delete mode 100644 model_price_and_availability_request_availability_by_warehouse_inner_availability_by_warehouse_id.go delete mode 100644 model_price_and_availability_request_products_inner_plan_id.go delete mode 100644 model_price_and_availability_request_products_inner_quantity_requested.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7804825..db6159f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -45,7 +45,6 @@ docs/GetAccesstoken400Response.md docs/GetAccesstoken500Response.md docs/GetAccesstoken500ResponseFault.md docs/GetAccesstoken500ResponseFaultDetail.md -docs/GetResellerV6ProductsearchPlanIDParameter.md docs/GetResellerV6ValidateQuote400Response.md docs/GetResellerV6ValidateQuote400ResponseFieldsInner.md docs/InvoiceDetailsv61Response.md @@ -161,11 +160,8 @@ docs/PostRenewalssearch400Response.md docs/PriceAndAvailabilityRequest.md docs/PriceAndAvailabilityRequestAdditionalAttributesInner.md docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInner.md -docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId.md docs/PriceAndAvailabilityRequestProductsInner.md docs/PriceAndAvailabilityRequestProductsInnerAdditionalAttributesInner.md -docs/PriceAndAvailabilityRequestProductsInnerPlanID.md -docs/PriceAndAvailabilityRequestProductsInnerQuantityRequested.md docs/PriceAndAvailabilityResponseInner.md docs/PriceAndAvailabilityResponseInnerAvailability.md docs/PriceAndAvailabilityResponseInnerAvailabilityAvailabilityByWarehouseInner.md @@ -280,7 +276,6 @@ 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_productsearch_plan_id_parameter.go model_get_reseller_v6_validate_quote_400_response.go model_get_reseller_v6_validate_quote_400_response_fields_inner.go model_invoice_detailsv6_1_response.go @@ -393,11 +388,8 @@ model_post_renewalssearch_400_response.go model_price_and_availability_request.go model_price_and_availability_request_additional_attributes_inner.go model_price_and_availability_request_availability_by_warehouse_inner.go -model_price_and_availability_request_availability_by_warehouse_inner_availability_by_warehouse_id.go model_price_and_availability_request_products_inner.go model_price_and_availability_request_products_inner_additional_attributes_inner.go -model_price_and_availability_request_products_inner_plan_id.go -model_price_and_availability_request_products_inner_quantity_requested.go model_price_and_availability_response_inner.go model_price_and_availability_response_inner_availability.go model_price_and_availability_response_inner_availability_availability_by_warehouse_inner.go diff --git a/README.md b/README.md index 20a7695..74b7047 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,6 @@ Class | Method | HTTP request | Description - [GetAccesstoken500Response](docs/GetAccesstoken500Response.md) - [GetAccesstoken500ResponseFault](docs/GetAccesstoken500ResponseFault.md) - [GetAccesstoken500ResponseFaultDetail](docs/GetAccesstoken500ResponseFaultDetail.md) - - [GetResellerV6ProductsearchPlanIDParameter](docs/GetResellerV6ProductsearchPlanIDParameter.md) - [GetResellerV6ValidateQuote400Response](docs/GetResellerV6ValidateQuote400Response.md) - [GetResellerV6ValidateQuote400ResponseFieldsInner](docs/GetResellerV6ValidateQuote400ResponseFieldsInner.md) - [InvoiceDetailsv61Response](docs/InvoiceDetailsv61Response.md) @@ -248,11 +247,8 @@ Class | Method | HTTP request | Description - [PriceAndAvailabilityRequest](docs/PriceAndAvailabilityRequest.md) - [PriceAndAvailabilityRequestAdditionalAttributesInner](docs/PriceAndAvailabilityRequestAdditionalAttributesInner.md) - [PriceAndAvailabilityRequestAvailabilityByWarehouseInner](docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInner.md) - - [PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId](docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId.md) - [PriceAndAvailabilityRequestProductsInner](docs/PriceAndAvailabilityRequestProductsInner.md) - [PriceAndAvailabilityRequestProductsInnerAdditionalAttributesInner](docs/PriceAndAvailabilityRequestProductsInnerAdditionalAttributesInner.md) - - [PriceAndAvailabilityRequestProductsInnerPlanID](docs/PriceAndAvailabilityRequestProductsInnerPlanID.md) - - [PriceAndAvailabilityRequestProductsInnerQuantityRequested](docs/PriceAndAvailabilityRequestProductsInnerQuantityRequested.md) - [PriceAndAvailabilityResponseInner](docs/PriceAndAvailabilityResponseInner.md) - [PriceAndAvailabilityResponseInnerAvailability](docs/PriceAndAvailabilityResponseInnerAvailability.md) - [PriceAndAvailabilityResponseInnerAvailabilityAvailabilityByWarehouseInner](docs/PriceAndAvailabilityResponseInnerAvailabilityAvailabilityByWarehouseInner.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index c383ea1..9b25640 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -601,7 +601,8 @@ paths: name: planID required: false schema: - $ref: '#/components/schemas/get_reseller_v6_productsearch_planID_parameter' + example: "471490" + type: string style: form - description: "In case of value true, below Group related information will\ \ displayed without the plan info. Group Name, Group Description, Number\ @@ -9381,17 +9382,17 @@ components: specialBidNumber: specialBidNumber availabilityByWarehouse: - availabilityForAllLocation: true - availabilityByWarehouseId: PriceAndAvailabilityRequest_availabilityByWarehouse_inner_availabilityByWarehouseId + availabilityByWarehouseId: availabilityByWarehouseId - availabilityForAllLocation: true - availabilityByWarehouseId: PriceAndAvailabilityRequest_availabilityByWarehouse_inner_availabilityByWarehouseId + availabilityByWarehouseId: availabilityByWarehouseId showReserveInventoryDetails: true products: - ingramPartNumber: ingramPartNumber customerPartNumber: customerPartNumber - quantityRequested: PriceAndAvailabilityRequest_products_inner_quantityRequested + quantityRequested: quantityRequested upc: upc vendorPartNumber: vendorPartNumber - planID: PriceAndAvailabilityRequest_products_inner_planID + planID: planID additionalAttributes: - attributeValue: attributeValue attributeName: attributeName @@ -9399,10 +9400,10 @@ components: attributeName: attributeName - ingramPartNumber: ingramPartNumber customerPartNumber: customerPartNumber - quantityRequested: PriceAndAvailabilityRequest_products_inner_quantityRequested + quantityRequested: quantityRequested upc: upc vendorPartNumber: vendorPartNumber - planID: PriceAndAvailabilityRequest_products_inner_planID + planID: planID additionalAttributes: - attributeValue: attributeValue attributeName: attributeName @@ -12347,11 +12348,6 @@ components: fault: $ref: '#/components/schemas/get_accesstoken_500_response_fault' type: object - get_reseller_v6_productsearch_planID_parameter: - example: 471490 - oneOf: - - type: string - - type: integer post_createorder_v7_400_response_fields_inner: example: field: field @@ -14505,37 +14501,21 @@ components: links: $ref: '#/components/schemas/OrderSearch_Response_orders_inner_links' type: object - PriceAndAvailabilityRequest_availabilityByWarehouse_inner_availabilityByWarehouseId: - description: Plant/warehouse Id of a particular location in order to get just - the inventory of that location. - oneOf: - - type: string - - type: integer PriceAndAvailabilityRequest_availabilityByWarehouse_inner: example: availabilityForAllLocation: true - availabilityByWarehouseId: PriceAndAvailabilityRequest_availabilityByWarehouse_inner_availabilityByWarehouseId + availabilityByWarehouseId: availabilityByWarehouseId properties: availabilityByWarehouseId: - $ref: '#/components/schemas/PriceAndAvailabilityRequest_availabilityByWarehouse_inner_availabilityByWarehouseId' + description: Plant/warehouse Id of a particular location in order to get + just the inventory of that location. + type: string availabilityForAllLocation: description: "Pass boolean value as input, if true the response will contain\ \ warehouse location details, if false the response will not hold warehouse\ \ location details. By default value is true." type: boolean type: object - PriceAndAvailabilityRequest_products_inner_quantityRequested: - description: Number of quantity of the Product. - nullable: true - oneOf: - - type: string - - type: integer - PriceAndAvailabilityRequest_products_inner_planID: - description: Id of the plan - nullable: true - oneOf: - - type: string - - type: integer PriceAndAvailabilityRequest_products_inner_additionalAttributes_inner: example: attributeValue: attributeValue @@ -14555,10 +14535,10 @@ components: example: ingramPartNumber: ingramPartNumber customerPartNumber: customerPartNumber - quantityRequested: PriceAndAvailabilityRequest_products_inner_quantityRequested + quantityRequested: quantityRequested upc: upc vendorPartNumber: vendorPartNumber - planID: PriceAndAvailabilityRequest_products_inner_planID + planID: planID additionalAttributes: - attributeValue: attributeValue attributeName: attributeName @@ -14583,9 +14563,13 @@ components: nullable: true type: string quantityRequested: - $ref: '#/components/schemas/PriceAndAvailabilityRequest_products_inner_quantityRequested' + description: Number of quantity of the Product. + nullable: true + type: string planID: - $ref: '#/components/schemas/PriceAndAvailabilityRequest_products_inner_planID' + description: Id of the plan + nullable: true + type: string additionalAttributes: items: $ref: '#/components/schemas/PriceAndAvailabilityRequest_products_inner_additionalAttributes_inner' diff --git a/api_product_catalog.go b/api_product_catalog.go index 94f3891..38975f3 100644 --- a/api_product_catalog.go +++ b/api_product_catalog.go @@ -452,7 +452,7 @@ type ApiGetResellerV6ProductsearchRequest struct { category *string skipAuthorisation *string groupName *string - planID *GetResellerV6ProductsearchPlanIDParameter + planID *string showGroupInfo *bool } @@ -553,7 +553,7 @@ func (r ApiGetResellerV6ProductsearchRequest) GroupName(groupName string) ApiGet } // ID of the plan -func (r ApiGetResellerV6ProductsearchRequest) PlanID(planID GetResellerV6ProductsearchPlanIDParameter) ApiGetResellerV6ProductsearchRequest { +func (r ApiGetResellerV6ProductsearchRequest) PlanID(planID string) ApiGetResellerV6ProductsearchRequest { r.planID = &planID return r } diff --git a/docs/GetResellerV6ProductsearchPlanIDParameter.md b/docs/GetResellerV6ProductsearchPlanIDParameter.md deleted file mode 100644 index 84930f0..0000000 --- a/docs/GetResellerV6ProductsearchPlanIDParameter.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetResellerV6ProductsearchPlanIDParameter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewGetResellerV6ProductsearchPlanIDParameter - -`func NewGetResellerV6ProductsearchPlanIDParameter() *GetResellerV6ProductsearchPlanIDParameter` - -NewGetResellerV6ProductsearchPlanIDParameter instantiates a new GetResellerV6ProductsearchPlanIDParameter 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 - -### NewGetResellerV6ProductsearchPlanIDParameterWithDefaults - -`func NewGetResellerV6ProductsearchPlanIDParameterWithDefaults() *GetResellerV6ProductsearchPlanIDParameter` - -NewGetResellerV6ProductsearchPlanIDParameterWithDefaults instantiates a new GetResellerV6ProductsearchPlanIDParameter 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 - - -[[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/PriceAndAvailabilityRequestAvailabilityByWarehouseInner.md b/docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInner.md index 3f66e3b..db65cbc 100644 --- a/docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInner.md +++ b/docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInner.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AvailabilityByWarehouseId** | Pointer to [**PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId**](PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId.md) | | [optional] +**AvailabilityByWarehouseId** | Pointer to **string** | Plant/warehouse Id of a particular location in order to get just the inventory of that location. | [optional] **AvailabilityForAllLocation** | Pointer to **bool** | Pass boolean value as input, if true the response will contain warehouse location details, if false the response will not hold warehouse location details. By default value is true. | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetAvailabilityByWarehouseId -`func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseId() PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId` +`func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseId() string` GetAvailabilityByWarehouseId returns the AvailabilityByWarehouseId field if non-nil, zero value otherwise. ### GetAvailabilityByWarehouseIdOk -`func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseIdOk() (*PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId, bool)` +`func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseIdOk() (*string, bool)` GetAvailabilityByWarehouseIdOk returns a tuple with the AvailabilityByWarehouseId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAvailabilityByWarehouseId -`func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) SetAvailabilityByWarehouseId(v PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId)` +`func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) SetAvailabilityByWarehouseId(v string)` SetAvailabilityByWarehouseId sets AvailabilityByWarehouseId field to given value. diff --git a/docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId.md b/docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId.md deleted file mode 100644 index d046721..0000000 --- a/docs/PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId.md +++ /dev/null @@ -1,30 +0,0 @@ -# PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId - -`func NewPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId() *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId` - -NewPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId instantiates a new PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId 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 - -### NewPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseIdWithDefaults - -`func NewPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseIdWithDefaults() *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId` - -NewPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseIdWithDefaults instantiates a new PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId 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 - - -[[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/PriceAndAvailabilityRequestProductsInner.md b/docs/PriceAndAvailabilityRequestProductsInner.md index 0609969..bd3d063 100644 --- a/docs/PriceAndAvailabilityRequestProductsInner.md +++ b/docs/PriceAndAvailabilityRequestProductsInner.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **VendorPartNumber** | Pointer to **NullableString** | Vendor’s part number for the product. | [optional] **CustomerPartNumber** | Pointer to **NullableString** | Reseller/end-user’s part number for the product. | [optional] **Upc** | Pointer to **NullableString** | The UPC code for the product. Consists of 12 numeric digits that are uniquely assigned to each trade item. | [optional] -**QuantityRequested** | Pointer to [**NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested**](PriceAndAvailabilityRequestProductsInnerQuantityRequested.md) | | [optional] -**PlanID** | Pointer to [**NullablePriceAndAvailabilityRequestProductsInnerPlanID**](PriceAndAvailabilityRequestProductsInnerPlanID.md) | | [optional] +**QuantityRequested** | Pointer to **NullableString** | Number of quantity of the Product. | [optional] +**PlanID** | Pointer to **NullableString** | Id of the plan | [optional] **AdditionalAttributes** | Pointer to [**[]PriceAndAvailabilityRequestProductsInnerAdditionalAttributesInner**](PriceAndAvailabilityRequestProductsInnerAdditionalAttributesInner.md) | | [optional] ## Methods @@ -173,20 +173,20 @@ HasUpc returns a boolean if a field has been set. UnsetUpc ensures that no value is present for Upc, not even an explicit nil ### GetQuantityRequested -`func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequested() PriceAndAvailabilityRequestProductsInnerQuantityRequested` +`func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequested() string` GetQuantityRequested returns the QuantityRequested field if non-nil, zero value otherwise. ### GetQuantityRequestedOk -`func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequestedOk() (*PriceAndAvailabilityRequestProductsInnerQuantityRequested, bool)` +`func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequestedOk() (*string, bool)` GetQuantityRequestedOk returns a tuple with the QuantityRequested field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetQuantityRequested -`func (o *PriceAndAvailabilityRequestProductsInner) SetQuantityRequested(v PriceAndAvailabilityRequestProductsInnerQuantityRequested)` +`func (o *PriceAndAvailabilityRequestProductsInner) SetQuantityRequested(v string)` SetQuantityRequested sets QuantityRequested field to given value. @@ -208,20 +208,20 @@ HasQuantityRequested returns a boolean if a field has been set. UnsetQuantityRequested ensures that no value is present for QuantityRequested, not even an explicit nil ### GetPlanID -`func (o *PriceAndAvailabilityRequestProductsInner) GetPlanID() PriceAndAvailabilityRequestProductsInnerPlanID` +`func (o *PriceAndAvailabilityRequestProductsInner) GetPlanID() string` GetPlanID returns the PlanID field if non-nil, zero value otherwise. ### GetPlanIDOk -`func (o *PriceAndAvailabilityRequestProductsInner) GetPlanIDOk() (*PriceAndAvailabilityRequestProductsInnerPlanID, bool)` +`func (o *PriceAndAvailabilityRequestProductsInner) GetPlanIDOk() (*string, bool)` GetPlanIDOk returns a tuple with the PlanID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlanID -`func (o *PriceAndAvailabilityRequestProductsInner) SetPlanID(v PriceAndAvailabilityRequestProductsInnerPlanID)` +`func (o *PriceAndAvailabilityRequestProductsInner) SetPlanID(v string)` SetPlanID sets PlanID field to given value. diff --git a/docs/PriceAndAvailabilityRequestProductsInnerPlanID.md b/docs/PriceAndAvailabilityRequestProductsInnerPlanID.md deleted file mode 100644 index f2327ce..0000000 --- a/docs/PriceAndAvailabilityRequestProductsInnerPlanID.md +++ /dev/null @@ -1,30 +0,0 @@ -# PriceAndAvailabilityRequestProductsInnerPlanID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewPriceAndAvailabilityRequestProductsInnerPlanID - -`func NewPriceAndAvailabilityRequestProductsInnerPlanID() *PriceAndAvailabilityRequestProductsInnerPlanID` - -NewPriceAndAvailabilityRequestProductsInnerPlanID instantiates a new PriceAndAvailabilityRequestProductsInnerPlanID 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 - -### NewPriceAndAvailabilityRequestProductsInnerPlanIDWithDefaults - -`func NewPriceAndAvailabilityRequestProductsInnerPlanIDWithDefaults() *PriceAndAvailabilityRequestProductsInnerPlanID` - -NewPriceAndAvailabilityRequestProductsInnerPlanIDWithDefaults instantiates a new PriceAndAvailabilityRequestProductsInnerPlanID 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 - - -[[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/PriceAndAvailabilityRequestProductsInnerQuantityRequested.md b/docs/PriceAndAvailabilityRequestProductsInnerQuantityRequested.md deleted file mode 100644 index c77f1a2..0000000 --- a/docs/PriceAndAvailabilityRequestProductsInnerQuantityRequested.md +++ /dev/null @@ -1,30 +0,0 @@ -# PriceAndAvailabilityRequestProductsInnerQuantityRequested - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewPriceAndAvailabilityRequestProductsInnerQuantityRequested - -`func NewPriceAndAvailabilityRequestProductsInnerQuantityRequested() *PriceAndAvailabilityRequestProductsInnerQuantityRequested` - -NewPriceAndAvailabilityRequestProductsInnerQuantityRequested instantiates a new PriceAndAvailabilityRequestProductsInnerQuantityRequested 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 - -### NewPriceAndAvailabilityRequestProductsInnerQuantityRequestedWithDefaults - -`func NewPriceAndAvailabilityRequestProductsInnerQuantityRequestedWithDefaults() *PriceAndAvailabilityRequestProductsInnerQuantityRequested` - -NewPriceAndAvailabilityRequestProductsInnerQuantityRequestedWithDefaults instantiates a new PriceAndAvailabilityRequestProductsInnerQuantityRequested 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 - - -[[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/ProductCatalogAPI.md b/docs/ProductCatalogAPI.md index 560a04b..d78db26 100644 --- a/docs/ProductCatalogAPI.md +++ b/docs/ProductCatalogAPI.md @@ -204,7 +204,7 @@ func main() { category := "Accessories" // string | The category of the product. Example: Displays. (optional) skipAuthorisation := "true" // string | This parameter is True when you want Skip the authorization, so template will work like current B2b template. (optional) groupName := "Microsoft Defender for Endpoint P2 (NCE COM MTH)" // string | Name of the Product Group (optional) - planID := openapiclient.get_reseller_v6_productsearch_planID_parameter{Int32: new(int32)} // GetResellerV6ProductsearchPlanIDParameter | ID of the plan (optional) + planID := "471490" // string | ID of the plan (optional) showGroupInfo := true // bool | In case of value true, below Group related information will displayed without the plan info. Group Name, Group Description, Number of plans, link in the group. A link will be provided if customer want to see all the plans in that group. (optional) configuration := openapiclient.NewConfiguration() @@ -246,7 +246,7 @@ Name | Type | Description | Notes **category** | **string** | The category of the product. Example: Displays. | **skipAuthorisation** | **string** | This parameter is True when you want Skip the authorization, so template will work like current B2b template. | **groupName** | **string** | Name of the Product Group | - **planID** | [**GetResellerV6ProductsearchPlanIDParameter**](GetResellerV6ProductsearchPlanIDParameter.md) | ID of the plan | + **planID** | **string** | ID of the plan | **showGroupInfo** | **bool** | In case of value true, below Group related information will displayed without the plan info. Group Name, Group Description, Number of plans, link in the group. A link will be provided if customer want to see all the plans in that group. | ### Return type diff --git a/model_get_reseller_v6_productsearch_plan_id_parameter.go b/model_get_reseller_v6_productsearch_plan_id_parameter.go deleted file mode 100644 index 1b8f2fb..0000000 --- a/model_get_reseller_v6_productsearch_plan_id_parameter.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -XI Sdk Resellers - -For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package xi_sdk_resellers - -import ( - "encoding/json" - "gopkg.in/validator.v2" - "fmt" -) - -// GetResellerV6ProductsearchPlanIDParameter - struct for GetResellerV6ProductsearchPlanIDParameter -type GetResellerV6ProductsearchPlanIDParameter struct { - Int32 *int32 - String *string -} - -// int32AsGetResellerV6ProductsearchPlanIDParameter is a convenience function that returns int32 wrapped in GetResellerV6ProductsearchPlanIDParameter -func Int32AsGetResellerV6ProductsearchPlanIDParameter(v *int32) GetResellerV6ProductsearchPlanIDParameter { - return GetResellerV6ProductsearchPlanIDParameter{ - Int32: v, - } -} - -// stringAsGetResellerV6ProductsearchPlanIDParameter is a convenience function that returns string wrapped in GetResellerV6ProductsearchPlanIDParameter -func StringAsGetResellerV6ProductsearchPlanIDParameter(v *string) GetResellerV6ProductsearchPlanIDParameter { - return GetResellerV6ProductsearchPlanIDParameter{ - String: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *GetResellerV6ProductsearchPlanIDParameter) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into Int32 - err = newStrictDecoder(data).Decode(&dst.Int32) - if err == nil { - jsonInt32, _ := json.Marshal(dst.Int32) - if string(jsonInt32) == "{}" { // empty struct - dst.Int32 = nil - } else { - if err = validator.Validate(dst.Int32); err != nil { - dst.Int32 = nil - } else { - match++ - } - } - } else { - dst.Int32 = nil - } - - // try to unmarshal data into String - err = newStrictDecoder(data).Decode(&dst.String) - if err == nil { - jsonString, _ := json.Marshal(dst.String) - if string(jsonString) == "{}" { // empty struct - dst.String = nil - } else { - if err = validator.Validate(dst.String); err != nil { - dst.String = nil - } else { - match++ - } - } - } else { - dst.String = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.Int32 = nil - dst.String = nil - - return fmt.Errorf("data matches more than one schema in oneOf(GetResellerV6ProductsearchPlanIDParameter)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(GetResellerV6ProductsearchPlanIDParameter)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src GetResellerV6ProductsearchPlanIDParameter) MarshalJSON() ([]byte, error) { - if src.Int32 != nil { - return json.Marshal(&src.Int32) - } - - if src.String != nil { - return json.Marshal(&src.String) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *GetResellerV6ProductsearchPlanIDParameter) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.Int32 != nil { - return obj.Int32 - } - - if obj.String != nil { - return obj.String - } - - // all schemas are nil - return nil -} - -type NullableGetResellerV6ProductsearchPlanIDParameter struct { - value *GetResellerV6ProductsearchPlanIDParameter - isSet bool -} - -func (v NullableGetResellerV6ProductsearchPlanIDParameter) Get() *GetResellerV6ProductsearchPlanIDParameter { - return v.value -} - -func (v *NullableGetResellerV6ProductsearchPlanIDParameter) Set(val *GetResellerV6ProductsearchPlanIDParameter) { - v.value = val - v.isSet = true -} - -func (v NullableGetResellerV6ProductsearchPlanIDParameter) IsSet() bool { - return v.isSet -} - -func (v *NullableGetResellerV6ProductsearchPlanIDParameter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetResellerV6ProductsearchPlanIDParameter(val *GetResellerV6ProductsearchPlanIDParameter) *NullableGetResellerV6ProductsearchPlanIDParameter { - return &NullableGetResellerV6ProductsearchPlanIDParameter{value: val, isSet: true} -} - -func (v NullableGetResellerV6ProductsearchPlanIDParameter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetResellerV6ProductsearchPlanIDParameter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_price_and_availability_request_availability_by_warehouse_inner.go b/model_price_and_availability_request_availability_by_warehouse_inner.go index 8d760e3..e96cba9 100644 --- a/model_price_and_availability_request_availability_by_warehouse_inner.go +++ b/model_price_and_availability_request_availability_by_warehouse_inner.go @@ -19,7 +19,8 @@ var _ MappedNullable = &PriceAndAvailabilityRequestAvailabilityByWarehouseInner{ // PriceAndAvailabilityRequestAvailabilityByWarehouseInner struct for PriceAndAvailabilityRequestAvailabilityByWarehouseInner type PriceAndAvailabilityRequestAvailabilityByWarehouseInner struct { - AvailabilityByWarehouseId *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId `json:"availabilityByWarehouseId,omitempty"` + // Plant/warehouse Id of a particular location in order to get just the inventory of that location. + AvailabilityByWarehouseId *string `json:"availabilityByWarehouseId,omitempty"` // Pass boolean value as input, if true the response will contain warehouse location details, if false the response will not hold warehouse location details. By default value is true. AvailabilityForAllLocation *bool `json:"availabilityForAllLocation,omitempty"` } @@ -42,9 +43,9 @@ func NewPriceAndAvailabilityRequestAvailabilityByWarehouseInnerWithDefaults() *P } // GetAvailabilityByWarehouseId returns the AvailabilityByWarehouseId field value if set, zero value otherwise. -func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseId() PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId { +func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseId() string { if o == nil || IsNil(o.AvailabilityByWarehouseId) { - var ret PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId + var ret string return ret } return *o.AvailabilityByWarehouseId @@ -52,7 +53,7 @@ func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilit // GetAvailabilityByWarehouseIdOk returns a tuple with the AvailabilityByWarehouseId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseIdOk() (*PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId, bool) { +func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) GetAvailabilityByWarehouseIdOk() (*string, bool) { if o == nil || IsNil(o.AvailabilityByWarehouseId) { return nil, false } @@ -68,8 +69,8 @@ func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) HasAvailabilit return false } -// SetAvailabilityByWarehouseId gets a reference to the given PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId and assigns it to the AvailabilityByWarehouseId field. -func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) SetAvailabilityByWarehouseId(v PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) { +// SetAvailabilityByWarehouseId gets a reference to the given string and assigns it to the AvailabilityByWarehouseId field. +func (o *PriceAndAvailabilityRequestAvailabilityByWarehouseInner) SetAvailabilityByWarehouseId(v string) { o.AvailabilityByWarehouseId = &v } diff --git a/model_price_and_availability_request_availability_by_warehouse_inner_availability_by_warehouse_id.go b/model_price_and_availability_request_availability_by_warehouse_inner_availability_by_warehouse_id.go deleted file mode 100644 index cfca820..0000000 --- a/model_price_and_availability_request_availability_by_warehouse_inner_availability_by_warehouse_id.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -XI Sdk Resellers - -For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package xi_sdk_resellers - -import ( - "encoding/json" - "gopkg.in/validator.v2" - "fmt" -) - -// PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId - Plant/warehouse Id of a particular location in order to get just the inventory of that location. -type PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId struct { - Int32 *int32 - String *string -} - -// int32AsPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId is a convenience function that returns int32 wrapped in PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId -func Int32AsPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId(v *int32) PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId { - return PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId{ - Int32: v, - } -} - -// stringAsPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId is a convenience function that returns string wrapped in PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId -func StringAsPriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId(v *string) PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId { - return PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId{ - String: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) UnmarshalJSON(data []byte) error { - var err error - match := 0 - // try to unmarshal data into Int32 - err = newStrictDecoder(data).Decode(&dst.Int32) - if err == nil { - jsonInt32, _ := json.Marshal(dst.Int32) - if string(jsonInt32) == "{}" { // empty struct - dst.Int32 = nil - } else { - if err = validator.Validate(dst.Int32); err != nil { - dst.Int32 = nil - } else { - match++ - } - } - } else { - dst.Int32 = nil - } - - // try to unmarshal data into String - err = newStrictDecoder(data).Decode(&dst.String) - if err == nil { - jsonString, _ := json.Marshal(dst.String) - if string(jsonString) == "{}" { // empty struct - dst.String = nil - } else { - if err = validator.Validate(dst.String); err != nil { - dst.String = nil - } else { - match++ - } - } - } else { - dst.String = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.Int32 = nil - dst.String = nil - - return fmt.Errorf("data matches more than one schema in oneOf(PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) MarshalJSON() ([]byte, error) { - if src.Int32 != nil { - return json.Marshal(&src.Int32) - } - - if src.String != nil { - return json.Marshal(&src.String) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.Int32 != nil { - return obj.Int32 - } - - if obj.String != nil { - return obj.String - } - - // all schemas are nil - return nil -} - -type NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId struct { - value *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId - isSet bool -} - -func (v NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) Get() *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId { - return v.value -} - -func (v *NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) Set(val *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) { - v.value = val - v.isSet = true -} - -func (v NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) IsSet() bool { - return v.isSet -} - -func (v *NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId(val *PriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) *NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId { - return &NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId{value: val, isSet: true} -} - -func (v NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePriceAndAvailabilityRequestAvailabilityByWarehouseInnerAvailabilityByWarehouseId) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_price_and_availability_request_products_inner.go b/model_price_and_availability_request_products_inner.go index 1783f04..64b450a 100644 --- a/model_price_and_availability_request_products_inner.go +++ b/model_price_and_availability_request_products_inner.go @@ -27,8 +27,10 @@ type PriceAndAvailabilityRequestProductsInner struct { CustomerPartNumber NullableString `json:"customerPartNumber,omitempty"` // The UPC code for the product. Consists of 12 numeric digits that are uniquely assigned to each trade item. Upc NullableString `json:"upc,omitempty"` - QuantityRequested NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested `json:"quantityRequested,omitempty"` - PlanID NullablePriceAndAvailabilityRequestProductsInnerPlanID `json:"planID,omitempty"` + // Number of quantity of the Product. + QuantityRequested NullableString `json:"quantityRequested,omitempty"` + // Id of the plan + PlanID NullableString `json:"planID,omitempty"` AdditionalAttributes []PriceAndAvailabilityRequestProductsInnerAdditionalAttributesInner `json:"additionalAttributes,omitempty"` } @@ -218,9 +220,9 @@ func (o *PriceAndAvailabilityRequestProductsInner) UnsetUpc() { } // GetQuantityRequested returns the QuantityRequested field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequested() PriceAndAvailabilityRequestProductsInnerQuantityRequested { +func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequested() string { if o == nil || IsNil(o.QuantityRequested.Get()) { - var ret PriceAndAvailabilityRequestProductsInnerQuantityRequested + var ret string return ret } return *o.QuantityRequested.Get() @@ -229,7 +231,7 @@ func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequested() PriceA // GetQuantityRequestedOk returns a tuple with the QuantityRequested field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequestedOk() (*PriceAndAvailabilityRequestProductsInnerQuantityRequested, bool) { +func (o *PriceAndAvailabilityRequestProductsInner) GetQuantityRequestedOk() (*string, bool) { if o == nil { return nil, false } @@ -245,8 +247,8 @@ func (o *PriceAndAvailabilityRequestProductsInner) HasQuantityRequested() bool { return false } -// SetQuantityRequested gets a reference to the given NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested and assigns it to the QuantityRequested field. -func (o *PriceAndAvailabilityRequestProductsInner) SetQuantityRequested(v PriceAndAvailabilityRequestProductsInnerQuantityRequested) { +// SetQuantityRequested gets a reference to the given NullableString and assigns it to the QuantityRequested field. +func (o *PriceAndAvailabilityRequestProductsInner) SetQuantityRequested(v string) { o.QuantityRequested.Set(&v) } // SetQuantityRequestedNil sets the value for QuantityRequested to be an explicit nil @@ -260,9 +262,9 @@ func (o *PriceAndAvailabilityRequestProductsInner) UnsetQuantityRequested() { } // GetPlanID returns the PlanID field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PriceAndAvailabilityRequestProductsInner) GetPlanID() PriceAndAvailabilityRequestProductsInnerPlanID { +func (o *PriceAndAvailabilityRequestProductsInner) GetPlanID() string { if o == nil || IsNil(o.PlanID.Get()) { - var ret PriceAndAvailabilityRequestProductsInnerPlanID + var ret string return ret } return *o.PlanID.Get() @@ -271,7 +273,7 @@ func (o *PriceAndAvailabilityRequestProductsInner) GetPlanID() PriceAndAvailabil // GetPlanIDOk returns a tuple with the PlanID field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PriceAndAvailabilityRequestProductsInner) GetPlanIDOk() (*PriceAndAvailabilityRequestProductsInnerPlanID, bool) { +func (o *PriceAndAvailabilityRequestProductsInner) GetPlanIDOk() (*string, bool) { if o == nil { return nil, false } @@ -287,8 +289,8 @@ func (o *PriceAndAvailabilityRequestProductsInner) HasPlanID() bool { return false } -// SetPlanID gets a reference to the given NullablePriceAndAvailabilityRequestProductsInnerPlanID and assigns it to the PlanID field. -func (o *PriceAndAvailabilityRequestProductsInner) SetPlanID(v PriceAndAvailabilityRequestProductsInnerPlanID) { +// SetPlanID gets a reference to the given NullableString and assigns it to the PlanID field. +func (o *PriceAndAvailabilityRequestProductsInner) SetPlanID(v string) { o.PlanID.Set(&v) } // SetPlanIDNil sets the value for PlanID to be an explicit nil diff --git a/model_price_and_availability_request_products_inner_plan_id.go b/model_price_and_availability_request_products_inner_plan_id.go deleted file mode 100644 index d7621f8..0000000 --- a/model_price_and_availability_request_products_inner_plan_id.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -XI Sdk Resellers - -For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package xi_sdk_resellers - -import ( - "encoding/json" - "gopkg.in/validator.v2" - "fmt" -) - -// PriceAndAvailabilityRequestProductsInnerPlanID - Id of the plan -type PriceAndAvailabilityRequestProductsInnerPlanID struct { - Int32 *int32 - String *string -} - -// int32AsPriceAndAvailabilityRequestProductsInnerPlanID is a convenience function that returns int32 wrapped in PriceAndAvailabilityRequestProductsInnerPlanID -func Int32AsPriceAndAvailabilityRequestProductsInnerPlanID(v *int32) PriceAndAvailabilityRequestProductsInnerPlanID { - return PriceAndAvailabilityRequestProductsInnerPlanID{ - Int32: v, - } -} - -// stringAsPriceAndAvailabilityRequestProductsInnerPlanID is a convenience function that returns string wrapped in PriceAndAvailabilityRequestProductsInnerPlanID -func StringAsPriceAndAvailabilityRequestProductsInnerPlanID(v *string) PriceAndAvailabilityRequestProductsInnerPlanID { - return PriceAndAvailabilityRequestProductsInnerPlanID{ - String: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *PriceAndAvailabilityRequestProductsInnerPlanID) UnmarshalJSON(data []byte) error { - var err error - // this object is nullable so check if the payload is null or empty string - if string(data) == "" || string(data) == "{}" { - return nil - } - - match := 0 - // try to unmarshal data into Int32 - err = newStrictDecoder(data).Decode(&dst.Int32) - if err == nil { - jsonInt32, _ := json.Marshal(dst.Int32) - if string(jsonInt32) == "{}" { // empty struct - dst.Int32 = nil - } else { - if err = validator.Validate(dst.Int32); err != nil { - dst.Int32 = nil - } else { - match++ - } - } - } else { - dst.Int32 = nil - } - - // try to unmarshal data into String - err = newStrictDecoder(data).Decode(&dst.String) - if err == nil { - jsonString, _ := json.Marshal(dst.String) - if string(jsonString) == "{}" { // empty struct - dst.String = nil - } else { - if err = validator.Validate(dst.String); err != nil { - dst.String = nil - } else { - match++ - } - } - } else { - dst.String = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.Int32 = nil - dst.String = nil - - return fmt.Errorf("data matches more than one schema in oneOf(PriceAndAvailabilityRequestProductsInnerPlanID)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(PriceAndAvailabilityRequestProductsInnerPlanID)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src PriceAndAvailabilityRequestProductsInnerPlanID) MarshalJSON() ([]byte, error) { - if src.Int32 != nil { - return json.Marshal(&src.Int32) - } - - if src.String != nil { - return json.Marshal(&src.String) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *PriceAndAvailabilityRequestProductsInnerPlanID) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.Int32 != nil { - return obj.Int32 - } - - if obj.String != nil { - return obj.String - } - - // all schemas are nil - return nil -} - -type NullablePriceAndAvailabilityRequestProductsInnerPlanID struct { - value *PriceAndAvailabilityRequestProductsInnerPlanID - isSet bool -} - -func (v NullablePriceAndAvailabilityRequestProductsInnerPlanID) Get() *PriceAndAvailabilityRequestProductsInnerPlanID { - return v.value -} - -func (v *NullablePriceAndAvailabilityRequestProductsInnerPlanID) Set(val *PriceAndAvailabilityRequestProductsInnerPlanID) { - v.value = val - v.isSet = true -} - -func (v NullablePriceAndAvailabilityRequestProductsInnerPlanID) IsSet() bool { - return v.isSet -} - -func (v *NullablePriceAndAvailabilityRequestProductsInnerPlanID) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePriceAndAvailabilityRequestProductsInnerPlanID(val *PriceAndAvailabilityRequestProductsInnerPlanID) *NullablePriceAndAvailabilityRequestProductsInnerPlanID { - return &NullablePriceAndAvailabilityRequestProductsInnerPlanID{value: val, isSet: true} -} - -func (v NullablePriceAndAvailabilityRequestProductsInnerPlanID) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePriceAndAvailabilityRequestProductsInnerPlanID) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_price_and_availability_request_products_inner_quantity_requested.go b/model_price_and_availability_request_products_inner_quantity_requested.go deleted file mode 100644 index aee8ed7..0000000 --- a/model_price_and_availability_request_products_inner_quantity_requested.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -XI Sdk Resellers - -For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package xi_sdk_resellers - -import ( - "encoding/json" - "gopkg.in/validator.v2" - "fmt" -) - -// PriceAndAvailabilityRequestProductsInnerQuantityRequested - Number of quantity of the Product. -type PriceAndAvailabilityRequestProductsInnerQuantityRequested struct { - Int32 *int32 - String *string -} - -// int32AsPriceAndAvailabilityRequestProductsInnerQuantityRequested is a convenience function that returns int32 wrapped in PriceAndAvailabilityRequestProductsInnerQuantityRequested -func Int32AsPriceAndAvailabilityRequestProductsInnerQuantityRequested(v *int32) PriceAndAvailabilityRequestProductsInnerQuantityRequested { - return PriceAndAvailabilityRequestProductsInnerQuantityRequested{ - Int32: v, - } -} - -// stringAsPriceAndAvailabilityRequestProductsInnerQuantityRequested is a convenience function that returns string wrapped in PriceAndAvailabilityRequestProductsInnerQuantityRequested -func StringAsPriceAndAvailabilityRequestProductsInnerQuantityRequested(v *string) PriceAndAvailabilityRequestProductsInnerQuantityRequested { - return PriceAndAvailabilityRequestProductsInnerQuantityRequested{ - String: v, - } -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *PriceAndAvailabilityRequestProductsInnerQuantityRequested) UnmarshalJSON(data []byte) error { - var err error - // this object is nullable so check if the payload is null or empty string - if string(data) == "" || string(data) == "{}" { - return nil - } - - match := 0 - // try to unmarshal data into Int32 - err = newStrictDecoder(data).Decode(&dst.Int32) - if err == nil { - jsonInt32, _ := json.Marshal(dst.Int32) - if string(jsonInt32) == "{}" { // empty struct - dst.Int32 = nil - } else { - if err = validator.Validate(dst.Int32); err != nil { - dst.Int32 = nil - } else { - match++ - } - } - } else { - dst.Int32 = nil - } - - // try to unmarshal data into String - err = newStrictDecoder(data).Decode(&dst.String) - if err == nil { - jsonString, _ := json.Marshal(dst.String) - if string(jsonString) == "{}" { // empty struct - dst.String = nil - } else { - if err = validator.Validate(dst.String); err != nil { - dst.String = nil - } else { - match++ - } - } - } else { - dst.String = nil - } - - if match > 1 { // more than 1 match - // reset to nil - dst.Int32 = nil - dst.String = nil - - return fmt.Errorf("data matches more than one schema in oneOf(PriceAndAvailabilityRequestProductsInnerQuantityRequested)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(PriceAndAvailabilityRequestProductsInnerQuantityRequested)") - } -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src PriceAndAvailabilityRequestProductsInnerQuantityRequested) MarshalJSON() ([]byte, error) { - if src.Int32 != nil { - return json.Marshal(&src.Int32) - } - - if src.String != nil { - return json.Marshal(&src.String) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *PriceAndAvailabilityRequestProductsInnerQuantityRequested) GetActualInstance() (interface{}) { - if obj == nil { - return nil - } - if obj.Int32 != nil { - return obj.Int32 - } - - if obj.String != nil { - return obj.String - } - - // all schemas are nil - return nil -} - -type NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested struct { - value *PriceAndAvailabilityRequestProductsInnerQuantityRequested - isSet bool -} - -func (v NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested) Get() *PriceAndAvailabilityRequestProductsInnerQuantityRequested { - return v.value -} - -func (v *NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested) Set(val *PriceAndAvailabilityRequestProductsInnerQuantityRequested) { - v.value = val - v.isSet = true -} - -func (v NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested) IsSet() bool { - return v.isSet -} - -func (v *NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePriceAndAvailabilityRequestProductsInnerQuantityRequested(val *PriceAndAvailabilityRequestProductsInnerQuantityRequested) *NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested { - return &NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested{value: val, isSet: true} -} - -func (v NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePriceAndAvailabilityRequestProductsInnerQuantityRequested) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -