alerts.billing namespace Stay organized with collections Save and categorize content based on your preferences.
Functions
| Function | Description |
|---|---|
| onPlanAutomatedUpdatePublished(handler) | Declares a function that can handle an automated billing plan update event. |
| onPlanAutomatedUpdatePublished(opts, handler) | Declares a function that can handle an automated billing plan update event. |
| onPlanUpdatePublished(handler) | Declares a function that can handle a billing plan update event. |
| onPlanUpdatePublished(opts, handler) | Declares a function that can handle a billing plan update event. |
Interfaces
| Interface | Description |
|---|---|
| BillingEvent | A custom CloudEvent for billing Firebase Alerts (with custom extension attributes). |
| PlanAutomatedUpdatePayload | The internal payload object for billing plan automated updates. Payload is wrapped inside aFirebaseAlertData object. |
| PlanUpdatePayload | The internal payload object for billing plan updates. Payload is wrapped inside aFirebaseAlertData object. |
alerts.billing.onPlanAutomatedUpdatePublished()
Declares a function that can handle an automated billing plan update event.
Signature:
exportdeclarefunctiononPlanAutomatedUpdatePublished(handler:(event:BillingEvent<PlanAutomatedUpdatePayload>)=>any|Promise<any>):CloudFunction<BillingEvent<PlanAutomatedUpdatePayload>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (event:BillingEvent<PlanAutomatedUpdatePayload>) => any | Promise<any> | Event handler which is run every time an automated billing plan update occurs. |
Returns:
CloudFunction<BillingEvent<PlanAutomatedUpdatePayload>>
A function that you can export and deploy.
alerts.billing.onPlanAutomatedUpdatePublished()
Declares a function that can handle an automated billing plan update event.
Signature:
exportdeclarefunctiononPlanAutomatedUpdatePublished(opts:options.EventHandlerOptions,handler:(event:BillingEvent<PlanAutomatedUpdatePayload>)=>any|Promise<any>):CloudFunction<BillingEvent<PlanAutomatedUpdatePayload>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| opts | options.EventHandlerOptions | Options that can be set on the function. |
| handler | (event:BillingEvent<PlanAutomatedUpdatePayload>) => any | Promise<any> | Event handler which is run every time an automated billing plan update occurs. |
Returns:
CloudFunction<BillingEvent<PlanAutomatedUpdatePayload>>
A function that you can export and deploy.
alerts.billing.onPlanUpdatePublished()
Declares a function that can handle a billing plan update event.
Signature:
exportdeclarefunctiononPlanUpdatePublished(handler:(event:BillingEvent<PlanUpdatePayload>)=>any|Promise<any>):CloudFunction<BillingEvent<PlanUpdatePayload>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| handler | (event:BillingEvent<PlanUpdatePayload>) => any | Promise<any> | Event handler which is run every time a billing plan is updated. |
Returns:
CloudFunction<BillingEvent<PlanUpdatePayload>>
A function that you can export and deploy.
alerts.billing.onPlanUpdatePublished()
Declares a function that can handle a billing plan update event.
Signature:
exportdeclarefunctiononPlanUpdatePublished(opts:options.EventHandlerOptions,handler:(event:BillingEvent<PlanUpdatePayload>)=>any|Promise<any>):CloudFunction<BillingEvent<PlanUpdatePayload>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| opts | options.EventHandlerOptions | Options that can be set on the function. |
| handler | (event:BillingEvent<PlanUpdatePayload>) => any | Promise<any> | Event handler which is run every time a billing plan is updated. |
Returns:
CloudFunction<BillingEvent<PlanUpdatePayload>>
A function that you can export and deploy.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-18 UTC.