Update customer record (update fields, add search only fields) #535
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I needed the
onCreditHold
field, which is only available via searches, so figured I'd add all the search only fields.Before adding all the search only fields, figured it was wise to update all the regular fields since search only fields often seem to be a superset of the regular fields. A few fields were corrected to be
record_refs
and a few were removed as they require special sublist classes that aren't yet implemented.There is a breaking change here renaming
CustomerSubscriptionsList
toSubscriptionsList
andCustomerSubscription
toSubscription
. Looking at the schema for Customer, you'll see the type forsubscriptionsList
isSubscriptionsList
(no Customer prefix). This is true as far back as 2014.1 too. This break isn't strictly required, it could be removed from this PR, but seemed best to be consistent with NetSuite's record naming.