Home Manual Reference Source Test Repository
import OrganizationPlans from 'opengate-js/src/plan/OrganizationPlans.js'
public class | source

OrganizationPlans

Extends:

BaseProvision → OrganizationPlans

This is a base object that contains all you can do about Organizations plan.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

Set the flowRate attribute

public

Set the identifier attribute

public

Set the maxDeviceAmount attribute

public

Set the maxStorageLifeTime attribute

public

Set the name attribute

Inherited Summary

From class BaseProvision
public

This invoke a request to OpenGate North API and the callback is managed by promises This function create a entity of provision

public

delete(body: *): Promise

This invoke a request to OpenGate North API and the callback is managed by promises This function deletes a entity of provision

public

This invoke a request to OpenGate North API and the callback is managed by promises This function updates a entity of provision

Public Constructors

public constructor(Reference: InternalOpenGateAPI) source

Constructor

Override:

BaseProvision#constructor

Params:

NameTypeAttributeDescription
Reference InternalOpenGateAPI

to the API object.

Public Methods

public withFlowRate(flowRate: object): OrganizationPlans source

Set the flowRate attribute

Params:

NameTypeAttributeDescription
flowRate object

{value: number, unit: [SECONDS, MINUTES, HOURS, DAYS, MONTHS, YEARS]}

public withIdentifier(identifier: string): OrganizationPlans source

Set the identifier attribute

Params:

NameTypeAttributeDescription
identifier string

required field

public withMaxDeviceAmount(maxDeviceAmount: object): OrganizationPlans source

Set the maxDeviceAmount attribute

Params:

NameTypeAttributeDescription
maxDeviceAmount object

optional and greater than 0

public withMaxStorageLifeTime(maxStorageLifeTime: object): OrganizationPlans source

Set the maxStorageLifeTime attribute

Params:

NameTypeAttributeDescription
maxStorageLifeTime object

required field: {total: number, period: [SECONDS, MINUTES, HOURS, DAYS, MONTHS, YEARS]}

public withName(name: string): OrganizationPlans source

Set the name attribute

Params:

NameTypeAttributeDescription
name string

required field