netsuite 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +15 -0
  2. data/README.md +14 -12
  3. data/lib/netsuite.rb +16 -2
  4. data/lib/netsuite/actions/delete_list.rb +104 -0
  5. data/lib/netsuite/actions/login.rb +26 -1
  6. data/lib/netsuite/actions/search.rb +7 -3
  7. data/lib/netsuite/actions/upsert.rb +0 -4
  8. data/lib/netsuite/configuration.rb +1 -0
  9. data/lib/netsuite/namespaces/tran_purch.rb +11 -0
  10. data/lib/netsuite/records/cash_refund.rb +2 -2
  11. data/lib/netsuite/records/cash_sale.rb +41 -1
  12. data/lib/netsuite/records/cash_sale_item.rb +40 -0
  13. data/lib/netsuite/records/cash_sale_item_list.rb +25 -0
  14. data/lib/netsuite/records/contact.rb +1 -1
  15. data/lib/netsuite/records/contact_list.rb +1 -4
  16. data/lib/netsuite/records/credit_memo.rb +1 -1
  17. data/lib/netsuite/records/credit_memo_apply_list.rb +1 -4
  18. data/lib/netsuite/records/credit_memo_item.rb +1 -0
  19. data/lib/netsuite/records/credit_memo_item_list.rb +1 -4
  20. data/lib/netsuite/records/custom_field_list.rb +3 -0
  21. data/lib/netsuite/records/customer.rb +8 -8
  22. data/lib/netsuite/records/customer_payment.rb +1 -1
  23. data/lib/netsuite/records/customer_payment_apply.rb +1 -1
  24. data/lib/netsuite/records/customer_payment_apply_list.rb +13 -9
  25. data/lib/netsuite/records/customer_refund.rb +1 -1
  26. data/lib/netsuite/records/customer_refund_apply_list.rb +7 -3
  27. data/lib/netsuite/records/customer_refund_deposit_list.rb +1 -1
  28. data/lib/netsuite/records/deposit.rb +3 -3
  29. data/lib/netsuite/records/deposit_payment_list.rb +5 -2
  30. data/lib/netsuite/records/employee.rb +12 -4
  31. data/lib/netsuite/records/inventory_assignment.rb +1 -1
  32. data/lib/netsuite/records/inventory_assignment_list.rb +3 -1
  33. data/lib/netsuite/records/inventory_detail.rb +3 -3
  34. data/lib/netsuite/records/inventory_item.rb +4 -0
  35. data/lib/netsuite/records/invoice.rb +8 -4
  36. data/lib/netsuite/records/invoice_item_list.rb +4 -21
  37. data/lib/netsuite/records/job.rb +1 -1
  38. data/lib/netsuite/records/kit_item.rb +1 -1
  39. data/lib/netsuite/records/partner.rb +4 -2
  40. data/lib/netsuite/records/payment_method.rb +1 -1
  41. data/lib/netsuite/records/promotion_code.rb +1 -1
  42. data/lib/netsuite/records/rev_rec_template.rb +1 -1
  43. data/lib/netsuite/records/sales_order.rb +1 -1
  44. data/lib/netsuite/records/sales_order_item_list.rb +0 -1
  45. data/lib/netsuite/records/service_sale_item.rb +2 -2
  46. data/lib/netsuite/records/vendor_bill.rb +45 -0
  47. data/lib/netsuite/records/vendor_bill_expense.rb +40 -0
  48. data/lib/netsuite/records/vendor_bill_expense_list.rb +32 -0
  49. data/lib/netsuite/records/vendor_bill_item.rb +45 -0
  50. data/lib/netsuite/records/vendor_bill_item_list.rb +32 -0
  51. data/lib/netsuite/records/vendor_payment.rb +43 -0
  52. data/lib/netsuite/records/vendor_payment_apply.rb +16 -0
  53. data/lib/netsuite/records/vendor_payment_apply_list.rb +32 -0
  54. data/lib/netsuite/support/actions.rb +2 -2
  55. data/lib/netsuite/support/sublist.rb +13 -0
  56. data/lib/netsuite/version.rb +1 -1
  57. data/netsuite.gemspec +1 -1
  58. data/spec/netsuite/actions/delete_list_spec.rb +86 -0
  59. data/spec/netsuite/actions/login_spec.rb +21 -0
  60. data/spec/netsuite/records/cash_refund_spec.rb +1 -1
  61. data/spec/netsuite/records/cash_sale_item_list_spec.rb +27 -0
  62. data/spec/netsuite/records/cash_sale_item_spec.rb +23 -0
  63. data/spec/netsuite/records/credit_memo_apply_list_spec.rb +7 -8
  64. data/spec/netsuite/records/credit_memo_item_list_spec.rb +6 -8
  65. data/spec/netsuite/records/customer_payment_apply_list_spec.rb +25 -0
  66. data/spec/netsuite/records/customer_refund_apply_list_spec.rb +6 -8
  67. data/spec/netsuite/records/customer_spec.rb +6 -6
  68. data/spec/netsuite/records/employee_spec.rb +152 -0
  69. data/spec/netsuite/records/inventory_assignment_list_spec.rb +59 -0
  70. data/spec/netsuite/records/inventory_assignment_spec.rb +21 -0
  71. data/spec/netsuite/records/inventory_detail_spec.rb +13 -0
  72. data/spec/netsuite/records/invoice_spec.rb +3 -3
  73. data/spec/netsuite/records/job_spec.rb +4 -0
  74. data/spec/netsuite/records/vendor_bill_expense_list_spec.rb +36 -0
  75. data/spec/netsuite/records/vendor_bill_expense_spec.rb +72 -0
  76. data/spec/netsuite/records/vendor_bill_item_list_spec.rb +36 -0
  77. data/spec/netsuite/records/vendor_bill_item_spec.rb +118 -0
  78. data/spec/netsuite/records/vendor_bill_spec.rb +187 -0
  79. data/spec/netsuite/records/vendor_payment_apply_list_spec.rb +25 -0
  80. data/spec/netsuite/records/vendor_payment_apply_spec.rb +15 -0
  81. data/spec/netsuite/records/vendor_payment_spec.rb +164 -0
  82. data/spec/netsuite/support/sublist_spec.rb +6 -0
  83. data/spec/support/fixtures/delete_list/delete_list_customers.xml +26 -0
  84. data/spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml +31 -0
  85. data/spec/support/fixtures/login.xml +35 -0
  86. metadata +58 -12
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe NetSuite::Records::VendorPaymentApplyList do
4
+ let(:list) { NetSuite::Records::VendorPaymentApplyList.new }
5
+ let(:apply) { NetSuite::Records::VendorPaymentApply.new }
6
+
7
+ it 'can have applies be added to it' do
8
+ list.applies << apply
9
+ apply_list = list.applies
10
+ expect(apply_list).to be_kind_of(Array)
11
+ expect(apply_list.length).to eql(1)
12
+ apply_list.each { |i| expect(i).to be_kind_of(NetSuite::Records::VendorPaymentApply) }
13
+ end
14
+
15
+ describe '#to_record' do
16
+ it 'can represent itself as a SOAP record' do
17
+ record = {
18
+ 'tranPurch:apply' => [{},{}]
19
+ }
20
+ list.applies.concat([apply,apply])
21
+ expect(list.to_record).to eql(record)
22
+ end
23
+ end
24
+
25
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe NetSuite::Records::VendorPaymentApply do
4
+ let(:apply) { NetSuite::Records::VendorPaymentApply.new }
5
+
6
+ it 'has all the right fields' do
7
+ [
8
+ :amount, :apply, :apply_date, :currency, :disc, :disc_amt, :disc_date, :doc, :due, :line,
9
+ :job, :ref_num, :total, :type
10
+ ].each do |field|
11
+ expect(apply).to have_field(field)
12
+ end
13
+ end
14
+
15
+ end
@@ -0,0 +1,164 @@
1
+ require 'spec_helper'
2
+
3
+ describe NetSuite::Records::VendorPayment do
4
+ let(:payment) { NetSuite::Records::VendorPayment.new }
5
+ let(:vendor) { NetSuite::Records::Vendor.new }
6
+ let(:response) { NetSuite::Response.new(:success => true, :body => { :@internal_id => '1', :@external_id => 'some id' }) }
7
+
8
+ it 'has all the right fields' do
9
+ [
10
+ :address, :balance, :bill_pay, :created_at, :credit_list, :currency_name, :exchange_rate, :last_modified_date,
11
+ :memo, :print_voucher, :status, :to_ach, :to_be_printed, :total, :tran_date, :tran_id, :transaction_number
12
+ ].each do |field|
13
+ expect(payment).to have_field(field)
14
+ end
15
+ end
16
+
17
+ it 'has all the right record refs' do
18
+ [
19
+ :account, :ap_acct, :currency, :custom_form, :department, :entity, :klass, :location, :posting_period,
20
+ :subsidiary, :void_journal
21
+ ].each do |record_ref|
22
+ expect(payment).to have_record_ref(record_ref)
23
+ end
24
+ end
25
+
26
+ describe '#custom_field_list' do
27
+ it 'can be set from attributes' do
28
+ attributes = {
29
+ :custom_field => {
30
+ :amount => 10,
31
+ :internal_id => 'custfield_amount'
32
+ }
33
+ }
34
+ payment.custom_field_list = attributes
35
+ expect(payment.custom_field_list).to be_kind_of(NetSuite::Records::CustomFieldList)
36
+ expect(payment.custom_field_list.custom_fields.length).to eql(1)
37
+ end
38
+
39
+ it 'can be set from a CustomFieldList object' do
40
+ custom_field_list = NetSuite::Records::CustomFieldList.new
41
+ payment.custom_field_list = custom_field_list
42
+ expect(payment.custom_field_list).to eql(custom_field_list)
43
+ end
44
+ end
45
+
46
+ describe '#apply_list' do
47
+ it 'can be set from attributes' do
48
+ attributes = {
49
+ :apply => {
50
+ :amount => 10
51
+ }
52
+ }
53
+ payment.apply_list = attributes
54
+ expect(payment.apply_list).to be_kind_of(NetSuite::Records::VendorPaymentApplyList)
55
+ expect(payment.apply_list.applies.length).to eql(1)
56
+ end
57
+
58
+ it 'can be set from a VendorPaymentApplyList object' do
59
+ apply_list = NetSuite::Records::VendorPaymentApplyList.new
60
+ payment.apply_list = apply_list
61
+ expect(payment.apply_list).to eql(apply_list)
62
+ end
63
+ end
64
+
65
+ describe '.get' do
66
+ context 'when the response is successful' do
67
+ it 'returns an VendorPayment instance populated with the data from the response object' do
68
+ expect(NetSuite::Actions::Get).to receive(:call).with([NetSuite::Records::VendorPayment, external_id: 'some id'], {}).and_return(response)
69
+ payment = NetSuite::Records::VendorPayment.get(external_id: 'some id')
70
+ expect(payment).to be_kind_of(NetSuite::Records::VendorPayment)
71
+ expect(payment.internal_id).to eql('1')
72
+ end
73
+ end
74
+
75
+ context 'when the response is unsuccessful' do
76
+ let(:response) { NetSuite::Response.new(:success => false, :body => {}) }
77
+
78
+ it 'raises a RecordNotFound exception' do
79
+ expect(NetSuite::Actions::Get).to receive(:call).with([NetSuite::Records::VendorPayment, external_id: 'some id'], {}).and_return(response)
80
+ expect {
81
+ NetSuite::Records::VendorPayment.get(external_id: 'some id')
82
+ }.to raise_error(NetSuite::RecordNotFound,
83
+ /NetSuite::Records::VendorPayment with OPTIONS=(.*) could not be found/)
84
+ end
85
+ end
86
+ end
87
+
88
+ describe '.initialize' do
89
+ context 'when the request is successful' do
90
+ it 'returns an initialized vendor payment from the vendor entity' do
91
+ expect(NetSuite::Actions::Initialize).to receive(:call).with([NetSuite::Records::VendorPayment, vendor], {}).and_return(response)
92
+ payment = NetSuite::Records::VendorPayment.initialize(vendor)
93
+ expect(payment).to be_kind_of(NetSuite::Records::VendorPayment)
94
+ end
95
+ end
96
+
97
+ context 'when the response is unsuccessful' do
98
+ let(:response) { NetSuite::Response.new(:success => false, :body => {}) }
99
+
100
+ it 'raises a InitializationError exception' do
101
+ expect(NetSuite::Actions::Initialize).to receive(:call).with([NetSuite::Records::VendorPayment, vendor], {}).and_return(response)
102
+ expect {
103
+ NetSuite::Records::VendorPayment.initialize(vendor)
104
+ }.to raise_error(NetSuite::InitializationError,
105
+ /NetSuite::Records::VendorPayment.initialize with .+ failed./)
106
+ end
107
+ end
108
+ end
109
+
110
+ describe '#add' do
111
+ context 'when the response is successful' do
112
+ it 'returns true' do
113
+ expect(NetSuite::Actions::Add).to receive(:call).with([payment], {}).and_return(response)
114
+ expect(payment.add).to be_truthy
115
+ expect(payment.internal_id).to eq('1')
116
+ end
117
+ end
118
+
119
+ context 'when the response is unsuccessful' do
120
+ let(:response) { NetSuite::Response.new(:success => false, :body => {}) }
121
+ it 'returns false' do
122
+ expect(NetSuite::Actions::Add).to receive(:call).with([payment], {}).and_return(response)
123
+ expect(payment.add).to be_falsey
124
+ end
125
+ end
126
+ end
127
+
128
+ describe '#delete' do
129
+ context 'when the response is successful' do
130
+ it 'returns true' do
131
+ expect(NetSuite::Actions::Delete).to receive(:call).with([payment], {}).and_return(response)
132
+ expect(payment.delete).to be_truthy
133
+ end
134
+ end
135
+
136
+ context 'when the response is unsuccessful' do
137
+ let(:response) { NetSuite::Response.new(:success => false, :body => {}) }
138
+ it 'returns false' do
139
+ expect(NetSuite::Actions::Delete).to receive(:call).with([payment], {}).and_return(response)
140
+ expect(payment.delete).to be_falsey
141
+ end
142
+ end
143
+ end
144
+
145
+ describe '#to_record' do
146
+ before do
147
+ payment.memo = 'some payment'
148
+ payment.total = '123'
149
+ end
150
+ it 'can represent itself as a SOAP record' do
151
+ record = {
152
+ 'tranPurch:memo' => 'some payment',
153
+ 'tranPurch:total' => '123'
154
+ }
155
+ expect(payment.to_record).to eql(record)
156
+ end
157
+ end
158
+
159
+ describe '#record_type' do
160
+ it 'returns a string representation of the SOAP type' do
161
+ expect(payment.record_type).to eql('tranPurch:VendorPayment')
162
+ end
163
+ end
164
+ end
@@ -33,4 +33,10 @@ describe NetSuite::Records::ItemFulfillmentItemList do
33
33
  expect(i.sublist_key).to eq(:item)
34
34
  expect(i.to_record["tranSales:replaceAll"]).to eq(false)
35
35
  end
36
+
37
+ it "should accept the shorthand append syntax" do
38
+ i = NetSuite::Records::ItemFulfillmentItemList.new
39
+ i << { quantity: 1 }
40
+ expect(i.item.size).to eq(1)
41
+ end
36
42
  end
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <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">
3
+ <soapenv:Header>
4
+ <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2011_2.platform.webservices.netsuite.com">
5
+ <platformMsgs:nsId>WEBSERVICES_3392464_1220201115821392011296470399_67055c545d0</platformMsgs:nsId>
6
+ </platformMsgs:documentInfo>
7
+ </soapenv:Header>
8
+ <soapenv:Body>
9
+ <deleteListResponse xmlns="urn:messages_2_5.platform.webservices.netsuite.com">
10
+ <writeResponseList xmlns="urn:messages_2_5.platform.webservices.netsuite.com">
11
+ <writeResponse>
12
+ <ns1:status isSuccess="true" xmlns:ns1="urn:core_2_5.platform.webservices.netsuite.com"/>
13
+ <baseRef internalId="1" type="customer" xsi:type="ns2:RecordRef"
14
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15
+ xmlns:ns2="urn:core_2_5.platform.webservices.netsuite.com"/>
16
+ </writeResponse>
17
+ <writeResponse>
18
+ <ns3:status isSuccess="true" xmlns:ns3="urn:core_2_5.platform.webservices.netsuite.com"/>
19
+ <baseRef internalId="2" type="customer" xsi:type="ns4:RecordRef"
20
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21
+ xmlns:ns4="urn:core_2_5.platform.webservices.netsuite.com"/>
22
+ </writeResponse>
23
+ </writeResponseList>
24
+ </deleteListResponse>
25
+ </soapenv:Body>
26
+ </soapenv:Envelope>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <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">
3
+ <soapenv:Header>
4
+ <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2011_2.platform.webservices.netsuite.com">
5
+ <platformMsgs:nsId>WEBSERVICES_3392464_1220201115821392011296470399_67055c545d0</platformMsgs:nsId>
6
+ </platformMsgs:documentInfo>
7
+ </soapenv:Header>
8
+ <soapenv:Body>
9
+ <deleteListResponse xmlns="urn:messages_2_5.platform.webservices.netsuite.com">
10
+ <writeResponseList xmlns="urn:messages_2_5.platform.webservices.netsuite.com">
11
+ <writeResponse>
12
+ <ns1:status isSuccess="true" xmlns:ns1="urn:core_2_5.platform.webservices.netsuite.com"/>
13
+ <baseRef internalId="1" type="customer" xsi:type="ns2:RecordRef"
14
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15
+ xmlns:ns2="urn:core_2_5.platform.webservices.netsuite.com"/>
16
+ </writeResponse>
17
+ <writeResponse>
18
+ <ns3:status isSuccess="false" xmlns:ns3="urn:core_2_5.platform.webservices.netsuite.com">
19
+ <ns3:statusDetail type="ERROR">
20
+ <ns3:code>USER_EXCEPTION</ns3:code>
21
+ <ns3:message>Invalid record: type=event,id=100015,scompid=TSTDRV96</ns3:message>
22
+ </ns3:statusDetail>
23
+ </ns3:status>
24
+ <baseRef internalId="bad_id" type="customer" xsi:type="ns4:RecordRef"
25
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26
+ xmlns:ns4="urn:core_2_5.platform.webservices.netsuite.com"/>
27
+ </writeResponse>
28
+ </writeResponseList>
29
+ </deleteListResponse>
30
+ </soapenv:Body>
31
+ </soapenv:Envelope>
@@ -0,0 +1,35 @@
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_2013_1.platform.webservices.netsuite.com">
4
+ <platformMsgs:nsId>WEBSERVICES_1050000_022120151347972620982848545_59961c863594</platformMsgs:nsId>
5
+ </platformMsgs:documentInfo>
6
+ </soapenv:Header>
7
+ <soapenv:Body>
8
+ <loginResponse xmlns="urn:messages_2013_1.platform.webservices.netsuite.com">
9
+ <sessionResponse>
10
+ <platformCore:status xmlns:platformCore="urn:core_2013_1.platform.webservices.netsuite.com" isSuccess="true"/>
11
+ <userId xmlns:platformCore="urn:core_2013_1.platform.webservices.netsuite.com" internalId="460362">
12
+ <platformCore:name>REDACTED NAME</platformCore:name>
13
+ </userId>
14
+ <platformCore:wsRoleList xmlns:platformCore="urn:core_2013_1.platform.webservices.netsuite.com">
15
+ <platformCore:wsRole>
16
+ <platformCore:role internalId="1047">
17
+ <platformCore:name>REDACTED ROLE</platformCore:name>
18
+ </platformCore:role>
19
+ <platformCore:isDefault>false</platformCore:isDefault>
20
+ <platformCore:isInactive>false</platformCore:isInactive>
21
+ <platformCore:isLoggedInRole>true</platformCore:isLoggedInRole>
22
+ </platformCore:wsRole>
23
+ <platformCore:wsRole>
24
+ <platformCore:role internalId="1047">
25
+ <platformCore:name>REDACTED ROLE</platformCore:name>
26
+ </platformCore:role>
27
+ <platformCore:isDefault>false</platformCore:isDefault>
28
+ <platformCore:isInactive>false</platformCore:isInactive>
29
+ <platformCore:isLoggedInRole>true</platformCore:isLoggedInRole>
30
+ </platformCore:wsRole>
31
+ </platformCore:wsRoleList>
32
+ </sessionResponse>
33
+ </loginResponse>
34
+ </soapenv:Body>
35
+ </soapenv:Envelope>
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Moran
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2015-02-02 00:00:00.000000000 Z
12
+ date: 2015-04-23 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: savon
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rspec
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
@@ -62,6 +57,7 @@ files:
62
57
  - lib/netsuite.rb
63
58
  - lib/netsuite/actions/add.rb
64
59
  - lib/netsuite/actions/delete.rb
60
+ - lib/netsuite/actions/delete_list.rb
65
61
  - lib/netsuite/actions/get.rb
66
62
  - lib/netsuite/actions/get_all.rb
67
63
  - lib/netsuite/actions/get_list.rb
@@ -90,6 +86,7 @@ files:
90
86
  - lib/netsuite/namespaces/tran_cust.rb
91
87
  - lib/netsuite/namespaces/tran_general.rb
92
88
  - lib/netsuite/namespaces/tran_invt.rb
89
+ - lib/netsuite/namespaces/tran_purch.rb
93
90
  - lib/netsuite/namespaces/tran_sales.rb
94
91
  - lib/netsuite/records/account.rb
95
92
  - lib/netsuite/records/accounting_period.rb
@@ -108,6 +105,8 @@ files:
108
105
  - lib/netsuite/records/cash_refund_item.rb
109
106
  - lib/netsuite/records/cash_refund_item_list.rb
110
107
  - lib/netsuite/records/cash_sale.rb
108
+ - lib/netsuite/records/cash_sale_item.rb
109
+ - lib/netsuite/records/cash_sale_item_list.rb
111
110
  - lib/netsuite/records/classification.rb
112
111
  - lib/netsuite/records/contact.rb
113
112
  - lib/netsuite/records/contact_access_roles.rb
@@ -202,6 +201,14 @@ files:
202
201
  - lib/netsuite/records/units_type_uom.rb
203
202
  - lib/netsuite/records/units_type_uom_list.rb
204
203
  - lib/netsuite/records/vendor.rb
204
+ - lib/netsuite/records/vendor_bill.rb
205
+ - lib/netsuite/records/vendor_bill_expense.rb
206
+ - lib/netsuite/records/vendor_bill_expense_list.rb
207
+ - lib/netsuite/records/vendor_bill_item.rb
208
+ - lib/netsuite/records/vendor_bill_item_list.rb
209
+ - lib/netsuite/records/vendor_payment.rb
210
+ - lib/netsuite/records/vendor_payment_apply.rb
211
+ - lib/netsuite/records/vendor_payment_apply_list.rb
205
212
  - lib/netsuite/records/work_order.rb
206
213
  - lib/netsuite/records/work_order_item.rb
207
214
  - lib/netsuite/records/work_order_item_list.rb
@@ -220,10 +227,12 @@ files:
220
227
  - lib/netsuite/version.rb
221
228
  - netsuite.gemspec
222
229
  - spec/netsuite/actions/add_spec.rb
230
+ - spec/netsuite/actions/delete_list_spec.rb
223
231
  - spec/netsuite/actions/delete_spec.rb
224
232
  - spec/netsuite/actions/get_list_spec.rb
225
233
  - spec/netsuite/actions/get_spec.rb
226
234
  - spec/netsuite/actions/initialize_spec.rb
235
+ - spec/netsuite/actions/login_spec.rb
227
236
  - spec/netsuite/actions/search_spec.rb
228
237
  - spec/netsuite/actions/update_spec.rb
229
238
  - spec/netsuite/actions/upsert_list_spec.rb
@@ -242,6 +251,8 @@ files:
242
251
  - spec/netsuite/records/cash_refund_item_list_spec.rb
243
252
  - spec/netsuite/records/cash_refund_item_spec.rb
244
253
  - spec/netsuite/records/cash_refund_spec.rb
254
+ - spec/netsuite/records/cash_sale_item_list_spec.rb
255
+ - spec/netsuite/records/cash_sale_item_spec.rb
245
256
  - spec/netsuite/records/classification_spec.rb
246
257
  - spec/netsuite/records/credit_memo_apply_list_spec.rb
247
258
  - spec/netsuite/records/credit_memo_apply_spec.rb
@@ -256,6 +267,7 @@ files:
256
267
  - spec/netsuite/records/custom_record_type_spec.rb
257
268
  - spec/netsuite/records/customer_addressbook_list_spec.rb
258
269
  - spec/netsuite/records/customer_addressbook_spec.rb
270
+ - spec/netsuite/records/customer_payment_apply_list_spec.rb
259
271
  - spec/netsuite/records/customer_payment_spec.rb
260
272
  - spec/netsuite/records/customer_refund_apply_list_spec.rb
261
273
  - spec/netsuite/records/customer_refund_apply_spec.rb
@@ -267,6 +279,10 @@ files:
267
279
  - spec/netsuite/records/deposit_spec.rb
268
280
  - spec/netsuite/records/discount_item_spec.rb
269
281
  - spec/netsuite/records/duration_spec.rb
282
+ - spec/netsuite/records/employee_spec.rb
283
+ - spec/netsuite/records/inventory_assignment_list_spec.rb
284
+ - spec/netsuite/records/inventory_assignment_spec.rb
285
+ - spec/netsuite/records/inventory_detail_spec.rb
270
286
  - spec/netsuite/records/inventory_item_spec.rb
271
287
  - spec/netsuite/records/inventory_transfer_spec.rb
272
288
  - spec/netsuite/records/invoice_item_list_spec.rb
@@ -300,6 +316,14 @@ files:
300
316
  - spec/netsuite/records/units_type_spec.rb
301
317
  - spec/netsuite/records/units_type_uom_list_spec.rb
302
318
  - spec/netsuite/records/units_type_uom_spec.rb
319
+ - spec/netsuite/records/vendor_bill_expense_list_spec.rb
320
+ - spec/netsuite/records/vendor_bill_expense_spec.rb
321
+ - spec/netsuite/records/vendor_bill_item_list_spec.rb
322
+ - spec/netsuite/records/vendor_bill_item_spec.rb
323
+ - spec/netsuite/records/vendor_bill_spec.rb
324
+ - spec/netsuite/records/vendor_payment_apply_list_spec.rb
325
+ - spec/netsuite/records/vendor_payment_apply_spec.rb
326
+ - spec/netsuite/records/vendor_payment_spec.rb
303
327
  - spec/netsuite/records/vendor_spec.rb
304
328
  - spec/netsuite/records/work_order_item_list_spec.rb
305
329
  - spec/netsuite/records/work_order_item_spec.rb
@@ -321,9 +345,12 @@ files:
321
345
  - spec/support/fixtures/add/add_invoice_error.xml
322
346
  - spec/support/fixtures/add/add_invoice_multiple_errors.xml
323
347
  - spec/support/fixtures/delete/delete_customer.xml
348
+ - spec/support/fixtures/delete_list/delete_list_customers.xml
349
+ - spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
324
350
  - spec/support/fixtures/get/get_customer.xml
325
351
  - spec/support/fixtures/get/get_invoice.xml
326
352
  - spec/support/fixtures/initialize/initialize_invoice_from_customer.xml
353
+ - spec/support/fixtures/login.xml
327
354
  - spec/support/fixtures/search/saved_search_customer.xml
328
355
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
329
356
  - spec/support/fixtures/update/update_customer.xml
@@ -342,36 +369,37 @@ files:
342
369
  - spec/support/savon.rb
343
370
  - wsdl/2011_2.wsdl
344
371
  - wsdl/2012_1.wsdl
345
- homepage: https://github.com/RevolutionPrep/netsuite
372
+ homepage: https://github.com/NetSweet/netsuite
346
373
  licenses: []
374
+ metadata: {}
347
375
  post_install_message:
348
376
  rdoc_options: []
349
377
  require_paths:
350
378
  - lib
351
379
  required_ruby_version: !ruby/object:Gem::Requirement
352
- none: false
353
380
  requirements:
354
381
  - - ! '>='
355
382
  - !ruby/object:Gem::Version
356
383
  version: '0'
357
384
  required_rubygems_version: !ruby/object:Gem::Requirement
358
- none: false
359
385
  requirements:
360
386
  - - ! '>='
361
387
  - !ruby/object:Gem::Version
362
388
  version: '0'
363
389
  requirements: []
364
390
  rubyforge_project:
365
- rubygems_version: 1.8.23.2
391
+ rubygems_version: 2.4.6
366
392
  signing_key:
367
- specification_version: 3
393
+ specification_version: 4
368
394
  summary: NetSuite SuiteTalk API (SOAP) Wrapper
369
395
  test_files:
370
396
  - spec/netsuite/actions/add_spec.rb
397
+ - spec/netsuite/actions/delete_list_spec.rb
371
398
  - spec/netsuite/actions/delete_spec.rb
372
399
  - spec/netsuite/actions/get_list_spec.rb
373
400
  - spec/netsuite/actions/get_spec.rb
374
401
  - spec/netsuite/actions/initialize_spec.rb
402
+ - spec/netsuite/actions/login_spec.rb
375
403
  - spec/netsuite/actions/search_spec.rb
376
404
  - spec/netsuite/actions/update_spec.rb
377
405
  - spec/netsuite/actions/upsert_list_spec.rb
@@ -390,6 +418,8 @@ test_files:
390
418
  - spec/netsuite/records/cash_refund_item_list_spec.rb
391
419
  - spec/netsuite/records/cash_refund_item_spec.rb
392
420
  - spec/netsuite/records/cash_refund_spec.rb
421
+ - spec/netsuite/records/cash_sale_item_list_spec.rb
422
+ - spec/netsuite/records/cash_sale_item_spec.rb
393
423
  - spec/netsuite/records/classification_spec.rb
394
424
  - spec/netsuite/records/credit_memo_apply_list_spec.rb
395
425
  - spec/netsuite/records/credit_memo_apply_spec.rb
@@ -404,6 +434,7 @@ test_files:
404
434
  - spec/netsuite/records/custom_record_type_spec.rb
405
435
  - spec/netsuite/records/customer_addressbook_list_spec.rb
406
436
  - spec/netsuite/records/customer_addressbook_spec.rb
437
+ - spec/netsuite/records/customer_payment_apply_list_spec.rb
407
438
  - spec/netsuite/records/customer_payment_spec.rb
408
439
  - spec/netsuite/records/customer_refund_apply_list_spec.rb
409
440
  - spec/netsuite/records/customer_refund_apply_spec.rb
@@ -415,6 +446,10 @@ test_files:
415
446
  - spec/netsuite/records/deposit_spec.rb
416
447
  - spec/netsuite/records/discount_item_spec.rb
417
448
  - spec/netsuite/records/duration_spec.rb
449
+ - spec/netsuite/records/employee_spec.rb
450
+ - spec/netsuite/records/inventory_assignment_list_spec.rb
451
+ - spec/netsuite/records/inventory_assignment_spec.rb
452
+ - spec/netsuite/records/inventory_detail_spec.rb
418
453
  - spec/netsuite/records/inventory_item_spec.rb
419
454
  - spec/netsuite/records/inventory_transfer_spec.rb
420
455
  - spec/netsuite/records/invoice_item_list_spec.rb
@@ -448,6 +483,14 @@ test_files:
448
483
  - spec/netsuite/records/units_type_spec.rb
449
484
  - spec/netsuite/records/units_type_uom_list_spec.rb
450
485
  - spec/netsuite/records/units_type_uom_spec.rb
486
+ - spec/netsuite/records/vendor_bill_expense_list_spec.rb
487
+ - spec/netsuite/records/vendor_bill_expense_spec.rb
488
+ - spec/netsuite/records/vendor_bill_item_list_spec.rb
489
+ - spec/netsuite/records/vendor_bill_item_spec.rb
490
+ - spec/netsuite/records/vendor_bill_spec.rb
491
+ - spec/netsuite/records/vendor_payment_apply_list_spec.rb
492
+ - spec/netsuite/records/vendor_payment_apply_spec.rb
493
+ - spec/netsuite/records/vendor_payment_spec.rb
451
494
  - spec/netsuite/records/vendor_spec.rb
452
495
  - spec/netsuite/records/work_order_item_list_spec.rb
453
496
  - spec/netsuite/records/work_order_item_spec.rb
@@ -469,9 +512,12 @@ test_files:
469
512
  - spec/support/fixtures/add/add_invoice_error.xml
470
513
  - spec/support/fixtures/add/add_invoice_multiple_errors.xml
471
514
  - spec/support/fixtures/delete/delete_customer.xml
515
+ - spec/support/fixtures/delete_list/delete_list_customers.xml
516
+ - spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
472
517
  - spec/support/fixtures/get/get_customer.xml
473
518
  - spec/support/fixtures/get/get_invoice.xml
474
519
  - spec/support/fixtures/initialize/initialize_invoice_from_customer.xml
520
+ - spec/support/fixtures/login.xml
475
521
  - spec/support/fixtures/search/saved_search_customer.xml
476
522
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
477
523
  - spec/support/fixtures/update/update_customer.xml