Gamend.Payments.Admin (gamend_core v1.0.1296)

Copy Markdown View Source

What the admin payments pages and API read: the stats, provider configuration status, and filtered listings of products, purchases, entitlements, provider events and reconciliation cursors.

Split out of Gamend.Payments, which still exposes every function here under the same name.

Summary

Functions

admin_stats()

@spec admin_stats() :: map()

count_entitlements(opts \\ [])

@spec count_entitlements(keyword()) :: non_neg_integer()

count_products(opts \\ [])

@spec count_products(keyword()) :: non_neg_integer()

count_provider_events(opts \\ [])

@spec count_provider_events(keyword()) :: non_neg_integer()

count_provider_products(opts \\ [])

@spec count_provider_products(keyword()) :: non_neg_integer()

count_purchases(opts \\ [])

@spec count_purchases(keyword()) :: non_neg_integer()

count_reconciliation_cursors(opts \\ [])

@spec count_reconciliation_cursors(keyword()) :: non_neg_integer()

list_admin_entitlements(opts \\ [])

@spec list_admin_entitlements(keyword()) :: [Gamend.Payments.Entitlement.t()]

list_admin_products(opts \\ [])

@spec list_admin_products(keyword()) :: [Gamend.Payments.Product.t()]

list_admin_provider_products(opts \\ [])

@spec list_admin_provider_products(keyword()) :: [Gamend.Payments.ProviderProduct.t()]

list_admin_purchases(opts \\ [])

@spec list_admin_purchases(keyword()) :: [Gamend.Payments.Purchase.t()]

list_provider_events(opts \\ [])

@spec list_provider_events(keyword()) :: [Gamend.Payments.ProviderEvent.t()]

list_reconciliation_cursors(opts \\ [])

@spec list_reconciliation_cursors(keyword()) :: [
  Gamend.Payments.ReconciliationCursor.t()
]

provider_adapter_statuses()

@spec provider_adapter_statuses() :: [map()]

stripe_config_status()

@spec stripe_config_status() :: map()