Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shiphawk 0 8 stable updated to original branch #7

Open
wants to merge 114 commits into
base: shiphawk-0-8-stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
a2f282d
Adding missing cm fields
iloveitaly Oct 26, 2020
180586a
Remove old ci gem requirements
iloveitaly Oct 27, 2020
aa535ab
Bump bundler version on ci
iloveitaly Oct 27, 2020
2034db0
lets see if a custom bundle path fixes ci
iloveitaly Oct 27, 2020
9d74025
Note about path workaround in ci
iloveitaly Oct 27, 2020
a3e7ba1
hack to make the search work
stevenou Dec 2, 2020
8251ae4
add CustomerPaymentCreditList
stevenou Dec 15, 2020
776dc1b
spacing. revert the PO change
stevenou Dec 15, 2020
31236bc
Fixing customer payment credit specs
iloveitaly Dec 15, 2020
dfab101
Adding customer payment to basic specs
iloveitaly Dec 15, 2020
a268423
Add upsert_list and get_deleted actions for contact record
cgunther Jan 21, 2021
438c233
Update fields/record refs on partner record to match 2020.2 schema
cgunther Jan 14, 2021
776eebb
Add payment_option
davidlaprade Feb 23, 2021
05bc883
add required record_refs for revenue recognition module
stevenou Dec 18, 2020
75bac9d
Optionally override the Savon wsdl endpoint
davidlaprade Mar 1, 2021
41afd80
Add tests
davidlaprade Mar 1, 2021
4585f42
Accounting period closed (#474)
stevenou Mar 24, 2021
82bf41e
Added vendor currecy list to vendor (#475)
eugentravod Apr 27, 2021
c681ef1
Fixed vendor test, expanded sublist test on records
iloveitaly Apr 27, 2021
7b77099
Bumping dev ruby version to 2.7, adding asdf
iloveitaly May 12, 2021
5c5b99c
Big readme update
iloveitaly May 12, 2021
e087d29
Version bump
iloveitaly May 12, 2021
33594f4
Include protocol in readme examples setting endpoint from wsdl_domain…
cgunther May 25, 2021
ece6f61
Properly extract external_id from advanced search results (#478)
cgunther May 31, 2021
7ac030e
Update readme for including custom fields in search result columns fo…
cgunther May 31, 2021
1c7fe7f
Adding serialized assembly item to get_item
iloveitaly Jun 2, 2021
0d1f5ab
Fixing some field definitions on serialized assembly item
iloveitaly Jun 2, 2021
f367c56
Add CostCategory record (#482)
cgunther Jul 15, 2021
9836ca7
Remove rspec formatters, no idea what that was being used for
iloveitaly Jul 15, 2021
04105ca
Expanding tests for custom field list
iloveitaly Jul 15, 2021
3377c97
Fixing bug where single-selection custom multi select fields would in…
iloveitaly Jul 15, 2021
22fdc58
Adding github workflow
iloveitaly Jul 15, 2021
df92290
default rake to rspec
iloveitaly Jul 15, 2021
f95999e
Remove ruby 3.0 tests
iloveitaly Jul 15, 2021
036f4fa
Fixing tests to be compatible with ruby 2.1 and 2.2
iloveitaly Jul 15, 2021
4456ce2
Removing circleci in favor of github actions
iloveitaly Jul 15, 2021
1af5545
Fix accessing custom field values returned in advanced search results…
cgunther Jul 16, 2021
676a618
Introduce search only fields (#483)
cgunther Aug 10, 2021
a9ea533
initial changelog doc
iloveitaly Aug 10, 2021
5ecc4e6
Adding 0.8.8 changelog
iloveitaly Aug 10, 2021
a8395e3
Version bump
iloveitaly Aug 10, 2021
1758fc5
Explain search only fields in Readme (#484)
cgunther Aug 11, 2021
2c35927
Fix standard fields mistakenly included as search only fields (#487)
cgunther Aug 17, 2021
232340c
Add simple specs around search_only_field(s) methods, matching read_o…
cgunther Aug 17, 2021
025f22b
Remove duplicate definition of replace_all field on MemberList
cgunther Aug 17, 2021
b15f5cb
Raise error if field is defined twice in record definition
cgunther Aug 17, 2021
7a5d0c0
Version bump
iloveitaly Sep 6, 2021
9da0ef2
Update README.md
TimJKStrickland Oct 3, 2021
3353bdd
add inventory number update action
huguesbr Oct 11, 2021
74d8db8
adding `custom_field_list` to inventory transfer
huguesbr Oct 11, 2021
f0e46a0
fix incorrectly reference `:inventory_detail` to field instead of rec…
huguesbr Oct 11, 2021
7264a51
Update Estimate fields/record_refs for 2021.2 (#496)
cgunther Oct 21, 2021
e0b9f45
Updating necessary savon version (#497)
andrewdicken-stripe Nov 16, 2021
b4a078e
Version bump
iloveitaly Nov 16, 2021
75e5ae2
added gem 'tzinfo-data' to pass all test for ruby 3.0.0 (#498)
gbs4ever Dec 2, 2021
5c1d56e
Update ServiceResaleItem fields/record_refs for 2021.2 (#500)
cgunther Dec 14, 2021
f502ac3
Fix "undefined method `[]' for #<Nori::StringIOFile>" when adding Fil…
cgunther Dec 14, 2021
cd107f9
Dependabot setup
iloveitaly Dec 14, 2021
d5956af
Updating changelog
iloveitaly Dec 14, 2021
1deab79
Fix spec to work without tzinfo
iloveitaly Dec 14, 2021
b75d70c
Test tzinfo support across matrix
iloveitaly Dec 14, 2021
8be86c9
Implement MatrixOptionList#to_record (#504)
cgunther Dec 16, 2021
3bc60d6
Update NonInventorySaleItem fields/record_refs for 2021.2 (#503)
cgunther Dec 16, 2021
70db1a1
Fix enum fields removed from ServiceResaleItem mistakenly (#502)
cgunther Dec 16, 2021
56667d8
Update InventoryItem fields/record_refs for 2021.2 (#506)
cgunther Dec 18, 2021
3975245
Update ItemVendor fields/record_refs for 2021.2 (#505)
cgunther Dec 18, 2021
d8b130a
Update LotNumberedInventoryItem fields/record_refs for 2021.2 (#507)
cgunther Dec 21, 2021
20f1ac3
Update NonInventoryResaleItem fields/record_refs for 2021.2 (#508)
cgunther Dec 23, 2021
eb4ecd7
Support Attaching Files - Revised (#509)
cgunther Dec 30, 2021
9f10005
Document uploading/attaching files in Readme (#510)
cgunther Jan 5, 2022
60a8d6b
Move definition of `search_joins` attribute from records to search ac…
cgunther Jan 21, 2022
f8566d6
add-record-ItemOptionCustomField (#512)
Timothyjb Jan 27, 2022
38cb8e9
update-changelog-for-PR-512 (#513)
Timothyjb Jan 28, 2022
f1a7968
add httpclient timeout to backoff since it is the most preferred by h…
ericcj Feb 3, 2022
b866e73
Consider externalId in search criteria when using RecordRef as value …
cgunther Feb 9, 2022
3838e11
Support translations records (#516)
fabiensebban Feb 9, 2022
73c9618
Update rspec requirement from ~> 3.10.0 to ~> 3.11.0 (#518)
dependabot[bot] Feb 10, 2022
7a73c6d
Create FUNDING.yml
iloveitaly Mar 1, 2022
ea9347d
Bump actions/checkout from 2 to 3 (#520)
dependabot[bot] Mar 2, 2022
197d4e6
Adding test for single result return
iloveitaly Mar 16, 2022
686cfcd
add upsert list action for cash sales (#523)
fabiensebban Mar 18, 2022
ca4d449
retry http client error subclasses since we use include? instead of i…
ericcj Mar 23, 2022
91b2b24
Issue-521: Add Ship Address to Return Authorization (#525)
JustinDunnWahoo Mar 25, 2022
e10ea56
Create codeql-analysis.yml
iloveitaly Mar 27, 2022
4cc7fb8
Remove autogenerated TOC
iloveitaly Mar 27, 2022
4bad5bd
Adding ruby 3.1 to ci run
iloveitaly Mar 27, 2022
a67b0e5
Adding service sale resale item to item get utility
iloveitaly Mar 27, 2022
aab7a0a
Bumping changelog
iloveitaly Mar 27, 2022
6f956fc
Bumping version
iloveitaly Mar 27, 2022
3c9e7f3
Dropping rake gemspec
iloveitaly Mar 27, 2022
4958151
Minimum rake version for security fix
iloveitaly Mar 27, 2022
e6c10ab
Minor readme updates (#526)
ZackKanter Mar 27, 2022
2ec2400
Bump actions/checkout from 2 to 3 (#527)
dependabot[bot] Mar 28, 2022
6c81f30
Add support for NullFieldList (starting with credit memos and invoice…
cgunther Apr 7, 2022
2ae63b9
Add `get_deleted` action to item records (#530)
cgunther Apr 12, 2022
7e3391e
add gross_amt field in cash refund item (#532)
fabiensebban Apr 15, 2022
eb4b8e3
Remove monkey patched `lower_camelcase` method on String (#533)
dbecker-stripe Apr 20, 2022
a2d0a35
Add `get_deleted` action to Employee (#531)
cgunther Apr 20, 2022
261d349
Version bump
iloveitaly Apr 21, 2022
c429d17
Bump github/codeql-action from 1 to 2 (#534)
dependabot[bot] Apr 26, 2022
b64079b
Adding payment option to customer refund
iloveitaly May 5, 2022
9014cec
Update customer record (update fields, add search only fields) (#535)
cgunther May 7, 2022
74ff67c
Add ship_group attribute to SalesOrderItem (#536)
wkrsz May 11, 2022
86c0154
Add ItemAvailability (#538)
wkrsz May 17, 2022
3c4410c
Add fedex/usps/ups package types (#537)
wkrsz May 17, 2022
71350e0
translation list to assembly_item (#540)
fabiensebban May 18, 2022
fbddd02
Add get_item_availability operation (#539)
wkrsz May 21, 2022
64e36ed
Add ItemGroup type to get_item utility (#542)
wkrsz May 23, 2022
998673d
Add created_from_ship_group field to ItemFulfillment (#541)
wkrsz May 23, 2022
a3cd17c
Handle empty result in get_select_value (#543)
wkrsz May 26, 2022
9a343fb
Add Customer#attach_file and File#update actions (#544)
cgunther Jun 4, 2022
7767aa6
Expose `errors` after calls to `delete` action (#545)
cgunther Jun 7, 2022
a291ac3
Add `update_list` action where missing on supported item records (#546)
cgunther Jun 13, 2022
1ee5527
Add optional proxy for NetSuite requests through Savon (#547)
dbecker-stripe Jun 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [NetSweet]
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# Maintain dependencies for rubygems
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '32 15 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'ruby' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Ruby

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.1, 3.0, 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, 2.1]
bundle-tzinfo: [true, false]
env:
BUNDLE_TZINFO: "${{ matrix.bundle-tzinfo }}"
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.6
2.7.3
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.7.3
11 changes: 4 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ source 'https://rubygems.org'
gemspec

gem 'simplecov', :require => false
gem 'rspec_junit_formatter'

gem 'pry-nav'
gem 'pry-rescue'

# optional dependency for more accurate timezone conversion
gem 'tzinfo', '1.2.5'
# gem 'tzinfo', '2.0.0'

# required for CircleCI to build properly with ruby 1.9.3
gem 'json', '~> 2.3.0'
gem 'rack', '~> 2.1.4'
if ENV.fetch('BUNDLE_TZINFO', 'false') == 'true'
# optional dependency for more accurate timezone conversion
gem 'tzinfo', '>= 1.2.5'
end
83 changes: 83 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
## Unreleased

### Added
* Update `Customer` record fields/record refs for 2021.2. (#535)
The following were moved from `fields` to `record_refs`: `buying_reason`, `buying_time_frame`, `campaign_category`, `image`, `opening_balance_account`, `pref_cc_processor`, `representing_subsidiary`, `sales_group`, `sales_readiness`
The following were removed as `fields` since their sublist class is not yet implemented: `download_list`, `group_pricing_list`, `item_pricing_list`
* Add search-only fields to `Customer` (#535)
* Add `attach_file` action to `Customer` records (#544)
* Add `update` action to `File` records (#544)
* Expose `errors` after calls to `delete` action (#545)
* Add `update_list` action where missing on supported item records (#546)

### Fixed

### Breaking Changes
* Rename `CustomerSubscriptionsList` to `SubscriptionsList` and `CustomerSubscription` to `Subscription` to match NetSuite naming (#535)

## 0.8.12

### Added

* Add NullFieldList record (to credit memos and invoices) (#529)
* Add `get_deleted` action to item records (#530)
* Add `get_deleted` action to Employee records (#531)
* Remove monkey patched `lower_camelcase` method on String (#533)

## 0.8.11

### Added

* Update ServiceResaleItem record fields/record refs for 2021.2. `item_options_list`, `presentation_item_list`, `site_category_list`, `translations_list` were all removed as fields as the are not simple fields, they require special classes. (#500)
* Dependabot to CI
* CI run for Ruby 3.0 & 3.1
* Add CI run for an environment with and without `tzinfo` installed
* Update NonInventorySaleItem record fields/record refs for 2021.2. `item_options_list`, `presentation_item_list`, `product_feed_list`, `site_category_list`, `translations_list` were all removed as fields as the are not simple fields, they require special classes. (#503)
* Implement MatrixOptionList#to_record (#504)
* Update ItemVendor record fields/record refs for 2021.1. `vendor` is now a record_ref instead of a field. (#505)
* Update InventoryItem record fields/record refs for 2021.2. `member_list` was removed as a field as it doesn't belong to InventoryItem. (#506)
* Update LotNumberedInventoryItem record fields/record refs for 2021.2. (#507)
* Update NonInventoryResaleItem record fields/record refs for 2021.2. `item_options_list`, `presentation_item_list`, `product_feed_list`, `site_category_list`, `translations_list` were all removed as fields as the are not simple fields, they require special classes. (#508)
* Add `attach_file` action for Invoice and SalesOrder. (#509)
* Add ItemOptionCustomField recrd (#512)
* Add Ship Address to Return Authorization (#525)
* Support translations records (#516)

### Fixed

* Fix "undefined method `[]` for #<Nori::StringIOFile>" when adding File (#495)
* Moved definition of `search_joins` attribute from records to search action. The attribute was removed for AssemblyComponent, SerializedInventoryItemLocation, and WorkOrderItem as they don't offer the search action. (#511)
* Consider externalId in search criteria when using RecordRef as value (#517)
* Retry http client error subclasses
* Add upsert list action for cash sales (#523)

## 0.8.10

### Added

* Update Estimate record fields/record refs for 2021.2. `balance`, `bill_address`, `bill_is_residential`, and `is_multi_ship_to` were all removed as fields as either being incorrect, outdated, or a search-only field. (#496)

### Fixed

* Savon 2.12 supported

## 0.8.9

### Fixed

* Fixed issue where search only fields could be specified when an existing field exists. https://github.com/NetSweet/netsuite/pull/488

## 0.8.8

### Added

* Adding serialized assembly item to get_item
* Add CostCategory record (#482)
* Introduce search only fields (#483)

### Fixed

* Fix accessing custom field values returned in advanced search results (#480)
* Fixing bug where single-selection custom multi select fields would incorrectly be parsed 3377c971d0cb727d81f4b4bc6e30edfbdfaccfd1
* Fixed some field definitions on serialized assembly item
* Properly extract external_id from advanced search results (#478)
Loading