/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 * 
 * Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * @class
 * Initializes a new instance of the Invoice class.
 * @constructor
 * @member {number} [integer]
 * 
 * @member {string} [string]
 * 
 */
function Invoice(parameters) {}


/**
 * Metadata of Invoice
 *
 * @returns {object} metadata of the Invoice
 *
 */
Invoice.prototype.mapper = function () {
  return {
    type: {
      name : 'Composite',
      className: 'Invoice',
      modelProperties: {
        invId : {
          serializedName: 'invoiceId',
          required: true,
          type : {
            name: 'Number'
          }
        },
         invDate: {
          serializedName: 'invDate',
          required: false,
          type : {
            name: 'Date'
          }
        },
        invProducts: {
          serializedName: 'invProducts',
          required: false,
          type : {
            name: 'Sequence',
            element: {
              type: {
                name: 'Dictionary',
                value: {
                  type: {
                    name: 'Composite',
                    className: 'Product'
                  }
                }
              }
            }
          }
        }
      }
    }
  };
};

module.exports = Invoice;