From c99ee95f6b1ad422c1167c3a2c195c0f19e9e295 Mon Sep 17 00:00:00 2001 From: ingrammicro-xvantage Date: Mon, 9 Sep 2024 08:56:24 +0000 Subject: [PATCH] Update from https://github.com/ingrammicro-xvantage/xi-sdk-openapispec/commit/ad399934b21f96e8332937cbfff671a0b0791644 --- api/openapi.yaml | 248 +++++++++-------- ...DetailB2BLinesInnerShipmentDetailsInner.md | 12 +- docs/QuoteDetailsResponse.md | 36 +++ docs/QuoteDetailsResponseProductsInner.md | 72 +++++ .../QuoteDetailsResponseProductsInnerPrice.md | 132 ++++++++- ...b2_b_lines_inner_shipment_details_inner.go | 32 ++- model_quote_details_response.go | 46 ++++ ...l_quote_details_response_products_inner.go | 92 +++++++ ...e_details_response_products_inner_price.go | 252 ++++++++++++++---- 9 files changed, 745 insertions(+), 177 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 2f11d6e..e3554d1 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -10004,7 +10004,7 @@ components: type: object QuoteDetailsResponse: example: - quantityTotal: 7 + quantityTotal: 9 shippingInfo: phoneNumber: phoneNumber city: city @@ -10016,7 +10016,7 @@ components: state: state shpToGstinNumber: shpToGstinNumber email: email - taxTotal: 4.965218492984954 + taxTotal: 6.683562403749608 leaseInfo: leaseInfo dateClosed: dateClosed imWarehouse: imWarehouse @@ -10032,46 +10032,49 @@ components: ean: ean terms: terms price: - quotePrice: 1.4658129805029452 - extrafees: 9.301444243932576 unitOfMeasure: unitOfMeasure + extendedQuotePrice: 9.301444243932576 + recurringPriceModel: recurringPriceModel + tax: 4.145608029883936 + type: type + extraFeesDetails: + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + discountOffList: discountOffList + quotePrice: 5.637376656633329 + extrafees: 7.386281948385884 discounts: - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - msrp: 5.962133916683182 - extendedQuotePrice: 2.3021358869347655 - recurringPriceModel: recurringPriceModel - tax: 7.061401241503109 - type: type - extraFeesDetails: - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - extendedMsrp: 5.637376656633329 - discountOffList: discountOffList + remainingQuantityExtendedQuotePrice: 2.027123023002322 + msrp: 2.3021358869347655 + remainingQuantityExtendedMsrp: 3.616076749251911 + extendedMsrp: 7.061401241503109 vendorPartNumber: vendorPartNumber quoteProductsSupplierPartAuxiliaryId: quoteProductsSupplierPartAuxiliaryId + minimumOrderAllowedQty: 1 isSuggestionProduct: true ingramPartNumber: ingramPartNumber billDetails: @@ -10083,10 +10086,11 @@ components: type: type frequency: 1 unitValue: unitValue + remainingQuoteQty: 6 quantity: 0 serialNumber: serialNumber resellerMargin: resellerMargin - weight: 6.027456183070403 + weight: 5.962133916683182 vendorName: vendorName quoteProductGuid: quoteProductGuid planDescription: planDescription @@ -10103,46 +10107,49 @@ components: ean: ean terms: terms price: - quotePrice: 1.4658129805029452 - extrafees: 9.301444243932576 unitOfMeasure: unitOfMeasure + extendedQuotePrice: 9.301444243932576 + recurringPriceModel: recurringPriceModel + tax: 4.145608029883936 + type: type + extraFeesDetails: + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + discountOffList: discountOffList + quotePrice: 5.637376656633329 + extrafees: 7.386281948385884 discounts: - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - msrp: 5.962133916683182 - extendedQuotePrice: 2.3021358869347655 - recurringPriceModel: recurringPriceModel - tax: 7.061401241503109 - type: type - extraFeesDetails: - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - extendedMsrp: 5.637376656633329 - discountOffList: discountOffList + remainingQuantityExtendedQuotePrice: 2.027123023002322 + msrp: 2.3021358869347655 + remainingQuantityExtendedMsrp: 3.616076749251911 + extendedMsrp: 7.061401241503109 vendorPartNumber: vendorPartNumber quoteProductsSupplierPartAuxiliaryId: quoteProductsSupplierPartAuxiliaryId + minimumOrderAllowedQty: 1 isSuggestionProduct: true ingramPartNumber: ingramPartNumber billDetails: @@ -10154,10 +10161,11 @@ components: type: type frequency: 1 unitValue: unitValue + remainingQuoteQty: 6 quantity: 0 serialNumber: serialNumber resellerMargin: resellerMargin - weight: 6.027456183070403 + weight: 5.962133916683182 vendorName: vendorName quoteProductGuid: quoteProductGuid planDescription: planDescription @@ -10166,12 +10174,13 @@ components: startDate: startDate statusReason: statusReason imWarehouseGstNumber: imWarehouseGstNumber + isPartialOrderAllowed: true leasingInstructions: leasingInstructions - productsCount: 1 + productsCount: 4 extraFeesTotalDetails: - - extraFeesAmount: 3.616076749251911 + - extraFeesAmount: 1.2315135367772556 extraFeesDescription: extraFeesDescription - - extraFeesAmount: 3.616076749251911 + - extraFeesAmount: 1.2315135367772556 extraFeesDescription: extraFeesDescription vendorQuoteNumber: vendorQuoteNumber specialBidEffectiveDate: specialBidEffectiveDate @@ -10188,16 +10197,16 @@ components: email: email marketSegment: marketSegment introPreamble: introPreamble - extendedMsrpTotal: 6.84685269835264 - freightAmount: 9.965781217890562 + extendedMsrpTotal: 5.025004791520295 + freightAmount: 9.018348186070783 lastModifiedDate: lastModifiedDate legalTerms: legalTerms specialBidExpirationDate: specialBidExpirationDate quoteNumber: quoteNumber - extraFeesTotal: 1.1730742509559433 + extraFeesTotal: 9.369310271410669 revision: revision quoteGuid: quoteGuid - extendedQuotePriceTotal: 5.025004791520295 + extendedQuotePriceTotal: 8.762042012749001 customerNeed: customerNeed paymentTermsName: paymentTermsName resellerInfo: @@ -10269,6 +10278,9 @@ components: type: string vendorQuoteNumber: type: string + isPartialOrderAllowed: + nullable: true + type: boolean status: description: This refers to the primary status of the quote. API responses will return @@ -16001,7 +16013,7 @@ components: type: object QuoteDetailsResponse_products_inner_price_extraFeesDetails_inner: example: - extraFeesAmount: 3.616076749251911 + extraFeesAmount: 1.2315135367772556 extraFeesDescription: extraFeesDescription properties: extraFeesDescription: @@ -16012,15 +16024,15 @@ components: type: object QuoteDetailsResponse_products_inner_price_discounts_inner: example: - amount: 2.027123023002322 + amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo properties: @@ -16051,63 +16063,78 @@ components: type: object QuoteDetailsResponse_products_inner_price: example: - quotePrice: 1.4658129805029452 - extrafees: 9.301444243932576 unitOfMeasure: unitOfMeasure + extendedQuotePrice: 9.301444243932576 + recurringPriceModel: recurringPriceModel + tax: 4.145608029883936 + type: type + extraFeesDetails: + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + discountOffList: discountOffList + quotePrice: 5.637376656633329 + extrafees: 7.386281948385884 discounts: - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - msrp: 5.962133916683182 - extendedQuotePrice: 2.3021358869347655 - recurringPriceModel: recurringPriceModel - tax: 7.061401241503109 - type: type - extraFeesDetails: - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - extendedMsrp: 5.637376656633329 - discountOffList: discountOffList + remainingQuantityExtendedQuotePrice: 2.027123023002322 + msrp: 2.3021358869347655 + remainingQuantityExtendedMsrp: 3.616076749251911 + extendedMsrp: 7.061401241503109 properties: quotePrice: description: Ingram Micro quoted price specific to the reseller and quote. format: decimal + nullable: true type: number msrp: description: Manufacturer Suggested Retail Price format: decimal + nullable: true type: number extendedMsrp: description: Extended MSRP - Manufacturer Suggested Retail Price X Quantity format: decimal + nullable: true type: number extendedQuotePrice: description: Extended reseller quoted price (cost to reseller) X Quantity format: decimal + nullable: true + type: number + remainingQuantityExtendedMsrp: + format: decimal + nullable: true + type: number + remainingQuantityExtendedQuotePrice: + format: decimal + nullable: true type: number discountOffList: description: Discount off list percentage extended + nullable: true type: string type: type: string @@ -16160,46 +16187,49 @@ components: ean: ean terms: terms price: - quotePrice: 1.4658129805029452 - extrafees: 9.301444243932576 unitOfMeasure: unitOfMeasure + extendedQuotePrice: 9.301444243932576 + recurringPriceModel: recurringPriceModel + tax: 4.145608029883936 + type: type + extraFeesDetails: + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + - extraFeesAmount: 1.2315135367772556 + extraFeesDescription: extraFeesDescription + discountOffList: discountOffList + quotePrice: 5.637376656633329 + extrafees: 7.386281948385884 discounts: - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - - amount: 2.027123023002322 + - amount: 1.0246457001441578 description: description - avaliableQunatity: 4 + avaliableQunatity: 1 bidVersion: bidVersion validFrom: validFrom type: type bidNumber: bidNumber - minimumQuantity: 7 - discountOffList: 1.2315135367772556 + minimumQuantity: 6 + discountOffList: 7.457744773683766 expirationDate: expirationDate validTo: validTo - msrp: 5.962133916683182 - extendedQuotePrice: 2.3021358869347655 - recurringPriceModel: recurringPriceModel - tax: 7.061401241503109 - type: type - extraFeesDetails: - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - - extraFeesAmount: 3.616076749251911 - extraFeesDescription: extraFeesDescription - extendedMsrp: 5.637376656633329 - discountOffList: discountOffList + remainingQuantityExtendedQuotePrice: 2.027123023002322 + msrp: 2.3021358869347655 + remainingQuantityExtendedMsrp: 3.616076749251911 + extendedMsrp: 7.061401241503109 vendorPartNumber: vendorPartNumber quoteProductsSupplierPartAuxiliaryId: quoteProductsSupplierPartAuxiliaryId + minimumOrderAllowedQty: 1 isSuggestionProduct: true ingramPartNumber: ingramPartNumber billDetails: @@ -16211,10 +16241,11 @@ components: type: type frequency: 1 unitValue: unitValue + remainingQuoteQty: 6 quantity: 0 serialNumber: serialNumber resellerMargin: resellerMargin - weight: 6.027456183070403 + weight: 5.962133916683182 vendorName: vendorName quoteProductGuid: quoteProductGuid planDescription: planDescription @@ -16234,6 +16265,12 @@ components: quantity: description: Quantity of product line item quoted. type: integer + remainingQuoteQty: + nullable: true + type: integer + minimumOrderAllowedQty: + nullable: true + type: integer notes: description: Product line item comments. type: string @@ -17482,6 +17519,7 @@ components: quantity: description: The quantity shipped of the line item. format: int32 + nullable: true type: integer deliveryNumber: description: The actual date of delivery of the line item. diff --git a/docs/OrderDetailB2BLinesInnerShipmentDetailsInner.md b/docs/OrderDetailB2BLinesInnerShipmentDetailsInner.md index 037ce10..6192cda 100644 --- a/docs/OrderDetailB2BLinesInnerShipmentDetailsInner.md +++ b/docs/OrderDetailB2BLinesInnerShipmentDetailsInner.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Quantity** | Pointer to **int32** | The quantity shipped of the line item. | [optional] +**Quantity** | Pointer to **NullableInt32** | The quantity shipped of the line item. | [optional] **DeliveryNumber** | Pointer to **string** | The actual date of delivery of the line item. | [optional] **EstimatedShipDate** | Pointer to **string** | The date the line item is expected to be shipped. | [optional] **ShippedDate** | Pointer to **string** | | [optional] @@ -59,6 +59,16 @@ SetQuantity sets Quantity field to given value. HasQuantity returns a boolean if a field has been set. +### SetQuantityNil + +`func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil ### GetDeliveryNumber `func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) GetDeliveryNumber() string` diff --git a/docs/QuoteDetailsResponse.md b/docs/QuoteDetailsResponse.md index d7f7b4b..7852e69 100644 --- a/docs/QuoteDetailsResponse.md +++ b/docs/QuoteDetailsResponse.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **SpecialBidEffectiveDate** | Pointer to **string** | If price discount has been applied to the quote - the starting date the discount begins. | [optional] **SpecialBidExpirationDate** | Pointer to **string** | If a price discount has been applied to the quote - The date the discount expires and will no longer be applicable. | [optional] **VendorQuoteNumber** | Pointer to **string** | | [optional] +**IsPartialOrderAllowed** | Pointer to **NullableBool** | | [optional] **Status** | Pointer to **string** | This refers to the primary status of the quote. API responses will return | [optional] **StatusReason** | Pointer to **string** | | [optional] **ClosingReason** | Pointer to **string** | Closing Reason for quote. | [optional] @@ -365,6 +366,41 @@ SetVendorQuoteNumber sets VendorQuoteNumber field to given value. HasVendorQuoteNumber returns a boolean if a field has been set. +### GetIsPartialOrderAllowed + +`func (o *QuoteDetailsResponse) GetIsPartialOrderAllowed() bool` + +GetIsPartialOrderAllowed returns the IsPartialOrderAllowed field if non-nil, zero value otherwise. + +### GetIsPartialOrderAllowedOk + +`func (o *QuoteDetailsResponse) GetIsPartialOrderAllowedOk() (*bool, bool)` + +GetIsPartialOrderAllowedOk returns a tuple with the IsPartialOrderAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPartialOrderAllowed + +`func (o *QuoteDetailsResponse) SetIsPartialOrderAllowed(v bool)` + +SetIsPartialOrderAllowed sets IsPartialOrderAllowed field to given value. + +### HasIsPartialOrderAllowed + +`func (o *QuoteDetailsResponse) HasIsPartialOrderAllowed() bool` + +HasIsPartialOrderAllowed returns a boolean if a field has been set. + +### SetIsPartialOrderAllowedNil + +`func (o *QuoteDetailsResponse) SetIsPartialOrderAllowedNil(b bool)` + + SetIsPartialOrderAllowedNil sets the value for IsPartialOrderAllowed to be an explicit nil + +### UnsetIsPartialOrderAllowed +`func (o *QuoteDetailsResponse) UnsetIsPartialOrderAllowed()` + +UnsetIsPartialOrderAllowed ensures that no value is present for IsPartialOrderAllowed, not even an explicit nil ### GetStatus `func (o *QuoteDetailsResponse) GetStatus() string` diff --git a/docs/QuoteDetailsResponseProductsInner.md b/docs/QuoteDetailsResponseProductsInner.md index 6684db9..946ed78 100644 --- a/docs/QuoteDetailsResponseProductsInner.md +++ b/docs/QuoteDetailsResponseProductsInner.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **QuoteProductGuid** | Pointer to **string** | Quote Product GUID is the primary quote key in Ingram Micro's CRM - needed to retrieve quote details. | [optional] **LineNumber** | Pointer to **string** | Line number which the product will appear in the quote. Line number is manditory when unique configurations are included in a quote and mainting the item line order is required. | [optional] **Quantity** | Pointer to **int32** | Quantity of product line item quoted. | [optional] +**RemainingQuoteQty** | Pointer to **NullableInt32** | | [optional] +**MinimumOrderAllowedQty** | Pointer to **NullableInt32** | | [optional] **Notes** | Pointer to **string** | Product line item comments. | [optional] **Ean** | Pointer to **string** | EANUPC | [optional] **Coo** | Pointer to **string** | Country of Origin. | [optional] @@ -124,6 +126,76 @@ SetQuantity sets Quantity field to given value. HasQuantity returns a boolean if a field has been set. +### GetRemainingQuoteQty + +`func (o *QuoteDetailsResponseProductsInner) GetRemainingQuoteQty() int32` + +GetRemainingQuoteQty returns the RemainingQuoteQty field if non-nil, zero value otherwise. + +### GetRemainingQuoteQtyOk + +`func (o *QuoteDetailsResponseProductsInner) GetRemainingQuoteQtyOk() (*int32, bool)` + +GetRemainingQuoteQtyOk returns a tuple with the RemainingQuoteQty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemainingQuoteQty + +`func (o *QuoteDetailsResponseProductsInner) SetRemainingQuoteQty(v int32)` + +SetRemainingQuoteQty sets RemainingQuoteQty field to given value. + +### HasRemainingQuoteQty + +`func (o *QuoteDetailsResponseProductsInner) HasRemainingQuoteQty() bool` + +HasRemainingQuoteQty returns a boolean if a field has been set. + +### SetRemainingQuoteQtyNil + +`func (o *QuoteDetailsResponseProductsInner) SetRemainingQuoteQtyNil(b bool)` + + SetRemainingQuoteQtyNil sets the value for RemainingQuoteQty to be an explicit nil + +### UnsetRemainingQuoteQty +`func (o *QuoteDetailsResponseProductsInner) UnsetRemainingQuoteQty()` + +UnsetRemainingQuoteQty ensures that no value is present for RemainingQuoteQty, not even an explicit nil +### GetMinimumOrderAllowedQty + +`func (o *QuoteDetailsResponseProductsInner) GetMinimumOrderAllowedQty() int32` + +GetMinimumOrderAllowedQty returns the MinimumOrderAllowedQty field if non-nil, zero value otherwise. + +### GetMinimumOrderAllowedQtyOk + +`func (o *QuoteDetailsResponseProductsInner) GetMinimumOrderAllowedQtyOk() (*int32, bool)` + +GetMinimumOrderAllowedQtyOk returns a tuple with the MinimumOrderAllowedQty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimumOrderAllowedQty + +`func (o *QuoteDetailsResponseProductsInner) SetMinimumOrderAllowedQty(v int32)` + +SetMinimumOrderAllowedQty sets MinimumOrderAllowedQty field to given value. + +### HasMinimumOrderAllowedQty + +`func (o *QuoteDetailsResponseProductsInner) HasMinimumOrderAllowedQty() bool` + +HasMinimumOrderAllowedQty returns a boolean if a field has been set. + +### SetMinimumOrderAllowedQtyNil + +`func (o *QuoteDetailsResponseProductsInner) SetMinimumOrderAllowedQtyNil(b bool)` + + SetMinimumOrderAllowedQtyNil sets the value for MinimumOrderAllowedQty to be an explicit nil + +### UnsetMinimumOrderAllowedQty +`func (o *QuoteDetailsResponseProductsInner) UnsetMinimumOrderAllowedQty()` + +UnsetMinimumOrderAllowedQty ensures that no value is present for MinimumOrderAllowedQty, not even an explicit nil ### GetNotes `func (o *QuoteDetailsResponseProductsInner) GetNotes() string` diff --git a/docs/QuoteDetailsResponseProductsInnerPrice.md b/docs/QuoteDetailsResponseProductsInnerPrice.md index dca80c7..617d85e 100644 --- a/docs/QuoteDetailsResponseProductsInnerPrice.md +++ b/docs/QuoteDetailsResponseProductsInnerPrice.md @@ -4,11 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**QuotePrice** | Pointer to **float32** | Ingram Micro quoted price specific to the reseller and quote. | [optional] -**Msrp** | Pointer to **float32** | Manufacturer Suggested Retail Price | [optional] -**ExtendedMsrp** | Pointer to **float32** | Extended MSRP - Manufacturer Suggested Retail Price X Quantity | [optional] -**ExtendedQuotePrice** | Pointer to **float32** | Extended reseller quoted price (cost to reseller) X Quantity | [optional] -**DiscountOffList** | Pointer to **string** | Discount off list percentage extended | [optional] +**QuotePrice** | Pointer to **NullableFloat32** | Ingram Micro quoted price specific to the reseller and quote. | [optional] +**Msrp** | Pointer to **NullableFloat32** | Manufacturer Suggested Retail Price | [optional] +**ExtendedMsrp** | Pointer to **NullableFloat32** | Extended MSRP - Manufacturer Suggested Retail Price X Quantity | [optional] +**ExtendedQuotePrice** | Pointer to **NullableFloat32** | Extended reseller quoted price (cost to reseller) X Quantity | [optional] +**RemainingQuantityExtendedMsrp** | Pointer to **NullableFloat32** | | [optional] +**RemainingQuantityExtendedQuotePrice** | Pointer to **NullableFloat32** | | [optional] +**DiscountOffList** | Pointer to **NullableString** | Discount off list percentage extended | [optional] **Type** | Pointer to **string** | | [optional] **RecurringPriceModel** | Pointer to **string** | | [optional] **UnitOfMeasure** | Pointer to **string** | | [optional] @@ -61,6 +63,16 @@ SetQuotePrice sets QuotePrice field to given value. HasQuotePrice returns a boolean if a field has been set. +### SetQuotePriceNil + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetQuotePriceNil(b bool)` + + SetQuotePriceNil sets the value for QuotePrice to be an explicit nil + +### UnsetQuotePrice +`func (o *QuoteDetailsResponseProductsInnerPrice) UnsetQuotePrice()` + +UnsetQuotePrice ensures that no value is present for QuotePrice, not even an explicit nil ### GetMsrp `func (o *QuoteDetailsResponseProductsInnerPrice) GetMsrp() float32` @@ -86,6 +98,16 @@ SetMsrp sets Msrp field to given value. HasMsrp returns a boolean if a field has been set. +### SetMsrpNil + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetMsrpNil(b bool)` + + SetMsrpNil sets the value for Msrp to be an explicit nil + +### UnsetMsrp +`func (o *QuoteDetailsResponseProductsInnerPrice) UnsetMsrp()` + +UnsetMsrp ensures that no value is present for Msrp, not even an explicit nil ### GetExtendedMsrp `func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedMsrp() float32` @@ -111,6 +133,16 @@ SetExtendedMsrp sets ExtendedMsrp field to given value. HasExtendedMsrp returns a boolean if a field has been set. +### SetExtendedMsrpNil + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedMsrpNil(b bool)` + + SetExtendedMsrpNil sets the value for ExtendedMsrp to be an explicit nil + +### UnsetExtendedMsrp +`func (o *QuoteDetailsResponseProductsInnerPrice) UnsetExtendedMsrp()` + +UnsetExtendedMsrp ensures that no value is present for ExtendedMsrp, not even an explicit nil ### GetExtendedQuotePrice `func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedQuotePrice() float32` @@ -136,6 +168,86 @@ SetExtendedQuotePrice sets ExtendedQuotePrice field to given value. HasExtendedQuotePrice returns a boolean if a field has been set. +### SetExtendedQuotePriceNil + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedQuotePriceNil(b bool)` + + SetExtendedQuotePriceNil sets the value for ExtendedQuotePrice to be an explicit nil + +### UnsetExtendedQuotePrice +`func (o *QuoteDetailsResponseProductsInnerPrice) UnsetExtendedQuotePrice()` + +UnsetExtendedQuotePrice ensures that no value is present for ExtendedQuotePrice, not even an explicit nil +### GetRemainingQuantityExtendedMsrp + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedMsrp() float32` + +GetRemainingQuantityExtendedMsrp returns the RemainingQuantityExtendedMsrp field if non-nil, zero value otherwise. + +### GetRemainingQuantityExtendedMsrpOk + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedMsrpOk() (*float32, bool)` + +GetRemainingQuantityExtendedMsrpOk returns a tuple with the RemainingQuantityExtendedMsrp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemainingQuantityExtendedMsrp + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedMsrp(v float32)` + +SetRemainingQuantityExtendedMsrp sets RemainingQuantityExtendedMsrp field to given value. + +### HasRemainingQuantityExtendedMsrp + +`func (o *QuoteDetailsResponseProductsInnerPrice) HasRemainingQuantityExtendedMsrp() bool` + +HasRemainingQuantityExtendedMsrp returns a boolean if a field has been set. + +### SetRemainingQuantityExtendedMsrpNil + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedMsrpNil(b bool)` + + SetRemainingQuantityExtendedMsrpNil sets the value for RemainingQuantityExtendedMsrp to be an explicit nil + +### UnsetRemainingQuantityExtendedMsrp +`func (o *QuoteDetailsResponseProductsInnerPrice) UnsetRemainingQuantityExtendedMsrp()` + +UnsetRemainingQuantityExtendedMsrp ensures that no value is present for RemainingQuantityExtendedMsrp, not even an explicit nil +### GetRemainingQuantityExtendedQuotePrice + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedQuotePrice() float32` + +GetRemainingQuantityExtendedQuotePrice returns the RemainingQuantityExtendedQuotePrice field if non-nil, zero value otherwise. + +### GetRemainingQuantityExtendedQuotePriceOk + +`func (o *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedQuotePriceOk() (*float32, bool)` + +GetRemainingQuantityExtendedQuotePriceOk returns a tuple with the RemainingQuantityExtendedQuotePrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemainingQuantityExtendedQuotePrice + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedQuotePrice(v float32)` + +SetRemainingQuantityExtendedQuotePrice sets RemainingQuantityExtendedQuotePrice field to given value. + +### HasRemainingQuantityExtendedQuotePrice + +`func (o *QuoteDetailsResponseProductsInnerPrice) HasRemainingQuantityExtendedQuotePrice() bool` + +HasRemainingQuantityExtendedQuotePrice returns a boolean if a field has been set. + +### SetRemainingQuantityExtendedQuotePriceNil + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedQuotePriceNil(b bool)` + + SetRemainingQuantityExtendedQuotePriceNil sets the value for RemainingQuantityExtendedQuotePrice to be an explicit nil + +### UnsetRemainingQuantityExtendedQuotePrice +`func (o *QuoteDetailsResponseProductsInnerPrice) UnsetRemainingQuantityExtendedQuotePrice()` + +UnsetRemainingQuantityExtendedQuotePrice ensures that no value is present for RemainingQuantityExtendedQuotePrice, not even an explicit nil ### GetDiscountOffList `func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffList() string` @@ -161,6 +273,16 @@ SetDiscountOffList sets DiscountOffList field to given value. HasDiscountOffList returns a boolean if a field has been set. +### SetDiscountOffListNil + +`func (o *QuoteDetailsResponseProductsInnerPrice) SetDiscountOffListNil(b bool)` + + SetDiscountOffListNil sets the value for DiscountOffList to be an explicit nil + +### UnsetDiscountOffList +`func (o *QuoteDetailsResponseProductsInnerPrice) UnsetDiscountOffList()` + +UnsetDiscountOffList ensures that no value is present for DiscountOffList, not even an explicit nil ### GetType `func (o *QuoteDetailsResponseProductsInnerPrice) GetType() string` diff --git a/model_order_detail_b2_b_lines_inner_shipment_details_inner.go b/model_order_detail_b2_b_lines_inner_shipment_details_inner.go index e64700e..711201f 100644 --- a/model_order_detail_b2_b_lines_inner_shipment_details_inner.go +++ b/model_order_detail_b2_b_lines_inner_shipment_details_inner.go @@ -20,7 +20,7 @@ var _ MappedNullable = &OrderDetailB2BLinesInnerShipmentDetailsInner{} // OrderDetailB2BLinesInnerShipmentDetailsInner struct for OrderDetailB2BLinesInnerShipmentDetailsInner type OrderDetailB2BLinesInnerShipmentDetailsInner struct { // The quantity shipped of the line item. - Quantity *int32 `json:"quantity,omitempty"` + Quantity NullableInt32 `json:"quantity,omitempty"` // The actual date of delivery of the line item. DeliveryNumber *string `json:"deliveryNumber,omitempty"` // The date the line item is expected to be shipped. @@ -56,36 +56,46 @@ func NewOrderDetailB2BLinesInnerShipmentDetailsInnerWithDefaults() *OrderDetailB return &this } -// GetQuantity returns the Quantity field value if set, zero value otherwise. +// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) GetQuantity() int32 { - if o == nil || IsNil(o.Quantity) { + if o == nil || IsNil(o.Quantity.Get()) { var ret int32 return ret } - return *o.Quantity + return *o.Quantity.Get() } // GetQuantityOk returns a tuple with the Quantity 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 *OrderDetailB2BLinesInnerShipmentDetailsInner) GetQuantityOk() (*int32, bool) { - if o == nil || IsNil(o.Quantity) { + if o == nil { return nil, false } - return o.Quantity, true + return o.Quantity.Get(), o.Quantity.IsSet() } // HasQuantity returns a boolean if a field has been set. func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) HasQuantity() bool { - if o != nil && !IsNil(o.Quantity) { + if o != nil && o.Quantity.IsSet() { return true } return false } -// SetQuantity gets a reference to the given int32 and assigns it to the Quantity field. +// SetQuantity gets a reference to the given NullableInt32 and assigns it to the Quantity field. func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) SetQuantity(v int32) { - o.Quantity = &v + o.Quantity.Set(&v) +} +// SetQuantityNil sets the value for Quantity to be an explicit nil +func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) SetQuantityNil() { + o.Quantity.Set(nil) +} + +// UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +func (o *OrderDetailB2BLinesInnerShipmentDetailsInner) UnsetQuantity() { + o.Quantity.Unset() } // GetDeliveryNumber returns the DeliveryNumber field value if set, zero value otherwise. @@ -387,8 +397,8 @@ func (o OrderDetailB2BLinesInnerShipmentDetailsInner) MarshalJSON() ([]byte, err func (o OrderDetailB2BLinesInnerShipmentDetailsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Quantity) { - toSerialize["quantity"] = o.Quantity + if o.Quantity.IsSet() { + toSerialize["quantity"] = o.Quantity.Get() } if !IsNil(o.DeliveryNumber) { toSerialize["deliveryNumber"] = o.DeliveryNumber diff --git a/model_quote_details_response.go b/model_quote_details_response.go index 68125d3..e6d65b7 100644 --- a/model_quote_details_response.go +++ b/model_quote_details_response.go @@ -41,6 +41,7 @@ type QuoteDetailsResponse struct { // If a price discount has been applied to the quote - The date the discount expires and will no longer be applicable. SpecialBidExpirationDate *string `json:"specialBidExpirationDate,omitempty"` VendorQuoteNumber *string `json:"vendorQuoteNumber,omitempty"` + IsPartialOrderAllowed NullableBool `json:"isPartialOrderAllowed,omitempty"` // This refers to the primary status of the quote. API responses will return Status *string `json:"status,omitempty"` StatusReason *string `json:"statusReason,omitempty"` @@ -488,6 +489,48 @@ func (o *QuoteDetailsResponse) SetVendorQuoteNumber(v string) { o.VendorQuoteNumber = &v } +// GetIsPartialOrderAllowed returns the IsPartialOrderAllowed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QuoteDetailsResponse) GetIsPartialOrderAllowed() bool { + if o == nil || IsNil(o.IsPartialOrderAllowed.Get()) { + var ret bool + return ret + } + return *o.IsPartialOrderAllowed.Get() +} + +// GetIsPartialOrderAllowedOk returns a tuple with the IsPartialOrderAllowed 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 *QuoteDetailsResponse) GetIsPartialOrderAllowedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsPartialOrderAllowed.Get(), o.IsPartialOrderAllowed.IsSet() +} + +// HasIsPartialOrderAllowed returns a boolean if a field has been set. +func (o *QuoteDetailsResponse) HasIsPartialOrderAllowed() bool { + if o != nil && o.IsPartialOrderAllowed.IsSet() { + return true + } + + return false +} + +// SetIsPartialOrderAllowed gets a reference to the given NullableBool and assigns it to the IsPartialOrderAllowed field. +func (o *QuoteDetailsResponse) SetIsPartialOrderAllowed(v bool) { + o.IsPartialOrderAllowed.Set(&v) +} +// SetIsPartialOrderAllowedNil sets the value for IsPartialOrderAllowed to be an explicit nil +func (o *QuoteDetailsResponse) SetIsPartialOrderAllowedNil() { + o.IsPartialOrderAllowed.Set(nil) +} + +// UnsetIsPartialOrderAllowed ensures that no value is present for IsPartialOrderAllowed, not even an explicit nil +func (o *QuoteDetailsResponse) UnsetIsPartialOrderAllowed() { + o.IsPartialOrderAllowed.Unset() +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *QuoteDetailsResponse) GetStatus() string { if o == nil || IsNil(o.Status) { @@ -1482,6 +1525,9 @@ func (o QuoteDetailsResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.VendorQuoteNumber) { toSerialize["vendorQuoteNumber"] = o.VendorQuoteNumber } + if o.IsPartialOrderAllowed.IsSet() { + toSerialize["isPartialOrderAllowed"] = o.IsPartialOrderAllowed.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } diff --git a/model_quote_details_response_products_inner.go b/model_quote_details_response_products_inner.go index 5b1c321..f633a06 100644 --- a/model_quote_details_response_products_inner.go +++ b/model_quote_details_response_products_inner.go @@ -25,6 +25,8 @@ type QuoteDetailsResponseProductsInner struct { LineNumber *string `json:"lineNumber,omitempty"` // Quantity of product line item quoted. Quantity *int32 `json:"quantity,omitempty"` + RemainingQuoteQty NullableInt32 `json:"remainingQuoteQty,omitempty"` + MinimumOrderAllowedQty NullableInt32 `json:"minimumOrderAllowedQty,omitempty"` // Product line item comments. Notes *string `json:"notes,omitempty"` // EANUPC @@ -175,6 +177,90 @@ func (o *QuoteDetailsResponseProductsInner) SetQuantity(v int32) { o.Quantity = &v } +// GetRemainingQuoteQty returns the RemainingQuoteQty field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QuoteDetailsResponseProductsInner) GetRemainingQuoteQty() int32 { + if o == nil || IsNil(o.RemainingQuoteQty.Get()) { + var ret int32 + return ret + } + return *o.RemainingQuoteQty.Get() +} + +// GetRemainingQuoteQtyOk returns a tuple with the RemainingQuoteQty 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 *QuoteDetailsResponseProductsInner) GetRemainingQuoteQtyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.RemainingQuoteQty.Get(), o.RemainingQuoteQty.IsSet() +} + +// HasRemainingQuoteQty returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInner) HasRemainingQuoteQty() bool { + if o != nil && o.RemainingQuoteQty.IsSet() { + return true + } + + return false +} + +// SetRemainingQuoteQty gets a reference to the given NullableInt32 and assigns it to the RemainingQuoteQty field. +func (o *QuoteDetailsResponseProductsInner) SetRemainingQuoteQty(v int32) { + o.RemainingQuoteQty.Set(&v) +} +// SetRemainingQuoteQtyNil sets the value for RemainingQuoteQty to be an explicit nil +func (o *QuoteDetailsResponseProductsInner) SetRemainingQuoteQtyNil() { + o.RemainingQuoteQty.Set(nil) +} + +// UnsetRemainingQuoteQty ensures that no value is present for RemainingQuoteQty, not even an explicit nil +func (o *QuoteDetailsResponseProductsInner) UnsetRemainingQuoteQty() { + o.RemainingQuoteQty.Unset() +} + +// GetMinimumOrderAllowedQty returns the MinimumOrderAllowedQty field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QuoteDetailsResponseProductsInner) GetMinimumOrderAllowedQty() int32 { + if o == nil || IsNil(o.MinimumOrderAllowedQty.Get()) { + var ret int32 + return ret + } + return *o.MinimumOrderAllowedQty.Get() +} + +// GetMinimumOrderAllowedQtyOk returns a tuple with the MinimumOrderAllowedQty 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 *QuoteDetailsResponseProductsInner) GetMinimumOrderAllowedQtyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MinimumOrderAllowedQty.Get(), o.MinimumOrderAllowedQty.IsSet() +} + +// HasMinimumOrderAllowedQty returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInner) HasMinimumOrderAllowedQty() bool { + if o != nil && o.MinimumOrderAllowedQty.IsSet() { + return true + } + + return false +} + +// SetMinimumOrderAllowedQty gets a reference to the given NullableInt32 and assigns it to the MinimumOrderAllowedQty field. +func (o *QuoteDetailsResponseProductsInner) SetMinimumOrderAllowedQty(v int32) { + o.MinimumOrderAllowedQty.Set(&v) +} +// SetMinimumOrderAllowedQtyNil sets the value for MinimumOrderAllowedQty to be an explicit nil +func (o *QuoteDetailsResponseProductsInner) SetMinimumOrderAllowedQtyNil() { + o.MinimumOrderAllowedQty.Set(nil) +} + +// UnsetMinimumOrderAllowedQty ensures that no value is present for MinimumOrderAllowedQty, not even an explicit nil +func (o *QuoteDetailsResponseProductsInner) UnsetMinimumOrderAllowedQty() { + o.MinimumOrderAllowedQty.Unset() +} + // GetNotes returns the Notes field value if set, zero value otherwise. func (o *QuoteDetailsResponseProductsInner) GetNotes() string { if o == nil || IsNil(o.Notes) { @@ -898,6 +984,12 @@ func (o QuoteDetailsResponseProductsInner) ToMap() (map[string]interface{}, erro if !IsNil(o.Quantity) { toSerialize["quantity"] = o.Quantity } + if o.RemainingQuoteQty.IsSet() { + toSerialize["remainingQuoteQty"] = o.RemainingQuoteQty.Get() + } + if o.MinimumOrderAllowedQty.IsSet() { + toSerialize["minimumOrderAllowedQty"] = o.MinimumOrderAllowedQty.Get() + } if !IsNil(o.Notes) { toSerialize["notes"] = o.Notes } diff --git a/model_quote_details_response_products_inner_price.go b/model_quote_details_response_products_inner_price.go index 7376068..200410d 100644 --- a/model_quote_details_response_products_inner_price.go +++ b/model_quote_details_response_products_inner_price.go @@ -20,15 +20,17 @@ var _ MappedNullable = &QuoteDetailsResponseProductsInnerPrice{} // QuoteDetailsResponseProductsInnerPrice struct for QuoteDetailsResponseProductsInnerPrice type QuoteDetailsResponseProductsInnerPrice struct { // Ingram Micro quoted price specific to the reseller and quote. - QuotePrice *float32 `json:"quotePrice,omitempty"` + QuotePrice NullableFloat32 `json:"quotePrice,omitempty"` // Manufacturer Suggested Retail Price - Msrp *float32 `json:"msrp,omitempty"` + Msrp NullableFloat32 `json:"msrp,omitempty"` // Extended MSRP - Manufacturer Suggested Retail Price X Quantity - ExtendedMsrp *float32 `json:"extendedMsrp,omitempty"` + ExtendedMsrp NullableFloat32 `json:"extendedMsrp,omitempty"` // Extended reseller quoted price (cost to reseller) X Quantity - ExtendedQuotePrice *float32 `json:"extendedQuotePrice,omitempty"` + ExtendedQuotePrice NullableFloat32 `json:"extendedQuotePrice,omitempty"` + RemainingQuantityExtendedMsrp NullableFloat32 `json:"remainingQuantityExtendedMsrp,omitempty"` + RemainingQuantityExtendedQuotePrice NullableFloat32 `json:"remainingQuantityExtendedQuotePrice,omitempty"` // Discount off list percentage extended - DiscountOffList *string `json:"discountOffList,omitempty"` + DiscountOffList NullableString `json:"discountOffList,omitempty"` Type *string `json:"type,omitempty"` RecurringPriceModel *string `json:"recurringPriceModel,omitempty"` UnitOfMeasure *string `json:"unitOfMeasure,omitempty"` @@ -55,164 +57,298 @@ func NewQuoteDetailsResponseProductsInnerPriceWithDefaults() *QuoteDetailsRespon return &this } -// GetQuotePrice returns the QuotePrice field value if set, zero value otherwise. +// GetQuotePrice returns the QuotePrice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *QuoteDetailsResponseProductsInnerPrice) GetQuotePrice() float32 { - if o == nil || IsNil(o.QuotePrice) { + if o == nil || IsNil(o.QuotePrice.Get()) { var ret float32 return ret } - return *o.QuotePrice + return *o.QuotePrice.Get() } // GetQuotePriceOk returns a tuple with the QuotePrice 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 *QuoteDetailsResponseProductsInnerPrice) GetQuotePriceOk() (*float32, bool) { - if o == nil || IsNil(o.QuotePrice) { + if o == nil { return nil, false } - return o.QuotePrice, true + return o.QuotePrice.Get(), o.QuotePrice.IsSet() } // HasQuotePrice returns a boolean if a field has been set. func (o *QuoteDetailsResponseProductsInnerPrice) HasQuotePrice() bool { - if o != nil && !IsNil(o.QuotePrice) { + if o != nil && o.QuotePrice.IsSet() { return true } return false } -// SetQuotePrice gets a reference to the given float32 and assigns it to the QuotePrice field. +// SetQuotePrice gets a reference to the given NullableFloat32 and assigns it to the QuotePrice field. func (o *QuoteDetailsResponseProductsInnerPrice) SetQuotePrice(v float32) { - o.QuotePrice = &v + o.QuotePrice.Set(&v) +} +// SetQuotePriceNil sets the value for QuotePrice to be an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) SetQuotePriceNil() { + o.QuotePrice.Set(nil) +} + +// UnsetQuotePrice ensures that no value is present for QuotePrice, not even an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) UnsetQuotePrice() { + o.QuotePrice.Unset() } -// GetMsrp returns the Msrp field value if set, zero value otherwise. +// GetMsrp returns the Msrp field value if set, zero value otherwise (both if not set or set to explicit null). func (o *QuoteDetailsResponseProductsInnerPrice) GetMsrp() float32 { - if o == nil || IsNil(o.Msrp) { + if o == nil || IsNil(o.Msrp.Get()) { var ret float32 return ret } - return *o.Msrp + return *o.Msrp.Get() } // GetMsrpOk returns a tuple with the Msrp 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 *QuoteDetailsResponseProductsInnerPrice) GetMsrpOk() (*float32, bool) { - if o == nil || IsNil(o.Msrp) { + if o == nil { return nil, false } - return o.Msrp, true + return o.Msrp.Get(), o.Msrp.IsSet() } // HasMsrp returns a boolean if a field has been set. func (o *QuoteDetailsResponseProductsInnerPrice) HasMsrp() bool { - if o != nil && !IsNil(o.Msrp) { + if o != nil && o.Msrp.IsSet() { return true } return false } -// SetMsrp gets a reference to the given float32 and assigns it to the Msrp field. +// SetMsrp gets a reference to the given NullableFloat32 and assigns it to the Msrp field. func (o *QuoteDetailsResponseProductsInnerPrice) SetMsrp(v float32) { - o.Msrp = &v + o.Msrp.Set(&v) +} +// SetMsrpNil sets the value for Msrp to be an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) SetMsrpNil() { + o.Msrp.Set(nil) +} + +// UnsetMsrp ensures that no value is present for Msrp, not even an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) UnsetMsrp() { + o.Msrp.Unset() } -// GetExtendedMsrp returns the ExtendedMsrp field value if set, zero value otherwise. +// GetExtendedMsrp returns the ExtendedMsrp field value if set, zero value otherwise (both if not set or set to explicit null). func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedMsrp() float32 { - if o == nil || IsNil(o.ExtendedMsrp) { + if o == nil || IsNil(o.ExtendedMsrp.Get()) { var ret float32 return ret } - return *o.ExtendedMsrp + return *o.ExtendedMsrp.Get() } // GetExtendedMsrpOk returns a tuple with the ExtendedMsrp 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 *QuoteDetailsResponseProductsInnerPrice) GetExtendedMsrpOk() (*float32, bool) { - if o == nil || IsNil(o.ExtendedMsrp) { + if o == nil { return nil, false } - return o.ExtendedMsrp, true + return o.ExtendedMsrp.Get(), o.ExtendedMsrp.IsSet() } // HasExtendedMsrp returns a boolean if a field has been set. func (o *QuoteDetailsResponseProductsInnerPrice) HasExtendedMsrp() bool { - if o != nil && !IsNil(o.ExtendedMsrp) { + if o != nil && o.ExtendedMsrp.IsSet() { return true } return false } -// SetExtendedMsrp gets a reference to the given float32 and assigns it to the ExtendedMsrp field. +// SetExtendedMsrp gets a reference to the given NullableFloat32 and assigns it to the ExtendedMsrp field. func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedMsrp(v float32) { - o.ExtendedMsrp = &v + o.ExtendedMsrp.Set(&v) +} +// SetExtendedMsrpNil sets the value for ExtendedMsrp to be an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedMsrpNil() { + o.ExtendedMsrp.Set(nil) +} + +// UnsetExtendedMsrp ensures that no value is present for ExtendedMsrp, not even an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) UnsetExtendedMsrp() { + o.ExtendedMsrp.Unset() } -// GetExtendedQuotePrice returns the ExtendedQuotePrice field value if set, zero value otherwise. +// GetExtendedQuotePrice returns the ExtendedQuotePrice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *QuoteDetailsResponseProductsInnerPrice) GetExtendedQuotePrice() float32 { - if o == nil || IsNil(o.ExtendedQuotePrice) { + if o == nil || IsNil(o.ExtendedQuotePrice.Get()) { var ret float32 return ret } - return *o.ExtendedQuotePrice + return *o.ExtendedQuotePrice.Get() } // GetExtendedQuotePriceOk returns a tuple with the ExtendedQuotePrice 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 *QuoteDetailsResponseProductsInnerPrice) GetExtendedQuotePriceOk() (*float32, bool) { - if o == nil || IsNil(o.ExtendedQuotePrice) { + if o == nil { return nil, false } - return o.ExtendedQuotePrice, true + return o.ExtendedQuotePrice.Get(), o.ExtendedQuotePrice.IsSet() } // HasExtendedQuotePrice returns a boolean if a field has been set. func (o *QuoteDetailsResponseProductsInnerPrice) HasExtendedQuotePrice() bool { - if o != nil && !IsNil(o.ExtendedQuotePrice) { + if o != nil && o.ExtendedQuotePrice.IsSet() { return true } return false } -// SetExtendedQuotePrice gets a reference to the given float32 and assigns it to the ExtendedQuotePrice field. +// SetExtendedQuotePrice gets a reference to the given NullableFloat32 and assigns it to the ExtendedQuotePrice field. func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedQuotePrice(v float32) { - o.ExtendedQuotePrice = &v + o.ExtendedQuotePrice.Set(&v) +} +// SetExtendedQuotePriceNil sets the value for ExtendedQuotePrice to be an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) SetExtendedQuotePriceNil() { + o.ExtendedQuotePrice.Set(nil) } -// GetDiscountOffList returns the DiscountOffList field value if set, zero value otherwise. +// UnsetExtendedQuotePrice ensures that no value is present for ExtendedQuotePrice, not even an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) UnsetExtendedQuotePrice() { + o.ExtendedQuotePrice.Unset() +} + +// GetRemainingQuantityExtendedMsrp returns the RemainingQuantityExtendedMsrp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedMsrp() float32 { + if o == nil || IsNil(o.RemainingQuantityExtendedMsrp.Get()) { + var ret float32 + return ret + } + return *o.RemainingQuantityExtendedMsrp.Get() +} + +// GetRemainingQuantityExtendedMsrpOk returns a tuple with the RemainingQuantityExtendedMsrp 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 *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedMsrpOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.RemainingQuantityExtendedMsrp.Get(), o.RemainingQuantityExtendedMsrp.IsSet() +} + +// HasRemainingQuantityExtendedMsrp returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) HasRemainingQuantityExtendedMsrp() bool { + if o != nil && o.RemainingQuantityExtendedMsrp.IsSet() { + return true + } + + return false +} + +// SetRemainingQuantityExtendedMsrp gets a reference to the given NullableFloat32 and assigns it to the RemainingQuantityExtendedMsrp field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedMsrp(v float32) { + o.RemainingQuantityExtendedMsrp.Set(&v) +} +// SetRemainingQuantityExtendedMsrpNil sets the value for RemainingQuantityExtendedMsrp to be an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedMsrpNil() { + o.RemainingQuantityExtendedMsrp.Set(nil) +} + +// UnsetRemainingQuantityExtendedMsrp ensures that no value is present for RemainingQuantityExtendedMsrp, not even an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) UnsetRemainingQuantityExtendedMsrp() { + o.RemainingQuantityExtendedMsrp.Unset() +} + +// GetRemainingQuantityExtendedQuotePrice returns the RemainingQuantityExtendedQuotePrice field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedQuotePrice() float32 { + if o == nil || IsNil(o.RemainingQuantityExtendedQuotePrice.Get()) { + var ret float32 + return ret + } + return *o.RemainingQuantityExtendedQuotePrice.Get() +} + +// GetRemainingQuantityExtendedQuotePriceOk returns a tuple with the RemainingQuantityExtendedQuotePrice 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 *QuoteDetailsResponseProductsInnerPrice) GetRemainingQuantityExtendedQuotePriceOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.RemainingQuantityExtendedQuotePrice.Get(), o.RemainingQuantityExtendedQuotePrice.IsSet() +} + +// HasRemainingQuantityExtendedQuotePrice returns a boolean if a field has been set. +func (o *QuoteDetailsResponseProductsInnerPrice) HasRemainingQuantityExtendedQuotePrice() bool { + if o != nil && o.RemainingQuantityExtendedQuotePrice.IsSet() { + return true + } + + return false +} + +// SetRemainingQuantityExtendedQuotePrice gets a reference to the given NullableFloat32 and assigns it to the RemainingQuantityExtendedQuotePrice field. +func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedQuotePrice(v float32) { + o.RemainingQuantityExtendedQuotePrice.Set(&v) +} +// SetRemainingQuantityExtendedQuotePriceNil sets the value for RemainingQuantityExtendedQuotePrice to be an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) SetRemainingQuantityExtendedQuotePriceNil() { + o.RemainingQuantityExtendedQuotePrice.Set(nil) +} + +// UnsetRemainingQuantityExtendedQuotePrice ensures that no value is present for RemainingQuantityExtendedQuotePrice, not even an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) UnsetRemainingQuantityExtendedQuotePrice() { + o.RemainingQuantityExtendedQuotePrice.Unset() +} + +// GetDiscountOffList returns the DiscountOffList field value if set, zero value otherwise (both if not set or set to explicit null). func (o *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffList() string { - if o == nil || IsNil(o.DiscountOffList) { + if o == nil || IsNil(o.DiscountOffList.Get()) { var ret string return ret } - return *o.DiscountOffList + return *o.DiscountOffList.Get() } // GetDiscountOffListOk returns a tuple with the DiscountOffList 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 *QuoteDetailsResponseProductsInnerPrice) GetDiscountOffListOk() (*string, bool) { - if o == nil || IsNil(o.DiscountOffList) { + if o == nil { return nil, false } - return o.DiscountOffList, true + return o.DiscountOffList.Get(), o.DiscountOffList.IsSet() } // HasDiscountOffList returns a boolean if a field has been set. func (o *QuoteDetailsResponseProductsInnerPrice) HasDiscountOffList() bool { - if o != nil && !IsNil(o.DiscountOffList) { + if o != nil && o.DiscountOffList.IsSet() { return true } return false } -// SetDiscountOffList gets a reference to the given string and assigns it to the DiscountOffList field. +// SetDiscountOffList gets a reference to the given NullableString and assigns it to the DiscountOffList field. func (o *QuoteDetailsResponseProductsInnerPrice) SetDiscountOffList(v string) { - o.DiscountOffList = &v + o.DiscountOffList.Set(&v) +} +// SetDiscountOffListNil sets the value for DiscountOffList to be an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) SetDiscountOffListNil() { + o.DiscountOffList.Set(nil) +} + +// UnsetDiscountOffList ensures that no value is present for DiscountOffList, not even an explicit nil +func (o *QuoteDetailsResponseProductsInnerPrice) UnsetDiscountOffList() { + o.DiscountOffList.Unset() } // GetType returns the Type field value if set, zero value otherwise. @@ -469,20 +605,26 @@ func (o QuoteDetailsResponseProductsInnerPrice) MarshalJSON() ([]byte, error) { func (o QuoteDetailsResponseProductsInnerPrice) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.QuotePrice) { - toSerialize["quotePrice"] = o.QuotePrice + if o.QuotePrice.IsSet() { + toSerialize["quotePrice"] = o.QuotePrice.Get() + } + if o.Msrp.IsSet() { + toSerialize["msrp"] = o.Msrp.Get() + } + if o.ExtendedMsrp.IsSet() { + toSerialize["extendedMsrp"] = o.ExtendedMsrp.Get() } - if !IsNil(o.Msrp) { - toSerialize["msrp"] = o.Msrp + if o.ExtendedQuotePrice.IsSet() { + toSerialize["extendedQuotePrice"] = o.ExtendedQuotePrice.Get() } - if !IsNil(o.ExtendedMsrp) { - toSerialize["extendedMsrp"] = o.ExtendedMsrp + if o.RemainingQuantityExtendedMsrp.IsSet() { + toSerialize["remainingQuantityExtendedMsrp"] = o.RemainingQuantityExtendedMsrp.Get() } - if !IsNil(o.ExtendedQuotePrice) { - toSerialize["extendedQuotePrice"] = o.ExtendedQuotePrice + if o.RemainingQuantityExtendedQuotePrice.IsSet() { + toSerialize["remainingQuantityExtendedQuotePrice"] = o.RemainingQuantityExtendedQuotePrice.Get() } - if !IsNil(o.DiscountOffList) { - toSerialize["discountOffList"] = o.DiscountOffList + if o.DiscountOffList.IsSet() { + toSerialize["discountOffList"] = o.DiscountOffList.Get() } if !IsNil(o.Type) { toSerialize["type"] = o.Type