Sha256: aa08ef78bfe75fea99caf0fcb02b19ba40b4462ae50b65e4cf8c74ce9ad055e2

Contents?: true

Size: 689 Bytes

Versions: 8

Compression:

Stored size: 689 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module NetSuite
      class Vendor
        class Deserializer < NetSuite::Deserializer
          id

          attribute :company_name,
                    hash_attribute: :companyName

          attribute :email

          attribute :phone_number,
                    hash_attribute: :phone

          attribute :first_name,
                    hash_attribute: :firstName

          attribute :last_name,
                    hash_attribute: :lastName

          attribute :subsidiary,
                    type: Type::DeserializerSubsidiaryType.new(subsidiary_class: Subsidiary)
        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/deserializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/vendor/deserializer.rb