HawkEx.CSV.Formatters.Subscriptions (hawk_ex v0.1.0)

Copy Markdown View Source

Built-in CSV formatter for account subscriptions.

The formatter exports all subscriptions for a single account, newest first, and includes the preloaded plan name alongside lifecycle timestamps.

Summary

Functions

Returns the subscription export header row.

Returns the account-scoped subscription query.

Converts a subscription into a CSV row.

Functions

headers()

Returns the subscription export header row.

query(account_id)

Returns the account-scoped subscription query.

to_row(sub)

Converts a subscription into a CSV row.