diff --git a/digikey/v3/ordersupport/__init__.py b/digikey/v3/ordersupport/__init__.py index bc0c661..96808d3 100644 --- a/digikey/v3/ordersupport/__init__.py +++ b/digikey/v3/ordersupport/__init__.py @@ -25,6 +25,8 @@ from digikey.v3.ordersupport.models.address import Address from digikey.v3.ordersupport.models.api_error_response import ApiErrorResponse from digikey.v3.ordersupport.models.api_validation_error import ApiValidationError +from digikey.v3.ordersupport.models.back_order_details import BackOrderDetails +from digikey.v3.ordersupport.models.default_shipping import DefaultShipping from digikey.v3.ordersupport.models.line_item import LineItem from digikey.v3.ordersupport.models.order_status_response import OrderStatusResponse from digikey.v3.ordersupport.models.sales_order_history_item import SalesOrderHistoryItem diff --git a/digikey/v3/ordersupport/api/order_details_api.py b/digikey/v3/ordersupport/api/order_details_api.py index ed40082..d8225b2 100644 --- a/digikey/v3/ordersupport/api/order_details_api.py +++ b/digikey/v3/ordersupport/api/order_details_api.py @@ -140,7 +140,7 @@ def order_history_with_http_info(self, authorization, x_digikey_client_id, **kwa ['application/json']) # noqa: E501 # Authentication setting - auth_settings = [] # noqa: E501 + auth_settings = ['apiKeySecurity', 'oauth2AccessCodeSecurity'] # noqa: E501 return self.api_client.call_api( '/History', 'GET', @@ -253,7 +253,7 @@ def order_status_with_http_info(self, sales_order_id, authorization, x_digikey_c ['application/json']) # noqa: E501 # Authentication setting - auth_settings = [] # noqa: E501 + auth_settings = ['apiKeySecurity', 'oauth2AccessCodeSecurity'] # noqa: E501 return self.api_client.call_api( '/Status/{salesOrderId}', 'GET', diff --git a/digikey/v3/ordersupport/models/__init__.py b/digikey/v3/ordersupport/models/__init__.py index 6679280..6248b1e 100644 --- a/digikey/v3/ordersupport/models/__init__.py +++ b/digikey/v3/ordersupport/models/__init__.py @@ -18,6 +18,8 @@ from digikey.v3.ordersupport.models.address import Address from digikey.v3.ordersupport.models.api_error_response import ApiErrorResponse from digikey.v3.ordersupport.models.api_validation_error import ApiValidationError +from digikey.v3.ordersupport.models.back_order_details import BackOrderDetails +from digikey.v3.ordersupport.models.default_shipping import DefaultShipping from digikey.v3.ordersupport.models.line_item import LineItem from digikey.v3.ordersupport.models.order_status_response import OrderStatusResponse from digikey.v3.ordersupport.models.sales_order_history_item import SalesOrderHistoryItem diff --git a/digikey/v3/ordersupport/models/api_error_response.py b/digikey/v3/ordersupport/models/api_error_response.py index effe2b1..9cbcfab 100644 --- a/digikey/v3/ordersupport/models/api_error_response.py +++ b/digikey/v3/ordersupport/models/api_error_response.py @@ -76,7 +76,6 @@ def __init__(self, error_response_version=None, status_code=None, error_message= def error_response_version(self): """Gets the error_response_version of this ApiErrorResponse. # noqa: E501 - The version of the error handler. # noqa: E501 :return: The error_response_version of this ApiErrorResponse. # noqa: E501 :rtype: str @@ -87,7 +86,6 @@ def error_response_version(self): def error_response_version(self, error_response_version): """Sets the error_response_version of this ApiErrorResponse. - The version of the error handler. # noqa: E501 :param error_response_version: The error_response_version of this ApiErrorResponse. # noqa: E501 :type: str @@ -99,7 +97,6 @@ def error_response_version(self, error_response_version): def status_code(self): """Gets the status_code of this ApiErrorResponse. # noqa: E501 - The HttpStatusCode of the error. # noqa: E501 :return: The status_code of this ApiErrorResponse. # noqa: E501 :rtype: int @@ -110,7 +107,6 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this ApiErrorResponse. - The HttpStatusCode of the error. # noqa: E501 :param status_code: The status_code of this ApiErrorResponse. # noqa: E501 :type: int @@ -122,7 +118,6 @@ def status_code(self, status_code): def error_message(self): """Gets the error_message of this ApiErrorResponse. # noqa: E501 - The message provided by the error handler. # noqa: E501 :return: The error_message of this ApiErrorResponse. # noqa: E501 :rtype: str @@ -133,7 +128,6 @@ def error_message(self): def error_message(self, error_message): """Sets the error_message of this ApiErrorResponse. - The message provided by the error handler. # noqa: E501 :param error_message: The error_message of this ApiErrorResponse. # noqa: E501 :type: str @@ -145,7 +139,6 @@ def error_message(self, error_message): def error_details(self): """Gets the error_details of this ApiErrorResponse. # noqa: E501 - The details of the error. # noqa: E501 :return: The error_details of this ApiErrorResponse. # noqa: E501 :rtype: str @@ -156,7 +149,6 @@ def error_details(self): def error_details(self, error_details): """Sets the error_details of this ApiErrorResponse. - The details of the error. # noqa: E501 :param error_details: The error_details of this ApiErrorResponse. # noqa: E501 :type: str @@ -168,7 +160,6 @@ def error_details(self, error_details): def request_id(self): """Gets the request_id of this ApiErrorResponse. # noqa: E501 - The Id of the request that triggered the error. If contacting API Support, please include the RequestId. # noqa: E501 :return: The request_id of this ApiErrorResponse. # noqa: E501 :rtype: str @@ -179,7 +170,6 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ApiErrorResponse. - The Id of the request that triggered the error. If contacting API Support, please include the RequestId. # noqa: E501 :param request_id: The request_id of this ApiErrorResponse. # noqa: E501 :type: str @@ -191,7 +181,6 @@ def request_id(self, request_id): def validation_errors(self): """Gets the validation_errors of this ApiErrorResponse. # noqa: E501 - The list of validation errors (if applicable). # noqa: E501 :return: The validation_errors of this ApiErrorResponse. # noqa: E501 :rtype: list[ApiValidationError] @@ -202,7 +191,6 @@ def validation_errors(self): def validation_errors(self, validation_errors): """Sets the validation_errors of this ApiErrorResponse. - The list of validation errors (if applicable). # noqa: E501 :param validation_errors: The validation_errors of this ApiErrorResponse. # noqa: E501 :type: list[ApiValidationError] diff --git a/digikey/v3/ordersupport/models/api_validation_error.py b/digikey/v3/ordersupport/models/api_validation_error.py index 7ab9a9b..19f26df 100644 --- a/digikey/v3/ordersupport/models/api_validation_error.py +++ b/digikey/v3/ordersupport/models/api_validation_error.py @@ -56,7 +56,6 @@ def __init__(self, field=None, message=None): # noqa: E501 def field(self): """Gets the field of this ApiValidationError. # noqa: E501 - The field that generated the error. # noqa: E501 :return: The field of this ApiValidationError. # noqa: E501 :rtype: str @@ -67,7 +66,6 @@ def field(self): def field(self, field): """Sets the field of this ApiValidationError. - The field that generated the error. # noqa: E501 :param field: The field of this ApiValidationError. # noqa: E501 :type: str @@ -79,7 +77,6 @@ def field(self, field): def message(self): """Gets the message of this ApiValidationError. # noqa: E501 - The error message that was generated. This often explains how to fix your API input to be valid. # noqa: E501 :return: The message of this ApiValidationError. # noqa: E501 :rtype: str @@ -90,7 +87,6 @@ def message(self): def message(self, message): """Sets the message of this ApiValidationError. - The error message that was generated. This often explains how to fix your API input to be valid. # noqa: E501 :param message: The message of this ApiValidationError. # noqa: E501 :type: str diff --git a/digikey/v3/ordersupport/models/back_order_details.py b/digikey/v3/ordersupport/models/back_order_details.py new file mode 100644 index 0000000..daa24e5 --- /dev/null +++ b/digikey/v3/ordersupport/models/back_order_details.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Order Details + + Retrieve information about current and past orders. # noqa: E501 + + OpenAPI spec version: v3 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BackOrderDetails(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'quantity': 'int', + 'back_order_estimates': 'list[Schedule]' + } + + attribute_map = { + 'quantity': 'Quantity', + 'back_order_estimates': 'BackOrderEstimates' + } + + def __init__(self, quantity=None, back_order_estimates=None): # noqa: E501 + """BackOrderDetails - a model defined in Swagger""" # noqa: E501 + + self._quantity = None + self._back_order_estimates = None + self.discriminator = None + + if quantity is not None: + self.quantity = quantity + if back_order_estimates is not None: + self.back_order_estimates = back_order_estimates + + @property + def quantity(self): + """Gets the quantity of this BackOrderDetails. # noqa: E501 + + The total quantity that is backorder. This quantity is the same as LinteItem.QuantityBackorder # noqa: E501 + + :return: The quantity of this BackOrderDetails. # noqa: E501 + :rtype: int + """ + return self._quantity + + @quantity.setter + def quantity(self, quantity): + """Sets the quantity of this BackOrderDetails. + + The total quantity that is backorder. This quantity is the same as LinteItem.QuantityBackorder # noqa: E501 + + :param quantity: The quantity of this BackOrderDetails. # noqa: E501 + :type: int + """ + + self._quantity = quantity + + @property + def back_order_estimates(self): + """Gets the back_order_estimates of this BackOrderDetails. # noqa: E501 + + The Manufacturer's estimated date and quantity that Digi-Key will receive the product. # noqa: E501 + + :return: The back_order_estimates of this BackOrderDetails. # noqa: E501 + :rtype: list[Schedule] + """ + return self._back_order_estimates + + @back_order_estimates.setter + def back_order_estimates(self, back_order_estimates): + """Sets the back_order_estimates of this BackOrderDetails. + + The Manufacturer's estimated date and quantity that Digi-Key will receive the product. # noqa: E501 + + :param back_order_estimates: The back_order_estimates of this BackOrderDetails. # noqa: E501 + :type: list[Schedule] + """ + + self._back_order_estimates = back_order_estimates + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BackOrderDetails, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BackOrderDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/digikey/v3/ordersupport/models/default_shipping.py b/digikey/v3/ordersupport/models/default_shipping.py new file mode 100644 index 0000000..8d71e85 --- /dev/null +++ b/digikey/v3/ordersupport/models/default_shipping.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Order Details + + Retrieve information about current and past orders. # noqa: E501 + + OpenAPI spec version: v3 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DefaultShipping(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'digi_key_release_date': 'str', + 'estimated_in_house_date': 'str' + } + + attribute_map = { + 'digi_key_release_date': 'DigiKeyReleaseDate', + 'estimated_in_house_date': 'EstimatedInHouseDate' + } + + def __init__(self, digi_key_release_date=None, estimated_in_house_date=None): # noqa: E501 + """DefaultShipping - a model defined in Swagger""" # noqa: E501 + + self._digi_key_release_date = None + self._estimated_in_house_date = None + self.discriminator = None + + if digi_key_release_date is not None: + self.digi_key_release_date = digi_key_release_date + if estimated_in_house_date is not None: + self.estimated_in_house_date = estimated_in_house_date + + @property + def digi_key_release_date(self): + """Gets the digi_key_release_date of this DefaultShipping. # noqa: E501 + + Default shipping date # noqa: E501 + + :return: The digi_key_release_date of this DefaultShipping. # noqa: E501 + :rtype: str + """ + return self._digi_key_release_date + + @digi_key_release_date.setter + def digi_key_release_date(self, digi_key_release_date): + """Sets the digi_key_release_date of this DefaultShipping. + + Default shipping date # noqa: E501 + + :param digi_key_release_date: The digi_key_release_date of this DefaultShipping. # noqa: E501 + :type: str + """ + + self._digi_key_release_date = digi_key_release_date + + @property + def estimated_in_house_date(self): + """Gets the estimated_in_house_date of this DefaultShipping. # noqa: E501 + + The estimated date the product will # noqa: E501 + + :return: The estimated_in_house_date of this DefaultShipping. # noqa: E501 + :rtype: str + """ + return self._estimated_in_house_date + + @estimated_in_house_date.setter + def estimated_in_house_date(self, estimated_in_house_date): + """Sets the estimated_in_house_date of this DefaultShipping. + + The estimated date the product will # noqa: E501 + + :param estimated_in_house_date: The estimated_in_house_date of this DefaultShipping. # noqa: E501 + :type: str + """ + + self._estimated_in_house_date = estimated_in_house_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DefaultShipping, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DefaultShipping): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/digikey/v3/ordersupport/models/line_item.py b/digikey/v3/ordersupport/models/line_item.py index acae410..bd84931 100644 --- a/digikey/v3/ordersupport/models/line_item.py +++ b/digikey/v3/ordersupport/models/line_item.py @@ -31,6 +31,7 @@ class LineItem(object): and the value is json key in definition. """ swagger_types = { + 'po_line_item_number': 'str', 'digi_key_part_number': 'str', 'manufacturer_part_number': 'str', 'product_description': 'str', @@ -41,12 +42,15 @@ class LineItem(object): 'unit_price': 'float', 'total_price': 'float', 'quantity_backorder': 'int', + 'back_order_details': 'BackOrderDetails', 'quantity_shipped': 'int', 'invoice_id': 'int', + 'default_shipping': 'DefaultShipping', 'schedule': 'list[Schedule]' } attribute_map = { + 'po_line_item_number': 'PoLineItemNumber', 'digi_key_part_number': 'DigiKeyPartNumber', 'manufacturer_part_number': 'ManufacturerPartNumber', 'product_description': 'ProductDescription', @@ -57,14 +61,17 @@ class LineItem(object): 'unit_price': 'UnitPrice', 'total_price': 'TotalPrice', 'quantity_backorder': 'QuantityBackorder', + 'back_order_details': 'BackOrderDetails', 'quantity_shipped': 'QuantityShipped', 'invoice_id': 'InvoiceId', + 'default_shipping': 'DefaultShipping', 'schedule': 'Schedule' } - def __init__(self, digi_key_part_number=None, manufacturer_part_number=None, product_description=None, manufacturer=None, country_of_origin=None, quantity=None, customer_reference=None, unit_price=None, total_price=None, quantity_backorder=None, quantity_shipped=None, invoice_id=None, schedule=None): # noqa: E501 + def __init__(self, po_line_item_number=None, digi_key_part_number=None, manufacturer_part_number=None, product_description=None, manufacturer=None, country_of_origin=None, quantity=None, customer_reference=None, unit_price=None, total_price=None, quantity_backorder=None, back_order_details=None, quantity_shipped=None, invoice_id=None, default_shipping=None, schedule=None): # noqa: E501 """LineItem - a model defined in Swagger""" # noqa: E501 + self._po_line_item_number = None self._digi_key_part_number = None self._manufacturer_part_number = None self._product_description = None @@ -75,11 +82,15 @@ def __init__(self, digi_key_part_number=None, manufacturer_part_number=None, pro self._unit_price = None self._total_price = None self._quantity_backorder = None + self._back_order_details = None self._quantity_shipped = None self._invoice_id = None + self._default_shipping = None self._schedule = None self.discriminator = None + if po_line_item_number is not None: + self.po_line_item_number = po_line_item_number if digi_key_part_number is not None: self.digi_key_part_number = digi_key_part_number if manufacturer_part_number is not None: @@ -100,13 +111,40 @@ def __init__(self, digi_key_part_number=None, manufacturer_part_number=None, pro self.total_price = total_price if quantity_backorder is not None: self.quantity_backorder = quantity_backorder + if back_order_details is not None: + self.back_order_details = back_order_details if quantity_shipped is not None: self.quantity_shipped = quantity_shipped if invoice_id is not None: self.invoice_id = invoice_id + if default_shipping is not None: + self.default_shipping = default_shipping if schedule is not None: self.schedule = schedule + @property + def po_line_item_number(self): + """Gets the po_line_item_number of this LineItem. # noqa: E501 + + Line item number provided on purchase order # noqa: E501 + + :return: The po_line_item_number of this LineItem. # noqa: E501 + :rtype: str + """ + return self._po_line_item_number + + @po_line_item_number.setter + def po_line_item_number(self, po_line_item_number): + """Sets the po_line_item_number of this LineItem. + + Line item number provided on purchase order # noqa: E501 + + :param po_line_item_number: The po_line_item_number of this LineItem. # noqa: E501 + :type: str + """ + + self._po_line_item_number = po_line_item_number + @property def digi_key_part_number(self): """Gets the digi_key_part_number of this LineItem. # noqa: E501 @@ -337,6 +375,27 @@ def quantity_backorder(self, quantity_backorder): self._quantity_backorder = quantity_backorder + @property + def back_order_details(self): + """Gets the back_order_details of this LineItem. # noqa: E501 + + + :return: The back_order_details of this LineItem. # noqa: E501 + :rtype: BackOrderDetails + """ + return self._back_order_details + + @back_order_details.setter + def back_order_details(self, back_order_details): + """Sets the back_order_details of this LineItem. + + + :param back_order_details: The back_order_details of this LineItem. # noqa: E501 + :type: BackOrderDetails + """ + + self._back_order_details = back_order_details + @property def quantity_shipped(self): """Gets the quantity_shipped of this LineItem. # noqa: E501 @@ -383,6 +442,27 @@ def invoice_id(self, invoice_id): self._invoice_id = invoice_id + @property + def default_shipping(self): + """Gets the default_shipping of this LineItem. # noqa: E501 + + + :return: The default_shipping of this LineItem. # noqa: E501 + :rtype: DefaultShipping + """ + return self._default_shipping + + @default_shipping.setter + def default_shipping(self, default_shipping): + """Sets the default_shipping of this LineItem. + + + :param default_shipping: The default_shipping of this LineItem. # noqa: E501 + :type: DefaultShipping + """ + + self._default_shipping = default_shipping + @property def schedule(self): """Gets the schedule of this LineItem. # noqa: E501 diff --git a/digikey/v3/productinformation/models/associated_product.py b/digikey/v3/productinformation/models/associated_product.py index dc8043e..42bf947 100644 --- a/digikey/v3/productinformation/models/associated_product.py +++ b/digikey/v3/productinformation/models/associated_product.py @@ -44,6 +44,7 @@ class AssociatedProduct(object): 'manufacturer_public_quantity': 'int', 'quantity_on_order': 'int', 'dk_plus_restriction': 'bool', + 'marketplace': 'bool', 'supplier_direct_ship': 'bool' } @@ -61,10 +62,11 @@ class AssociatedProduct(object): 'manufacturer_public_quantity': 'ManufacturerPublicQuantity', 'quantity_on_order': 'QuantityOnOrder', 'dk_plus_restriction': 'DKPlusRestriction', + 'marketplace': 'Marketplace', 'supplier_direct_ship': 'SupplierDirectShip' } - def __init__(self, product_url=None, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, supplier_direct_ship=None): # noqa: E501 + def __init__(self, product_url=None, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, marketplace=None, supplier_direct_ship=None): # noqa: E501 """AssociatedProduct - a model defined in Swagger""" # noqa: E501 self._product_url = None @@ -80,6 +82,7 @@ def __init__(self, product_url=None, manufacturer_part_number=None, minimum_orde self._manufacturer_public_quantity = None self._quantity_on_order = None self._dk_plus_restriction = None + self._marketplace = None self._supplier_direct_ship = None self.discriminator = None @@ -109,6 +112,8 @@ def __init__(self, product_url=None, manufacturer_part_number=None, minimum_orde self.quantity_on_order = quantity_on_order if dk_plus_restriction is not None: self.dk_plus_restriction = dk_plus_restriction + if marketplace is not None: + self.marketplace = marketplace if supplier_direct_ship is not None: self.supplier_direct_ship = supplier_direct_ship @@ -388,7 +393,7 @@ def quantity_on_order(self, quantity_on_order): def dk_plus_restriction(self): """Gets the dk_plus_restriction of this AssociatedProduct. # noqa: E501 - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :return: The dk_plus_restriction of this AssociatedProduct. # noqa: E501 :rtype: bool @@ -399,7 +404,7 @@ def dk_plus_restriction(self): def dk_plus_restriction(self, dk_plus_restriction): """Sets the dk_plus_restriction of this AssociatedProduct. - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :param dk_plus_restriction: The dk_plus_restriction of this AssociatedProduct. # noqa: E501 :type: bool @@ -407,6 +412,29 @@ def dk_plus_restriction(self, dk_plus_restriction): self._dk_plus_restriction = dk_plus_restriction + @property + def marketplace(self): + """Gets the marketplace of this AssociatedProduct. # noqa: E501 + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :return: The marketplace of this AssociatedProduct. # noqa: E501 + :rtype: bool + """ + return self._marketplace + + @marketplace.setter + def marketplace(self, marketplace): + """Sets the marketplace of this AssociatedProduct. + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :param marketplace: The marketplace of this AssociatedProduct. # noqa: E501 + :type: bool + """ + + self._marketplace = marketplace + @property def supplier_direct_ship(self): """Gets the supplier_direct_ship of this AssociatedProduct. # noqa: E501 diff --git a/digikey/v3/productinformation/models/basic_product.py b/digikey/v3/productinformation/models/basic_product.py index f3ee36c..80b1e18 100644 --- a/digikey/v3/productinformation/models/basic_product.py +++ b/digikey/v3/productinformation/models/basic_product.py @@ -43,6 +43,7 @@ class BasicProduct(object): 'manufacturer_public_quantity': 'int', 'quantity_on_order': 'int', 'dk_plus_restriction': 'bool', + 'marketplace': 'bool', 'supplier_direct_ship': 'bool' } @@ -59,10 +60,11 @@ class BasicProduct(object): 'manufacturer_public_quantity': 'ManufacturerPublicQuantity', 'quantity_on_order': 'QuantityOnOrder', 'dk_plus_restriction': 'DKPlusRestriction', + 'marketplace': 'Marketplace', 'supplier_direct_ship': 'SupplierDirectShip' } - def __init__(self, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, supplier_direct_ship=None): # noqa: E501 + def __init__(self, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, marketplace=None, supplier_direct_ship=None): # noqa: E501 """BasicProduct - a model defined in Swagger""" # noqa: E501 self._manufacturer_part_number = None @@ -77,6 +79,7 @@ def __init__(self, manufacturer_part_number=None, minimum_order_quantity=None, n self._manufacturer_public_quantity = None self._quantity_on_order = None self._dk_plus_restriction = None + self._marketplace = None self._supplier_direct_ship = None self.discriminator = None @@ -104,6 +107,8 @@ def __init__(self, manufacturer_part_number=None, minimum_order_quantity=None, n self.quantity_on_order = quantity_on_order if dk_plus_restriction is not None: self.dk_plus_restriction = dk_plus_restriction + if marketplace is not None: + self.marketplace = marketplace if supplier_direct_ship is not None: self.supplier_direct_ship = supplier_direct_ship @@ -360,7 +365,7 @@ def quantity_on_order(self, quantity_on_order): def dk_plus_restriction(self): """Gets the dk_plus_restriction of this BasicProduct. # noqa: E501 - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :return: The dk_plus_restriction of this BasicProduct. # noqa: E501 :rtype: bool @@ -371,7 +376,7 @@ def dk_plus_restriction(self): def dk_plus_restriction(self, dk_plus_restriction): """Sets the dk_plus_restriction of this BasicProduct. - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :param dk_plus_restriction: The dk_plus_restriction of this BasicProduct. # noqa: E501 :type: bool @@ -379,6 +384,29 @@ def dk_plus_restriction(self, dk_plus_restriction): self._dk_plus_restriction = dk_plus_restriction + @property + def marketplace(self): + """Gets the marketplace of this BasicProduct. # noqa: E501 + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :return: The marketplace of this BasicProduct. # noqa: E501 + :rtype: bool + """ + return self._marketplace + + @marketplace.setter + def marketplace(self, marketplace): + """Sets the marketplace of this BasicProduct. + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :param marketplace: The marketplace of this BasicProduct. # noqa: E501 + :type: bool + """ + + self._marketplace = marketplace + @property def supplier_direct_ship(self): """Gets the supplier_direct_ship of this BasicProduct. # noqa: E501 diff --git a/digikey/v3/productinformation/models/product.py b/digikey/v3/productinformation/models/product.py index e2b41a5..0e5b4f2 100644 --- a/digikey/v3/productinformation/models/product.py +++ b/digikey/v3/productinformation/models/product.py @@ -51,6 +51,8 @@ class Product(object): 'htsus_code': 'str', 'tariff_description': 'str', 'moisture_sensitivity_level': 'str', + 'family': 'PidVid', + 'category': 'PidVid', 'manufacturer_part_number': 'str', 'minimum_order_quantity': 'int', 'non_stock': 'bool', @@ -63,6 +65,7 @@ class Product(object): 'manufacturer_public_quantity': 'int', 'quantity_on_order': 'int', 'dk_plus_restriction': 'bool', + 'marketplace': 'bool', 'supplier_direct_ship': 'bool' } @@ -87,6 +90,8 @@ class Product(object): 'htsus_code': 'HTSUSCode', 'tariff_description': 'TariffDescription', 'moisture_sensitivity_level': 'MoistureSensitivityLevel', + 'family': 'Family', + 'category': 'Category', 'manufacturer_part_number': 'ManufacturerPartNumber', 'minimum_order_quantity': 'MinimumOrderQuantity', 'non_stock': 'NonStock', @@ -99,10 +104,11 @@ class Product(object): 'manufacturer_public_quantity': 'ManufacturerPublicQuantity', 'quantity_on_order': 'QuantityOnOrder', 'dk_plus_restriction': 'DKPlusRestriction', + 'marketplace': 'Marketplace', 'supplier_direct_ship': 'SupplierDirectShip' } - def __init__(self, standard_pricing=None, ro_hs_status=None, lead_status=None, parameters=None, product_url=None, primary_datasheet=None, primary_photo=None, primary_video=None, series=None, manufacturer_lead_weeks=None, manufacturer_page_url=None, product_status=None, date_last_buy_chance=None, alternate_packaging=None, detailed_description=None, reach_status=None, export_control_class_number=None, htsus_code=None, tariff_description=None, moisture_sensitivity_level=None, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, supplier_direct_ship=None): # noqa: E501 + def __init__(self, standard_pricing=None, ro_hs_status=None, lead_status=None, parameters=None, product_url=None, primary_datasheet=None, primary_photo=None, primary_video=None, series=None, manufacturer_lead_weeks=None, manufacturer_page_url=None, product_status=None, date_last_buy_chance=None, alternate_packaging=None, detailed_description=None, reach_status=None, export_control_class_number=None, htsus_code=None, tariff_description=None, moisture_sensitivity_level=None, family=None, category=None, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, marketplace=None, supplier_direct_ship=None): # noqa: E501 """Product - a model defined in Swagger""" # noqa: E501 self._standard_pricing = None @@ -125,6 +131,8 @@ def __init__(self, standard_pricing=None, ro_hs_status=None, lead_status=None, p self._htsus_code = None self._tariff_description = None self._moisture_sensitivity_level = None + self._family = None + self._category = None self._manufacturer_part_number = None self._minimum_order_quantity = None self._non_stock = None @@ -137,6 +145,7 @@ def __init__(self, standard_pricing=None, ro_hs_status=None, lead_status=None, p self._manufacturer_public_quantity = None self._quantity_on_order = None self._dk_plus_restriction = None + self._marketplace = None self._supplier_direct_ship = None self.discriminator = None @@ -180,6 +189,10 @@ def __init__(self, standard_pricing=None, ro_hs_status=None, lead_status=None, p self.tariff_description = tariff_description if moisture_sensitivity_level is not None: self.moisture_sensitivity_level = moisture_sensitivity_level + if family is not None: + self.family = family + if category is not None: + self.category = category if manufacturer_part_number is not None: self.manufacturer_part_number = manufacturer_part_number if minimum_order_quantity is not None: @@ -204,6 +217,8 @@ def __init__(self, standard_pricing=None, ro_hs_status=None, lead_status=None, p self.quantity_on_order = quantity_on_order if dk_plus_restriction is not None: self.dk_plus_restriction = dk_plus_restriction + if marketplace is not None: + self.marketplace = marketplace if supplier_direct_ship is not None: self.supplier_direct_ship = supplier_direct_ship @@ -665,6 +680,48 @@ def moisture_sensitivity_level(self, moisture_sensitivity_level): self._moisture_sensitivity_level = moisture_sensitivity_level + @property + def family(self): + """Gets the family of this Product. # noqa: E501 + + + :return: The family of this Product. # noqa: E501 + :rtype: PidVid + """ + return self._family + + @family.setter + def family(self, family): + """Sets the family of this Product. + + + :param family: The family of this Product. # noqa: E501 + :type: PidVid + """ + + self._family = family + + @property + def category(self): + """Gets the category of this Product. # noqa: E501 + + + :return: The category of this Product. # noqa: E501 + :rtype: PidVid + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this Product. + + + :param category: The category of this Product. # noqa: E501 + :type: PidVid + """ + + self._category = category + @property def manufacturer_part_number(self): """Gets the manufacturer_part_number of this Product. # noqa: E501 @@ -918,7 +975,7 @@ def quantity_on_order(self, quantity_on_order): def dk_plus_restriction(self): """Gets the dk_plus_restriction of this Product. # noqa: E501 - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :return: The dk_plus_restriction of this Product. # noqa: E501 :rtype: bool @@ -929,7 +986,7 @@ def dk_plus_restriction(self): def dk_plus_restriction(self, dk_plus_restriction): """Sets the dk_plus_restriction of this Product. - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :param dk_plus_restriction: The dk_plus_restriction of this Product. # noqa: E501 :type: bool @@ -937,6 +994,29 @@ def dk_plus_restriction(self, dk_plus_restriction): self._dk_plus_restriction = dk_plus_restriction + @property + def marketplace(self): + """Gets the marketplace of this Product. # noqa: E501 + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :return: The marketplace of this Product. # noqa: E501 + :rtype: bool + """ + return self._marketplace + + @marketplace.setter + def marketplace(self, marketplace): + """Sets the marketplace of this Product. + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :param marketplace: The marketplace of this Product. # noqa: E501 + :type: bool + """ + + self._marketplace = marketplace + @property def supplier_direct_ship(self): """Gets the supplier_direct_ship of this Product. # noqa: E501 diff --git a/digikey/v3/productinformation/models/product_details.py b/digikey/v3/productinformation/models/product_details.py index 9ad30c0..3eed6bc 100644 --- a/digikey/v3/productinformation/models/product_details.py +++ b/digikey/v3/productinformation/models/product_details.py @@ -66,6 +66,8 @@ class ProductDetails(object): 'htsus_code': 'str', 'tariff_description': 'str', 'moisture_sensitivity_level': 'str', + 'family': 'PidVid', + 'category': 'PidVid', 'manufacturer_part_number': 'str', 'minimum_order_quantity': 'int', 'non_stock': 'bool', @@ -78,6 +80,7 @@ class ProductDetails(object): 'manufacturer_public_quantity': 'int', 'quantity_on_order': 'int', 'dk_plus_restriction': 'bool', + 'marketplace': 'bool', 'supplier_direct_ship': 'bool' } @@ -117,6 +120,8 @@ class ProductDetails(object): 'htsus_code': 'HTSUSCode', 'tariff_description': 'TariffDescription', 'moisture_sensitivity_level': 'MoistureSensitivityLevel', + 'family': 'Family', + 'category': 'Category', 'manufacturer_part_number': 'ManufacturerPartNumber', 'minimum_order_quantity': 'MinimumOrderQuantity', 'non_stock': 'NonStock', @@ -129,10 +134,11 @@ class ProductDetails(object): 'manufacturer_public_quantity': 'ManufacturerPublicQuantity', 'quantity_on_order': 'QuantityOnOrder', 'dk_plus_restriction': 'DKPlusRestriction', + 'marketplace': 'Marketplace', 'supplier_direct_ship': 'SupplierDirectShip' } - def __init__(self, my_pricing=None, obsolete=None, media_links=None, standard_package=None, limited_taxonomy=None, kits=None, kit_contents=None, mating_products=None, search_locale_used=None, associated_products=None, for_use_with_products=None, rohs_subs=None, suggested_subs=None, additional_value_fee=None, reach_effective_date=None, standard_pricing=None, ro_hs_status=None, lead_status=None, parameters=None, product_url=None, primary_datasheet=None, primary_photo=None, primary_video=None, series=None, manufacturer_lead_weeks=None, manufacturer_page_url=None, product_status=None, date_last_buy_chance=None, alternate_packaging=None, detailed_description=None, reach_status=None, export_control_class_number=None, htsus_code=None, tariff_description=None, moisture_sensitivity_level=None, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, supplier_direct_ship=None): # noqa: E501 + def __init__(self, my_pricing=None, obsolete=None, media_links=None, standard_package=None, limited_taxonomy=None, kits=None, kit_contents=None, mating_products=None, search_locale_used=None, associated_products=None, for_use_with_products=None, rohs_subs=None, suggested_subs=None, additional_value_fee=None, reach_effective_date=None, standard_pricing=None, ro_hs_status=None, lead_status=None, parameters=None, product_url=None, primary_datasheet=None, primary_photo=None, primary_video=None, series=None, manufacturer_lead_weeks=None, manufacturer_page_url=None, product_status=None, date_last_buy_chance=None, alternate_packaging=None, detailed_description=None, reach_status=None, export_control_class_number=None, htsus_code=None, tariff_description=None, moisture_sensitivity_level=None, family=None, category=None, manufacturer_part_number=None, minimum_order_quantity=None, non_stock=None, packaging=None, quantity_available=None, digi_key_part_number=None, product_description=None, unit_price=None, manufacturer=None, manufacturer_public_quantity=None, quantity_on_order=None, dk_plus_restriction=None, marketplace=None, supplier_direct_ship=None): # noqa: E501 """ProductDetails - a model defined in Swagger""" # noqa: E501 self._my_pricing = None @@ -170,6 +176,8 @@ def __init__(self, my_pricing=None, obsolete=None, media_links=None, standard_pa self._htsus_code = None self._tariff_description = None self._moisture_sensitivity_level = None + self._family = None + self._category = None self._manufacturer_part_number = None self._minimum_order_quantity = None self._non_stock = None @@ -182,6 +190,7 @@ def __init__(self, my_pricing=None, obsolete=None, media_links=None, standard_pa self._manufacturer_public_quantity = None self._quantity_on_order = None self._dk_plus_restriction = None + self._marketplace = None self._supplier_direct_ship = None self.discriminator = None @@ -255,6 +264,10 @@ def __init__(self, my_pricing=None, obsolete=None, media_links=None, standard_pa self.tariff_description = tariff_description if moisture_sensitivity_level is not None: self.moisture_sensitivity_level = moisture_sensitivity_level + if family is not None: + self.family = family + if category is not None: + self.category = category if manufacturer_part_number is not None: self.manufacturer_part_number = manufacturer_part_number if minimum_order_quantity is not None: @@ -279,6 +292,8 @@ def __init__(self, my_pricing=None, obsolete=None, media_links=None, standard_pa self.quantity_on_order = quantity_on_order if dk_plus_restriction is not None: self.dk_plus_restriction = dk_plus_restriction + if marketplace is not None: + self.marketplace = marketplace if supplier_direct_ship is not None: self.supplier_direct_ship = supplier_direct_ship @@ -1081,6 +1096,48 @@ def moisture_sensitivity_level(self, moisture_sensitivity_level): self._moisture_sensitivity_level = moisture_sensitivity_level + @property + def family(self): + """Gets the family of this ProductDetails. # noqa: E501 + + + :return: The family of this ProductDetails. # noqa: E501 + :rtype: PidVid + """ + return self._family + + @family.setter + def family(self, family): + """Sets the family of this ProductDetails. + + + :param family: The family of this ProductDetails. # noqa: E501 + :type: PidVid + """ + + self._family = family + + @property + def category(self): + """Gets the category of this ProductDetails. # noqa: E501 + + + :return: The category of this ProductDetails. # noqa: E501 + :rtype: PidVid + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this ProductDetails. + + + :param category: The category of this ProductDetails. # noqa: E501 + :type: PidVid + """ + + self._category = category + @property def manufacturer_part_number(self): """Gets the manufacturer_part_number of this ProductDetails. # noqa: E501 @@ -1334,7 +1391,7 @@ def quantity_on_order(self, quantity_on_order): def dk_plus_restriction(self): """Gets the dk_plus_restriction of this ProductDetails. # noqa: E501 - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :return: The dk_plus_restriction of this ProductDetails. # noqa: E501 :rtype: bool @@ -1345,7 +1402,7 @@ def dk_plus_restriction(self): def dk_plus_restriction(self, dk_plus_restriction): """Sets the dk_plus_restriction of this ProductDetails. - If true- this product is not available for purchase through the Ordering API - it must be purchased through the Digi-Key web site # noqa: E501 + Deprecated property - see Marketplace # noqa: E501 :param dk_plus_restriction: The dk_plus_restriction of this ProductDetails. # noqa: E501 :type: bool @@ -1353,6 +1410,29 @@ def dk_plus_restriction(self, dk_plus_restriction): self._dk_plus_restriction = dk_plus_restriction + @property + def marketplace(self): + """Gets the marketplace of this ProductDetails. # noqa: E501 + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :return: The marketplace of this ProductDetails. # noqa: E501 + :rtype: bool + """ + return self._marketplace + + @marketplace.setter + def marketplace(self, marketplace): + """Sets the marketplace of this ProductDetails. + + Product is a Marketplace product that ships direct from the supplier. A separate shipping fee may apply # noqa: E501 + + :param marketplace: The marketplace of this ProductDetails. # noqa: E501 + :type: bool + """ + + self._marketplace = marketplace + @property def supplier_direct_ship(self): """Gets the supplier_direct_ship of this ProductDetails. # noqa: E501