Constructor
# new Subscriptions(client) → {Subscriptions}
Creates an instance of the Subscriptions class.
Parameters:
Name | Type | Description |
---|---|---|
client |
ConnectClient | An instance of the ConnectClient class. |
An instance of the Subscriptions class.
Methods
# async createBillingRequest(request) → {object}
Creates a new BillingRequest
Parameters:
Name | Type | Description |
---|---|---|
request |
object | The BillingRequest object. |
The created BillingRequest object.
# async getBillingRequest(id) → {object}
Retrieve the BillingRequest object identified by its id.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the BillingRequest object. |
The BillingRequest object.
# async getRecurringAsset(id) → {object}
Retrieve the RecurringAsset object identified by its id.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the RecurringAsset object. |
The RecurringAsset object.
# async searchBillingRequests(query) → {Array}
Returns a list of BillingRequest objects that match the provided (optional) query.
Parameters:
Name | Type | Description |
---|---|---|
query |
object | The optional query to filter results. |
An array of BillingRequest object optionally matching the provided query.
# async searchRecurringAssets(query) → {Array}
Returns a list of RecurringAsset objects that match the provided (optional) query.
Parameters:
Name | Type | Description |
---|---|---|
query |
object | The optional query to filter results. |
An array of RecurringAsset object optionally matching the provided query.
# async updateBillingRequestAttributes(id, attributes) → {object}
Updates the attributes of a BillingRequest object.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The unique identifier of the BillingRequest object. |
attributes |
object | An attributes object to be updated. |
The updated BillingRequest attributes object.