Sha256: a05af4c44867e71d23088d939ed7eb32ce1b4d9234f8d581477b8a447ecc940c

Contents?: true

Size: 896 Bytes

Versions: 5

Compression:

Stored size: 896 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module NetSuite
      module Vendor
        class LedgerDeserializer < NetSuite::LedgerSerializer
          id

          attribute ledger_attribute: :companyName,
                    resource_attribute: :company_name

          attribute ledger_attribute: :email,
                    resource_attribute: :email

          attribute ledger_attribute: :phone,
                    resource_attribute: :phone_number

          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_deserializer.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/netsuite/vendor/ledger_deserializer.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/netsuite/vendor/ledger_deserializer.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/netsuite/vendor/ledger_deserializer.rb
ledger_sync-1.3.1 lib/ledger_sync/adaptors/netsuite/vendor/ledger_deserializer.rb