netsuite 0.5.9 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  [![Circle CI](https://circleci.com/gh/NetSweet/netsuite/tree/master.svg?style=svg)](https://circleci.com/gh/NetSweet/netsuite/tree/master)
2
2
  [![Slack Status](https://opensuite-slackin.herokuapp.com/badge.svg)](http://opensuite-slackin.herokuapp.com)
3
- [![Gem Version](https://badge.fury.io/rb/netsuite.svg)](http://badge.fury.io/rb/lograge)
3
+ [![Gem Version](https://badge.fury.io/rb/netsuite.svg)](http://badge.fury.io/rb/netsuite)
4
4
  [![Dependency Status](https://gemnasium.com/roidrage/lograge.svg)](https://gemnasium.com/netsweet/netsuite)
5
5
 
6
6
  # NetSuite Ruby SuiteTalk Gem
@@ -97,6 +97,7 @@ module NetSuite
97
97
  autoload :Customer, 'netsuite/records/customer'
98
98
  autoload :CustomerAddressbook, 'netsuite/records/customer_addressbook'
99
99
  autoload :CustomerAddressbookList, 'netsuite/records/customer_addressbook_list'
100
+ autoload :CustomerCategory, 'netsuite/records/customer_category'
100
101
  autoload :CustomerCurrency, 'netsuite/records/customer_currency'
101
102
  autoload :CustomerCurrencyList, 'netsuite/records/customer_currency_list'
102
103
  autoload :CustomerDeposit, 'netsuite/records/customer_deposit'
@@ -281,7 +281,7 @@ module NetSuite
281
281
  end
282
282
 
283
283
  def silent(value=nil)
284
- self.silent = value if value
284
+ self.silent = value if !value.nil?
285
285
  attributes[:silent]
286
286
  end
287
287
 
@@ -110,6 +110,7 @@ module NetSuite
110
110
  when field_value.is_a?(Array)
111
111
  'MultiSelectCustomFieldRef'
112
112
  when field_value.is_a?(Hash)
113
+ when field_value.is_a?(NetSuite::Records::RecordRef)
113
114
  'SelectCustomFieldRef'
114
115
  when field_value.is_a?(DateTime),
115
116
  field_value.is_a?(Time),
@@ -0,0 +1,26 @@
1
+ module NetSuite
2
+ module Records
3
+ class CustomerCategory
4
+ # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2015_2/schema/record/customercategory.html
5
+
6
+ include Support::Fields
7
+ include Support::RecordRefs
8
+ include Support::Records
9
+ include Support::Actions
10
+ include Namespaces::ListAcct
11
+
12
+ actions :get, :get_list, :get_all, :add, :update, :delete, :search
13
+
14
+ fields :name, :is_inactive
15
+
16
+ attr_reader :internal_id
17
+ attr_accessor :external_id
18
+
19
+ def initialize(attributes = {})
20
+ @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
21
+ @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
22
+ initialize_from_attributes_hash(attributes)
23
+ end
24
+ end
25
+ end
26
+ end
@@ -11,7 +11,7 @@ module NetSuite
11
11
 
12
12
  fields :tran_date, :tran_id, :shipping_cost, :memo, :ship_company, :ship_attention, :ship_addr1,
13
13
  :ship_addr2, :ship_city, :ship_state, :ship_zip, :ship_phone, :ship_is_residential,
14
- :ship_status, :last_modified_date
14
+ :ship_status, :last_modified_date, :created_date
15
15
 
16
16
  read_only_fields :handling_cost
17
17
 
@@ -23,7 +23,7 @@ module NetSuite
23
23
 
24
24
  # NOTE API version >= 2015_1
25
25
  field :shipping_address, Address
26
-
26
+
27
27
  field :item_list, ItemFulfillmentItemList
28
28
  field :package_list, ItemFulfillmentPackageList
29
29
  field :custom_field_list, CustomFieldList
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.5.9'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -231,6 +231,14 @@ describe NetSuite::Configuration do
231
231
  end
232
232
  end
233
233
 
234
+ it '#silent' do
235
+ config.silent = false
236
+ expect(config.silent).to eq(false)
237
+
238
+ config.silent = true
239
+ expect(config.silent).to eq(true)
240
+ end
241
+
234
242
  it '#wsdl_domain' do
235
243
  expect(config.wsdl_domain).to eq('webservices.netsuite.com')
236
244
 
@@ -23,6 +23,7 @@ describe 'basic records' do
23
23
  NetSuite::Records::NonInventoryResaleItem,
24
24
  NetSuite::Records::TaxGroup,
25
25
  NetSuite::Records::Folder,
26
+ NetSuite::Records::CustomerCategory,
26
27
  ]
27
28
  }
28
29
 
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.9
4
+ version: 0.6.0
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-05 00:00:00.000000000 Z
13
+ date: 2016-05-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: savon
@@ -140,6 +140,7 @@ files:
140
140
  - lib/netsuite/records/customer.rb
141
141
  - lib/netsuite/records/customer_addressbook.rb
142
142
  - lib/netsuite/records/customer_addressbook_list.rb
143
+ - lib/netsuite/records/customer_category.rb
143
144
  - lib/netsuite/records/customer_currency.rb
144
145
  - lib/netsuite/records/customer_currency_list.rb
145
146
  - lib/netsuite/records/customer_deposit.rb