From e5f5b84996c0d2af153f6c4732d1ec32c45e6b57 Mon Sep 17 00:00:00 2001 From: ingrammicro-xvantage Date: Fri, 3 Jan 2025 17:12:21 +0000 Subject: [PATCH] Update from https://github.com/ingrammicro-xvantage/xi-sdk-openapispec/commit/80993156b14791796b6e10412f0b7f25b0f1f165 --- .../resellers/models/price_and_availability_request.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xi/sdk/resellers/models/price_and_availability_request.py b/xi/sdk/resellers/models/price_and_availability_request.py index ed0312d..55ea687 100644 --- a/xi/sdk/resellers/models/price_and_availability_request.py +++ b/xi/sdk/resellers/models/price_and_availability_request.py @@ -97,6 +97,16 @@ def to_dict(self) -> Dict[str, Any]: if _item_additional_attributes: _items.append(_item_additional_attributes.to_dict()) _dict['additionalAttributes'] = _items + # set to None if show_available_discounts (nullable) is None + # and model_fields_set contains the field + if self.show_available_discounts is None and "show_available_discounts" in self.model_fields_set: + _dict['showAvailableDiscounts'] = None + + # set to None if show_reserve_inventory_details (nullable) is None + # and model_fields_set contains the field + if self.show_reserve_inventory_details is None and "show_reserve_inventory_details" in self.model_fields_set: + _dict['showReserveInventoryDetails'] = None + # set to None if special_bid_number (nullable) is None # and model_fields_set contains the field if self.special_bid_number is None and "special_bid_number" in self.model_fields_set: