new SCModel()

Description

SCModel subclasses are used to implement restful-like methods for accessing a particular
resource, in general a NetSuite record like commerce order, session, or custom record.

Note: When using SCModel for defining models think more on object singletons like in classes.

Note: Also SCModel instances support Aspect Oriented functionality on methods so users can register to before
or after a method of model is called. See SCEventWrapper

Members


validation :object

Description

a Backbone.Validation like object to validate given
json data provided in SCModel#validate


name :string

Description

The name of this model. Is mandatory that al SCEventWrappers to have a name.

Details
string

Methods


validate( data )

Description

Validate provided data using SCModel#validation rules like documented in
Backbone.Validation

Parameters
Name Type Description
data object
Throws