# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class BillAccountBodyLineCreate(Model):
    """BillAccountBodyLineCreate.

    :param special_charge_id: The bodyline's special charge (SingleLine) id,
     if applicable
    :type special_charge_id: int
    :param observation_type_id: The bodyline's observation type <span
     class='property-internal'>Required</span>
    :type observation_type_id: int
    :param cost_unit_id: The bodyline's cost unit of measure for this
    :type cost_unit_id: int
    :param cost: The cost attributed to the line item
    :type cost: float
    :param caption: The caption <span
     class='property-internal'>Required</span> <span
     class='property-internal'>Must be between 0 and 32 characters</span>
    :type caption: str
    """

    _validation = {
        'observation_type_id': {'required': True},
        'caption': {'required': True, 'max_length': 32, 'min_length': 0},
    }

    _attribute_map = {
        'special_charge_id': {'key': 'specialChargeId', 'type': 'int'},
        'observation_type_id': {'key': 'observationTypeId', 'type': 'int'},
        'cost_unit_id': {'key': 'costUnitId', 'type': 'int'},
        'cost': {'key': 'cost', 'type': 'float'},
        'caption': {'key': 'caption', 'type': 'str'},
    }

    def __init__(self, observation_type_id, caption, special_charge_id=None, cost_unit_id=None, cost=None):
        super(BillAccountBodyLineCreate, self).__init__()
        self.special_charge_id = special_charge_id
        self.observation_type_id = observation_type_id
        self.cost_unit_id = cost_unit_id
        self.cost = cost
        self.caption = caption
