Sha256: a642ffcbf4f16b09a19eff1939702d66438675fe54e495a70d2ddd4b5598e035

Contents?: true

Size: 1.99 KB

Versions: 33

Compression:

Stored size: 1.99 KB

Contents

module NetSuite
  module Records
    class Vendor
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ListRel

      actions :get, :get_list, :add, :update, :delete, :search

      fields :account_number, :alt_email, :alt_name, :alt_phone, :balance,
             :balance_primary, :bcn, :bill_pay, :comments, :company_name, :credit_limit,
             :currency_list, :date_created, :default_address, :eligible_for_commission,
             :email, :email_preference, :email_transactions, :entity_id, :fax, :fax_transactions,
             :first_name, :give_access, :global_subscription_status, :home_phone, :is1099_eligible,
             :is_accountant, :is_inactive, :is_job_resource_vend, :is_person, :labor_cost,
             :last_modified_date, :last_name, :legal_name, :middle_name, :mobile_phone, :opening_balance,
             :opening_balance_date, :password, :password2, :phone, :phonetic_name, :pricing_schedule_list,
             :print_on_check_as, :print_transactions, :require_pwd_change, :roles_list, :salutation,
             :send_email, :subscriptions_list, :tax_id_num, :title, :unbilled_orders, :unbilled_orders_primary,
             :url, :vat_reg_number

      field :custom_field_list, CustomFieldList
      # TODO should change name to VendorAddressBookList
      field :addressbook_list, CustomerAddressbookList

      record_refs :custom_form, :category, :image, :subsidiary, :representing_subsidiary,
                  :expense_account, :payables_account, :terms, :opening_balance_account, :currency, :work_calendar,
                  :tax_item

      attr_reader :internal_id
      attr_accessor :external_id

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
        initialize_from_attributes_hash(attributes)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
netsuite-0.7.1 lib/netsuite/records/vendor.rb
netsuite-0.7.0 lib/netsuite/records/vendor.rb
netsuite-0.6.9 lib/netsuite/records/vendor.rb
netsuite-0.6.8 lib/netsuite/records/vendor.rb
netsuite-0.6.7 lib/netsuite/records/vendor.rb
netsuite-0.6.6 lib/netsuite/records/vendor.rb
netsuite-0.6.5 lib/netsuite/records/vendor.rb
netsuite-0.6.4 lib/netsuite/records/vendor.rb
netsuite-0.6.3 lib/netsuite/records/vendor.rb
netsuite-0.6.2 lib/netsuite/records/vendor.rb
netsuite-0.6.1 lib/netsuite/records/vendor.rb
netsuite-0.6.0 lib/netsuite/records/vendor.rb
netsuite-0.5.9 lib/netsuite/records/vendor.rb
netsuite-0.5.8 lib/netsuite/records/vendor.rb
netsuite-0.5.7 lib/netsuite/records/vendor.rb
netsuite-0.5.6 lib/netsuite/records/vendor.rb
netsuite-0.5.5 lib/netsuite/records/vendor.rb
netsuite-0.5.4 lib/netsuite/records/vendor.rb
netsuite-0.5.3 lib/netsuite/records/vendor.rb
netsuite-0.5.2 lib/netsuite/records/vendor.rb