Class: Collmex::Api::Cmxord2

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

Overview

Creating Orders

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



363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
# File 'lib/collmex/api.rb', line 363

def self.specification
    [
      {name: :identifyer, type: :string,   fix: "CMXORD-2"},
      {name: :order_id, type: :integer},
      {name: :position, type: :integer},
      {name: :order, type: :integer}, # Should be left blank
      {name: :company_id, type: :integer, default: 1},
      {name: :customer_id, type: :integer},
      {name: :customer_title, type: :string},
      {name: :customer_title_2, type: :string},
      {name: :customer_first_name, type: :string},
      {name: :customer_name, type: :string},
      {name: :customer_company, type: :string},
      {name: :customer_department, type: :string},
      {name: :customer_street, type: :string},
      {name: :customer_zip, type: :string},
      {name: :customer_place, type: :string},
      {name: :customer_country, type: :string}, # ISO code (DE)
      {name: :customer_phone, type: :string},
      {name: :customer_phone_2, type: :string},
      {name: :customer_fax, type: :string},
      {name: :customer_email, type: :string},
      {name: :acct, type: :string},
      {name: :customer_blz, type: :string},
      {name: :customer_account_holders, type: :string},
      {name: :customer_iban, type: :string},
      {name: :customer_bic, type: :string},
      {name: :customer_bank, type: :string},
      {name: :customer_ustidnr, type: :string},
      {name: :reserved, type: :integer}, # Should be left blank
      {name: :order_id_for_customer, type: :string},
      {name: :order_date, type: :date},
      {name: :price_date, type: :date},
      {name: :terms_of_payment, type: :integer},
      {name: :currency, type: :string}, # ISO code (EUR)
      {name: :price_group, type: :integer},
      {name: :discount_group, type: :integer},
      {name: :closing_off, type: :integer},
      {name: :discount_ground, type: :string},
      {name: :confirmation_text, type: :string},
      {name: :final_text, type: :string},
      {name: :internal_memo, type: :string},
      {name: :billing_allowed, type: :integer},
      {name: :partial_deliveries_allowed, type: :integer},
      {name: :deleted, type: :integer},
      {name: :status, type: :integer},
      {name: :language, type: :integer}, # 0 = German, 1 = English
      {name: :editor, type: :integer},
      {name: :mediator, type: :integer},
      {name: :system_name, type: :string},
      {name: :closing_off_2, type: :currency},
      {name: :closing_off_2_base, type: :string},
      {name: :reserved_2, type: :string}, # Should be left blank
      {name: :canceled_on, type: :date},
      {name: :dispatch, type: :integer},
      {name: :returns, type: :currency},
      {name: :collection_fee, type: :currency},
      {name: :terms_of_delivery, type: :string},
      {name: :additional_delivery_conditions, type: :string},
      {name: :delivery_address_title, type: :string},
      {name: :delivery_address_title_2, type: :string},
      {name: :delivery_address_first_name, type: :string},
      {name: :delivery_address_name, type: :string},
      {name: :delivery_address_company, type: :string},
      {name: :delivery_address_department, type: :string},
      {name: :delivery_address_street, type: :string},
      {name: :delivery_address_zip, type: :string},
      {name: :delivery_address_place, type: :string},
      {name: :delivery_address_country, type: :string}, # ISO code (DE)
      {name: :delivery_address_phone, type: :string},
      {name: :delivery_address_phone_2, type: :string},
      {name: :delivery_address_fax, type: :string},
      {name: :delivery_address_email, type: :string},
      {name: :position_type, type: :integer},
      {name: :product_number, type: :string},
      {name: :product_description, type: :string},
      {name: :unit, type: :string}, # ISO code (EUR)
      {name: :quantity, type: :float},
      {name: :price, type: :currency},
      {name: :delivery_date, type: :date},
      {name: :price_quantity, type: :float},
      {name: :item_discount, type: :currency}, # In percents
      {name: :position_value, type: :currency},
      {name: :product, type: :integer},
      {name: :tax_classification, type: :integer},
      {name: :control_abroad, type: :integer},
      {name: :revenue_element, type: :integer},
      {name: :fully_delivered, type: :integer},
      {name: :finally_settled, type: :integer}
    ]
end