Sha256: ddc233b4713bf455476e30f86be21b202806d965461c3cf6c98f43e88ff1207e

Contents?: true

Size: 649 Bytes

Versions: 15

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/serializer'

module LedgerSync
  module NetSuite
    class Vendor
      class Serializer < NetSuite::Serializer
        attribute :companyName,
                  resource_attribute: :company_name

        attribute :externalId,
                  resource_attribute: :external_id

        attribute :email

        attribute :firstName,
                  resource_attribute: :first_name

        attribute :lastName,
                  resource_attribute: :last_name

        references_one :subsidiary,
                       serializer: Reference::Serializer
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ledger_sync-netsuite-0.7.1 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.6.2 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.6.1 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.6.0 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.5.0 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.4.2 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.3.6 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.3.5 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.3.4 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.3.3 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.3.2 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.3.1 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.3.0 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.2.0 lib/ledger_sync/netsuite/vendor/serializer.rb
ledger_sync-netsuite-0.1.1 lib/ledger_sync/netsuite/vendor/serializer.rb