azure
Version:
Microsoft Azure Client Library for node
76 lines (71 loc) • 1.62 kB
JavaScript
/*
* 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.
*/
;
/**
* @class
* Initializes a new instance of the Invoice class.
* @constructor
* @member {number} [integer]
*
* @member {string} [string]
*
*/
class Invoice {
constructor(parameters) { }
/**
* Metadata of Invoice
*
* @returns {object} metadata of the Invoice
*
*/
mapper() {
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;