netsuite 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTkyYmZjMTQ2M2Y2ZmIyNGNiNjdhZjVlNzg4ZDlmMTc0ZDg3OGM2MQ==
4
+ NDQwMWNkMzVjNmRhNGMxODE4MTdkODQyMmQ4OWNlYTFjNzNiZDA0Nw==
5
5
  data.tar.gz: !binary |-
6
- OGYxNzE2MjRlZTlkNGY5OTg5ZTU3MWJkNzE3MGQzYmU1MTc0Yzc1ZA==
6
+ YWMzMjc0NTgwYWQ1MzY2NDExMWI4YmVhYjE0NTNkOGIzZWRmNjJiMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDBhMzcyYTA3YzMwY2M2ZDUxNzcwNjc4NDI3NDc4ODA0MDdiMzJjNDdmMTBl
10
- YjNjNWY5NmFkOWY2MjFmMjlhM2ZkYTFmZTk3MTRkYTg4MGU0MjQ5ZWIzOTNl
11
- MDc3YjViN2U4M2UyOWYyMWI4ZWI3ODBjNWY5MzJmZGRhMjU5Y2Y=
9
+ OWM2NTA4ZjQ0ZjJlMjRlNWI0NmJjNjhlZjNiYjMwM2QxNTE3NmI5NTRiZjc2
10
+ YTJiZWIxM2Q3NmEyMTU4M2YwNDFlYTgzNWU1ZjQ0ZDkzZWNkM2UzZjI1Yzc5
11
+ OWY2ZDZlNTMxY2E2ZTZhMjRkMjQ5ZjEzNWY2YWI3MmJjY2VlNmM=
12
12
  data.tar.gz: !binary |-
13
- NGE0OTVhMGJlN2FjYzExMmFkZGE0NTdjMmI3NzJiZTE1NDZlMDc1ZTMyZGJj
14
- N2Y2N2FkNTc4NTY3MDVhNmViYzM3ZDYzOTk1OTkwYTI2NmEzZTNkMmQ0ZjMz
15
- MTVjZmJmYTA1ZmI3YTI2MjlmYzFhMWM1ZTc3M2IxMzkyNWJiN2Y=
13
+ MmJlMjIxOWY4MDIyYzI4MTJmMjExYmFhYTU3MmIzZjc1NGYwOGZmZTU3NDdh
14
+ YzU0OTM2NjFiZTU4Yzg2NmQ0ZjA4ZjlmZmY4ZWViYmY3NjU5ZTZlY2YzMmE1
15
+ NTAyMWNiODM5ZDcyMmMyZjQ5NjY2YTIzYmI0YWU2MWRjOTc1Nzk=
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
- [![Circle CI](https://circleci.com/gh/NetSweet/netsuite/tree/master.svg?style=svg)](https://circleci.com/gh/NetSweet/netsuite/tree/master)
2
- [![Slack Status](https://opensuite-slackin.herokuapp.com/badge.svg)](http://opensuite-slackin.herokuapp.com)
1
+ [![Circle CI](https://circleci.com/gh/NetSweet/netsuite/tree/master.svg?style=svg)](https://circleci.com/gh/NetSweet/netsuite/tree/master)
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)
4
+ [![Dependency Status](https://gemnasium.com/roidrage/lograge.svg)](https://gemnasium.com/netsweet/netsuite)
3
5
 
4
6
  # NetSuite Ruby SuiteTalk Gem
5
7
 
@@ -183,6 +183,7 @@ module NetSuite
183
183
  autoload :Subsidiary, 'netsuite/records/subsidiary'
184
184
  autoload :SupportCase, 'netsuite/records/support_case'
185
185
  autoload :TaxType, 'netsuite/records/tax_type'
186
+ autoload :TaxGroup, 'netsuite/records/tax_group'
186
187
  autoload :Task, 'netsuite/records/task'
187
188
  autoload :Term, 'netsuite/records/term'
188
189
  autoload :TimeBill, 'netsuite/records/time_bill'
@@ -7,7 +7,7 @@ module NetSuite
7
7
  include Support::Actions
8
8
  include Namespaces::ListAcct
9
9
 
10
- actions :get, :get_list, :add, :delete, :search, :upsert
10
+ actions :get, :get_list, :add, :update, :delete, :search, :upsert
11
11
 
12
12
  fields :acct_name, :acct_number, :acct_type, :cash_flow_rate, :cur_doc_num, :description, :eliminate, :exchange_rate,
13
13
  :general_rate, :include_children, :inventory, :is_inactive, :opening_balance, :revalue, :tran_date
@@ -14,7 +14,7 @@ module NetSuite
14
14
  field :item_list, CashRefundItemList
15
15
  field :custom_field_list, CustomFieldList
16
16
 
17
- record_refs :entity, :custom_form, :payment_method, :created_from, :account, :currency, :posting_period
17
+ record_refs :entity, :custom_form, :payment_method, :created_from, :klass, :account, :currency, :posting_period
18
18
 
19
19
  attr_reader :internal_id
20
20
  attr_accessor :external_id
@@ -12,7 +12,7 @@ module NetSuite
12
12
 
13
13
  fields :phone, :home_phone, :first_name, :last_name, :alt_name, :is_inactive, :email, :give_access,
14
14
  :partner_code, :is_person, :company_name, :eligible_for_commission, :entity_id, :last_modified_date,
15
- :date_created, :title, :mobile_phone, :comments, :middle_name, :send_email
15
+ :date_created, :title, :mobile_phone, :comments, :middle_name, :send_email, :password, :password2
16
16
 
17
17
  record_refs :klass, :access_role, :department
18
18
 
@@ -0,0 +1,33 @@
1
+ module NetSuite
2
+ module Records
3
+ class TaxGroup
4
+ include Support::Fields
5
+ include Support::RecordRefs
6
+ include Support::Records
7
+ include Support::Actions
8
+ include Namespaces::ListAcct
9
+
10
+ actions :get, :get_list, :add, :initialize, :delete, :update, :upsert, :search
11
+
12
+ fields :city, :county, :description, :include_children, :is_default, :is_inactive,
13
+ :item_id, :piggyback, :rate, :state, :subsidiary_list, :unitprice1, :unitprice2,
14
+ :zip
15
+
16
+ record_refs :taxitem1, :taxitem2, :nexus_country, :tax_type
17
+
18
+ # TODO
19
+ # tax_item_list
20
+ # subsidiary_list
21
+
22
+ attr_reader :internal_id
23
+ attr_accessor :external_id
24
+
25
+ def initialize(attributes = {})
26
+ @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
27
+ @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
28
+ initialize_from_attributes_hash(attributes)
29
+ end
30
+
31
+ end
32
+ end
33
+ end
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.5.6'
2
+ VERSION = '0.5.7'
3
3
  end
@@ -21,6 +21,7 @@ describe 'basic records' do
21
21
  NetSuite::Records::CustomerDeposit,
22
22
  NetSuite::Records::NonInventoryPurchaseItem,
23
23
  NetSuite::Records::NonInventoryResaleItem,
24
+ NetSuite::Records::TaxGroup,
24
25
  ]
25
26
  }
26
27
 
@@ -14,7 +14,7 @@ describe NetSuite::Records::CashRefund do
14
14
 
15
15
  it 'has all the right record refs' do
16
16
  [
17
- :entity, :custom_form, :payment_method, :created_from
17
+ :entity, :custom_form, :payment_method, :created_from, :klass
18
18
  ].each do |record_ref|
19
19
  expect(cashrefund).to have_record_ref(record_ref)
20
20
  end
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.6
4
+ version: 0.5.7
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-07 00:00:00.000000000 Z
12
+ date: 2016-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -212,6 +212,7 @@ files:
212
212
  - lib/netsuite/records/subsidiary.rb
213
213
  - lib/netsuite/records/support_case.rb
214
214
  - lib/netsuite/records/task.rb
215
+ - lib/netsuite/records/tax_group.rb
215
216
  - lib/netsuite/records/tax_type.rb
216
217
  - lib/netsuite/records/term.rb
217
218
  - lib/netsuite/records/time_bill.rb