Class: Collmex::Api::Accdoc

Inherits:
Line
  • Object
show all
Defined in:
lib/collmex/api.rb

Class Method Summary collapse

Methods inherited from Line

default_hash, hashify, #initialize, #to_a, #to_csv, #to_h, #to_stringified_array

Constructor Details

This class inherits a constructor from Collmex::Api::Line

Class Method Details

.specificationObject



329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File 'lib/collmex/api.rb', line 329

def self.specification
    [
      { name: :identifyer       , type: :string    , fix: "ACCDOC"          },
      { name: :company_id       , type: :integer   , default: 1             },
      { name: :business_year    , type: :integer                            },
      { name: :id               , type: :integer                            },
      { name: :accdoc_date      , type: :date                               },
      { name: :accounted_date   , type: :date                               },
      { name: :test             , type: :string                             },
      { name: :position_id      , type: :integer                            },
      { name: :account_id       , type: :integer                            },
      { name: :account_name     , type: :string                             },
      { name: :should_have      , type: :integer                            },
      { name: :amount           , type: :currency                           },
      { name: :customer_id      , type: :integer                            },
      { name: :customer_name    , type: :string                             },
      { name: :provider_id      , type: :integer                            },
      { name: :provider_name    , type: :string                             },
      { name: :asset_id         , type: :integer                            },
      { name: :asset_name       , type: :string                             },
      { name: :canceled_accdoc  , type: :integer                            },
      { name: :cost_unit        , type: :string                             },
      { name: :invoice_id       , type: :string                             },
      { name: :customer_order_id, type: :integer                            },
      { name: :jorney_id        , type: :integer                            },
      { name: :belongs_to_id    , type: :integer                            },
      { name: :belongs_to_year  , type: :integer                            },
      { name: :belongs_to_pos   , type: :integer                            },
    ]
end