The Subscriptions class exposes specialized methods to help
developers to handle subscriptions (recurring assets and billing requests.).
Kind: global class
Category: Operations
Array
object
object
object
Array
object
Creates an instance of the Subscriptions class.
Returns: Subscriptions
– An instance of the Subscriptions class.
Param | Type | Description |
---|---|---|
client | ConnectClient |
An instance of the ConnectClient class. |
Array
Returns a list of BillingRequest objects that match the provided
(optional) query.
Kind: instance method of Subscriptions
Returns: Array
– An array of BillingRequest object optionally matching
the provided query.
Param | Type | Description |
---|---|---|
query | object |
The optional query to filter results. |
object
Creates a new BillingRequest
Kind: instance method of Subscriptions
Returns: object
– The created BillingRequest object.
Param | Type | Description |
---|---|---|
request | object |
The BillingRequest object. |
object
Retrieve the BillingRequest object identified by its id.
Kind: instance method of Subscriptions
Returns: object
– The BillingRequest object.
Param | Type | Description |
---|---|---|
id | string |
The unique identifier of the BillingRequest object. |
object
Updates the attributes of a BillingRequest object.
Kind: instance method of Subscriptions
Returns: object
– The updated BillingRequest attributes object.
Param | Type | Description |
---|---|---|
id | string |
The unique identifier of the BillingRequest object. |
attributes | object |
An attributes object to be updated. |
Array
Returns a list of RecurringAsset objects that match the provided
(optional) query.
Kind: instance method of Subscriptions
Returns: Array
– An array of RecurringAsset object optionally matching
the provided query.
Param | Type | Description |
---|---|---|
query | object |
The optional query to filter results. |
object
Retrieve the RecurringAsset object identified by its id.
Kind: instance method of Subscriptions
Returns: object
– The RecurringAsset object.
Param | Type | Description |
---|---|---|
id | string |
The unique identifier of the RecurringAsset object. |