lib/netsuite/support/records.rb in netsuite-0.0.13 vs lib/netsuite/support/records.rb in netsuite-0.0.14

- old
+ new

@@ -14,9 +14,14 @@ if v.respond_to?(:internal_id) && v.internal_id hash[:attributes!] ||= {} hash[:attributes!][kname] ||= {} hash[:attributes!][kname]['internalId'] = v.internal_id end + if v.respond_to?(:external_id) && v.external_id + hash[:attributes!] ||= {} + hash[:attributes!][kname] ||= {} + hash[:attributes!][kname]['externalId'] = v.external_id + end if v.kind_of?(NetSuite::Records::RecordRef) && v.type hash[:attributes!] ||= {} hash[:attributes!][kname] ||= {} hash[:attributes!][kname]['type'] = v.type.lower_camelcase end