netsuite 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/netsuite/actions/get.rb +1 -1
- data/lib/netsuite/records/classification.rb +2 -1
- data/lib/netsuite/records/customer.rb +2 -1
- data/lib/netsuite/records/customer_addressbook_list.rb +2 -1
- data/lib/netsuite/records/invoice.rb +2 -1
- data/lib/netsuite/records/non_inventory_sale_item.rb +2 -1
- data/lib/netsuite/records/record_ref.rb +4 -1
- data/lib/netsuite/version.rb +1 -1
- data/spec/netsuite/actions/get_spec.rb +2 -2
- metadata +4 -4
data/lib/netsuite/actions/get.rb
CHANGED
@@ -5,7 +5,8 @@ module NetSuite
|
|
5
5
|
|
6
6
|
fields :name, :include_children, :is_inactive, :class_translation_list, :subsidiary_list, :custom_field_list
|
7
7
|
|
8
|
-
attr_reader
|
8
|
+
attr_reader :internal_id
|
9
|
+
attr_accessor :external_id
|
9
10
|
|
10
11
|
def initialize(attributes = {})
|
11
12
|
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
@@ -25,7 +25,8 @@ module NetSuite
|
|
25
25
|
|
26
26
|
record_refs :custom_form, :entity_status
|
27
27
|
|
28
|
-
attr_reader
|
28
|
+
attr_reader :internal_id
|
29
|
+
attr_accessor :external_id
|
29
30
|
|
30
31
|
def initialize(attributes = {})
|
31
32
|
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
@@ -8,7 +8,8 @@ module NetSuite
|
|
8
8
|
fields :default_shipping, :default_billing, :is_residential, :label, :attention, :addressee,
|
9
9
|
:phone, :addr1, :addr2, :addr3, :city, :zip, :country, :addr_text, :override, :state
|
10
10
|
|
11
|
-
attr_reader
|
11
|
+
attr_reader :internal_id
|
12
|
+
attr_accessor :external_id
|
12
13
|
|
13
14
|
def initialize(attributes_or_record = {})
|
14
15
|
case attributes_or_record
|
@@ -31,7 +31,8 @@ module NetSuite
|
|
31
31
|
|
32
32
|
record_refs :account, :bill_address_list, :custom_form, :entity, :klass, :posting_period, :ship_address_list
|
33
33
|
|
34
|
-
attr_reader
|
34
|
+
attr_reader :internal_id
|
35
|
+
attr_accessor :external_id
|
35
36
|
|
36
37
|
def initialize(attributes = {})
|
37
38
|
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
@@ -27,7 +27,8 @@ module NetSuite
|
|
27
27
|
:rev_rec_schedule, :sale_unit, :sales_tax_code, :ship_package, :store_display_image, :store_display_thumbnail,
|
28
28
|
:store_item_template, :subsidiary_list, :tax_schedule, :units_type
|
29
29
|
|
30
|
-
attr_reader
|
30
|
+
attr_reader :internal_id
|
31
|
+
attr_accessor :external_id
|
31
32
|
|
32
33
|
def initialize(attributes = {})
|
33
34
|
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
@@ -5,17 +5,20 @@ module NetSuite
|
|
5
5
|
include Support::Records
|
6
6
|
include Namespaces::PlatformCore
|
7
7
|
|
8
|
-
attr_reader
|
8
|
+
attr_reader :internal_id, :type
|
9
|
+
attr_accessor :external_id
|
9
10
|
|
10
11
|
def initialize(attributes_or_record = {})
|
11
12
|
case attributes_or_record
|
12
13
|
when Hash
|
13
14
|
attributes_or_record.delete(:"@xmlns:platform_core")
|
14
15
|
@internal_id = attributes_or_record.delete(:internal_id) || attributes_or_record.delete(:@internal_id)
|
16
|
+
@external_id = attributes_or_record.delete(:external_id) || attributes_or_record.delete(:@external_id)
|
15
17
|
@type = attributes_or_record.delete(:type) || attributes_or_record.delete(:@type)
|
16
18
|
@attributes = attributes_or_record
|
17
19
|
else
|
18
20
|
@internal_id = attributes_or_record.internal_id if attributes_or_record.respond_to?(:internal_id)
|
21
|
+
@external_id = attributes_or_record.external_id if attributes_or_record.respond_to?(:external_id)
|
19
22
|
@type = attributes_or_record.class.to_s.split('::').last.lower_camelcase
|
20
23
|
end
|
21
24
|
end
|
data/lib/netsuite/version.rb
CHANGED
@@ -8,7 +8,7 @@ describe NetSuite::Actions::Get do
|
|
8
8
|
'platformMsgs:baseRef' => {},
|
9
9
|
:attributes! => {
|
10
10
|
'platformMsgs:baseRef' => {
|
11
|
-
:
|
11
|
+
:externalId => 1,
|
12
12
|
:type => 'customer',
|
13
13
|
'xsi:type' => 'platformCore:RecordRef'
|
14
14
|
}
|
@@ -32,7 +32,7 @@ describe NetSuite::Actions::Get do
|
|
32
32
|
'platformMsgs:baseRef' => {},
|
33
33
|
:attributes! => {
|
34
34
|
'platformMsgs:baseRef' => {
|
35
|
-
:
|
35
|
+
:externalId => 10,
|
36
36
|
:type => 'invoice',
|
37
37
|
'xsi:type' => 'platformCore:RecordRef'
|
38
38
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netsuite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Moran
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-12 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: savon
|