Namespace: Model

Appearition.Part.Model

Use the functions under this module to create, change and remove manufacturer model records on the Appearition platform

Methods

Appearition.Part.Model.AddNewModelToManufacturer (request, requestOptions)Appearition.Part.ManufacturerModelViewModel static

Will create a new model to for an existing manufacturer

Name Type Description
request Appearition.Part.Model.AddNewModelToManufacturer

Contains the details of the new model for the manufacturer

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Returns:
Type Description
Appearition.Part.ManufacturerModelViewModel The saved record with the system allocated Id. This is returned as part of the success callback function in the requestOptions param

Appearition.Part.Model.DeleteModel (request, requestOptions) static

Will remove the model from the manufacturer.

Name Type Description
request Appearition.Part.ManufacturerModelViewModel

Contains the details of the model

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Appearition.Part.Model.UpdateModel (request, requestOptions) static

Will update the details of an existing Model record. Nothing will be returned unless an error occurs.

Name Type Description
request Appearition.Part.ManufacturerModelViewModel

Contains the details of the model

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Type Definitions

Appearition.Part.Model.AddNewModelToManufacturer

This data structure is posted to the server when adding a new model to an existing manufacturer for a part.

Properties:
Name Type Description
PartId number

Uniquely identifies the part

ManufacturerId number

Uniquely identifies the manufacturer

ModelNo string

Uniquely identifies the Model