Sha256: c6f25ebbe43ff45492775ce572c21b32b8ee244d528bc02df5b1554128b1626a
Contents?: true
Size: 766 Bytes
Versions: 4
Compression:
Stored size: 766 Bytes
Contents
module NetSuite module Records class ItemFulfillmentPackageFedExList include Support::Fields include Support::Records include Namespaces::TranSales fields :package_fed_ex def initialize(attributes = {}) initialize_from_attributes_hash(attributes) end def package_fed_ex=(packages) case packages when Hash self.packages << ItemFulfillmentPackageFedEx.new(packages) when Array packages.each { |package| self.packages << ItemFulfillmentPackageFedEx.new(package) } end end def packages @packages ||= [] end def to_record { "#{record_namespace}:packageFedEx" => packages.map(&:to_record) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems