Namespace: Supplier

Appearition.Part.Supplier

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

Methods

Appearition.Part.Supplier.AddSupplier (request, requestOptions)number static

Will create a new Supplier to for an existing manufacturer and return the system allocated identifier

Name Type Description
request Appearition.Part.Supplier.AddSupplierViewModel

Contains the details of the new supplier

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Returns:
Type Description
number The system allocated identifier will be returned for the newly created supplier. This is returned as part of the success callback function in the requestOptions param

Appearition.Part.Supplier.DeleteSupplier (request, requestOptions) static

Will remove the Supplier from the system

Name Type Description
request Appearition.Part.SupplierViewModel

Contains the details of the Supplier

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Appearition.Part.Supplier.UpdateSupplier (request, requestOptions) static

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

Name Type Description
request Appearition.Part.SupplierViewModel

Contains the details of the Supplier

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Type Definitions

Appearition.Part.Supplier.AddSupplierViewModel

This data structure is posted to the server when adding a new Supplier

Properties:
Name Type Description
Name string

The name of the new Supplier