Represents a change request for a Listing object.

Static methods

staticget(id:String):ListingRequest

Returns:

The ListingRequest with the given id, or null if it was not found.

staticlist(filters:Query):Collection<ListingRequest>

Lists all listing requests that match the given filters. Supported filters are:

  • type
  • status
  • listing
  • creator
  • assignee
  • created_date
  • notes

Returns:

A Collection of ListingRequests.

Constructor

new()

Variables

created:DateTime

Listing Request creation date.

listing:Listing

Listing Object representation.

product:Product

Version of the product attached to the Listing Request.

state:String

Status of the listing request. One of: draft, reviewing, deploying, completed, canceled.

type:String

Type of the listing request. One of: new, update, remove.

updated:DateTime

Listing Request update date.

Methods

assign():Bool

Assigns this request to the user whose authorization is stored in the configuration.

changeToCanceled():Bool

Changes the state of the request to "canceled".

changeToCompleted():Bool

Changes the state of the request to "completed".

changeToDeploying():Bool

Changes the state of the request to "deploying".

changeToDraft():Bool

Changes the state of the request to "draft".

changeToReviewing():Bool

Changes the state of the request to "reviewing".

register():ListingRequest

Registers a new ListingRequest on Connect, based on the data of this ListingRequest.

Returns:

The new ListingRequest, or null if it couldn't be created.

unassign():Bool

Unassigns this request from the user is was assigned to.

Inherited Variables

Defined by IdModel

id:String

Id of the model.

Inherited Methods

Defined by Model

toObject():Dynamic

Returns:

A Haxe dynamic object with a shallow copy of this model's properties.

toString():String

Returns:

A String with the JSON representation of this Model.