Sha256: 1bc1a62da5601555815a471e378e0ee1a79d833f0af343b351c51c7abfd01f0c

Contents?: true

Size: 951 Bytes

Versions: 3

Compression:

Stored size: 951 Bytes

Contents

module Economic
  class Customer < Base
    field :address
    field :balance
    field :barred
    field :city
    field :contacts
    field :corporateIdentificationNumber
    field :country
    field :creditLimit
    field :currency
    field :customerNumber, id: true
    field :deliveryLocations
    field :dueAmount
    field :ean
    field :email
    field :lastUpdated
    field :name
    field :mobilePhone
    field :pNumber
    field :publicEntryNumber
    field :telephoneAndFaxNumber
    field :vatNumber
    field :website
    field :zip

    # field :attention
    # field :customerContact
    relation :customerGroup, fields: [:customerGroupNumber]
    # field :defaultDeliveryLocation
    # field :invoices
    relation :layout, fields: [:layoutNumber]
    relation :paymentTerms, fields: [:paymentTermsNumber]
    # field :salesPerson
    field :templates
    # field :totals
    relation :vatZone, fields: [:vatZoneNumber]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
economic-rest-0.6.4 lib/economic/customer.rb
economic-rest-0.6.3 lib/economic/customer.rb
economic-rest-0.6.2 lib/economic/customer.rb