netsuite 0.2.6 → 0.3.0

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 (152) hide show
  1. data/.travis.yml +3 -0
  2. data/Gemfile +2 -0
  3. data/README.md +132 -54
  4. data/lib/netsuite.rb +123 -76
  5. data/lib/netsuite/actions/add.rb +1 -0
  6. data/lib/netsuite/actions/delete.rb +1 -0
  7. data/lib/netsuite/actions/get.rb +1 -0
  8. data/lib/netsuite/actions/get_all.rb +67 -0
  9. data/lib/netsuite/actions/get_list.rb +2 -1
  10. data/lib/netsuite/actions/get_select_value.rb +1 -0
  11. data/lib/netsuite/actions/initialize.rb +1 -0
  12. data/lib/netsuite/actions/login.rb +2 -0
  13. data/lib/netsuite/actions/search.rb +3 -2
  14. data/lib/netsuite/actions/update.rb +18 -0
  15. data/lib/netsuite/actions/upsert.rb +1 -0
  16. data/lib/netsuite/actions/upsert_list.rb +114 -0
  17. data/lib/netsuite/configuration.rb +5 -0
  18. data/lib/netsuite/namespaces/file_cabinet.rb +11 -0
  19. data/lib/netsuite/namespaces/list_emp.rb +12 -0
  20. data/lib/netsuite/namespaces/list_mkt.rb +12 -0
  21. data/lib/netsuite/namespaces/list_website.rb +11 -0
  22. data/lib/netsuite/namespaces/tran_invt.rb +11 -0
  23. data/lib/netsuite/records/accounting_period.rb +1 -1
  24. data/lib/netsuite/records/assembly_item.rb +10 -4
  25. data/lib/netsuite/records/billing_schedule.rb +33 -0
  26. data/lib/netsuite/records/billing_schedule_milestone.rb +28 -0
  27. data/lib/netsuite/records/billing_schedule_milestone_list.rb +33 -0
  28. data/lib/netsuite/records/billing_schedule_recurrence.rb +28 -0
  29. data/lib/netsuite/records/billing_schedule_recurrence_list.rb +33 -0
  30. data/lib/netsuite/records/bin.rb +22 -0
  31. data/lib/netsuite/records/campaign.rb +28 -0
  32. data/lib/netsuite/records/cash_refund.rb +1 -1
  33. data/lib/netsuite/records/classification.rb +1 -1
  34. data/lib/netsuite/records/contact.rb +1 -1
  35. data/lib/netsuite/records/contact_access_roles.rb +14 -0
  36. data/lib/netsuite/records/contact_access_roles_list.rb +9 -0
  37. data/lib/netsuite/records/custom_field.rb +2 -1
  38. data/lib/netsuite/records/custom_field_list.rb +23 -4
  39. data/lib/netsuite/records/custom_list.rb +27 -0
  40. data/lib/netsuite/records/custom_list_custom_value.rb +14 -0
  41. data/lib/netsuite/records/custom_list_custom_value_list.rb +13 -0
  42. data/lib/netsuite/records/custom_record.rb +1 -1
  43. data/lib/netsuite/records/custom_record_type.rb +1 -1
  44. data/lib/netsuite/records/customer.rb +4 -4
  45. data/lib/netsuite/records/customer_addressbook.rb +8 -5
  46. data/lib/netsuite/records/customer_addressbook_list.rb +13 -1
  47. data/lib/netsuite/records/customer_deposit.rb +3 -2
  48. data/lib/netsuite/records/customer_payment.rb +1 -1
  49. data/lib/netsuite/records/customer_refund.rb +1 -1
  50. data/lib/netsuite/records/department.rb +4 -2
  51. data/lib/netsuite/records/deposit.rb +1 -1
  52. data/lib/netsuite/records/deposit_cash_back.rb +2 -2
  53. data/lib/netsuite/records/deposit_other.rb +2 -2
  54. data/lib/netsuite/records/discount_item.rb +32 -0
  55. data/lib/netsuite/records/employee.rb +20 -0
  56. data/lib/netsuite/records/file.rb +28 -0
  57. data/lib/netsuite/records/inventory_assignment.rb +24 -0
  58. data/lib/netsuite/records/inventory_assignment_list.rb +32 -0
  59. data/lib/netsuite/records/inventory_detail.rb +18 -0
  60. data/lib/netsuite/records/inventory_transfer.rb +29 -0
  61. data/lib/netsuite/records/inventory_transfer_inventory.rb +21 -0
  62. data/lib/netsuite/records/inventory_transfer_inventory_list.rb +33 -0
  63. data/lib/netsuite/records/item_fulfillment.rb +1 -1
  64. data/lib/netsuite/records/item_fulfillment_item_list.rb +3 -21
  65. data/lib/netsuite/records/item_member.rb +21 -0
  66. data/lib/netsuite/records/journal_entry.rb +1 -1
  67. data/lib/netsuite/records/kit_item.rb +1 -1
  68. data/lib/netsuite/records/location.rb +3 -1
  69. data/lib/netsuite/records/member_list.rb +32 -0
  70. data/lib/netsuite/records/non_inventory_sale_item.rb +4 -1
  71. data/lib/netsuite/records/partner.rb +21 -0
  72. data/lib/netsuite/records/promotion_code.rb +38 -0
  73. data/lib/netsuite/records/record_ref_list.rb +40 -0
  74. data/lib/netsuite/records/role_list.rb +25 -0
  75. data/lib/netsuite/records/sales_order.rb +6 -2
  76. data/lib/netsuite/records/sales_tax_item.rb +32 -0
  77. data/lib/netsuite/records/site_category.rb +33 -0
  78. data/lib/netsuite/records/subsidiary.rb +38 -0
  79. data/lib/netsuite/records/tax_type.rb +22 -0
  80. data/lib/netsuite/records/term.rb +1 -1
  81. data/lib/netsuite/records/units_type.rb +25 -0
  82. data/lib/netsuite/records/units_type_uom.rb +20 -0
  83. data/lib/netsuite/records/units_type_uom_list.rb +33 -0
  84. data/lib/netsuite/records/work_order.rb +38 -0
  85. data/lib/netsuite/records/work_order_item.rb +31 -0
  86. data/lib/netsuite/records/work_order_item_list.rb +31 -0
  87. data/lib/netsuite/support/actions.rb +4 -0
  88. data/lib/netsuite/support/base.rb +21 -0
  89. data/lib/netsuite/support/country.rb +273 -0
  90. data/lib/netsuite/support/search_result.rb +4 -0
  91. data/lib/netsuite/support/sublist.rb +54 -0
  92. data/lib/netsuite/version.rb +1 -1
  93. data/spec/netsuite/actions/search_spec.rb +1 -1
  94. data/spec/netsuite/actions/update_spec.rb +62 -31
  95. data/spec/netsuite/actions/upsert_list_spec.rb +112 -0
  96. data/spec/netsuite/records/account_spec.rb +4 -4
  97. data/spec/netsuite/records/accounting_period_spec.rb +4 -4
  98. data/spec/netsuite/records/assembly_item_spec.rb +38 -0
  99. data/spec/netsuite/records/billing_schedule_milestone_list_spec.rb +24 -0
  100. data/spec/netsuite/records/billing_schedule_milestone_spec.rb +51 -0
  101. data/spec/netsuite/records/billing_schedule_recurrence_list_spec.rb +24 -0
  102. data/spec/netsuite/records/billing_schedule_recurrence_spec.rb +49 -0
  103. data/spec/netsuite/records/billing_schedule_spec.rb +164 -0
  104. data/spec/netsuite/records/campaign_spec.rb +43 -0
  105. data/spec/netsuite/records/cash_refund_spec.rb +1 -1
  106. data/spec/netsuite/records/classification_spec.rb +2 -2
  107. data/spec/netsuite/records/credit_memo_spec.rb +4 -4
  108. data/spec/netsuite/records/custom_field_list_spec.rb +10 -0
  109. data/spec/netsuite/records/custom_list_spec.rb +21 -0
  110. data/spec/netsuite/records/custom_record_spec.rb +5 -5
  111. data/spec/netsuite/records/custom_record_type_spec.rb +5 -5
  112. data/spec/netsuite/records/customer_addressbook_list_spec.rb +19 -1
  113. data/spec/netsuite/records/customer_addressbook_spec.rb +42 -13
  114. data/spec/netsuite/records/customer_payment_spec.rb +4 -4
  115. data/spec/netsuite/records/customer_refund_spec.rb +4 -4
  116. data/spec/netsuite/records/customer_spec.rb +80 -6
  117. data/spec/netsuite/records/department_spec.rb +4 -4
  118. data/spec/netsuite/records/deposit_spec.rb +22 -4
  119. data/spec/netsuite/records/discount_item_spec.rb +124 -0
  120. data/spec/netsuite/records/inventory_item_spec.rb +4 -4
  121. data/spec/netsuite/records/inventory_transfer_spec.rb +58 -0
  122. data/spec/netsuite/records/invoice_spec.rb +4 -4
  123. data/spec/netsuite/records/job_spec.rb +7 -7
  124. data/spec/netsuite/records/journal_entry_spec.rb +5 -5
  125. data/spec/netsuite/records/non_inventory_sale_item_spec.rb +4 -4
  126. data/spec/netsuite/records/payment_method_spec.rb +1 -1
  127. data/spec/netsuite/records/pomo_code_spec.rb +40 -0
  128. data/spec/netsuite/records/sales_order_spec.rb +18 -18
  129. data/spec/netsuite/records/sales_tax_item_spec.rb +30 -0
  130. data/spec/netsuite/records/service_sale_item_spec.rb +4 -4
  131. data/spec/netsuite/records/site_category_spec.rb +51 -0
  132. data/spec/netsuite/records/subsidiary_spec.rb +25 -0
  133. data/spec/netsuite/records/support_case_spec.rb +8 -8
  134. data/spec/netsuite/records/tax_type_spec.rb +11 -0
  135. data/spec/netsuite/records/term_spec.rb +4 -4
  136. data/spec/netsuite/records/units_type_spec.rb +33 -0
  137. data/spec/netsuite/records/units_type_uom_list_spec.rb +23 -0
  138. data/spec/netsuite/records/units_type_uom_spec.rb +14 -0
  139. data/spec/netsuite/records/work_order_item_list_spec.rb +26 -0
  140. data/spec/netsuite/records/work_order_item_spec.rb +45 -0
  141. data/spec/netsuite/records/work_order_spec.rb +92 -0
  142. data/spec/netsuite/support/record_refs_spec.rb +1 -1
  143. data/spec/netsuite/support/sublist_spec.rb +36 -0
  144. data/spec/spec_helper.rb +1 -0
  145. data/spec/support/fixtures/update/update_customer_error.xml +21 -0
  146. data/spec/support/fixtures/update/update_customer_multiple_errors.xml +25 -0
  147. data/spec/support/fixtures/upsert_list/upsert_list_customers.xml +21 -0
  148. data/spec/support/fixtures/upsert_list/upsert_list_one_customer.xml +17 -0
  149. data/spec/support/fixtures/upsert_list/upsert_list_with_errors.xml +32 -0
  150. data/spec/support/read_only_field_matcher.rb +1 -1
  151. metadata +115 -5
  152. checksums.yaml +0 -15
@@ -2,6 +2,7 @@ $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..') ))
2
2
 
3
3
  require 'rspec'
4
4
  require 'netsuite'
5
+ require 'pry'
5
6
 
6
7
  # Requires supporting ruby files with custom matchers and macros, etc,
7
8
  # in spec/support/ and its subdirectories.
@@ -0,0 +1,21 @@
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_011220127305624241236468140_8ef09e2dc9b2</platformMsgs:nsId>
6
+ </platformMsgs:documentInfo>
7
+ </soapenv:Header>
8
+ <soapenv:Body>
9
+ <updateResponse xmlns="urn:messages_2011_2.platform.webservices.netsuite.com">
10
+ <writeResponse>
11
+ <platformCore:status isSuccess="false" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com">
12
+ <platformCore:statusDetail type="ERROR">
13
+ <platformCore:code>INSUFFICIENT_PERMISSION</platformCore:code>
14
+ <platformCore:message>You do not have permissions to set a value for element addrtext due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.</platformCore:message>
15
+ </platformCore:statusDetail>
16
+ </platformCore:status>
17
+ <baseRef internalId="329" externalId="100001" type="customer" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
18
+ </writeResponse>
19
+ </updateResponse>
20
+ </soapenv:Body>
21
+ </soapenv:Envelope>
@@ -0,0 +1,25 @@
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_011220127305624241236468140_8ef09e2dc9b2</platformMsgs:nsId>
6
+ </platformMsgs:documentInfo>
7
+ </soapenv:Header>
8
+ <soapenv:Body>
9
+ <updateResponse xmlns="urn:messages_2011_2.platform.webservices.netsuite.com">
10
+ <writeResponse>
11
+ <platformCore:status isSuccess="false" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com">
12
+ <platformCore:statusDetail type="ERROR">
13
+ <platformCore:code>First error code</platformCore:code>
14
+ <platformCore:message>First error message</platformCore:message>
15
+ </platformCore:statusDetail>
16
+ <platformCore:statusDetail type="WARNING">
17
+ <platformCore:code>Second error code</platformCore:code>
18
+ <platformCore:message>Second error message</platformCore:message>
19
+ </platformCore:statusDetail>
20
+ </platformCore:status>
21
+ <baseRef internalId="329" externalId="100001" type="customer" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
22
+ </writeResponse>
23
+ </updateResponse>
24
+ </soapenv:Body>
25
+ </soapenv:Envelope>
@@ -0,0 +1,21 @@
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_2014_1.platform.webservices.netsuite.com">
5
+ <platformMsgs:nsId>WEBSERVICES_3392464_1220201115821392011296470399_67055c545d0</platformMsgs:nsId>
6
+ </platformMsgs:documentInfo>
7
+ </soapenv:Header>
8
+ <soapenv:Body>
9
+ <upsertListResponse xmlns="urn:messages_2011_2.platform.webservices.netsuite.com">
10
+ <writeResponseList>
11
+ <writeResponse>
12
+ <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
13
+ <baseRef internalId="970" externalId="ext1" type="customer" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
14
+ </writeResponse>
15
+ <writeResponse>
16
+ <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
17
+ <baseRef internalId="974" externalId="ext2" type="customer" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
18
+ </writeResponse>
19
+ </writeResponseList>
20
+ </upsertListResponse>
21
+ </soapenv:Body>
@@ -0,0 +1,17 @@
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_2014_1.platform.webservices.netsuite.com">
5
+ <platformMsgs:nsId>WEBSERVICES_3392464_1220201115821392011296470399_67055c545d0</platformMsgs:nsId>
6
+ </platformMsgs:documentInfo>
7
+ </soapenv:Header>
8
+ <soapenv:Body>
9
+ <upsertListResponse xmlns="urn:messages_2011_2.platform.webservices.netsuite.com">
10
+ <writeResponseList>
11
+ <writeResponse>
12
+ <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
13
+ <baseRef internalId="974" externalId="ext2" type="customer" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2011_2.platform.webservices.netsuite.com"/>
14
+ </writeResponse>
15
+ </writeResponseList>
16
+ </upsertListResponse>
17
+ </soapenv:Body>
@@ -0,0 +1,32 @@
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_2014_1.platform.webservices.netsuite.com">
5
+ <platformMsgs:nsId>WEBSERVICES_3868171_1117201410832887841076557109_965331437a3</platformMsgs:nsId>
6
+ </platformMsgs:documentInfo>
7
+ </soapenv:Header>
8
+ <soapenv:Body>
9
+ <upsertListResponse xmlns="urn:messages_2014_1.platform.webservices.netsuite.com">
10
+ <writeResponseList>
11
+ <writeResponse>
12
+ <platformCore:status xmlns:platformCore="urn:core_2014_1.platform.webservices.netsuite.com" isSuccess="false">
13
+ <platformCore:statusDetail type="ERROR">
14
+ <platformCore:code>USER_ERROR</platformCore:code>
15
+ <platformCore:message>Please enter value(s) for: Item</platformCore:message>
16
+ </platformCore:statusDetail>
17
+ </platformCore:status>
18
+ <baseRef xmlns:platformCore="urn:core_2014_1.platform.webservices.netsuite.com" externalId="ext1" type="customer" xsi:type="platformCore:RecordRef"/>
19
+ </writeResponse>
20
+ <writeResponse>
21
+ <platformCore:status xmlns:platformCore="urn:core_2014_1.platform.webservices.netsuite.com" isSuccess="false">
22
+ <platformCore:statusDetail type="ERROR">
23
+ <platformCore:code>USER_ERROR</platformCore:code>
24
+ <platformCore:message>Please enter value(s) for: Item</platformCore:message>
25
+ </platformCore:statusDetail>
26
+ </platformCore:status>
27
+ <baseRef xmlns:platformCore="urn:core_2014_1.platform.webservices.netsuite.com" externalId="ext2" type="customer" xsi:type="platformCore:RecordRef"/>
28
+ </writeResponse>
29
+ </writeResponseList>
30
+ </upsertListResponse>
31
+ </soapenv:Body>
32
+ </soapenv:Envelope>
@@ -1,7 +1,7 @@
1
1
  RSpec::Matchers.define :have_read_only_field do |attribute|
2
2
 
3
3
  match do |model|
4
- model.read_only_fields.include?(attribute).should be_true
4
+ model.read_only_fields.include?(attribute).should be_truthy
5
5
  end
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ryan Moran
@@ -9,11 +10,12 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-07-14 00:00:00.000000000 Z
13
+ date: 2014-12-16 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: savon
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
20
  - - ~>
19
21
  - !ruby/object:Gem::Version
@@ -21,6 +23,7 @@ dependencies:
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
28
  - - ~>
26
29
  - !ruby/object:Gem::Version
@@ -28,6 +31,7 @@ dependencies:
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: rspec
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
36
  - - ~>
33
37
  - !ruby/object:Gem::Version
@@ -35,6 +39,7 @@ dependencies:
35
39
  type: :development
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
44
  - - ~>
40
45
  - !ruby/object:Gem::Version
@@ -49,6 +54,7 @@ extra_rdoc_files: []
49
54
  files:
50
55
  - .gitignore
51
56
  - .rspec
57
+ - .travis.yml
52
58
  - Gemfile
53
59
  - LICENSE
54
60
  - README.md
@@ -57,6 +63,7 @@ files:
57
63
  - lib/netsuite/actions/add.rb
58
64
  - lib/netsuite/actions/delete.rb
59
65
  - lib/netsuite/actions/get.rb
66
+ - lib/netsuite/actions/get_all.rb
60
67
  - lib/netsuite/actions/get_list.rb
61
68
  - lib/netsuite/actions/get_select_value.rb
62
69
  - lib/netsuite/actions/initialize.rb
@@ -64,32 +71,47 @@ files:
64
71
  - lib/netsuite/actions/search.rb
65
72
  - lib/netsuite/actions/update.rb
66
73
  - lib/netsuite/actions/upsert.rb
74
+ - lib/netsuite/actions/upsert_list.rb
67
75
  - lib/netsuite/configuration.rb
68
76
  - lib/netsuite/core_ext/string/lower_camelcase.rb
69
77
  - lib/netsuite/errors.rb
70
78
  - lib/netsuite/namespaces/act_sched.rb
79
+ - lib/netsuite/namespaces/file_cabinet.rb
71
80
  - lib/netsuite/namespaces/list_acct.rb
81
+ - lib/netsuite/namespaces/list_emp.rb
82
+ - lib/netsuite/namespaces/list_mkt.rb
72
83
  - lib/netsuite/namespaces/list_rel.rb
73
84
  - lib/netsuite/namespaces/list_support.rb
85
+ - lib/netsuite/namespaces/list_website.rb
74
86
  - lib/netsuite/namespaces/platform_common.rb
75
87
  - lib/netsuite/namespaces/platform_core.rb
76
88
  - lib/netsuite/namespaces/setup_custom.rb
77
89
  - lib/netsuite/namespaces/tran_bank.rb
78
90
  - lib/netsuite/namespaces/tran_cust.rb
79
91
  - lib/netsuite/namespaces/tran_general.rb
92
+ - lib/netsuite/namespaces/tran_invt.rb
80
93
  - lib/netsuite/namespaces/tran_sales.rb
81
94
  - lib/netsuite/records/account.rb
82
95
  - lib/netsuite/records/accounting_period.rb
83
96
  - lib/netsuite/records/assembly_item.rb
84
97
  - lib/netsuite/records/base_ref_list.rb
85
98
  - lib/netsuite/records/bill_address.rb
99
+ - lib/netsuite/records/billing_schedule.rb
100
+ - lib/netsuite/records/billing_schedule_milestone.rb
101
+ - lib/netsuite/records/billing_schedule_milestone_list.rb
102
+ - lib/netsuite/records/billing_schedule_recurrence.rb
103
+ - lib/netsuite/records/billing_schedule_recurrence_list.rb
104
+ - lib/netsuite/records/bin.rb
86
105
  - lib/netsuite/records/bin_number_list.rb
106
+ - lib/netsuite/records/campaign.rb
87
107
  - lib/netsuite/records/cash_refund.rb
88
108
  - lib/netsuite/records/cash_refund_item.rb
89
109
  - lib/netsuite/records/cash_refund_item_list.rb
90
110
  - lib/netsuite/records/cash_sale.rb
91
111
  - lib/netsuite/records/classification.rb
92
112
  - lib/netsuite/records/contact.rb
113
+ - lib/netsuite/records/contact_access_roles.rb
114
+ - lib/netsuite/records/contact_access_roles_list.rb
93
115
  - lib/netsuite/records/contact_list.rb
94
116
  - lib/netsuite/records/credit_memo.rb
95
117
  - lib/netsuite/records/credit_memo_apply.rb
@@ -98,6 +120,9 @@ files:
98
120
  - lib/netsuite/records/credit_memo_item_list.rb
99
121
  - lib/netsuite/records/custom_field.rb
100
122
  - lib/netsuite/records/custom_field_list.rb
123
+ - lib/netsuite/records/custom_list.rb
124
+ - lib/netsuite/records/custom_list_custom_value.rb
125
+ - lib/netsuite/records/custom_list_custom_value_list.rb
101
126
  - lib/netsuite/records/custom_record.rb
102
127
  - lib/netsuite/records/custom_record_ref.rb
103
128
  - lib/netsuite/records/custom_record_type.rb
@@ -121,8 +146,17 @@ files:
121
146
  - lib/netsuite/records/deposit_other_list.rb
122
147
  - lib/netsuite/records/deposit_payment.rb
123
148
  - lib/netsuite/records/deposit_payment_list.rb
149
+ - lib/netsuite/records/discount_item.rb
124
150
  - lib/netsuite/records/duration.rb
151
+ - lib/netsuite/records/employee.rb
152
+ - lib/netsuite/records/file.rb
153
+ - lib/netsuite/records/inventory_assignment.rb
154
+ - lib/netsuite/records/inventory_assignment_list.rb
155
+ - lib/netsuite/records/inventory_detail.rb
125
156
  - lib/netsuite/records/inventory_item.rb
157
+ - lib/netsuite/records/inventory_transfer.rb
158
+ - lib/netsuite/records/inventory_transfer_inventory.rb
159
+ - lib/netsuite/records/inventory_transfer_inventory_list.rb
126
160
  - lib/netsuite/records/invoice.rb
127
161
  - lib/netsuite/records/invoice_item.rb
128
162
  - lib/netsuite/records/invoice_item_list.rb
@@ -131,6 +165,7 @@ files:
131
165
  - lib/netsuite/records/item_fulfillment_item_list.rb
132
166
  - lib/netsuite/records/item_fulfillment_package.rb
133
167
  - lib/netsuite/records/item_fulfillment_package_list.rb
168
+ - lib/netsuite/records/item_member.rb
134
169
  - lib/netsuite/records/job.rb
135
170
  - lib/netsuite/records/journal_entry.rb
136
171
  - lib/netsuite/records/journal_entry_line.rb
@@ -139,29 +174,47 @@ files:
139
174
  - lib/netsuite/records/location.rb
140
175
  - lib/netsuite/records/locations_list.rb
141
176
  - lib/netsuite/records/matrix_option_list.rb
177
+ - lib/netsuite/records/member_list.rb
142
178
  - lib/netsuite/records/non_inventory_sale_item.rb
179
+ - lib/netsuite/records/partner.rb
143
180
  - lib/netsuite/records/payment_method.rb
144
181
  - lib/netsuite/records/phone_call.rb
145
182
  - lib/netsuite/records/pricing_matrix.rb
183
+ - lib/netsuite/records/promotion_code.rb
146
184
  - lib/netsuite/records/record_ref.rb
185
+ - lib/netsuite/records/record_ref_list.rb
147
186
  - lib/netsuite/records/rev_rec_template.rb
187
+ - lib/netsuite/records/role_list.rb
148
188
  - lib/netsuite/records/sales_order.rb
149
189
  - lib/netsuite/records/sales_order_item.rb
150
190
  - lib/netsuite/records/sales_order_item_list.rb
191
+ - lib/netsuite/records/sales_tax_item.rb
151
192
  - lib/netsuite/records/service_sale_item.rb
152
193
  - lib/netsuite/records/ship_address.rb
194
+ - lib/netsuite/records/site_category.rb
195
+ - lib/netsuite/records/subsidiary.rb
153
196
  - lib/netsuite/records/support_case.rb
154
197
  - lib/netsuite/records/task.rb
198
+ - lib/netsuite/records/tax_type.rb
155
199
  - lib/netsuite/records/term.rb
156
200
  - lib/netsuite/records/transaction.rb
201
+ - lib/netsuite/records/units_type.rb
202
+ - lib/netsuite/records/units_type_uom.rb
203
+ - lib/netsuite/records/units_type_uom_list.rb
204
+ - lib/netsuite/records/work_order.rb
205
+ - lib/netsuite/records/work_order_item.rb
206
+ - lib/netsuite/records/work_order_item_list.rb
157
207
  - lib/netsuite/response.rb
158
208
  - lib/netsuite/support/actions.rb
159
209
  - lib/netsuite/support/attributes.rb
210
+ - lib/netsuite/support/base.rb
211
+ - lib/netsuite/support/country.rb
160
212
  - lib/netsuite/support/fields.rb
161
213
  - lib/netsuite/support/record_refs.rb
162
214
  - lib/netsuite/support/records.rb
163
215
  - lib/netsuite/support/requests.rb
164
216
  - lib/netsuite/support/search_result.rb
217
+ - lib/netsuite/support/sublist.rb
165
218
  - lib/netsuite/utilities.rb
166
219
  - lib/netsuite/version.rb
167
220
  - netsuite.gemspec
@@ -171,11 +224,19 @@ files:
171
224
  - spec/netsuite/actions/initialize_spec.rb
172
225
  - spec/netsuite/actions/search_spec.rb
173
226
  - spec/netsuite/actions/update_spec.rb
227
+ - spec/netsuite/actions/upsert_list_spec.rb
174
228
  - spec/netsuite/actions/upsert_spec.rb
175
229
  - spec/netsuite/configuration_spec.rb
176
230
  - spec/netsuite/records/account_spec.rb
177
231
  - spec/netsuite/records/accounting_period_spec.rb
232
+ - spec/netsuite/records/assembly_item_spec.rb
178
233
  - spec/netsuite/records/bill_address_spec.rb
234
+ - spec/netsuite/records/billing_schedule_milestone_list_spec.rb
235
+ - spec/netsuite/records/billing_schedule_milestone_spec.rb
236
+ - spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
237
+ - spec/netsuite/records/billing_schedule_recurrence_spec.rb
238
+ - spec/netsuite/records/billing_schedule_spec.rb
239
+ - spec/netsuite/records/campaign_spec.rb
179
240
  - spec/netsuite/records/cash_refund_item_list_spec.rb
180
241
  - spec/netsuite/records/cash_refund_item_spec.rb
181
242
  - spec/netsuite/records/cash_refund_spec.rb
@@ -187,6 +248,7 @@ files:
187
248
  - spec/netsuite/records/credit_memo_spec.rb
188
249
  - spec/netsuite/records/custom_field_list_spec.rb
189
250
  - spec/netsuite/records/custom_field_spec.rb
251
+ - spec/netsuite/records/custom_list_spec.rb
190
252
  - spec/netsuite/records/custom_record_ref_spec.rb
191
253
  - spec/netsuite/records/custom_record_spec.rb
192
254
  - spec/netsuite/records/custom_record_type_spec.rb
@@ -201,8 +263,10 @@ files:
201
263
  - spec/netsuite/records/customer_spec.rb
202
264
  - spec/netsuite/records/department_spec.rb
203
265
  - spec/netsuite/records/deposit_spec.rb
266
+ - spec/netsuite/records/discount_item_spec.rb
204
267
  - spec/netsuite/records/duration_spec.rb
205
268
  - spec/netsuite/records/inventory_item_spec.rb
269
+ - spec/netsuite/records/inventory_transfer_spec.rb
206
270
  - spec/netsuite/records/invoice_item_list_spec.rb
207
271
  - spec/netsuite/records/invoice_item_spec.rb
208
272
  - spec/netsuite/records/invoice_spec.rb
@@ -217,15 +281,26 @@ files:
217
281
  - spec/netsuite/records/non_inventory_sale_item_spec.rb
218
282
  - spec/netsuite/records/payment_method_spec.rb
219
283
  - spec/netsuite/records/phone_call_spec.rb
284
+ - spec/netsuite/records/pomo_code_spec.rb
220
285
  - spec/netsuite/records/record_ref_spec.rb
221
286
  - spec/netsuite/records/rev_rec_template_spec.rb
222
287
  - spec/netsuite/records/sales_order_item_list_spec.rb
223
288
  - spec/netsuite/records/sales_order_item_spec.rb
224
289
  - spec/netsuite/records/sales_order_spec.rb
290
+ - spec/netsuite/records/sales_tax_item_spec.rb
225
291
  - spec/netsuite/records/service_sale_item_spec.rb
226
292
  - spec/netsuite/records/ship_address_spec.rb
293
+ - spec/netsuite/records/site_category_spec.rb
294
+ - spec/netsuite/records/subsidiary_spec.rb
227
295
  - spec/netsuite/records/support_case_spec.rb
296
+ - spec/netsuite/records/tax_type_spec.rb
228
297
  - spec/netsuite/records/term_spec.rb
298
+ - spec/netsuite/records/units_type_spec.rb
299
+ - spec/netsuite/records/units_type_uom_list_spec.rb
300
+ - spec/netsuite/records/units_type_uom_spec.rb
301
+ - spec/netsuite/records/work_order_item_list_spec.rb
302
+ - spec/netsuite/records/work_order_item_spec.rb
303
+ - spec/netsuite/records/work_order_spec.rb
229
304
  - spec/netsuite/response_spec.rb
230
305
  - spec/netsuite/support/actions_spec.rb
231
306
  - spec/netsuite/support/attributes_spec.rb
@@ -233,6 +308,7 @@ files:
233
308
  - spec/netsuite/support/record_refs_spec.rb
234
309
  - spec/netsuite/support/records_spec.rb
235
310
  - spec/netsuite/support/requests_spec.rb
311
+ - spec/netsuite/support/sublist_spec.rb
236
312
  - spec/netsuite_spec.rb
237
313
  - spec/spec_helper.rb
238
314
  - spec/support/configuration.rb
@@ -248,11 +324,16 @@ files:
248
324
  - spec/support/fixtures/search/saved_search_customer.xml
249
325
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
250
326
  - spec/support/fixtures/update/update_customer.xml
327
+ - spec/support/fixtures/update/update_customer_error.xml
328
+ - spec/support/fixtures/update/update_customer_multiple_errors.xml
251
329
  - spec/support/fixtures/update/update_invoice.xml
252
330
  - spec/support/fixtures/upsert/upsert_customer.xml
253
331
  - spec/support/fixtures/upsert/upsert_invoice.xml
254
332
  - spec/support/fixtures/upsert/upsert_invoice_error.xml
255
333
  - spec/support/fixtures/upsert/upsert_invoice_multiple_errors.xml
334
+ - spec/support/fixtures/upsert_list/upsert_list_customers.xml
335
+ - spec/support/fixtures/upsert_list/upsert_list_one_customer.xml
336
+ - spec/support/fixtures/upsert_list/upsert_list_with_errors.xml
256
337
  - spec/support/read_only_field_matcher.rb
257
338
  - spec/support/record_ref_matcher.rb
258
339
  - spec/support/savon.rb
@@ -260,26 +341,27 @@ files:
260
341
  - wsdl/2012_1.wsdl
261
342
  homepage: https://github.com/RevolutionPrep/netsuite
262
343
  licenses: []
263
- metadata: {}
264
344
  post_install_message:
265
345
  rdoc_options: []
266
346
  require_paths:
267
347
  - lib
268
348
  required_ruby_version: !ruby/object:Gem::Requirement
349
+ none: false
269
350
  requirements:
270
351
  - - ! '>='
271
352
  - !ruby/object:Gem::Version
272
353
  version: '0'
273
354
  required_rubygems_version: !ruby/object:Gem::Requirement
355
+ none: false
274
356
  requirements:
275
357
  - - ! '>='
276
358
  - !ruby/object:Gem::Version
277
359
  version: '0'
278
360
  requirements: []
279
361
  rubyforge_project:
280
- rubygems_version: 2.1.11
362
+ rubygems_version: 1.8.23.2
281
363
  signing_key:
282
- specification_version: 4
364
+ specification_version: 3
283
365
  summary: NetSuite SuiteTalk API (SOAP) Wrapper
284
366
  test_files:
285
367
  - spec/netsuite/actions/add_spec.rb
@@ -288,11 +370,19 @@ test_files:
288
370
  - spec/netsuite/actions/initialize_spec.rb
289
371
  - spec/netsuite/actions/search_spec.rb
290
372
  - spec/netsuite/actions/update_spec.rb
373
+ - spec/netsuite/actions/upsert_list_spec.rb
291
374
  - spec/netsuite/actions/upsert_spec.rb
292
375
  - spec/netsuite/configuration_spec.rb
293
376
  - spec/netsuite/records/account_spec.rb
294
377
  - spec/netsuite/records/accounting_period_spec.rb
378
+ - spec/netsuite/records/assembly_item_spec.rb
295
379
  - spec/netsuite/records/bill_address_spec.rb
380
+ - spec/netsuite/records/billing_schedule_milestone_list_spec.rb
381
+ - spec/netsuite/records/billing_schedule_milestone_spec.rb
382
+ - spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
383
+ - spec/netsuite/records/billing_schedule_recurrence_spec.rb
384
+ - spec/netsuite/records/billing_schedule_spec.rb
385
+ - spec/netsuite/records/campaign_spec.rb
296
386
  - spec/netsuite/records/cash_refund_item_list_spec.rb
297
387
  - spec/netsuite/records/cash_refund_item_spec.rb
298
388
  - spec/netsuite/records/cash_refund_spec.rb
@@ -304,6 +394,7 @@ test_files:
304
394
  - spec/netsuite/records/credit_memo_spec.rb
305
395
  - spec/netsuite/records/custom_field_list_spec.rb
306
396
  - spec/netsuite/records/custom_field_spec.rb
397
+ - spec/netsuite/records/custom_list_spec.rb
307
398
  - spec/netsuite/records/custom_record_ref_spec.rb
308
399
  - spec/netsuite/records/custom_record_spec.rb
309
400
  - spec/netsuite/records/custom_record_type_spec.rb
@@ -318,8 +409,10 @@ test_files:
318
409
  - spec/netsuite/records/customer_spec.rb
319
410
  - spec/netsuite/records/department_spec.rb
320
411
  - spec/netsuite/records/deposit_spec.rb
412
+ - spec/netsuite/records/discount_item_spec.rb
321
413
  - spec/netsuite/records/duration_spec.rb
322
414
  - spec/netsuite/records/inventory_item_spec.rb
415
+ - spec/netsuite/records/inventory_transfer_spec.rb
323
416
  - spec/netsuite/records/invoice_item_list_spec.rb
324
417
  - spec/netsuite/records/invoice_item_spec.rb
325
418
  - spec/netsuite/records/invoice_spec.rb
@@ -334,15 +427,26 @@ test_files:
334
427
  - spec/netsuite/records/non_inventory_sale_item_spec.rb
335
428
  - spec/netsuite/records/payment_method_spec.rb
336
429
  - spec/netsuite/records/phone_call_spec.rb
430
+ - spec/netsuite/records/pomo_code_spec.rb
337
431
  - spec/netsuite/records/record_ref_spec.rb
338
432
  - spec/netsuite/records/rev_rec_template_spec.rb
339
433
  - spec/netsuite/records/sales_order_item_list_spec.rb
340
434
  - spec/netsuite/records/sales_order_item_spec.rb
341
435
  - spec/netsuite/records/sales_order_spec.rb
436
+ - spec/netsuite/records/sales_tax_item_spec.rb
342
437
  - spec/netsuite/records/service_sale_item_spec.rb
343
438
  - spec/netsuite/records/ship_address_spec.rb
439
+ - spec/netsuite/records/site_category_spec.rb
440
+ - spec/netsuite/records/subsidiary_spec.rb
344
441
  - spec/netsuite/records/support_case_spec.rb
442
+ - spec/netsuite/records/tax_type_spec.rb
345
443
  - spec/netsuite/records/term_spec.rb
444
+ - spec/netsuite/records/units_type_spec.rb
445
+ - spec/netsuite/records/units_type_uom_list_spec.rb
446
+ - spec/netsuite/records/units_type_uom_spec.rb
447
+ - spec/netsuite/records/work_order_item_list_spec.rb
448
+ - spec/netsuite/records/work_order_item_spec.rb
449
+ - spec/netsuite/records/work_order_spec.rb
346
450
  - spec/netsuite/response_spec.rb
347
451
  - spec/netsuite/support/actions_spec.rb
348
452
  - spec/netsuite/support/attributes_spec.rb
@@ -350,6 +454,7 @@ test_files:
350
454
  - spec/netsuite/support/record_refs_spec.rb
351
455
  - spec/netsuite/support/records_spec.rb
352
456
  - spec/netsuite/support/requests_spec.rb
457
+ - spec/netsuite/support/sublist_spec.rb
353
458
  - spec/netsuite_spec.rb
354
459
  - spec/spec_helper.rb
355
460
  - spec/support/configuration.rb
@@ -365,11 +470,16 @@ test_files:
365
470
  - spec/support/fixtures/search/saved_search_customer.xml
366
471
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
367
472
  - spec/support/fixtures/update/update_customer.xml
473
+ - spec/support/fixtures/update/update_customer_error.xml
474
+ - spec/support/fixtures/update/update_customer_multiple_errors.xml
368
475
  - spec/support/fixtures/update/update_invoice.xml
369
476
  - spec/support/fixtures/upsert/upsert_customer.xml
370
477
  - spec/support/fixtures/upsert/upsert_invoice.xml
371
478
  - spec/support/fixtures/upsert/upsert_invoice_error.xml
372
479
  - spec/support/fixtures/upsert/upsert_invoice_multiple_errors.xml
480
+ - spec/support/fixtures/upsert_list/upsert_list_customers.xml
481
+ - spec/support/fixtures/upsert_list/upsert_list_one_customer.xml
482
+ - spec/support/fixtures/upsert_list/upsert_list_with_errors.xml
373
483
  - spec/support/read_only_field_matcher.rb
374
484
  - spec/support/record_ref_matcher.rb
375
485
  - spec/support/savon.rb