netsuite 0.6.2 → 0.6.3

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.
@@ -189,6 +189,7 @@ module NetSuite
189
189
  autoload :Term, 'netsuite/records/term'
190
190
  autoload :TimeBill, 'netsuite/records/time_bill'
191
191
  autoload :Transaction, 'netsuite/records/transaction'
192
+ autoload :TransferOrder, 'netsuite/records/transfer_order'
192
193
  autoload :UnitsType, 'netsuite/records/units_type'
193
194
  autoload :UnitsTypeUomList, 'netsuite/records/units_type_uom_list'
194
195
  autoload :UnitsTypeUom, 'netsuite/records/units_type_uom'
@@ -1,7 +1,9 @@
1
1
  module NetSuite
2
2
  module Records
3
3
 
4
- class Partner < Support::Base
4
+ class Partner
5
+ include Support::Records
6
+ include Support::Fields
5
7
  include Support::Actions
6
8
  include Support::RecordRefs
7
9
  include Namespaces::ListRel
@@ -17,6 +19,14 @@ module NetSuite
17
19
  record_refs :klass, :access_role, :department
18
20
 
19
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
29
+
20
30
  end
21
31
 
22
32
  end
@@ -0,0 +1,45 @@
1
+ module NetSuite
2
+ module Records
3
+ class TransferOrder
4
+ include Support::Fields
5
+ include Support::RecordRefs
6
+ include Support::Records
7
+ include Support::Actions
8
+ include Namespaces::TranInvt
9
+
10
+ actions :get, :get_list, :add, :initialize, :delete, :update, :upsert, :search
11
+
12
+ fields :alt_shipping_cost, :created_date, :firmed, :fob, :handling_tax1_rate,
13
+ :handling_tax2_rate, :last_modified_date, :linked_tracking_numbers,
14
+ :memo, :ship_complete, :ship_date, :ship_is_residential, :shipping_cost,
15
+ :shipping_tax1_rate, :shipping_tax2_rate, :source, :status, :sub_total,
16
+ :total, :tracking_numbers, :tran_date, :tran_id
17
+
18
+ record_refs :transfer_location, :shipping_tax_code, :subsidiary, :shipping_address,
19
+ :ship_method, :order_status, :employee, :handling_tax_code,
20
+ :location, :custom_form, :department, :klass, :ship_address_list
21
+
22
+ field :custom_field_list, CustomFieldList
23
+ # :item_list TransferOrderItemList
24
+
25
+ attr_reader :internal_id
26
+ attr_accessor :external_id
27
+ attr_accessor :search_joins
28
+
29
+ def initialize(attributes = {})
30
+ @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
31
+ @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
32
+ initialize_from_attributes_hash(attributes)
33
+ end
34
+
35
+ def self.search_class_name
36
+ "Transaction"
37
+ end
38
+
39
+ def self.search_class_namespace
40
+ 'tranSales'
41
+ end
42
+
43
+ end
44
+ end
45
+ end
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
@@ -25,6 +25,8 @@ describe 'basic records' do
25
25
  NetSuite::Records::Folder,
26
26
  NetSuite::Records::CustomerCategory,
27
27
  NetSuite::Records::File,
28
+ NetSuite::Records::TransferOrder,
29
+ NetSuite::Records::Partner,
28
30
  ]
29
31
  }
30
32
 
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.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-17 00:00:00.000000000 Z
13
+ date: 2016-05-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: savon
@@ -226,6 +226,7 @@ files:
226
226
  - lib/netsuite/records/tax_type.rb
227
227
  - lib/netsuite/records/term.rb
228
228
  - lib/netsuite/records/time_bill.rb
229
+ - lib/netsuite/records/transfer_order.rb
229
230
  - lib/netsuite/records/units_type.rb
230
231
  - lib/netsuite/records/units_type_uom.rb
231
232
  - lib/netsuite/records/units_type_uom_list.rb