Represents a vendor (generated) or provider (uploaded) billing of a Subscription.

Static methods

staticget(id:String):SubscriptionRequest

Returns:

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

staticlist(filters:Query):Collection<SubscriptionRequest>

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

  • id
  • type
  • period.uom
  • period.from
  • period.to
  • events.created.at (le, ge)
  • events.updated.at (le, ge)
  • asset.id
  • asset.billing.period.uom
  • asset.billing.next_date
  • asset.external_id
  • asset.external_uid
  • asset.product.id
  • asset.product.name
  • asset.connection.id
  • asset.connection.type
  • asset.connection.provider.id
  • asset.connection.provider.name
  • asset.connection.vendor.id
  • asset.connection.vendor.name
  • asset.connection.hub.id
  • asset.connection.hub.name
  • asset.marketplace.id
  • asset.marketplace.name
  • asset.tiers.customer.id
  • asset.tiers.tier1.id
  • asset.tiers.tier2.id

Returns:

A Collection of SubscriptionRequests.

Constructor

new()

Variables

Methods

register():SubscriptionRequest

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

Returns:

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

updateAttributes():Bool

Updates the request in the server with the attributes changed in this model.

Only the attributes corresponding to the type (vendor or provider) will be updated.

Returns:

Whether the attributes were correctly updated.

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.