alerts.billing namespace

Functions

FunctionDescription
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

InterfaceDescription
BillingEventA custom CloudEvent for billing Firebase Alerts (with custom extension attributes).
PlanAutomatedUpdatePayloadThe internal payload object for billing plan automated updates. Payload is wrapped inside aFirebaseAlertData object.
PlanUpdatePayloadThe 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

ParameterTypeDescription
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

ParameterTypeDescription
optsoptions.EventHandlerOptionsOptions 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

ParameterTypeDescription
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

ParameterTypeDescription
optsoptions.EventHandlerOptionsOptions 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.