netsuite 0.5.4 → 0.5.5
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2UzZjZmZjU3MjNjZDU0OWU4NjE0MTEzYzUyZmZmYWEwOWY2YTRiNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDg3MTNmMTQ3ZDJmYjU1ZGJmYjkwNzBlZTgxMDFkNDI1ZGZmN2IyYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjU5MjEyYTIxOWMzMWM3YTA4YzZiMDA5NmM4NzBiOWFhNzc5ZTM1ZDBkYzk4
|
10
|
+
ODUzOTgwZmM1ZGQxNjMxYmEzMTlkZDJiMDI4MTYyZjA5MWY4MTVlMjgxOThi
|
11
|
+
ODA1NzJmMzA1Zjc4ODlhMWIwYTM3MTlmMGFkMGVhZGQ3MWVmNmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDQwZTMzMGVmMzg3NjM4NDY1MzQyMWIwM2NhZDI3ZGY4YzJiNTc2YmZhYjhk
|
14
|
+
ZWY4MGY1ODYzNzFmNjBiN2Q2ZDNmM2M0MTk5MDA3YWQ2NGY3NmVmYTI3Nzgy
|
15
|
+
YTBiODE5OGFlNmNmYmQ2NzcwNTMwZjE1NzQ3ZDJlODM4ZmQwYzU=
|
@@ -1,29 +1,11 @@
|
|
1
1
|
module NetSuite
|
2
2
|
module Records
|
3
|
-
class CustomerRefundDepositList
|
4
|
-
include Support::Fields
|
5
|
-
include Support::Records
|
3
|
+
class CustomerRefundDepositList < Support::Sublist
|
6
4
|
include Namespaces::TranCust
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
initialize_from_attributes_hash(attributes)
|
12
|
-
case attributes[:customer_refund_deposit]
|
13
|
-
when Hash
|
14
|
-
deposits << CustomerRefundDeposit.new(attributes[:customer_refund_deposit])
|
15
|
-
when Array
|
16
|
-
attributes[:customer_refund_deposit].each { |deposit| deposits << CustomerRefundDeposit.new(deposit) }
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def deposits
|
21
|
-
@deposits ||= []
|
22
|
-
end
|
23
|
-
|
24
|
-
def to_record
|
25
|
-
super.merge({ "#{record_namespace}:customerRefundDeposit" => deposits.map(&:to_record) })
|
26
|
-
end
|
5
|
+
|
6
|
+
sublist :customer_refund_deposit, CustomerRefundDeposit
|
7
|
+
|
8
|
+
alias :deposits :customer_refund_deposit
|
27
9
|
end
|
28
10
|
end
|
29
11
|
end
|
@@ -1,31 +1,11 @@
|
|
1
1
|
module NetSuite
|
2
2
|
module Records
|
3
|
-
class SalesOrderItemList
|
4
|
-
include Support::Fields
|
3
|
+
class SalesOrderItemList < Support::Sublist
|
5
4
|
include Namespaces::TranSales
|
6
5
|
|
7
|
-
|
6
|
+
sublist :item, SalesOrderItem
|
8
7
|
|
9
|
-
|
10
|
-
initialize_from_attributes_hash(attributes)
|
11
|
-
end
|
12
|
-
|
13
|
-
def item=(items)
|
14
|
-
case items
|
15
|
-
when Hash
|
16
|
-
self.items << SalesOrderItem.new(items)
|
17
|
-
when Array
|
18
|
-
items.each { |item| self.items << SalesOrderItem.new(item) }
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
def items
|
23
|
-
@items ||= []
|
24
|
-
end
|
25
|
-
|
26
|
-
def to_record
|
27
|
-
{ "#{record_namespace}:item" => items.map(&:to_record) }
|
28
|
-
end
|
8
|
+
alias :items :item
|
29
9
|
end
|
30
10
|
end
|
31
11
|
end
|
data/lib/netsuite/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netsuite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Moran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|