netsuite 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ module NetSuite
12
12
  fields :access_role, :account_number, :aging, :alt_email, :alt_name, :alt_phone, :bill_pay,
13
13
  :buying_reason, :buying_time_frame, :campaign_category, :category, :click_stream, :comments, :company_name,
14
14
  :consol_aging, :consol_days_overdue, :contact_roles_list, :contrib_pct, :credit_cards_list, :credit_hold_override,
15
- :credit_limit, :currency, :currency_list, :custom_field_list, :date_created, :days_overdue, :default_address,
15
+ :credit_limit, :currency, :currency_list, :date_created, :days_overdue, :default_address,
16
16
  :download_list, :email, :email_preference, :email_transactions, :end_date, :entity_id,
17
17
  :estimated_budget, :fax, :fax_transactions, :first_name, :first_visit, :give_access, :global_subscription_status,
18
18
  :group_pricing_list, :home_phone, :image, :is_budget_approved, :is_inactive, :is_person, :item_pricing_list, :keywords,
@@ -25,7 +25,8 @@ module NetSuite
25
25
  :territory, :third_party_acct, :third_party_country, :third_party_zipcode, :title, :url,
26
26
  :vat_reg_number, :visits, :web_lead
27
27
 
28
- field :addressbook_list, CustomerAddressbookList
28
+ field :addressbook_list, CustomerAddressbookList
29
+ field :custom_field_list, CustomFieldList
29
30
 
30
31
  read_only_fields :balance, :consol_balance, :deposit_balance, :consol_deposit_balance, :overdue_balance,
31
32
  :consol_overdue_balance, :unbilled_orders, :consol_unbilled_orders
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.0.28'
2
+ VERSION = '0.0.29'
3
3
  end
@@ -9,7 +9,7 @@ describe NetSuite::Records::Customer do
9
9
  :buying_reason, :buying_time_frame, :campaign_category, :category, :click_stream, :comments, :company_name,
10
10
  :consol_aging, :consol_balance, :consol_days_overdue, :consol_deposit_balance, :consol_overdue_balance,
11
11
  :consol_unbilled_orders, :contact_roles_list, :contrib_pct, :credit_cards_list, :credit_hold_override, :credit_limit,
12
- :currency, :currency_list, :custom_field_list, :date_created, :days_overdue, :default_address,
12
+ :currency, :currency_list, :date_created, :days_overdue, :default_address,
13
13
  :deposit_balance, :download_list, :email, :email_preference, :email_transactions, :end_date, :entity_id,
14
14
  :estimated_budget, :fax, :fax_transactions, :first_name, :first_visit, :give_access, :global_subscription_status,
15
15
  :group_pricing_list, :home_phone, :image, :is_budget_approved, :is_inactive, :is_person, :item_pricing_list, :keywords,
@@ -63,6 +63,25 @@ describe NetSuite::Records::Customer do
63
63
  end
64
64
  end
65
65
 
66
+ describe '#custom_field_list' do
67
+ it 'can be set from attributes' do
68
+ attributes = {
69
+ :custom_field => {
70
+ :value => 10
71
+ }
72
+ }
73
+ customer.custom_field_list = attributes
74
+ customer.custom_field_list.should be_kind_of(NetSuite::Records::CustomFieldList)
75
+ customer.custom_field_list.custom_fields.length.should eql(1)
76
+ end
77
+
78
+ it 'can be set from a CustomFieldList object' do
79
+ custom_field_list = NetSuite::Records::CustomFieldList.new
80
+ customer.custom_field_list = custom_field_list
81
+ customer.custom_field_list.should eql(custom_field_list)
82
+ end
83
+ end
84
+
66
85
  describe '.get' do
67
86
  context 'when the response is successful' do
68
87
  let(:response) { NetSuite::Response.new(:success => true, :body => { :is_person => true }) }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 28
10
- version: 0.0.28
9
+ - 29
10
+ version: 0.0.29
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Moran