# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Billing::Mgmt::V2017_02_27_preview module Models # # An invoice resource can be used download a PDF version of an invoice. # class Invoice < Resource include MsRestAzure # @return [Date] The start of the date range covered by the invoice. attr_accessor :invoice_period_start_date # @return [Date] The end of the date range covered by the invoice. attr_accessor :invoice_period_end_date # @return [DownloadUrl] A secure link to download the PDF version of an # invoice. The link will cease to work after its expiry time is reached. attr_accessor :download_url # # Mapper for Invoice class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Invoice', type: { name: 'Composite', class_name: 'Invoice', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, invoice_period_start_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.invoicePeriodStartDate', type: { name: 'Date' } }, invoice_period_end_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.invoicePeriodEndDate', type: { name: 'Date' } }, download_url: { client_side_validation: true, required: false, serialized_name: 'properties.downloadUrl', type: { name: 'Composite', class_name: 'DownloadUrl' } } } } } end end end end