# coding: utf-8

"""
    Mauve Admin API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0.12
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class CreateDocumentLineRequest(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 = {
        'document_number': 'str',
        'sku': 'str',
        'name': 'str',
        'quantity': 'float',
        'vat_rate': 'float',
        'gross_price': 'float',
        'discount_percentage': 'float',
        'comment': 'str',
        'e_prescription_task_id': 'str',
        'e_prescription_access_code': 'str',
        'is_shipping_item': 'bool'
    }

    attribute_map = {
        'document_number': 'documentNumber',
        'sku': 'sku',
        'name': 'name',
        'quantity': 'quantity',
        'vat_rate': 'vatRate',
        'gross_price': 'grossPrice',
        'discount_percentage': 'discountPercentage',
        'comment': 'comment',
        'e_prescription_task_id': 'ePrescriptionTaskId',
        'e_prescription_access_code': 'ePrescriptionAccessCode',
        'is_shipping_item': 'isShippingItem'
    }

    def __init__(self, document_number=None, sku=None, name=None, quantity=None, vat_rate=None, gross_price=None, discount_percentage=None, comment=None, e_prescription_task_id=None, e_prescription_access_code=None, is_shipping_item=None):  # noqa: E501
        """CreateDocumentLineRequest - a model defined in Swagger"""  # noqa: E501
        self._document_number = None
        self._sku = None
        self._name = None
        self._quantity = None
        self._vat_rate = None
        self._gross_price = None
        self._discount_percentage = None
        self._comment = None
        self._e_prescription_task_id = None
        self._e_prescription_access_code = None
        self._is_shipping_item = None
        self.discriminator = None
        self.document_number = document_number
        self.sku = sku
        self.name = name
        self.quantity = quantity
        self.vat_rate = vat_rate
        if gross_price is not None:
            self.gross_price = gross_price
        if discount_percentage is not None:
            self.discount_percentage = discount_percentage
        if comment is not None:
            self.comment = comment
        if e_prescription_task_id is not None:
            self.e_prescription_task_id = e_prescription_task_id
        if e_prescription_access_code is not None:
            self.e_prescription_access_code = e_prescription_access_code
        if is_shipping_item is not None:
            self.is_shipping_item = is_shipping_item

    @property
    def document_number(self):
        """Gets the document_number of this CreateDocumentLineRequest.  # noqa: E501

        Alphanumerical unique identifier of a document (always end with \"-B\") (in german: Beleg-Nr.)  # noqa: E501

        :return: The document_number of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: str
        """
        return self._document_number

    @document_number.setter
    def document_number(self, document_number):
        """Sets the document_number of this CreateDocumentLineRequest.

        Alphanumerical unique identifier of a document (always end with \"-B\") (in german: Beleg-Nr.)  # noqa: E501

        :param document_number: The document_number of this CreateDocumentLineRequest.  # noqa: E501
        :type: str
        """
        if document_number is None:
            raise ValueError("Invalid value for `document_number`, must not be `None`")  # noqa: E501

        self._document_number = document_number

    @property
    def sku(self):
        """Gets the sku of this CreateDocumentLineRequest.  # noqa: E501

        Stock Keeping Unit (e.g. PZN)  # noqa: E501

        :return: The sku of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: str
        """
        return self._sku

    @sku.setter
    def sku(self, sku):
        """Sets the sku of this CreateDocumentLineRequest.

        Stock Keeping Unit (e.g. PZN)  # noqa: E501

        :param sku: The sku of this CreateDocumentLineRequest.  # noqa: E501
        :type: str
        """
        if sku is None:
            raise ValueError("Invalid value for `sku`, must not be `None`")  # noqa: E501

        self._sku = sku

    @property
    def name(self):
        """Gets the name of this CreateDocumentLineRequest.  # noqa: E501

        The product name  # noqa: E501

        :return: The name of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this CreateDocumentLineRequest.

        The product name  # noqa: E501

        :param name: The name of this CreateDocumentLineRequest.  # noqa: E501
        :type: str
        """
        if name is None:
            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501

        self._name = name

    @property
    def quantity(self):
        """Gets the quantity of this CreateDocumentLineRequest.  # noqa: E501

        Product's quantity for the order line  # noqa: E501

        :return: The quantity of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: float
        """
        return self._quantity

    @quantity.setter
    def quantity(self, quantity):
        """Sets the quantity of this CreateDocumentLineRequest.

        Product's quantity for the order line  # noqa: E501

        :param quantity: The quantity of this CreateDocumentLineRequest.  # noqa: E501
        :type: float
        """
        if quantity is None:
            raise ValueError("Invalid value for `quantity`, must not be `None`")  # noqa: E501

        self._quantity = quantity

    @property
    def vat_rate(self):
        """Gets the vat_rate of this CreateDocumentLineRequest.  # noqa: E501

        Value added tax rate applied on product price  # noqa: E501

        :return: The vat_rate of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: float
        """
        return self._vat_rate

    @vat_rate.setter
    def vat_rate(self, vat_rate):
        """Sets the vat_rate of this CreateDocumentLineRequest.

        Value added tax rate applied on product price  # noqa: E501

        :param vat_rate: The vat_rate of this CreateDocumentLineRequest.  # noqa: E501
        :type: float
        """
        if vat_rate is None:
            raise ValueError("Invalid value for `vat_rate`, must not be `None`")  # noqa: E501

        self._vat_rate = vat_rate

    @property
    def gross_price(self):
        """Gets the gross_price of this CreateDocumentLineRequest.  # noqa: E501

        Gross price for a single item  # noqa: E501

        :return: The gross_price of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: float
        """
        return self._gross_price

    @gross_price.setter
    def gross_price(self, gross_price):
        """Sets the gross_price of this CreateDocumentLineRequest.

        Gross price for a single item  # noqa: E501

        :param gross_price: The gross_price of this CreateDocumentLineRequest.  # noqa: E501
        :type: float
        """

        self._gross_price = gross_price

    @property
    def discount_percentage(self):
        """Gets the discount_percentage of this CreateDocumentLineRequest.  # noqa: E501

        Order line's discount rate in percentage  # noqa: E501

        :return: The discount_percentage of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: float
        """
        return self._discount_percentage

    @discount_percentage.setter
    def discount_percentage(self, discount_percentage):
        """Sets the discount_percentage of this CreateDocumentLineRequest.

        Order line's discount rate in percentage  # noqa: E501

        :param discount_percentage: The discount_percentage of this CreateDocumentLineRequest.  # noqa: E501
        :type: float
        """

        self._discount_percentage = discount_percentage

    @property
    def comment(self):
        """Gets the comment of this CreateDocumentLineRequest.  # noqa: E501


        :return: The comment of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """Sets the comment of this CreateDocumentLineRequest.


        :param comment: The comment of this CreateDocumentLineRequest.  # noqa: E501
        :type: str
        """

        self._comment = comment

    @property
    def e_prescription_task_id(self):
        """Gets the e_prescription_task_id of this CreateDocumentLineRequest.  # noqa: E501

        Task-ID of an e-prescription  # noqa: E501

        :return: The e_prescription_task_id of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: str
        """
        return self._e_prescription_task_id

    @e_prescription_task_id.setter
    def e_prescription_task_id(self, e_prescription_task_id):
        """Sets the e_prescription_task_id of this CreateDocumentLineRequest.

        Task-ID of an e-prescription  # noqa: E501

        :param e_prescription_task_id: The e_prescription_task_id of this CreateDocumentLineRequest.  # noqa: E501
        :type: str
        """

        self._e_prescription_task_id = e_prescription_task_id

    @property
    def e_prescription_access_code(self):
        """Gets the e_prescription_access_code of this CreateDocumentLineRequest.  # noqa: E501

        AccessCode of an e-prescription  # noqa: E501

        :return: The e_prescription_access_code of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: str
        """
        return self._e_prescription_access_code

    @e_prescription_access_code.setter
    def e_prescription_access_code(self, e_prescription_access_code):
        """Sets the e_prescription_access_code of this CreateDocumentLineRequest.

        AccessCode of an e-prescription  # noqa: E501

        :param e_prescription_access_code: The e_prescription_access_code of this CreateDocumentLineRequest.  # noqa: E501
        :type: str
        """

        self._e_prescription_access_code = e_prescription_access_code

    @property
    def is_shipping_item(self):
        """Gets the is_shipping_item of this CreateDocumentLineRequest.  # noqa: E501

        Indicates whether this entry is the shipping costs  # noqa: E501

        :return: The is_shipping_item of this CreateDocumentLineRequest.  # noqa: E501
        :rtype: bool
        """
        return self._is_shipping_item

    @is_shipping_item.setter
    def is_shipping_item(self, is_shipping_item):
        """Sets the is_shipping_item of this CreateDocumentLineRequest.

        Indicates whether this entry is the shipping costs  # noqa: E501

        :param is_shipping_item: The is_shipping_item of this CreateDocumentLineRequest.  # noqa: E501
        :type: bool
        """

        self._is_shipping_item = is_shipping_item

    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(CreateDocumentLineRequest, 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, CreateDocumentLineRequest):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
