netsuite 0.8.5 → 0.8.9

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.
Files changed (84) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/main.yml +20 -0
  3. data/.ruby-version +1 -1
  4. data/.tool-versions +1 -0
  5. data/Gemfile +1 -5
  6. data/HISTORY.md +32 -0
  7. data/README.md +48 -21
  8. data/Rakefile +1 -1
  9. data/lib/netsuite/configuration.rb +21 -4
  10. data/lib/netsuite/records/accounting_period.rb +2 -2
  11. data/lib/netsuite/records/assembly_unbuild.rb +1 -3
  12. data/lib/netsuite/records/classification.rb +4 -1
  13. data/lib/netsuite/records/contact.rb +1 -1
  14. data/lib/netsuite/records/cost_category.rb +28 -0
  15. data/lib/netsuite/records/credit_memo.rb +1 -1
  16. data/lib/netsuite/records/currency_rate.rb +1 -1
  17. data/lib/netsuite/records/custom_field_list.rb +9 -3
  18. data/lib/netsuite/records/custom_record.rb +1 -1
  19. data/lib/netsuite/records/customer.rb +2 -1
  20. data/lib/netsuite/records/customer_credit_cards.rb +36 -0
  21. data/lib/netsuite/records/customer_credit_cards_list.rb +10 -0
  22. data/lib/netsuite/records/customer_deposit.rb +5 -5
  23. data/lib/netsuite/records/customer_payment.rb +6 -2
  24. data/lib/netsuite/records/customer_payment_credit.rb +17 -0
  25. data/lib/netsuite/records/customer_payment_credit_list.rb +12 -0
  26. data/lib/netsuite/records/employee.rb +1 -1
  27. data/lib/netsuite/records/estimate.rb +42 -0
  28. data/lib/netsuite/records/estimate_item.rb +40 -0
  29. data/lib/netsuite/records/estimate_item_list.rb +11 -0
  30. data/lib/netsuite/records/inventory_item.rb +62 -1
  31. data/lib/netsuite/records/invoice.rb +97 -4
  32. data/lib/netsuite/records/invoice_item.rb +1 -1
  33. data/lib/netsuite/records/item_fulfillment.rb +1 -1
  34. data/lib/netsuite/records/item_fulfillment_item.rb +1 -1
  35. data/lib/netsuite/records/item_receipt_item.rb +1 -1
  36. data/lib/netsuite/records/member_list.rb +0 -2
  37. data/lib/netsuite/records/non_inventory_purchase_item.rb +1 -1
  38. data/lib/netsuite/records/non_inventory_resale_item.rb +2 -1
  39. data/lib/netsuite/records/non_inventory_sale_item.rb +1 -1
  40. data/lib/netsuite/records/opportunity.rb +2 -2
  41. data/lib/netsuite/records/partner.rb +7 -5
  42. data/lib/netsuite/records/phone_call.rb +1 -1
  43. data/lib/netsuite/records/serialized_assembly_item.rb +3 -2
  44. data/lib/netsuite/records/service_resale_item.rb +2 -2
  45. data/lib/netsuite/records/service_sale_item.rb +1 -1
  46. data/lib/netsuite/records/transfer_order_item.rb +1 -1
  47. data/lib/netsuite/records/vendor.rb +6 -5
  48. data/lib/netsuite/records/vendor_currency.rb +26 -0
  49. data/lib/netsuite/records/vendor_currency_list.rb +9 -0
  50. data/lib/netsuite/support/fields.rb +17 -0
  51. data/lib/netsuite/support/records.rb +1 -1
  52. data/lib/netsuite/support/search_result.rb +23 -4
  53. data/lib/netsuite/utilities.rb +2 -1
  54. data/lib/netsuite/version.rb +1 -1
  55. data/lib/netsuite.rb +10 -0
  56. data/netsuite.gemspec +5 -3
  57. data/spec/netsuite/actions/search_spec.rb +22 -0
  58. data/spec/netsuite/configuration_spec.rb +93 -6
  59. data/spec/netsuite/records/basic_record_spec.rb +8 -1
  60. data/spec/netsuite/records/classification_spec.rb +10 -1
  61. data/spec/netsuite/records/cost_category_spec.rb +105 -0
  62. data/spec/netsuite/records/custom_field_list_spec.rb +46 -6
  63. data/spec/netsuite/records/custom_record_spec.rb +1 -1
  64. data/spec/netsuite/records/customer_credit_cards_list_spec.rb +23 -0
  65. data/spec/netsuite/records/customer_payment_credit_list_spec.rb +26 -0
  66. data/spec/netsuite/records/customer_payment_spec.rb +1 -6
  67. data/spec/netsuite/records/customer_spec.rb +22 -1
  68. data/spec/netsuite/records/employee_spec.rb +2 -2
  69. data/spec/netsuite/records/estimate_item_list_spec.rb +26 -0
  70. data/spec/netsuite/records/estimate_item_spec.rb +40 -0
  71. data/spec/netsuite/records/estimate_spec.rb +216 -0
  72. data/spec/netsuite/records/inventory_item_spec.rb +65 -0
  73. data/spec/netsuite/records/invoice_spec.rb +94 -0
  74. data/spec/netsuite/records/non_inventory_resale_item_spec.rb +165 -0
  75. data/spec/netsuite/records/partner_spec.rb +143 -0
  76. data/spec/netsuite/records/service_resale_item_spec.rb +134 -0
  77. data/spec/netsuite/records/vendor_spec.rb +1 -1
  78. data/spec/netsuite/support/fields_spec.rb +36 -1
  79. data/spec/support/fixtures/custom_fields/multi_select.xml +47 -0
  80. data/spec/support/fixtures/search/saved_search_item.xml +55 -0
  81. data/spec/support/fixtures/search/saved_search_joined_custom_customer.xml +15 -1
  82. data/spec/support/search_only_field_matcher.rb +7 -0
  83. metadata +68 -12
  84. data/circle.yml +0 -17
@@ -7,7 +7,7 @@ describe NetSuite::Records::Vendor do
7
7
  [
8
8
  :account_number, :alt_email, :alt_name, :alt_phone, :balance,
9
9
  :balance_primary, :bcn, :bill_pay, :comments, :company_name, :credit_limit,
10
- :currency_list, :date_created, :default_address, :eligible_for_commission,
10
+ :date_created, :default_address, :eligible_for_commission,
11
11
  :email, :email_preference, :email_transactions, :entity_id, :fax, :fax_transactions,
12
12
  :first_name, :give_access, :global_subscription_status, :home_phone, :is1099_eligible,
13
13
  :is_accountant, :is_inactive, :is_job_resource_vend, :is_person, :labor_cost,
@@ -1,9 +1,12 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe NetSuite::Support::Fields do
4
- let(:klass) { Class.new.send(:include, NetSuite::Support::Fields) }
4
+ DummyRecord = Class.new.send(:include, NetSuite::Support::Fields)
5
+ let(:klass) { DummyRecord }
5
6
  let(:instance) { klass.new }
6
7
 
8
+ before { klass.fields.clear }
9
+
7
10
  describe '.fields' do
8
11
  context 'with arguments' do
9
12
  it 'calls .field with each argument passed to it' do
@@ -29,6 +32,12 @@ describe NetSuite::Support::Fields do
29
32
  instance.one = 1
30
33
  expect(instance.one).to eql(1)
31
34
  end
35
+
36
+ it 'errors when already a field' do
37
+ klass.field :one
38
+
39
+ expect { klass.field :one }.to raise_error('one already defined on DummyRecord')
40
+ end
32
41
  end
33
42
 
34
43
  describe '.read_only_fields' do
@@ -57,4 +66,30 @@ describe NetSuite::Support::Fields do
57
66
  end
58
67
  end
59
68
 
69
+ describe '.search_only_fields' do
70
+ context 'with arguments' do
71
+ it 'calls .search_only_field with each argument passed to it' do
72
+ [:one, :two, :three].each do |field|
73
+ expect(klass).to receive(:search_only_field).with(field)
74
+ end
75
+ klass.search_only_fields(:one, :two, :three)
76
+ end
77
+ end
78
+
79
+ context 'without arguments' do
80
+ it 'returns a Set of the search_only_field arguments' do
81
+ arguments = [:one, :two, :three]
82
+ klass.search_only_fields(*arguments)
83
+ expect(klass.search_only_fields).to eql(Set.new(arguments))
84
+ end
85
+ end
86
+ end
87
+
88
+ describe '.search_only_field' do
89
+ it 'defines instance accessor methods for the given field' do
90
+ expect(klass).to receive(:field).with(:one)
91
+ klass.search_only_field(:one)
92
+ end
93
+ end
94
+
60
95
  end
@@ -0,0 +1,47 @@
1
+ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <soapenv:Header>
3
+ <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2017_2.platform.webservices.netsuite.com">
4
+ <platformMsgs:nsId>WEBSERVICES_4384362_0714202114843454571284681300_c8529d78de5</platformMsgs:nsId>
5
+ </platformMsgs:documentInfo>
6
+ </soapenv:Header>
7
+ <soapenv:Body>
8
+ <getResponse xmlns="urn:messages_2017_2.platform.webservices.netsuite.com">
9
+ <readResponse>
10
+ <platformCore:status xmlns:platformCore="urn:core_2017_2.platform.webservices.netsuite.com" isSuccess="true"/>
11
+ <record xmlns:tranCust="urn:customers_2017_2.transactions.webservices.netsuite.com" internalId="9948394" xsi:type="tranCust:CreditMemo">
12
+ <tranCust:createdDate>2021-07-14T12:45:42.000-07:00</tranCust:createdDate>
13
+ <tranCust:lastModifiedDate>2021-07-14T14:56:35.000-07:00</tranCust:lastModifiedDate>
14
+ <tranCust:customFieldList xmlns:platformCore="urn:core_2017_2.platform.webservices.netsuite.com">
15
+ <platformCore:customField internalId="520" scriptId="custbody_standard_select" xsi:type="platformCore:SelectCustomFieldRef">
16
+ <platformCore:value internalId="2" typeId="142">
17
+ <platformCore:name>Manual</platformCore:name>
18
+ </platformCore:value>
19
+ </platformCore:customField>
20
+ <platformCore:customField internalId="26" scriptId="custbody_date_field" xsi:type="platformCore:DateCustomFieldRef">
21
+ <platformCore:value>2021-07-13T22:00:00.000-07:00</platformCore:value>
22
+ </platformCore:customField>
23
+ <platformCore:customField internalId="1371" scriptId="custbody_string_field" xsi:type="platformCore:StringCustomFieldRef">
24
+ <platformCore:value>a very nice string</platformCore:value>
25
+ </platformCore:customField>
26
+ <platformCore:customField internalId="1593" scriptId="custbody_boolean_field" xsi:type="platformCore:BooleanCustomFieldRef">
27
+ <platformCore:value>false</platformCore:value>
28
+ </platformCore:customField>
29
+ <platformCore:customField internalId="1552" scriptId="custbody_multi_select_field" xsi:type="platformCore:MultiSelectCustomFieldRef">
30
+ <platformCore:value internalId="7623" typeId="164">
31
+ <platformCore:name>selection value</platformCore:name>
32
+ </platformCore:value>
33
+ </platformCore:customField>
34
+ <platformCore:customField internalId="1553" scriptId="custbody_multi_select_with_multiple" xsi:type="platformCore:MultiSelectCustomFieldRef">
35
+ <platformCore:value internalId="7613" typeId="164">
36
+ <platformCore:name>selection value 1</platformCore:name>
37
+ </platformCore:value>
38
+ <platformCore:value internalId="7614" typeId="165">
39
+ <platformCore:name>selection value 2</platformCore:name>
40
+ </platformCore:value>
41
+ </platformCore:customField>
42
+ </tranCust:customFieldList>
43
+ </record>
44
+ </readResponse>
45
+ </getResponse>
46
+ </soapenv:Body>
47
+ </soapenv:Envelope>
@@ -0,0 +1,55 @@
1
+ <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <soapenv:Header>
3
+ <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2012_1.platform.webservices.netsuite.com">
4
+ <platformMsgs:nsId>WEBSERVICES_3603333_SB1_0320201916835580962038419462_2ce0aa2</platformMsgs:nsId>
5
+ </platformMsgs:documentInfo>
6
+ </soapenv:Header>
7
+ <soapenv:Body>
8
+ <searchResponse xmlns="urn:messages_2012_1.platform.webservices.netsuite.com">
9
+ <platformCore:searchResult xmlns:platformCore="urn:core_2012_1.platform.webservices.netsuite.com">
10
+ <platformCore:status isSuccess="true"/>
11
+ <platformCore:totalRecords>49</platformCore:totalRecords>
12
+ <platformCore:pageSize>1000</platformCore:pageSize>
13
+ <platformCore:totalPages>1</platformCore:totalPages>
14
+ <platformCore:pageIndex>1</platformCore:pageIndex>
15
+ <platformCore:searchId>WEBSERVICES_3603333_SB1_0320201916835580962038419462_2ce0aa2</platformCore:searchId>
16
+ <platformCore:searchRowList>
17
+ <platformCore:searchRow xsi:type="listAcct:ItemSearchRow" xmlns:listAcct="urn:accounting_2012_1.lists.webservices.netsuite.com">
18
+ <listAcct:basic xmlns:platformCommon="urn:common_2012_1.platform.webservices.netsuite.com">
19
+ <platformCommon:department>
20
+ <platformCore:searchValue internalId="113"/>
21
+ <platformCore:customLabel>Business Unit</platformCore:customLabel>
22
+ </platformCommon:department>
23
+ <platformCommon:itemId>
24
+ <platformCore:searchValue>9781945179747</platformCore:searchValue>
25
+ <platformCore:customLabel>SKU</platformCore:customLabel>
26
+ </platformCommon:itemId>
27
+ <platformCommon:locationQuantityAvailable>
28
+ <platformCore:searchValue>3307.0</platformCore:searchValue>
29
+ <platformCore:customLabel>Qty - Available</platformCore:customLabel>
30
+ </platformCommon:locationQuantityAvailable>
31
+ <platformCommon:locationQuantityOnOrder>
32
+ <platformCore:searchValue>40000.0</platformCore:searchValue>
33
+ <platformCore:customLabel>Qty - On Order</platformCore:customLabel>
34
+ </platformCommon:locationQuantityOnOrder>
35
+ <platformCommon:locationReOrderPoint>
36
+ <platformCore:searchValue>2565.0</platformCore:searchValue>
37
+ <platformCore:customLabel>Qty - Reorder Point</platformCore:customLabel>
38
+ </platformCommon:locationReOrderPoint>
39
+ <platformCommon:customFieldList>
40
+ <platformCore:customField xsi:type="platformCore:SearchColumnSelectCustomField" internalId="custitem_productline">
41
+ <platformCore:searchValue typeId="37" internalId="123"/>
42
+ <platformCore:customLabel>Product Line</platformCore:customLabel>
43
+ </platformCore:customField>
44
+ <platformCore:customField xsi:type="platformCore:SearchColumnSelectCustomField" internalId="custitem_inv_reorder_status">
45
+ <platformCore:searchValue typeId="211" internalId="8"/>
46
+ <platformCore:customLabel>Reorder Status</platformCore:customLabel>
47
+ </platformCore:customField>
48
+ </platformCommon:customFieldList>
49
+ </listAcct:basic>
50
+ </platformCore:searchRow>
51
+ </platformCore:searchRowList>
52
+ </platformCore:searchResult>
53
+ </searchResponse>
54
+ </soapenv:Body>
55
+ </soapenv:Envelope>
@@ -16,6 +16,12 @@
16
16
  <platformCore:searchRowList>
17
17
  <platformCore:searchRow xmlns:listRel="urn:relationships_2012_1.lists.webservices.netsuite.com" xsi:type="listRel:CustomerSearchRow">
18
18
  <listRel:basic xmlns:platformCommon="urn:common_2012_1.platform.webservices.netsuite.com">
19
+ <platformCommon:internalId>
20
+ <platformCore:searchValue internalId="123"/>
21
+ </platformCommon:internalId>
22
+ <platformCommon:externalId>
23
+ <platformCore:searchValue externalId="456"/>
24
+ </platformCommon:externalId>
19
25
  <platformCommon:altName>
20
26
  <platformCore:searchValue>A Awesome Name</platformCore:searchValue>
21
27
  </platformCommon:altName>
@@ -37,6 +43,14 @@
37
43
  <platformCommon:phone>
38
44
  <platformCore:searchValue>444-444-4444</platformCore:searchValue>
39
45
  </platformCommon:phone>
46
+ <platformCommon:customFieldList>
47
+ <platformCore:customField internalId="1756" scriptId="custitem_stringfield" xsi:type="platformCore:SearchColumnStringCustomField">
48
+ <platformCore:searchValue>sample string value</platformCore:searchValue>
49
+ </platformCore:customField>
50
+ <platformCore:customField internalId="1713" scriptId="custitem_apcategoryforsales" xsi:type="platformCore:SearchColumnSelectCustomField">
51
+ <platformCore:searchValue internalId="4" typeId="464"/>
52
+ </platformCore:customField>
53
+ </platformCommon:customFieldList>
40
54
  </listRel:basic>
41
55
  <listRel:contactJoin xmlns:platformCommon="urn:common_2012_1.platform.webservices.netsuite.com">
42
56
  <platformCommon:email>
@@ -84,4 +98,4 @@
84
98
  </platformCore:searchResult>
85
99
  </searchResponse>
86
100
  </soapenv:Body>
87
- </soapenv:Envelope>
101
+ </soapenv:Envelope>
@@ -0,0 +1,7 @@
1
+ RSpec::Matchers.define :have_search_only_field do |attribute|
2
+
3
+ match do |model|
4
+ expect(model.search_only_fields.include?(attribute)).to be_truthy
5
+ end
6
+
7
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Moran
8
8
  - Michael Bianco
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-11 00:00:00.000000000 Z
12
+ date: 2021-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -18,6 +18,9 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 2.3.0
21
+ - - "<="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.11.1
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -25,36 +28,55 @@ dependencies:
25
28
  - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: 2.3.0
31
+ - - "<="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.11.1
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: rspec
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
38
  - - "~>"
33
39
  - !ruby/object:Gem::Version
34
- version: 3.8.0
40
+ version: 3.10.0
35
41
  type: :development
36
42
  prerelease: false
37
43
  version_requirements: !ruby/object:Gem::Requirement
38
44
  requirements:
39
45
  - - "~>"
40
46
  - !ruby/object:Gem::Version
41
- version: 3.8.0
47
+ version: 3.10.0
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
42
62
  description: NetSuite SuiteTalk API Wrapper
43
63
  email:
44
64
  - ryan.moran@gmail.com
45
- - mike@cliffsidemedia.com
65
+ - mike@mikebian.co
46
66
  executables: []
47
67
  extensions: []
48
68
  extra_rdoc_files: []
49
69
  files:
70
+ - ".github/workflows/main.yml"
50
71
  - ".gitignore"
51
72
  - ".rspec"
52
73
  - ".ruby-version"
74
+ - ".tool-versions"
53
75
  - Gemfile
76
+ - HISTORY.md
54
77
  - LICENSE
55
78
  - README.md
56
79
  - Rakefile
57
- - circle.yml
58
80
  - lib/netsuite.rb
59
81
  - lib/netsuite/actions/add.rb
60
82
  - lib/netsuite/actions/delete.rb
@@ -131,6 +153,7 @@ files:
131
153
  - lib/netsuite/records/contact_addressbook_list.rb
132
154
  - lib/netsuite/records/contact_list.rb
133
155
  - lib/netsuite/records/contact_role.rb
156
+ - lib/netsuite/records/cost_category.rb
134
157
  - lib/netsuite/records/credit_memo.rb
135
158
  - lib/netsuite/records/credit_memo_apply.rb
136
159
  - lib/netsuite/records/credit_memo_apply_list.rb
@@ -150,6 +173,8 @@ files:
150
173
  - lib/netsuite/records/customer_addressbook.rb
151
174
  - lib/netsuite/records/customer_addressbook_list.rb
152
175
  - lib/netsuite/records/customer_category.rb
176
+ - lib/netsuite/records/customer_credit_cards.rb
177
+ - lib/netsuite/records/customer_credit_cards_list.rb
153
178
  - lib/netsuite/records/customer_currency.rb
154
179
  - lib/netsuite/records/customer_currency_list.rb
155
180
  - lib/netsuite/records/customer_deposit.rb
@@ -160,6 +185,8 @@ files:
160
185
  - lib/netsuite/records/customer_payment.rb
161
186
  - lib/netsuite/records/customer_payment_apply.rb
162
187
  - lib/netsuite/records/customer_payment_apply_list.rb
188
+ - lib/netsuite/records/customer_payment_credit.rb
189
+ - lib/netsuite/records/customer_payment_credit_list.rb
163
190
  - lib/netsuite/records/customer_refund.rb
164
191
  - lib/netsuite/records/customer_refund_apply.rb
165
192
  - lib/netsuite/records/customer_refund_apply_list.rb
@@ -184,6 +211,9 @@ files:
184
211
  - lib/netsuite/records/duration.rb
185
212
  - lib/netsuite/records/employee.rb
186
213
  - lib/netsuite/records/entity_custom_field.rb
214
+ - lib/netsuite/records/estimate.rb
215
+ - lib/netsuite/records/estimate_item.rb
216
+ - lib/netsuite/records/estimate_item_list.rb
187
217
  - lib/netsuite/records/file.rb
188
218
  - lib/netsuite/records/folder.rb
189
219
  - lib/netsuite/records/gift_cert_redemption.rb
@@ -320,6 +350,8 @@ files:
320
350
  - lib/netsuite/records/vendor_credit_expense_list.rb
321
351
  - lib/netsuite/records/vendor_credit_item.rb
322
352
  - lib/netsuite/records/vendor_credit_item_list.rb
353
+ - lib/netsuite/records/vendor_currency.rb
354
+ - lib/netsuite/records/vendor_currency_list.rb
323
355
  - lib/netsuite/records/vendor_payment.rb
324
356
  - lib/netsuite/records/vendor_payment_apply.rb
325
357
  - lib/netsuite/records/vendor_payment_apply_list.rb
@@ -380,6 +412,7 @@ files:
380
412
  - spec/netsuite/records/cash_sale_item_spec.rb
381
413
  - spec/netsuite/records/cash_sale_spec.rb
382
414
  - spec/netsuite/records/classification_spec.rb
415
+ - spec/netsuite/records/cost_category_spec.rb
383
416
  - spec/netsuite/records/credit_memo_apply_list_spec.rb
384
417
  - spec/netsuite/records/credit_memo_apply_spec.rb
385
418
  - spec/netsuite/records/credit_memo_item_list_spec.rb
@@ -394,7 +427,9 @@ files:
394
427
  - spec/netsuite/records/custom_record_type_spec.rb
395
428
  - spec/netsuite/records/customer_addressbook_list_spec.rb
396
429
  - spec/netsuite/records/customer_addressbook_spec.rb
430
+ - spec/netsuite/records/customer_credit_cards_list_spec.rb
397
431
  - spec/netsuite/records/customer_payment_apply_list_spec.rb
432
+ - spec/netsuite/records/customer_payment_credit_list_spec.rb
398
433
  - spec/netsuite/records/customer_payment_spec.rb
399
434
  - spec/netsuite/records/customer_refund_apply_list_spec.rb
400
435
  - spec/netsuite/records/customer_refund_apply_spec.rb
@@ -411,6 +446,9 @@ files:
411
446
  - spec/netsuite/records/duration_spec.rb
412
447
  - spec/netsuite/records/employee_spec.rb
413
448
  - spec/netsuite/records/entity_custom_field_spec.rb
449
+ - spec/netsuite/records/estimate_item_list_spec.rb
450
+ - spec/netsuite/records/estimate_item_spec.rb
451
+ - spec/netsuite/records/estimate_spec.rb
414
452
  - spec/netsuite/records/file_spec.rb
415
453
  - spec/netsuite/records/folder_spec.rb
416
454
  - spec/netsuite/records/gift_cert_redemption_list_spec.rb
@@ -440,9 +478,11 @@ files:
440
478
  - spec/netsuite/records/location_spec.rb
441
479
  - spec/netsuite/records/matrix_option_list_spec.rb
442
480
  - spec/netsuite/records/message_spec.rb
481
+ - spec/netsuite/records/non_inventory_resale_item_spec.rb
443
482
  - spec/netsuite/records/non_inventory_sale_item_spec.rb
444
483
  - spec/netsuite/records/note_spec.rb
445
484
  - spec/netsuite/records/note_type_spec.rb
485
+ - spec/netsuite/records/partner_spec.rb
446
486
  - spec/netsuite/records/payment_item_spec.rb
447
487
  - spec/netsuite/records/payment_method_spec.rb
448
488
  - spec/netsuite/records/phone_call_spec.rb
@@ -457,6 +497,7 @@ files:
457
497
  - spec/netsuite/records/sales_order_item_spec.rb
458
498
  - spec/netsuite/records/sales_order_spec.rb
459
499
  - spec/netsuite/records/sales_tax_item_spec.rb
500
+ - spec/netsuite/records/service_resale_item_spec.rb
460
501
  - spec/netsuite/records/service_sale_item_spec.rb
461
502
  - spec/netsuite/records/ship_address_spec.rb
462
503
  - spec/netsuite/records/site_category_spec.rb
@@ -505,6 +546,7 @@ files:
505
546
  - spec/support/fixtures/add/add_invoice.xml
506
547
  - spec/support/fixtures/add/add_invoice_error.xml
507
548
  - spec/support/fixtures/add/add_invoice_multiple_errors.xml
549
+ - spec/support/fixtures/custom_fields/multi_select.xml
508
550
  - spec/support/fixtures/delete/delete_customer.xml
509
551
  - spec/support/fixtures/delete_list/delete_list_customers.xml
510
552
  - spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
@@ -516,6 +558,7 @@ files:
516
558
  - spec/support/fixtures/login/failure_invalid_credentials.xml
517
559
  - spec/support/fixtures/login/success.xml
518
560
  - spec/support/fixtures/search/saved_search_customer.xml
561
+ - spec/support/fixtures/search/saved_search_item.xml
519
562
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
520
563
  - spec/support/fixtures/update/update_customer.xml
521
564
  - spec/support/fixtures/update/update_customer_error.xml
@@ -534,10 +577,12 @@ files:
534
577
  - spec/support/read_only_field_matcher.rb
535
578
  - spec/support/record_ref_matcher.rb
536
579
  - spec/support/savon.rb
580
+ - spec/support/search_only_field_matcher.rb
537
581
  homepage: https://github.com/NetSweet/netsuite
538
- licenses: []
582
+ licenses:
583
+ - MIT
539
584
  metadata: {}
540
- post_install_message:
585
+ post_install_message:
541
586
  rdoc_options: []
542
587
  require_paths:
543
588
  - lib
@@ -552,9 +597,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
552
597
  - !ruby/object:Gem::Version
553
598
  version: '0'
554
599
  requirements: []
555
- rubyforge_project:
556
- rubygems_version: 2.5.1
557
- signing_key:
600
+ rubygems_version: 3.1.6
601
+ signing_key:
558
602
  specification_version: 4
559
603
  summary: NetSuite SuiteTalk API (SOAP) Wrapper
560
604
  test_files:
@@ -593,6 +637,7 @@ test_files:
593
637
  - spec/netsuite/records/cash_sale_item_spec.rb
594
638
  - spec/netsuite/records/cash_sale_spec.rb
595
639
  - spec/netsuite/records/classification_spec.rb
640
+ - spec/netsuite/records/cost_category_spec.rb
596
641
  - spec/netsuite/records/credit_memo_apply_list_spec.rb
597
642
  - spec/netsuite/records/credit_memo_apply_spec.rb
598
643
  - spec/netsuite/records/credit_memo_item_list_spec.rb
@@ -607,7 +652,9 @@ test_files:
607
652
  - spec/netsuite/records/custom_record_type_spec.rb
608
653
  - spec/netsuite/records/customer_addressbook_list_spec.rb
609
654
  - spec/netsuite/records/customer_addressbook_spec.rb
655
+ - spec/netsuite/records/customer_credit_cards_list_spec.rb
610
656
  - spec/netsuite/records/customer_payment_apply_list_spec.rb
657
+ - spec/netsuite/records/customer_payment_credit_list_spec.rb
611
658
  - spec/netsuite/records/customer_payment_spec.rb
612
659
  - spec/netsuite/records/customer_refund_apply_list_spec.rb
613
660
  - spec/netsuite/records/customer_refund_apply_spec.rb
@@ -624,6 +671,9 @@ test_files:
624
671
  - spec/netsuite/records/duration_spec.rb
625
672
  - spec/netsuite/records/employee_spec.rb
626
673
  - spec/netsuite/records/entity_custom_field_spec.rb
674
+ - spec/netsuite/records/estimate_item_list_spec.rb
675
+ - spec/netsuite/records/estimate_item_spec.rb
676
+ - spec/netsuite/records/estimate_spec.rb
627
677
  - spec/netsuite/records/file_spec.rb
628
678
  - spec/netsuite/records/folder_spec.rb
629
679
  - spec/netsuite/records/gift_cert_redemption_list_spec.rb
@@ -653,9 +703,11 @@ test_files:
653
703
  - spec/netsuite/records/location_spec.rb
654
704
  - spec/netsuite/records/matrix_option_list_spec.rb
655
705
  - spec/netsuite/records/message_spec.rb
706
+ - spec/netsuite/records/non_inventory_resale_item_spec.rb
656
707
  - spec/netsuite/records/non_inventory_sale_item_spec.rb
657
708
  - spec/netsuite/records/note_spec.rb
658
709
  - spec/netsuite/records/note_type_spec.rb
710
+ - spec/netsuite/records/partner_spec.rb
659
711
  - spec/netsuite/records/payment_item_spec.rb
660
712
  - spec/netsuite/records/payment_method_spec.rb
661
713
  - spec/netsuite/records/phone_call_spec.rb
@@ -670,6 +722,7 @@ test_files:
670
722
  - spec/netsuite/records/sales_order_item_spec.rb
671
723
  - spec/netsuite/records/sales_order_spec.rb
672
724
  - spec/netsuite/records/sales_tax_item_spec.rb
725
+ - spec/netsuite/records/service_resale_item_spec.rb
673
726
  - spec/netsuite/records/service_sale_item_spec.rb
674
727
  - spec/netsuite/records/ship_address_spec.rb
675
728
  - spec/netsuite/records/site_category_spec.rb
@@ -718,6 +771,7 @@ test_files:
718
771
  - spec/support/fixtures/add/add_invoice.xml
719
772
  - spec/support/fixtures/add/add_invoice_error.xml
720
773
  - spec/support/fixtures/add/add_invoice_multiple_errors.xml
774
+ - spec/support/fixtures/custom_fields/multi_select.xml
721
775
  - spec/support/fixtures/delete/delete_customer.xml
722
776
  - spec/support/fixtures/delete_list/delete_list_customers.xml
723
777
  - spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
@@ -729,6 +783,7 @@ test_files:
729
783
  - spec/support/fixtures/login/failure_invalid_credentials.xml
730
784
  - spec/support/fixtures/login/success.xml
731
785
  - spec/support/fixtures/search/saved_search_customer.xml
786
+ - spec/support/fixtures/search/saved_search_item.xml
732
787
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
733
788
  - spec/support/fixtures/update/update_customer.xml
734
789
  - spec/support/fixtures/update/update_customer_error.xml
@@ -747,3 +802,4 @@ test_files:
747
802
  - spec/support/read_only_field_matcher.rb
748
803
  - spec/support/record_ref_matcher.rb
749
804
  - spec/support/savon.rb
805
+ - spec/support/search_only_field_matcher.rb