Sha256: f852bb8d63b4f2bc5263b44e2f3e549a52f91ad2e0aaf3c39e4c78538c3d895d

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module NetSuite
      module Vendor
        class LedgerSerializer < NetSuite::LedgerSerializer
          api_resource_type :vendor

          attribute ledger_attribute: :companyName,
                    resource_attribute: :company_name

          attribute ledger_attribute: :entityId,
                    resource_attribute: :external_id

          attribute ledger_attribute: :externalId,
                    resource_attribute: :external_id

          attribute ledger_attribute: :email,
                    resource_attribute: :email

          attribute ledger_attribute: :firstName,
                    resource_attribute: :first_name

          attribute ledger_attribute: :lastName,
                    resource_attribute: :last_name

          attribute ledger_attribute: :subsidiary,
                    resource_attribute: :subsidiary,
                    type: LedgerSerializerType::SubsidiaryType
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/netsuite/vendor/ledger_serializer.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/netsuite/vendor/ledger_serializer.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/netsuite/vendor/ledger_serializer.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/netsuite/vendor/ledger_serializer.rb
ledger_sync-1.3.1 lib/ledger_sync/adaptors/netsuite/vendor/ledger_serializer.rb