netsuite 0.8.6 → 0.8.10
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.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +20 -0
- data/.ruby-version +1 -1
- data/.tool-versions +1 -0
- data/Gemfile +1 -6
- data/HISTORY.md +38 -0
- data/README.md +42 -21
- data/Rakefile +1 -1
- data/lib/netsuite/configuration.rb +13 -0
- data/lib/netsuite/records/accounting_period.rb +2 -2
- data/lib/netsuite/records/assembly_unbuild.rb +1 -3
- data/lib/netsuite/records/contact.rb +1 -1
- data/lib/netsuite/records/cost_category.rb +28 -0
- data/lib/netsuite/records/credit_memo.rb +1 -1
- data/lib/netsuite/records/currency_rate.rb +1 -1
- data/lib/netsuite/records/custom_field_list.rb +9 -3
- data/lib/netsuite/records/customer_deposit.rb +5 -5
- data/lib/netsuite/records/customer_payment.rb +5 -2
- data/lib/netsuite/records/customer_payment_credit.rb +17 -0
- data/lib/netsuite/records/customer_payment_credit_list.rb +12 -0
- data/lib/netsuite/records/estimate.rb +95 -14
- data/lib/netsuite/records/inventory_item.rb +62 -1
- data/lib/netsuite/records/inventory_number.rb +1 -1
- data/lib/netsuite/records/inventory_transfer.rb +1 -0
- data/lib/netsuite/records/invoice.rb +98 -5
- data/lib/netsuite/records/invoice_item.rb +1 -1
- data/lib/netsuite/records/item_fulfillment_item.rb +1 -1
- data/lib/netsuite/records/item_receipt_item.rb +3 -2
- data/lib/netsuite/records/member_list.rb +0 -2
- data/lib/netsuite/records/non_inventory_purchase_item.rb +1 -1
- data/lib/netsuite/records/non_inventory_resale_item.rb +1 -1
- data/lib/netsuite/records/non_inventory_sale_item.rb +1 -1
- data/lib/netsuite/records/opportunity.rb +2 -2
- data/lib/netsuite/records/partner.rb +7 -5
- data/lib/netsuite/records/phone_call.rb +1 -1
- data/lib/netsuite/records/serialized_assembly_item.rb +3 -2
- data/lib/netsuite/records/service_resale_item.rb +1 -1
- data/lib/netsuite/records/service_sale_item.rb +1 -1
- data/lib/netsuite/records/transfer_order_item.rb +1 -1
- data/lib/netsuite/records/vendor.rb +6 -5
- data/lib/netsuite/records/vendor_currency.rb +26 -0
- data/lib/netsuite/records/vendor_currency_list.rb +9 -0
- data/lib/netsuite/support/fields.rb +17 -0
- data/lib/netsuite/support/records.rb +1 -1
- data/lib/netsuite/support/search_result.rb +23 -4
- data/lib/netsuite/utilities.rb +1 -0
- data/lib/netsuite/version.rb +1 -1
- data/lib/netsuite.rb +5 -0
- data/netsuite.gemspec +4 -2
- data/spec/netsuite/actions/search_spec.rb +22 -0
- data/spec/netsuite/configuration_spec.rb +33 -1
- data/spec/netsuite/records/basic_record_spec.rb +8 -1
- data/spec/netsuite/records/cost_category_spec.rb +105 -0
- data/spec/netsuite/records/custom_field_list_spec.rb +40 -2
- data/spec/netsuite/records/customer_payment_credit_list_spec.rb +26 -0
- data/spec/netsuite/records/customer_payment_spec.rb +1 -6
- data/spec/netsuite/records/estimate_spec.rb +103 -13
- data/spec/netsuite/records/inventory_item_spec.rb +65 -0
- data/spec/netsuite/records/invoice_spec.rb +94 -0
- data/spec/netsuite/records/partner_spec.rb +6 -4
- data/spec/netsuite/records/vendor_spec.rb +1 -1
- data/spec/netsuite/support/fields_spec.rb +36 -1
- data/spec/support/field_matcher.rb +8 -6
- data/spec/support/fixtures/custom_fields/multi_select.xml +47 -0
- data/spec/support/fixtures/search/saved_search_item.xml +55 -0
- data/spec/support/fixtures/search/saved_search_joined_custom_customer.xml +15 -1
- data/spec/support/search_only_field_matcher.rb +7 -0
- metadata +42 -16
- data/circle.yml +0 -36
@@ -5,9 +5,11 @@ describe NetSuite::Records::Partner do
|
|
5
5
|
|
6
6
|
it 'has all the right fields' do
|
7
7
|
[
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
8
|
+
:alt_email, :alt_name, :bcn, :comments, :company_name, :date_created, :default_address,
|
9
|
+
:eligible_for_commission, :email, :entity_id, :fax, :first_name, :give_access, :home_phone, :is_inactive,
|
10
|
+
:is_person, :last_modified_date, :last_name, :login_as, :middle_name, :mobile_phone, :partner_code,
|
11
|
+
:password, :password2, :phone, :phonetic_name, :print_on_check_as, :referring_url, :require_pwd_change,
|
12
|
+
:salutation, :send_email, :sub_partner_login, :tax_id_num, :title, :url, :vat_reg_number
|
11
13
|
].each do |field|
|
12
14
|
expect(partner).to have_field(field)
|
13
15
|
end
|
@@ -15,7 +17,7 @@ describe NetSuite::Records::Partner do
|
|
15
17
|
|
16
18
|
it 'has all the right record refs' do
|
17
19
|
[
|
18
|
-
:klass, :
|
20
|
+
:access_role, :klass, :custom_form, :default_tax_reg, :department, :image, :location, :parent, :subsidiary
|
19
21
|
].each do |record_ref|
|
20
22
|
expect(partner).to have_record_ref(record_ref)
|
21
23
|
end
|
@@ -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
|
-
:
|
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
|
-
|
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
|
@@ -1,17 +1,19 @@
|
|
1
|
-
RSpec::Matchers.define :have_field do |attribute|
|
1
|
+
RSpec::Matchers.define :have_field do |attribute, klass|
|
2
2
|
|
3
3
|
match do |model|
|
4
|
-
|
4
|
+
klass = klass || Object
|
5
|
+
|
6
|
+
field_can_be_set_and_retrieved?(model, attribute, klass) && field_can_be_set_on_instantiation?(model, attribute, klass)
|
5
7
|
end
|
6
8
|
|
7
|
-
def field_can_be_set_and_retrieved?(model, attribute)
|
8
|
-
obj =
|
9
|
+
def field_can_be_set_and_retrieved?(model, attribute, klass)
|
10
|
+
obj = klass.new
|
9
11
|
model.send("#{attribute}=".to_sym, obj)
|
10
12
|
model.send(attribute) == obj
|
11
13
|
end
|
12
14
|
|
13
|
-
def field_can_be_set_on_instantiation?(model, attribute)
|
14
|
-
obj =
|
15
|
+
def field_can_be_set_on_instantiation?(model, attribute, klass)
|
16
|
+
obj = klass.new
|
15
17
|
new_model = model.class.new(attribute => obj)
|
16
18
|
new_model.send(attribute) == obj
|
17
19
|
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>
|
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.
|
4
|
+
version: 0.8.10
|
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:
|
12
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -18,9 +18,6 @@ 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
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,23 +25,34 @@ dependencies:
|
|
28
25
|
- - ">="
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: 2.3.0
|
31
|
-
- - "<="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.11.1
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: rspec
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
32
|
- - "~>"
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.
|
34
|
+
version: 3.10.0
|
41
35
|
type: :development
|
42
36
|
prerelease: false
|
43
37
|
version_requirements: !ruby/object:Gem::Requirement
|
44
38
|
requirements:
|
45
39
|
- - "~>"
|
46
40
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
41
|
+
version: 3.10.0
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
48
56
|
description: NetSuite SuiteTalk API Wrapper
|
49
57
|
email:
|
50
58
|
- ryan.moran@gmail.com
|
@@ -53,14 +61,16 @@ executables: []
|
|
53
61
|
extensions: []
|
54
62
|
extra_rdoc_files: []
|
55
63
|
files:
|
64
|
+
- ".github/workflows/main.yml"
|
56
65
|
- ".gitignore"
|
57
66
|
- ".rspec"
|
58
67
|
- ".ruby-version"
|
68
|
+
- ".tool-versions"
|
59
69
|
- Gemfile
|
70
|
+
- HISTORY.md
|
60
71
|
- LICENSE
|
61
72
|
- README.md
|
62
73
|
- Rakefile
|
63
|
-
- circle.yml
|
64
74
|
- lib/netsuite.rb
|
65
75
|
- lib/netsuite/actions/add.rb
|
66
76
|
- lib/netsuite/actions/delete.rb
|
@@ -137,6 +147,7 @@ files:
|
|
137
147
|
- lib/netsuite/records/contact_addressbook_list.rb
|
138
148
|
- lib/netsuite/records/contact_list.rb
|
139
149
|
- lib/netsuite/records/contact_role.rb
|
150
|
+
- lib/netsuite/records/cost_category.rb
|
140
151
|
- lib/netsuite/records/credit_memo.rb
|
141
152
|
- lib/netsuite/records/credit_memo_apply.rb
|
142
153
|
- lib/netsuite/records/credit_memo_apply_list.rb
|
@@ -168,6 +179,8 @@ files:
|
|
168
179
|
- lib/netsuite/records/customer_payment.rb
|
169
180
|
- lib/netsuite/records/customer_payment_apply.rb
|
170
181
|
- lib/netsuite/records/customer_payment_apply_list.rb
|
182
|
+
- lib/netsuite/records/customer_payment_credit.rb
|
183
|
+
- lib/netsuite/records/customer_payment_credit_list.rb
|
171
184
|
- lib/netsuite/records/customer_refund.rb
|
172
185
|
- lib/netsuite/records/customer_refund_apply.rb
|
173
186
|
- lib/netsuite/records/customer_refund_apply_list.rb
|
@@ -331,6 +344,8 @@ files:
|
|
331
344
|
- lib/netsuite/records/vendor_credit_expense_list.rb
|
332
345
|
- lib/netsuite/records/vendor_credit_item.rb
|
333
346
|
- lib/netsuite/records/vendor_credit_item_list.rb
|
347
|
+
- lib/netsuite/records/vendor_currency.rb
|
348
|
+
- lib/netsuite/records/vendor_currency_list.rb
|
334
349
|
- lib/netsuite/records/vendor_payment.rb
|
335
350
|
- lib/netsuite/records/vendor_payment_apply.rb
|
336
351
|
- lib/netsuite/records/vendor_payment_apply_list.rb
|
@@ -391,6 +406,7 @@ files:
|
|
391
406
|
- spec/netsuite/records/cash_sale_item_spec.rb
|
392
407
|
- spec/netsuite/records/cash_sale_spec.rb
|
393
408
|
- spec/netsuite/records/classification_spec.rb
|
409
|
+
- spec/netsuite/records/cost_category_spec.rb
|
394
410
|
- spec/netsuite/records/credit_memo_apply_list_spec.rb
|
395
411
|
- spec/netsuite/records/credit_memo_apply_spec.rb
|
396
412
|
- spec/netsuite/records/credit_memo_item_list_spec.rb
|
@@ -407,6 +423,7 @@ files:
|
|
407
423
|
- spec/netsuite/records/customer_addressbook_spec.rb
|
408
424
|
- spec/netsuite/records/customer_credit_cards_list_spec.rb
|
409
425
|
- spec/netsuite/records/customer_payment_apply_list_spec.rb
|
426
|
+
- spec/netsuite/records/customer_payment_credit_list_spec.rb
|
410
427
|
- spec/netsuite/records/customer_payment_spec.rb
|
411
428
|
- spec/netsuite/records/customer_refund_apply_list_spec.rb
|
412
429
|
- spec/netsuite/records/customer_refund_apply_spec.rb
|
@@ -523,6 +540,7 @@ files:
|
|
523
540
|
- spec/support/fixtures/add/add_invoice.xml
|
524
541
|
- spec/support/fixtures/add/add_invoice_error.xml
|
525
542
|
- spec/support/fixtures/add/add_invoice_multiple_errors.xml
|
543
|
+
- spec/support/fixtures/custom_fields/multi_select.xml
|
526
544
|
- spec/support/fixtures/delete/delete_customer.xml
|
527
545
|
- spec/support/fixtures/delete_list/delete_list_customers.xml
|
528
546
|
- spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
|
@@ -534,6 +552,7 @@ files:
|
|
534
552
|
- spec/support/fixtures/login/failure_invalid_credentials.xml
|
535
553
|
- spec/support/fixtures/login/success.xml
|
536
554
|
- spec/support/fixtures/search/saved_search_customer.xml
|
555
|
+
- spec/support/fixtures/search/saved_search_item.xml
|
537
556
|
- spec/support/fixtures/search/saved_search_joined_custom_customer.xml
|
538
557
|
- spec/support/fixtures/update/update_customer.xml
|
539
558
|
- spec/support/fixtures/update/update_customer_error.xml
|
@@ -552,11 +571,13 @@ files:
|
|
552
571
|
- spec/support/read_only_field_matcher.rb
|
553
572
|
- spec/support/record_ref_matcher.rb
|
554
573
|
- spec/support/savon.rb
|
574
|
+
- spec/support/search_only_field_matcher.rb
|
555
575
|
homepage: https://github.com/NetSweet/netsuite
|
556
576
|
licenses:
|
557
577
|
- MIT
|
558
|
-
metadata:
|
559
|
-
|
578
|
+
metadata:
|
579
|
+
changelog_uri: https://github.com/netsweet/netsuite/blob/master/HISTORY.md
|
580
|
+
post_install_message:
|
560
581
|
rdoc_options: []
|
561
582
|
require_paths:
|
562
583
|
- lib
|
@@ -571,8 +592,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
571
592
|
- !ruby/object:Gem::Version
|
572
593
|
version: '0'
|
573
594
|
requirements: []
|
574
|
-
rubygems_version: 3.
|
575
|
-
signing_key:
|
595
|
+
rubygems_version: 3.1.6
|
596
|
+
signing_key:
|
576
597
|
specification_version: 4
|
577
598
|
summary: NetSuite SuiteTalk API (SOAP) Wrapper
|
578
599
|
test_files:
|
@@ -611,6 +632,7 @@ test_files:
|
|
611
632
|
- spec/netsuite/records/cash_sale_item_spec.rb
|
612
633
|
- spec/netsuite/records/cash_sale_spec.rb
|
613
634
|
- spec/netsuite/records/classification_spec.rb
|
635
|
+
- spec/netsuite/records/cost_category_spec.rb
|
614
636
|
- spec/netsuite/records/credit_memo_apply_list_spec.rb
|
615
637
|
- spec/netsuite/records/credit_memo_apply_spec.rb
|
616
638
|
- spec/netsuite/records/credit_memo_item_list_spec.rb
|
@@ -627,6 +649,7 @@ test_files:
|
|
627
649
|
- spec/netsuite/records/customer_addressbook_spec.rb
|
628
650
|
- spec/netsuite/records/customer_credit_cards_list_spec.rb
|
629
651
|
- spec/netsuite/records/customer_payment_apply_list_spec.rb
|
652
|
+
- spec/netsuite/records/customer_payment_credit_list_spec.rb
|
630
653
|
- spec/netsuite/records/customer_payment_spec.rb
|
631
654
|
- spec/netsuite/records/customer_refund_apply_list_spec.rb
|
632
655
|
- spec/netsuite/records/customer_refund_apply_spec.rb
|
@@ -743,6 +766,7 @@ test_files:
|
|
743
766
|
- spec/support/fixtures/add/add_invoice.xml
|
744
767
|
- spec/support/fixtures/add/add_invoice_error.xml
|
745
768
|
- spec/support/fixtures/add/add_invoice_multiple_errors.xml
|
769
|
+
- spec/support/fixtures/custom_fields/multi_select.xml
|
746
770
|
- spec/support/fixtures/delete/delete_customer.xml
|
747
771
|
- spec/support/fixtures/delete_list/delete_list_customers.xml
|
748
772
|
- spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
|
@@ -754,6 +778,7 @@ test_files:
|
|
754
778
|
- spec/support/fixtures/login/failure_invalid_credentials.xml
|
755
779
|
- spec/support/fixtures/login/success.xml
|
756
780
|
- spec/support/fixtures/search/saved_search_customer.xml
|
781
|
+
- spec/support/fixtures/search/saved_search_item.xml
|
757
782
|
- spec/support/fixtures/search/saved_search_joined_custom_customer.xml
|
758
783
|
- spec/support/fixtures/update/update_customer.xml
|
759
784
|
- spec/support/fixtures/update/update_customer_error.xml
|
@@ -772,3 +797,4 @@ test_files:
|
|
772
797
|
- spec/support/read_only_field_matcher.rb
|
773
798
|
- spec/support/record_ref_matcher.rb
|
774
799
|
- spec/support/savon.rb
|
800
|
+
- spec/support/search_only_field_matcher.rb
|
data/circle.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
|
3
|
-
orbs:
|
4
|
-
# orbs are basically bundles of pre-written build scripts that work for common cases
|
5
|
-
# https://github.com/CircleCI-Public/ruby-orb
|
6
|
-
ruby: circleci/ruby@1.1
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
# skipping build step because Gemfile.lock is not included in the source
|
10
|
-
# this makes the bundler caching step a noop
|
11
|
-
test:
|
12
|
-
parameters:
|
13
|
-
ruby-version:
|
14
|
-
type: string
|
15
|
-
docker:
|
16
|
-
- image: cimg/ruby:<< parameters.ruby-version >>
|
17
|
-
steps:
|
18
|
-
- checkout
|
19
|
-
- ruby/install-deps:
|
20
|
-
bundler-version: '1.17.2'
|
21
|
-
with-cache: false
|
22
|
-
- ruby/rspec-test
|
23
|
-
|
24
|
-
# strangely, there seems to be very little documentation about exactly how martix builds work.
|
25
|
-
# By defining a param inside your job definition, Circle CI will automatically spawn a job for
|
26
|
-
# unique param value passed via `matrix`. Neat!
|
27
|
-
# https://circleci.com/blog/circleci-matrix-jobs/
|
28
|
-
workflows:
|
29
|
-
build_and_test:
|
30
|
-
jobs:
|
31
|
-
- test:
|
32
|
-
matrix:
|
33
|
-
parameters:
|
34
|
-
# https://github.com/CircleCI-Public/cimg-ruby
|
35
|
-
# only supports the last three ruby versions
|
36
|
-
ruby-version: ["2.5", "2.6", "2.7"]
|