netsuite 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTkyYmZjMTQ2M2Y2ZmIyNGNiNjdhZjVlNzg4ZDlmMTc0ZDg3OGM2MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGYxNzE2MjRlZTlkNGY5OTg5ZTU3MWJkNzE3MGQzYmU1MTc0Yzc1ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDBhMzcyYTA3YzMwY2M2ZDUxNzcwNjc4NDI3NDc4ODA0MDdiMzJjNDdmMTBl
|
10
|
+
YjNjNWY5NmFkOWY2MjFmMjlhM2ZkYTFmZTk3MTRkYTg4MGU0MjQ5ZWIzOTNl
|
11
|
+
MDc3YjViN2U4M2UyOWYyMWI4ZWI3ODBjNWY5MzJmZGRhMjU5Y2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGE0OTVhMGJlN2FjYzExMmFkZGE0NTdjMmI3NzJiZTE1NDZlMDc1ZTMyZGJj
|
14
|
+
N2Y2N2FkNTc4NTY3MDVhNmViYzM3ZDYzOTk1OTkwYTI2NmEzZTNkMmQ0ZjMz
|
15
|
+
MTVjZmJmYTA1ZmI3YTI2MjlmYzFhMWM1ZTc3M2IxMzkyNWJiN2Y=
|
data/lib/netsuite.rb
CHANGED
@@ -155,6 +155,8 @@ module NetSuite
|
|
155
155
|
autoload :MatrixOptionList, 'netsuite/records/matrix_option_list'
|
156
156
|
autoload :MemberList, 'netsuite/records/member_list'
|
157
157
|
autoload :NonInventorySaleItem, 'netsuite/records/non_inventory_sale_item'
|
158
|
+
autoload :NonInventoryPurchaseItem, 'netsuite/records/non_inventory_purchase_item'
|
159
|
+
autoload :NonInventoryResaleItem, 'netsuite/records/non_inventory_resale_item'
|
158
160
|
autoload :Opportunity, 'netsuite/records/opportunity'
|
159
161
|
autoload :OpportunityItem, 'netsuite/records/opportunity_item'
|
160
162
|
autoload :OpportunityItemList, 'netsuite/records/opportunity_item_list'
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module NetSuite
|
2
|
+
module Records
|
3
|
+
class NonInventoryPurchaseItem
|
4
|
+
include Support::Fields
|
5
|
+
include Support::RecordRefs
|
6
|
+
include Support::Records
|
7
|
+
include Support::Actions
|
8
|
+
include Namespaces::ListAcct
|
9
|
+
|
10
|
+
actions :get, :get_list, :add, :delete, :search, :upsert
|
11
|
+
|
12
|
+
fields :available_to_partners, :cost_estimate, :cost_estimate_type, :cost_estimate_units, :country_of_manufacture,
|
13
|
+
:created_date, :display_name, :dont_show_price, :enforce_min_qty_internally, :exclude_from_sitemap,
|
14
|
+
:featured_description, :handling_cost, :handling_cost_units, :include_children, :is_donation_item, :is_fulfillable,
|
15
|
+
:is_gco_compliant, :is_inactive, :is_online, :is_taxable, :item_id, :last_modified_date, :manufacturer,
|
16
|
+
:manufacturer_addr1, :manufacturer_city, :manufacturer_state, :manufacturer_tariff, :manufacturer_tax_id,
|
17
|
+
:manufacturer_zip, :matrix_option_list, :matrix_type, :max_donation_amount, :meta_tag_html, :minimum_quantity,
|
18
|
+
:minimum_quantity_units, :mpn, :mult_manufacture_addr, :nex_tag_category, :no_price_message, :offer_support,
|
19
|
+
:on_special, :out_of_stock_behavior, :out_of_stock_message, :overall_quantity_pricing_type, :page_title,
|
20
|
+
:preference_criterion, :presentation_item_list, :prices_include_tax, :pricing_matrix, :producer, :product_feed_list,
|
21
|
+
:rate, :related_items_description, :sales_description, :schedule_b_code, :schedule_b_number, :schedule_b_quantity,
|
22
|
+
:search_keywords, :ship_individually, :shipping_cost, :shipping_cost_units, :shopping_dot_com_category,
|
23
|
+
:shopzilla_category_id, :show_default_donation_amount, :site_category_list, :sitemap_priority, :soft_descriptor,
|
24
|
+
:specials_description, :stock_description, :store_description, :store_detailed_description, :store_display_name,
|
25
|
+
:translations_list, :upc_code, :url_component, :use_marginal_rates, :vsoe_deferral, :vsoe_delivered,
|
26
|
+
:vsoe_permit_discount, :vsoe_price, :weight, :weight_unit, :weight_units
|
27
|
+
|
28
|
+
record_refs :billing_schedule, :cost_category, :custom_form, :deferred_revenue_account, :department, :income_account,
|
29
|
+
:issue_product, :item_options_list, :klass, :location, :parent, :pricing_group, :purchase_tax_code,
|
30
|
+
:quantity_pricing_schedule, :rev_rec_schedule, :sale_unit, :sales_tax_code, :ship_package, :store_display_image,
|
31
|
+
:store_display_thumbnail, :store_item_template, :tax_schedule, :units_type
|
32
|
+
|
33
|
+
field :custom_field_list, CustomFieldList
|
34
|
+
field :pricing_matrix, PricingMatrix
|
35
|
+
field :subsidiary_list, RecordRefList
|
36
|
+
|
37
|
+
|
38
|
+
attr_reader :internal_id
|
39
|
+
attr_accessor :external_id
|
40
|
+
|
41
|
+
def initialize(attributes = {})
|
42
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
43
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
44
|
+
initialize_from_attributes_hash(attributes)
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.search_class_name
|
48
|
+
"Item"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module NetSuite
|
2
|
+
module Records
|
3
|
+
class NonInventoryResaleItem
|
4
|
+
include Support::Fields
|
5
|
+
include Support::RecordRefs
|
6
|
+
include Support::Records
|
7
|
+
include Support::Actions
|
8
|
+
include Namespaces::ListAcct
|
9
|
+
|
10
|
+
actions :get, :get_list, :add, :delete, :search, :upsert
|
11
|
+
|
12
|
+
fields :available_to_partners, :cost_estimate, :cost_estimate_type, :cost_estimate_units, :country_of_manufacture,
|
13
|
+
:created_date, :display_name, :dont_show_price, :enforce_min_qty_internally, :exclude_from_sitemap,
|
14
|
+
:featured_description, :handling_cost, :handling_cost_units, :include_children, :is_donation_item, :is_fulfillable,
|
15
|
+
:is_gco_compliant, :is_inactive, :is_online, :is_taxable, :item_id, :last_modified_date, :manufacturer,
|
16
|
+
:manufacturer_addr1, :manufacturer_city, :manufacturer_state, :manufacturer_tariff, :manufacturer_tax_id,
|
17
|
+
:manufacturer_zip, :matrix_option_list, :matrix_type, :max_donation_amount, :meta_tag_html, :minimum_quantity,
|
18
|
+
:minimum_quantity_units, :mpn, :mult_manufacture_addr, :nex_tag_category, :no_price_message, :offer_support,
|
19
|
+
:on_special, :out_of_stock_behavior, :out_of_stock_message, :overall_quantity_pricing_type, :page_title,
|
20
|
+
:preference_criterion, :presentation_item_list, :prices_include_tax, :pricing_matrix, :producer, :product_feed_list,
|
21
|
+
:rate, :related_items_description, :sales_description, :schedule_b_code, :schedule_b_number, :schedule_b_quantity,
|
22
|
+
:search_keywords, :ship_individually, :shipping_cost, :shipping_cost_units, :shopping_dot_com_category,
|
23
|
+
:shopzilla_category_id, :show_default_donation_amount, :site_category_list, :sitemap_priority, :soft_descriptor,
|
24
|
+
:specials_description, :stock_description, :store_description, :store_detailed_description, :store_display_name,
|
25
|
+
:translations_list, :upc_code, :url_component, :use_marginal_rates, :vsoe_deferral, :vsoe_delivered,
|
26
|
+
:vsoe_permit_discount, :vsoe_price, :weight, :weight_unit, :weight_units
|
27
|
+
|
28
|
+
record_refs :billing_schedule, :cost_category, :custom_form, :deferred_revenue_account, :department, :income_account,
|
29
|
+
:issue_product, :item_options_list, :klass, :location, :parent, :pricing_group, :purchase_tax_code,
|
30
|
+
:quantity_pricing_schedule, :rev_rec_schedule, :sale_unit, :sales_tax_code, :ship_package, :store_display_image,
|
31
|
+
:store_display_thumbnail, :store_item_template, :tax_schedule, :units_type
|
32
|
+
|
33
|
+
field :custom_field_list, CustomFieldList
|
34
|
+
field :pricing_matrix, PricingMatrix
|
35
|
+
field :subsidiary_list, RecordRefList
|
36
|
+
|
37
|
+
|
38
|
+
attr_reader :internal_id
|
39
|
+
attr_accessor :external_id
|
40
|
+
|
41
|
+
def initialize(attributes = {})
|
42
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
43
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
44
|
+
initialize_from_attributes_hash(attributes)
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.search_class_name
|
48
|
+
"Item"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/netsuite/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netsuite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Moran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -183,6 +183,8 @@ files:
|
|
183
183
|
- lib/netsuite/records/locations_list.rb
|
184
184
|
- lib/netsuite/records/matrix_option_list.rb
|
185
185
|
- lib/netsuite/records/member_list.rb
|
186
|
+
- lib/netsuite/records/non_inventory_purchase_item.rb
|
187
|
+
- lib/netsuite/records/non_inventory_resale_item.rb
|
186
188
|
- lib/netsuite/records/non_inventory_sale_item.rb
|
187
189
|
- lib/netsuite/records/opportunity.rb
|
188
190
|
- lib/netsuite/records/opportunity_item.rb
|