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
- NDIyNGIxODdmZjE3N2JiMmE0N2M1Y2I4MDc0OTgyOGY5ZGUzYmRmOA==
4
+ M2UzZjZmZjU3MjNjZDU0OWU4NjE0MTEzYzUyZmZmYWEwOWY2YTRiNQ==
5
5
  data.tar.gz: !binary |-
6
- YWI4NTE4ZGVlYTc0MTQ5NTkzM2NmY2M1MzkyZmExMmU1YWNlYTc0NQ==
6
+ ZDg3MTNmMTQ3ZDJmYjU1ZGJmYjkwNzBlZTgxMDFkNDI1ZGZmN2IyYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzY1NGJmZDVjYjA4ZmNjMmYzZTcwOGFmMjYyNTViM2Q4YjU3ODRjMDRjMGNm
10
- ZTg5ZDViYzA1MTZkOTA3OGQzNjg3NDI2NDZiZDE1ODMwZDMwMGRiNjJlYTk2
11
- OGZmMzBhNmY5OWMzOGI3OTU3MDNiZTIxYWYzNDQ0ZTFlZDE4ZDU=
9
+ NjU5MjEyYTIxOWMzMWM3YTA4YzZiMDA5NmM4NzBiOWFhNzc5ZTM1ZDBkYzk4
10
+ ODUzOTgwZmM1ZGQxNjMxYmEzMTlkZDJiMDI4MTYyZjA5MWY4MTVlMjgxOThi
11
+ ODA1NzJmMzA1Zjc4ODlhMWIwYTM3MTlmMGFkMGVhZGQ3MWVmNmY=
12
12
  data.tar.gz: !binary |-
13
- OWI1ZmFhYTg2MGVjNTVjNGIyZWRjYTFmNjFhMjU0ZGIyZWU5MDRkNjkyNDUz
14
- ZDUyZGY3Mzc3NGVkZjQ4OGE0NTE1MzgwYzYyOTRjOTUxMDZhNmVlYTRmNzhi
15
- MGMzNDg0ZjY0OGVmNjJhMTJlZGFlNTIzNTEzOTY3OGYzZmYyNDI=
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
- fields :replace_all
9
-
10
- def initialize(attributes = {})
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
- fields :item
6
+ sublist :item, SalesOrderItem
8
7
 
9
- def initialize(attributes = {})
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
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.5.4'
2
+ VERSION = '0.5.5'
3
3
  end
@@ -17,6 +17,8 @@ describe 'basic records' do
17
17
  NetSuite::Records::RevRecSchedule,
18
18
  NetSuite::Records::JournalEntry,
19
19
  NetSuite::Records::Classification,
20
+ NetSuite::Records::SalesOrder,
21
+ NetSuite::Records::CustomerDeposit,
20
22
  ]
21
23
  }
22
24
 
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
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-05 00:00:00.000000000 Z
12
+ date: 2016-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon