netsuite 0.0.42 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/netsuite/actions/add.rb
CHANGED
|
@@ -19,6 +19,7 @@ module NetSuite
|
|
|
19
19
|
soap.namespaces['xmlns:listAcct'] = 'urn:accounting_2011_2.lists.webservices.netsuite.com'
|
|
20
20
|
soap.namespaces['xmlns:tranCust'] = 'urn:customers_2011_2.transactions.webservices.netsuite.com'
|
|
21
21
|
soap.namespaces['xmlns:setupCustom'] = 'urn:customization_2011_2.setup.webservices.netsuite.com'
|
|
22
|
+
soap.namespaces['xmlns:tranGeneral'] = 'urn:general_2011_2.transactions.webservices.netsuite.com'
|
|
22
23
|
soap.header = auth_header
|
|
23
24
|
soap.body = request_body
|
|
24
25
|
end
|
|
@@ -18,9 +18,14 @@ module NetSuite
|
|
|
18
18
|
record_refs :created_from, :currency, :custom_form, :department, :klass, :location, :parent_expense_alloc,
|
|
19
19
|
:posting_period, :subsidiary, :to_subsidiary
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
attr_reader :internal_id
|
|
22
|
+
attr_accessor :external_id
|
|
23
|
+
|
|
24
|
+
def initialize(attributes = {})
|
|
25
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
|
26
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
|
27
|
+
initialize_from_attributes_hash(attributes)
|
|
28
|
+
end
|
|
24
29
|
|
|
25
30
|
def to_record
|
|
26
31
|
rec = super
|
data/lib/netsuite/version.rb
CHANGED
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: 73
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 43
|
|
10
|
+
version: 0.0.43
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ryan Moran
|