Class: Fortnox::API::Repository::Invoice
- Defined in:
- lib/fortnox/api/repositories/invoice.rb
Constant Summary collapse
- CONFIGURATION =
Fortnox::API::Repository::Base::Options.new( uri: '/invoices/', json_collection_wrapper: 'Invoices', json_entity_wrapper: 'Invoice', unique_id: 'DocumentNumber', attribute_name_to_json_key_map: { administration_fee_vat: 'AdministrationFeeVAT', edi_information: 'EDIInformation', eu_quarterly_report: 'EUQuarterlyReport', freight_vat: 'FreightVAT', ocr: 'OCR', total_vat: 'TotalVAT', vat_included: 'VATIncluded' }, keys_filtered_on_save: [ :url, ] )
- MODEL =
Fortnox::API::Model::Invoice
Constants inherited from Base
Base::DEFAULT_HEADERS, Base::HTTP_METHODS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Invoice
constructor
A new instance of Invoice.
Methods included from Savers
Methods included from Loaders
#all, #escape, #find, #find_one_by, #only, #to_query
Methods included from ClassMethods
#get_access_token, #set_headers
Constructor Details
#initialize ⇒ Invoice
Returns a new instance of Invoice.
29 30 31 |
# File 'lib/fortnox/api/repositories/invoice.rb', line 29 def initialize super( CONFIGURATION ) end |