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

Update ServiceResaleItem fields/record_refs for 2021.2 #500

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

cgunther
Copy link
Contributor

A couple were missing for my use case, so I updated them based on 2021.2

The following "fields" were removed as "fields" since they require
specialized record classes that haven't been implemented yet:

  • cost_estimate_type
  • item_options_list
  • matrix_type
  • out_of_stock_behavior
  • overall_quantity_pricing_type
  • presentation_item_list
  • site_category_list
  • sitemap_priority
  • translations_list
  • vsoe_deferral
  • vsoe_permit_discount
  • vsoe_sop_group

I arbitrarily went back 5 years (to version 2016.1) and these were all
using specialized types back then, so this doesn't appear to have been a
recent change on the NetSuite side of things that might affect users of
this gem.

A couple were missing for my use case, so I updated them based on 2021.2

The following "fields" were removed as "fields" since they require
specialized record classes that haven't been implemented yet:
- cost_estimate_type
- item_options_list
- matrix_type
- out_of_stock_behavior
- overall_quantity_pricing_type
- presentation_item_list
- site_category_list
- sitemap_priority
- translations_list
- vsoe_deferral
- vsoe_permit_discount
- vsoe_sop_group
I arbitrarily went back 5 years (to version 2016.1) and these were all
using specialized types back then, so this doesn't appear to have been a
recent change on the NetSuite side of things that might affect users of
this gem.
Copy link
Member

@iloveitaly iloveitaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As always, thanks for the great PR!

@iloveitaly iloveitaly merged commit 5c1d56e into NetSweet:master Dec 14, 2021
@cgunther cgunther deleted the service-resale-fields branch December 14, 2021 17:28
cgunther added a commit to cgunther/netsuite that referenced this pull request Dec 16, 2021
I jumped the gun in NetSweet#500 and removed these fields assuming their custom
types had to be implemented in the gem, but a few were just enums, such
as `sitemap_priority`, which shouldn't need a custom type class as we
get a string value back:
```xml
<listAcct:sitemapPriority>_auto</listAcct:sitemapPriority>
```
https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2021_2/schema/enum/sitemappriority.html?mode=package

Perhaps one day these enums should exist in the gem so you can refer to
the values by something like a constant rather than a magic string (ie.
`SitemapPriority::AUTO` vs "_auto"), but for now, the magic string is
probably sufficient.
iloveitaly pushed a commit that referenced this pull request Dec 16, 2021
I jumped the gun in #500 and removed these fields assuming their custom
types had to be implemented in the gem, but a few were just enums, such
as `sitemap_priority`, which shouldn't need a custom type class as we
get a string value back:
```xml
<listAcct:sitemapPriority>_auto</listAcct:sitemapPriority>
```
https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2021_2/schema/enum/sitemappriority.html?mode=package

Perhaps one day these enums should exist in the gem so you can refer to
the values by something like a constant rather than a magic string (ie.
`SitemapPriority::AUTO` vs "_auto"), but for now, the magic string is
probably sufficient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants