Sha256: e7e8864ac8a3ca087833832de915f84ad9b5047291aa2641f9a9ab0674fd3e56

Contents?: true

Size: 706 Bytes

Versions: 8

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require_relative '../reference/serializer'

module LedgerSync
  module Ledgers
    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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/vendor/serializer.rb