Sha256: d08f6dfc1514d7c1001b88e9bd7d0ce9f394bb09c74e4d2097b250cc7ef6c5f7

Contents?: true

Size: 880 Bytes

Versions: 4

Compression:

Stored size: 880 Bytes

Contents

module NetSuite
  module Records
    class ItemFulfillmentPackageUps
      include Support::Fields
      include Support::Records
      include Namespaces::TranSales

      fields :additional_handling_ups, :cod_amount_ups, :cod_method_ups, :delivery_conf_ups, :insured_value_ups, :package_descr_ups,
        :package_height_ups, :package_length_ups, :package_tracking_number_ups, :package_weight_ups, :package_width_ups,
        :packaging_ups, :reference1_ups, :reference2_ups, :use_cod_ups


      def initialize(attributes_or_record = {})
        case attributes_or_record
        when Hash
          initialize_from_attributes_hash(attributes_or_record)
        when self.class
          initialize_from_record(attributes_or_record)
        end
      end

      def initialize_from_record(record)
        self.attributes = record.send(:attributes)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/item_fulfillment_package_ups.rb
netsuite-0.9.2 lib/netsuite/records/item_fulfillment_package_ups.rb
netsuite-0.9.1 lib/netsuite/records/item_fulfillment_package_ups.rb
netsuite-0.9.0 lib/netsuite/records/item_fulfillment_package_ups.rb