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 a FirebaseAlertData object.
PlanUpdatePayloadThe internal payload object for billing plan updates. Payload is wrapped inside a FirebaseAlertData 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.